From 59a3ff925955e573454f5295b4137dc9e693549c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Oct 2020 16:52:43 -0700 Subject: [PATCH 001/519] chore: regenerate common templates (#343) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/8bb66718-6c73-48bc-9fe4-75dc94d1a47a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5f6ef0ec5501d33c4667885b37a7685a30d41a76 Source-Link: https://github.com/googleapis/synthtool/commit/9593c3b5b714cc9b17c445aee8834ac2b4b9348b --- .kokoro/release/publish_javadoc.sh | 2 +- CODE_OF_CONDUCT.md | 7 ++++--- synth.metadata | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index a967b79a..cd10fb27 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -62,7 +62,7 @@ popd # V2 mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" -pushd target/devsite +pushd target/devsite/reference # create metadata python3 -m docuploader create-metadata \ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 6b2238bb..2add2547 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,4 @@ + # Code of Conduct ## Our Pledge @@ -69,12 +70,12 @@ dispute. If you are unable to resolve the matter for any reason, or if the behavior is threatening or harassing, report it. We are dedicated to providing an environment where participants feel welcome and safe. -Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the -Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to receive and address reported violations of the code of conduct. They will then work with a committee consisting of representatives from the Open Source Programs Office and the Google Open Source Strategy team. If for any reason you -are uncomfortable reaching out the Project Steward, please email +are uncomfortable reaching out to the Project Steward, please email opensource@google.com. We will investigate every complaint, but you may not receive a direct response. diff --git a/synth.metadata b/synth.metadata index 3e4f1563..be4e17aa 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "4f0158d2ac29d9250680afdfc52f962226dc5a87" + "sha": "2b6315bdee89d4b251f9cd9a75390cbc9e480933" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6abb59097be84599a1d6091fe534a49e5c5cf948" + "sha": "5f6ef0ec5501d33c4667885b37a7685a30d41a76" } } ], From b67271aaa5a2749fd036ff6b13134c36902eee2f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 01:00:17 +0100 Subject: [PATCH 002/519] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#347) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0de81368..6d3b8da7 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From e2eb2f937141f305b448ac65f008a8074625f6d1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Oct 2020 17:36:12 -0700 Subject: [PATCH 003/519] chore: regenerate README (#348) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-10-27 00:05:29,980 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-27 00:05:30,954 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/2ffbba51-a8de-4dfa-8f54-f3cf059bf66d/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 68bb5f64..d4ccc30a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "c8fa98054e6368bd97f2dcf1605481a32accc83e" + "sha": "b67271aaa5a2749fd036ff6b13134c36902eee2f" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "721a7d2abb129029eca9d85a40da6eb7b8b1739a" + "sha": "fd3584b01cedd6c9f79d08be4e2365085f955aa5" } } ] diff --git a/README.md b/README.md index 8b39eeb0..e98461a0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From 4b9aa8d8cc27901460f8202191537b35b2414c46 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Oct 2020 11:06:31 -0700 Subject: [PATCH 004/519] chore(ci): fix typo in restrict presubmit samples ITs to only snapshot (#349) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e1618cb3-d96b-427f-9c50-971f9f53c51f/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f68649c5f26bcff6817c6d21e90dac0fc71fef8e --- .kokoro/build.sh | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index ef77709c..d7967d98 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -78,7 +78,7 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then - pushd {SAMPLES_DIR} + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ -DtrimStackTrace=false \ diff --git a/synth.metadata b/synth.metadata index be4e17aa..88d463f8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "2b6315bdee89d4b251f9cd9a75390cbc9e480933" + "sha": "e2eb2f937141f305b448ac65f008a8074625f6d1" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5f6ef0ec5501d33c4667885b37a7685a30d41a76" + "sha": "f68649c5f26bcff6817c6d21e90dac0fc71fef8e" } } ], From 0be8102a8324e77bb71e33ed2284db7597bd196a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 20:26:35 +0100 Subject: [PATCH 005/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.9.4 (#350) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | patch | `0.9.3` -> `0.9.4` | --- ### Release Notes
googleapis/java-shared-config ### [`v0.9.4`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​094-httpswwwgithubcomgoogleapisjava-shared-configcomparev093v094-2020-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.9.3...v0.9.4)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 2fcff6ea..ef2dff8b 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.3 + 0.9.4 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 9d6c80d1..5f9fefb0 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.3 + 0.9.4 From 59ffe901cc71d845feaec13a99cc802e6655c54b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Oct 2020 17:56:06 +0100 Subject: [PATCH 006/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.2 (#346) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 40ed64e0..ff23d5b6 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.1 + 1.113.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8c101e04..fd27b32c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.1 + 1.113.2 junit From f523333def3b6210f4986e06371924b3f8b13a19 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 28 Oct 2020 21:48:02 +0000 Subject: [PATCH 007/519] chore: release 1.1.5 (#351) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.5](https://www.github.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5) (2020-10-28) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v1.113.2 ([#346](https://www.github.com/googleapis/java-dataproc/issues/346)) ([59ffe90](https://www.github.com/googleapis/java-dataproc/commit/59ffe901cc71d845feaec13a99cc802e6655c54b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b02bfc..311e4fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.5](https://www.github.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5) (2020-10-28) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v1.113.2 ([#346](https://www.github.com/googleapis/java-dataproc/issues/346)) ([59ffe90](https://www.github.com/googleapis/java-dataproc/commit/59ffe901cc71d845feaec13a99cc802e6655c54b)) + ### [1.1.4](https://www.github.com/googleapis/java-dataproc/compare/v1.1.3...v1.1.4) (2020-10-21) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ef2dff8b..ca424a19 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.5-SNAPSHOT + 1.1.5 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.5-SNAPSHOT + 1.1.5 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 9acbee9b..4e73fba3 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.5-SNAPSHOT + 1.1.5 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.5-SNAPSHOT + 1.1.5 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 6cc669e1..9a0d7da9 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 1f5aa934..482e368a 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/pom.xml b/pom.xml index 5f9fefb0..062bfb6b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.5-SNAPSHOT + 1.1.5 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 com.google.cloud google-cloud-dataproc - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 33a4f038..a7d60f82 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5-SNAPSHOT + 1.1.5 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index cb9f1d1b..053661c4 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5-SNAPSHOT + 0.89.5 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fd27b32c..f657cae3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.5-SNAPSHOT + 1.1.5 diff --git a/versions.txt b/versions.txt index 37a770fc..a27ff643 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.4:0.89.5-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.4:1.1.5-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.4:1.1.5-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.4:0.89.5-SNAPSHOT -google-cloud-dataproc:1.1.4:1.1.5-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.5:0.89.5 +proto-google-cloud-dataproc-v1:1.1.5:1.1.5 +grpc-google-cloud-dataproc-v1:1.1.5:1.1.5 +grpc-google-cloud-dataproc-v1beta2:0.89.5:0.89.5 +google-cloud-dataproc:1.1.5:1.1.5 From ffb8197b16fd93a0aa258e3ea2f4d376509acd95 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2020 08:14:03 +0000 Subject: [PATCH 008/519] chore: release 1.1.6-SNAPSHOT (#353) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ca424a19..ce82e52d 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.5 + 1.1.6-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.6-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 4e73fba3..3700b46d 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.6-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.5 + 1.1.6-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 9a0d7da9..cdc59da8 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 482e368a..62cd442e 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 062bfb6b..ccb64810 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.5 + 1.1.6-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index a7d60f82..ee399a8f 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.5 + 1.1.6-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 053661c4..3e37de49 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.5 + 0.89.6-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f657cae3..ab59ed28 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index a27ff643..3ba6fb2d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.5:0.89.5 -proto-google-cloud-dataproc-v1:1.1.5:1.1.5 -grpc-google-cloud-dataproc-v1:1.1.5:1.1.5 -grpc-google-cloud-dataproc-v1beta2:0.89.5:0.89.5 -google-cloud-dataproc:1.1.5:1.1.5 +proto-google-cloud-dataproc-v1beta2:0.89.5:0.89.6-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.5:1.1.6-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.5:1.1.6-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.5:0.89.6-SNAPSHOT +google-cloud-dataproc:1.1.5:1.1.6-SNAPSHOT From 74a63c59c4bb2918ab4fd6cf3bb51022cfeff54b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 29 Oct 2020 01:26:02 -0700 Subject: [PATCH 009/519] chore: regenerate README (#354) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-10-29 08:16:11,006 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-29 08:16:11,912 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/06564057-e85d-4b2c-b267-07cd176f0c77/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index d4ccc30a..7464c10c 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "b67271aaa5a2749fd036ff6b13134c36902eee2f" + "sha": "ffb8197b16fd93a0aa258e3ea2f4d376509acd95" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "fd3584b01cedd6c9f79d08be4e2365085f955aa5" + "sha": "ea52b8a0bd560f72f376efcf45197fb7c8869120" } } ] diff --git a/README.md b/README.md index e98461a0..0aa43f74 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.1.4' +compile 'com.google.cloud:google-cloud-dataproc:1.1.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.4" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.5" ``` ## Authentication From 45022e038a05bf1e55ef2e2e88d49590481821fe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 15:52:10 -0700 Subject: [PATCH 010/519] chore(java): enable generated-files-bot (#355) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2dd0fca0-df43-46b1-aa25-4c588cd16a2a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b19b401571e77192f8dd38eab5fb2300a0de9324 --- .github/generated-files-bot.yml | 7 +++++++ synth.metadata | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .github/generated-files-bot.yml diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml new file mode 100644 index 00000000..20f3acc2 --- /dev/null +++ b/.github/generated-files-bot.yml @@ -0,0 +1,7 @@ +externalManifests: +- type: json + file: 'synth.metadata' + jsonpath: '$.generatedFiles[*]' +- type: json + file: '.github/readme/synth.metadata/synth.metadata' + jsonpath: '$.generatedFiles[*]' diff --git a/synth.metadata b/synth.metadata index 88d463f8..efaff478 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "e2eb2f937141f305b448ac65f008a8074625f6d1" + "sha": "74a63c59c4bb2918ab4fd6cf3bb51022cfeff54b" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f68649c5f26bcff6817c6d21e90dac0fc71fef8e" + "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" } } ], @@ -57,6 +57,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", From 8f4c1ac353f3eddb43cb635556d5bd0fbb9345bd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:36:25 +0100 Subject: [PATCH 011/519] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#356) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6d3b8da7..b4640d59 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From d60ffb8d318a51f1fa95cff0f79f2abdc77f2a8a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 16:58:08 -0700 Subject: [PATCH 012/519] chore: regenerate README (#357) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-10-30 23:43:09,556 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-30 23:43:10,483 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/524bef08-1cc1-447b-8111-956e98b87e2c/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 7464c10c..5b674993 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "ffb8197b16fd93a0aa258e3ea2f4d376509acd95" + "sha": "8f4c1ac353f3eddb43cb635556d5bd0fbb9345bd" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ea52b8a0bd560f72f376efcf45197fb7c8869120" + "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" } } ] diff --git a/README.md b/README.md index 0aa43f74..577b4a46 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From 6a5c477a0705fd9dbcb3a82f7493001db9a6c85e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 17:08:17 +0100 Subject: [PATCH 013/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 (#358) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.13.0` -> `0.14.1` | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.14.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0141-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0140v0141-2020-10-31) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.14.0...v0.14.1) ### [`v0.14.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0140-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0130v0140-2020-10-31) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.13.0...v0.14.0) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.33.1 ([#​192](https://www.github.com/googleapis/java-shared-dependencies/issues/192)) ([b29384d](https://www.github.com/googleapis/java-shared-dependencies/commit/b29384dc40c812f1848f00695228d5437556f029)) - update dependency org.threeten:threetenbp to v1.5.0 ([#​196](https://www.github.com/googleapis/java-shared-dependencies/issues/196)) ([825a6fa](https://www.github.com/googleapis/java-shared-dependencies/commit/825a6fa375d12f1caa0a515b784ffde182bac98d)) - update iam.version to v1.0.2 ([#​194](https://www.github.com/googleapis/java-shared-dependencies/issues/194)) ([5c57239](https://www.github.com/googleapis/java-shared-dependencies/commit/5c572399a1b453f4dc5f6ef8d8850a35be2aef75))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ccb64810..780d0e36 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.13.0 + 0.14.1 pom import From 6127215c1efc5f23765a4ae28be75720aee0f928 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 31 Oct 2020 16:22:05 +0000 Subject: [PATCH 014/519] chore: release 1.1.6 (#359) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.6](https://www.github.com/googleapis/java-dataproc/compare/v1.1.5...v1.1.6) (2020-10-31) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#358](https://www.github.com/googleapis/java-dataproc/issues/358)) ([6a5c477](https://www.github.com/googleapis/java-dataproc/commit/6a5c477a0705fd9dbcb3a82f7493001db9a6c85e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 311e4fa0..8ab8f3b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.6](https://www.github.com/googleapis/java-dataproc/compare/v1.1.5...v1.1.6) (2020-10-31) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#358](https://www.github.com/googleapis/java-dataproc/issues/358)) ([6a5c477](https://www.github.com/googleapis/java-dataproc/commit/6a5c477a0705fd9dbcb3a82f7493001db9a6c85e)) + ### [1.1.5](https://www.github.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5) (2020-10-28) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ce82e52d..b421c83c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.6-SNAPSHOT + 1.1.6 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.6-SNAPSHOT + 1.1.6 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 3700b46d..99faa4fc 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.6-SNAPSHOT + 1.1.6 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.6-SNAPSHOT + 1.1.6 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index cdc59da8..a8cbc935 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 62cd442e..fc01ab51 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/pom.xml b/pom.xml index 780d0e36..fa1a1775 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.6-SNAPSHOT + 1.1.6 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6 com.google.cloud google-cloud-dataproc - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index ee399a8f..fb608965 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6-SNAPSHOT + 1.1.6 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 3e37de49..eadb5be3 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6-SNAPSHOT + 0.89.6 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ab59ed28..d5282abe 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.6-SNAPSHOT + 1.1.6 diff --git a/versions.txt b/versions.txt index 3ba6fb2d..69fcb64e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.5:0.89.6-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.5:1.1.6-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.5:1.1.6-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.5:0.89.6-SNAPSHOT -google-cloud-dataproc:1.1.5:1.1.6-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.6:0.89.6 +proto-google-cloud-dataproc-v1:1.1.6:1.1.6 +grpc-google-cloud-dataproc-v1:1.1.6:1.1.6 +grpc-google-cloud-dataproc-v1beta2:0.89.6:0.89.6 +google-cloud-dataproc:1.1.6:1.1.6 From adbf2f6a03fde5cc098a829c3c0dd2bfc4b03695 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2020 09:16:08 +0000 Subject: [PATCH 015/519] chore: release 1.1.7-SNAPSHOT (#361) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b421c83c..36b9253f 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.6 + 1.1.7-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.6 + 1.1.7-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 99faa4fc..7af7b7d6 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.6 + 1.1.7-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.6 + 1.1.7-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index a8cbc935..6fc49a0a 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index fc01ab51..04c7c817 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index fa1a1775..cb6c9452 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.6 + 1.1.7-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index fb608965..632e531c 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.6 + 1.1.7-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index eadb5be3..17c5efbc 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.6 + 0.89.7-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d5282abe..7e9ca973 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.6 + 1.1.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 69fcb64e..435eb6a1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.6:0.89.6 -proto-google-cloud-dataproc-v1:1.1.6:1.1.6 -grpc-google-cloud-dataproc-v1:1.1.6:1.1.6 -grpc-google-cloud-dataproc-v1beta2:0.89.6:0.89.6 -google-cloud-dataproc:1.1.6:1.1.6 +proto-google-cloud-dataproc-v1beta2:0.89.6:0.89.7-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.6:1.1.7-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.6:1.1.7-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.6:0.89.7-SNAPSHOT +google-cloud-dataproc:1.1.6:1.1.7-SNAPSHOT From 99d2840828f1630d77ec10107d87dbc09b82e374 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 2 Nov 2020 19:18:24 +0100 Subject: [PATCH 016/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.1.5 (#352) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | patch | `1.1.4` -> `1.1.5` | --- ### Release Notes
googleapis/java-dataproc ### [`v1.1.5`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​115-httpswwwgithubcomgoogleapisjava-dataproccomparev114v115-2020-10-28) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ff23d5b6..b7e531b1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.1.4 + 1.1.5 From 3b9708d5f1f67b02352e4e5aa282b5ca729de312 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 2 Nov 2020 10:50:21 -0800 Subject: [PATCH 017/519] chore: regenerate README (#362) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-02 18:21:52,750 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-02 18:21:53,688 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c5415c07-139d-423e-aa7b-d1db380edbde/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 5b674993..41a80558 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "8f4c1ac353f3eddb43cb635556d5bd0fbb9345bd" + "sha": "99d2840828f1630d77ec10107d87dbc09b82e374" } }, { diff --git a/README.md b/README.md index 577b4a46..b17acc52 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.1.4 + 1.1.5 ``` From 796b95aca3bf1f9cf9569edc06439567747e52b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Nov 2020 01:26:17 +0100 Subject: [PATCH 018/519] chore(deps): update dependency com.google.cloud:libraries-bom to v14 (#363) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `14.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b4640d59..55c93c84 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 14.4.1 pom import From 5025045f46ce3250ca3d8554b93075c4b377e2f0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 3 Nov 2020 16:44:10 -0800 Subject: [PATCH 019/519] chore: regenerate README (#364) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-04 00:28:40,456 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-04 00:28:41,400 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/2a8b2fcf-e90e-4d6c-8359-5e4aabf1fe83/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 41a80558..f207591e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "99d2840828f1630d77ec10107d87dbc09b82e374" + "sha": "796b95aca3bf1f9cf9569edc06439567747e52b6" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" + "sha": "ba9918cd22874245b55734f57470c719b577e591" } } ] diff --git a/README.md b/README.md index b17acc52..11c7be46 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.4.0 + 14.4.1 pom import From 1937db0e95b27580ff9263a93fb5eae14e0453ba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 5 Nov 2020 14:56:13 -0800 Subject: [PATCH 020/519] chore(java): use production staging bucket (#365) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e9c002c2-f465-49e1-8293-4f695f263b6c/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/c7824ea48ff6d4d42dfae0849aec8a85acd90bd9 --- .kokoro/release/publish_javadoc.cfg | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index 29addf3a..f4fe8eed 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -9,7 +9,7 @@ env_vars: { env_vars: { key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" + value: "docs-staging-v2" # Production will be at: docs-staging-v2 } diff --git a/synth.metadata b/synth.metadata index efaff478..e785058a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "74a63c59c4bb2918ab4fd6cf3bb51022cfeff54b" + "sha": "5025045f46ce3250ca3d8554b93075c4b377e2f0" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" + "sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9" } } ], From 6a5f9f88f59b2bd940adccdfe86765b8873a1c82 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Nov 2020 00:02:22 +0100 Subject: [PATCH 021/519] chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#366) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 55c93c84..6983ee15 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 14.4.1 + 15.0.0 pom import From bb24cf000210da9a1700ee604d2ec66873af71c0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 10 Nov 2020 09:34:36 -0800 Subject: [PATCH 022/519] chore(java): ignore return code 28 in README autosynth job (#367) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/01cd0979-7ef1-4bfe-ad90-981b903afc4a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279 --- .kokoro/readme.sh | 11 ++++++++++- synth.metadata | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.kokoro/readme.sh b/.kokoro/readme.sh index 0ffc3b78..19b977e6 100755 --- a/.kokoro/readme.sh +++ b/.kokoro/readme.sh @@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials git config --global credential.helper 'store --file ~/.git-credentials' python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool + +set +e python3.6 -m autosynth.synth \ --repository=googleapis/java-dataproc \ --synth-file-name=.github/readme/synth.py \ --metadata-path=.github/readme/synth.metadata \ --pr-title="chore: regenerate README" \ - --branch-suffix="readme" \ No newline at end of file + --branch-suffix="readme" + +# autosynth returns 28 to signal there are no changes +RETURN_CODE=$? +if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] +then + exit ${RETURN_CODE} +fi diff --git a/synth.metadata b/synth.metadata index e785058a..81fc815d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "5025045f46ce3250ca3d8554b93075c4b377e2f0" + "sha": "6a5f9f88f59b2bd940adccdfe86765b8873a1c82" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9" + "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" } } ], From d73328953ff10f35c0aa58bfd780af3da230a586 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 10 Nov 2020 09:50:17 -0800 Subject: [PATCH 023/519] chore: regenerate README (#369) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-10 17:38:21,450 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-10 17:38:22,382 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/4ae495f9-61d7-4a0d-be73-71b2c07d4033/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index f207591e..e1165137 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "796b95aca3bf1f9cf9569edc06439567747e52b6" + "sha": "bb24cf000210da9a1700ee604d2ec66873af71c0" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ba9918cd22874245b55734f57470c719b577e591" + "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" } } ] diff --git a/README.md b/README.md index 11c7be46..55390b69 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 14.4.1 + 15.0.0 pom import From 8b7cb8a9f8f0d4148020ab919995d266fbd48f53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Nov 2020 16:58:23 +0100 Subject: [PATCH 024/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 (#370) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.14.1` -> `0.15.0` | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.15.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0150-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0141v0150-2020-11-10) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.14.1...v0.15.0) ##### Dependencies - update dependency com.google.http-client:google-http-client-bom to v1.38.0 ([#​207](https://www.github.com/googleapis/java-shared-dependencies/issues/207)) ([5e3198d](https://www.github.com/googleapis/java-shared-dependencies/commit/5e3198de5e1d0fe55c4d947b12984db7726059da)) - update google.common-protos.version to v2.0.1 ([#​205](https://www.github.com/googleapis/java-shared-dependencies/issues/205)) ([6b12417](https://www.github.com/googleapis/java-shared-dependencies/commit/6b1241737d34e99a55acdcd439aa71ad28d1e26c)) - update iam.version to v1.0.3 ([#​206](https://www.github.com/googleapis/java-shared-dependencies/issues/206)) ([94a4e31](https://www.github.com/googleapis/java-shared-dependencies/commit/94a4e31634718a206ef0f5ff1a8801dc7be4c5c5)) ##### [0.14.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.14.0...v0.14.1) (2020-10-31) ##### Dependencies - update google.core.version to v1.93.10 ([#​200](https://www.github.com/googleapis/java-shared-dependencies/issues/200)) ([2d73dc1](https://www.github.com/googleapis/java-shared-dependencies/commit/2d73dc152469d175c74f85c5c76dcc67993c9783))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cb6c9452..95ffde45 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.14.1 + 0.15.0 pom import From 835fe5aaacf574d2d894df126ec3deeda8450000 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Nov 2020 19:16:10 +0100 Subject: [PATCH 025/519] chore(deps): update dependency com.google.cloud:libraries-bom to v15.1.0 (#373) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `15.0.0` -> `15.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6983ee15..2db49715 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 15.0.0 + 15.1.0 pom import From a19760e79e981e496639cad63382db3982ea2e05 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 12 Nov 2020 11:02:11 -0800 Subject: [PATCH 026/519] chore: regenerate README (#374) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-12 18:20:16,781 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-12 18:20:17,748 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/79b7d183-2eec-42b3-87f3-a448369cdbdb/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index e1165137..d7ea3b1d 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "bb24cf000210da9a1700ee604d2ec66873af71c0" + "sha": "835fe5aaacf574d2d894df126ec3deeda8450000" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" } } ] diff --git a/README.md b/README.md index 55390b69..9d3c79be 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 15.0.0 + 15.1.0 pom import From 7afed8569dc31b206abe32b695ae799b556de19f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 13 Nov 2020 13:10:28 -0800 Subject: [PATCH 027/519] build(java): use code-suggester v1 tag rather than full semver (#375) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/46d21ebc-352c-40a7-a3eb-c0d98306d320/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7d652819519dfa24da9e14548232e4aaba71a11c --- .github/workflows/formatting.yaml | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml index d4d367cf..6844407b 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/formatting.yaml @@ -18,7 +18,7 @@ jobs: with: java-version: 11 - run: "mvn com.coveo:fmt-maven-plugin:format" - - uses: googleapis/code-suggester@v1.8.0 + - uses: googleapis/code-suggester@v1 with: command: review pull_number: ${{ github.event.pull_request.number }} diff --git a/synth.metadata b/synth.metadata index 81fc815d..d502a6ef 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "6a5f9f88f59b2bd940adccdfe86765b8873a1c82" + "sha": "a19760e79e981e496639cad63382db3982ea2e05" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" } } ], From 26d4171bccf35e92ac7d4fc235f356597bdd3438 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 17 Nov 2020 20:49:33 +0100 Subject: [PATCH 028/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.4 (#368) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b7e531b1..08ae5235 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.2 + 1.113.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7e9ca973..c1c35610 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.2 + 1.113.4 junit From bcaac2314713bd98128cdec94de26bcfc545a037 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2020 20:10:06 +0000 Subject: [PATCH 029/519] chore: release 1.1.7 (#371) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.7](https://www.github.com/googleapis/java-dataproc/compare/v1.1.6...v1.1.7) (2020-11-17) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#370](https://www.github.com/googleapis/java-dataproc/issues/370)) ([8b7cb8a](https://www.github.com/googleapis/java-dataproc/commit/8b7cb8a9f8f0d4148020ab919995d266fbd48f53)) * update dependency com.google.cloud:google-cloud-storage to v1.113.4 ([#368](https://www.github.com/googleapis/java-dataproc/issues/368)) ([26d4171](https://www.github.com/googleapis/java-dataproc/commit/26d4171bccf35e92ac7d4fc235f356597bdd3438)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab8f3b0..380ad90e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.1.7](https://www.github.com/googleapis/java-dataproc/compare/v1.1.6...v1.1.7) (2020-11-17) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#370](https://www.github.com/googleapis/java-dataproc/issues/370)) ([8b7cb8a](https://www.github.com/googleapis/java-dataproc/commit/8b7cb8a9f8f0d4148020ab919995d266fbd48f53)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.4 ([#368](https://www.github.com/googleapis/java-dataproc/issues/368)) ([26d4171](https://www.github.com/googleapis/java-dataproc/commit/26d4171bccf35e92ac7d4fc235f356597bdd3438)) + ### [1.1.6](https://www.github.com/googleapis/java-dataproc/compare/v1.1.5...v1.1.6) (2020-10-31) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 36b9253f..854d4d57 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.7-SNAPSHOT + 1.1.7 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.7-SNAPSHOT + 1.1.7 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 7af7b7d6..83f8667c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.7-SNAPSHOT + 1.1.7 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.7-SNAPSHOT + 1.1.7 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 6fc49a0a..440392c5 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 04c7c817..72ca9c43 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/pom.xml b/pom.xml index 95ffde45..e8334c93 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.7-SNAPSHOT + 1.1.7 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7 com.google.cloud google-cloud-dataproc - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 632e531c..0d8e3f6b 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7-SNAPSHOT + 1.1.7 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 17c5efbc..85beb546 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7-SNAPSHOT + 0.89.7 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c1c35610..89070775 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.7-SNAPSHOT + 1.1.7 diff --git a/versions.txt b/versions.txt index 435eb6a1..35addcda 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.6:0.89.7-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.6:1.1.7-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.6:1.1.7-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.6:0.89.7-SNAPSHOT -google-cloud-dataproc:1.1.6:1.1.7-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.7:0.89.7 +proto-google-cloud-dataproc-v1:1.1.7:1.1.7 +grpc-google-cloud-dataproc-v1:1.1.7:1.1.7 +grpc-google-cloud-dataproc-v1beta2:0.89.7:0.89.7 +google-cloud-dataproc:1.1.7:1.1.7 From 6f19ad2aa73b2af40a1754a704f05ae5fc4b97c8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 17 Nov 2020 22:17:44 +0100 Subject: [PATCH 030/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.1.7 (#378) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 08ae5235..a79c51ac 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.7 From fbd03e36a57eaaebc773fc8b8a8bcea771ad0f5a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Nov 2020 13:28:05 -0800 Subject: [PATCH 031/519] chore: regenerate README (#380) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-17 21:19:57,973 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-17 21:19:59,055 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/76c06e3b-997d-408e-9ee1-e6fbf038ad3a/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index d7ea3b1d..4b2e505a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "835fe5aaacf574d2d894df126ec3deeda8450000" + "sha": "6f19ad2aa73b2af40a1754a704f05ae5fc4b97c8" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" + "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" } } ] diff --git a/README.md b/README.md index 9d3c79be..d89aeeea 100644 --- a/README.md +++ b/README.md @@ -39,18 +39,18 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.1.5 + 1.1.7 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.1.5' +compile 'com.google.cloud:google-cloud-dataproc:1.1.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.5" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.7" ``` ## Authentication From 18077e9bb7ebb8c819c019845fad25f968bb8238 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2020 21:30:05 +0000 Subject: [PATCH 032/519] chore: release 1.1.8-SNAPSHOT (#379) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 854d4d57..f99079ed 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.7 + 1.1.8-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 83f8667c..32b63ea6 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.7 + 1.1.8-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 440392c5..cdfbc0d2 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 72ca9c43..1e068918 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index e8334c93..3eb1ca02 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.7 + 1.1.8-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 0d8e3f6b..3ae2d967 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.7 + 1.1.8-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 85beb546..88cf2ff1 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.7 + 0.89.8-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 89070775..fa78874d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 35addcda..76d5bcd3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.7:0.89.7 -proto-google-cloud-dataproc-v1:1.1.7:1.1.7 -grpc-google-cloud-dataproc-v1:1.1.7:1.1.7 -grpc-google-cloud-dataproc-v1beta2:0.89.7:0.89.7 -google-cloud-dataproc:1.1.7:1.1.7 +proto-google-cloud-dataproc-v1beta2:0.89.7:0.89.8-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.7:1.1.8-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.7:1.1.8-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.7:0.89.8-SNAPSHOT +google-cloud-dataproc:1.1.7:1.1.8-SNAPSHOT From bb5e1c06a58ff5e195f3d243e338d68bb306868d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 18 Nov 2020 14:46:08 -0800 Subject: [PATCH 033/519] build(java): use actions/github-script v3 tag rather than full semver (#381) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ca2efad8-72a2-41d4-ad6c-8907efa86902/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58 --- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index e2d841d6..7513acae 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3.0.0 + - uses: actions/github-script@v3 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index bc1554ae..2b6cdbc9 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-v') steps: - - uses: actions/github-script@v3.0.0 + - uses: actions/github-script@v3 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/synth.metadata b/synth.metadata index d502a6ef..3877fa85 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a19760e79e981e496639cad63382db3982ea2e05" + "sha": "18077e9bb7ebb8c819c019845fad25f968bb8238" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" + "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" } } ], From ac88f2a5082339256f64e43c0b279af888296216 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:02:16 +0100 Subject: [PATCH 034/519] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#382) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `15.1.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2db49715..97c44ba5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 15.1.0 + 16.1.0 pom import From 0bfa2080b3e93927dc4f2ac5ad15c9225031116c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 19 Nov 2020 09:22:37 -0800 Subject: [PATCH 035/519] chore: regenerate README (#383) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-19 17:09:49,768 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-19 17:09:50,698 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/71e05425-91a5-4ef3-9a06-4e8cb3a3eb2a/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 4b2e505a..3dee5e49 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "6f19ad2aa73b2af40a1754a704f05ae5fc4b97c8" + "sha": "ac88f2a5082339256f64e43c0b279af888296216" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" + "sha": "39b7149da4026765385403632db3c6f63db96b2c" } } ] diff --git a/README.md b/README.md index d89aeeea..3bb66994 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 15.1.0 + 16.1.0 pom import From 7c3af364e083c057273b40cb62ac3651e9ceca50 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 20 Nov 2020 08:08:08 -0800 Subject: [PATCH 036/519] chore(java): retry staging portion of the release with backoff (#384) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a571fa0d-937f-4072-b361-6272dcdc7f29/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/68742c6016bf0d16948a572633d17955a8737414 --- .kokoro/common.sh | 1 - .kokoro/release/stage.sh | 17 ++++++++++------- synth.metadata | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.kokoro/common.sh b/.kokoro/common.sh index a8d0ea04..ace89f45 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -25,7 +25,6 @@ function retry_with_backoff { # allow a failures to continue set +e - echo "${command}" ${command} exit_code=$? diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 3c482cbc..16126d2e 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -20,19 +20,22 @@ python3 -m pip install gcp-releasetool python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh +source $(dirname "$0")/../common.sh MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml pushd $(dirname "$0")/../../ setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} +# attempt to stage 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=true \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} if [[ -n "${AUTORELEASE_PR}" ]] then diff --git a/synth.metadata b/synth.metadata index 3877fa85..29c1f165 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "18077e9bb7ebb8c819c019845fad25f968bb8238" + "sha": "0bfa2080b3e93927dc4f2ac5ad15c9225031116c" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" + "sha": "68742c6016bf0d16948a572633d17955a8737414" } } ], From 94ddf67658e73683cd724410c105a43e022c9f28 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Nov 2020 13:12:24 -0800 Subject: [PATCH 037/519] build(java): enable blunderbuss for samples (#385) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/10ed3537-c223-47a2-9e7d-6b4c309f0b8e/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/943bb78606d035001123030067dffcc34f4645f2 --- .github/blunderbuss.yml | 7 +++++++ synth.metadata | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .github/blunderbuss.yml diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml new file mode 100644 index 00000000..1a23ea42 --- /dev/null +++ b/.github/blunderbuss.yml @@ -0,0 +1,7 @@ +# Configuration for the Blunderbuss GitHub app. For more info see +# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +assign_prs_by: +- labels: + - samples + to: + - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 29c1f165..4c09f6fb 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "0bfa2080b3e93927dc4f2ac5ad15c9225031116c" + "sha": "7c3af364e083c057273b40cb62ac3651e9ceca50" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "68742c6016bf0d16948a572633d17955a8737414" + "sha": "943bb78606d035001123030067dffcc34f4645f2" } } ], @@ -57,6 +57,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/blunderbuss.yml", ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", From 71f76506ffbec57e1bf40bec7499652b9684e508 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Dec 2020 22:24:29 +0100 Subject: [PATCH 038/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 (#388) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.15.0` -> `0.16.0` | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.16.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0160-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0150v0160-2020-12-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.15.0...v0.16.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.0 ([#​225](https://www.github.com/googleapis/java-shared-dependencies/issues/225)) ([b78a1ef](https://www.github.com/googleapis/java-shared-dependencies/commit/b78a1ef83ad946b0d29cd0dff46e48fbde44d120)) - update dependency com.google.api-client:google-api-client-bom to v1.31.1 ([#​215](https://www.github.com/googleapis/java-shared-dependencies/issues/215)) ([08d643a](https://www.github.com/googleapis/java-shared-dependencies/commit/08d643aaf289984b87d734274830712af82585b6)) - update dependency com.google.protobuf:protobuf-bom to v3.14.0 ([#​217](https://www.github.com/googleapis/java-shared-dependencies/issues/217)) ([01a9c64](https://www.github.com/googleapis/java-shared-dependencies/commit/01a9c6442906e8482a53712eba95ccc6f7040928)) - update dependency io.grpc:grpc-bom to v1.34.0 ([#​228](https://www.github.com/googleapis/java-shared-dependencies/issues/228)) ([425d1ea](https://www.github.com/googleapis/java-shared-dependencies/commit/425d1eab2a046c365f816f946576e4030e7c3696)) - update gax.version to v1.60.1 ([#​223](https://www.github.com/googleapis/java-shared-dependencies/issues/223)) ([84c75bd](https://www.github.com/googleapis/java-shared-dependencies/commit/84c75bdbd3f86ef7187373289ee08ad3a0c24719)) - update google.core.version to v1.94.0 ([#​212](https://www.github.com/googleapis/java-shared-dependencies/issues/212)) ([764ef5e](https://www.github.com/googleapis/java-shared-dependencies/commit/764ef5e9a2272cd9244a8fc5cc107ffacf9e9d5b))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3eb1ca02..359e4016 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.15.0 + 0.16.0 pom import From 0dbeca57063a05ab0c9715d9fde15856c6f15e97 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 22:24:14 +0000 Subject: [PATCH 039/519] chore: release 1.1.8 (#389) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.8](https://www.github.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8) (2020-12-02) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#388](https://www.github.com/googleapis/java-dataproc/issues/388)) ([71f7650](https://www.github.com/googleapis/java-dataproc/commit/71f76506ffbec57e1bf40bec7499652b9684e508)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 380ad90e..d49bbb78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.8](https://www.github.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8) (2020-12-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#388](https://www.github.com/googleapis/java-dataproc/issues/388)) ([71f7650](https://www.github.com/googleapis/java-dataproc/commit/71f76506ffbec57e1bf40bec7499652b9684e508)) + ### [1.1.7](https://www.github.com/googleapis/java-dataproc/compare/v1.1.6...v1.1.7) (2020-11-17) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index f99079ed..02d1039d 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.8-SNAPSHOT + 1.1.8 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.8-SNAPSHOT + 1.1.8 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 32b63ea6..c6a74b28 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.8-SNAPSHOT + 1.1.8 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.8-SNAPSHOT + 1.1.8 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index cdfbc0d2..3e98d1ca 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 1e068918..88bb68f2 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/pom.xml b/pom.xml index 359e4016..3d07775b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.8-SNAPSHOT + 1.1.8 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8 com.google.cloud google-cloud-dataproc - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 3ae2d967..7b3b3dd7 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8-SNAPSHOT + 1.1.8 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 88cf2ff1..3c284050 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8-SNAPSHOT + 0.89.8 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fa78874d..ce4508ea 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.8-SNAPSHOT + 1.1.8 diff --git a/versions.txt b/versions.txt index 76d5bcd3..d974fe5f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.7:0.89.8-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.7:1.1.8-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.7:1.1.8-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.7:0.89.8-SNAPSHOT -google-cloud-dataproc:1.1.7:1.1.8-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.8:0.89.8 +proto-google-cloud-dataproc-v1:1.1.8:1.1.8 +grpc-google-cloud-dataproc-v1:1.1.8:1.1.8 +grpc-google-cloud-dataproc-v1beta2:0.89.8:0.89.8 +google-cloud-dataproc:1.1.8:1.1.8 From f63ddd1088cdc4c87c52f31f467f423b0f6df999 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2020 09:30:04 +0000 Subject: [PATCH 040/519] chore: release 1.1.9-SNAPSHOT (#390) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 02d1039d..59519aba 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.8 + 1.1.9-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.9-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index c6a74b28..3cb568e9 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.9-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.8 + 1.1.9-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 3e98d1ca..da7c1f41 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 88bb68f2..15efd771 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3d07775b..cc4ebefa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.8 + 1.1.9-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 7b3b3dd7..e5f472b7 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.8 + 1.1.9-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 3c284050..6e0d5b5b 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.8 + 0.89.9-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ce4508ea..57ad85db 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index d974fe5f..68e30781 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.8:0.89.8 -proto-google-cloud-dataproc-v1:1.1.8:1.1.8 -grpc-google-cloud-dataproc-v1:1.1.8:1.1.8 -grpc-google-cloud-dataproc-v1beta2:0.89.8:0.89.8 -google-cloud-dataproc:1.1.8:1.1.8 +proto-google-cloud-dataproc-v1beta2:0.89.8:0.89.9-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.8:1.1.9-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.8:1.1.9-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.8:0.89.9-SNAPSHOT +google-cloud-dataproc:1.1.8:1.1.9-SNAPSHOT From d25a909259f1104dd4102ad357a8eb318fe9c927 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 8 Dec 2020 11:24:05 -0800 Subject: [PATCH 041/519] chore: Update publish_javadoc.sh (#392) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ac2da3dd-6246-4a6b-aec0-9614b3823dfa/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5d11bd2888c38ce1fb6fa6bf25494a4219a73928 --- .kokoro/release/publish_javadoc.sh | 7 ++++--- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index cd10fb27..29388b6c 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader # compile all packages mvn clean install -B -q -DskipTests=true -NAME=google-cloud-dataproc -VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) +export NAME=google-cloud-dataproc +export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs mvn site -B -q @@ -59,7 +59,8 @@ python3 -m docuploader upload . \ popd -# V2 +# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. + mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" pushd target/devsite/reference diff --git a/synth.metadata b/synth.metadata index 4c09f6fb..a2fb75a9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "7c3af364e083c057273b40cb62ac3651e9ceca50" + "sha": "f63ddd1088cdc4c87c52f31f467f423b0f6df999" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "943bb78606d035001123030067dffcc34f4645f2" + "sha": "5d11bd2888c38ce1fb6fa6bf25494a4219a73928" } } ], From 4fac03735c5044ea07d22db640d4eee094b3d305 Mon Sep 17 00:00:00 2001 From: Brad Miro Date: Fri, 11 Dec 2020 17:12:05 -0500 Subject: [PATCH 042/519] chore: updating codeowners with api-dataproc team (#396) Adding @googleapis/api-dataproc team to codeowners --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 44da75c9..1b401261 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -9,7 +9,7 @@ "repo": "googleapis/java-dataproc", "repo_short": "java-dataproc", "distribution_name": "com.google.cloud:google-cloud-dataproc", - "codeowner_team": "@googleapis/yoshi-java", + "codeowner_team": "@googleapis/api-dataproc", "api_id": "dataproc.googleapis.com", "transport": "grpc", "requires_billing": true, From 185358356c18486a260837875cd4790a77fe417f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 11 Dec 2020 14:24:05 -0800 Subject: [PATCH 043/519] chore: regenerate README (#397) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-11 22:14:27,226 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-11 22:14:28,222 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/bad07bb7-a530-4aae-811f-14240cc4fa3a/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 3dee5e49..5e57547a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "ac88f2a5082339256f64e43c0b279af888296216" + "sha": "4fac03735c5044ea07d22db640d4eee094b3d305" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39b7149da4026765385403632db3c6f63db96b2c" + "sha": "996775eca5fd934edac3c2ae34b80ff0395b1717" } } ] diff --git a/README.md b/README.md index 3bb66994..7f2ba850 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.1.7' +compile 'com.google.cloud:google-cloud-dataproc:1.1.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.7" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.8" ``` ## Authentication @@ -143,6 +143,8 @@ 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] 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/dataproc [javadocs]: https://googleapis.dev/java/google-cloud-dataproc/latest/ [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java7.svg From bfd2e191598235e3a1ab36a9a35e1949504b5a54 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Dec 2020 20:56:19 +0100 Subject: [PATCH 044/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.1.8 (#394) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | patch | `1.1.7` -> `1.1.8` | --- ### Release Notes
googleapis/java-dataproc ### [`v1.1.8`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​118-httpswwwgithubcomgoogleapisjava-dataproccomparev117v118-2020-12-02) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a79c51ac..15eb0cef 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8 From b14daaea0aec34f9d587d7181e6f883397bd8622 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 14 Dec 2020 12:52:47 -0800 Subject: [PATCH 045/519] chore: regenerate README (#400) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-14 20:04:48,139 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-14 20:04:49,105 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/24e2f765-662c-4fcc-89c0-f0608f3d3f13/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 5e57547a..35a03974 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "4fac03735c5044ea07d22db640d4eee094b3d305" + "sha": "bfd2e191598235e3a1ab36a9a35e1949504b5a54" } }, { diff --git a/README.md b/README.md index 7f2ba850..fe4da82b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.1.7 + 1.1.8 ``` From 2234430a65e1efc416f75b275e922592f2d71ed2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Dec 2020 22:38:20 +0100 Subject: [PATCH 046/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 (#399) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | patch | `0.16.0` -> `0.16.1` | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.16.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0161-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0160v0161-2020-12-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.16.0...v0.16.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cc4ebefa..36848c0a 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.16.0 + 0.16.1 pom import From 8725b5f6a86f324ebb9b3036fbfc52e27d9f84b0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Dec 2020 22:52:06 +0000 Subject: [PATCH 047/519] chore: release 1.1.9 (#401) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.9](https://www.github.com/googleapis/java-dataproc/compare/v1.1.8...v1.1.9) (2020-12-14) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#399](https://www.github.com/googleapis/java-dataproc/issues/399)) ([2234430](https://www.github.com/googleapis/java-dataproc/commit/2234430a65e1efc416f75b275e922592f2d71ed2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d49bbb78..6df983fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.9](https://www.github.com/googleapis/java-dataproc/compare/v1.1.8...v1.1.9) (2020-12-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#399](https://www.github.com/googleapis/java-dataproc/issues/399)) ([2234430](https://www.github.com/googleapis/java-dataproc/commit/2234430a65e1efc416f75b275e922592f2d71ed2)) + ### [1.1.8](https://www.github.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8) (2020-12-02) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 59519aba..40b20dc8 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.9-SNAPSHOT + 1.1.9 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.9-SNAPSHOT + 1.1.9 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 3cb568e9..4cb3016c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.9-SNAPSHOT + 1.1.9 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.9-SNAPSHOT + 1.1.9 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index da7c1f41..4d8e3167 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 15efd771..14497660 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/pom.xml b/pom.xml index 36848c0a..43945ad4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.9-SNAPSHOT + 1.1.9 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9 com.google.cloud google-cloud-dataproc - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e5f472b7..fe6df51d 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9-SNAPSHOT + 1.1.9 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 6e0d5b5b..c287ca35 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9-SNAPSHOT + 0.89.9 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 57ad85db..1c7fa11b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.9-SNAPSHOT + 1.1.9 diff --git a/versions.txt b/versions.txt index 68e30781..0775e93a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.8:0.89.9-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.8:1.1.9-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.8:1.1.9-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.8:0.89.9-SNAPSHOT -google-cloud-dataproc:1.1.8:1.1.9-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.9:0.89.9 +proto-google-cloud-dataproc-v1:1.1.9:1.1.9 +grpc-google-cloud-dataproc-v1:1.1.9:1.1.9 +grpc-google-cloud-dataproc-v1beta2:0.89.9:0.89.9 +google-cloud-dataproc:1.1.9:1.1.9 From c6b56c59325c60f9f34b1a783629f9f0f5ebb916 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 15 Dec 2020 09:16:07 +0000 Subject: [PATCH 048/519] chore: release 1.1.10-SNAPSHOT (#402) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 40b20dc8..e6984fe4 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.9 + 1.1.10-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.9 + 1.1.10-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 4cb3016c..8d46d81e 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.9 + 1.1.10-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.9 + 1.1.10-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 4d8e3167..a96ce17d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 14497660..4d5e8fdb 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index 43945ad4..c565c828 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.9 + 1.1.10-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index fe6df51d..11ed4486 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.9 + 1.1.10-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index c287ca35..317cd6df 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.9 + 0.89.10-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1c7fa11b..abab3b89 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.9 + 1.1.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index 0775e93a..18469fd7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.9:0.89.9 -proto-google-cloud-dataproc-v1:1.1.9:1.1.9 -grpc-google-cloud-dataproc-v1:1.1.9:1.1.9 -grpc-google-cloud-dataproc-v1beta2:0.89.9:0.89.9 -google-cloud-dataproc:1.1.9:1.1.9 +proto-google-cloud-dataproc-v1beta2:0.89.9:0.89.10-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.9:1.1.10-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.9:1.1.10-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.9:0.89.10-SNAPSHOT +google-cloud-dataproc:1.1.9:1.1.10-SNAPSHOT From 6e738949e8aea8323e83a21d31e7cc26f397653b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 19:32:20 +0100 Subject: [PATCH 049/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 (#404) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.16.1` -> `0.17.0` | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.17.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0170-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0161v0170-2020-12-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.16.1...v0.17.0) ##### Dependencies - update dependency com.google.guava:guava-bom to v30.1-android ([#​236](https://www.github.com/googleapis/java-shared-dependencies/issues/236)) ([78ebf7f](https://www.github.com/googleapis/java-shared-dependencies/commit/78ebf7fcec3ec0308ccd5103b719f02dde7ec6d8)) - update dependency io.grpc:grpc-bom to v1.34.1 ([#​238](https://www.github.com/googleapis/java-shared-dependencies/issues/238)) ([ee7e020](https://www.github.com/googleapis/java-shared-dependencies/commit/ee7e020a4631f2b288d1c6f5d681423d156e3c2d)) - update iam.version to v1.0.5 ([#​237](https://www.github.com/googleapis/java-shared-dependencies/issues/237)) ([bbe6be6](https://www.github.com/googleapis/java-shared-dependencies/commit/bbe6be650a93cf365f2439ae9c8bebf2ade83ddd)) ##### [0.16.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.16.0...v0.16.1) (2020-12-14) ##### Dependencies - rollback gRPC to 1.33.1 ([#​234](https://www.github.com/googleapis/java-shared-dependencies/issues/234)) ([67cc384](https://www.github.com/googleapis/java-shared-dependencies/commit/67cc384bacab8592d5bbc92db2469affee473eb7)) - update dependency com.google.auth:google-auth-library-bom to v0.22.1 ([#​229](https://www.github.com/googleapis/java-shared-dependencies/issues/229)) ([1c13161](https://www.github.com/googleapis/java-shared-dependencies/commit/1c13161fa289cd5f3923f389fd5b14f3b7b4a84d)) - update dependency com.google.auth:google-auth-library-bom to v0.22.2 ([#​235](https://www.github.com/googleapis/java-shared-dependencies/issues/235)) ([67434eb](https://www.github.com/googleapis/java-shared-dependencies/commit/67434eb4bb0789abcabb3055155672b2c2e70125)) - update iam.version to v1.0.4 ([#​231](https://www.github.com/googleapis/java-shared-dependencies/issues/231)) ([5edf99e](https://www.github.com/googleapis/java-shared-dependencies/commit/5edf99e0149a1b70eb52b8921e9eb04fb84d9160))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c565c828..665860b3 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.16.1 + 0.17.0 pom import From 18269a934c5534b444c0f307c323c0e74e9966f1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 15 Dec 2020 13:56:05 -0800 Subject: [PATCH 050/519] chore: regenerate common templates (#398) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a0fa0bb5-ad7e-435c-ac39-17051adf64ae/targets - [ ] To automatically regenerate this PR, check this box. --- .github/CODEOWNERS | 6 +++--- synth.metadata | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8787bdfe..d0d7c99f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,9 +4,9 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -# The @googleapis/yoshi-java is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/yoshi-java -**/*.java @googleapis/yoshi-java +# The @googleapis/api-dataproc is the default owner for changes in this repo +* @googleapis/yoshi-java @googleapis/api-dataproc +**/*.java @googleapis/api-dataproc # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers diff --git a/synth.metadata b/synth.metadata index a2fb75a9..55afd220 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f63ddd1088cdc4c87c52f31f467f423b0f6df999" + "sha": "185358356c18486a260837875cd4790a77fe417f" } }, { From fdbd7cc5b0962ce34418a2ac12f33a3b58520c07 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:32:10 +0100 Subject: [PATCH 051/519] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#406) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 97c44ba5..a0305ea6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From 41fda31e370ac99215affd39bde20514c76210a3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 15 Dec 2020 15:00:31 -0800 Subject: [PATCH 052/519] chore: regenerate README (#407) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-15 22:38:18,457 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-15 22:38:19,325 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/2fc41ae3-89b5-452c-8a68-bfc9ad3efad9/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 35a03974..b4d0c283 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "bfd2e191598235e3a1ab36a9a35e1949504b5a54" + "sha": "fdbd7cc5b0962ce34418a2ac12f33a3b58520c07" } }, { diff --git a/README.md b/README.md index fe4da82b..6218c7d9 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From a4dc24badcadb09eba380f8a3a97287755d6a227 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 16 Dec 2020 01:22:42 +0100 Subject: [PATCH 053/519] samples(deps): update dependency com.google.cloud:google-cloud-storage to v1.113.6 (#393) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 15eb0cef..6225ae9b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.4 + 1.113.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index abab3b89..d345cd30 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.4 + 1.113.6 junit From 4bd6eeaea6079e49c0910c61ad6c116725e59197 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 16 Dec 2020 00:32:05 +0000 Subject: [PATCH 054/519] chore: release 1.1.10 (#405) :robot: I have created a release \*beep\* \*boop\* --- ### [1.1.10](https://www.github.com/googleapis/java-dataproc/compare/v1.1.9...v1.1.10) (2020-12-16) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#404](https://www.github.com/googleapis/java-dataproc/issues/404)) ([6e73894](https://www.github.com/googleapis/java-dataproc/commit/6e738949e8aea8323e83a21d31e7cc26f397653b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6df983fe..219b7018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.1.10](https://www.github.com/googleapis/java-dataproc/compare/v1.1.9...v1.1.10) (2020-12-16) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#404](https://www.github.com/googleapis/java-dataproc/issues/404)) ([6e73894](https://www.github.com/googleapis/java-dataproc/commit/6e738949e8aea8323e83a21d31e7cc26f397653b)) + ### [1.1.9](https://www.github.com/googleapis/java-dataproc/compare/v1.1.8...v1.1.9) (2020-12-14) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e6984fe4..3aac9375 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.10-SNAPSHOT + 1.1.10 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.10-SNAPSHOT + 1.1.10 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 8d46d81e..faa6b85d 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.10-SNAPSHOT + 1.1.10 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.10-SNAPSHOT + 1.1.10 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index a96ce17d..ca70ba6b 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 4d5e8fdb..d98ed86c 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/pom.xml b/pom.xml index 665860b3..123da206 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.10-SNAPSHOT + 1.1.10 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10 com.google.cloud google-cloud-dataproc - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 11ed4486..b2269fea 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10-SNAPSHOT + 1.1.10 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 317cd6df..827cafd3 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10-SNAPSHOT + 0.89.10 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d345cd30..26587937 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.10-SNAPSHOT + 1.1.10 diff --git a/versions.txt b/versions.txt index 18469fd7..74df9806 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.9:0.89.10-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.9:1.1.10-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.9:1.1.10-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.9:0.89.10-SNAPSHOT -google-cloud-dataproc:1.1.9:1.1.10-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.89.10:0.89.10 +proto-google-cloud-dataproc-v1:1.1.10:1.1.10 +grpc-google-cloud-dataproc-v1:1.1.10:1.1.10 +grpc-google-cloud-dataproc-v1beta2:0.89.10:0.89.10 +google-cloud-dataproc:1.1.10:1.1.10 From d1a9c96a4d86611350c5b07853d419f1ec579b8d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 16 Dec 2020 09:14:02 +0000 Subject: [PATCH 055/519] chore: release 1.1.11-SNAPSHOT (#409) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3aac9375..9f217272 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.10 + 1.1.11-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.10 + 1.1.11-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index faa6b85d..4c2a7363 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.10 + 1.1.11-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.10 + 1.1.11-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index ca70ba6b..6759d662 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index d98ed86c..b2413b7d 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/pom.xml b/pom.xml index 123da206..ae698113 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.10 + 1.1.11-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index b2269fea..89b5625c 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.10 + 1.1.11-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 827cafd3..0061e753 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.10 + 0.89.11-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 26587937..39cbc9e3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.10 + 1.1.11-SNAPSHOT diff --git a/versions.txt b/versions.txt index 74df9806..dfb71e1e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.10:0.89.10 -proto-google-cloud-dataproc-v1:1.1.10:1.1.10 -grpc-google-cloud-dataproc-v1:1.1.10:1.1.10 -grpc-google-cloud-dataproc-v1beta2:0.89.10:0.89.10 -google-cloud-dataproc:1.1.10:1.1.10 +proto-google-cloud-dataproc-v1beta2:0.89.10:0.89.11-SNAPSHOT +proto-google-cloud-dataproc-v1:1.1.10:1.1.11-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.1.10:1.1.11-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.89.10:0.89.11-SNAPSHOT +google-cloud-dataproc:1.1.10:1.1.11-SNAPSHOT From 299b16879c3ee155b300fbb53ca4735e580cfe83 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 16 Dec 2020 01:26:02 -0800 Subject: [PATCH 056/519] chore: regenerate README (#410) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-16 09:16:45,499 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-16 09:16:46,384 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/7936cae1-1899-4a2b-9415-df55fad83bd7/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index b4d0c283..687dd215 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "fdbd7cc5b0962ce34418a2ac12f33a3b58520c07" + "sha": "d1a9c96a4d86611350c5b07853d419f1ec579b8d" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "996775eca5fd934edac3c2ae34b80ff0395b1717" + "sha": "3f67ceece7e797a5736a25488aae35405649b90b" } } ] diff --git a/README.md b/README.md index 6218c7d9..4b638422 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.1.8' +compile 'com.google.cloud:google-cloud-dataproc:1.1.10' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.8" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.10" ``` ## Authentication From b02deda90e24aea8b6f07a2572686d73ca830388 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 16 Dec 2020 08:42:20 -0800 Subject: [PATCH 057/519] ci(java): ignore bot users for generate-files-bot (#412) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/327b9688-150a-41d8-be5c-d8f2a0d78277/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/3f67ceece7e797a5736a25488aae35405649b90b --- .github/generated-files-bot.yml | 4 ++++ synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 20f3acc2..47c2ba13 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -5,3 +5,7 @@ externalManifests: - type: json file: '.github/readme/synth.metadata/synth.metadata' jsonpath: '$.generatedFiles[*]' +ignoreAuthors: +- 'renovate-bot' +- 'yoshi-automation' +- 'release-please[bot]' diff --git a/synth.metadata b/synth.metadata index 55afd220..b1183f80 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "185358356c18486a260837875cd4790a77fe417f" + "sha": "299b16879c3ee155b300fbb53ca4735e580cfe83" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5d11bd2888c38ce1fb6fa6bf25494a4219a73928" + "sha": "3f67ceece7e797a5736a25488aae35405649b90b" } } ], From e8025d4a5dd68b430b25e60cac823f570bdab3f4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 28 Dec 2020 09:40:48 -0800 Subject: [PATCH 058/519] feat(v1beta2): remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata (#411) Breaking changes: 1. The `DOCKER` and `FLINK` values have been removed from the `Component` enum, and an `HBASE` value was added. Other changes: 1. There is a new `temp_bucket` field in `ClusterConfig`. 2. There is a new `preemptibility` field in `InstanceGroupConfig`. 3. The `project_id` field of `JobReference` is now optional instead of required. 4. There is a new `dag_timeout` field in `WorkflowTemplate`. 5. There are new `dag_timeout`, `dag_start_time`, and `dag_end_time` fields in `WorkflowMetadata`. 6. There are various updates to the doc comments. PiperOrigin-RevId: 347036369 Source-Link: https://github.com/googleapis/googleapis/commit/6d65640b1fcbdf26ea76cb720de0ac138cae9bed PiperOrigin-RevId: 347029491 Source-Link: https://github.com/googleapis/googleapis/commit/bddb3d7479894576e61a6c88fa745bb24f4c98f7 PiperOrigin-RevId: 346372957 Source-Link: https://github.com/googleapis/googleapis/commit/857f70daef9f4c38f042fb3dfb7b8423ae18fd19 PiperOrigin-RevId: 346132878 Source-Link: https://github.com/googleapis/googleapis/commit/565b9a5f01d7154825c657bca5ee244e86aad918 PiperOrigin-RevId: 345127100 Source-Link: https://github.com/googleapis/googleapis/commit/269083b6ed01aa5a1f445462fcc61e05471cd8f8 --- .../v1/AutoscalingPolicyServiceClient.java | 492 +++----- .../v1/AutoscalingPolicyServiceSettings.java | 36 +- .../dataproc/v1/ClusterControllerClient.java | 623 ++-------- .../v1/ClusterControllerSettings.java | 95 +- .../dataproc/v1/JobControllerClient.java | 448 +------ .../dataproc/v1/JobControllerSettings.java | 44 +- .../v1/WorkflowTemplateServiceClient.java | 1045 ++++++----------- .../v1/WorkflowTemplateServiceSettings.java | 94 +- .../cloud/dataproc/v1/package-info.java | 58 +- .../v1/stub/AutoscalingPolicyServiceStub.java | 9 +- .../AutoscalingPolicyServiceStubSettings.java | 336 ++---- .../v1/stub/ClusterControllerStub.java | 32 +- .../stub/ClusterControllerStubSettings.java | 327 +++--- ...toscalingPolicyServiceCallableFactory.java | 40 +- .../GrpcAutoscalingPolicyServiceStub.java | 39 +- .../GrpcClusterControllerCallableFactory.java | 40 +- .../v1/stub/GrpcClusterControllerStub.java | 191 ++- .../GrpcJobControllerCallableFactory.java | 40 +- .../v1/stub/GrpcJobControllerStub.java | 123 +- ...orkflowTemplateServiceCallableFactory.java | 40 +- .../stub/GrpcWorkflowTemplateServiceStub.java | 191 +-- .../dataproc/v1/stub/JobControllerStub.java | 11 +- .../v1/stub/JobControllerStubSettings.java | 310 ++--- .../v1/stub/WorkflowTemplateServiceStub.java | 30 +- .../WorkflowTemplateServiceStubSettings.java | 348 +++--- .../AutoscalingPolicyServiceClient.java | 492 +++----- .../AutoscalingPolicyServiceSettings.java | 36 +- .../v1beta2/ClusterControllerClient.java | 613 ++-------- .../v1beta2/ClusterControllerSettings.java | 93 +- .../dataproc/v1beta2/JobControllerClient.java | 448 +------ .../v1beta2/JobControllerSettings.java | 44 +- .../WorkflowTemplateServiceClient.java | 1045 ++++++----------- .../WorkflowTemplateServiceSettings.java | 94 +- .../cloud/dataproc/v1beta2/package-info.java | 58 +- .../stub/AutoscalingPolicyServiceStub.java | 9 +- .../AutoscalingPolicyServiceStubSettings.java | 338 ++---- .../v1beta2/stub/ClusterControllerStub.java | 32 +- .../stub/ClusterControllerStubSettings.java | 323 +++-- ...toscalingPolicyServiceCallableFactory.java | 40 +- .../GrpcAutoscalingPolicyServiceStub.java | 39 +- .../GrpcClusterControllerCallableFactory.java | 40 +- .../stub/GrpcClusterControllerStub.java | 189 ++- .../GrpcJobControllerCallableFactory.java | 40 +- .../v1beta2/stub/GrpcJobControllerStub.java | 123 +- ...orkflowTemplateServiceCallableFactory.java | 40 +- .../stub/GrpcWorkflowTemplateServiceStub.java | 191 +-- .../v1beta2/stub/JobControllerStub.java | 11 +- .../stub/JobControllerStubSettings.java | 308 ++--- .../stub/WorkflowTemplateServiceStub.java | 30 +- .../WorkflowTemplateServiceStubSettings.java | 342 +++--- .../AutoscalingPolicyServiceClientTest.java | 408 +++++-- .../v1/ClusterControllerClientTest.java | 288 +++-- .../v1/ClusterControllerSmokeTest.java | 65 - .../dataproc/v1/JobControllerClientTest.java | 324 +++-- .../v1/MockAutoscalingPolicyService.java | 6 +- .../v1/MockAutoscalingPolicyServiceImpl.java | 26 +- .../dataproc/v1/MockClusterController.java | 6 +- .../v1/MockClusterControllerImpl.java | 30 +- .../cloud/dataproc/v1/MockJobController.java | 6 +- .../dataproc/v1/MockJobControllerImpl.java | 34 +- .../v1/MockWorkflowTemplateService.java | 6 +- .../v1/MockWorkflowTemplateServiceImpl.java | 34 +- .../v1/WorkflowTemplateServiceClientTest.java | 718 ++++++++--- .../AutoscalingPolicyServiceClientTest.java | 408 +++++-- .../v1beta2/ClusterControllerClientTest.java | 282 ++--- .../v1beta2/ClusterControllerSmokeTest.java | 65 - .../v1beta2/JobControllerClientTest.java | 339 +++--- .../v1beta2/MockAutoscalingPolicyService.java | 6 +- .../MockAutoscalingPolicyServiceImpl.java | 26 +- .../v1beta2/MockClusterController.java | 6 +- .../v1beta2/MockClusterControllerImpl.java | 30 +- .../dataproc/v1beta2/MockJobController.java | 6 +- .../v1beta2/MockJobControllerImpl.java | 34 +- .../v1beta2/MockWorkflowTemplateService.java | 6 +- .../MockWorkflowTemplateServiceImpl.java | 34 +- .../WorkflowTemplateServiceClientTest.java | 725 +++++++++--- .../v1beta2/WorkflowTemplateServiceGrpc.java | 12 +- .../dataproc/v1/AutoscalingPolicyName.java | 153 +-- .../cloud/dataproc/v1/LocationName.java | 98 +- .../google/cloud/dataproc/v1/RegionName.java | 97 +- .../dataproc/v1/WorkflowTemplateName.java | 153 +-- .../clirr-ignored-differences.xml | 22 + .../v1beta2/AutoscalingPolicyName.java | 153 +-- .../v1beta2/BasicYarnAutoscalingConfig.java | 80 +- .../BasicYarnAutoscalingConfigOrBuilder.java | 20 +- .../cloud/dataproc/v1beta2/ClusterConfig.java | 317 ++++- .../v1beta2/ClusterConfigOrBuilder.java | 61 +- .../cloud/dataproc/v1beta2/ClusterName.java | 223 ++++ .../cloud/dataproc/v1beta2/ClustersProto.java | 413 +++---- .../cloud/dataproc/v1beta2/Component.java | 42 +- .../v1beta2/CreateClusterRequest.java | 63 +- .../CreateClusterRequestOrBuilder.java | 18 +- .../v1beta2/DeleteClusterRequest.java | 63 +- .../DeleteClusterRequestOrBuilder.java | 18 +- .../dataproc/v1beta2/GceClusterConfig.java | 14 +- .../v1beta2/GceClusterConfigOrBuilder.java | 4 +- .../dataproc/v1beta2/InstanceGroupConfig.java | 376 ++++++ .../v1beta2/InstanceGroupConfigOrBuilder.java | 37 + .../cloud/dataproc/v1beta2/JobReference.java | 42 +- .../v1beta2/JobReferenceOrBuilder.java | 12 +- .../cloud/dataproc/v1beta2/JobsProto.java | 2 +- .../dataproc/v1beta2/KerberosConfig.java | 16 +- .../v1beta2/KerberosConfigOrBuilder.java | 4 +- .../dataproc/v1beta2/LifecycleConfig.java | 36 +- .../v1beta2/LifecycleConfigOrBuilder.java | 9 +- .../cloud/dataproc/v1beta2/LocationName.java | 98 +- .../cloud/dataproc/v1beta2/OrderedJob.java | 1000 +++++++++++++--- .../dataproc/v1beta2/OrderedJobOrBuilder.java | 236 +++- .../cloud/dataproc/v1beta2/PySparkJob.java | 91 +- .../dataproc/v1beta2/PySparkJobOrBuilder.java | 28 +- .../cloud/dataproc/v1beta2/RegionName.java | 97 +- .../cloud/dataproc/v1beta2/SharedProto.java | 16 +- .../dataproc/v1beta2/SoftwareConfig.java | 14 +- .../v1beta2/SoftwareConfigOrBuilder.java | 4 +- .../cloud/dataproc/v1beta2/SparkJob.java | 104 +- .../dataproc/v1beta2/SparkJobOrBuilder.java | 32 +- .../cloud/dataproc/v1beta2/SparkRJob.java | 104 +- .../dataproc/v1beta2/SparkRJobOrBuilder.java | 32 +- .../dataproc/v1beta2/TemplateParameter.java | 104 +- .../v1beta2/TemplateParameterOrBuilder.java | 32 +- .../v1beta2/UpdateClusterRequest.java | 63 +- .../UpdateClusterRequestOrBuilder.java | 18 +- .../dataproc/v1beta2/WorkflowMetadata.java | 985 ++++++++++++++++ .../v1beta2/WorkflowMetadataOrBuilder.java | 144 +++ .../dataproc/v1beta2/WorkflowTemplate.java | 380 ++++++ .../v1beta2/WorkflowTemplateName.java | 153 +-- .../v1beta2/WorkflowTemplateOrBuilder.java | 62 + .../v1beta2/WorkflowTemplatesProto.java | 383 +++--- .../v1beta2/autoscaling_policies.proto | 64 +- .../cloud/dataproc/v1beta2/clusters.proto | 198 +++- .../google/cloud/dataproc/v1beta2/jobs.proto | 29 +- .../cloud/dataproc/v1beta2/shared.proto | 9 +- .../dataproc/v1beta2/workflow_templates.proto | 129 +- synth.metadata | 11 +- 134 files changed, 11518 insertions(+), 9638 deletions(-) delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerSmokeTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSmokeTest.java create mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 42681501..d85ce9d3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.ApiFunction; @@ -34,24 +35,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The API interface for managing autoscaling policies in the Dataproc API. * *

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: * - *

- * 
- * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the autoscalingPolicyServiceClient object to clean up + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class AutoscalingPolicyServiceClient implements BackgroundResource { private final AutoscalingPolicyServiceSettings settings; private final AutoscalingPolicyServiceStub stub; @@ -125,7 +114,7 @@ public static final AutoscalingPolicyServiceClient create( /** * Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use AutoscalingPolicyServiceSettings}. + * calls. This is for advanced usage - prefer using create(AutoscalingPolicyServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub) { @@ -158,31 +147,26 @@ public AutoscalingPolicyServiceStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region + * has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the + * location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - RegionName parent, AutoscalingPolicy policy) { + LocationName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -191,31 +175,26 @@ public final AutoscalingPolicy createAutoscalingPolicy( return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region + * has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the + * location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - LocationName parent, AutoscalingPolicy policy) { + RegionName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -224,26 +203,21 @@ public final AutoscalingPolicy createAutoscalingPolicy( return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent.toString(), policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region + * has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the + * location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -253,24 +227,10 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setPolicy(policy)
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 */ @@ -278,46 +238,23 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe return createAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setPolicy(policy)
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable createAutoscalingPolicyCallable() { return stub.createAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
-   * }
-   * 
- * * @param policy Required. The updated autoscaling policy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -327,24 +264,12 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) return updateAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
-   *     .setPolicy(policy)
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 */ @@ -352,52 +277,36 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe return updateAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
-   *     .setPolicy(policy)
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateAutoscalingPolicyCallable() { return stub.updateAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) { @@ -408,27 +317,23 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) return getAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name.toString());
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy getAutoscalingPolicy(String name) { @@ -437,22 +342,10 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) { return getAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 */ @@ -460,53 +353,35 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest return getAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getAutoscalingPolicyCallable() { return stub.getAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -514,30 +389,24 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -545,27 +414,21 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent) { @@ -574,24 +437,10 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(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 */ @@ -600,85 +449,46 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( return listAutoscalingPoliciesPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListAutoscalingPoliciesPagedResponse> future = autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (AutoscalingPolicy element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listAutoscalingPoliciesPagedCallable() { return stub.listAutoscalingPoliciesPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListAutoscalingPoliciesResponse response = autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
-   *     for (AutoscalingPolicy element : response.getPoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listAutoscalingPoliciesCallable() { return stub.listAutoscalingPoliciesCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.delete`, the resource name of the - * policy has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { @@ -689,28 +499,24 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { deleteAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name.toString());
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.delete`, the resource name of the - * policy has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteAutoscalingPolicy(String name) { @@ -719,23 +525,11 @@ public final void deleteAutoscalingPolicy(String name) { deleteAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(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 */ @@ -743,24 +537,12 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request deleteAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteAutoscalingPolicyCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index 36d59fbf..1ca5daa8 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -34,7 +35,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}. * @@ -51,24 +52,26 @@ * *

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
  *     .createAutoscalingPolicySettings()
  *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ *         autoscalingPolicyServiceSettingsBuilder
+ *             .createAutoscalingPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
- * 
- * 
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + * autoscalingPolicyServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ public UnaryCallSettings createAutoscalingPolicySettings() { @@ -168,18 +171,15 @@ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOExc /** Builder for AutoscalingPolicyServiceSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); - } - protected Builder(AutoscalingPolicyServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -188,11 +188,15 @@ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); + } + public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 371777be..ae80f94e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.ApiFunction; @@ -39,7 +40,7 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The ClusterControllerService provides methods to manage clusters of Compute * Engine instances. @@ -47,18 +48,7 @@ *

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: * - *

- * 
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   String clusterName = "";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the clusterControllerClient object to clean up resources + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * ClusterControllerClient clusterControllerClient =
  *     ClusterControllerClient.create(clusterControllerSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ClusterControllerClient clusterControllerClient =
  *     ClusterControllerClient.create(clusterControllerSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class ClusterControllerClient implements BackgroundResource { private final ClusterControllerSettings settings; private final ClusterControllerStub stub; @@ -132,7 +120,7 @@ public static final ClusterControllerClient create(ClusterControllerSettings set /** * Constructs an instance of ClusterControllerClient, using the given stub for making calls. This - * is for advanced usage - prefer to use ClusterControllerSettings}. + * is for advanced usage - prefer using create(ClusterControllerSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final ClusterControllerClient create(ClusterControllerStub stub) { @@ -170,37 +158,22 @@ public ClusterControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. * @param cluster Required. The cluster to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture createClusterAsync( String projectId, String region, Cluster cluster) { CreateClusterRequest request = @@ -212,115 +185,51 @@ public final OperationFuture createClusterAsy return createClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture createClusterAsync( CreateClusterRequest request) { return createClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.createClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable createClusterOperationCallable() { return stub.createClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.createClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable createClusterCallable() { return stub.createClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. @@ -348,8 +257,6 @@ public final UnaryCallable createClusterCallabl * change autoscaling policies</td> </tr> </tbody> </table> * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateClusterAsync( String projectId, String region, String clusterName, Cluster cluster, FieldMask updateMask) { UpdateClusterRequest request = @@ -363,133 +270,57 @@ public final OperationFuture updateClusterAsy return updateClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateClusterAsync( UpdateClusterRequest request) { return updateClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable updateClusterOperationCallable() { return stub.updateClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.updateClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateClusterCallable() { return stub.updateClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture deleteClusterAsync( String projectId, String region, String clusterName) { DeleteClusterRequest request = @@ -501,250 +332,49 @@ public final OperationFuture deleteClusterAsync return deleteClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   clusterControllerClient.deleteClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture deleteClusterAsync( DeleteClusterRequest request) { return deleteClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   OperationFuture<Empty, ClusterOperationMetadata> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable deleteClusterOperationCallable() { return stub.deleteClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.deleteClusterCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteClusterCallable() { return stub.deleteClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
-   * }
-   * 
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - diagnoseClusterAsync(String projectId, String region, String clusterName) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return diagnoseClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - diagnoseClusterAsync(DiagnoseClusterRequest request) { - return diagnoseClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   OperationFuture<DiagnoseClusterResults, ClusterOperationMetadata> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   DiagnoseClusterResults response = future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationCallable() { - return stub.diagnoseClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.diagnoseClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable diagnoseClusterCallable() { - return stub.diagnoseClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -761,26 +391,10 @@ public final Cluster getCluster(String projectId, String region, String clusterN return getCluster(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   Cluster response = clusterControllerClient.getCluster(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 */ @@ -788,48 +402,20 @@ public final Cluster getCluster(GetClusterRequest request) { return getClusterCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Cluster> future = clusterControllerClient.getClusterCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getClusterCallable() { return stub.getClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -841,23 +427,10 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg return listClusters(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String filter = "";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -888,26 +461,10 @@ public final ListClustersPagedResponse listClusters( return listClusters(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   for (Cluster element : clusterControllerClient.listClusters(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 */ @@ -915,66 +472,102 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) return listClustersPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   ApiFuture<ListClustersPagedResponse> future = clusterControllerClient.listClustersPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Cluster element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listClustersPagedCallable() { return stub.listClustersPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   while (true) {
-   *     ListClustersResponse response = clusterControllerClient.listClustersCallable().call(request);
-   *     for (Cluster element : response.getClustersList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listClustersCallable() { return stub.listClustersCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains + * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). + * + * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs + * to. + * @param region Required. The Dataproc region in which to handle the request. + * @param clusterName Required. The cluster name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + diagnoseClusterAsync(String projectId, String region, String clusterName) { + DiagnoseClusterRequest request = + DiagnoseClusterRequest.newBuilder() + .setProjectId(projectId) + .setRegion(region) + .setClusterName(clusterName) + .build(); + return diagnoseClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains + * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). + * + * @param request The request 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 + diagnoseClusterAsync(DiagnoseClusterRequest request) { + return diagnoseClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains + * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). + * + *

Sample code: + */ + public final OperationCallable< + DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> + diagnoseClusterOperationCallable() { + return stub.diagnoseClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains + * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). + * + *

Sample code: + */ + public final UnaryCallable diagnoseClusterCallable() { + return stub.diagnoseClusterCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index 421263de..b8b22b72 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link ClusterControllerClient}. * @@ -53,31 +54,30 @@ * *

For example, to set the total timeout of getCluster to 30 seconds: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
+ *         clusterControllerSettingsBuilder
+ *             .getClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class ClusterControllerSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).createClusterSettings(); } /** Returns the object with the settings used for calls to createCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings createClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).createClusterOperationSettings(); @@ -89,8 +89,6 @@ public UnaryCallSettings updateClusterSettings( } /** Returns the object with the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings updateClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).updateClusterOperationSettings(); @@ -102,38 +100,34 @@ public UnaryCallSettings deleteClusterSettings( } /** Returns the object with the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings deleteClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterOperationSettings(); } + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).getClusterSettings(); + } + + /** Returns the object with the settings used for calls to listClusters. */ + public PagedCallSettings + listClustersSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).listClustersSettings(); + } + /** Returns the object with the settings used for calls to diagnoseCluster. */ public UnaryCallSettings diagnoseClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterSettings(); } /** Returns the object with the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> diagnoseClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterOperationSettings(); } - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).getClusterSettings(); - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).listClustersSettings(); - } - public static final ClusterControllerSettings create(ClusterControllerStubSettings stub) throws IOException { return new ClusterControllerSettings.Builder(stub.toBuilder()).build(); @@ -194,18 +188,15 @@ protected ClusterControllerSettings(Builder settingsBuilder) throws IOException /** Builder for ClusterControllerSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(ClusterControllerStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(ClusterControllerStubSettings.newBuilder()); - } - protected Builder(ClusterControllerSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -214,11 +205,15 @@ protected Builder(ClusterControllerStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(ClusterControllerStubSettings.newBuilder()); + } + public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { return ((ClusterControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -237,8 +232,6 @@ public UnaryCallSettings.Builder createClusterS } /** Returns the builder for the settings used for calls to createCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder createClusterOperationSettings() { return getStubSettingsBuilder().createClusterOperationSettings(); @@ -250,8 +243,6 @@ public UnaryCallSettings.Builder updateClusterS } /** Returns the builder for the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder updateClusterOperationSettings() { return getStubSettingsBuilder().updateClusterOperationSettings(); @@ -263,27 +254,11 @@ public UnaryCallSettings.Builder deleteClusterS } /** Returns the builder for the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder deleteClusterOperationSettings() { return getStubSettingsBuilder().deleteClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return getStubSettingsBuilder().diagnoseClusterSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings() { - return getStubSettingsBuilder().diagnoseClusterOperationSettings(); - } - /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getStubSettingsBuilder().getClusterSettings(); @@ -296,6 +271,18 @@ public UnaryCallSettings.Builder getClusterSettings( return getStubSettingsBuilder().listClustersSettings(); } + /** Returns the builder for the settings used for calls to diagnoseCluster. */ + public UnaryCallSettings.Builder diagnoseClusterSettings() { + return getStubSettingsBuilder().diagnoseClusterSettings(); + } + + /** Returns the builder for the settings used for calls to diagnoseCluster. */ + public OperationCallSettings.Builder< + DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> + diagnoseClusterOperationSettings() { + return getStubSettingsBuilder().diagnoseClusterOperationSettings(); + } + @Override public ClusterControllerSettings build() throws IOException { return new ClusterControllerSettings(this); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 51856e4c..ca6eb688 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.ApiFunction; @@ -38,25 +39,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The JobController provides methods to manage jobs. * *

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: * - *

- * 
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the jobControllerClient object to clean up resources such + *

Note: close() needs to be called on the JobControllerClient 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 @@ -84,30 +74,26 @@ * *

To customize credentials: * - *

- * 
+ * 
{@code
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
- * JobControllerClient jobControllerClient =
- *     JobControllerClient.create(jobControllerSettings);
- * 
- * 
+ * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * JobControllerClient jobControllerClient =
- *     JobControllerClient.create(jobControllerSettings);
- * 
- * 
+ * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class JobControllerClient implements BackgroundResource { private final JobControllerSettings settings; private final JobControllerStub stub; @@ -129,7 +115,7 @@ public static final JobControllerClient create(JobControllerSettings settings) /** * Constructs an instance of JobControllerClient, using the given stub for making calls. This is - * for advanced usage - prefer to use JobControllerSettings}. + * for advanced usage - prefer using create(JobControllerSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final JobControllerClient create(JobControllerStub stub) { @@ -167,27 +153,14 @@ public JobControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJob(projectId, region, job);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -199,26 +172,10 @@ public final Job submitJob(String projectId, String region, Job job) { return submitJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   Job response = jobControllerClient.submitJob(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 */ @@ -226,54 +183,25 @@ public final Job submitJob(SubmitJobRequest request) { return submitJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.submitJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable submitJobCallable() { return stub.submitJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture submitJobAsOperationAsync( String projectId, String region, Job job) { SubmitJobRequest request = @@ -281,105 +209,43 @@ public final OperationFuture submitJobAsOperationAsync( return submitJobAsOperationAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture submitJobAsOperationAsync( SubmitJobRequest request) { return submitJobAsOperationOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   OperationFuture<Job, JobMetadata> future = jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable submitJobAsOperationOperationCallable() { return stub.submitJobAsOperationOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   ApiFuture<Operation> future = jobControllerClient.submitJobAsOperationCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable submitJobAsOperationCallable() { return stub.submitJobAsOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -395,26 +261,10 @@ public final Job getJob(String projectId, String region, String jobId) { return getJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   GetJobRequest request = GetJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   Job response = jobControllerClient.getJob(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 */ @@ -422,48 +272,20 @@ public final Job getJob(GetJobRequest request) { return getJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   GetJobRequest request = GetJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.getJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getJobCallable() { return stub.getJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -474,23 +296,10 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) { return listJobs(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String filter = "";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and @@ -514,26 +323,10 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str return listJobs(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   for (Job element : jobControllerClient.listJobs(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 */ @@ -541,89 +334,30 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { return listJobsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   ApiFuture<ListJobsPagedResponse> future = jobControllerClient.listJobsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Job element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listJobsPagedCallable() { return stub.listJobsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   while (true) {
-   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
-   *     for (Job element : response.getJobsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listJobsCallable() { return stub.listJobsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job job = Job.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .setJob(job)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Job response = jobControllerClient.updateJob(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 */ @@ -631,54 +365,23 @@ public final Job updateJob(UpdateJobRequest request) { return updateJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a job in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job job = Job.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .setJob(job)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.updateJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateJobCallable() { return stub.updateJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -694,29 +397,13 @@ public final Job cancelJob(String projectId, String region, String jobId) { return cancelJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   CancelJobRequest request = CancelJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   Job response = jobControllerClient.cancelJob(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 */ @@ -724,7 +411,7 @@ public final Job cancelJob(CancelJobRequest request) { return cancelJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) @@ -732,43 +419,16 @@ public final Job cancelJob(CancelJobRequest request) { * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   CancelJobRequest request = CancelJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.cancelJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable cancelJobCallable() { return stub.cancelJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   jobControllerClient.deleteJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -784,27 +444,11 @@ public final void deleteJob(String projectId, String region, String jobId) { deleteJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   jobControllerClient.deleteJob(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 */ @@ -812,28 +456,12 @@ public final void deleteJob(DeleteJobRequest request) { deleteJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Void> future = jobControllerClient.deleteJobCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteJobCallable() { return stub.deleteJobCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index 7f3f2964..546f5cf7 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link JobControllerClient}. * @@ -53,36 +54,34 @@ * *

For example, to set the total timeout of submitJob to 30 seconds: * - *

- * 
- * JobControllerSettings.Builder jobControllerSettingsBuilder =
- *     JobControllerSettings.newBuilder();
+ * 
{@code
+ * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
+ *         jobControllerSettingsBuilder
+ *             .submitJobSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class JobControllerSettings extends ClientSettings { + /** Returns the object with the settings used for calls to submitJob. */ public UnaryCallSettings submitJobSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobSettings(); } - /** Returns the object with the settings used for calls to submitJobAsOperation. */ + /** Returns the object with the settings used for calls to submitJobAs. */ public UnaryCallSettings submitJobAsOperationSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationSettings(); } /** Returns the object with the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings submitJobAsOperationOperationSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationOperationSettings(); @@ -174,18 +173,15 @@ protected JobControllerSettings(Builder settingsBuilder) throws IOException { /** Builder for JobControllerSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(JobControllerStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(JobControllerStubSettings.newBuilder()); - } - protected Builder(JobControllerSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -194,11 +190,15 @@ protected Builder(JobControllerStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(JobControllerStubSettings.newBuilder()); + } + public JobControllerStubSettings.Builder getStubSettingsBuilder() { return ((JobControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -216,14 +216,12 @@ public UnaryCallSettings.Builder submitJobSettings() { return getStubSettingsBuilder().submitJobSettings(); } - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ + /** Returns the builder for the settings used for calls to submitJobAs. */ public UnaryCallSettings.Builder submitJobAsOperationSettings() { return getStubSettingsBuilder().submitJobAsOperationSettings(); } /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder submitJobAsOperationOperationSettings() { return getStubSettingsBuilder().submitJobAsOperationOperationSettings(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 87932168..33a0e328 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.ApiFunction; @@ -39,24 +40,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

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: * - *

- * 
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the workflowTemplateServiceClient object to clean up + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class WorkflowTemplateServiceClient implements BackgroundResource { private final WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; @@ -130,7 +119,7 @@ public static final WorkflowTemplateServiceClient create(WorkflowTemplateService /** * Constructs an instance of WorkflowTemplateServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer to use WorkflowTemplateServiceSettings}. + * This is for advanced usage - prefer using create(WorkflowTemplateServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final WorkflowTemplateServiceClient create(WorkflowTemplateServiceStub stub) { @@ -169,13 +158,195 @@ public WorkflowTemplateServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate( + LocationName parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTemplate(template) + .build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *
    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate( + RegionName parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTemplate(template) + .build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *
    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { + return createWorkflowTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + *

Sample code: + */ + public final UnaryCallable + createWorkflowTemplateCallable() { + return stub.createWorkflowTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param name Required. The resource name of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param name Required. The resource name of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(String name) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder().setName(name).build(); + return getWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { + return getWorkflowTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + *

Sample code: + */ + public final UnaryCallable + getWorkflowTemplateCallable() { + return stub.getWorkflowTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -195,27 +366,21 @@ public final OperationsClient getOperationsClient() { *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( WorkflowTemplateName name) { InstantiateWorkflowTemplateRequest request = @@ -225,7 +390,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -245,27 +410,21 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( String name) { InstantiateWorkflowTemplateRequest request = @@ -273,7 +432,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -293,30 +452,23 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Map<String, String> parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @param parameters Optional. Map from parameter names to values that should be used for those * parameters. Values may not exceed 100 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( WorkflowTemplateName name, Map parameters) { InstantiateWorkflowTemplateRequest request = @@ -327,7 +479,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -347,30 +499,23 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Map<String, String> parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString(), parameters).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @param parameters Optional. Map from parameter names to values that should be used for those * parameters. Values may not exceed 100 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( String name, Map parameters) { InstantiateWorkflowTemplateRequest request = @@ -381,7 +526,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -401,29 +546,15 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( InstantiateWorkflowTemplateRequest request) { return instantiateWorkflowTemplateOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -444,26 +575,13 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable instantiateWorkflowTemplateOperationCallable() { return stub.instantiateWorkflowTemplateOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -484,25 +602,13 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable instantiateWorkflowTemplateCallable() { return stub.instantiateWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -527,29 +633,22 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( - RegionName parent, WorkflowTemplate template) { + LocationName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -558,7 +657,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -583,29 +682,22 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( - LocationName parent, WorkflowTemplate template) { + RegionName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -614,7 +706,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -639,27 +731,20 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent.toString(), template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( String parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = @@ -670,7 +755,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -695,31 +780,15 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( InstantiateInlineWorkflowTemplateRequest request) { return instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -745,28 +814,13 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { return stub.instantiateInlineWorkflowTemplateOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -792,299 +846,17 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<Operation> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable instantiateInlineWorkflowTemplateCallable() { return stub.instantiateInlineWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - RegionName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - LocationName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent.toString(), template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { - return createWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createWorkflowTemplateCallable() { - return stub.createWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * 
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name.toString());
-   * }
-   * 
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(String name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder().setName(name).build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   GetWorkflowTemplateRequest request = GetWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { - return getWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   GetWorkflowTemplateRequest request = GetWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getWorkflowTemplateCallable() { - return stub.getWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
-   * }
-   * 
- * * @param template Required. The updated workflow template. *

The `template.version` field must match the current version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1095,23 +867,11 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) return updateWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   UpdateWorkflowTemplateRequest request = UpdateWorkflowTemplateRequest.newBuilder()
-   *     .setTemplate(template)
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 */ @@ -1119,54 +879,36 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque return updateWorkflowTemplateCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   UpdateWorkflowTemplateRequest request = UpdateWorkflowTemplateRequest.newBuilder()
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateWorkflowTemplateCallable() { return stub.updateWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1174,30 +916,24 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1205,27 +941,21 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String parent) { @@ -1234,24 +964,10 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(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 */ @@ -1260,84 +976,45 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( return listWorkflowTemplatesPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListWorkflowTemplatesPagedResponse> future = workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (WorkflowTemplate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listWorkflowTemplatesPagedCallable() { return stub.listWorkflowTemplatesPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListWorkflowTemplatesResponse response = workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
-   *     for (WorkflowTemplate element : response.getTemplatesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listWorkflowTemplatesCallable() { return stub.listWorkflowTemplatesCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template + * has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { @@ -1348,27 +1025,23 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { deleteWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name.toString());
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template + * has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteWorkflowTemplate(String name) { @@ -1377,22 +1050,10 @@ public final void deleteWorkflowTemplate(String name) { deleteWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   DeleteWorkflowTemplateRequest request = DeleteWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(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 */ @@ -1400,23 +1061,11 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) deleteWorkflowTemplateCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   DeleteWorkflowTemplateRequest request = DeleteWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteWorkflowTemplateCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 5ddae67d..03d89c31 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link WorkflowTemplateServiceClient}. * @@ -53,24 +54,39 @@ * *

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
  *     .createWorkflowTemplateSettings()
  *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder.createWorkflowTemplateSettings().getRetrySettings().toBuilder()
+ *         workflowTemplateServiceSettingsBuilder
+ *             .createWorkflowTemplateSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = workflowTemplateServiceSettingsBuilder.build();
- * 
- * 
+ * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + * workflowTemplateServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings + createWorkflowTemplateSettings() { + return ((WorkflowTemplateServiceStubSettings) getStubSettings()) + .createWorkflowTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings + getWorkflowTemplateSettings() { + return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); + } + /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings instantiateWorkflowTemplateSettings() { @@ -79,8 +95,6 @@ public class WorkflowTemplateServiceSettings } /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings instantiateWorkflowTemplateOperationSettings() { return ((WorkflowTemplateServiceStubSettings) getStubSettings()) @@ -95,27 +109,12 @@ public class WorkflowTemplateServiceSettings } /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings instantiateInlineWorkflowTemplateOperationSettings() { return ((WorkflowTemplateServiceStubSettings) getStubSettings()) .instantiateInlineWorkflowTemplateOperationSettings(); } - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .createWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); - } - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings updateWorkflowTemplateSettings() { @@ -200,18 +199,15 @@ protected WorkflowTemplateServiceSettings(Builder settingsBuilder) throws IOExce /** Builder for WorkflowTemplateServiceSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(WorkflowTemplateServiceStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); - } - protected Builder(WorkflowTemplateServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -220,11 +216,15 @@ protected Builder(WorkflowTemplateServiceStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); + } + public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -237,6 +237,18 @@ public Builder applyToAllUnaryMethods( return this; } + /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings.Builder + createWorkflowTemplateSettings() { + return getStubSettingsBuilder().createWorkflowTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings.Builder + getWorkflowTemplateSettings() { + return getStubSettingsBuilder().getWorkflowTemplateSettings(); + } + /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings.Builder instantiateWorkflowTemplateSettings() { @@ -244,8 +256,6 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateWorkflowTemplateOperationSettings() { @@ -259,26 +269,12 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings() { return getStubSettingsBuilder().instantiateInlineWorkflowTemplateOperationSettings(); } - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return getStubSettingsBuilder().createWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getStubSettingsBuilder().getWorkflowTemplateSettings(); - } - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings.Builder updateWorkflowTemplateSettings() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index 4072e7af..4931bb50 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -15,78 +15,34 @@ */ /** - * A client to Cloud Dataproc API. + * The interfaces provided are listed below, along with usage samples. * - *

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

============================== AutoscalingPolicyServiceClient ============================== + *

======================= AutoscalingPolicyServiceClient ======================= * *

Service Description: The API interface for managing autoscaling policies in the Dataproc API. * *

Sample for AutoscalingPolicyServiceClient: * - *

- * 
- * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * 
- * 
- * - * ======================= ClusterControllerClient ======================= + *

======================= ClusterControllerClient ======================= * *

Service Description: The ClusterControllerService provides methods to manage clusters of * Compute Engine instances. * *

Sample for ClusterControllerClient: * - *

- * 
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   String clusterName = "";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * 
- * 
- * - * =================== JobControllerClient =================== + *

======================= JobControllerClient ======================= * *

Service Description: The JobController provides methods to manage jobs. * *

Sample for JobControllerClient: * - *

- * 
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * 
- * 
- * - * ============================= WorkflowTemplateServiceClient ============================= + *

======================= WorkflowTemplateServiceClient ======================= * *

Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

Sample for WorkflowTemplateServiceClient: - * - *

- * 
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * 
- * 
*/ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") package com.google.cloud.dataproc.v1; import javax.annotation.Generated; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java index 01685310..af1cf752 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.AutoscalingPolicy; @@ -30,14 +30,13 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the AutoscalingPolicyService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { public UnaryCallable diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 07a89b98..58e91c6b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -56,7 +57,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link AutoscalingPolicyServiceStub}. * @@ -73,22 +74,24 @@ * *

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceStubSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
  *     .createAutoscalingPolicySettings()
  *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ *         autoscalingPolicyServiceSettingsBuilder
+ *             .createAutoscalingPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
- * 
- * 
+ * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = + * autoscalingPolicyServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceStubSettings extends StubSettings { /** The default scopes of the service. */ @@ -109,6 +112,78 @@ public class AutoscalingPolicyServiceStubSettings private final UnaryCallSettings deleteAutoscalingPolicySettings; + private static final PagedListDescriptor< + ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> + LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + AutoscalingPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutoscalingPoliciesRequest injectToken( + ListAutoscalingPoliciesRequest payload, String token) { + return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAutoscalingPoliciesRequest injectPageSize( + ListAutoscalingPoliciesRequest payload, int pageSize) { + return ListAutoscalingPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutoscalingPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutoscalingPoliciesResponse payload) { + return payload.getPoliciesList() == null + ? ImmutableList.of() + : payload.getPoliciesList(); + } + }; + + private static final PagedListResponseFactory< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + ListAutoscalingPoliciesPagedResponse> + LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + ListAutoscalingPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutoscalingPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + AutoscalingPolicy> + pageContext = + PageContext.create( + callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); + return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ public UnaryCallSettings createAutoscalingPolicySettings() { @@ -148,10 +223,10 @@ public AutoscalingPolicyServiceStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAutoscalingPolicyServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -218,83 +293,10 @@ protected AutoscalingPolicyServiceStubSettings(Builder settingsBuilder) throws I deleteAutoscalingPolicySettings = settingsBuilder.deleteAutoscalingPolicySettings().build(); } - private static final PagedListDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAutoscalingPoliciesRequest injectToken( - ListAutoscalingPoliciesRequest payload, String token) { - return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAutoscalingPoliciesRequest injectPageSize( - ListAutoscalingPoliciesRequest payload, int pageSize) { - return ListAutoscalingPoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAutoscalingPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAutoscalingPoliciesResponse payload) { - return payload.getPoliciesList() != null - ? payload.getPoliciesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutoscalingPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy> - pageContext = - PageContext.create( - callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); - return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for AutoscalingPolicyServiceStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createAutoscalingPolicySettings; private final UnaryCallSettings.Builder @@ -308,7 +310,6 @@ public static class Builder listAutoscalingPoliciesSettings; private final UnaryCallSettings.Builder deleteAutoscalingPolicySettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -316,43 +317,12 @@ public static class Builder ImmutableMap.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_7_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -363,15 +333,12 @@ public static class Builder RetrySettings settings = null; settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(600000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(600000L)) .setTotalTimeout(Duration.ofMillis(600000L)) .build(); - definitions.put("retry_policy_1_params", settings); + definitions.put("no_retry_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) @@ -382,91 +349,22 @@ public static class Builder .setMaxRpcTimeout(Duration.ofMillis(600000L)) .setTotalTimeout(Duration.ofMillis(600000L)) .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_7_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_5_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_4_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_1_params", settings); + definitions.put("retry_policy_1_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAutoscalingPoliciesSettings = PagedCallSettings.newBuilder(LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT); - deleteAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -476,25 +374,43 @@ protected Builder(ClientContext clientContext) { getAutoscalingPolicySettings, listAutoscalingPoliciesSettings, deleteAutoscalingPolicySettings); - initDefaults(this); } + protected Builder(AutoscalingPolicyServiceStubSettings settings) { + super(settings); + + createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); + updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); + getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); + listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); + deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAutoscalingPolicySettings, + updateAutoscalingPolicySettings, + getAutoscalingPolicySettings, + listAutoscalingPoliciesSettings, + deleteAutoscalingPolicySettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .updateAutoscalingPolicySettings() @@ -513,31 +429,13 @@ private static Builder initDefaults(Builder builder) { builder .deleteAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); return builder; } - protected Builder(AutoscalingPolicyServiceStubSettings settings) { - super(settings); - - createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); - updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); - getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); - listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); - deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java index e1fbf8c3..a746102a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -36,22 +36,19 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the ClusterController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class ClusterControllerStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable createClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); @@ -61,7 +58,6 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable updateClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); @@ -71,7 +67,6 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); @@ -81,16 +76,6 @@ public UnaryCallable deleteClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - diagnoseClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); - } - - public UnaryCallable diagnoseClusterCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); - } - public UnaryCallable getClusterCallable() { throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); } @@ -103,6 +88,15 @@ public UnaryCallable listClustersCall throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); } + public OperationCallable + diagnoseClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); + } + + public UnaryCallable diagnoseClusterCallable() { + throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 1d232648..3fc25f55 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; @@ -64,7 +65,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link ClusterControllerStub}. * @@ -81,22 +82,24 @@ * *

For example, to set the total timeout of getCluster to 30 seconds: * - *

- * 
+ * 
{@code
  * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerStubSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
+ *         clusterControllerSettingsBuilder
+ *             .getClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * ClusterControllerStubSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * 
- * 
+ * ClusterControllerStubSettings clusterControllerSettings = + * clusterControllerSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class ClusterControllerStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -111,14 +114,67 @@ public class ClusterControllerStubSettings extends StubSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; + private final UnaryCallSettings getClusterSettings; + private final PagedCallSettings< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings; private final UnaryCallSettings diagnoseClusterSettings; private final OperationCallSettings< DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> diagnoseClusterOperationSettings; - private final UnaryCallSettings getClusterSettings; - private final PagedCallSettings< + + private static final PagedListDescriptor + LIST_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListClustersRequest injectToken(ListClustersRequest payload, String token) { + return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { + return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListClustersResponse payload) { + return payload.getClustersList() == null + ? ImmutableList.of() + : payload.getClustersList(); + } + }; + + private static final PagedListResponseFactory< ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; + LIST_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); + return ListClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { @@ -126,7 +182,6 @@ public UnaryCallSettings createClusterSettings( } /** Returns the object with the settings used for calls to createCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings createClusterOperationSettings() { return createClusterOperationSettings; @@ -138,7 +193,6 @@ public UnaryCallSettings updateClusterSettings( } /** Returns the object with the settings used for calls to updateCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings updateClusterOperationSettings() { return updateClusterOperationSettings; @@ -150,46 +204,44 @@ public UnaryCallSettings deleteClusterSettings( } /** Returns the object with the settings used for calls to deleteCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings deleteClusterOperationSettings() { return deleteClusterOperationSettings; } + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return getClusterSettings; + } + + /** Returns the object with the settings used for calls to listClusters. */ + public PagedCallSettings + listClustersSettings() { + return listClustersSettings; + } + /** Returns the object with the settings used for calls to diagnoseCluster. */ public UnaryCallSettings diagnoseClusterSettings() { return diagnoseClusterSettings; } /** Returns the object with the settings used for calls to diagnoseCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> diagnoseClusterOperationSettings() { return diagnoseClusterOperationSettings; } - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return getClusterSettings; - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return listClustersSettings; - } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ClusterControllerStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcClusterControllerStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -255,69 +307,15 @@ protected ClusterControllerStubSettings(Builder settingsBuilder) throws IOExcept updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); - diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); - diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); getClusterSettings = settingsBuilder.getClusterSettings().build(); listClustersSettings = settingsBuilder.listClustersSettings().build(); + diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); + diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); } - private static final PagedListDescriptor - LIST_CLUSTERS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListClustersRequest injectToken(ListClustersRequest payload, String token) { - return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { - return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListClustersRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListClustersResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListClustersResponse payload) { - return payload.getClustersList() != null - ? payload.getClustersList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - LIST_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); - return ListClustersPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for ClusterControllerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createClusterSettings; private final OperationCallSettings.Builder< CreateClusterRequest, Cluster, ClusterOperationMetadata> @@ -330,22 +328,24 @@ public static class Builder extends StubSettings.Builder deleteClusterOperationSettings; + private final UnaryCallSettings.Builder getClusterSettings; + private final PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings; private final UnaryCallSettings.Builder diagnoseClusterSettings; private final OperationCallSettings.Builder< DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> diagnoseClusterOperationSettings; - private final UnaryCallSettings.Builder getClusterSettings; - private final PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); + definitions.put( + "retry_policy_5_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_6_codes", ImmutableSet.copyOf( @@ -353,10 +353,6 @@ public static class Builder extends StubSettings.BuildernewArrayList())); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -375,7 +371,7 @@ public static class Builder extends StubSettings.Builder>of( + createClusterSettings, + updateClusterSettings, + deleteClusterSettings, + getClusterSettings, + listClustersSettings, + diagnoseClusterSettings); + initDefaults(this); + } - listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); + protected Builder(ClusterControllerStubSettings settings) { + super(settings); + + createClusterSettings = settings.createClusterSettings.toBuilder(); + createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + updateClusterSettings = settings.updateClusterSettings.toBuilder(); + updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); + deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + getClusterSettings = settings.getClusterSettings.toBuilder(); + listClustersSettings = settings.listClustersSettings.toBuilder(); + diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); + diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createClusterSettings, updateClusterSettings, deleteClusterSettings, - diagnoseClusterSettings, getClusterSettings, - listClustersSettings); - - initDefaults(this); + listClustersSettings, + diagnoseClusterSettings); } private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) @@ -457,11 +466,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - builder - .diagnoseClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - builder .getClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) @@ -471,6 +475,12 @@ private static Builder initDefaults(Builder builder) { .listClustersSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + + builder + .diagnoseClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + builder .createClusterOperationSettings() .setInitialCallSettings( @@ -489,11 +499,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .updateClusterOperationSettings() .setInitialCallSettings( @@ -512,11 +523,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .deleteClusterOperationSettings() .setInitialCallSettings( @@ -535,11 +547,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .diagnoseClusterOperationSettings() .setInitialCallSettings( @@ -558,40 +571,16 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(30000L)) .build())); return builder; } - protected Builder(ClusterControllerStubSettings settings) { - super(settings); - - createClusterSettings = settings.createClusterSettings.toBuilder(); - createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); - updateClusterSettings = settings.updateClusterSettings.toBuilder(); - updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); - deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); - deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); - diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); - diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); - getClusterSettings = settings.getClusterSettings.toBuilder(); - listClustersSettings = settings.listClustersSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - deleteClusterSettings, - diagnoseClusterSettings, - getClusterSettings, - listClustersSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -646,6 +635,18 @@ public UnaryCallSettings.Builder deleteClusterS return deleteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getClusterSettings; + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings() { + return listClustersSettings; + } + /** Returns the builder for the settings used for calls to diagnoseCluster. */ public UnaryCallSettings.Builder diagnoseClusterSettings() { return diagnoseClusterSettings; @@ -660,18 +661,6 @@ public UnaryCallSettings.Builder diagnoseClus return diagnoseClusterOperationSettings; } - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getClusterSettings; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return listClustersSettings; - } - @Override public ClusterControllerStubSettings build() throws IOException { return new ClusterControllerStubSettings(this); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index 54da4666..57de9885 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the AutoscalingPolicyService service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcAutoscalingPolicyServiceCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index c8f1fde2..286c9f4a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; -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; @@ -33,6 +33,7 @@ import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; import com.google.common.collect.ImmutableMap; +import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -41,16 +42,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the AutoscalingPolicyService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { - private static final MethodDescriptor createAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -61,6 +60,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(CreateAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor updateAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -71,6 +71,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(UpdateAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor getAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -81,6 +82,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(GetAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor< ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> listAutoscalingPoliciesMethodDescriptor = @@ -94,6 +96,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt .setResponseMarshaller( ProtoUtils.marshaller(ListAutoscalingPoliciesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -105,8 +108,6 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final UnaryCallable createAutoscalingPolicyCallable; private final UnaryCallable @@ -120,6 +121,8 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt private final UnaryCallable deleteAutoscalingPolicyCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcAutoscalingPolicyServiceStub create( @@ -161,6 +164,7 @@ protected GrpcAutoscalingPolicyServiceStub( GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createAutoscalingPolicyTransportSettings = @@ -265,7 +269,12 @@ public Map extract(DeleteAutoscalingPolicyRequest request) { settings.deleteAutoscalingPolicySettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; } public UnaryCallable @@ -283,16 +292,16 @@ public Map extract(DeleteAutoscalingPolicyRequest request) { return getAutoscalingPolicyCallable; } - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return listAutoscalingPoliciesPagedCallable; - } - public UnaryCallable listAutoscalingPoliciesCallable() { return listAutoscalingPoliciesCallable; } + public UnaryCallable + listAutoscalingPoliciesPagedCallable() { + return listAutoscalingPoliciesPagedCallable; + } + public UnaryCallable deleteAutoscalingPolicyCallable() { return deleteAutoscalingPolicyCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java index 153e6aa2..030721a0 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the ClusterController service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcClusterControllerCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index b1c845f0..4aafc4b4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,17 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; -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.OperationCallable; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.Cluster; import com.google.cloud.dataproc.v1.ClusterOperationMetadata; @@ -35,25 +36,25 @@ import com.google.cloud.dataproc.v1.ListClustersRequest; import com.google.cloud.dataproc.v1.ListClustersResponse; import com.google.cloud.dataproc.v1.UpdateClusterRequest; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the ClusterController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcClusterControllerStub extends ClusterControllerStub { - private static final MethodDescriptor createClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -63,6 +64,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor updateClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -72,6 +74,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -81,15 +84,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - diagnoseClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DiagnoseCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); + private static final MethodDescriptor getClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -97,6 +92,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) .build(); + private static final MethodDescriptor listClustersMethodDescriptor = MethodDescriptor.newBuilder() @@ -107,8 +103,15 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; + private static final MethodDescriptor + diagnoseClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DiagnoseCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); private final UnaryCallable createClusterCallable; private final OperationCallable @@ -119,15 +122,17 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; - private final UnaryCallable diagnoseClusterCallable; - private final OperationCallable< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationCallable; private final UnaryCallable getClusterCallable; private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable diagnoseClusterCallable; + private final OperationCallable< + DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> + diagnoseClusterOperationCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings) @@ -173,26 +178,90 @@ protected GrpcClusterControllerStub( GrpcCallSettings createClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) - .build(); - GrpcCallSettings diagnoseClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(diagnoseClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings listClustersTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listClustersMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListClustersRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) + .build(); + GrpcCallSettings diagnoseClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(diagnoseClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DiagnoseClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); this.createClusterCallable = @@ -203,7 +272,7 @@ protected GrpcClusterControllerStub( createClusterTransportSettings, settings.createClusterOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -212,7 +281,7 @@ protected GrpcClusterControllerStub( updateClusterTransportSettings, settings.updateClusterOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -221,16 +290,7 @@ protected GrpcClusterControllerStub( deleteClusterTransportSettings, settings.deleteClusterOperationSettings(), clientContext, - this.operationsStub); - this.diagnoseClusterCallable = - callableFactory.createUnaryCallable( - diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); - this.diagnoseClusterOperationCallable = - callableFactory.createOperationCallable( - diagnoseClusterTransportSettings, - settings.diagnoseClusterOperationSettings(), - clientContext, - this.operationsStub); + operationsStub); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); @@ -240,65 +300,70 @@ protected GrpcClusterControllerStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.diagnoseClusterCallable = + callableFactory.createUnaryCallable( + diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); + this.diagnoseClusterOperationCallable = + callableFactory.createOperationCallable( + diagnoseClusterTransportSettings, + settings.diagnoseClusterOperationSettings(), + clientContext, + operationsStub); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + public OperationCallable createClusterOperationCallable() { return createClusterOperationCallable; } - public UnaryCallable createClusterCallable() { - return createClusterCallable; + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable updateClusterOperationCallable() { return updateClusterOperationCallable; } - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable deleteClusterOperationCallable() { return deleteClusterOperationCallable; } - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - diagnoseClusterOperationCallable() { - return diagnoseClusterOperationCallable; - } - - public UnaryCallable diagnoseClusterCallable() { - return diagnoseClusterCallable; - } - public UnaryCallable getClusterCallable() { return getClusterCallable; } + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + public UnaryCallable listClustersPagedCallable() { return listClustersPagedCallable; } - public UnaryCallable listClustersCallable() { - return listClustersCallable; + public UnaryCallable diagnoseClusterCallable() { + return diagnoseClusterCallable; + } + + public OperationCallable + diagnoseClusterOperationCallable() { + return diagnoseClusterOperationCallable; } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java index daa86f95..285d96d3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the JobController service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcJobControllerCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index 294bcfb4..9e410dfa 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,17 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; -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.OperationCallable; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.CancelJobRequest; import com.google.cloud.dataproc.v1.DeleteJobRequest; @@ -34,25 +35,25 @@ import com.google.cloud.dataproc.v1.ListJobsResponse; import com.google.cloud.dataproc.v1.SubmitJobRequest; import com.google.cloud.dataproc.v1.UpdateJobRequest; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the JobController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcJobControllerStub extends JobControllerStub { - private static final MethodDescriptor submitJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -60,6 +61,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor submitJobAsOperationMethodDescriptor = MethodDescriptor.newBuilder() @@ -68,6 +70,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor getJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -75,6 +78,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor listJobsMethodDescriptor = MethodDescriptor.newBuilder() @@ -83,6 +87,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor updateJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -90,6 +95,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor cancelJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -97,6 +103,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(CancelJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -105,9 +112,6 @@ public class GrpcJobControllerStub extends JobControllerStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final UnaryCallable submitJobCallable; private final UnaryCallable submitJobAsOperationCallable; private final OperationCallable @@ -119,6 +123,8 @@ public class GrpcJobControllerStub extends JobControllerStub { private final UnaryCallable cancelJobCallable; private final UnaryCallable deleteJobCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcJobControllerStub create(JobControllerStubSettings settings) @@ -162,30 +168,104 @@ protected GrpcJobControllerStub( GrpcCallSettings submitJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SubmitJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings submitJobAsOperationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobAsOperationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SubmitJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListJobsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings updateJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CancelJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); this.submitJobCallable = @@ -201,7 +281,7 @@ protected GrpcJobControllerStub( submitJobAsOperationTransportSettings, settings.submitJobAsOperationOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.getJobCallable = callableFactory.createUnaryCallable( getJobTransportSettings, settings.getJobSettings(), clientContext); @@ -221,10 +301,10 @@ protected GrpcJobControllerStub( callableFactory.createUnaryCallable( deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } @@ -233,28 +313,27 @@ public UnaryCallable submitJobCallable() { return submitJobCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable submitJobAsOperationCallable() { + return submitJobAsOperationCallable; + } + public OperationCallable submitJobAsOperationOperationCallable() { return submitJobAsOperationOperationCallable; } - public UnaryCallable submitJobAsOperationCallable() { - return submitJobAsOperationCallable; - } - public UnaryCallable getJobCallable() { return getJobCallable; } - public UnaryCallable listJobsPagedCallable() { - return listJobsPagedCallable; - } - public UnaryCallable listJobsCallable() { return listJobsCallable; } + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + public UnaryCallable updateJobCallable() { return updateJobCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java index 242d2116..4da9fd42 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the WorkflowTemplateService service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcWorkflowTemplateServiceCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index 7fb984c3..4da9b503 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; -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; @@ -47,15 +47,35 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the WorkflowTemplateService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { + private static final MethodDescriptor + createWorkflowTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/CreateWorkflowTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getWorkflowTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/GetWorkflowTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) + .build(); private static final MethodDescriptor instantiateWorkflowTemplateMethodDescriptor = @@ -67,6 +87,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub ProtoUtils.marshaller(InstantiateWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor instantiateInlineWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -78,26 +99,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub InstantiateInlineWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - createWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/CreateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/GetWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); + private static final MethodDescriptor updateWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -108,6 +110,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub ProtoUtils.marshaller(UpdateWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) .build(); + private static final MethodDescriptor listWorkflowTemplatesMethodDescriptor = MethodDescriptor.newBuilder() @@ -119,6 +122,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub .setResponseMarshaller( ProtoUtils.marshaller(ListWorkflowTemplatesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -130,9 +134,10 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - + private final UnaryCallable + createWorkflowTemplateCallable; + private final UnaryCallable + getWorkflowTemplateCallable; private final UnaryCallable instantiateWorkflowTemplateCallable; private final OperationCallable @@ -141,10 +146,6 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub instantiateInlineWorkflowTemplateCallable; private final OperationCallable instantiateInlineWorkflowTemplateOperationCallable; - private final UnaryCallable - createWorkflowTemplateCallable; - private final UnaryCallable - getWorkflowTemplateCallable; private final UnaryCallable updateWorkflowTemplateCallable; private final UnaryCallable @@ -153,6 +154,8 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub listWorkflowTemplatesPagedCallable; private final UnaryCallable deleteWorkflowTemplateCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcWorkflowTemplateServiceStub create( @@ -196,6 +199,34 @@ protected GrpcWorkflowTemplateServiceStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + createWorkflowTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateWorkflowTemplateRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getWorkflowTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetWorkflowTemplateRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings instantiateWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() @@ -226,34 +257,6 @@ public Map extract( } }) .build(); - GrpcCallSettings - createWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); GrpcCallSettings updateWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() @@ -298,6 +301,16 @@ public Map extract(DeleteWorkflowTemplateRequest request) { }) .build(); + this.createWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + createWorkflowTemplateTransportSettings, + settings.createWorkflowTemplateSettings(), + clientContext); + this.getWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + getWorkflowTemplateTransportSettings, + settings.getWorkflowTemplateSettings(), + clientContext); this.instantiateWorkflowTemplateCallable = callableFactory.createUnaryCallable( instantiateWorkflowTemplateTransportSettings, @@ -308,7 +321,7 @@ public Map extract(DeleteWorkflowTemplateRequest request) { instantiateWorkflowTemplateTransportSettings, settings.instantiateWorkflowTemplateOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.instantiateInlineWorkflowTemplateCallable = callableFactory.createUnaryCallable( instantiateInlineWorkflowTemplateTransportSettings, @@ -319,17 +332,7 @@ public Map extract(DeleteWorkflowTemplateRequest request) { instantiateInlineWorkflowTemplateTransportSettings, settings.instantiateInlineWorkflowTemplateOperationSettings(), clientContext, - this.operationsStub); - this.createWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - createWorkflowTemplateTransportSettings, - settings.createWorkflowTemplateSettings(), - clientContext); - this.getWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - getWorkflowTemplateTransportSettings, - settings.getWorkflowTemplateSettings(), - clientContext); + operationsStub); this.updateWorkflowTemplateCallable = callableFactory.createUnaryCallable( updateWorkflowTemplateTransportSettings, @@ -351,18 +354,21 @@ public Map extract(DeleteWorkflowTemplateRequest request) { settings.deleteWorkflowTemplateSettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return instantiateWorkflowTemplateOperationCallable; + public UnaryCallable + createWorkflowTemplateCallable() { + return createWorkflowTemplateCallable; + } + + public UnaryCallable getWorkflowTemplateCallable() { + return getWorkflowTemplateCallable; } public UnaryCallable @@ -370,10 +376,9 @@ public GrpcOperationsStub getOperationsStub() { return instantiateWorkflowTemplateCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return instantiateInlineWorkflowTemplateOperationCallable; + public OperationCallable + instantiateWorkflowTemplateOperationCallable() { + return instantiateWorkflowTemplateOperationCallable; } public UnaryCallable @@ -381,13 +386,9 @@ public GrpcOperationsStub getOperationsStub() { return instantiateInlineWorkflowTemplateCallable; } - public UnaryCallable - createWorkflowTemplateCallable() { - return createWorkflowTemplateCallable; - } - - public UnaryCallable getWorkflowTemplateCallable() { - return getWorkflowTemplateCallable; + public OperationCallable + instantiateInlineWorkflowTemplateOperationCallable() { + return instantiateInlineWorkflowTemplateOperationCallable; } public UnaryCallable @@ -395,16 +396,16 @@ public UnaryCallable getWorkflowTe return updateWorkflowTemplateCallable; } - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - return listWorkflowTemplatesPagedCallable; - } - public UnaryCallable listWorkflowTemplatesCallable() { return listWorkflowTemplatesCallable; } + public UnaryCallable + listWorkflowTemplatesPagedCallable() { + return listWorkflowTemplatesPagedCallable; + } + public UnaryCallable deleteWorkflowTemplateCallable() { return deleteWorkflowTemplateCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java index 45aab410..550b6d22 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -35,17 +35,15 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the JobController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class JobControllerStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } @@ -54,7 +52,6 @@ public UnaryCallable submitJobCallable() { throw new UnsupportedOperationException("Not implemented: submitJobCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable submitJobAsOperationOperationCallable() { throw new UnsupportedOperationException( diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 05965c1a..5790e2a4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; @@ -63,7 +64,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link JobControllerStub}. * @@ -80,22 +81,23 @@ * *

For example, to set the total timeout of submitJob to 30 seconds: * - *

- * 
+ * 
{@code
  * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
  *     JobControllerStubSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
+ *         jobControllerSettingsBuilder
+ *             .submitJobSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class JobControllerStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -112,18 +114,69 @@ public class JobControllerStubSettings extends StubSettings cancelJobSettings; private final UnaryCallSettings deleteJobSettings; + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() == null + ? ImmutableList.of() + : payload.getJobsList(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to submitJob. */ public UnaryCallSettings submitJobSettings() { return submitJobSettings; } - /** Returns the object with the settings used for calls to submitJobAsOperation. */ + /** Returns the object with the settings used for calls to submitJobAs. */ public UnaryCallSettings submitJobAsOperationSettings() { return submitJobAsOperationSettings; } /** Returns the object with the settings used for calls to submitJobAsOperation. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings submitJobAsOperationOperationSettings() { return submitJobAsOperationOperationSettings; @@ -161,10 +214,10 @@ public JobControllerStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcJobControllerStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -235,62 +288,9 @@ protected JobControllerStubSettings(Builder settingsBuilder) throws IOException deleteJobSettings = settingsBuilder.deleteJobSettings().build(); } - private static final PagedListDescriptor - LIST_JOBS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListJobsRequest injectToken(ListJobsRequest payload, String token) { - return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { - return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListJobsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListJobsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListJobsResponse payload) { - return payload.getJobsList() != null - ? payload.getJobsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - LIST_JOBS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListJobsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); - return ListJobsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for JobControllerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder submitJobSettings; private final UnaryCallSettings.Builder submitJobAsOperationSettings; @@ -303,7 +303,6 @@ public static class Builder extends StubSettings.Builder updateJobSettings; private final UnaryCallSettings.Builder cancelJobSettings; private final UnaryCallSettings.Builder deleteJobSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -311,27 +310,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", + "retry_policy_7_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_2_codes", @@ -340,14 +319,6 @@ public static class Builder extends StubSettings.BuildernewArrayList())); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_7_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -356,28 +327,6 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_3_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) @@ -388,18 +337,7 @@ public static class Builder extends StubSettings.Builder>of( + submitJobSettings, + submitJobAsOperationSettings, + getJobSettings, + listJobsSettings, + updateJobSettings, + cancelJobSettings, + deleteJobSettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .submitJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) @@ -527,6 +450,7 @@ private static Builder initDefaults(Builder builder) { .deleteJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); + builder .submitJobAsOperationOperationSettings() .setInitialCallSettings( @@ -540,43 +464,19 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) + .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); return builder; } - protected Builder(JobControllerStubSettings settings) { - super(settings); - - submitJobSettings = settings.submitJobSettings.toBuilder(); - submitJobAsOperationSettings = settings.submitJobAsOperationSettings.toBuilder(); - submitJobAsOperationOperationSettings = - settings.submitJobAsOperationOperationSettings.toBuilder(); - getJobSettings = settings.getJobSettings.toBuilder(); - listJobsSettings = settings.listJobsSettings.toBuilder(); - updateJobSettings = settings.updateJobSettings.toBuilder(); - cancelJobSettings = settings.cancelJobSettings.toBuilder(); - deleteJobSettings = settings.deleteJobSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -597,7 +497,7 @@ public UnaryCallSettings.Builder submitJobSettings() { return submitJobSettings; } - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ + /** Returns the builder for the settings used for calls to submitJobAs. */ public UnaryCallSettings.Builder submitJobAsOperationSettings() { return submitJobAsOperationSettings; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java index f87e3a0e..685c0e26 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -36,22 +36,28 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the WorkflowTemplateService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class WorkflowTemplateServiceStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable + createWorkflowTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); + } + + public UnaryCallable getWorkflowTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); + } + public OperationCallable instantiateWorkflowTemplateOperationCallable() { throw new UnsupportedOperationException( @@ -64,7 +70,6 @@ public OperationsStub getOperationsStub() { "Not implemented: instantiateWorkflowTemplateCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { throw new UnsupportedOperationException( @@ -77,15 +82,6 @@ public OperationsStub getOperationsStub() { "Not implemented: instantiateInlineWorkflowTemplateCallable()"); } - public UnaryCallable - createWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); - } - - public UnaryCallable getWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); - } - public UnaryCallable updateWorkflowTemplateCallable() { throw new UnsupportedOperationException("Not implemented: updateWorkflowTemplateCallable()"); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 33176458..1ec3503f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1.stub; import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -64,7 +65,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link WorkflowTemplateServiceStub}. * @@ -81,28 +82,34 @@ * *

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceStubSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
  *     .createWorkflowTemplateSettings()
  *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder.createWorkflowTemplateSettings().getRetrySettings().toBuilder()
+ *         workflowTemplateServiceSettingsBuilder
+ *             .createWorkflowTemplateSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = workflowTemplateServiceSettingsBuilder.build();
- * 
- * 
+ * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = + * workflowTemplateServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + private final UnaryCallSettings + createWorkflowTemplateSettings; + private final UnaryCallSettings + getWorkflowTemplateSettings; private final UnaryCallSettings instantiateWorkflowTemplateSettings; private final OperationCallSettings @@ -112,10 +119,6 @@ public class WorkflowTemplateServiceStubSettings private final OperationCallSettings< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings - createWorkflowTemplateSettings; - private final UnaryCallSettings - getWorkflowTemplateSettings; private final UnaryCallSettings updateWorkflowTemplateSettings; private final PagedCallSettings< @@ -126,6 +129,83 @@ public class WorkflowTemplateServiceStubSettings private final UnaryCallSettings deleteWorkflowTemplateSettings; + private static final PagedListDescriptor< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> + LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkflowTemplatesRequest injectToken( + ListWorkflowTemplatesRequest payload, String token) { + return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkflowTemplatesRequest injectPageSize( + ListWorkflowTemplatesRequest payload, int pageSize) { + return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkflowTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListWorkflowTemplatesResponse payload) { + return payload.getTemplatesList() == null + ? ImmutableList.of() + : payload.getTemplatesList(); + } + }; + + private static final PagedListResponseFactory< + ListWorkflowTemplatesRequest, + ListWorkflowTemplatesResponse, + ListWorkflowTemplatesPagedResponse> + LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkflowTemplatesRequest, + ListWorkflowTemplatesResponse, + ListWorkflowTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListWorkflowTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> + pageContext = + PageContext.create( + callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); + return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings + createWorkflowTemplateSettings() { + return createWorkflowTemplateSettings; + } + + /** Returns the object with the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings + getWorkflowTemplateSettings() { + return getWorkflowTemplateSettings; + } + /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings instantiateWorkflowTemplateSettings() { @@ -133,7 +213,6 @@ public class WorkflowTemplateServiceStubSettings } /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings instantiateWorkflowTemplateOperationSettings() { return instantiateWorkflowTemplateOperationSettings; @@ -146,24 +225,11 @@ public class WorkflowTemplateServiceStubSettings } /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings instantiateInlineWorkflowTemplateOperationSettings() { return instantiateInlineWorkflowTemplateOperationSettings; } - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings updateWorkflowTemplateSettings() { @@ -190,10 +256,10 @@ public WorkflowTemplateServiceStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcWorkflowTemplateServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -253,6 +319,8 @@ public Builder toBuilder() { protected WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); + getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); instantiateWorkflowTemplateSettings = settingsBuilder.instantiateWorkflowTemplateSettings().build(); instantiateWorkflowTemplateOperationSettings = @@ -261,83 +329,19 @@ protected WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IO settingsBuilder.instantiateInlineWorkflowTemplateSettings().build(); instantiateInlineWorkflowTemplateOperationSettings = settingsBuilder.instantiateInlineWorkflowTemplateOperationSettings().build(); - createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); - getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); updateWorkflowTemplateSettings = settingsBuilder.updateWorkflowTemplateSettings().build(); listWorkflowTemplatesSettings = settingsBuilder.listWorkflowTemplatesSettings().build(); deleteWorkflowTemplateSettings = settingsBuilder.deleteWorkflowTemplateSettings().build(); } - private static final PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = - new PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkflowTemplatesRequest injectToken( - ListWorkflowTemplatesRequest payload, String token) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkflowTemplatesRequest injectPageSize( - ListWorkflowTemplatesRequest payload, int pageSize) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkflowTemplatesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListWorkflowTemplatesResponse payload) { - return payload.getTemplatesList() != null - ? payload.getTemplatesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWorkflowTemplatesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - pageContext = - PageContext.create( - callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); - return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for WorkflowTemplateServiceStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - + private final UnaryCallSettings.Builder + createWorkflowTemplateSettings; + private final UnaryCallSettings.Builder + getWorkflowTemplateSettings; private final UnaryCallSettings.Builder instantiateWorkflowTemplateSettings; private final OperationCallSettings.Builder< @@ -348,10 +352,6 @@ public static class Builder private final OperationCallSettings.Builder< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - createWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - getWorkflowTemplateSettings; private final UnaryCallSettings.Builder updateWorkflowTemplateSettings; private final PagedCallSettings.Builder< @@ -361,13 +361,15 @@ public static class Builder listWorkflowTemplatesSettings; private final UnaryCallSettings.Builder deleteWorkflowTemplateSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_4_codes", ImmutableSet.copyOf( @@ -375,10 +377,6 @@ public static class Builder StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.INTERNAL, StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -409,80 +407,98 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(600000L)) .build(); definitions.put("retry_policy_4_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); + createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); instantiateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - instantiateInlineWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - - createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWorkflowTemplatesSettings = PagedCallSettings.newBuilder(LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT); - deleteWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + createWorkflowTemplateSettings, + getWorkflowTemplateSettings, instantiateWorkflowTemplateSettings, instantiateInlineWorkflowTemplateSettings, + updateWorkflowTemplateSettings, + listWorkflowTemplatesSettings, + deleteWorkflowTemplateSettings); + initDefaults(this); + } + + protected Builder(WorkflowTemplateServiceStubSettings settings) { + super(settings); + + createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); + getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); + instantiateWorkflowTemplateSettings = + settings.instantiateWorkflowTemplateSettings.toBuilder(); + instantiateWorkflowTemplateOperationSettings = + settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); + instantiateInlineWorkflowTemplateSettings = + settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); + instantiateInlineWorkflowTemplateOperationSettings = + settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); + updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); + listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); + deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( createWorkflowTemplateSettings, getWorkflowTemplateSettings, + instantiateWorkflowTemplateSettings, + instantiateInlineWorkflowTemplateSettings, updateWorkflowTemplateSettings, listWorkflowTemplatesSettings, deleteWorkflowTemplateSettings); - - initDefaults(this); } private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder - .instantiateWorkflowTemplateSettings() + .createWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); builder - .instantiateInlineWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .getWorkflowTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder - .createWorkflowTemplateSettings() + .instantiateWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); builder - .getWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); + .instantiateInlineWorkflowTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); builder .updateWorkflowTemplateSettings() @@ -498,6 +514,7 @@ private static Builder initDefaults(Builder builder) { .deleteWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + builder .instantiateWorkflowTemplateOperationSettings() .setInitialCallSettings( @@ -517,11 +534,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(43200000L)) .build())); + builder .instantiateInlineWorkflowTemplateOperationSettings() .setInitialCallSettings( @@ -541,44 +559,16 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(43200000L)) .build())); return builder; } - protected Builder(WorkflowTemplateServiceStubSettings settings) { - super(settings); - - instantiateWorkflowTemplateSettings = - settings.instantiateWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateOperationSettings = - settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); - instantiateInlineWorkflowTemplateSettings = - settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = - settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); - createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); - getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); - updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); - listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); - deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -594,6 +584,18 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings.Builder + createWorkflowTemplateSettings() { + return createWorkflowTemplateSettings; + } + + /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings.Builder + getWorkflowTemplateSettings() { + return getWorkflowTemplateSettings; + } + /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings.Builder instantiateWorkflowTemplateSettings() { @@ -624,18 +626,6 @@ public Builder applyToAllUnaryMethods( return instantiateInlineWorkflowTemplateOperationSettings; } - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings.Builder updateWorkflowTemplateSettings() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java index 4c7f769c..56678fac 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.ApiFunction; @@ -34,7 +35,7 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The API interface for managing autoscaling policies in the Cloud Dataproc * API. @@ -42,17 +43,7 @@ *

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: * - *

- * 
- * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the autoscalingPolicyServiceClient object to clean up + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class AutoscalingPolicyServiceClient implements BackgroundResource { private final AutoscalingPolicyServiceSettings settings; private final AutoscalingPolicyServiceStub stub; @@ -126,7 +115,7 @@ public static final AutoscalingPolicyServiceClient create( /** * Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer to use AutoscalingPolicyServiceSettings}. + * calls. This is for advanced usage - prefer using create(AutoscalingPolicyServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub) { @@ -159,31 +148,26 @@ public AutoscalingPolicyServiceStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - RegionName parent, AutoscalingPolicy policy) { + LocationName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -192,31 +176,26 @@ public final AutoscalingPolicy createAutoscalingPolicy( return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy createAutoscalingPolicy( - LocationName parent, AutoscalingPolicy policy) { + RegionName parent, AutoscalingPolicy policy) { CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -225,26 +204,21 @@ public final AutoscalingPolicy createAutoscalingPolicy( return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent.toString(), policy);
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the + * following format: `projects/{project_id}/locations/{location}` + *
+ * * @param policy Required. The autoscaling policy to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -254,24 +228,10 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin return createAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setPolicy(policy)
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 */ @@ -279,46 +239,23 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe return createAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new autoscaling policy. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setPolicy(policy)
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable createAutoscalingPolicyCallable() { return stub.createAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
-   * }
-   * 
- * * @param policy Required. The updated autoscaling policy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -328,24 +265,12 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) return updateAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
-   *     .setPolicy(policy)
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 */ @@ -353,52 +278,36 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe return updateAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) autoscaling policy. * *

Disabled check for update_mask, because all updates will be full replacements. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
-   *     .setPolicy(policy)
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateAutoscalingPolicyCallable() { return stub.updateAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) { @@ -409,27 +318,23 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) return getAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name.toString());
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.get`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has + * the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AutoscalingPolicy getAutoscalingPolicy(String name) { @@ -438,22 +343,10 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) { return getAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 */ @@ -461,53 +354,35 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest return getAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves autoscaling policy. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getAutoscalingPolicyCallable() { return stub.getAutoscalingPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -515,30 +390,24 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { + public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -546,27 +415,21 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.list`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.autoscalingPolicies.list`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent) { @@ -575,24 +438,10 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String return listAutoscalingPolicies(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(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 */ @@ -601,85 +450,46 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( return listAutoscalingPoliciesPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListAutoscalingPoliciesPagedResponse> future = autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (AutoscalingPolicy element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listAutoscalingPoliciesPagedCallable() { return stub.listAutoscalingPoliciesPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists autoscaling policies in the project. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListAutoscalingPoliciesResponse response = autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
-   *     for (AutoscalingPolicy element : response.getPoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listAutoscalingPoliciesCallable() { return stub.listAutoscalingPoliciesCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.delete`, the resource name of the - * policy has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { @@ -690,28 +500,24 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { deleteAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name.toString());
-   * }
-   * 
- * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *

* For `projects.locations.autoscalingPolicies.delete`, the resource name of the - * policy has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *

    + *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` + *
+ *
    + *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy + * has the following format: + * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteAutoscalingPolicy(String name) { @@ -720,23 +526,11 @@ public final void deleteAutoscalingPolicy(String name) { deleteAutoscalingPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * - *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(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 */ @@ -744,24 +538,12 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request deleteAutoscalingPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * *

Sample code: - * - *


-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName("[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteAutoscalingPolicyCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java index bba18dee..bf828d37 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -34,7 +35,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}. * @@ -51,24 +52,26 @@ * *

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
  *     .createAutoscalingPolicySettings()
  *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ *         autoscalingPolicyServiceSettingsBuilder
+ *             .createAutoscalingPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
- * 
- * 
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + * autoscalingPolicyServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ public UnaryCallSettings createAutoscalingPolicySettings() { @@ -168,18 +171,15 @@ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOExc /** Builder for AutoscalingPolicyServiceSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); - } - protected Builder(AutoscalingPolicyServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -188,11 +188,15 @@ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); + } + public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index ef8757f8..079cb1fd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.ApiFunction; @@ -39,7 +40,7 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The ClusterControllerService provides methods to manage clusters of Compute * Engine instances. @@ -47,18 +48,7 @@ *

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: * - *

- * 
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   String clusterName = "";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the clusterControllerClient object to clean up resources + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * ClusterControllerClient clusterControllerClient =
  *     ClusterControllerClient.create(clusterControllerSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ClusterControllerClient clusterControllerClient =
  *     ClusterControllerClient.create(clusterControllerSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class ClusterControllerClient implements BackgroundResource { private final ClusterControllerSettings settings; private final ClusterControllerStub stub; @@ -132,7 +120,7 @@ public static final ClusterControllerClient create(ClusterControllerSettings set /** * Constructs an instance of ClusterControllerClient, using the given stub for making calls. This - * is for advanced usage - prefer to use ClusterControllerSettings}. + * is for advanced usage - prefer using create(ClusterControllerSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final ClusterControllerClient create(ClusterControllerStub stub) { @@ -170,37 +158,22 @@ public ClusterControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. * @param cluster Required. The cluster to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture createClusterAsync( String projectId, String region, Cluster cluster) { CreateClusterRequest request = @@ -212,115 +185,51 @@ public final OperationFuture createClusterAsy return createClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture createClusterAsync( CreateClusterRequest request) { return createClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.createClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable createClusterOperationCallable() { return stub.createClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   CreateClusterRequest request = CreateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setCluster(cluster)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.createClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable createClusterCallable() { return stub.createClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. @@ -353,8 +262,6 @@ public final UnaryCallable createClusterCallabl * change autoscaling policies</td> </tr> </table> * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateClusterAsync( String projectId, String region, String clusterName, Cluster cluster, FieldMask updateMask) { UpdateClusterRequest request = @@ -368,133 +275,57 @@ public final OperationFuture updateClusterAsy return updateClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture updateClusterAsync( UpdateClusterRequest request) { return updateClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable updateClusterOperationCallable() { return stub.updateClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateClusterRequest request = UpdateClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .setCluster(cluster)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.updateClusterCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateClusterCallable() { return stub.updateClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture deleteClusterAsync( String projectId, String region, String clusterName) { DeleteClusterRequest request = @@ -506,245 +337,49 @@ public final OperationFuture deleteClusterAsync return deleteClusterAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   clusterControllerClient.deleteClusterAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture deleteClusterAsync( DeleteClusterRequest request) { return deleteClusterOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   OperationFuture<Empty, ClusterOperationMetadata> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable deleteClusterOperationCallable() { return stub.deleteClusterOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DeleteClusterRequest request = DeleteClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.deleteClusterCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteClusterCallable() { return stub.deleteClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
-   * }
-   * 
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture diagnoseClusterAsync( - String projectId, String region, String clusterName) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return diagnoseClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   clusterControllerClient.diagnoseClusterAsync(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 - */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture diagnoseClusterAsync( - DiagnoseClusterRequest request) { - return diagnoseClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   OperationFuture<Empty, ClusterOperationMetadata> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable - diagnoseClusterOperationCallable() { - return stub.diagnoseClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   DiagnoseClusterRequest request = DiagnoseClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Operation> future = clusterControllerClient.diagnoseClusterCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable diagnoseClusterCallable() { - return stub.diagnoseClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -761,26 +396,10 @@ public final Cluster getCluster(String projectId, String region, String clusterN return getCluster(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   Cluster response = clusterControllerClient.getCluster(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 */ @@ -788,48 +407,20 @@ public final Cluster getCluster(GetClusterRequest request) { return getClusterCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a cluster in a project. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String clusterName = "";
-   *   GetClusterRequest request = GetClusterRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setClusterName(clusterName)
-   *     .build();
-   *   ApiFuture<Cluster> future = clusterControllerClient.getClusterCallable().futureCall(request);
-   *   // Do something
-   *   Cluster response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getClusterCallable() { return stub.getClusterCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -841,23 +432,10 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg return listClusters(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String filter = "";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -888,26 +466,10 @@ public final ListClustersPagedResponse listClusters( return listClusters(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * - *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   for (Cluster element : clusterControllerClient.listClusters(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 */ @@ -915,66 +477,97 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) return listClustersPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   ApiFuture<ListClustersPagedResponse> future = clusterControllerClient.listClustersPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Cluster element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listClustersPagedCallable() { return stub.listClustersPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all regions/{region}/clusters in a project alphabetically. * *

Sample code: - * - *


-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListClustersRequest request = ListClustersRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   while (true) {
-   *     ListClustersResponse response = clusterControllerClient.listClustersCallable().call(request);
-   *     for (Cluster element : response.getClustersList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listClustersCallable() { return stub.listClustersCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains [Empty][google.protobuf.Empty]. + * + * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs + * to. + * @param region Required. The Dataproc region in which to handle the request. + * @param clusterName Required. The cluster name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture diagnoseClusterAsync( + String projectId, String region, String clusterName) { + DiagnoseClusterRequest request = + DiagnoseClusterRequest.newBuilder() + .setProjectId(projectId) + .setRegion(region) + .setClusterName(clusterName) + .build(); + return diagnoseClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains [Empty][google.protobuf.Empty]. + * + * @param request The request 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 diagnoseClusterAsync( + DiagnoseClusterRequest request) { + return diagnoseClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains [Empty][google.protobuf.Empty]. + * + *

Sample code: + */ + public final OperationCallable + diagnoseClusterOperationCallable() { + return stub.diagnoseClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cluster diagnostic information. The returned + * [Operation.metadata][google.longrunning.Operation.metadata] will be + * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * After the operation completes, [Operation.response][google.longrunning.Operation.response] + * contains [Empty][google.protobuf.Empty]. + * + *

Sample code: + */ + public final UnaryCallable diagnoseClusterCallable() { + return stub.diagnoseClusterCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java index bc15c2a9..de87b9c1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link ClusterControllerClient}. * @@ -53,31 +54,30 @@ * *

For example, to set the total timeout of getCluster to 30 seconds: * - *

- * 
+ * 
{@code
  * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
+ *         clusterControllerSettingsBuilder
+ *             .getClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class ClusterControllerSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).createClusterSettings(); } /** Returns the object with the settings used for calls to createCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings createClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).createClusterOperationSettings(); @@ -89,8 +89,6 @@ public UnaryCallSettings updateClusterSettings( } /** Returns the object with the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings updateClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).updateClusterOperationSettings(); @@ -102,26 +100,11 @@ public UnaryCallSettings deleteClusterSettings( } /** Returns the object with the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings deleteClusterOperationSettings() { return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterOperationSettings(); } - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterSettings(); - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings - diagnoseClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterOperationSettings(); - } - /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).getClusterSettings(); @@ -133,6 +116,17 @@ public UnaryCallSettings getClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).listClustersSettings(); } + /** Returns the object with the settings used for calls to diagnoseCluster. */ + public UnaryCallSettings diagnoseClusterSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterSettings(); + } + + /** Returns the object with the settings used for calls to diagnoseCluster. */ + public OperationCallSettings + diagnoseClusterOperationSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterOperationSettings(); + } + public static final ClusterControllerSettings create(ClusterControllerStubSettings stub) throws IOException { return new ClusterControllerSettings.Builder(stub.toBuilder()).build(); @@ -193,18 +187,15 @@ protected ClusterControllerSettings(Builder settingsBuilder) throws IOException /** Builder for ClusterControllerSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(ClusterControllerStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(ClusterControllerStubSettings.newBuilder()); - } - protected Builder(ClusterControllerSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -213,11 +204,15 @@ protected Builder(ClusterControllerStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(ClusterControllerStubSettings.newBuilder()); + } + public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { return ((ClusterControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -236,8 +231,6 @@ public UnaryCallSettings.Builder createClusterS } /** Returns the builder for the settings used for calls to createCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder createClusterOperationSettings() { return getStubSettingsBuilder().createClusterOperationSettings(); @@ -249,8 +242,6 @@ public UnaryCallSettings.Builder updateClusterS } /** Returns the builder for the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder updateClusterOperationSettings() { return getStubSettingsBuilder().updateClusterOperationSettings(); @@ -262,26 +253,11 @@ public UnaryCallSettings.Builder deleteClusterS } /** Returns the builder for the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder deleteClusterOperationSettings() { return getStubSettingsBuilder().deleteClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return getStubSettingsBuilder().diagnoseClusterSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder - diagnoseClusterOperationSettings() { - return getStubSettingsBuilder().diagnoseClusterOperationSettings(); - } - /** Returns the builder for the settings used for calls to getCluster. */ public UnaryCallSettings.Builder getClusterSettings() { return getStubSettingsBuilder().getClusterSettings(); @@ -294,6 +270,17 @@ public UnaryCallSettings.Builder getClusterSettings( return getStubSettingsBuilder().listClustersSettings(); } + /** Returns the builder for the settings used for calls to diagnoseCluster. */ + public UnaryCallSettings.Builder diagnoseClusterSettings() { + return getStubSettingsBuilder().diagnoseClusterSettings(); + } + + /** Returns the builder for the settings used for calls to diagnoseCluster. */ + public OperationCallSettings.Builder + diagnoseClusterOperationSettings() { + return getStubSettingsBuilder().diagnoseClusterOperationSettings(); + } + @Override public ClusterControllerSettings build() throws IOException { return new ClusterControllerSettings(this); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 317f91de..2dcf938f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.ApiFunction; @@ -38,25 +39,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The JobController provides methods to manage jobs. * *

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: * - *

- * 
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the jobControllerClient object to clean up resources such + *

Note: close() needs to be called on the JobControllerClient 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 @@ -84,30 +74,26 @@ * *

To customize credentials: * - *

- * 
+ * 
{@code
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
- * JobControllerClient jobControllerClient =
- *     JobControllerClient.create(jobControllerSettings);
- * 
- * 
+ * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * JobControllerClient jobControllerClient =
- *     JobControllerClient.create(jobControllerSettings);
- * 
- * 
+ * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class JobControllerClient implements BackgroundResource { private final JobControllerSettings settings; private final JobControllerStub stub; @@ -129,7 +115,7 @@ public static final JobControllerClient create(JobControllerSettings settings) /** * Constructs an instance of JobControllerClient, using the given stub for making calls. This is - * for advanced usage - prefer to use JobControllerSettings}. + * for advanced usage - prefer using create(JobControllerSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final JobControllerClient create(JobControllerStub stub) { @@ -167,27 +153,14 @@ public JobControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJob(projectId, region, job);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -199,26 +172,10 @@ public final Job submitJob(String projectId, String region, Job job) { return submitJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   Job response = jobControllerClient.submitJob(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 */ @@ -226,54 +183,25 @@ public final Job submitJob(SubmitJobRequest request) { return submitJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.submitJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable submitJobCallable() { return stub.submitJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture submitJobAsOperationAsync( String projectId, String region, Job job) { SubmitJobRequest request = @@ -281,105 +209,43 @@ public final OperationFuture submitJobAsOperationAsync( return submitJobAsOperationAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture submitJobAsOperationAsync( SubmitJobRequest request) { return submitJobAsOperationOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   OperationFuture<Job, JobMetadata> future = jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable submitJobAsOperationOperationCallable() { return stub.submitJobAsOperationOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits job to a cluster. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   Job job = Job.newBuilder().build();
-   *   SubmitJobRequest request = SubmitJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJob(job)
-   *     .build();
-   *   ApiFuture<Operation> future = jobControllerClient.submitJobAsOperationCallable().futureCall(request);
-   *   // Do something
-   *   Operation response = future.get();
-   * }
-   * 
*/ public final UnaryCallable submitJobAsOperationCallable() { return stub.submitJobAsOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -395,26 +261,10 @@ public final Job getJob(String projectId, String region, String jobId) { return getJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   GetJobRequest request = GetJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   Job response = jobControllerClient.getJob(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 */ @@ -422,48 +272,20 @@ public final Job getJob(GetJobRequest request) { return getJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the resource representation for a job in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   GetJobRequest request = GetJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.getJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable getJobCallable() { return stub.getJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -474,23 +296,10 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) { return listJobs(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String filter = "";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and @@ -514,26 +323,10 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str return listJobs(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   for (Job element : jobControllerClient.listJobs(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 */ @@ -541,89 +334,30 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { return listJobsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   ApiFuture<ListJobsPagedResponse> future = jobControllerClient.listJobsPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (Job element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listJobsPagedCallable() { return stub.listJobsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists regions/{region}/jobs in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   ListJobsRequest request = ListJobsRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .build();
-   *   while (true) {
-   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
-   *     for (Job element : response.getJobsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listJobsCallable() { return stub.listJobsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a job in a project. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job job = Job.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .setJob(job)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   Job response = jobControllerClient.updateJob(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 */ @@ -631,54 +365,23 @@ public final Job updateJob(UpdateJobRequest request) { return updateJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a job in a project. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job job = Job.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   UpdateJobRequest request = UpdateJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .setJob(job)
-   *     .setUpdateMask(updateMask)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.updateJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateJobCallable() { return stub.updateJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -694,29 +397,13 @@ public final Job cancelJob(String projectId, String region, String jobId) { return cancelJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   CancelJobRequest request = CancelJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   Job response = jobControllerClient.cancelJob(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 */ @@ -724,7 +411,7 @@ public final Job cancelJob(CancelJobRequest request) { return cancelJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) @@ -732,43 +419,16 @@ public final Job cancelJob(CancelJobRequest request) { * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   CancelJobRequest request = CancelJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Job> future = jobControllerClient.cancelJobCallable().futureCall(request);
-   *   // Do something
-   *   Job response = future.get();
-   * }
-   * 
*/ public final UnaryCallable cancelJobCallable() { return stub.cancelJobCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   jobControllerClient.deleteJob(projectId, region, jobId);
-   * }
-   * 
- * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -784,27 +444,11 @@ public final void deleteJob(String projectId, String region, String jobId) { deleteJob(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * - *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   jobControllerClient.deleteJob(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 */ @@ -812,28 +456,12 @@ public final void deleteJob(DeleteJobRequest request) { deleteJobCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * *

Sample code: - * - *


-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "";
-   *   String region = "";
-   *   String jobId = "";
-   *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
-   *     .setProjectId(projectId)
-   *     .setRegion(region)
-   *     .setJobId(jobId)
-   *     .build();
-   *   ApiFuture<Void> future = jobControllerClient.deleteJobCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteJobCallable() { return stub.deleteJobCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java index 64548f63..01c5dea3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link JobControllerClient}. * @@ -53,36 +54,34 @@ * *

For example, to set the total timeout of submitJob to 30 seconds: * - *

- * 
- * JobControllerSettings.Builder jobControllerSettingsBuilder =
- *     JobControllerSettings.newBuilder();
+ * 
{@code
+ * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
+ *         jobControllerSettingsBuilder
+ *             .submitJobSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class JobControllerSettings extends ClientSettings { + /** Returns the object with the settings used for calls to submitJob. */ public UnaryCallSettings submitJobSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobSettings(); } - /** Returns the object with the settings used for calls to submitJobAsOperation. */ + /** Returns the object with the settings used for calls to submitJobAs. */ public UnaryCallSettings submitJobAsOperationSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationSettings(); } /** Returns the object with the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings submitJobAsOperationOperationSettings() { return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationOperationSettings(); @@ -174,18 +173,15 @@ protected JobControllerSettings(Builder settingsBuilder) throws IOException { /** Builder for JobControllerSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(JobControllerStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(JobControllerStubSettings.newBuilder()); - } - protected Builder(JobControllerSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -194,11 +190,15 @@ protected Builder(JobControllerStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(JobControllerStubSettings.newBuilder()); + } + public JobControllerStubSettings.Builder getStubSettingsBuilder() { return ((JobControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -216,14 +216,12 @@ public UnaryCallSettings.Builder submitJobSettings() { return getStubSettingsBuilder().submitJobSettings(); } - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ + /** Returns the builder for the settings used for calls to submitJobAs. */ public UnaryCallSettings.Builder submitJobAsOperationSettings() { return getStubSettingsBuilder().submitJobAsOperationSettings(); } /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder submitJobAsOperationOperationSettings() { return getStubSettingsBuilder().submitJobAsOperationOperationSettings(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 62caeb0d..7a14f842 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.ApiFunction; @@ -39,24 +40,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

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: * - *

- * 
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the workflowTemplateServiceClient object to clean up + *

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

To customize credentials: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
  *         .build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * 
- * 
+ * }
* - * To customize the endpoint: + *

To customize the endpoint: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * 
- * 
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class WorkflowTemplateServiceClient implements BackgroundResource { private final WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; @@ -130,7 +119,7 @@ public static final WorkflowTemplateServiceClient create(WorkflowTemplateService /** * Constructs an instance of WorkflowTemplateServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer to use WorkflowTemplateServiceSettings}. + * This is for advanced usage - prefer using create(WorkflowTemplateServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final WorkflowTemplateServiceClient create(WorkflowTemplateServiceStub stub) { @@ -169,13 +158,195 @@ public WorkflowTemplateServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationsClient getOperationsClient() { return operationsClient; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate( + LocationName parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTemplate(template) + .build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *
    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate( + RegionName parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTemplate(template) + .build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param parent Required. The resource name of the region or location, as described in + * https://cloud.google.com/apis/design/resource_names. + *
    + *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * + * @param template Required. The Dataproc workflow template to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); + return createWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { + return createWorkflowTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new workflow template. + * + *

Sample code: + */ + public final UnaryCallable + createWorkflowTemplateCallable() { + return stub.createWorkflowTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param name Required. The resource name of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param name Required. The resource name of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names. + *

    + *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has + * the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(String name) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder().setName(name).build(); + return getWorkflowTemplate(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { + return getWorkflowTemplateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the latest workflow template. + * + *

Can retrieve previously instantiated template by specifying optional version parameter. + * + *

Sample code: + */ + public final UnaryCallable + getWorkflowTemplateCallable() { + return stub.getWorkflowTemplateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -195,27 +366,21 @@ public final OperationsClient getOperationsClient() { *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( WorkflowTemplateName name) { InstantiateWorkflowTemplateRequest request = @@ -225,7 +390,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -245,27 +410,21 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( String name) { InstantiateWorkflowTemplateRequest request = @@ -273,7 +432,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -293,30 +452,23 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Map<String, String> parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @param parameters Optional. Map from parameter names to values that should be used for those * parameters. Values may not exceed 100 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( WorkflowTemplateName name, Map parameters) { InstantiateWorkflowTemplateRequest request = @@ -327,7 +479,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -347,30 +499,23 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Map<String, String> parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString(), parameters).get();
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @param parameters Optional. Map from parameter names to values that should be used for those * parameters. Values may not exceed 100 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( String name, Map parameters) { InstantiateWorkflowTemplateRequest request = @@ -381,7 +526,7 @@ public final OperationFuture instantiateWorkflowTemplat return instantiateWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -401,29 +546,15 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateWorkflowTemplateAsync( InstantiateWorkflowTemplateRequest request) { return instantiateWorkflowTemplateOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -444,26 +575,13 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable instantiateWorkflowTemplateOperationCallable() { return stub.instantiateWorkflowTemplateOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -484,25 +602,13 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Operation> future = workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable instantiateWorkflowTemplateCallable() { return stub.instantiateWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -527,29 +633,22 @@ public final OperationFuture instantiateWorkflowTemplat *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( - RegionName parent, WorkflowTemplate template) { + LocationName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -558,7 +657,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -583,29 +682,22 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( - LocationName parent, WorkflowTemplate template) { + RegionName parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -614,7 +706,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -639,27 +731,20 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent.toString(), template).get();
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,instantiateinline`, the resource name of - * the region has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the + * region has the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of + * the location has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @param template Required. The workflow template to instantiate. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( String parent, WorkflowTemplate template) { InstantiateInlineWorkflowTemplateRequest request = @@ -670,7 +755,7 @@ public final OperationFuture instantiateInlineWorkflowT return instantiateInlineWorkflowTemplateAsync(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -695,31 +780,15 @@ public final OperationFuture instantiateInlineWorkflowT *

On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture instantiateInlineWorkflowTemplateAsync( InstantiateInlineWorkflowTemplateRequest request) { return instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -745,28 +814,13 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { return stub.instantiateInlineWorkflowTemplateOperationCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Instantiates a template and begins execution. * @@ -792,299 +846,17 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<Operation> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable instantiateInlineWorkflowTemplateCallable() { return stub.instantiateInlineWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - RegionName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - LocationName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent.toString(), template);
-   * }
-   * 
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { - return createWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates new workflow template. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   CreateWorkflowTemplateRequest request = CreateWorkflowTemplateRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - createWorkflowTemplateCallable() { - return stub.createWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * 
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name.toString());
-   * }
-   * 
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.get`, the resource name of the template - * has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(String name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder().setName(name).build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   GetWorkflowTemplateRequest request = GetWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { - return getWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   GetWorkflowTemplateRequest request = GetWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - getWorkflowTemplateCallable() { - return stub.getWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
-   * }
-   * 
- * * @param template Required. The updated workflow template. *

The `template.version` field must match the current version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1095,23 +867,11 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) return updateWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   UpdateWorkflowTemplateRequest request = UpdateWorkflowTemplateRequest.newBuilder()
-   *     .setTemplate(template)
-   *     .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 */ @@ -1119,54 +879,36 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque return updateWorkflowTemplateCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   UpdateWorkflowTemplateRequest request = UpdateWorkflowTemplateRequest.newBuilder()
-   *     .setTemplate(template)
-   *     .build();
-   *   ApiFuture<WorkflowTemplate> future = workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   WorkflowTemplate response = future.get();
-   * }
-   * 
*/ public final UnaryCallable updateWorkflowTemplateCallable() { return stub.updateWorkflowTemplateCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1174,30 +916,24 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { + public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -1205,27 +941,21 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(parent.toString()).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *

* For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` + *

    + *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has + * the following format: `projects/{project_id}/regions/{region}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location + * has the following format: `projects/{project_id}/locations/{location}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String parent) { @@ -1234,24 +964,10 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par return listWorkflowTemplates(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   for (WorkflowTemplate element : workflowTemplateServiceClient.listWorkflowTemplates(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 */ @@ -1260,84 +976,45 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( return listWorkflowTemplatesPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   ApiFuture<ListWorkflowTemplatesPagedResponse> future = workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
-   *   // Do something
-   *   for (WorkflowTemplate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listWorkflowTemplatesPagedCallable() { return stub.listWorkflowTemplatesPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists workflows that match the specified filter in the request. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   ListWorkflowTemplatesRequest request = ListWorkflowTemplatesRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .build();
-   *   while (true) {
-   *     ListWorkflowTemplatesResponse response = workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
-   *     for (WorkflowTemplate element : response.getTemplatesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * 
*/ public final UnaryCallable listWorkflowTemplatesCallable() { return stub.listWorkflowTemplatesCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template + * has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { @@ -1348,27 +1025,23 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { deleteWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name.toString());
-   * }
-   * 
- * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. - *

* For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *

* For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *

    + *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template + * has the following format: + * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` + *
+ *
    + *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the + * template has the following format: + * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteWorkflowTemplate(String name) { @@ -1377,22 +1050,10 @@ public final void deleteWorkflowTemplate(String name) { deleteWorkflowTemplate(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * - *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   DeleteWorkflowTemplateRequest request = DeleteWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(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 */ @@ -1400,23 +1061,11 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) deleteWorkflowTemplateCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a workflow template. It does not cancel in-progress workflows. * *

Sample code: - * - *


-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   DeleteWorkflowTemplateRequest request = DeleteWorkflowTemplateRequest.newBuilder()
-   *     .setName(name.toString())
-   *     .build();
-   *   ApiFuture<Void> future = workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
*/ public final UnaryCallable deleteWorkflowTemplateCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java index 1cdc2e87..0d0f9e3c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -36,7 +37,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link WorkflowTemplateServiceClient}. * @@ -53,24 +54,39 @@ * *

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
  *     .createWorkflowTemplateSettings()
  *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder.createWorkflowTemplateSettings().getRetrySettings().toBuilder()
+ *         workflowTemplateServiceSettingsBuilder
+ *             .createWorkflowTemplateSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = workflowTemplateServiceSettingsBuilder.build();
- * 
- * 
+ * WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + * workflowTemplateServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") -@BetaApi +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings + createWorkflowTemplateSettings() { + return ((WorkflowTemplateServiceStubSettings) getStubSettings()) + .createWorkflowTemplateSettings(); + } + + /** Returns the object with the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings + getWorkflowTemplateSettings() { + return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); + } + /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings instantiateWorkflowTemplateSettings() { @@ -79,8 +95,6 @@ public class WorkflowTemplateServiceSettings } /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings instantiateWorkflowTemplateOperationSettings() { return ((WorkflowTemplateServiceStubSettings) getStubSettings()) @@ -95,27 +109,12 @@ public class WorkflowTemplateServiceSettings } /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings instantiateInlineWorkflowTemplateOperationSettings() { return ((WorkflowTemplateServiceStubSettings) getStubSettings()) .instantiateInlineWorkflowTemplateOperationSettings(); } - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .createWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); - } - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings updateWorkflowTemplateSettings() { @@ -200,18 +199,15 @@ protected WorkflowTemplateServiceSettings(Builder settingsBuilder) throws IOExce /** Builder for WorkflowTemplateServiceSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(WorkflowTemplateServiceStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); - } - protected Builder(WorkflowTemplateServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -220,11 +216,15 @@ protected Builder(WorkflowTemplateServiceStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); + } + public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -237,6 +237,18 @@ public Builder applyToAllUnaryMethods( return this; } + /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings.Builder + createWorkflowTemplateSettings() { + return getStubSettingsBuilder().createWorkflowTemplateSettings(); + } + + /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings.Builder + getWorkflowTemplateSettings() { + return getStubSettingsBuilder().getWorkflowTemplateSettings(); + } + /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings.Builder instantiateWorkflowTemplateSettings() { @@ -244,8 +256,6 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateWorkflowTemplateOperationSettings() { @@ -259,26 +269,12 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings() { return getStubSettingsBuilder().instantiateInlineWorkflowTemplateOperationSettings(); } - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return getStubSettingsBuilder().createWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getStubSettingsBuilder().getWorkflowTemplateSettings(); - } - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings.Builder updateWorkflowTemplateSettings() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java index 76ab2821..4fc507e1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -15,79 +15,35 @@ */ /** - * A client to Cloud Dataproc API. + * The interfaces provided are listed below, along with usage samples. * - *

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

============================== AutoscalingPolicyServiceClient ============================== + *

======================= AutoscalingPolicyServiceClient ======================= * *

Service Description: The API interface for managing autoscaling policies in the Cloud Dataproc * API. * *

Sample for AutoscalingPolicyServiceClient: * - *

- * 
- * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * 
- * 
- * - * ======================= ClusterControllerClient ======================= + *

======================= ClusterControllerClient ======================= * *

Service Description: The ClusterControllerService provides methods to manage clusters of * Compute Engine instances. * *

Sample for ClusterControllerClient: * - *

- * 
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   String clusterName = "";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * 
- * 
- * - * =================== JobControllerClient =================== + *

======================= JobControllerClient ======================= * *

Service Description: The JobController provides methods to manage jobs. * *

Sample for JobControllerClient: * - *

- * 
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "";
- *   String region = "";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * 
- * 
- * - * ============================= WorkflowTemplateServiceClient ============================= + *

======================= WorkflowTemplateServiceClient ======================= * *

Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

Sample for WorkflowTemplateServiceClient: - * - *

- * 
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * 
- * 
*/ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") package com.google.cloud.dataproc.v1beta2; import javax.annotation.Generated; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java index d47ffbe7..454054a2 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy; @@ -30,14 +30,13 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the AutoscalingPolicyService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { public UnaryCallable diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java index 03020574..fd716b84 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -56,7 +57,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link AutoscalingPolicyServiceStub}. * @@ -73,22 +74,24 @@ * *

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * - *

- * 
+ * 
{@code
  * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceStubSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
  *     .createAutoscalingPolicySettings()
  *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ *         autoscalingPolicyServiceSettingsBuilder
+ *             .createAutoscalingPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
- * 
- * 
+ * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = + * autoscalingPolicyServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceStubSettings extends StubSettings { /** The default scopes of the service. */ @@ -109,6 +112,78 @@ public class AutoscalingPolicyServiceStubSettings private final UnaryCallSettings deleteAutoscalingPolicySettings; + private static final PagedListDescriptor< + ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> + LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + AutoscalingPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAutoscalingPoliciesRequest injectToken( + ListAutoscalingPoliciesRequest payload, String token) { + return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAutoscalingPoliciesRequest injectPageSize( + ListAutoscalingPoliciesRequest payload, int pageSize) { + return ListAutoscalingPoliciesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAutoscalingPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAutoscalingPoliciesResponse payload) { + return payload.getPoliciesList() == null + ? ImmutableList.of() + : payload.getPoliciesList(); + } + }; + + private static final PagedListResponseFactory< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + ListAutoscalingPoliciesPagedResponse> + LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + ListAutoscalingPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListAutoscalingPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAutoscalingPoliciesRequest, + ListAutoscalingPoliciesResponse, + AutoscalingPolicy> + pageContext = + PageContext.create( + callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); + return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ public UnaryCallSettings createAutoscalingPolicySettings() { @@ -148,10 +223,10 @@ public AutoscalingPolicyServiceStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAutoscalingPolicyServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -218,83 +293,10 @@ protected AutoscalingPolicyServiceStubSettings(Builder settingsBuilder) throws I deleteAutoscalingPolicySettings = settingsBuilder.deleteAutoscalingPolicySettings().build(); } - private static final PagedListDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAutoscalingPoliciesRequest injectToken( - ListAutoscalingPoliciesRequest payload, String token) { - return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAutoscalingPoliciesRequest injectPageSize( - ListAutoscalingPoliciesRequest payload, int pageSize) { - return ListAutoscalingPoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAutoscalingPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAutoscalingPoliciesResponse payload) { - return payload.getPoliciesList() != null - ? payload.getPoliciesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutoscalingPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy> - pageContext = - PageContext.create( - callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); - return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for AutoscalingPolicyServiceStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createAutoscalingPolicySettings; private final UnaryCallSettings.Builder @@ -308,51 +310,19 @@ public static class Builder listAutoscalingPoliciesSettings; private final UnaryCallSettings.Builder deleteAutoscalingPolicySettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_7_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -363,110 +333,38 @@ public static class Builder RetrySettings settings = null; settings = RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(600000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(600000L)) .setTotalTimeout(Duration.ofMillis(600000L)) .build(); - definitions.put("retry_policy_7_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_5_params", settings); + definitions.put("no_retry_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) .setRetryDelayMultiplier(1.3) .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_4_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - settings = - RetrySettings.newBuilder() .setInitialRpcTimeout(Duration.ofMillis(600000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(600000L)) .setTotalTimeout(Duration.ofMillis(600000L)) .build(); - definitions.put("no_retry_1_params", settings); + definitions.put("retry_policy_1_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAutoscalingPoliciesSettings = PagedCallSettings.newBuilder(LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT); - deleteAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -476,25 +374,43 @@ protected Builder(ClientContext clientContext) { getAutoscalingPolicySettings, listAutoscalingPoliciesSettings, deleteAutoscalingPolicySettings); - initDefaults(this); } + protected Builder(AutoscalingPolicyServiceStubSettings settings) { + super(settings); + + createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); + updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); + getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); + listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); + deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAutoscalingPolicySettings, + updateAutoscalingPolicySettings, + getAutoscalingPolicySettings, + listAutoscalingPoliciesSettings, + deleteAutoscalingPolicySettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); builder .updateAutoscalingPolicySettings() @@ -513,31 +429,13 @@ private static Builder initDefaults(Builder builder) { builder .deleteAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); return builder; } - protected Builder(AutoscalingPolicyServiceStubSettings settings) { - super(settings); - - createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); - updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); - getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); - listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); - deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java index 0981902f..849645b3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -35,22 +35,19 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the ClusterController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class ClusterControllerStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable createClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); @@ -60,7 +57,6 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable updateClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); @@ -70,7 +66,6 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); @@ -80,16 +75,6 @@ public UnaryCallable deleteClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - diagnoseClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); - } - - public UnaryCallable diagnoseClusterCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); - } - public UnaryCallable getClusterCallable() { throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); } @@ -102,6 +87,15 @@ public UnaryCallable listClustersCall throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); } + public OperationCallable + diagnoseClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); + } + + public UnaryCallable diagnoseClusterCallable() { + throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java index 4109126d..7857251c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; @@ -63,7 +64,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link ClusterControllerStub}. * @@ -80,22 +81,24 @@ * *

For example, to set the total timeout of getCluster to 30 seconds: * - *

- * 
+ * 
{@code
  * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerStubSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
+ *         clusterControllerSettingsBuilder
+ *             .getClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * ClusterControllerStubSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * 
- * 
+ * ClusterControllerStubSettings clusterControllerSettings = + * clusterControllerSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class ClusterControllerStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -110,13 +113,66 @@ public class ClusterControllerStubSettings extends StubSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; - private final UnaryCallSettings diagnoseClusterSettings; - private final OperationCallSettings - diagnoseClusterOperationSettings; private final UnaryCallSettings getClusterSettings; private final PagedCallSettings< ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> listClustersSettings; + private final UnaryCallSettings diagnoseClusterSettings; + private final OperationCallSettings + diagnoseClusterOperationSettings; + + private static final PagedListDescriptor + LIST_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListClustersRequest injectToken(ListClustersRequest payload, String token) { + return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { + return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListClustersResponse payload) { + return payload.getClustersList() == null + ? ImmutableList.of() + : payload.getClustersList(); + } + }; + + private static final PagedListResponseFactory< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + LIST_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); + return ListClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; /** Returns the object with the settings used for calls to createCluster. */ public UnaryCallSettings createClusterSettings() { @@ -124,7 +180,6 @@ public UnaryCallSettings createClusterSettings( } /** Returns the object with the settings used for calls to createCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings createClusterOperationSettings() { return createClusterOperationSettings; @@ -136,7 +191,6 @@ public UnaryCallSettings updateClusterSettings( } /** Returns the object with the settings used for calls to updateCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings updateClusterOperationSettings() { return updateClusterOperationSettings; @@ -148,24 +202,11 @@ public UnaryCallSettings deleteClusterSettings( } /** Returns the object with the settings used for calls to deleteCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings deleteClusterOperationSettings() { return deleteClusterOperationSettings; } - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return diagnoseClusterSettings; - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings - diagnoseClusterOperationSettings() { - return diagnoseClusterOperationSettings; - } - /** Returns the object with the settings used for calls to getCluster. */ public UnaryCallSettings getClusterSettings() { return getClusterSettings; @@ -177,16 +218,27 @@ public UnaryCallSettings getClusterSettings() { return listClustersSettings; } + /** Returns the object with the settings used for calls to diagnoseCluster. */ + public UnaryCallSettings diagnoseClusterSettings() { + return diagnoseClusterSettings; + } + + /** Returns the object with the settings used for calls to diagnoseCluster. */ + public OperationCallSettings + diagnoseClusterOperationSettings() { + return diagnoseClusterOperationSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ClusterControllerStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcClusterControllerStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -252,69 +304,15 @@ protected ClusterControllerStubSettings(Builder settingsBuilder) throws IOExcept updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); - diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); - diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); getClusterSettings = settingsBuilder.getClusterSettings().build(); listClustersSettings = settingsBuilder.listClustersSettings().build(); + diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); + diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); } - private static final PagedListDescriptor - LIST_CLUSTERS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListClustersRequest injectToken(ListClustersRequest payload, String token) { - return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { - return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListClustersRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListClustersResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListClustersResponse payload) { - return payload.getClustersList() != null - ? payload.getClustersList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - LIST_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); - return ListClustersPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for ClusterControllerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createClusterSettings; private final OperationCallSettings.Builder< CreateClusterRequest, Cluster, ClusterOperationMetadata> @@ -327,23 +325,24 @@ public static class Builder extends StubSettings.Builder deleteClusterOperationSettings; + private final UnaryCallSettings.Builder getClusterSettings; + private final PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings; private final UnaryCallSettings.Builder diagnoseClusterSettings; private final OperationCallSettings.Builder< DiagnoseClusterRequest, Empty, ClusterOperationMetadata> diagnoseClusterOperationSettings; - private final UnaryCallSettings.Builder getClusterSettings; - private final PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_3_codes", ImmutableSet.copyOf( @@ -351,9 +350,6 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -384,61 +380,74 @@ public static class Builder extends StubSettings.Builder>of( + createClusterSettings, + updateClusterSettings, + deleteClusterSettings, + getClusterSettings, + listClustersSettings, + diagnoseClusterSettings); + initDefaults(this); + } - listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); + protected Builder(ClusterControllerStubSettings settings) { + super(settings); + + createClusterSettings = settings.createClusterSettings.toBuilder(); + createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + updateClusterSettings = settings.updateClusterSettings.toBuilder(); + updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); + deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); + getClusterSettings = settings.getClusterSettings.toBuilder(); + listClustersSettings = settings.listClustersSettings.toBuilder(); + diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); + diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createClusterSettings, updateClusterSettings, deleteClusterSettings, - diagnoseClusterSettings, getClusterSettings, - listClustersSettings); - - initDefaults(this); + listClustersSettings, + diagnoseClusterSettings); } private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) @@ -454,11 +463,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - builder - .diagnoseClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - builder .getClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) @@ -468,6 +472,12 @@ private static Builder initDefaults(Builder builder) { .listClustersSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .diagnoseClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + builder .createClusterOperationSettings() .setInitialCallSettings( @@ -486,11 +496,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .updateClusterOperationSettings() .setInitialCallSettings( @@ -509,11 +520,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .deleteClusterOperationSettings() .setInitialCallSettings( @@ -532,11 +544,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder .diagnoseClusterOperationSettings() .setInitialCallSettings( @@ -555,40 +568,16 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(30000L)) .build())); return builder; } - protected Builder(ClusterControllerStubSettings settings) { - super(settings); - - createClusterSettings = settings.createClusterSettings.toBuilder(); - createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); - updateClusterSettings = settings.updateClusterSettings.toBuilder(); - updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); - deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); - deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); - diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); - diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); - getClusterSettings = settings.getClusterSettings.toBuilder(); - listClustersSettings = settings.listClustersSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - deleteClusterSettings, - diagnoseClusterSettings, - getClusterSettings, - listClustersSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -643,6 +632,18 @@ public UnaryCallSettings.Builder deleteClusterS return deleteClusterOperationSettings; } + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getClusterSettings; + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public PagedCallSettings.Builder< + ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> + listClustersSettings() { + return listClustersSettings; + } + /** Returns the builder for the settings used for calls to diagnoseCluster. */ public UnaryCallSettings.Builder diagnoseClusterSettings() { return diagnoseClusterSettings; @@ -656,18 +657,6 @@ public UnaryCallSettings.Builder diagnoseClus return diagnoseClusterOperationSettings; } - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getClusterSettings; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return listClustersSettings; - } - @Override public ClusterControllerStubSettings build() throws IOException { return new ClusterControllerStubSettings(this); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index a49d57fe..01934f14 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the AutoscalingPolicyService service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcAutoscalingPolicyServiceCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index 789dabd5..ca60a8ac 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; -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; @@ -33,6 +33,7 @@ import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse; import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest; import com.google.common.collect.ImmutableMap; +import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -41,16 +42,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the AutoscalingPolicyService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { - private static final MethodDescriptor createAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -61,6 +60,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(CreateAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor updateAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -71,6 +71,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(UpdateAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor getAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -81,6 +82,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt ProtoUtils.marshaller(GetAutoscalingPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) .build(); + private static final MethodDescriptor< ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> listAutoscalingPoliciesMethodDescriptor = @@ -94,6 +96,7 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt .setResponseMarshaller( ProtoUtils.marshaller(ListAutoscalingPoliciesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteAutoscalingPolicyMethodDescriptor = MethodDescriptor.newBuilder() @@ -105,8 +108,6 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final UnaryCallable createAutoscalingPolicyCallable; private final UnaryCallable @@ -120,6 +121,8 @@ public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceSt private final UnaryCallable deleteAutoscalingPolicyCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcAutoscalingPolicyServiceStub create( @@ -161,6 +164,7 @@ protected GrpcAutoscalingPolicyServiceStub( GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createAutoscalingPolicyTransportSettings = @@ -265,7 +269,12 @@ public Map extract(DeleteAutoscalingPolicyRequest request) { settings.deleteAutoscalingPolicySettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; } public UnaryCallable @@ -283,16 +292,16 @@ public Map extract(DeleteAutoscalingPolicyRequest request) { return getAutoscalingPolicyCallable; } - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return listAutoscalingPoliciesPagedCallable; - } - public UnaryCallable listAutoscalingPoliciesCallable() { return listAutoscalingPoliciesCallable; } + public UnaryCallable + listAutoscalingPoliciesPagedCallable() { + return listAutoscalingPoliciesPagedCallable; + } + public UnaryCallable deleteAutoscalingPolicyCallable() { return deleteAutoscalingPolicyCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java index 0ed5f4b0..e4fdf302 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the ClusterController service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcClusterControllerCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index 402eb8f6..4e6f5b17 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,17 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; -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.OperationCallable; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.Cluster; import com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata; @@ -34,25 +35,25 @@ import com.google.cloud.dataproc.v1beta2.ListClustersRequest; import com.google.cloud.dataproc.v1beta2.ListClustersResponse; import com.google.cloud.dataproc.v1beta2.UpdateClusterRequest; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the ClusterController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcClusterControllerStub extends ClusterControllerStub { - private static final MethodDescriptor createClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -62,6 +63,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor updateClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -71,6 +73,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -80,15 +83,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - diagnoseClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/DiagnoseCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); + private static final MethodDescriptor getClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -96,6 +91,7 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) .build(); + private static final MethodDescriptor listClustersMethodDescriptor = MethodDescriptor.newBuilder() @@ -106,8 +102,15 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; + private static final MethodDescriptor + diagnoseClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/DiagnoseCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); private final UnaryCallable createClusterCallable; private final OperationCallable @@ -118,14 +121,16 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; - private final UnaryCallable diagnoseClusterCallable; - private final OperationCallable - diagnoseClusterOperationCallable; private final UnaryCallable getClusterCallable; private final UnaryCallable listClustersCallable; private final UnaryCallable listClustersPagedCallable; + private final UnaryCallable diagnoseClusterCallable; + private final OperationCallable + diagnoseClusterOperationCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings) @@ -171,26 +176,90 @@ protected GrpcClusterControllerStub( GrpcCallSettings createClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) - .build(); - GrpcCallSettings diagnoseClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(diagnoseClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings listClustersTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listClustersMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListClustersRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) + .build(); + GrpcCallSettings diagnoseClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(diagnoseClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DiagnoseClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); this.createClusterCallable = @@ -201,7 +270,7 @@ protected GrpcClusterControllerStub( createClusterTransportSettings, settings.createClusterOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.updateClusterCallable = callableFactory.createUnaryCallable( updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); @@ -210,7 +279,7 @@ protected GrpcClusterControllerStub( updateClusterTransportSettings, settings.updateClusterOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -219,16 +288,7 @@ protected GrpcClusterControllerStub( deleteClusterTransportSettings, settings.deleteClusterOperationSettings(), clientContext, - this.operationsStub); - this.diagnoseClusterCallable = - callableFactory.createUnaryCallable( - diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); - this.diagnoseClusterOperationCallable = - callableFactory.createOperationCallable( - diagnoseClusterTransportSettings, - settings.diagnoseClusterOperationSettings(), - clientContext, - this.operationsStub); + operationsStub); this.getClusterCallable = callableFactory.createUnaryCallable( getClusterTransportSettings, settings.getClusterSettings(), clientContext); @@ -238,65 +298,70 @@ protected GrpcClusterControllerStub( this.listClustersPagedCallable = callableFactory.createPagedCallable( listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.diagnoseClusterCallable = + callableFactory.createUnaryCallable( + diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); + this.diagnoseClusterOperationCallable = + callableFactory.createOperationCallable( + diagnoseClusterTransportSettings, + settings.diagnoseClusterOperationSettings(), + clientContext, + operationsStub); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + public OperationCallable createClusterOperationCallable() { return createClusterOperationCallable; } - public UnaryCallable createClusterCallable() { - return createClusterCallable; + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable updateClusterOperationCallable() { return updateClusterOperationCallable; } - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable deleteClusterOperationCallable() { return deleteClusterOperationCallable; } - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - diagnoseClusterOperationCallable() { - return diagnoseClusterOperationCallable; - } - - public UnaryCallable diagnoseClusterCallable() { - return diagnoseClusterCallable; - } - public UnaryCallable getClusterCallable() { return getClusterCallable; } + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + public UnaryCallable listClustersPagedCallable() { return listClustersPagedCallable; } - public UnaryCallable listClustersCallable() { - return listClustersCallable; + public UnaryCallable diagnoseClusterCallable() { + return diagnoseClusterCallable; + } + + public OperationCallable + diagnoseClusterOperationCallable() { + return diagnoseClusterOperationCallable; } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java index 041e766c..c2f5415a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the JobController service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcJobControllerCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index cf798a51..832b083f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,17 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; -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.OperationCallable; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.CancelJobRequest; import com.google.cloud.dataproc.v1beta2.DeleteJobRequest; @@ -34,25 +35,25 @@ import com.google.cloud.dataproc.v1beta2.ListJobsResponse; import com.google.cloud.dataproc.v1beta2.SubmitJobRequest; import com.google.cloud.dataproc.v1beta2.UpdateJobRequest; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the JobController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcJobControllerStub extends JobControllerStub { - private static final MethodDescriptor submitJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -60,6 +61,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor submitJobAsOperationMethodDescriptor = MethodDescriptor.newBuilder() @@ -68,6 +70,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor getJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -75,6 +78,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor listJobsMethodDescriptor = MethodDescriptor.newBuilder() @@ -83,6 +87,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor updateJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -90,6 +95,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor cancelJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -97,6 +103,7 @@ public class GrpcJobControllerStub extends JobControllerStub { .setRequestMarshaller(ProtoUtils.marshaller(CancelJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -105,9 +112,6 @@ public class GrpcJobControllerStub extends JobControllerStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final UnaryCallable submitJobCallable; private final UnaryCallable submitJobAsOperationCallable; private final OperationCallable @@ -119,6 +123,8 @@ public class GrpcJobControllerStub extends JobControllerStub { private final UnaryCallable cancelJobCallable; private final UnaryCallable deleteJobCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcJobControllerStub create(JobControllerStubSettings settings) @@ -162,30 +168,104 @@ protected GrpcJobControllerStub( GrpcCallSettings submitJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SubmitJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings submitJobAsOperationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobAsOperationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SubmitJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListJobsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings updateJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CancelJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteJobRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) .build(); this.submitJobCallable = @@ -201,7 +281,7 @@ protected GrpcJobControllerStub( submitJobAsOperationTransportSettings, settings.submitJobAsOperationOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.getJobCallable = callableFactory.createUnaryCallable( getJobTransportSettings, settings.getJobSettings(), clientContext); @@ -221,10 +301,10 @@ protected GrpcJobControllerStub( callableFactory.createUnaryCallable( deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } @@ -233,28 +313,27 @@ public UnaryCallable submitJobCallable() { return submitJobCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable submitJobAsOperationCallable() { + return submitJobAsOperationCallable; + } + public OperationCallable submitJobAsOperationOperationCallable() { return submitJobAsOperationOperationCallable; } - public UnaryCallable submitJobAsOperationCallable() { - return submitJobAsOperationCallable; - } - public UnaryCallable getJobCallable() { return getJobCallable; } - public UnaryCallable listJobsPagedCallable() { - return listJobsPagedCallable; - } - public UnaryCallable listJobsCallable() { return listJobsCallable; } + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + public UnaryCallable updateJobCallable() { return updateJobCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java index c35eae9e..1fa7f756 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.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; @@ -31,18 +31,19 @@ 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 +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Dataproc API. + * gRPC callable factory implementation for the WorkflowTemplateService service API. * *

This class is for advanced usage. */ @Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class GrpcWorkflowTemplateServiceCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index 0d14c4b8..d8700040 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; -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; @@ -47,15 +47,35 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Dataproc API. + * gRPC stub implementation for the WorkflowTemplateService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { + private static final MethodDescriptor + createWorkflowTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataproc.v1beta2.WorkflowTemplateService/CreateWorkflowTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getWorkflowTemplateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataproc.v1beta2.WorkflowTemplateService/GetWorkflowTemplate") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) + .build(); private static final MethodDescriptor instantiateWorkflowTemplateMethodDescriptor = @@ -67,6 +87,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub ProtoUtils.marshaller(InstantiateWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor instantiateInlineWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -78,26 +99,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub InstantiateInlineWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); - private static final MethodDescriptor - createWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/CreateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - private static final MethodDescriptor - getWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/GetWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); + private static final MethodDescriptor updateWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -108,6 +110,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub ProtoUtils.marshaller(UpdateWorkflowTemplateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) .build(); + private static final MethodDescriptor listWorkflowTemplatesMethodDescriptor = MethodDescriptor.newBuilder() @@ -119,6 +122,7 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub .setResponseMarshaller( ProtoUtils.marshaller(ListWorkflowTemplatesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteWorkflowTemplateMethodDescriptor = MethodDescriptor.newBuilder() @@ -130,9 +134,10 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - + private final UnaryCallable + createWorkflowTemplateCallable; + private final UnaryCallable + getWorkflowTemplateCallable; private final UnaryCallable instantiateWorkflowTemplateCallable; private final OperationCallable @@ -141,10 +146,6 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub instantiateInlineWorkflowTemplateCallable; private final OperationCallable instantiateInlineWorkflowTemplateOperationCallable; - private final UnaryCallable - createWorkflowTemplateCallable; - private final UnaryCallable - getWorkflowTemplateCallable; private final UnaryCallable updateWorkflowTemplateCallable; private final UnaryCallable @@ -153,6 +154,8 @@ public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub listWorkflowTemplatesPagedCallable; private final UnaryCallable deleteWorkflowTemplateCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcWorkflowTemplateServiceStub create( @@ -196,6 +199,34 @@ protected GrpcWorkflowTemplateServiceStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + createWorkflowTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateWorkflowTemplateRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getWorkflowTemplateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetWorkflowTemplateRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings instantiateWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() @@ -226,34 +257,6 @@ public Map extract( } }) .build(); - GrpcCallSettings - createWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); GrpcCallSettings updateWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() @@ -298,6 +301,16 @@ public Map extract(DeleteWorkflowTemplateRequest request) { }) .build(); + this.createWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + createWorkflowTemplateTransportSettings, + settings.createWorkflowTemplateSettings(), + clientContext); + this.getWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + getWorkflowTemplateTransportSettings, + settings.getWorkflowTemplateSettings(), + clientContext); this.instantiateWorkflowTemplateCallable = callableFactory.createUnaryCallable( instantiateWorkflowTemplateTransportSettings, @@ -308,7 +321,7 @@ public Map extract(DeleteWorkflowTemplateRequest request) { instantiateWorkflowTemplateTransportSettings, settings.instantiateWorkflowTemplateOperationSettings(), clientContext, - this.operationsStub); + operationsStub); this.instantiateInlineWorkflowTemplateCallable = callableFactory.createUnaryCallable( instantiateInlineWorkflowTemplateTransportSettings, @@ -319,17 +332,7 @@ public Map extract(DeleteWorkflowTemplateRequest request) { instantiateInlineWorkflowTemplateTransportSettings, settings.instantiateInlineWorkflowTemplateOperationSettings(), clientContext, - this.operationsStub); - this.createWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - createWorkflowTemplateTransportSettings, - settings.createWorkflowTemplateSettings(), - clientContext); - this.getWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - getWorkflowTemplateTransportSettings, - settings.getWorkflowTemplateSettings(), - clientContext); + operationsStub); this.updateWorkflowTemplateCallable = callableFactory.createUnaryCallable( updateWorkflowTemplateTransportSettings, @@ -351,18 +354,21 @@ public Map extract(DeleteWorkflowTemplateRequest request) { settings.deleteWorkflowTemplateSettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub() { return operationsStub; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return instantiateWorkflowTemplateOperationCallable; + public UnaryCallable + createWorkflowTemplateCallable() { + return createWorkflowTemplateCallable; + } + + public UnaryCallable getWorkflowTemplateCallable() { + return getWorkflowTemplateCallable; } public UnaryCallable @@ -370,10 +376,9 @@ public GrpcOperationsStub getOperationsStub() { return instantiateWorkflowTemplateCallable; } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return instantiateInlineWorkflowTemplateOperationCallable; + public OperationCallable + instantiateWorkflowTemplateOperationCallable() { + return instantiateWorkflowTemplateOperationCallable; } public UnaryCallable @@ -381,13 +386,9 @@ public GrpcOperationsStub getOperationsStub() { return instantiateInlineWorkflowTemplateCallable; } - public UnaryCallable - createWorkflowTemplateCallable() { - return createWorkflowTemplateCallable; - } - - public UnaryCallable getWorkflowTemplateCallable() { - return getWorkflowTemplateCallable; + public OperationCallable + instantiateInlineWorkflowTemplateOperationCallable() { + return instantiateInlineWorkflowTemplateOperationCallable; } public UnaryCallable @@ -395,16 +396,16 @@ public UnaryCallable getWorkflowTe return updateWorkflowTemplateCallable; } - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - return listWorkflowTemplatesPagedCallable; - } - public UnaryCallable listWorkflowTemplatesCallable() { return listWorkflowTemplatesCallable; } + public UnaryCallable + listWorkflowTemplatesPagedCallable() { + return listWorkflowTemplatesPagedCallable; + } + public UnaryCallable deleteWorkflowTemplateCallable() { return deleteWorkflowTemplateCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java index 98ecabe5..ce86e52f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -35,17 +35,15 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the JobController service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class JobControllerStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } @@ -54,7 +52,6 @@ public UnaryCallable submitJobCallable() { throw new UnsupportedOperationException("Not implemented: submitJobCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable submitJobAsOperationOperationCallable() { throw new UnsupportedOperationException( diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java index ed45827a..e6b58847 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; @@ -63,7 +64,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link JobControllerStub}. * @@ -80,22 +81,23 @@ * *

For example, to set the total timeout of submitJob to 30 seconds: * - *

- * 
+ * 
{@code
  * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
  *     JobControllerStubSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
+ *         jobControllerSettingsBuilder
+ *             .submitJobSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * 
- * 
+ * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class JobControllerStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -112,18 +114,69 @@ public class JobControllerStubSettings extends StubSettings cancelJobSettings; private final UnaryCallSettings deleteJobSettings; + private static final PagedListDescriptor + LIST_JOBS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobsRequest injectToken(ListJobsRequest payload, String token) { + return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { + return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobsResponse payload) { + return payload.getJobsList() == null + ? ImmutableList.of() + : payload.getJobsList(); + } + }; + + private static final PagedListResponseFactory< + ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> + LIST_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); + return ListJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to submitJob. */ public UnaryCallSettings submitJobSettings() { return submitJobSettings; } - /** Returns the object with the settings used for calls to submitJobAsOperation. */ + /** Returns the object with the settings used for calls to submitJobAs. */ public UnaryCallSettings submitJobAsOperationSettings() { return submitJobAsOperationSettings; } /** Returns the object with the settings used for calls to submitJobAsOperation. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings submitJobAsOperationOperationSettings() { return submitJobAsOperationOperationSettings; @@ -161,10 +214,10 @@ public JobControllerStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcJobControllerStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -235,62 +288,9 @@ protected JobControllerStubSettings(Builder settingsBuilder) throws IOException deleteJobSettings = settingsBuilder.deleteJobSettings().build(); } - private static final PagedListDescriptor - LIST_JOBS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListJobsRequest injectToken(ListJobsRequest payload, String token) { - return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { - return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListJobsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListJobsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListJobsResponse payload) { - return payload.getJobsList() != null - ? payload.getJobsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - LIST_JOBS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListJobsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); - return ListJobsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for JobControllerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder submitJobSettings; private final UnaryCallSettings.Builder submitJobAsOperationSettings; @@ -303,37 +303,15 @@ public static class Builder extends StubSettings.Builder updateJobSettings; private final UnaryCallSettings.Builder cancelJobSettings; private final UnaryCallSettings.Builder deleteJobSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); definitions.put( "retry_policy_4_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_5_codes", ImmutableSet.copyOf( @@ -341,13 +319,6 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -356,61 +327,6 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_7_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) @@ -421,7 +337,7 @@ public static class Builder extends StubSettings.Builder>of( + submitJobSettings, + submitJobAsOperationSettings, + getJobSettings, + listJobsSettings, + updateJobSettings, + cancelJobSettings, + deleteJobSettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .submitJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) @@ -527,6 +450,7 @@ private static Builder initDefaults(Builder builder) { .deleteJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); + builder .submitJobAsOperationOperationSettings() .setInitialCallSettings( @@ -540,43 +464,19 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(500L)) + .setInitialRetryDelay(Duration.ofMillis(5000L)) .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(5000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(300000L)) .build())); return builder; } - protected Builder(JobControllerStubSettings settings) { - super(settings); - - submitJobSettings = settings.submitJobSettings.toBuilder(); - submitJobAsOperationSettings = settings.submitJobAsOperationSettings.toBuilder(); - submitJobAsOperationOperationSettings = - settings.submitJobAsOperationOperationSettings.toBuilder(); - getJobSettings = settings.getJobSettings.toBuilder(); - listJobsSettings = settings.listJobsSettings.toBuilder(); - updateJobSettings = settings.updateJobSettings.toBuilder(); - cancelJobSettings = settings.cancelJobSettings.toBuilder(); - deleteJobSettings = settings.deleteJobSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -597,7 +497,7 @@ public UnaryCallSettings.Builder submitJobSettings() { return submitJobSettings; } - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ + /** Returns the builder for the settings used for calls to submitJobAs. */ public UnaryCallSettings.Builder submitJobAsOperationSettings() { return submitJobAsOperationSettings; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java index 16b566c7..5ccf9daf 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -36,22 +36,28 @@ import com.google.protobuf.Empty; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Dataproc API. + * Base stub class for the WorkflowTemplateService service API. * *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class WorkflowTemplateServiceStub implements BackgroundResource { - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public UnaryCallable + createWorkflowTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); + } + + public UnaryCallable getWorkflowTemplateCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); + } + public OperationCallable instantiateWorkflowTemplateOperationCallable() { throw new UnsupportedOperationException( @@ -64,7 +70,6 @@ public OperationsStub getOperationsStub() { "Not implemented: instantiateWorkflowTemplateCallable()"); } - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { throw new UnsupportedOperationException( @@ -77,15 +82,6 @@ public OperationsStub getOperationsStub() { "Not implemented: instantiateInlineWorkflowTemplateCallable()"); } - public UnaryCallable - createWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); - } - - public UnaryCallable getWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); - } - public UnaryCallable updateWorkflowTemplateCallable() { throw new UnsupportedOperationException("Not implemented: updateWorkflowTemplateCallable()"); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java index e2d7f86e..0912dd69 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2.stub; import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -64,7 +65,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link WorkflowTemplateServiceStub}. * @@ -81,28 +82,34 @@ * *

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * - *

- * 
+ * 
{@code
  * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceStubSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
  *     .createWorkflowTemplateSettings()
  *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder.createWorkflowTemplateSettings().getRetrySettings().toBuilder()
+ *         workflowTemplateServiceSettingsBuilder
+ *             .createWorkflowTemplateSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
- * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = workflowTemplateServiceSettingsBuilder.build();
- * 
- * 
+ * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = + * workflowTemplateServiceSettingsBuilder.build(); + * }
*/ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + private final UnaryCallSettings + createWorkflowTemplateSettings; + private final UnaryCallSettings + getWorkflowTemplateSettings; private final UnaryCallSettings instantiateWorkflowTemplateSettings; private final OperationCallSettings @@ -112,10 +119,6 @@ public class WorkflowTemplateServiceStubSettings private final OperationCallSettings< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings - createWorkflowTemplateSettings; - private final UnaryCallSettings - getWorkflowTemplateSettings; private final UnaryCallSettings updateWorkflowTemplateSettings; private final PagedCallSettings< @@ -126,6 +129,83 @@ public class WorkflowTemplateServiceStubSettings private final UnaryCallSettings deleteWorkflowTemplateSettings; + private static final PagedListDescriptor< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> + LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkflowTemplatesRequest injectToken( + ListWorkflowTemplatesRequest payload, String token) { + return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkflowTemplatesRequest injectPageSize( + ListWorkflowTemplatesRequest payload, int pageSize) { + return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkflowTemplatesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListWorkflowTemplatesResponse payload) { + return payload.getTemplatesList() == null + ? ImmutableList.of() + : payload.getTemplatesList(); + } + }; + + private static final PagedListResponseFactory< + ListWorkflowTemplatesRequest, + ListWorkflowTemplatesResponse, + ListWorkflowTemplatesPagedResponse> + LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkflowTemplatesRequest, + ListWorkflowTemplatesResponse, + ListWorkflowTemplatesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListWorkflowTemplatesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> + pageContext = + PageContext.create( + callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); + return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings + createWorkflowTemplateSettings() { + return createWorkflowTemplateSettings; + } + + /** Returns the object with the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings + getWorkflowTemplateSettings() { + return getWorkflowTemplateSettings; + } + /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings instantiateWorkflowTemplateSettings() { @@ -133,7 +213,6 @@ public class WorkflowTemplateServiceStubSettings } /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings instantiateWorkflowTemplateOperationSettings() { return instantiateWorkflowTemplateOperationSettings; @@ -146,24 +225,11 @@ public class WorkflowTemplateServiceStubSettings } /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings instantiateInlineWorkflowTemplateOperationSettings() { return instantiateInlineWorkflowTemplateOperationSettings; } - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings updateWorkflowTemplateSettings() { @@ -190,10 +256,10 @@ public WorkflowTemplateServiceStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcWorkflowTemplateServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -253,6 +319,8 @@ public Builder toBuilder() { protected WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); + createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); + getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); instantiateWorkflowTemplateSettings = settingsBuilder.instantiateWorkflowTemplateSettings().build(); instantiateWorkflowTemplateOperationSettings = @@ -261,83 +329,19 @@ protected WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IO settingsBuilder.instantiateInlineWorkflowTemplateSettings().build(); instantiateInlineWorkflowTemplateOperationSettings = settingsBuilder.instantiateInlineWorkflowTemplateOperationSettings().build(); - createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); - getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); updateWorkflowTemplateSettings = settingsBuilder.updateWorkflowTemplateSettings().build(); listWorkflowTemplatesSettings = settingsBuilder.listWorkflowTemplatesSettings().build(); deleteWorkflowTemplateSettings = settingsBuilder.deleteWorkflowTemplateSettings().build(); } - private static final PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = - new PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkflowTemplatesRequest injectToken( - ListWorkflowTemplatesRequest payload, String token) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkflowTemplatesRequest injectPageSize( - ListWorkflowTemplatesRequest payload, int pageSize) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkflowTemplatesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListWorkflowTemplatesResponse payload) { - return payload.getTemplatesList() != null - ? payload.getTemplatesList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWorkflowTemplatesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - pageContext = - PageContext.create( - callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); - return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for WorkflowTemplateServiceStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - + private final UnaryCallSettings.Builder + createWorkflowTemplateSettings; + private final UnaryCallSettings.Builder + getWorkflowTemplateSettings; private final UnaryCallSettings.Builder instantiateWorkflowTemplateSettings; private final OperationCallSettings.Builder< @@ -348,10 +352,6 @@ public static class Builder private final OperationCallSettings.Builder< InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - createWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - getWorkflowTemplateSettings; private final UnaryCallSettings.Builder updateWorkflowTemplateSettings; private final PagedCallSettings.Builder< @@ -361,7 +361,6 @@ public static class Builder listWorkflowTemplatesSettings; private final UnaryCallSettings.Builder deleteWorkflowTemplateSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -371,7 +370,6 @@ public static class Builder definitions.put( "retry_policy_6_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_7_codes", ImmutableSet.copyOf( @@ -409,80 +407,98 @@ public static class Builder .setTotalTimeout(Duration.ofMillis(600000L)) .build(); definitions.put("retry_policy_7_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); + createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); instantiateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - instantiateInlineWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - - createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWorkflowTemplatesSettings = PagedCallSettings.newBuilder(LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT); - deleteWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( + createWorkflowTemplateSettings, + getWorkflowTemplateSettings, instantiateWorkflowTemplateSettings, instantiateInlineWorkflowTemplateSettings, + updateWorkflowTemplateSettings, + listWorkflowTemplatesSettings, + deleteWorkflowTemplateSettings); + initDefaults(this); + } + + protected Builder(WorkflowTemplateServiceStubSettings settings) { + super(settings); + + createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); + getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); + instantiateWorkflowTemplateSettings = + settings.instantiateWorkflowTemplateSettings.toBuilder(); + instantiateWorkflowTemplateOperationSettings = + settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); + instantiateInlineWorkflowTemplateSettings = + settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); + instantiateInlineWorkflowTemplateOperationSettings = + settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); + updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); + listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); + deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( createWorkflowTemplateSettings, getWorkflowTemplateSettings, + instantiateWorkflowTemplateSettings, + instantiateInlineWorkflowTemplateSettings, updateWorkflowTemplateSettings, listWorkflowTemplatesSettings, deleteWorkflowTemplateSettings); - - initDefaults(this); } private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder - .instantiateWorkflowTemplateSettings() + .createWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); builder - .instantiateInlineWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .getWorkflowTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder - .createWorkflowTemplateSettings() + .instantiateWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); builder - .getWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); + .instantiateInlineWorkflowTemplateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); builder .updateWorkflowTemplateSettings() @@ -498,6 +514,7 @@ private static Builder initDefaults(Builder builder) { .deleteWorkflowTemplateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + builder .instantiateWorkflowTemplateOperationSettings() .setInitialCallSettings( @@ -517,11 +534,12 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(43200000L)) .build())); + builder .instantiateInlineWorkflowTemplateOperationSettings() .setInitialCallSettings( @@ -541,44 +559,16 @@ private static Builder initDefaults(Builder builder) { .setInitialRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(2.0) .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) // ignored - .setRpcTimeoutMultiplier(1.0) // ignored - .setMaxRpcTimeout(Duration.ZERO) // ignored + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) .setTotalTimeout(Duration.ofMillis(43200000L)) .build())); return builder; } - protected Builder(WorkflowTemplateServiceStubSettings settings) { - super(settings); - - instantiateWorkflowTemplateSettings = - settings.instantiateWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateOperationSettings = - settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); - instantiateInlineWorkflowTemplateSettings = - settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = - settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); - createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); - getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); - updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); - listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); - deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' + // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * @@ -594,6 +584,18 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } + /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ + public UnaryCallSettings.Builder + createWorkflowTemplateSettings() { + return createWorkflowTemplateSettings; + } + + /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ + public UnaryCallSettings.Builder + getWorkflowTemplateSettings() { + return getWorkflowTemplateSettings; + } + /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ public UnaryCallSettings.Builder instantiateWorkflowTemplateSettings() { @@ -624,18 +626,6 @@ public Builder applyToAllUnaryMethods( return instantiateInlineWorkflowTemplateOperationSettings; } - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ public UnaryCallSettings.Builder updateWorkflowTemplateSettings() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java index 7282abc0..f6e981c4 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -27,12 +28,12 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; -import io.grpc.Status; 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; @@ -40,42 +41,32 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceClientTest { private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private AutoscalingPolicyServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + Arrays.asList(mockAutoscalingPolicyService)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); AutoscalingPolicyServiceSettings settings = AutoscalingPolicyServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -90,17 +81,20 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void createAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void createAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); @@ -109,9 +103,9 @@ public void createAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateAutoscalingPolicyRequest actualRequest = - (CreateAutoscalingPolicyRequest) actualRequests.get(0); + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(policy, actualRequest.getPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -120,31 +114,128 @@ public void createAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void createAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + client.createAutoscalingPolicy(parent, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAutoscalingPolicyTest2() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + + AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoscalingPolicyRequest actualRequest = + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + client.createAutoscalingPolicy(parent, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAutoscalingPolicyTest3() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoscalingPolicyRequest actualRequest = + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoscalingPolicyExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); client.createAutoscalingPolicy(parent, policy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void updateAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); @@ -155,7 +246,7 @@ public void updateAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateAutoscalingPolicyRequest actualRequest = - (UpdateAutoscalingPolicyRequest) actualRequests.get(0); + ((UpdateAutoscalingPolicyRequest) actualRequests.get(0)); Assert.assertEquals(policy, actualRequest.getPolicy()); Assert.assertTrue( @@ -165,30 +256,31 @@ public void updateAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void updateAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.updateAutoscalingPolicy(policy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name2 = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void getAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name2.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); AutoscalingPolicyName name = @@ -200,9 +292,10 @@ public void getAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = (GetAutoscalingPolicyRequest) actualRequests.get(0); + GetAutoscalingPolicyRequest actualRequest = + ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(name, AutoscalingPolicyName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -210,50 +303,91 @@ public void getAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void getAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + client.getAutoscalingPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoscalingPolicyTest2() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoscalingPolicyRequest actualRequest = + ((GetAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + @Test + public void getAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String name = "name3373707"; client.getAutoscalingPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listAutoscalingPoliciesTest() { - String nextPageToken = ""; - AutoscalingPolicy policiesElement = AutoscalingPolicy.newBuilder().build(); - List policies = Arrays.asList(policiesElement); + public void listAutoscalingPoliciesTest() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); ListAutoscalingPoliciesResponse expectedResponse = ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllPolicies(policies) + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListAutoscalingPoliciesRequest actualRequest = - (ListAutoscalingPoliciesRequest) actualRequests.get(0); + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -261,24 +395,111 @@ public void listAutoscalingPoliciesTest() { } @Test - @SuppressWarnings("all") public void listAutoscalingPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAutoscalingPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoscalingPoliciesTest2() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); + ListAutoscalingPoliciesResponse expectedResponse = + ListAutoscalingPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + + ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoscalingPoliciesRequest actualRequest = + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoscalingPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + client.listAutoscalingPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoscalingPoliciesTest3() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); + ListAutoscalingPoliciesResponse expectedResponse = + ListAutoscalingPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoscalingPoliciesRequest actualRequest = + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoscalingPoliciesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; client.listAutoscalingPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteAutoscalingPolicyTest() { + public void deleteAutoscalingPolicyTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -291,9 +512,9 @@ public void deleteAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteAutoscalingPolicyRequest actualRequest = - (DeleteAutoscalingPolicyRequest) actualRequests.get(0); + ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(name, AutoscalingPolicyName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -301,20 +522,53 @@ public void deleteAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void deleteAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + client.deleteAutoscalingPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void deleteAutoscalingPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAutoscalingPolicy(name); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAutoscalingPolicyRequest actualRequest = + ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String name = "name3373707"; client.deleteAutoscalingPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java index 8c1163ce..40d059f8 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; @@ -31,13 +32,15 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -45,42 +48,31 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class ClusterControllerClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private ClusterControllerClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + UUID.randomUUID().toString(), Arrays.asList(mockClusterController)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); ClusterControllerSettings settings = ClusterControllerSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -95,16 +87,17 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") public void createClusterTest() throws Exception { - String projectId2 = "projectId2939242356"; - String clusterName = "clusterName-1018081872"; - String clusterUuid = "clusterUuid-1017854240"; Cluster expectedResponse = Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName) - .setClusterUuid(clusterUuid) + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -114,7 +107,7 @@ public void createClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Cluster cluster = Cluster.newBuilder().build(); @@ -123,7 +116,7 @@ public void createClusterTest() throws Exception { List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = (CreateClusterRequest) actualRequests.get(0); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -135,36 +128,35 @@ public void createClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void createClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Cluster cluster = Cluster.newBuilder().build(); - client.createClusterAsync(projectId, region, cluster).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void updateClusterTest() throws Exception { - String projectId2 = "projectId2939242356"; - String clusterName2 = "clusterName2875867491"; - String clusterUuid = "clusterUuid-1017854240"; Cluster expectedResponse = Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName2) - .setClusterUuid(clusterUuid) + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -174,9 +166,9 @@ public void updateClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; Cluster cluster = Cluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -186,7 +178,7 @@ public void updateClusterTest() throws Exception { List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = (UpdateClusterRequest) actualRequests.get(0); + UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -200,29 +192,26 @@ public void updateClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; Cluster cluster = Cluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -233,16 +222,15 @@ public void deleteClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; - Empty actualResponse = client.deleteClusterAsync(projectId, region, clusterName).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteClusterAsync(projectId, region, clusterName).get(); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = (DeleteClusterRequest) actualRequests.get(0); + DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -254,50 +242,48 @@ public void deleteClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void deleteClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - + String clusterName = "clusterName-1141738587"; client.deleteClusterAsync(projectId, region, clusterName).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void diagnoseClusterTest() throws Exception { - String outputUri = "outputUri-1273518802"; - DiagnoseClusterResults expectedResponse = - DiagnoseClusterResults.newBuilder().setOutputUri(outputUri).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("diagnoseClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); - mockClusterController.addResponse(resultOperation); + mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; - DiagnoseClusterResults actualResponse = - client.diagnoseClusterAsync(projectId, region, clusterName).get(); + Cluster actualResponse = client.getCluster(projectId, region, clusterName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DiagnoseClusterRequest actualRequest = (DiagnoseClusterRequest) actualRequests.get(0); + GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -309,53 +295,47 @@ public void diagnoseClusterTest() throws Exception { } @Test - @SuppressWarnings("all") - public void diagnoseClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void getClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - - client.diagnoseClusterAsync(projectId, region, clusterName).get(); + String clusterName = "clusterName-1141738587"; + client.getCluster(projectId, region, clusterName); 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()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getClusterTest() { - String projectId2 = "projectId2939242356"; - String clusterName2 = "clusterName2875867491"; - String clusterUuid = "clusterUuid-1017854240"; - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName2) - .setClusterUuid(clusterUuid) + public void listClustersTest() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) .build(); mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - Cluster actualResponse = client.getCluster(projectId, region, clusterName); - Assert.assertEquals(expectedResponse, actualResponse); + ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = (GetClusterRequest) actualRequests.get(0); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -363,51 +343,48 @@ public void getClusterTest() { } @Test - @SuppressWarnings("all") - public void getClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - - client.getCluster(projectId, region, clusterName); + client.listClusters(projectId, region); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listClustersTest() { - String nextPageToken = ""; - Cluster clustersElement = Cluster.newBuilder().build(); - List clusters = Arrays.asList(clustersElement); + public void listClustersTest2() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); ListClustersResponse expectedResponse = ListClustersResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllClusters(clusters) + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) .build(); mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String filter = "filter-1274492040"; - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); + ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = (ListClustersRequest) actualRequests.get(0); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -415,50 +392,48 @@ public void listClustersTest() { } @Test - @SuppressWarnings("all") - public void listClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listClusters(projectId, region); + String filter = "filter-1274492040"; + client.listClusters(projectId, region, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listClustersTest2() { - String nextPageToken = ""; - Cluster clustersElement = Cluster.newBuilder().build(); - List clusters = Arrays.asList(clustersElement); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllClusters(clusters) + public void diagnoseClusterTest() throws Exception { + DiagnoseClusterResults expectedResponse = + DiagnoseClusterResults.newBuilder().setOutputUri("outputUri-2119300949").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("diagnoseClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockClusterController.addResponse(expectedResponse); + mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); + DiagnoseClusterResults actualResponse = + client.diagnoseClusterAsync(projectId, region, clusterName).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = (ListClustersRequest) actualRequests.get(0); + DiagnoseClusterRequest actualRequest = ((DiagnoseClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(clusterName, actualRequest.getClusterName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -466,19 +441,20 @@ public void listClustersTest2() { } @Test - @SuppressWarnings("all") - public void listClustersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void diagnoseClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listClusters(projectId, region); + String clusterName = "clusterName-1141738587"; + client.diagnoseClusterAsync(projectId, region, clusterName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerSmokeTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerSmokeTest.java deleted file mode 100644 index 99a96095..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerSmokeTest.java +++ /dev/null @@ -1,65 +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.dataproc.v1; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.common.base.Preconditions; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class ClusterControllerSmokeTest { - private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; - private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; - - @Test - public void run() { - main(null); - } - - public static void main(String args[]) { - Logger.getLogger("").setLevel(Level.WARNING); - try { - executeNoCatch(getProjectId()); - System.out.println("OK"); - } catch (Exception e) { - System.err.println("Failed with exception:"); - e.printStackTrace(System.err); - System.exit(1); - } - } - - public static void executeNoCatch(String projectId) throws Exception { - try (ClusterControllerClient client = ClusterControllerClient.create()) { - String projectId2 = projectId; - String region = "global"; - - ListClustersPagedResponse pagedResponse = client.listClusters(projectId2, region); - } - } - - private static String getProjectId() { - String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); - if (projectId == null) { - projectId = - System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); - } - Preconditions.checkArgument(projectId != null, "A project ID is required."); - return projectId; - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java index 1999bf0f..6cf661b9 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; @@ -31,13 +32,15 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -45,42 +48,31 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class JobControllerClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private JobControllerClient client; + private static MockJobController mockJobController; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + UUID.randomUUID().toString(), Arrays.asList(mockJobController)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); JobControllerSettings settings = JobControllerSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -95,22 +87,24 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void submitJobTest() { - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void submitJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); @@ -119,7 +113,7 @@ public void submitJobTest() { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = (SubmitJobRequest) actualRequests.get(0); + SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -131,36 +125,36 @@ public void submitJobTest() { } @Test - @SuppressWarnings("all") public void submitJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); - client.submitJob(projectId, region, job); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") public void submitJobAsOperationTest() throws Exception { - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; Job expectedResponse = Job.newBuilder() - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -170,7 +164,7 @@ public void submitJobAsOperationTest() throws Exception { .build(); mockJobController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); @@ -179,7 +173,7 @@ public void submitJobAsOperationTest() throws Exception { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = (SubmitJobRequest) actualRequests.get(0); + SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -191,51 +185,51 @@ public void submitJobAsOperationTest() throws Exception { } @Test - @SuppressWarnings("all") public void submitJobAsOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); - client.submitJobAsOperationAsync(projectId, region, job).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void getJobTest() { - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void getJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; Job actualResponse = client.getJob(projectId, region, jobId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -247,45 +241,44 @@ public void getJobTest() { } @Test - @SuppressWarnings("all") public void getJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.getJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listJobsTest() { - String nextPageToken = ""; - Job jobsElement = Job.newBuilder().build(); - List jobs = Arrays.asList(jobsElement); + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -296,47 +289,48 @@ public void listJobsTest() { } @Test - @SuppressWarnings("all") public void listJobsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - client.listJobs(projectId, region); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listJobsTest2() { - String nextPageToken = ""; - Job jobsElement = Job.newBuilder().build(); - List jobs = Arrays.asList(jobsElement); + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String filter = "filter-1274492040"; - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); + ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -344,50 +338,46 @@ public void listJobsTest2() { } @Test - @SuppressWarnings("all") public void listJobsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listJobs(projectId, region); + String filter = "filter-1274492040"; + client.listJobs(projectId, region, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateJobTest() { - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void updateJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String region = "region-934795532"; - String jobId = "jobId-1154752291"; - Job job = Job.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateJobRequest request = UpdateJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .setJob(job) - .setUpdateMask(updateMask) + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Job actualResponse = client.updateJob(request); @@ -395,13 +385,13 @@ public void updateJobTest() { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + UpdateJobRequest actualRequest = ((UpdateJobRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); + Assert.assertEquals(request.getJobId(), actualRequest.getJobId()); + Assert.assertEquals(request.getJob(), actualRequest.getJob()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -409,59 +399,54 @@ public void updateJobTest() { } @Test - @SuppressWarnings("all") public void updateJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; - String region = "region-934795532"; - String jobId = "jobId-1154752291"; - Job job = Job.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateJobRequest request = UpdateJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .setJob(job) - .setUpdateMask(updateMask) + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); - client.updateJob(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void cancelJobTest() { - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void cancelJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; Job actualResponse = client.cancelJob(projectId, region, jobId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CancelJobRequest actualRequest = (CancelJobRequest) actualRequests.get(0); + CancelJobRequest actualRequest = ((CancelJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -473,38 +458,35 @@ public void cancelJobTest() { } @Test - @SuppressWarnings("all") public void cancelJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.cancelJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteJobTest() { + public void deleteJobTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; client.deleteJob(projectId, region, jobId); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -516,20 +498,18 @@ public void deleteJobTest() { } @Test - @SuppressWarnings("all") public void deleteJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.deleteJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java index 133ec7bf..a15d9f48 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockAutoscalingPolicyService implements MockGrpcService { private final MockAutoscalingPolicyServiceImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java index 35daafac..61a4bd95 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -24,9 +25,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockAutoscalingPolicyServiceImpl extends AutoscalingPolicyServiceImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void createAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void updateAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -93,10 +95,10 @@ public void getAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -109,10 +111,10 @@ public void listAutoscalingPolicies( Object response = responses.remove(); if (response instanceof ListAutoscalingPoliciesResponse) { requests.add(request); - responseObserver.onNext((ListAutoscalingPoliciesResponse) response); + responseObserver.onNext(((ListAutoscalingPoliciesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -124,10 +126,10 @@ public void deleteAutoscalingPolicy( Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java index cf367dc6..57479579 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockClusterController implements MockGrpcService { private final MockClusterControllerImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java index cf3f06ae..de4fcbdf 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -24,9 +25,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockClusterControllerImpl extends ClusterControllerImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void createCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void updateCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -93,10 +95,10 @@ public void deleteCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -107,10 +109,10 @@ public void getCluster(GetClusterRequest request, StreamObserver respon Object response = responses.remove(); if (response instanceof Cluster) { requests.add(request); - responseObserver.onNext((Cluster) response); + responseObserver.onNext(((Cluster) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -122,10 +124,10 @@ public void listClusters( Object response = responses.remove(); if (response instanceof ListClustersResponse) { requests.add(request); - responseObserver.onNext((ListClustersResponse) response); + responseObserver.onNext(((ListClustersResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -137,10 +139,10 @@ public void diagnoseCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java index 03c81db9..da1f93da 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockJobController implements MockGrpcService { private final MockJobControllerImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java index 93f5ed54..448c74a4 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -25,9 +26,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockJobControllerImpl extends JobControllerImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void submitJobAsOperation( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -92,10 +94,10 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver) Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -106,10 +108,10 @@ public void listJobs(ListJobsRequest request, StreamObserver r Object response = responses.remove(); if (response instanceof ListJobsResponse) { requests.add(request); - responseObserver.onNext((ListJobsResponse) response); + responseObserver.onNext(((ListJobsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -120,10 +122,10 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -134,10 +136,10 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -148,10 +150,10 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java index 451a7b0b..d42a4daf 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockWorkflowTemplateService implements MockGrpcService { private final MockWorkflowTemplateServiceImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java index 74dbcc07..ee09193d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import com.google.api.core.BetaApi; @@ -25,9 +26,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockWorkflowTemplateServiceImpl extends WorkflowTemplateServiceImplBase { private List requests; private Queue responses; @@ -64,10 +66,10 @@ public void createWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -79,10 +81,10 @@ public void getWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -94,10 +96,10 @@ public void instantiateWorkflowTemplate( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -110,10 +112,10 @@ public void instantiateInlineWorkflowTemplate( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -125,10 +127,10 @@ public void updateWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -141,10 +143,10 @@ public void listWorkflowTemplates( Object response = responses.remove(); if (response instanceof ListWorkflowTemplatesResponse) { requests.add(request); - responseObserver.onNext((ListWorkflowTemplatesResponse) response); + responseObserver.onNext(((ListWorkflowTemplatesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -156,10 +158,10 @@ public void deleteWorkflowTemplate( Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java index 86de1d08..051b20e0 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1; import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -30,15 +31,17 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.Empty; -import io.grpc.Status; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -46,42 +49,32 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private WorkflowTemplateServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + Arrays.asList(mockWorkflowTemplateService)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); WorkflowTemplateServiceSettings settings = WorkflowTemplateServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -96,7 +89,267 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") + public void createWorkflowTemplateTest() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowTemplateTest2() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowTemplateTest3() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowTemplateTest() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + + WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + client.getWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowTemplateTest2() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String name = "name3373707"; + + WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + client.getWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test public void instantiateWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -111,15 +364,14 @@ public void instantiateWorkflowTemplateTest() throws Exception { WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - Empty actualResponse = client.instantiateWorkflowTemplateAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateWorkflowTemplateAsync(name).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateWorkflowTemplateRequest actualRequest = - (InstantiateWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -127,32 +379,72 @@ public void instantiateWorkflowTemplateTest() throws Exception { } @Test - @SuppressWarnings("all") public void instantiateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - client.instantiateWorkflowTemplateAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void instantiateWorkflowTemplateTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest2") + .setName("instantiateWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkflowTemplateService.addResponse(resultOperation); + + String name = "name3373707"; + + client.instantiateWorkflowTemplateAsync(name).get(); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstantiateWorkflowTemplateRequest actualRequest = + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void instantiateWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + client.instantiateWorkflowTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void instantiateWorkflowTemplateTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateWorkflowTemplateTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -163,15 +455,14 @@ public void instantiateWorkflowTemplateTest2() throws Exception { "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); Map parameters = new HashMap<>(); - Empty actualResponse = client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateWorkflowTemplateAsync(name, parameters).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateWorkflowTemplateRequest actualRequest = - (InstantiateWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertEquals(parameters, actualRequest.getParametersMap()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -180,9 +471,8 @@ public void instantiateWorkflowTemplateTest2() throws Exception { } @Test - @SuppressWarnings("all") - public void instantiateWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { @@ -190,18 +480,62 @@ public void instantiateWorkflowTemplateExceptionTest2() throws Exception { WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); Map parameters = new HashMap<>(); + client.instantiateWorkflowTemplateAsync(name, parameters).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void instantiateWorkflowTemplateTest4() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkflowTemplateService.addResponse(resultOperation); + + String name = "name3373707"; + Map parameters = new HashMap<>(); + + client.instantiateWorkflowTemplateAsync(name, parameters).get(); + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstantiateWorkflowTemplateRequest actualRequest = + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parameters, actualRequest.getParametersMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void instantiateWorkflowTemplateExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + Map parameters = new HashMap<>(); client.instantiateWorkflowTemplateAsync(name, parameters).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void instantiateInlineWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -212,18 +546,17 @@ public void instantiateInlineWorkflowTemplateTest() throws Exception { .build(); mockWorkflowTemplateService.addResponse(resultOperation); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - Empty actualResponse = client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateInlineWorkflowTemplateRequest actualRequest = - (InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -232,52 +565,44 @@ public void instantiateInlineWorkflowTemplateTest() throws Exception { } @Test - @SuppressWarnings("all") public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void createWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId(id) - .setName(name.toString()) - .setVersion(version) + public void instantiateInlineWorkflowTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateInlineWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); + mockWorkflowTemplateService.addResponse(resultOperation); RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - (CreateWorkflowTemplateRequest) actualRequests.get(0); + InstantiateInlineWorkflowTemplateRequest actualRequest = + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -286,50 +611,45 @@ public void createWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") - public void createWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.createWorkflowTemplate(parent, template); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void getWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name2 = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId(id) - .setName(name2.toString()) - .setVersion(version) + public void instantiateInlineWorkflowTemplateTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateInlineWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); + mockWorkflowTemplateService.addResponse(resultOperation); - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = (GetWorkflowTemplateRequest) actualRequests.get(0); + InstantiateInlineWorkflowTemplateRequest actualRequest = + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -337,36 +657,38 @@ public void getWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") - public void getWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - - client.getWorkflowTemplate(name); + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void updateWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; + public void updateWorkflowTemplateTest() throws Exception { WorkflowTemplate expectedResponse = WorkflowTemplate.newBuilder() - .setId(id) - .setName(name.toString()) - .setVersion(version) + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -378,7 +700,7 @@ public void updateWorkflowTemplateTest() { List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateWorkflowTemplateRequest actualRequest = - (UpdateWorkflowTemplateRequest) actualRequests.get(0); + ((UpdateWorkflowTemplateRequest) actualRequests.get(0)); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( @@ -388,48 +710,44 @@ public void updateWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") public void updateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.updateWorkflowTemplate(template); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listWorkflowTemplatesTest() { - String nextPageToken = ""; - WorkflowTemplate templatesElement = WorkflowTemplate.newBuilder().build(); - List templates = Arrays.asList(templatesElement); + public void listWorkflowTemplatesTest() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); ListWorkflowTemplatesResponse expectedResponse = ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllTemplates(templates) + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListWorkflowTemplatesRequest actualRequest = - (ListWorkflowTemplatesRequest) actualRequests.get(0); + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -437,24 +755,111 @@ public void listWorkflowTemplatesTest() { } @Test - @SuppressWarnings("all") public void listWorkflowTemplatesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listWorkflowTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowTemplatesTest2() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); + ListWorkflowTemplatesResponse expectedResponse = + ListWorkflowTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + + ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowTemplatesRequest actualRequest = + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + client.listWorkflowTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void listWorkflowTemplatesTest3() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); + ListWorkflowTemplatesResponse expectedResponse = + ListWorkflowTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowTemplatesRequest actualRequest = + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowTemplatesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String parent = "parent-995424086"; client.listWorkflowTemplates(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteWorkflowTemplateTest() { + public void deleteWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -467,9 +872,9 @@ public void deleteWorkflowTemplateTest() { List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteWorkflowTemplateRequest actualRequest = - (DeleteWorkflowTemplateRequest) actualRequests.get(0); + ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -477,20 +882,53 @@ public void deleteWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") public void deleteWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + client.deleteWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void deleteWorkflowTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteWorkflowTemplate(name); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkflowTemplateRequest actualRequest = + ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; client.deleteWorkflowTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java index 7b0b70b8..bdfab55a 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; @@ -27,12 +28,12 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; -import io.grpc.Status; 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; @@ -40,42 +41,32 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceClientTest { private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private AutoscalingPolicyServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + Arrays.asList(mockAutoscalingPolicyService)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); AutoscalingPolicyServiceSettings settings = AutoscalingPolicyServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -90,17 +81,20 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void createAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void createAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); @@ -109,9 +103,9 @@ public void createAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateAutoscalingPolicyRequest actualRequest = - (CreateAutoscalingPolicyRequest) actualRequests.get(0); + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(policy, actualRequest.getPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -120,31 +114,128 @@ public void createAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void createAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + client.createAutoscalingPolicy(parent, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAutoscalingPolicyTest2() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + + AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoscalingPolicyRequest actualRequest = + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + client.createAutoscalingPolicy(parent, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAutoscalingPolicyTest3() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAutoscalingPolicyRequest actualRequest = + ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAutoscalingPolicyExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); client.createAutoscalingPolicy(parent, policy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void updateAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); @@ -155,7 +246,7 @@ public void updateAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateAutoscalingPolicyRequest actualRequest = - (UpdateAutoscalingPolicyRequest) actualRequests.get(0); + ((UpdateAutoscalingPolicyRequest) actualRequests.get(0)); Assert.assertEquals(policy, actualRequest.getPolicy()); Assert.assertTrue( @@ -165,30 +256,31 @@ public void updateAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void updateAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.updateAutoscalingPolicy(policy); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getAutoscalingPolicyTest() { - String id = "id3355"; - AutoscalingPolicyName name2 = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + public void getAutoscalingPolicyTest() throws Exception { AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder().setId(id).setName(name2.toString()).build(); + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); AutoscalingPolicyName name = @@ -200,9 +292,10 @@ public void getAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = (GetAutoscalingPolicyRequest) actualRequests.get(0); + GetAutoscalingPolicyRequest actualRequest = + ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(name, AutoscalingPolicyName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -210,50 +303,91 @@ public void getAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void getAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + client.getAutoscalingPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAutoscalingPolicyTest2() throws Exception { + AutoscalingPolicy expectedResponse = + AutoscalingPolicy.newBuilder() + .setId("id3355") + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAutoscalingPolicyRequest actualRequest = + ((GetAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + @Test + public void getAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String name = "name3373707"; client.getAutoscalingPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listAutoscalingPoliciesTest() { - String nextPageToken = ""; - AutoscalingPolicy policiesElement = AutoscalingPolicy.newBuilder().build(); - List policies = Arrays.asList(policiesElement); + public void listAutoscalingPoliciesTest() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); ListAutoscalingPoliciesResponse expectedResponse = ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllPolicies(policies) + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListAutoscalingPoliciesRequest actualRequest = - (ListAutoscalingPoliciesRequest) actualRequests.get(0); + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -261,24 +395,111 @@ public void listAutoscalingPoliciesTest() { } @Test - @SuppressWarnings("all") public void listAutoscalingPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAutoscalingPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoscalingPoliciesTest2() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); + ListAutoscalingPoliciesResponse expectedResponse = + ListAutoscalingPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + + ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoscalingPoliciesRequest actualRequest = + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoscalingPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + client.listAutoscalingPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAutoscalingPoliciesTest3() throws Exception { + AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); + ListAutoscalingPoliciesResponse expectedResponse = + ListAutoscalingPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicies(Arrays.asList(responsesElement)) + .build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAutoscalingPoliciesRequest actualRequest = + ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAutoscalingPoliciesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String parent = "parent-995424086"; client.listAutoscalingPolicies(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteAutoscalingPolicyTest() { + public void deleteAutoscalingPolicyTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -291,9 +512,9 @@ public void deleteAutoscalingPolicyTest() { List actualRequests = mockAutoscalingPolicyService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteAutoscalingPolicyRequest actualRequest = - (DeleteAutoscalingPolicyRequest) actualRequests.get(0); + ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(name, AutoscalingPolicyName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -301,20 +522,53 @@ public void deleteAutoscalingPolicyTest() { } @Test - @SuppressWarnings("all") public void deleteAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAutoscalingPolicyService.addException(exception); try { AutoscalingPolicyName name = AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + client.deleteAutoscalingPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void deleteAutoscalingPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAutoscalingPolicyService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAutoscalingPolicy(name); + + List actualRequests = mockAutoscalingPolicyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAutoscalingPolicyRequest actualRequest = + ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAutoscalingPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAutoscalingPolicyService.addException(exception); + + try { + String name = "name3373707"; client.deleteAutoscalingPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java index df7d1e24..95520651 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; @@ -31,13 +32,15 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -45,42 +48,31 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class ClusterControllerClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private ClusterControllerClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + UUID.randomUUID().toString(), Arrays.asList(mockClusterController)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); ClusterControllerSettings settings = ClusterControllerSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -95,16 +87,17 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") public void createClusterTest() throws Exception { - String projectId2 = "projectId2939242356"; - String clusterName = "clusterName-1018081872"; - String clusterUuid = "clusterUuid-1017854240"; Cluster expectedResponse = Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName) - .setClusterUuid(clusterUuid) + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -114,7 +107,7 @@ public void createClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Cluster cluster = Cluster.newBuilder().build(); @@ -123,7 +116,7 @@ public void createClusterTest() throws Exception { List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = (CreateClusterRequest) actualRequests.get(0); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -135,36 +128,35 @@ public void createClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void createClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Cluster cluster = Cluster.newBuilder().build(); - client.createClusterAsync(projectId, region, cluster).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void updateClusterTest() throws Exception { - String projectId2 = "projectId2939242356"; - String clusterName2 = "clusterName2875867491"; - String clusterUuid = "clusterUuid-1017854240"; Cluster expectedResponse = Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName2) - .setClusterUuid(clusterUuid) + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -174,9 +166,9 @@ public void updateClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; Cluster cluster = Cluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -186,7 +178,7 @@ public void updateClusterTest() throws Exception { List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = (UpdateClusterRequest) actualRequests.get(0); + UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -200,29 +192,26 @@ public void updateClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; Cluster cluster = Cluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -233,16 +222,15 @@ public void deleteClusterTest() throws Exception { .build(); mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; - Empty actualResponse = client.deleteClusterAsync(projectId, region, clusterName).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteClusterAsync(projectId, region, clusterName).get(); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = (DeleteClusterRequest) actualRequests.get(0); + DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -254,47 +242,48 @@ public void deleteClusterTest() throws Exception { } @Test - @SuppressWarnings("all") public void deleteClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - + String clusterName = "clusterName-1141738587"; client.deleteClusterAsync(projectId, region, clusterName).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void diagnoseClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("diagnoseClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) .build(); - mockClusterController.addResponse(resultOperation); + mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; + String clusterName = "clusterName-1141738587"; - Empty actualResponse = client.diagnoseClusterAsync(projectId, region, clusterName).get(); + Cluster actualResponse = client.getCluster(projectId, region, clusterName); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DiagnoseClusterRequest actualRequest = (DiagnoseClusterRequest) actualRequests.get(0); + GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -306,53 +295,47 @@ public void diagnoseClusterTest() throws Exception { } @Test - @SuppressWarnings("all") - public void diagnoseClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void getClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - - client.diagnoseClusterAsync(projectId, region, clusterName).get(); + String clusterName = "clusterName-1141738587"; + client.getCluster(projectId, region, clusterName); 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()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getClusterTest() { - String projectId2 = "projectId2939242356"; - String clusterName2 = "clusterName2875867491"; - String clusterUuid = "clusterUuid-1017854240"; - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId(projectId2) - .setClusterName(clusterName2) - .setClusterUuid(clusterUuid) + public void listClustersTest() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) .build(); mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - Cluster actualResponse = client.getCluster(projectId, region, clusterName); - Assert.assertEquals(expectedResponse, actualResponse); + ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = (GetClusterRequest) actualRequests.get(0); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -360,51 +343,48 @@ public void getClusterTest() { } @Test - @SuppressWarnings("all") - public void getClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String clusterName = "clusterName-1018081872"; - - client.getCluster(projectId, region, clusterName); + client.listClusters(projectId, region); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listClustersTest() { - String nextPageToken = ""; - Cluster clustersElement = Cluster.newBuilder().build(); - List clusters = Arrays.asList(clustersElement); + public void listClustersTest2() throws Exception { + Cluster responsesElement = Cluster.newBuilder().build(); ListClustersResponse expectedResponse = ListClustersResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllClusters(clusters) + .setNextPageToken("") + .addAllClusters(Arrays.asList(responsesElement)) .build(); mockClusterController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String filter = "filter-1274492040"; - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); + ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = (ListClustersRequest) actualRequests.get(0); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -412,50 +392,45 @@ public void listClustersTest() { } @Test - @SuppressWarnings("all") - public void listClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listClusters(projectId, region); + String filter = "filter-1274492040"; + client.listClusters(projectId, region, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listClustersTest2() { - String nextPageToken = ""; - Cluster clustersElement = Cluster.newBuilder().build(); - List clusters = Arrays.asList(clustersElement); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllClusters(clusters) + public void diagnoseClusterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("diagnoseClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockClusterController.addResponse(expectedResponse); + mockClusterController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); + client.diagnoseClusterAsync(projectId, region, clusterName).get(); List actualRequests = mockClusterController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = (ListClustersRequest) actualRequests.get(0); + DiagnoseClusterRequest actualRequest = ((DiagnoseClusterRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(clusterName, actualRequest.getClusterName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -463,19 +438,20 @@ public void listClustersTest2() { } @Test - @SuppressWarnings("all") - public void listClustersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void diagnoseClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listClusters(projectId, region); + String clusterName = "clusterName-1141738587"; + client.diagnoseClusterAsync(projectId, region, clusterName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSmokeTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSmokeTest.java deleted file mode 100644 index 23168f9c..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSmokeTest.java +++ /dev/null @@ -1,65 +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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.common.base.Preconditions; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class ClusterControllerSmokeTest { - private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; - private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; - - @Test - public void run() { - main(null); - } - - public static void main(String args[]) { - Logger.getLogger("").setLevel(Level.WARNING); - try { - executeNoCatch(getProjectId()); - System.out.println("OK"); - } catch (Exception e) { - System.err.println("Failed with exception:"); - e.printStackTrace(System.err); - System.exit(1); - } - } - - public static void executeNoCatch(String projectId) throws Exception { - try (ClusterControllerClient client = ClusterControllerClient.create()) { - String projectId2 = projectId; - String region = "global"; - - ListClustersPagedResponse pagedResponse = client.listClusters(projectId2, region); - } - } - - private static String getProjectId() { - String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); - if (projectId == null) { - projectId = - System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); - } - Preconditions.checkArgument(projectId != null, "A project ID is required."); - return projectId; - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java index 0b686f20..736499f5 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; @@ -31,13 +32,15 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -45,42 +48,31 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class JobControllerClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private JobControllerClient client; + private static MockJobController mockJobController; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); mockJobController = new MockJobController(); - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + UUID.randomUUID().toString(), Arrays.asList(mockJobController)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); JobControllerSettings settings = JobControllerSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -95,24 +87,25 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void submitJobTest() { - String submittedBy = "submittedBy-2047729125"; - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void submitJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setSubmittedBy(submittedBy) - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setSubmittedBy("submittedBy72490674") + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); @@ -121,7 +114,7 @@ public void submitJobTest() { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = (SubmitJobRequest) actualRequests.get(0); + SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -133,38 +126,37 @@ public void submitJobTest() { } @Test - @SuppressWarnings("all") public void submitJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); - client.submitJob(projectId, region, job); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") public void submitJobAsOperationTest() throws Exception { - String submittedBy = "submittedBy-2047729125"; - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; Job expectedResponse = Job.newBuilder() - .setSubmittedBy(submittedBy) - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setSubmittedBy("submittedBy72490674") + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -174,7 +166,7 @@ public void submitJobAsOperationTest() throws Exception { .build(); mockJobController.addResponse(resultOperation); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); @@ -183,7 +175,7 @@ public void submitJobAsOperationTest() throws Exception { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = (SubmitJobRequest) actualRequests.get(0); + SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -195,53 +187,52 @@ public void submitJobAsOperationTest() throws Exception { } @Test - @SuppressWarnings("all") public void submitJobAsOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; Job job = Job.newBuilder().build(); - client.submitJobAsOperationAsync(projectId, region, job).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void getJobTest() { - String submittedBy = "submittedBy-2047729125"; - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void getJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setSubmittedBy(submittedBy) - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setSubmittedBy("submittedBy72490674") + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; Job actualResponse = client.getJob(projectId, region, jobId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); + GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -253,45 +244,44 @@ public void getJobTest() { } @Test - @SuppressWarnings("all") public void getJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.getJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listJobsTest() { - String nextPageToken = ""; - Job jobsElement = Job.newBuilder().build(); - List jobs = Arrays.asList(jobsElement); + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -302,47 +292,48 @@ public void listJobsTest() { } @Test - @SuppressWarnings("all") public void listJobsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - client.listJobs(projectId, region); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listJobsTest2() { - String nextPageToken = ""; - Job jobsElement = Job.newBuilder().build(); - List jobs = Arrays.asList(jobsElement); + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; + String filter = "filter-1274492040"; - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); + ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); + ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); + Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -350,52 +341,47 @@ public void listJobsTest2() { } @Test - @SuppressWarnings("all") public void listJobsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - - client.listJobs(projectId, region); + String filter = "filter-1274492040"; + client.listJobs(projectId, region, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateJobTest() { - String submittedBy = "submittedBy-2047729125"; - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void updateJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setSubmittedBy(submittedBy) - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setSubmittedBy("submittedBy72490674") + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; - String region = "region-934795532"; - String jobId = "jobId-1154752291"; - Job job = Job.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateJobRequest request = UpdateJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .setJob(job) - .setUpdateMask(updateMask) + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Job actualResponse = client.updateJob(request); @@ -403,13 +389,13 @@ public void updateJobTest() { List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateJobRequest actualRequest = (UpdateJobRequest) actualRequests.get(0); + UpdateJobRequest actualRequest = ((UpdateJobRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); + Assert.assertEquals(request.getJobId(), actualRequest.getJobId()); + Assert.assertEquals(request.getJob(), actualRequest.getJob()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -417,61 +403,55 @@ public void updateJobTest() { } @Test - @SuppressWarnings("all") public void updateJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; - String region = "region-934795532"; - String jobId = "jobId-1154752291"; - Job job = Job.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateJobRequest request = UpdateJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .setJob(job) - .setUpdateMask(updateMask) + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); - client.updateJob(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void cancelJobTest() { - String submittedBy = "submittedBy-2047729125"; - String driverOutputResourceUri = "driverOutputResourceUri-542229086"; - String driverControlFilesUri = "driverControlFilesUri207057643"; - String jobUuid = "jobUuid-1615012099"; - boolean done = true; + public void cancelJobTest() throws Exception { Job expectedResponse = Job.newBuilder() - .setSubmittedBy(submittedBy) - .setDriverOutputResourceUri(driverOutputResourceUri) - .setDriverControlFilesUri(driverControlFilesUri) - .setJobUuid(jobUuid) - .setDone(done) + .setReference(JobReference.newBuilder().build()) + .setPlacement(JobPlacement.newBuilder().build()) + .setStatus(JobStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .addAllYarnApplications(new ArrayList()) + .setSubmittedBy("submittedBy72490674") + .setDriverOutputResourceUri("driverOutputResourceUri794556277") + .setDriverControlFilesUri("driverControlFilesUri1491948202") + .putAllLabels(new HashMap()) + .setScheduling(JobScheduling.newBuilder().build()) + .setJobUuid("jobUuid-1437868776") + .setDone(true) .build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; Job actualResponse = client.cancelJob(projectId, region, jobId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CancelJobRequest actualRequest = (CancelJobRequest) actualRequests.get(0); + CancelJobRequest actualRequest = ((CancelJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -483,38 +463,35 @@ public void cancelJobTest() { } @Test - @SuppressWarnings("all") public void cancelJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.cancelJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteJobTest() { + public void deleteJobTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockJobController.addResponse(expectedResponse); - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; + String jobId = "jobId101296568"; client.deleteJob(projectId, region, jobId); List actualRequests = mockJobController.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); + DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); Assert.assertEquals(region, actualRequest.getRegion()); @@ -526,20 +503,18 @@ public void deleteJobTest() { } @Test - @SuppressWarnings("all") public void deleteJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockJobController.addException(exception); try { - String projectId = "projectId-1969970175"; + String projectId = "projectId-894832108"; String region = "region-934795532"; - String jobId = "jobId-1154752291"; - + String jobId = "jobId101296568"; client.deleteJob(projectId, region, jobId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java index dee2d73d..067e045d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockAutoscalingPolicyService implements MockGrpcService { private final MockAutoscalingPolicyServiceImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java index bf12b9a1..2f31d7da 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -24,9 +25,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockAutoscalingPolicyServiceImpl extends AutoscalingPolicyServiceImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void createAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void updateAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -93,10 +95,10 @@ public void getAutoscalingPolicy( Object response = responses.remove(); if (response instanceof AutoscalingPolicy) { requests.add(request); - responseObserver.onNext((AutoscalingPolicy) response); + responseObserver.onNext(((AutoscalingPolicy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -109,10 +111,10 @@ public void listAutoscalingPolicies( Object response = responses.remove(); if (response instanceof ListAutoscalingPoliciesResponse) { requests.add(request); - responseObserver.onNext((ListAutoscalingPoliciesResponse) response); + responseObserver.onNext(((ListAutoscalingPoliciesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -124,10 +126,10 @@ public void deleteAutoscalingPolicy( Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java index 43bc081f..296e5a3d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockClusterController implements MockGrpcService { private final MockClusterControllerImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java index c544d367..1f62239c 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -24,9 +25,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockClusterControllerImpl extends ClusterControllerImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void createCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void updateCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -93,10 +95,10 @@ public void deleteCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -107,10 +109,10 @@ public void getCluster(GetClusterRequest request, StreamObserver respon Object response = responses.remove(); if (response instanceof Cluster) { requests.add(request); - responseObserver.onNext((Cluster) response); + responseObserver.onNext(((Cluster) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -122,10 +124,10 @@ public void listClusters( Object response = responses.remove(); if (response instanceof ListClustersResponse) { requests.add(request); - responseObserver.onNext((ListClustersResponse) response); + responseObserver.onNext(((ListClustersResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -137,10 +139,10 @@ public void diagnoseCluster( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java index 3ed43f60..b970524d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockJobController implements MockGrpcService { private final MockJobControllerImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java index c8c5c0a8..f533ba1c 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -25,9 +26,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockJobControllerImpl extends JobControllerImplBase { private List requests; private Queue responses; @@ -63,10 +65,10 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -78,10 +80,10 @@ public void submitJobAsOperation( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -92,10 +94,10 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver) Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -106,10 +108,10 @@ public void listJobs(ListJobsRequest request, StreamObserver r Object response = responses.remove(); if (response instanceof ListJobsResponse) { requests.add(request); - responseObserver.onNext((ListJobsResponse) response); + responseObserver.onNext(((ListJobsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -120,10 +122,10 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -134,10 +136,10 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse Object response = responses.remove(); if (response instanceof Job) { requests.add(request); - responseObserver.onNext((Job) response); + responseObserver.onNext(((Job) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -148,10 +150,10 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java index 9e3930bd..295398c7 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockWorkflowTemplateService implements MockGrpcService { private final MockWorkflowTemplateServiceImpl serviceImpl; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java index e6968e89..c373ce15 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import com.google.api.core.BetaApi; @@ -25,9 +26,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockWorkflowTemplateServiceImpl extends WorkflowTemplateServiceImplBase { private List requests; private Queue responses; @@ -64,10 +66,10 @@ public void createWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -79,10 +81,10 @@ public void getWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -94,10 +96,10 @@ public void instantiateWorkflowTemplate( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -110,10 +112,10 @@ public void instantiateInlineWorkflowTemplate( Object response = responses.remove(); if (response instanceof Operation) { requests.add(request); - responseObserver.onNext((Operation) response); + responseObserver.onNext(((Operation) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -125,10 +127,10 @@ public void updateWorkflowTemplate( Object response = responses.remove(); if (response instanceof WorkflowTemplate) { requests.add(request); - responseObserver.onNext((WorkflowTemplate) response); + responseObserver.onNext(((WorkflowTemplate) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -141,10 +143,10 @@ public void listWorkflowTemplates( Object response = responses.remove(); if (response instanceof ListWorkflowTemplatesResponse) { requests.add(request); - responseObserver.onNext((ListWorkflowTemplatesResponse) response); + responseObserver.onNext(((ListWorkflowTemplatesResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } @@ -156,10 +158,10 @@ public void deleteWorkflowTemplate( Object response = responses.remove(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java index 66f0b181..1594a95d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.dataproc.v1beta2; import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; @@ -29,16 +30,19 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; -import io.grpc.Status; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -46,42 +50,32 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockClusterController mockClusterController; - private static MockJobController mockJobController; private static MockWorkflowTemplateService mockWorkflowTemplateService; - private static MockServiceHelper serviceHelper; + private static MockServiceHelper mockServiceHelper; private WorkflowTemplateServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockClusterController = new MockClusterController(); - mockJobController = new MockJobController(); mockWorkflowTemplateService = new MockWorkflowTemplateService(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockAutoscalingPolicyService, - mockClusterController, - mockJobController, - mockWorkflowTemplateService)); - serviceHelper.start(); + Arrays.asList(mockWorkflowTemplateService)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); WorkflowTemplateServiceSettings settings = WorkflowTemplateServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -96,7 +90,272 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") + public void createWorkflowTemplateTest() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowTemplateTest2() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkflowTemplateTest3() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + + WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkflowTemplateRequest actualRequest = + ((CreateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.createWorkflowTemplate(parent, template); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowTemplateTest() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + + WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowTemplateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + client.getWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkflowTemplateTest2() throws Exception { + WorkflowTemplate expectedResponse = + WorkflowTemplate.newBuilder() + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String name = "name3373707"; + + WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + client.getWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test public void instantiateWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -111,15 +370,14 @@ public void instantiateWorkflowTemplateTest() throws Exception { WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - Empty actualResponse = client.instantiateWorkflowTemplateAsync(name).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateWorkflowTemplateAsync(name).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateWorkflowTemplateRequest actualRequest = - (InstantiateWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -127,32 +385,72 @@ public void instantiateWorkflowTemplateTest() throws Exception { } @Test - @SuppressWarnings("all") public void instantiateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - client.instantiateWorkflowTemplateAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void instantiateWorkflowTemplateTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest2") + .setName("instantiateWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkflowTemplateService.addResponse(resultOperation); + + String name = "name3373707"; + + client.instantiateWorkflowTemplateAsync(name).get(); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstantiateWorkflowTemplateRequest actualRequest = + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void instantiateWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + client.instantiateWorkflowTemplateAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void instantiateWorkflowTemplateTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateWorkflowTemplateTest") .setDone(true) .setResponse(Any.pack(expectedResponse)) .build(); @@ -163,15 +461,14 @@ public void instantiateWorkflowTemplateTest2() throws Exception { "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); Map parameters = new HashMap<>(); - Empty actualResponse = client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateWorkflowTemplateAsync(name, parameters).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateWorkflowTemplateRequest actualRequest = - (InstantiateWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertEquals(parameters, actualRequest.getParametersMap()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -180,9 +477,8 @@ public void instantiateWorkflowTemplateTest2() throws Exception { } @Test - @SuppressWarnings("all") - public void instantiateWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { @@ -190,18 +486,62 @@ public void instantiateWorkflowTemplateExceptionTest2() throws Exception { WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); Map parameters = new HashMap<>(); + client.instantiateWorkflowTemplateAsync(name, parameters).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void instantiateWorkflowTemplateTest4() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkflowTemplateService.addResponse(resultOperation); + + String name = "name3373707"; + Map parameters = new HashMap<>(); + + client.instantiateWorkflowTemplateAsync(name, parameters).get(); + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InstantiateWorkflowTemplateRequest actualRequest = + ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parameters, actualRequest.getParametersMap()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void instantiateWorkflowTemplateExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; + Map parameters = new HashMap<>(); client.instantiateWorkflowTemplateAsync(name, parameters).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") public void instantiateInlineWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); Operation resultOperation = @@ -212,18 +552,17 @@ public void instantiateInlineWorkflowTemplateTest() throws Exception { .build(); mockWorkflowTemplateService.addResponse(resultOperation); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - Empty actualResponse = client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); InstantiateInlineWorkflowTemplateRequest actualRequest = - (InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0); + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -232,52 +571,44 @@ public void instantiateInlineWorkflowTemplateTest() throws Exception { } @Test - @SuppressWarnings("all") public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void createWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId(id) - .setName(name.toString()) - .setVersion(version) + public void instantiateInlineWorkflowTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateInlineWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); + mockWorkflowTemplateService.addResponse(resultOperation); RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - (CreateWorkflowTemplateRequest) actualRequests.get(0); + InstantiateInlineWorkflowTemplateRequest actualRequest = + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -286,50 +617,45 @@ public void createWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") - public void createWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.createWorkflowTemplate(parent, template); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void getWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name2 = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId(id) - .setName(name2.toString()) - .setVersion(version) + public void instantiateInlineWorkflowTemplateTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("instantiateInlineWorkflowTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); + mockWorkflowTemplateService.addResponse(resultOperation); - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = (GetWorkflowTemplateRequest) actualRequests.get(0); + InstantiateInlineWorkflowTemplateRequest actualRequest = + ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -337,36 +663,39 @@ public void getWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") - public void getWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - - client.getWorkflowTemplate(name); + String parent = "parent-995424086"; + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test - @SuppressWarnings("all") - public void updateWorkflowTemplateTest() { - String id = "id3355"; - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - int version = 351608024; + public void updateWorkflowTemplateTest() throws Exception { WorkflowTemplate expectedResponse = WorkflowTemplate.newBuilder() - .setId(id) - .setName(name.toString()) - .setVersion(version) + .setId("id3355") + .setName( + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) + .addAllJobs(new ArrayList()) + .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -378,7 +707,7 @@ public void updateWorkflowTemplateTest() { List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateWorkflowTemplateRequest actualRequest = - (UpdateWorkflowTemplateRequest) actualRequests.get(0); + ((UpdateWorkflowTemplateRequest) actualRequests.get(0)); Assert.assertEquals(template, actualRequest.getTemplate()); Assert.assertTrue( @@ -388,48 +717,44 @@ public void updateWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") public void updateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.updateWorkflowTemplate(template); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listWorkflowTemplatesTest() { - String nextPageToken = ""; - WorkflowTemplate templatesElement = WorkflowTemplate.newBuilder().build(); - List templates = Arrays.asList(templatesElement); + public void listWorkflowTemplatesTest() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); ListWorkflowTemplatesResponse expectedResponse = ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllTemplates(templates) + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListWorkflowTemplatesRequest actualRequest = - (ListWorkflowTemplatesRequest) actualRequests.get(0); + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -437,24 +762,111 @@ public void listWorkflowTemplatesTest() { } @Test - @SuppressWarnings("all") public void listWorkflowTemplatesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listWorkflowTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkflowTemplatesTest2() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); + ListWorkflowTemplatesResponse expectedResponse = + ListWorkflowTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + + ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowTemplatesRequest actualRequest = + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowTemplatesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + client.listWorkflowTemplates(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void listWorkflowTemplatesTest3() throws Exception { + WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); + ListWorkflowTemplatesResponse expectedResponse = + ListWorkflowTemplatesResponse.newBuilder() + .setNextPageToken("") + .addAllTemplates(Arrays.asList(responsesElement)) + .build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkflowTemplatesRequest actualRequest = + ((ListWorkflowTemplatesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkflowTemplatesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String parent = "parent-995424086"; client.listWorkflowTemplates(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteWorkflowTemplateTest() { + public void deleteWorkflowTemplateTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -467,9 +879,9 @@ public void deleteWorkflowTemplateTest() { List actualRequests = mockWorkflowTemplateService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteWorkflowTemplateRequest actualRequest = - (DeleteWorkflowTemplateRequest) actualRequests.get(0); + ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - Assert.assertEquals(name, WorkflowTemplateName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -477,20 +889,53 @@ public void deleteWorkflowTemplateTest() { } @Test - @SuppressWarnings("all") public void deleteWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockWorkflowTemplateService.addException(exception); try { WorkflowTemplateName name = WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); + client.deleteWorkflowTemplate(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void deleteWorkflowTemplateTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockWorkflowTemplateService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteWorkflowTemplate(name); + + List actualRequests = mockWorkflowTemplateService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkflowTemplateRequest actualRequest = + ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkflowTemplateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkflowTemplateService.addException(exception); + + try { + String name = "name3373707"; client.deleteWorkflowTemplate(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java index 0aeb05ba..0909a3e9 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java @@ -523,7 +523,8 @@ public void instantiateWorkflowTemplate( *
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
+     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -738,7 +739,8 @@ public void instantiateWorkflowTemplate(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
+     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -901,7 +903,8 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
+     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -1054,7 +1057,8 @@ protected WorkflowTemplateServiceFutureStub build(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
+     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
index f93a19bd..7266069a 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *     https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,29 +26,48 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
+import javax.annotation.Generated;
 
-/** AUTO-GENERATED DOCUMENTATION AND CLASS */
-@javax.annotation.Generated("by GAPIC protoc plugin")
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
 public class AutoscalingPolicyName implements ResourceName {
-
-  @Deprecated
-  protected AutoscalingPolicyName() {}
-
-  private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}");
-  private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}");
-
   private volatile Map fieldValuesMap;
   private PathTemplate pathTemplate;
   private String fixedValue;
+  private final String project;
+  private final String location;
+  private final String autoscalingPolicy;
+  private final String region;
+
+  @Deprecated
+  protected AutoscalingPolicyName() {
+    project = null;
+    location = null;
+    autoscalingPolicy = null;
+    region = null;
+  }
+
+  private AutoscalingPolicyName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
+    region = null;
+    pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY;
+  }
 
-  private String project;
-  private String location;
-  private String autoscalingPolicy;
-  private String region;
+  private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    region = Preconditions.checkNotNull(builder.getRegion());
+    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
+    location = null;
+    pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY;
+  }
 
   public String getProject() {
     return project;
@@ -66,20 +85,6 @@ public String getRegion() {
     return region;
   }
 
-  private AutoscalingPolicyName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    location = Preconditions.checkNotNull(builder.getLocation());
-    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
-    pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE;
-  }
-
-  private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    region = Preconditions.checkNotNull(builder.getRegion());
-    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
-    pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE;
-  }
-
   public static Builder newBuilder() {
     return new Builder();
   }
@@ -100,7 +105,7 @@ public Builder toBuilder() {
 
   public static AutoscalingPolicyName of(
       String project, String location, String autoscalingPolicy) {
-    return newProjectLocationAutoscalingPolicyBuilder()
+    return newBuilder()
         .setProject(project)
         .setLocation(location)
         .setAutoscalingPolicy(autoscalingPolicy)
@@ -110,7 +115,7 @@ public static AutoscalingPolicyName of(
   @BetaApi("The static create methods are not stable yet and may be changed in the future.")
   public static AutoscalingPolicyName ofProjectLocationAutoscalingPolicyName(
       String project, String location, String autoscalingPolicy) {
-    return newProjectLocationAutoscalingPolicyBuilder()
+    return newBuilder()
         .setProject(project)
         .setLocation(location)
         .setAutoscalingPolicy(autoscalingPolicy)
@@ -162,18 +167,17 @@ public static AutoscalingPolicyName parse(String formattedString) {
     if (formattedString.isEmpty()) {
       return null;
     }
-    if (PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.match(formattedString);
+    if (PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)) {
+      Map matchMap = PROJECT_LOCATION_AUTOSCALING_POLICY.match(formattedString);
       return ofProjectLocationAutoscalingPolicyName(
           matchMap.get("project"), matchMap.get("location"), matchMap.get("autoscaling_policy"));
-    } else if (PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.match(formattedString);
+    } else if (PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString)) {
+      Map matchMap = PROJECT_REGION_AUTOSCALING_POLICY.match(formattedString);
       return ofProjectRegionAutoscalingPolicyName(
           matchMap.get("project"), matchMap.get("region"), matchMap.get("autoscaling_policy"));
     }
-    throw new ValidationException("JobName.parse: formattedString not in valid format");
+    throw new ValidationException(
+        "AutoscalingPolicyName.parse: formattedString not in valid format");
   }
 
   public static List parseList(List formattedStrings) {
@@ -197,8 +201,8 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)
-        || PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)
+        || PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString);
   }
 
   @Override
@@ -235,11 +239,41 @@ public String toString() {
     return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
   }
 
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      AutoscalingPolicyName that = ((AutoscalingPolicyName) o);
+      return Objects.equals(this.project, that.project)
+          && Objects.equals(this.location, that.location)
+          && Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy)
+          && Objects.equals(this.region, that.region);
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    h *= 1000003;
+    h ^= Objects.hashCode(autoscalingPolicy);
+    h *= 1000003;
+    h ^= Objects.hashCode(region);
+    return h;
+  }
+
   /**
    * Builder for projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}.
    */
   public static class Builder {
-
     private String project;
     private String location;
     private String autoscalingPolicy;
@@ -275,9 +309,8 @@ public Builder setAutoscalingPolicy(String autoscalingPolicy) {
 
     private Builder(AutoscalingPolicyName autoscalingPolicyName) {
       Preconditions.checkArgument(
-          autoscalingPolicyName.pathTemplate == PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE,
-          "toBuilder is only supported when AutoscalingPolicyName has the pattern of "
-              + "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}.");
+          Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY),
+          "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}");
       project = autoscalingPolicyName.project;
       location = autoscalingPolicyName.location;
       autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy;
@@ -291,12 +324,11 @@ public AutoscalingPolicyName build() {
   /** Builder for projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}. */
   @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
   public static class ProjectRegionAutoscalingPolicyBuilder {
-
     private String project;
     private String region;
     private String autoscalingPolicy;
 
-    private ProjectRegionAutoscalingPolicyBuilder() {}
+    protected ProjectRegionAutoscalingPolicyBuilder() {}
 
     public String getProject() {
       return project;
@@ -329,35 +361,4 @@ public AutoscalingPolicyName build() {
       return new AutoscalingPolicyName(this);
     }
   }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o != null || getClass() == o.getClass()) {
-      AutoscalingPolicyName that = (AutoscalingPolicyName) o;
-      return (Objects.equals(this.project, that.project))
-          && (Objects.equals(this.location, that.location))
-          && (Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy))
-          && (Objects.equals(this.region, that.region));
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    int h = 1;
-    h *= 1000003;
-    h ^= Objects.hashCode(fixedValue);
-    h *= 1000003;
-    h ^= Objects.hashCode(project);
-    h *= 1000003;
-    h ^= Objects.hashCode(location);
-    h *= 1000003;
-    h ^= Objects.hashCode(autoscalingPolicy);
-    h *= 1000003;
-    h ^= Objects.hashCode(region);
-    return h;
-  }
 }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
index ac38238d..94a1ecfb 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *     https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,19 +23,29 @@
 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 */
-@javax.annotation.Generated("by GAPIC protoc plugin")
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
 public class LocationName implements ResourceName {
-
-  private static final PathTemplate PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_LOCATION =
       PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
-
   private volatile Map fieldValuesMap;
-
   private final String project;
   private final String location;
 
+  @Deprecated
+  protected LocationName() {
+    project = null;
+    location = null;
+  }
+
+  private LocationName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+  }
+
   public String getProject() {
     return project;
   }
@@ -52,11 +62,6 @@ public Builder toBuilder() {
     return new Builder(this);
   }
 
-  private LocationName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    location = Preconditions.checkNotNull(builder.getLocation());
-  }
-
   public static LocationName of(String project, String location) {
     return newBuilder().setProject(project).setLocation(location).build();
   }
@@ -70,7 +75,7 @@ public static LocationName parse(String formattedString) {
       return null;
     }
     Map matchMap =
-        PATH_TEMPLATE.validatedMatch(
+        PROJECT_LOCATION.validatedMatch(
             formattedString, "LocationName.parse: formattedString not in valid format");
     return of(matchMap.get("project"), matchMap.get("location"));
   }
@@ -84,7 +89,7 @@ public static List parseList(List formattedStrings) {
   }
 
   public static List toStringList(List values) {
-    List list = new ArrayList(values.size());
+    List list = new ArrayList<>(values.size());
     for (LocationName value : values) {
       if (value == null) {
         list.add("");
@@ -96,16 +101,21 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_LOCATION.matches(formattedString);
   }
 
+  @Override
   public Map getFieldValuesMap() {
     if (fieldValuesMap == null) {
       synchronized (this) {
         if (fieldValuesMap == null) {
           ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
-          fieldMapBuilder.put("project", project);
-          fieldMapBuilder.put("location", location);
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (location != null) {
+            fieldMapBuilder.put("location", location);
+          }
           fieldValuesMap = fieldMapBuilder.build();
         }
       }
@@ -119,15 +129,39 @@ public String getFieldValue(String fieldName) {
 
   @Override
   public String toString() {
-    return PATH_TEMPLATE.instantiate("project", project, "location", location);
+    return PROJECT_LOCATION.instantiate("project", project, "location", location);
   }
 
-  /** Builder for LocationName. */
-  public static class Builder {
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      LocationName that = ((LocationName) o);
+      return Objects.equals(this.project, that.project)
+          && Objects.equals(this.location, that.location);
+    }
+    return false;
+  }
 
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
+
+  /** Builder for projects/{project}/locations/{location}. */
+  public static class Builder {
     private String project;
     private String location;
 
+    protected Builder() {}
+
     public String getProject() {
       return project;
     }
@@ -146,8 +180,6 @@ public Builder setLocation(String location) {
       return this;
     }
 
-    private Builder() {}
-
     private Builder(LocationName locationName) {
       project = locationName.project;
       location = locationName.location;
@@ -157,26 +189,4 @@ public LocationName build() {
       return new LocationName(this);
     }
   }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o instanceof LocationName) {
-      LocationName that = (LocationName) o;
-      return (this.project.equals(that.project)) && (this.location.equals(that.location));
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    int h = 1;
-    h *= 1000003;
-    h ^= project.hashCode();
-    h *= 1000003;
-    h ^= location.hashCode();
-    return h;
-  }
 }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
index afb2e095..46a8e3cd 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *     https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,19 +23,29 @@
 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 */
-@javax.annotation.Generated("by GAPIC protoc plugin")
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
 public class RegionName implements ResourceName {
-
-  private static final PathTemplate PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_REGION =
       PathTemplate.createWithoutUrlEncoding("projects/{project}/regions/{region}");
-
   private volatile Map fieldValuesMap;
-
   private final String project;
   private final String region;
 
+  @Deprecated
+  protected RegionName() {
+    project = null;
+    region = null;
+  }
+
+  private RegionName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    region = Preconditions.checkNotNull(builder.getRegion());
+  }
+
   public String getProject() {
     return project;
   }
@@ -52,11 +62,6 @@ public Builder toBuilder() {
     return new Builder(this);
   }
 
-  private RegionName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    region = Preconditions.checkNotNull(builder.getRegion());
-  }
-
   public static RegionName of(String project, String region) {
     return newBuilder().setProject(project).setRegion(region).build();
   }
@@ -70,7 +75,7 @@ public static RegionName parse(String formattedString) {
       return null;
     }
     Map matchMap =
-        PATH_TEMPLATE.validatedMatch(
+        PROJECT_REGION.validatedMatch(
             formattedString, "RegionName.parse: formattedString not in valid format");
     return of(matchMap.get("project"), matchMap.get("region"));
   }
@@ -84,7 +89,7 @@ public static List parseList(List formattedStrings) {
   }
 
   public static List toStringList(List values) {
-    List list = new ArrayList(values.size());
+    List list = new ArrayList<>(values.size());
     for (RegionName value : values) {
       if (value == null) {
         list.add("");
@@ -96,16 +101,21 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_REGION.matches(formattedString);
   }
 
+  @Override
   public Map getFieldValuesMap() {
     if (fieldValuesMap == null) {
       synchronized (this) {
         if (fieldValuesMap == null) {
           ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
-          fieldMapBuilder.put("project", project);
-          fieldMapBuilder.put("region", region);
+          if (project != null) {
+            fieldMapBuilder.put("project", project);
+          }
+          if (region != null) {
+            fieldMapBuilder.put("region", region);
+          }
           fieldValuesMap = fieldMapBuilder.build();
         }
       }
@@ -119,15 +129,38 @@ public String getFieldValue(String fieldName) {
 
   @Override
   public String toString() {
-    return PATH_TEMPLATE.instantiate("project", project, "region", region);
+    return PROJECT_REGION.instantiate("project", project, "region", region);
   }
 
-  /** Builder for RegionName. */
-  public static class Builder {
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      RegionName that = ((RegionName) o);
+      return Objects.equals(this.project, that.project) && Objects.equals(this.region, that.region);
+    }
+    return false;
+  }
 
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(region);
+    return h;
+  }
+
+  /** Builder for projects/{project}/regions/{region}. */
+  public static class Builder {
     private String project;
     private String region;
 
+    protected Builder() {}
+
     public String getProject() {
       return project;
     }
@@ -146,8 +179,6 @@ public Builder setRegion(String region) {
       return this;
     }
 
-    private Builder() {}
-
     private Builder(RegionName regionName) {
       project = regionName.project;
       region = regionName.region;
@@ -157,26 +188,4 @@ public RegionName build() {
       return new RegionName(this);
     }
   }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o instanceof RegionName) {
-      RegionName that = (RegionName) o;
-      return (this.project.equals(that.project)) && (this.region.equals(that.region));
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    int h = 1;
-    h *= 1000003;
-    h ^= project.hashCode();
-    h *= 1000003;
-    h ^= region.hashCode();
-    return h;
-  }
 }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java
index 167a8a57..b471a5b9 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *     https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,29 +26,48 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
+import javax.annotation.Generated;
 
-/** AUTO-GENERATED DOCUMENTATION AND CLASS */
-@javax.annotation.Generated("by GAPIC protoc plugin")
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
 public class WorkflowTemplateName implements ResourceName {
-
-  @Deprecated
-  protected WorkflowTemplateName() {}
-
-  private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}");
-  private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}");
-
   private volatile Map fieldValuesMap;
   private PathTemplate pathTemplate;
   private String fixedValue;
+  private final String project;
+  private final String region;
+  private final String workflowTemplate;
+  private final String location;
+
+  @Deprecated
+  protected WorkflowTemplateName() {
+    project = null;
+    region = null;
+    workflowTemplate = null;
+    location = null;
+  }
+
+  private WorkflowTemplateName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    region = Preconditions.checkNotNull(builder.getRegion());
+    workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate());
+    location = null;
+    pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE;
+  }
 
-  private String project;
-  private String region;
-  private String workflowTemplate;
-  private String location;
+  private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate());
+    region = null;
+    pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE;
+  }
 
   public String getProject() {
     return project;
@@ -66,20 +85,6 @@ public String getLocation() {
     return location;
   }
 
-  private WorkflowTemplateName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    region = Preconditions.checkNotNull(builder.getRegion());
-    workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate());
-    pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE;
-  }
-
-  private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    location = Preconditions.checkNotNull(builder.getLocation());
-    workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate());
-    pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE;
-  }
-
   public static Builder newBuilder() {
     return new Builder();
   }
@@ -99,7 +104,7 @@ public Builder toBuilder() {
   }
 
   public static WorkflowTemplateName of(String project, String region, String workflowTemplate) {
-    return newProjectRegionWorkflowTemplateBuilder()
+    return newBuilder()
         .setProject(project)
         .setRegion(region)
         .setWorkflowTemplate(workflowTemplate)
@@ -109,7 +114,7 @@ public static WorkflowTemplateName of(String project, String region, String work
   @BetaApi("The static create methods are not stable yet and may be changed in the future.")
   public static WorkflowTemplateName ofProjectRegionWorkflowTemplateName(
       String project, String region, String workflowTemplate) {
-    return newProjectRegionWorkflowTemplateBuilder()
+    return newBuilder()
         .setProject(project)
         .setRegion(region)
         .setWorkflowTemplate(workflowTemplate)
@@ -161,18 +166,17 @@ public static WorkflowTemplateName parse(String formattedString) {
     if (formattedString.isEmpty()) {
       return null;
     }
-    if (PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+    if (PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_REGION_WORKFLOW_TEMPLATE.match(formattedString);
       return ofProjectRegionWorkflowTemplateName(
           matchMap.get("project"), matchMap.get("region"), matchMap.get("workflow_template"));
-    } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.match(formattedString);
+    } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString)) {
+      Map matchMap = PROJECT_LOCATION_WORKFLOW_TEMPLATE.match(formattedString);
       return ofProjectLocationWorkflowTemplateName(
           matchMap.get("project"), matchMap.get("location"), matchMap.get("workflow_template"));
     }
-    throw new ValidationException("JobName.parse: formattedString not in valid format");
+    throw new ValidationException(
+        "WorkflowTemplateName.parse: formattedString not in valid format");
   }
 
   public static List parseList(List formattedStrings) {
@@ -196,8 +200,8 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString)
-        || PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString)
+        || PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString);
   }
 
   @Override
@@ -234,9 +238,39 @@ public String toString() {
     return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
   }
 
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      WorkflowTemplateName that = ((WorkflowTemplateName) o);
+      return Objects.equals(this.project, that.project)
+          && Objects.equals(this.region, that.region)
+          && Objects.equals(this.workflowTemplate, that.workflowTemplate)
+          && Objects.equals(this.location, that.location);
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(region);
+    h *= 1000003;
+    h ^= Objects.hashCode(workflowTemplate);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    return h;
+  }
+
   /** Builder for projects/{project}/regions/{region}/workflowTemplates/{workflow_template}. */
   public static class Builder {
-
     private String project;
     private String region;
     private String workflowTemplate;
@@ -272,9 +306,8 @@ public Builder setWorkflowTemplate(String workflowTemplate) {
 
     private Builder(WorkflowTemplateName workflowTemplateName) {
       Preconditions.checkArgument(
-          workflowTemplateName.pathTemplate == PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE,
-          "toBuilder is only supported when WorkflowTemplateName has the pattern of "
-              + "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}.");
+          Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE),
+          "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}");
       project = workflowTemplateName.project;
       region = workflowTemplateName.region;
       workflowTemplate = workflowTemplateName.workflowTemplate;
@@ -288,12 +321,11 @@ public WorkflowTemplateName build() {
   /** Builder for projects/{project}/locations/{location}/workflowTemplates/{workflow_template}. */
   @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
   public static class ProjectLocationWorkflowTemplateBuilder {
-
     private String project;
     private String location;
     private String workflowTemplate;
 
-    private ProjectLocationWorkflowTemplateBuilder() {}
+    protected ProjectLocationWorkflowTemplateBuilder() {}
 
     public String getProject() {
       return project;
@@ -326,35 +358,4 @@ public WorkflowTemplateName build() {
       return new WorkflowTemplateName(this);
     }
   }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o != null || getClass() == o.getClass()) {
-      WorkflowTemplateName that = (WorkflowTemplateName) o;
-      return (Objects.equals(this.project, that.project))
-          && (Objects.equals(this.region, that.region))
-          && (Objects.equals(this.workflowTemplate, that.workflowTemplate))
-          && (Objects.equals(this.location, that.location));
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    int h = 1;
-    h *= 1000003;
-    h ^= Objects.hashCode(fixedValue);
-    h *= 1000003;
-    h ^= Objects.hashCode(project);
-    h *= 1000003;
-    h ^= Objects.hashCode(region);
-    h *= 1000003;
-    h ^= Objects.hashCode(workflowTemplate);
-    h *= 1000003;
-    h ^= Objects.hashCode(location);
-    return h;
-  }
 }
diff --git a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml
index afdef514..e4109312 100644
--- a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml
+++ b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml
@@ -16,4 +16,26 @@
     com/google/cloud/dataproc/v1beta2/*OrBuilder
     boolean has*(*)
   
+
+  
+  
+    6001
+    com/google/cloud/dataproc/v1beta2/Component
+    DOCKER
+  
+  
+    6011
+    com/google/cloud/dataproc/v1beta2/Component
+    DOCKER_VALUE
+  
+  
+    6001
+    com/google/cloud/dataproc/v1beta2/Component
+    FLINK
+  
+  
+    6011
+    com/google/cloud/dataproc/v1beta2/Component
+    FLINK_VALUE
+  
 
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java
index a7b158d2..a04de167 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java
@@ -5,7 +5,7 @@
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *     https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,29 +26,48 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
+import javax.annotation.Generated;
 
-/** AUTO-GENERATED DOCUMENTATION AND CLASS */
-@javax.annotation.Generated("by GAPIC protoc plugin")
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
 public class AutoscalingPolicyName implements ResourceName {
-
-  @Deprecated
-  protected AutoscalingPolicyName() {}
-
-  private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}");
-  private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE =
+  private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY =
       PathTemplate.createWithoutUrlEncoding(
           "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}");
-
   private volatile Map fieldValuesMap;
   private PathTemplate pathTemplate;
   private String fixedValue;
+  private final String project;
+  private final String location;
+  private final String autoscalingPolicy;
+  private final String region;
+
+  @Deprecated
+  protected AutoscalingPolicyName() {
+    project = null;
+    location = null;
+    autoscalingPolicy = null;
+    region = null;
+  }
+
+  private AutoscalingPolicyName(Builder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    location = Preconditions.checkNotNull(builder.getLocation());
+    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
+    region = null;
+    pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY;
+  }
 
-  private String project;
-  private String location;
-  private String autoscalingPolicy;
-  private String region;
+  private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) {
+    project = Preconditions.checkNotNull(builder.getProject());
+    region = Preconditions.checkNotNull(builder.getRegion());
+    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
+    location = null;
+    pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY;
+  }
 
   public String getProject() {
     return project;
@@ -66,20 +85,6 @@ public String getRegion() {
     return region;
   }
 
-  private AutoscalingPolicyName(Builder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    location = Preconditions.checkNotNull(builder.getLocation());
-    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
-    pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE;
-  }
-
-  private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) {
-    project = Preconditions.checkNotNull(builder.getProject());
-    region = Preconditions.checkNotNull(builder.getRegion());
-    autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
-    pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE;
-  }
-
   public static Builder newBuilder() {
     return new Builder();
   }
@@ -100,7 +105,7 @@ public Builder toBuilder() {
 
   public static AutoscalingPolicyName of(
       String project, String location, String autoscalingPolicy) {
-    return newProjectLocationAutoscalingPolicyBuilder()
+    return newBuilder()
         .setProject(project)
         .setLocation(location)
         .setAutoscalingPolicy(autoscalingPolicy)
@@ -110,7 +115,7 @@ public static AutoscalingPolicyName of(
   @BetaApi("The static create methods are not stable yet and may be changed in the future.")
   public static AutoscalingPolicyName ofProjectLocationAutoscalingPolicyName(
       String project, String location, String autoscalingPolicy) {
-    return newProjectLocationAutoscalingPolicyBuilder()
+    return newBuilder()
         .setProject(project)
         .setLocation(location)
         .setAutoscalingPolicy(autoscalingPolicy)
@@ -162,18 +167,17 @@ public static AutoscalingPolicyName parse(String formattedString) {
     if (formattedString.isEmpty()) {
       return null;
     }
-    if (PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.match(formattedString);
+    if (PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)) {
+      Map matchMap = PROJECT_LOCATION_AUTOSCALING_POLICY.match(formattedString);
       return ofProjectLocationAutoscalingPolicyName(
           matchMap.get("project"), matchMap.get("location"), matchMap.get("autoscaling_policy"));
-    } else if (PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)) {
-      Map matchMap =
-          PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.match(formattedString);
+    } else if (PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString)) {
+      Map matchMap = PROJECT_REGION_AUTOSCALING_POLICY.match(formattedString);
       return ofProjectRegionAutoscalingPolicyName(
           matchMap.get("project"), matchMap.get("region"), matchMap.get("autoscaling_policy"));
     }
-    throw new ValidationException("JobName.parse: formattedString not in valid format");
+    throw new ValidationException(
+        "AutoscalingPolicyName.parse: formattedString not in valid format");
   }
 
   public static List parseList(List formattedStrings) {
@@ -197,8 +201,8 @@ public static List toStringList(List values) {
   }
 
   public static boolean isParsableFrom(String formattedString) {
-    return PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString)
-        || PROJECT_REGION_AUTOSCALING_POLICY_PATH_TEMPLATE.matches(formattedString);
+    return PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)
+        || PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString);
   }
 
   @Override
@@ -235,11 +239,41 @@ public String toString() {
     return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
   }
 
+  @Override
+  public boolean equals(Object o) {
+    if (o == this) {
+      return true;
+    }
+    if (o != null || getClass() == o.getClass()) {
+      AutoscalingPolicyName that = ((AutoscalingPolicyName) o);
+      return Objects.equals(this.project, that.project)
+          && Objects.equals(this.location, that.location)
+          && Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy)
+          && Objects.equals(this.region, that.region);
+    }
+    return false;
+  }
+
+  @Override
+  public int hashCode() {
+    int h = 1;
+    h *= 1000003;
+    h ^= Objects.hashCode(fixedValue);
+    h *= 1000003;
+    h ^= Objects.hashCode(project);
+    h *= 1000003;
+    h ^= Objects.hashCode(location);
+    h *= 1000003;
+    h ^= Objects.hashCode(autoscalingPolicy);
+    h *= 1000003;
+    h ^= Objects.hashCode(region);
+    return h;
+  }
+
   /**
    * Builder for projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}.
    */
   public static class Builder {
-
     private String project;
     private String location;
     private String autoscalingPolicy;
@@ -275,9 +309,8 @@ public Builder setAutoscalingPolicy(String autoscalingPolicy) {
 
     private Builder(AutoscalingPolicyName autoscalingPolicyName) {
       Preconditions.checkArgument(
-          autoscalingPolicyName.pathTemplate == PROJECT_LOCATION_AUTOSCALING_POLICY_PATH_TEMPLATE,
-          "toBuilder is only supported when AutoscalingPolicyName has the pattern of "
-              + "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}.");
+          Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY),
+          "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}");
       project = autoscalingPolicyName.project;
       location = autoscalingPolicyName.location;
       autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy;
@@ -291,12 +324,11 @@ public AutoscalingPolicyName build() {
   /** Builder for projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}. */
   @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
   public static class ProjectRegionAutoscalingPolicyBuilder {
-
     private String project;
     private String region;
     private String autoscalingPolicy;
 
-    private ProjectRegionAutoscalingPolicyBuilder() {}
+    protected ProjectRegionAutoscalingPolicyBuilder() {}
 
     public String getProject() {
       return project;
@@ -329,35 +361,4 @@ public AutoscalingPolicyName build() {
       return new AutoscalingPolicyName(this);
     }
   }
-
-  @Override
-  public boolean equals(Object o) {
-    if (o == this) {
-      return true;
-    }
-    if (o != null || getClass() == o.getClass()) {
-      AutoscalingPolicyName that = (AutoscalingPolicyName) o;
-      return (Objects.equals(this.project, that.project))
-          && (Objects.equals(this.location, that.location))
-          && (Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy))
-          && (Objects.equals(this.region, that.region));
-    }
-    return false;
-  }
-
-  @Override
-  public int hashCode() {
-    int h = 1;
-    h *= 1000003;
-    h ^= Objects.hashCode(fixedValue);
-    h *= 1000003;
-    h ^= Objects.hashCode(project);
-    h *= 1000003;
-    h ^= Objects.hashCode(location);
-    h *= 1000003;
-    h ^= Objects.hashCode(autoscalingPolicy);
-    h *= 1000003;
-    h ^= Objects.hashCode(region);
-    return h;
-  }
 }
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java
index 31f1bcb0..6b0f63cc 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java
@@ -209,11 +209,14 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
    *
    *
    * 
-   * Required. Fraction of average pending memory in the last cooldown period
-   * for which to add workers. A scale-up factor of 1.0 will result in scaling
-   * up so that there is no pending memory remaining after the update (more
-   * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-   * magnitude of scaling up (less aggressive scaling).
+   * Required. Fraction of average YARN pending memory in the last cooldown
+   * period for which to add workers. A scale-up factor of 1.0 will result in
+   * scaling up so that there is no pending memory remaining after the update
+   * (more aggressive scaling). A scale-up factor closer to 0 will result in a
+   * smaller magnitude of scaling up (less aggressive scaling). See [How
+   * autoscaling
+   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+   * for more information.
    * Bounds: [0.0, 1.0].
    * 
* @@ -232,11 +235,14 @@ public double getScaleUpFactor() { * * *
-   * Required. Fraction of average pending memory in the last cooldown period
-   * for which to remove workers. A scale-down factor of 1 will result in
+   * Required. Fraction of average YARN pending memory in the last cooldown
+   * period for which to remove workers. A scale-down factor of 1 will result in
    * scaling down so that there is no available memory remaining after the
    * update (more aggressive scaling). A scale-down factor of 0 disables
    * removing workers, which can be beneficial for autoscaling a single job.
+   * See [How autoscaling
+   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+   * for more information.
    * Bounds: [0.0, 1.0].
    * 
* @@ -954,11 +960,14 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to add workers. A scale-up factor of 1.0 will result in
+     * scaling up so that there is no pending memory remaining after the update
+     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
+     * smaller magnitude of scaling up (less aggressive scaling). See [How
+     * autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* @@ -974,11 +983,14 @@ public double getScaleUpFactor() { * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to add workers. A scale-up factor of 1.0 will result in
+     * scaling up so that there is no pending memory remaining after the update
+     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
+     * smaller magnitude of scaling up (less aggressive scaling). See [How
+     * autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* @@ -997,11 +1009,14 @@ public Builder setScaleUpFactor(double value) { * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to add workers. A scale-up factor of 1.0 will result in
+     * scaling up so that there is no pending memory remaining after the update
+     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
+     * smaller magnitude of scaling up (less aggressive scaling). See [How
+     * autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* @@ -1021,11 +1036,14 @@ public Builder clearScaleUpFactor() { * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to remove workers. A scale-down factor of 1 will result in
      * scaling down so that there is no available memory remaining after the
      * update (more aggressive scaling). A scale-down factor of 0 disables
      * removing workers, which can be beneficial for autoscaling a single job.
+     * See [How autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* @@ -1041,11 +1059,14 @@ public double getScaleDownFactor() { * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to remove workers. A scale-down factor of 1 will result in
      * scaling down so that there is no available memory remaining after the
      * update (more aggressive scaling). A scale-down factor of 0 disables
      * removing workers, which can be beneficial for autoscaling a single job.
+     * See [How autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* @@ -1064,11 +1085,14 @@ public Builder setScaleDownFactor(double value) { * * *
-     * Required. Fraction of average pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
+     * Required. Fraction of average YARN pending memory in the last cooldown
+     * period for which to remove workers. A scale-down factor of 1 will result in
      * scaling down so that there is no available memory remaining after the
      * update (more aggressive scaling). A scale-down factor of 0 disables
      * removing workers, which can be beneficial for autoscaling a single job.
+     * See [How autoscaling
+     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+     * for more information.
      * Bounds: [0.0, 1.0].
      * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java index 25de99ad..53b3d8bd 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java @@ -80,11 +80,14 @@ public interface BasicYarnAutoscalingConfigOrBuilder * * *
-   * Required. Fraction of average pending memory in the last cooldown period
-   * for which to add workers. A scale-up factor of 1.0 will result in scaling
-   * up so that there is no pending memory remaining after the update (more
-   * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-   * magnitude of scaling up (less aggressive scaling).
+   * Required. Fraction of average YARN pending memory in the last cooldown
+   * period for which to add workers. A scale-up factor of 1.0 will result in
+   * scaling up so that there is no pending memory remaining after the update
+   * (more aggressive scaling). A scale-up factor closer to 0 will result in a
+   * smaller magnitude of scaling up (less aggressive scaling). See [How
+   * autoscaling
+   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+   * for more information.
    * Bounds: [0.0, 1.0].
    * 
* @@ -98,11 +101,14 @@ public interface BasicYarnAutoscalingConfigOrBuilder * * *
-   * Required. Fraction of average pending memory in the last cooldown period
-   * for which to remove workers. A scale-down factor of 1 will result in
+   * Required. Fraction of average YARN pending memory in the last cooldown
+   * period for which to remove workers. A scale-down factor of 1 will result in
    * scaling down so that there is no available memory remaining after the
    * update (more aggressive scaling). A scale-down factor of 0 disables
    * removing workers, which can be beneficial for autoscaling a single job.
+   * See [How autoscaling
+   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
+   * for more information.
    * Bounds: [0.0, 1.0].
    * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java index 1526c99a..4c00d031 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java @@ -39,6 +39,7 @@ private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private ClusterConfig() { configBucket_ = ""; + tempBucket_ = ""; initializationActions_ = java.util.Collections.emptyList(); } @@ -79,6 +80,13 @@ private ClusterConfig( configBucket_ = s; break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + tempBucket_ = s; + break; + } case 66: { com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder subBuilder = null; @@ -379,6 +387,67 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { } } + public static final int TEMP_BUCKET_FIELD_NUMBER = 2; + private volatile java.lang.Object tempBucket_; + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket.
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + @java.lang.Override + public java.lang.String getTempBucket() { + java.lang.Object ref = tempBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tempBucket_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket.
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTempBucketBytes() { + java.lang.Object ref = tempBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tempBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dataproc.v1beta2.GceClusterConfig gceClusterConfig_; /** @@ -1083,10 +1152,10 @@ public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConf * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * @@ -1103,10 +1172,10 @@ public boolean hasGkeClusterConfig() { * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * @@ -1125,10 +1194,10 @@ public com.google.cloud.dataproc.v1beta2.GkeClusterConfig getGkeClusterConfig() * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * @@ -1158,6 +1227,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getConfigBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); } + if (!getTempBucketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); + } if (gceClusterConfig_ != null) { output.writeMessage(8, getGceClusterConfig()); } @@ -1206,6 +1278,9 @@ public int getSerializedSize() { if (!getConfigBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configBucket_); } + if (!getTempBucketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); + } if (gceClusterConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig()); } @@ -1262,6 +1337,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1beta2.ClusterConfig) obj; if (!getConfigBucket().equals(other.getConfigBucket())) return false; + if (!getTempBucket().equals(other.getTempBucket())) return false; if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; if (hasGceClusterConfig()) { if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false; @@ -1320,6 +1396,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getConfigBucket().hashCode(); + hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getTempBucket().hashCode(); if (hasGceClusterConfig()) { hash = (37 * hash) + GCE_CLUSTER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGceClusterConfig().hashCode(); @@ -1517,6 +1595,8 @@ public Builder clear() { super.clear(); configBucket_ = ""; + tempBucket_ = ""; + if (gceClusterConfigBuilder_ == null) { gceClusterConfig_ = null; } else { @@ -1618,6 +1698,7 @@ public com.google.cloud.dataproc.v1beta2.ClusterConfig buildPartial() { new com.google.cloud.dataproc.v1beta2.ClusterConfig(this); int from_bitField0_ = bitField0_; result.configBucket_ = configBucket_; + result.tempBucket_ = tempBucket_; if (gceClusterConfigBuilder_ == null) { result.gceClusterConfig_ = gceClusterConfig_; } else { @@ -1736,6 +1817,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterConfig other) configBucket_ = other.configBucket_; onChanged(); } + if (!other.getTempBucket().isEmpty()) { + tempBucket_ = other.tempBucket_; + onChanged(); + } if (other.hasGceClusterConfig()) { mergeGceClusterConfig(other.getGceClusterConfig()); } @@ -1973,6 +2058,142 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object tempBucket_ = ""; + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket.
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + public java.lang.String getTempBucket() { + java.lang.Object ref = tempBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tempBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket.
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + public com.google.protobuf.ByteString getTempBucketBytes() { + java.lang.Object ref = tempBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tempBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket.
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tempBucket to set. + * @return This builder for chaining. + */ + public Builder setTempBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tempBucket_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket.
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTempBucket() { + + tempBucket_ = getDefaultInstance().getTempBucket(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+     * data, such as Spark and MapReduce history files. If you do not specify a
+     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+     * EU) for your cluster's temp bucket according to the Compute Engine zone
+     * where your cluster is deployed, and then create and manage this
+     * project-level, per-location bucket. The default bucket has a TTL of 90
+     * days, but you can use any TTL (or none) if you specify a bucket.
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tempBucket to set. + * @return This builder for chaining. + */ + public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tempBucket_ = value; + onChanged(); + return this; + } + private com.google.cloud.dataproc.v1beta2.GceClusterConfig gceClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.GceClusterConfig, @@ -4686,10 +4907,10 @@ public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConf * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4705,10 +4926,10 @@ public boolean hasGkeClusterConfig() { * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4730,10 +4951,10 @@ public com.google.cloud.dataproc.v1beta2.GkeClusterConfig getGkeClusterConfig() * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4757,10 +4978,10 @@ public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1beta2.GkeClusterC * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4782,10 +5003,10 @@ public Builder setGkeClusterConfig( * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4813,10 +5034,10 @@ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1beta2.GkeCluste * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4838,10 +5059,10 @@ public Builder clearGkeClusterConfig() { * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4857,10 +5078,10 @@ public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder getGkeClusterC * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * @@ -4881,10 +5102,10 @@ public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder getGkeClusterC * * *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-     * Setting this is considered mutually exclusive with Compute Engine-based
-     * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-     * `secondary_worker_config`, and `autoscaling_config`.
+     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
      * 
* * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java index cd74b235..a4f0e6a9 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java @@ -64,6 +64,43 @@ public interface ClusterConfigOrBuilder */ com.google.protobuf.ByteString getConfigBucketBytes(); + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket.
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + java.lang.String getTempBucket(); + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
+   * data, such as Spark and MapReduce history files. If you do not specify a
+   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
+   * EU) for your cluster's temp bucket according to the Compute Engine zone
+   * where your cluster is deployed, and then create and manage this
+   * project-level, per-location bucket. The default bucket has a TTL of 90
+   * days, but you can use any TTL (or none) if you specify a bucket.
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + com.google.protobuf.ByteString getTempBucketBytes(); + /** * * @@ -613,10 +650,10 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * @@ -630,10 +667,10 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * @@ -647,10 +684,10 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes.
-   * Setting this is considered mutually exclusive with Compute Engine-based
-   * options such as `gce_cluster_config`, `master_config`, `worker_config`,
-   * `secondary_worker_config`, and `autoscaling_config`.
+   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
    * 
* * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java new file mode 100644 index 00000000..244cc71b --- /dev/null +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java @@ -0,0 +1,223 @@ +/* + * 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.dataproc.v1beta2; + +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 ClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + + @Deprecated + protected ClusterName() { + project = null; + location = null; + cluster = null; + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ClusterName of(String project, String location, String cluster) { + return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER.validatedMatch( + formattedString, "ClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + 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 (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER.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 (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER.instantiate( + "project", project, "location", location, "cluster", cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ClusterName that = ((ClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster); + } + 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(cluster); + return h; + } + + /** Builder for projects/{project}/locations/{location}/clusters/{cluster}. */ + public static class Builder { + private String project; + private String location; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(ClusterName clusterName) { + project = clusterName.project; + location = clusterName.location; + cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } +} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java index 9f45a968..ecaed7cf 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java @@ -193,207 +193,217 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022C\n\007metrics\030\t \001" + "(\0132-.google.cloud.dataproc.v1beta2.Clust" + "erMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\010\n\rClusterConfig\022" - + "\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022P\n\022gce_clust" - + "er_config\030\010 \001(\0132/.google.cloud.dataproc." - + "v1beta2.GceClusterConfigB\003\340A\001\022N\n\rmaster_" - + "config\030\t \001(\01322.google.cloud.dataproc.v1b" - + "eta2.InstanceGroupConfigB\003\340A\001\022N\n\rworker_" - + "config\030\n \001(\01322.google.cloud.dataproc.v1b" - + "eta2.InstanceGroupConfigB\003\340A\001\022X\n\027seconda" - + "ry_worker_config\030\014 \001(\01322.google.cloud.da" - + "taproc.v1beta2.InstanceGroupConfigB\003\340A\001\022" - + "K\n\017software_config\030\r \001(\0132-.google.cloud." - + "dataproc.v1beta2.SoftwareConfigB\003\340A\001\022M\n\020" - + "lifecycle_config\030\016 \001(\0132..google.cloud.da" - + "taproc.v1beta2.LifecycleConfigB\003\340A\001\022\\\n\026i" - + "nitialization_actions\030\013 \003(\01327.google.clo" - + "ud.dataproc.v1beta2.NodeInitializationAc" - + "tionB\003\340A\001\022O\n\021encryption_config\030\017 \001(\0132/.g" - + "oogle.cloud.dataproc.v1beta2.EncryptionC" - + "onfigB\003\340A\001\022Q\n\022autoscaling_config\030\020 \001(\01320" - + ".google.cloud.dataproc.v1beta2.Autoscali" - + "ngConfigB\003\340A\001\022K\n\017endpoint_config\030\021 \001(\0132-" - + ".google.cloud.dataproc.v1beta2.EndpointC" - + "onfigB\003\340A\001\022K\n\017security_config\030\022 \001(\0132-.go" - + "ogle.cloud.dataproc.v1beta2.SecurityConf" - + "igB\003\340A\001\022P\n\022gke_cluster_config\030\023 \001(\0132/.go" - + "ogle.cloud.dataproc.v1beta2.GkeClusterCo" - + "nfigB\003\340A\001\"\230\002\n\020GkeClusterConfig\022|\n namesp" - + "aced_gke_deployment_target\030\001 \001(\0132M.googl" - + "e.cloud.dataproc.v1beta2.GkeClusterConfi" - + "g.NamespacedGkeDeploymentTargetB\003\340A\001\032\205\001\n" - + "\035NamespacedGkeDeploymentTarget\022D\n\022target" - + "_gke_cluster\030\001 \001(\tB(\340A\001\372A\"\n container.go" - + "ogleapis.com/Cluster\022\036\n\021cluster_namespac" - + "e\030\002 \001(\tB\003\340A\001\"\277\001\n\016EndpointConfig\022U\n\nhttp_" - + "ports\030\001 \003(\0132<.google.cloud.dataproc.v1be" - + "ta2.EndpointConfig.HttpPortsEntryB\003\340A\003\022$" - + "\n\027enable_http_port_access\030\002 \001(\010B\003\340A\001\0320\n\016" - + "HttpPortsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\",\n\021AutoscalingConfig\022\027\n\npolicy_ur" - + "i\030\001 \001(\tB\003\340A\001\"4\n\020EncryptionConfig\022 \n\023gce_" - + "pd_kms_key_name\030\001 \001(\tB\003\340A\001\"\251\003\n\020GceCluste" - + "rConfig\022\025\n\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013networ" - + "k_uri\030\002 \001(\tB\003\340A\001\022\033\n\016subnetwork_uri\030\006 \001(\t" - + "B\003\340A\001\022\035\n\020internal_ip_only\030\007 \001(\010B\003\340A\001\022\034\n\017" - + "service_account\030\010 \001(\tB\003\340A\001\022#\n\026service_ac" - + "count_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004tags\030\004 \003(\t\022O\n" - + "\010metadata\030\005 \003(\0132=.google.cloud.dataproc." - + "v1beta2.GceClusterConfig.MetadataEntry\022U" - + "\n\024reservation_affinity\030\013 \001(\01322.google.cl" - + "oud.dataproc.v1beta2.ReservationAffinity" - + "B\003\340A\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\244\003\n\023InstanceGroupConfig\022\032" - + "\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016instance_n" - + "ames\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\tB\003\340A\001\022" - + "\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022C\n\013disk_c" - + "onfig\030\005 \001(\0132).google.cloud.dataproc.v1be" - + "ta2.DiskConfigB\003\340A\001\022\033\n\016is_preemptible\030\006 " - + "\001(\010B\003\340A\003\022T\n\024managed_group_config\030\007 \001(\01321" - + ".google.cloud.dataproc.v1beta2.ManagedGr" - + "oupConfigB\003\340A\003\022K\n\014accelerators\030\010 \003(\01320.g" - + "oogle.cloud.dataproc.v1beta2.Accelerator" - + "ConfigB\003\340A\001\022\030\n\020min_cpu_platform\030\t \001(\t\"c\n" - + "\022ManagedGroupConfig\022#\n\026instance_template" - + "_name\030\001 \001(\tB\003\340A\003\022(\n\033instance_group_manag" - + "er_name\030\002 \001(\tB\003\340A\003\"L\n\021AcceleratorConfig\022" - + "\034\n\024accelerator_type_uri\030\001 \001(\t\022\031\n\021acceler" - + "ator_count\030\002 \001(\005\"a\n\nDiskConfig\022\033\n\016boot_d" - + "isk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_disk_size_gb" - + "\030\001 \001(\005B\003\340A\001\022\026\n\016num_local_ssds\030\002 \001(\005\"\203\002\n\017" - + "LifecycleConfig\0227\n\017idle_delete_ttl\030\001 \001(\013" - + "2\031.google.protobuf.DurationB\003\340A\001\022;\n\020auto" - + "_delete_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031" - + ".google.protobuf.DurationB\003\340A\001H\000\0228\n\017idle" - + "_start_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003B\005\n\003ttl\"X\n\016SecurityConfig\022F\n\017k" - + "erberos_config\030\001 \001(\0132-.google.cloud.data" - + "proc.v1beta2.KerberosConfig\"\220\004\n\016Kerberos" - + "Config\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n\033" - + "root_principal_password_uri\030\002 \001(\tB\003\340A\002\022\030" - + "\n\013kms_key_uri\030\003 \001(\tB\003\340A\002\022\031\n\014keystore_uri" - + "\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(\tB\003\340A\001" - + "\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340A\001\022\035\n\020" - + "key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027truststor" - + "e_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross_realm" - + "_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_realm_t" - + "rust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm_trust" - + "_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_realm_" - + "trust_shared_password_uri\030\014 \001(\tB\003\340A\001\022\033\n\016" - + "kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifetim" - + "e_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"s" - + "\n\030NodeInitializationAction\022\034\n\017executable" - + "_file\030\001 \001(\tB\003\340A\002\0229\n\021execution_timeout\030\002 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\264\003\n\r" - + "ClusterStatus\022F\n\005state\030\001 \001(\01622.google.cl" - + "oud.dataproc.v1beta2.ClusterStatus.State" - + "B\003\340A\003\022\023\n\006detail\030\002 \001(\tB\003\340A\003\0229\n\020state_star" - + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022L\n\010substate\030\004 \001(\01625.google.cloud.d" - + "ataproc.v1beta2.ClusterStatus.SubstateB\003" - + "\340A\003\"\177\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022" - + "\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010DELETING\020\004\022\014\n" - + "\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014" - + "\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020" - + "\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\376\001\n\016S" - + "oftwareConfig\022\032\n\rimage_version\030\001 \001(\tB\003\340A" - + "\001\022V\n\nproperties\030\002 \003(\0132=.google.cloud.dat" - + "aproc.v1beta2.SoftwareConfig.PropertiesE" - + "ntryB\003\340A\001\022E\n\023optional_components\030\003 \003(\0162(" - + ".google.cloud.dataproc.v1beta2.Component" - + "\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\244\002\n\016ClusterMetrics\022T\n\014hdfs_m" - + "etrics\030\001 \003(\0132>.google.cloud.dataproc.v1b" - + "eta2.ClusterMetrics.HdfsMetricsEntry\022T\n\014" - + "yarn_metrics\030\002 \003(\0132>.google.cloud.datapr" - + "oc.v1beta2.ClusterMetrics.YarnMetricsEnt" - + "ry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\233\001\n\024CreateClu" - + "sterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" - + "region\030\003 \001(\tB\003\340A\002\022<\n\007cluster\030\002 \001(\0132&.goo" - + "gle.cloud.dataproc.v1beta2.ClusterB\003\340A\002\022" - + "\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\263\002\n\024UpdateClust" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\010\n\rClusterConfig\022" + + "\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_buck" + + "et\030\002 \001(\tB\003\340A\001\022P\n\022gce_cluster_config\030\010 \001(" + + "\0132/.google.cloud.dataproc.v1beta2.GceClu" + + "sterConfigB\003\340A\001\022N\n\rmaster_config\030\t \001(\01322" + + ".google.cloud.dataproc.v1beta2.InstanceG" + + "roupConfigB\003\340A\001\022N\n\rworker_config\030\n \001(\01322" + + ".google.cloud.dataproc.v1beta2.InstanceG" + + "roupConfigB\003\340A\001\022X\n\027secondary_worker_conf" + + "ig\030\014 \001(\01322.google.cloud.dataproc.v1beta2" + + ".InstanceGroupConfigB\003\340A\001\022K\n\017software_co" + + "nfig\030\r \001(\0132-.google.cloud.dataproc.v1bet" + + "a2.SoftwareConfigB\003\340A\001\022M\n\020lifecycle_conf" + + "ig\030\016 \001(\0132..google.cloud.dataproc.v1beta2" + + ".LifecycleConfigB\003\340A\001\022\\\n\026initialization_" + + "actions\030\013 \003(\01327.google.cloud.dataproc.v1" + + "beta2.NodeInitializationActionB\003\340A\001\022O\n\021e" + + "ncryption_config\030\017 \001(\0132/.google.cloud.da" + + "taproc.v1beta2.EncryptionConfigB\003\340A\001\022Q\n\022" + + "autoscaling_config\030\020 \001(\01320.google.cloud." + + "dataproc.v1beta2.AutoscalingConfigB\003\340A\001\022" + + "K\n\017endpoint_config\030\021 \001(\0132-.google.cloud." + + "dataproc.v1beta2.EndpointConfigB\003\340A\001\022K\n\017" + + "security_config\030\022 \001(\0132-.google.cloud.dat" + + "aproc.v1beta2.SecurityConfigB\003\340A\001\022P\n\022gke" + + "_cluster_config\030\023 \001(\0132/.google.cloud.dat" + + "aproc.v1beta2.GkeClusterConfigB\003\340A\001\"\230\002\n\020" + + "GkeClusterConfig\022|\n namespaced_gke_deplo" + + "yment_target\030\001 \001(\0132M.google.cloud.datapr" + + "oc.v1beta2.GkeClusterConfig.NamespacedGk" + + "eDeploymentTargetB\003\340A\001\032\205\001\n\035NamespacedGke" + + "DeploymentTarget\022D\n\022target_gke_cluster\030\001" + + " \001(\tB(\340A\001\372A\"\n container.googleapis.com/C" + + "luster\022\036\n\021cluster_namespace\030\002 \001(\tB\003\340A\001\"\277" + + "\001\n\016EndpointConfig\022U\n\nhttp_ports\030\001 \003(\0132<." + + "google.cloud.dataproc.v1beta2.EndpointCo" + + "nfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_" + + "port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Auto" + + "scalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4" + + "\n\020EncryptionConfig\022 \n\023gce_pd_kms_key_nam" + + "e\030\001 \001(\tB\003\340A\001\"\251\003\n\020GceClusterConfig\022\025\n\010zon" + + "e_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340" + + "A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020inter" + + "nal_ip_only\030\007 \001(\010B\003\340A\001\022\034\n\017service_accoun" + + "t\030\010 \001(\tB\003\340A\001\022#\n\026service_account_scopes\030\003" + + " \003(\tB\003\340A\001\022\014\n\004tags\030\004 \003(\t\022O\n\010metadata\030\005 \003(" + + "\0132=.google.cloud.dataproc.v1beta2.GceClu" + + "sterConfig.MetadataEntry\022U\n\024reservation_" + + "affinity\030\013 \001(\01322.google.cloud.dataproc.v" + + "1beta2.ReservationAffinityB\003\340A\001\032/\n\rMetad" + + "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\334\004\n\023InstanceGroupConfig\022\032\n\rnum_instance" + + "s\030\001 \001(\005B\003\340A\001\022\033\n\016instance_names\030\002 \003(\tB\003\340A" + + "\003\022\026\n\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machine_typ" + + "e_uri\030\004 \001(\tB\003\340A\001\022C\n\013disk_config\030\005 \001(\0132)." + + "google.cloud.dataproc.v1beta2.DiskConfig" + + "B\003\340A\001\022\033\n\016is_preemptible\030\006 \001(\010B\003\340A\003\022^\n\016pr" + + "eemptibility\030\n \001(\0162A.google.cloud.datapr" + + "oc.v1beta2.InstanceGroupConfig.Preemptib" + + "ilityB\003\340A\001\022T\n\024managed_group_config\030\007 \001(\013" + + "21.google.cloud.dataproc.v1beta2.Managed" + + "GroupConfigB\003\340A\003\022K\n\014accelerators\030\010 \003(\01320" + + ".google.cloud.dataproc.v1beta2.Accelerat" + + "orConfigB\003\340A\001\022\030\n\020min_cpu_platform\030\t \001(\t\"" + + "V\n\016Preemptibility\022\036\n\032PREEMPTIBILITY_UNSP" + + "ECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013PREEMP" + + "TIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026instanc" + + "e_template_name\030\001 \001(\tB\003\340A\003\022(\n\033instance_g" + + "roup_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021Accelera" + + "torConfig\022\034\n\024accelerator_type_uri\030\001 \001(\t\022" + + "\031\n\021accelerator_count\030\002 \001(\005\"a\n\nDiskConfig" + + "\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_di" + + "sk_size_gb\030\001 \001(\005B\003\340A\001\022\026\n\016num_local_ssds\030" + + "\002 \001(\005\"\203\002\n\017LifecycleConfig\0227\n\017idle_delete" + + "_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\022;\n\020auto_delete_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001H\000\0229\n\017auto_delete_t" + + "tl\030\003 \001(\0132\031.google.protobuf.DurationB\003\340A\001" + + "H\000\0228\n\017idle_start_time\030\004 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003B\005\n\003ttl\"X\n\016SecurityC" + + "onfig\022F\n\017kerberos_config\030\001 \001(\0132-.google." + + "cloud.dataproc.v1beta2.KerberosConfig\"\220\004" + + "\n\016KerberosConfig\022\034\n\017enable_kerberos\030\001 \001(" + + "\010B\003\340A\001\022(\n\033root_principal_password_uri\030\002 " + + "\001(\tB\003\340A\002\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\002\022\031\n\014ke" + + "ystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030" + + "\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(" + + "\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n" + + "\027truststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027c" + + "ross_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cro" + + "ss_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_r" + + "ealm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cr" + + "oss_realm_trust_shared_password_uri\030\014 \001(" + + "\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022t" + + "gt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 " + + "\001(\tB\003\340A\001\"s\n\030NodeInitializationAction\022\034\n\017" + + "executable_file\030\001 \001(\tB\003\340A\002\0229\n\021execution_" + + "timeout\030\002 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\"\264\003\n\rClusterStatus\022F\n\005state\030\001 \001(\01622" + + ".google.cloud.dataproc.v1beta2.ClusterSt" + + "atus.StateB\003\340A\003\022\023\n\006detail\030\002 \001(\tB\003\340A\003\0229\n\020" + + "state_start_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022L\n\010substate\030\004 \001(\01625.goog" + + "le.cloud.dataproc.v1beta2.ClusterStatus." + + "SubstateB\003\340A\003\"\177\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010C" + + "REATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010DEL" + + "ETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007S" + + "TOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UN" + + "SPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STAT" + + "US\020\002\"\376\001\n\016SoftwareConfig\022\032\n\rimage_version" + + "\030\001 \001(\tB\003\340A\001\022V\n\nproperties\030\002 \003(\0132=.google" + + ".cloud.dataproc.v1beta2.SoftwareConfig.P" + + "ropertiesEntryB\003\340A\001\022E\n\023optional_componen" + + "ts\030\003 \003(\0162(.google.cloud.dataproc.v1beta2" + + ".Component\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\002\n\016ClusterMetrics" + + "\022T\n\014hdfs_metrics\030\001 \003(\0132>.google.cloud.da" + + "taproc.v1beta2.ClusterMetrics.HdfsMetric" + + "sEntry\022T\n\014yarn_metrics\030\002 \003(\0132>.google.cl" + + "oud.dataproc.v1beta2.ClusterMetrics.Yarn" + + "MetricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\233\001\n" + + "\024CreateClusterRequest\022\027\n\nproject_id\030\001 \001(" + + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022<\n\007cluster\030\002" + + " \001(\0132&.google.cloud.dataproc.v1beta2.Clu" + + "sterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\263\002\n\024U" + + "pdateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB" + + "\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_nam" + + "e\030\002 \001(\tB\003\340A\002\022<\n\007cluster\030\003 \001(\0132&.google.c" + + "loud.dataproc.v1beta2.ClusterB\003\340A\002\022E\n\035gr" + + "aceful_decommission_timeout\030\006 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\0224\n\013update_mask" + + "\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022" + + "\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\223\001\n\024DeleteClust" + "erRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" - + "gion\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340" - + "A\002\022<\n\007cluster\030\003 \001(\0132&.google.cloud.datap" - + "roc.v1beta2.ClusterB\003\340A\002\022E\n\035graceful_dec" - + "ommission_timeout\030\006 \001(\0132\031.google.protobu" - + "f.DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest" - + "_id\030\007 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022" - + "\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\t" - + "B\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014clus" - + "ter_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB" - + "\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014clust" - + "er_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersReque" - + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 " - + "\001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_si" - + "ze\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"s" - + "\n\024ListClustersResponse\022=\n\010clusters\030\001 \003(\013" - + "2&.google.cloud.dataproc.v1beta2.Cluster" - + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026D" - + "iagnoseClusterRequest\022\027\n\nproject_id\030\001 \001(" - + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n" - + "ame\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClusterResults" - + "\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\375\001\n\023Reservatio" - + "nAffinity\022^\n\030consume_reservation_type\030\001 " - + "\001(\01627.google.cloud.dataproc.v1beta2.Rese" - + "rvationAffinity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003" - + "\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE" - + "_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017AN" - + "Y_RESERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020" - + "\0032\347\r\n\021ClusterController\022\221\002\n\rCreateCluste" - + "r\0223.google.cloud.dataproc.v1beta2.Create" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\253\001\202\323\344\223\002C\"8/v1beta2/projects/{proje" - + "ct_id}/regions/{region}/clusters:\007cluste" - + "r\332A\033project_id, region, cluster\312AA\n\007Clus" - + "ter\0226google.cloud.dataproc.v1beta2.Clust" - + "erOperationMetadata\022\273\002\n\rUpdateCluster\0223." - + "google.cloud.dataproc.v1beta2.UpdateClus" - + "terRequest\032\035.google.longrunning.Operatio" - + "n\"\325\001\202\323\344\223\002R2G/v1beta2/projects/{project_i" - + "d}/regions/{region}/clusters/{cluster_na" - + "me}:\007cluster\332A6project_id, region, clust" - + "er_name, cluster, update_mask\312AA\n\007Cluste" - + "r\0226google.cloud.dataproc.v1beta2.Cluster" - + "OperationMetadata\022\252\002\n\rDeleteCluster\0223.go" - + "ogle.cloud.dataproc.v1beta2.DeleteCluste" - + "rRequest\032\035.google.longrunning.Operation\"" - + "\304\001\202\323\344\223\002I*G/v1beta2/projects/{project_id}" - + "/regions/{region}/clusters/{cluster_name" - + "}\332A project_id, region, cluster_name\312AO\n" - + "\025google.protobuf.Empty\0226google.cloud.dat" - + "aproc.v1beta2.ClusterOperationMetadata\022\332" - + "\001\n\nGetCluster\0220.google.cloud.dataproc.v1" - + "beta2.GetClusterRequest\032&.google.cloud.d" - + "ataproc.v1beta2.Cluster\"r\202\323\344\223\002I\022G/v1beta" - + "2/projects/{project_id}/regions/{region}" - + "/clusters/{cluster_name}\332A project_id, r" - + "egion, cluster_name\022\353\001\n\014ListClusters\0222.g" - + "oogle.cloud.dataproc.v1beta2.ListCluster" - + "sRequest\0323.google.cloud.dataproc.v1beta2" - + ".ListClustersResponse\"r\202\323\344\223\002:\0228/v1beta2/" - + "projects/{project_id}/regions/{region}/c" - + "lusters\332A\022project_id, region\332A\032project_i" - + "d, region, filter\022\272\002\n\017DiagnoseCluster\0225." - + "google.cloud.dataproc.v1beta2.DiagnoseCl" - + "usterRequest\032\035.google.longrunning.Operat" - + "ion\"\320\001\202\323\344\223\002U\"P/v1beta2/projects/{project" - + "_id}/regions/{region}/clusters/{cluster_" - + "name}:diagnose:\001*\332A project_id, region, " - + "cluster_name\312AO\n\025google.protobuf.Empty\0226" - + "google.cloud.dataproc.v1beta2.ClusterOpe" - + "rationMetadata\032K\312A\027dataproc.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB{\n!com.google.cloud.dataproc" - + ".v1beta2B\rClustersProtoP\001ZEgoogle.golang" - + ".org/genproto/googleapis/cloud/dataproc/" - + "v1beta2;dataprocb\006proto3" + + "gion\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340" + + "A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest" + + "_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\np" + + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" + + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClu" + + "stersRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022" + + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " + + "\001(\tB\003\340A\001\"s\n\024ListClustersResponse\022=\n\010clus" + + "ters\030\001 \003(\0132&.google.cloud.dataproc.v1bet" + + "a2.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\t" + + "B\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\nproje" + + "ct_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClus" + + "terResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\375\001\n\023" + + "ReservationAffinity\022^\n\030consume_reservati" + + "on_type\030\001 \001(\01627.google.cloud.dataproc.v1" + + "beta2.ReservationAffinity.TypeB\003\340A\001\022\020\n\003k" + + "ey\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATI" + + "ON\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RE" + + "SERVATION\020\0032\347\r\n\021ClusterController\022\221\002\n\rCr" + + "eateCluster\0223.google.cloud.dataproc.v1be" + + "ta2.CreateClusterRequest\032\035.google.longru" + + "nning.Operation\"\253\001\202\323\344\223\002C\"8/v1beta2/proje" + + "cts/{project_id}/regions/{region}/cluste" + + "rs:\007cluster\332A\033project_id, region, cluste" + + "r\312AA\n\007Cluster\0226google.cloud.dataproc.v1b" + + "eta2.ClusterOperationMetadata\022\273\002\n\rUpdate" + + "Cluster\0223.google.cloud.dataproc.v1beta2." + + "UpdateClusterRequest\032\035.google.longrunnin" + + "g.Operation\"\325\001\202\323\344\223\002R2G/v1beta2/projects/" + + "{project_id}/regions/{region}/clusters/{" + + "cluster_name}:\007cluster\332A6project_id, reg" + + "ion, cluster_name, cluster, update_mask\312" + + "AA\n\007Cluster\0226google.cloud.dataproc.v1bet" + + "a2.ClusterOperationMetadata\022\252\002\n\rDeleteCl" + + "uster\0223.google.cloud.dataproc.v1beta2.De" + + "leteClusterRequest\032\035.google.longrunning." + + "Operation\"\304\001\202\323\344\223\002I*G/v1beta2/projects/{p" + + "roject_id}/regions/{region}/clusters/{cl" + + "uster_name}\332A project_id, region, cluste" + + "r_name\312AO\n\025google.protobuf.Empty\0226google" + + ".cloud.dataproc.v1beta2.ClusterOperation" + + "Metadata\022\332\001\n\nGetCluster\0220.google.cloud.d" + + "ataproc.v1beta2.GetClusterRequest\032&.goog" + + "le.cloud.dataproc.v1beta2.Cluster\"r\202\323\344\223\002" + + "I\022G/v1beta2/projects/{project_id}/region" + + "s/{region}/clusters/{cluster_name}\332A pro" + + "ject_id, region, cluster_name\022\353\001\n\014ListCl" + + "usters\0222.google.cloud.dataproc.v1beta2.L" + + "istClustersRequest\0323.google.cloud.datapr" + + "oc.v1beta2.ListClustersResponse\"r\202\323\344\223\002:\022" + + "8/v1beta2/projects/{project_id}/regions/" + + "{region}/clusters\332A\022project_id, region\332A" + + "\032project_id, region, filter\022\272\002\n\017Diagnose" + + "Cluster\0225.google.cloud.dataproc.v1beta2." + + "DiagnoseClusterRequest\032\035.google.longrunn" + + "ing.Operation\"\320\001\202\323\344\223\002U\"P/v1beta2/project" + + "s/{project_id}/regions/{region}/clusters" + + "/{cluster_name}:diagnose:\001*\332A project_id" + + ", region, cluster_name\312AO\n\025google.protob" + + "uf.Empty\0226google.cloud.dataproc.v1beta2." + + "ClusterOperationMetadata\032K\312A\027dataproc.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\275\002\n!com.google.clo" + + "ud.dataproc.v1beta2B\rClustersProtoP\001ZEgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/dataproc/v1beta2;dataproc\352A^\n containe" + + "r.googleapis.com/Cluster\022:projects/{proj" + + "ect}/locations/{location}/clusters/{clus" + + "ter}\352A^\n metastore.googleapis.com/Servic" + + "e\022:projects/{project}/locations/{locatio" + + "n}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -439,6 +449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor, new java.lang.String[] { "ConfigBucket", + "TempBucket", "GceClusterConfig", "MasterConfig", "WorkerConfig", @@ -542,6 +553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineTypeUri", "DiskConfig", "IsPreemptible", + "Preemptibility", "ManagedGroupConfig", "Accelerators", "MinCpuPlatform", @@ -755,6 +767,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java index 2e615875..25c00c02 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java @@ -32,7 +32,7 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Unspecified component.
+   * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
* * COMPONENT_UNSPECIFIED = 0; @@ -48,16 +48,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * ANACONDA = 5; */ ANACONDA(5), - /** - * - * - *
-   * Docker
-   * 
- * - * DOCKER = 13; - */ - DOCKER(13), /** * * @@ -72,12 +62,12 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Flink
+   * HBase.
    * 
* - * FLINK = 14; + * HBASE = 11; */ - FLINK(14), + HBASE(11), /** * * @@ -165,7 +155,7 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Unspecified component.
+   * Unspecified component. Specifying this will cause Cluster creation to fail.
    * 
* * COMPONENT_UNSPECIFIED = 0; @@ -181,16 +171,6 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * ANACONDA = 5; */ public static final int ANACONDA_VALUE = 5; - /** - * - * - *
-   * Docker
-   * 
- * - * DOCKER = 13; - */ - public static final int DOCKER_VALUE = 13; /** * * @@ -205,12 +185,12 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Flink
+   * HBase.
    * 
* - * FLINK = 14; + * HBASE = 11; */ - public static final int FLINK_VALUE = 14; + public static final int HBASE_VALUE = 11; /** * * @@ -320,12 +300,10 @@ public static Component forNumber(int value) { return COMPONENT_UNSPECIFIED; case 5: return ANACONDA; - case 13: - return DOCKER; case 9: return DRUID; - case 14: - return FLINK; + case 11: + return HBASE; case 3: return HIVE_WEBHCAT; case 1: diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java index 0cd35962..d02fb356 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java @@ -304,10 +304,11 @@ public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder() * *
    * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * receives two
+   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -335,10 +336,11 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * receives two
+   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1167,10 +1169,11 @@ public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder()
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * receives two
+     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1197,10 +1200,11 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * receives two
+     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1227,10 +1231,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * receives two
+     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1256,10 +1261,11 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * receives two
+     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1281,10 +1287,11 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
+     * receives two
+     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
index 2b3da599..a800b629 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
@@ -121,10 +121,11 @@ public interface CreateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * receives two
+   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -141,10 +142,11 @@ public interface CreateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
+   * receives two
+   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
index 947de2cc..6e510efc 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
@@ -350,10 +350,11 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -381,10 +382,11 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1231,10 +1233,11 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1261,10 +1264,11 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1291,10 +1295,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1320,10 +1325,11 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1345,10 +1351,11 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
index 33b16e97..2653cb7b 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
@@ -132,10 +132,11 @@ public interface DeleteClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -152,10 +153,11 @@ public interface DeleteClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
index 27e8b2ea..510036eb 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
@@ -434,7 +434,7 @@ public boolean getInternalIpOnly() {
    *
    * 
    * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
    * (also see [VM Data Plane
    * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
    * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -466,7 +466,7 @@ public java.lang.String getServiceAccount() {
    *
    * 
    * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
    * (also see [VM Data Plane
    * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
    * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -1849,7 +1849,7 @@ public Builder clearInternalIpOnly() {
      *
      * 
      * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
      * (also see [VM Data Plane
      * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
      * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -1880,7 +1880,7 @@ public java.lang.String getServiceAccount() {
      *
      * 
      * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
      * (also see [VM Data Plane
      * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
      * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -1911,7 +1911,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      *
      * 
      * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
      * (also see [VM Data Plane
      * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
      * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -1941,7 +1941,7 @@ public Builder setServiceAccount(java.lang.String value) {
      *
      * 
      * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
      * (also see [VM Data Plane
      * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
      * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -1967,7 +1967,7 @@ public Builder clearServiceAccount() {
      *
      * 
      * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
      * (also see [VM Data Plane
      * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
      * used by Dataproc cluster VM instances to access Google Cloud Platform
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
index 1c431378..8867f189 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
@@ -165,7 +165,7 @@ public interface GceClusterConfigOrBuilder
    *
    * 
    * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
    * (also see [VM Data Plane
    * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
    * used by Dataproc cluster VM instances to access Google Cloud Platform
@@ -186,7 +186,7 @@ public interface GceClusterConfigOrBuilder
    *
    * 
    * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc)
+   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
    * (also see [VM Data Plane
    * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
    * used by Dataproc cluster VM instances to access Google Cloud Platform
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java
index c28ec8fe..827fe6e9 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java
@@ -42,6 +42,7 @@ private InstanceGroupConfig() {
     instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     imageUri_ = "";
     machineTypeUri_ = "";
+    preemptibility_ = 0;
     accelerators_ = java.util.Collections.emptyList();
     minCpuPlatform_ = "";
   }
@@ -163,6 +164,13 @@ private InstanceGroupConfig(
               minCpuPlatform_ = s;
               break;
             }
+          case 80:
+            {
+              int rawValue = input.readEnum();
+
+              preemptibility_ = rawValue;
+              break;
+            }
           default:
             {
               if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -203,6 +211,176 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder.class);
   }
 
+  /**
+   *
+   *
+   * 
+   * Controls the use of
+   * [preemptible instances]
+   * (https://cloud.google.com/compute/docs/instances/preemptible)
+   * within the group.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility} + */ + public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Preemptibility is unspecified, the system will choose the
+     * appropriate setting for each instance group.
+     * 
+ * + * PREEMPTIBILITY_UNSPECIFIED = 0; + */ + PREEMPTIBILITY_UNSPECIFIED(0), + /** + * + * + *
+     * Instances are non-preemptible.
+     * This option is allowed for all instance groups and is the only valid
+     * value for Master and Worker instance groups.
+     * 
+ * + * NON_PREEMPTIBLE = 1; + */ + NON_PREEMPTIBLE(1), + /** + * + * + *
+     * Instances are preemptible.
+     * This option is allowed only for secondary worker groups.
+     * 
+ * + * PREEMPTIBLE = 2; + */ + PREEMPTIBLE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Preemptibility is unspecified, the system will choose the
+     * appropriate setting for each instance group.
+     * 
+ * + * PREEMPTIBILITY_UNSPECIFIED = 0; + */ + public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Instances are non-preemptible.
+     * This option is allowed for all instance groups and is the only valid
+     * value for Master and Worker instance groups.
+     * 
+ * + * NON_PREEMPTIBLE = 1; + */ + public static final int NON_PREEMPTIBLE_VALUE = 1; + /** + * + * + *
+     * Instances are preemptible.
+     * This option is allowed only for secondary worker groups.
+     * 
+ * + * PREEMPTIBLE = 2; + */ + public static final int PREEMPTIBLE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Preemptibility 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 Preemptibility forNumber(int value) { + switch (value) { + case 0: + return PREEMPTIBILITY_UNSPECIFIED; + case 1: + return NON_PREEMPTIBLE; + case 2: + return PREEMPTIBLE; + 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 Preemptibility findValueByNumber(int number) { + return Preemptibility.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.dataproc.v1beta2.InstanceGroupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Preemptibility[] VALUES = values(); + + public static Preemptibility 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 Preemptibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility) + } + public static final int NUM_INSTANCES_FIELD_NUMBER = 1; private int numInstances_; /** @@ -498,6 +676,57 @@ public boolean getIsPreemptible() { return isPreemptible_; } + public static final int PREEMPTIBILITY_FIELD_NUMBER = 10; + private int preemptibility_; + /** + * + * + *
+   * Optional. Specifies the preemptibility of the instance group.
+   * The default value for master and worker groups is
+   * `NON_PREEMPTIBLE`. This default cannot be changed.
+   * The default value for secondary instances is
+   * `PREEMPTIBLE`.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preemptibility. + */ + @java.lang.Override + public int getPreemptibilityValue() { + return preemptibility_; + } + /** + * + * + *
+   * Optional. Specifies the preemptibility of the instance group.
+   * The default value for master and worker groups is
+   * `NON_PREEMPTIBLE`. This default cannot be changed.
+   * The default value for secondary instances is
+   * `PREEMPTIBLE`.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preemptibility. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility getPreemptibility() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility result = + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.valueOf( + preemptibility_); + return result == null + ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.UNRECOGNIZED + : result; + } + public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dataproc.v1beta2.ManagedGroupConfig managedGroupConfig_; /** @@ -738,6 +967,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getMinCpuPlatformBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); } + if (preemptibility_ + != com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility + .PREEMPTIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, preemptibility_); + } unknownFields.writeTo(output); } @@ -779,6 +1014,12 @@ public int getSerializedSize() { if (!getMinCpuPlatformBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); } + if (preemptibility_ + != com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility + .PREEMPTIBILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -804,6 +1045,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDiskConfig().equals(other.getDiskConfig())) return false; } if (getIsPreemptible() != other.getIsPreemptible()) return false; + if (preemptibility_ != other.preemptibility_) return false; if (hasManagedGroupConfig() != other.hasManagedGroupConfig()) return false; if (hasManagedGroupConfig()) { if (!getManagedGroupConfig().equals(other.getManagedGroupConfig())) return false; @@ -837,6 +1079,8 @@ public int hashCode() { } hash = (37 * hash) + IS_PREEMPTIBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreemptible()); + hash = (37 * hash) + PREEMPTIBILITY_FIELD_NUMBER; + hash = (53 * hash) + preemptibility_; if (hasManagedGroupConfig()) { hash = (37 * hash) + MANAGED_GROUP_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getManagedGroupConfig().hashCode(); @@ -1012,6 +1256,8 @@ public Builder clear() { } isPreemptible_ = false; + preemptibility_ = 0; + if (managedGroupConfigBuilder_ == null) { managedGroupConfig_ = null; } else { @@ -1068,6 +1314,7 @@ public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig buildPartial() { result.diskConfig_ = diskConfigBuilder_.build(); } result.isPreemptible_ = isPreemptible_; + result.preemptibility_ = preemptibility_; if (managedGroupConfigBuilder_ == null) { result.managedGroupConfig_ = managedGroupConfig_; } else { @@ -1160,6 +1407,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig o if (other.getIsPreemptible() != false) { setIsPreemptible(other.getIsPreemptible()); } + if (other.preemptibility_ != 0) { + setPreemptibilityValue(other.getPreemptibilityValue()); + } if (other.hasManagedGroupConfig()) { mergeManagedGroupConfig(other.getManagedGroupConfig()); } @@ -2029,6 +2279,132 @@ public Builder clearIsPreemptible() { return this; } + private int preemptibility_ = 0; + /** + * + * + *
+     * Optional. Specifies the preemptibility of the instance group.
+     * The default value for master and worker groups is
+     * `NON_PREEMPTIBLE`. This default cannot be changed.
+     * The default value for secondary instances is
+     * `PREEMPTIBLE`.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preemptibility. + */ + @java.lang.Override + public int getPreemptibilityValue() { + return preemptibility_; + } + /** + * + * + *
+     * Optional. Specifies the preemptibility of the instance group.
+     * The default value for master and worker groups is
+     * `NON_PREEMPTIBLE`. This default cannot be changed.
+     * The default value for secondary instances is
+     * `PREEMPTIBLE`.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for preemptibility to set. + * @return This builder for chaining. + */ + public Builder setPreemptibilityValue(int value) { + + preemptibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the preemptibility of the instance group.
+     * The default value for master and worker groups is
+     * `NON_PREEMPTIBLE`. This default cannot be changed.
+     * The default value for secondary instances is
+     * `PREEMPTIBLE`.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preemptibility. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility + getPreemptibility() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility result = + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.valueOf( + preemptibility_); + return result == null + ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Specifies the preemptibility of the instance group.
+     * The default value for master and worker groups is
+     * `NON_PREEMPTIBLE`. This default cannot be changed.
+     * The default value for secondary instances is
+     * `PREEMPTIBLE`.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The preemptibility to set. + * @return This builder for chaining. + */ + public Builder setPreemptibility( + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility value) { + if (value == null) { + throw new NullPointerException(); + } + + preemptibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies the preemptibility of the instance group.
+     * The default value for master and worker groups is
+     * `NON_PREEMPTIBLE`. This default cannot be changed.
+     * The default value for secondary instances is
+     * `PREEMPTIBLE`.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreemptibility() { + + preemptibility_ = 0; + onChanged(); + return this; + } + private com.google.cloud.dataproc.v1beta2.ManagedGroupConfig managedGroupConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.ManagedGroupConfig, diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java index ae533db6..ddc45b5c 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java @@ -237,6 +237,43 @@ public interface InstanceGroupConfigOrBuilder */ boolean getIsPreemptible(); + /** + * + * + *
+   * Optional. Specifies the preemptibility of the instance group.
+   * The default value for master and worker groups is
+   * `NON_PREEMPTIBLE`. This default cannot be changed.
+   * The default value for secondary instances is
+   * `PREEMPTIBLE`.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for preemptibility. + */ + int getPreemptibilityValue(); + /** + * + * + *
+   * Optional. Specifies the preemptibility of the instance group.
+   * The default value for master and worker groups is
+   * `NON_PREEMPTIBLE`. This default cannot be changed.
+   * The default value for secondary instances is
+   * `PREEMPTIBLE`.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preemptibility. + */ + com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility getPreemptibility(); + /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java index 61c31c8b..7aeb0ea3 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java @@ -125,11 +125,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -149,11 +149,11 @@ public java.lang.String getProjectId() { * * *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -562,11 +562,11 @@ public Builder mergeFrom( * * *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -585,11 +585,11 @@ public java.lang.String getProjectId() { * * *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -608,11 +608,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The projectId to set. * @return This builder for chaining. @@ -630,11 +630,11 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -648,11 +648,11 @@ public Builder clearProjectId() { * * *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for projectId to set. * @return This builder for chaining. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java index 46cbbf22..2bc8b9f8 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java @@ -27,11 +27,11 @@ public interface JobReferenceOrBuilder * * *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -40,11 +40,11 @@ public interface JobReferenceOrBuilder * * *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java index 5060ff89..08562a06 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java @@ -299,7 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILURE\020\t\"H" + "\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUBMITTED" + "\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<\n\014JobR" - + "eference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006job" + + "eference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022\023\n\006job" + "_id\030\002 \001(\tB\003\340A\001\"\252\002\n\017YarnApplication\022\021\n\004na" + "me\030\001 \001(\tB\003\340A\003\022H\n\005state\030\002 \001(\01624.google.cl" + "oud.dataproc.v1beta2.YarnApplication.Sta" diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java index e05bf0af..bf98f046 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java @@ -223,8 +223,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
+   * Optional. Flag to indicate whether to Kerberize the cluster (default:
+   * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1488,8 +1488,8 @@ public Builder mergeFrom( * * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1504,8 +1504,8 @@ public boolean getEnableKerberos() { * * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1523,8 +1523,8 @@ public Builder setEnableKerberos(boolean value) { * * *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
+     * Optional. Flag to indicate whether to Kerberize the cluster (default:
+     * false). Set this field to true to enable Kerberos on a cluster.
      * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java index a947cb29..4f30a890 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java @@ -27,8 +27,8 @@ public interface KerberosConfigOrBuilder * * *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
+   * Optional. Flag to indicate whether to Kerberize the cluster (default:
+   * false). Set this field to true to enable Kerberos on a cluster.
    * 
* * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java index 9f24fef7..bbef5c86 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java @@ -275,7 +275,8 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -293,7 +294,8 @@ public boolean hasAutoDeleteTime() { * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -314,7 +316,8 @@ public com.google.protobuf.Timestamp getAutoDeleteTime() { * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -1148,7 +1151,8 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1166,7 +1170,8 @@ public boolean hasAutoDeleteTime() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1194,7 +1199,8 @@ public com.google.protobuf.Timestamp getAutoDeleteTime() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1219,7 +1225,8 @@ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1241,7 +1248,8 @@ public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderFo * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1273,7 +1281,8 @@ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1301,7 +1310,8 @@ public Builder clearAutoDeleteTime() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1316,7 +1326,8 @@ public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -1339,7 +1350,8 @@ public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { * * *
-     * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+     * Optional. The time when cluster will be auto-deleted. (see JSON
+     * representation of
      * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java index 047450d6..65d5a5b5 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java @@ -77,7 +77,8 @@ public interface LifecycleConfigOrBuilder * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -92,7 +93,8 @@ public interface LifecycleConfigOrBuilder * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -107,7 +109,8 @@ public interface LifecycleConfigOrBuilder * * *
-   * Optional. The time when cluster will be auto-deleted. (see JSON representation of
+   * Optional. The time when cluster will be auto-deleted. (see JSON
+   * representation of
    * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java index 84ba3611..59696061 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -23,19 +23,29 @@ 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 */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class LocationName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = + private static final PathTemplate PROJECT_LOCATION = PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; private final String location; + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + public String getProject() { return project; } @@ -52,11 +62,6 @@ public Builder toBuilder() { return new Builder(this); } - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - public static LocationName of(String project, String location) { return newBuilder().setProject(project).setLocation(location).build(); } @@ -70,7 +75,7 @@ public static LocationName parse(String formattedString) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch( + PROJECT_LOCATION.validatedMatch( formattedString, "LocationName.parse: formattedString not in valid format"); return of(matchMap.get("project"), matchMap.get("location")); } @@ -84,7 +89,7 @@ public static List parseList(List formattedStrings) { } public static List toStringList(List values) { - List list = new ArrayList(values.size()); + List list = new ArrayList<>(values.size()); for (LocationName value : values) { if (value == null) { list.add(""); @@ -96,16 +101,21 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); + return PROJECT_LOCATION.matches(formattedString); } + @Override public Map getFieldValuesMap() { if (fieldValuesMap == null) { synchronized (this) { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -119,15 +129,39 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "location", location); + return PROJECT_LOCATION.instantiate("project", project, "location", location); } - /** Builder for LocationName. */ - public static class Builder { + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { private String project; private String location; + protected Builder() {} + public String getProject() { return project; } @@ -146,8 +180,6 @@ public Builder setLocation(String location) { return this; } - private Builder() {} - private Builder(LocationName locationName) { project = locationName.project; location = locationName.location; @@ -157,26 +189,4 @@ public LocationName build() { return new LocationName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof LocationName) { - LocationName that = (LocationName) o; - return (this.project.equals(that.project)) && (this.location.equals(that.location)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - return h; - } } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java index 6cde60d6..2ee2783a 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java @@ -369,8 +369,8 @@ public JobTypeCase getJobTypeCase() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -400,8 +400,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -426,7 +426,15 @@ public com.google.protobuf.ByteString getStepIdBytes() { public static final int HADOOP_JOB_FIELD_NUMBER = 2; /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hadoopJob field is set. */ @@ -435,7 +443,15 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hadoopJob. */ @@ -446,7 +462,17 @@ public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { } return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { if (jobTypeCase_ == 2) { @@ -457,7 +483,15 @@ public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilde public static final int SPARK_JOB_FIELD_NUMBER = 3; /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkJob field is set. */ @@ -466,7 +500,15 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkJob. */ @@ -477,7 +519,17 @@ public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { } return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { if (jobTypeCase_ == 3) { @@ -488,7 +540,15 @@ public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder( public static final int PYSPARK_JOB_FIELD_NUMBER = 4; /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pysparkJob field is set. */ @@ -497,7 +557,15 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pysparkJob. */ @@ -508,7 +576,17 @@ public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { } return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { if (jobTypeCase_ == 4) { @@ -519,7 +597,15 @@ public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuil public static final int HIVE_JOB_FIELD_NUMBER = 5; /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hiveJob field is set. */ @@ -528,7 +614,15 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hiveJob. */ @@ -539,7 +633,17 @@ public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { } return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { if (jobTypeCase_ == 5) { @@ -550,7 +654,15 @@ public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() public static final int PIG_JOB_FIELD_NUMBER = 6; /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pigJob field is set. */ @@ -559,7 +671,15 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pigJob. */ @@ -570,7 +690,17 @@ public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { } return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { if (jobTypeCase_ == 6) { @@ -584,10 +714,12 @@ public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkRJob field is set. */ @@ -599,10 +731,12 @@ public boolean hasSparkRJob() { * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkRJob. */ @@ -617,10 +751,12 @@ public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -632,7 +768,15 @@ public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilde public static final int SPARK_SQL_JOB_FIELD_NUMBER = 7; /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkSqlJob field is set. */ @@ -641,7 +785,15 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkSqlJob. */ @@ -652,7 +804,17 @@ public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { } return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if (jobTypeCase_ == 7) { @@ -666,10 +828,12 @@ public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBu * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the prestoJob field is set. */ @@ -681,10 +845,12 @@ public boolean hasPrestoJob() { * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The prestoJob. */ @@ -699,10 +865,12 @@ public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -1636,8 +1804,8 @@ public Builder clearJobType() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1666,8 +1834,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1696,8 +1864,8 @@ public com.google.protobuf.ByteString getStepIdBytes() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1725,8 +1893,8 @@ public Builder setStepId(java.lang.String value) { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1750,8 +1918,8 @@ public Builder clearStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1779,7 +1947,15 @@ public Builder setStepIdBytes(com.google.protobuf.ByteString value) { com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder> hadoopJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hadoopJob field is set. */ @@ -1788,7 +1964,15 @@ public boolean hasHadoopJob() { return jobTypeCase_ == 2; } /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hadoopJob. */ @@ -1806,7 +1990,17 @@ public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { if (hadoopJobBuilder_ == null) { if (value == null) { @@ -1820,7 +2014,17 @@ public Builder setHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { jobTypeCase_ = 2; return this; } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setHadoopJob( com.google.cloud.dataproc.v1beta2.HadoopJob.Builder builderForValue) { if (hadoopJobBuilder_ == null) { @@ -1832,7 +2036,17 @@ public Builder setHadoopJob( jobTypeCase_ = 2; return this; } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { if (hadoopJobBuilder_ == null) { if (jobTypeCase_ == 2 @@ -1855,7 +2069,17 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) jobTypeCase_ = 2; return this; } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearHadoopJob() { if (hadoopJobBuilder_ == null) { if (jobTypeCase_ == 2) { @@ -1872,11 +2096,31 @@ public Builder clearHadoopJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.HadoopJob.Builder getHadoopJobBuilder() { return getHadoopJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { if ((jobTypeCase_ == 2) && (hadoopJobBuilder_ != null)) { @@ -1888,7 +2132,17 @@ public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilde return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+     * Optional. Job is a Hadoop job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.HadoopJob, com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, @@ -1920,7 +2174,15 @@ public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilde com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder> sparkJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkJob field is set. */ @@ -1929,7 +2191,15 @@ public boolean hasSparkJob() { return jobTypeCase_ == 3; } /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkJob. */ @@ -1947,7 +2217,17 @@ public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { if (sparkJobBuilder_ == null) { if (value == null) { @@ -1961,18 +2241,38 @@ public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { jobTypeCase_ = 3; return this; } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ - public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob.Builder builderForValue) { - if (sparkJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkJobBuilder_.setMessage(builderForValue.build()); + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob.Builder builderForValue) { + if (sparkJobBuilder_ == null) { + jobType_ = builderForValue.build(); + onChanged(); + } else { + sparkJobBuilder_.setMessage(builderForValue.build()); } jobTypeCase_ = 3; return this; } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergeSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { if (sparkJobBuilder_ == null) { if (jobTypeCase_ == 3 @@ -1995,7 +2295,17 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { jobTypeCase_ = 3; return this; } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearSparkJob() { if (sparkJobBuilder_ == null) { if (jobTypeCase_ == 3) { @@ -2012,11 +2322,31 @@ public Builder clearSparkJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.SparkJob.Builder getSparkJobBuilder() { return getSparkJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { if ((jobTypeCase_ == 3) && (sparkJobBuilder_ != null)) { @@ -2028,7 +2358,17 @@ public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder( return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+     * Optional. Job is a Spark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.SparkJob, com.google.cloud.dataproc.v1beta2.SparkJob.Builder, @@ -2060,7 +2400,15 @@ public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder( com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder> pysparkJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pysparkJob field is set. */ @@ -2069,7 +2417,15 @@ public boolean hasPysparkJob() { return jobTypeCase_ == 4; } /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pysparkJob. */ @@ -2087,7 +2443,17 @@ public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setPysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { if (pysparkJobBuilder_ == null) { if (value == null) { @@ -2101,7 +2467,17 @@ public Builder setPysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) jobTypeCase_ = 4; return this; } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setPysparkJob( com.google.cloud.dataproc.v1beta2.PySparkJob.Builder builderForValue) { if (pysparkJobBuilder_ == null) { @@ -2113,7 +2489,17 @@ public Builder setPysparkJob( jobTypeCase_ = 4; return this; } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergePysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { if (pysparkJobBuilder_ == null) { if (jobTypeCase_ == 4 @@ -2136,7 +2522,17 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob valu jobTypeCase_ = 4; return this; } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearPysparkJob() { if (pysparkJobBuilder_ == null) { if (jobTypeCase_ == 4) { @@ -2153,11 +2549,31 @@ public Builder clearPysparkJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.PySparkJob.Builder getPysparkJobBuilder() { return getPysparkJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { if ((jobTypeCase_ == 4) && (pysparkJobBuilder_ != null)) { @@ -2169,7 +2585,17 @@ public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuil return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+     * Optional. Job is a PySpark job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.PySparkJob, com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, @@ -2201,7 +2627,15 @@ public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuil com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder> hiveJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hiveJob field is set. */ @@ -2210,7 +2644,15 @@ public boolean hasHiveJob() { return jobTypeCase_ == 5; } /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hiveJob. */ @@ -2228,7 +2670,17 @@ public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { if (hiveJobBuilder_ == null) { if (value == null) { @@ -2242,7 +2694,17 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { jobTypeCase_ = 5; return this; } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob.Builder builderForValue) { if (hiveJobBuilder_ == null) { jobType_ = builderForValue.build(); @@ -2253,7 +2715,17 @@ public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob.Builder buil jobTypeCase_ = 5; return this; } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergeHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { if (hiveJobBuilder_ == null) { if (jobTypeCase_ == 5 @@ -2276,7 +2748,17 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { jobTypeCase_ = 5; return this; } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearHiveJob() { if (hiveJobBuilder_ == null) { if (jobTypeCase_ == 5) { @@ -2293,11 +2775,31 @@ public Builder clearHiveJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.HiveJob.Builder getHiveJobBuilder() { return getHiveJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { if ((jobTypeCase_ == 5) && (hiveJobBuilder_ != null)) { @@ -2309,7 +2811,17 @@ public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+     * Optional. Job is a Hive job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.HiveJob, com.google.cloud.dataproc.v1beta2.HiveJob.Builder, @@ -2341,7 +2853,15 @@ public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() com.google.cloud.dataproc.v1beta2.PigJobOrBuilder> pigJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pigJob field is set. */ @@ -2350,7 +2870,15 @@ public boolean hasPigJob() { return jobTypeCase_ == 6; } /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pigJob. */ @@ -2368,7 +2896,17 @@ public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { if (pigJobBuilder_ == null) { if (value == null) { @@ -2382,7 +2920,17 @@ public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { jobTypeCase_ = 6; return this; } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob.Builder builderForValue) { if (pigJobBuilder_ == null) { jobType_ = builderForValue.build(); @@ -2393,7 +2941,17 @@ public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob.Builder builde jobTypeCase_ = 6; return this; } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergePigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { if (pigJobBuilder_ == null) { if (jobTypeCase_ == 6 @@ -2416,7 +2974,17 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { jobTypeCase_ = 6; return this; } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearPigJob() { if (pigJobBuilder_ == null) { if (jobTypeCase_ == 6) { @@ -2433,11 +3001,31 @@ public Builder clearPigJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.PigJob.Builder getPigJobBuilder() { return getPigJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { if ((jobTypeCase_ == 6) && (pigJobBuilder_ != null)) { @@ -2449,7 +3037,17 @@ public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+     * Optional. Job is a Pig job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.PigJob, com.google.cloud.dataproc.v1beta2.PigJob.Builder, @@ -2484,10 +3082,12 @@ public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkRJob field is set. */ @@ -2499,10 +3099,12 @@ public boolean hasSparkRJob() { * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkRJob. */ @@ -2524,10 +3126,12 @@ public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -2546,10 +3150,12 @@ public Builder setSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkRJob( com.google.cloud.dataproc.v1beta2.SparkRJob.Builder builderForValue) { @@ -2566,10 +3172,12 @@ public Builder setSparkRJob( * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { if (sparkRJobBuilder_ == null) { @@ -2597,10 +3205,12 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkRJob() { if (sparkRJobBuilder_ == null) { @@ -2622,10 +3232,12 @@ public Builder clearSparkRJob() { * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1beta2.SparkRJob.Builder getSparkRJobBuilder() { return getSparkRJobFieldBuilder().getBuilder(); @@ -2634,10 +3246,12 @@ public com.google.cloud.dataproc.v1beta2.SparkRJob.Builder getSparkRJobBuilder() * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { @@ -2654,10 +3268,12 @@ public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilde * * *
-     * Spark R job
+     * Optional. Job is a SparkR job.
      * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.SparkRJob, @@ -2690,7 +3306,15 @@ public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilde com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder> sparkSqlJobBuilder_; /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkSqlJob field is set. */ @@ -2699,7 +3323,15 @@ public boolean hasSparkSqlJob() { return jobTypeCase_ == 7; } /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkSqlJob. */ @@ -2717,7 +3349,17 @@ public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { if (value == null) { @@ -2731,7 +3373,17 @@ public Builder setSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob valu jobTypeCase_ = 7; return this; } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder setSparkSqlJob( com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder builderForValue) { if (sparkSqlJobBuilder_ == null) { @@ -2743,7 +3395,17 @@ public Builder setSparkSqlJob( jobTypeCase_ = 7; return this; } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { if (sparkSqlJobBuilder_ == null) { if (jobTypeCase_ == 7 @@ -2766,7 +3428,17 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob va jobTypeCase_ = 7; return this; } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public Builder clearSparkSqlJob() { if (sparkSqlJobBuilder_ == null) { if (jobTypeCase_ == 7) { @@ -2783,11 +3455,31 @@ public Builder clearSparkSqlJob() { } return this; } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ public com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder getSparkSqlJobBuilder() { return getSparkSqlJobFieldBuilder().getBuilder(); } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { if ((jobTypeCase_ == 7) && (sparkSqlJobBuilder_ != null)) { @@ -2799,7 +3491,17 @@ public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBu return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); } } - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+     * Optional. Job is a SparkSql job.
+     * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.SparkSqlJob, com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, @@ -2834,10 +3536,12 @@ public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBu * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the prestoJob field is set. */ @@ -2849,10 +3553,12 @@ public boolean hasPrestoJob() { * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The prestoJob. */ @@ -2874,10 +3580,12 @@ public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -2896,10 +3604,12 @@ public Builder setPrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrestoJob( com.google.cloud.dataproc.v1beta2.PrestoJob.Builder builderForValue) { @@ -2916,10 +3626,12 @@ public Builder setPrestoJob( * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { if (prestoJobBuilder_ == null) { @@ -2947,10 +3659,12 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrestoJob() { if (prestoJobBuilder_ == null) { @@ -2972,10 +3686,12 @@ public Builder clearPrestoJob() { * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1beta2.PrestoJob.Builder getPrestoJobBuilder() { return getPrestoJobFieldBuilder().getBuilder(); @@ -2984,10 +3700,12 @@ public com.google.cloud.dataproc.v1beta2.PrestoJob.Builder getPrestoJobBuilder() * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { @@ -3004,10 +3722,12 @@ public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilde * * *
-     * Presto job
+     * Optional. Job is a Presto job.
      * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1beta2.PrestoJob, diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java index 053134b8..12c88a63 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java @@ -31,8 +31,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -51,8 +51,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -65,88 +65,220 @@ public interface OrderedJobOrBuilder com.google.protobuf.ByteString getStepIdBytes(); /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hadoopJob field is set. */ boolean hasHadoopJob(); /** - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hadoopJob. */ com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob(); - /** .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2; */ + /** + * + * + *
+   * Optional. Job is a Hadoop job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder(); /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkJob field is set. */ boolean hasSparkJob(); /** - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkJob. */ com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob(); - /** .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3; */ + /** + * + * + *
+   * Optional. Job is a Spark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder(); /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pysparkJob field is set. */ boolean hasPysparkJob(); /** - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pysparkJob. */ com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob(); - /** .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4; */ + /** + * + * + *
+   * Optional. Job is a PySpark job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder(); /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the hiveJob field is set. */ boolean hasHiveJob(); /** - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The hiveJob. */ com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob(); - /** .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5; */ + /** + * + * + *
+   * Optional. Job is a Hive job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder(); /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pigJob field is set. */ boolean hasPigJob(); /** - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pigJob. */ com.google.cloud.dataproc.v1beta2.PigJob getPigJob(); - /** .google.cloud.dataproc.v1beta2.PigJob pig_job = 6; */ + /** + * + * + *
+   * Optional. Job is a Pig job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder(); /** * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkRJob field is set. */ @@ -155,10 +287,12 @@ public interface OrderedJobOrBuilder * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkRJob. */ @@ -167,36 +301,66 @@ public interface OrderedJobOrBuilder * * *
-   * Spark R job
+   * Optional. Job is a SparkR job.
    * 
* - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11; + * + * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder(); /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sparkSqlJob field is set. */ boolean hasSparkSqlJob(); /** - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sparkSqlJob. */ com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob(); - /** .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7; */ + /** + * + * + *
+   * Optional. Job is a SparkSql job.
+   * 
+ * + * + * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); /** * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the prestoJob field is set. */ @@ -205,10 +369,12 @@ public interface OrderedJobOrBuilder * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The prestoJob. */ @@ -217,10 +383,12 @@ public interface OrderedJobOrBuilder * * *
-   * Presto job
+   * Optional. Job is a Presto job.
    * 
* - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12; + * + * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder(); diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java index 27a1ad60..51182ae3 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java @@ -483,8 +483,8 @@ public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,8 +498,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -513,8 +513,8 @@ public int getFileUrisCount() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -529,8 +529,8 @@ public java.lang.String getFileUris(int index) { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -548,7 +548,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -563,7 +564,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -578,7 +580,8 @@ public int getArchiveUrisCount() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -594,7 +597,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -1996,8 +2000,8 @@ private void ensureFileUrisIsMutable() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2011,8 +2015,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2026,8 +2030,8 @@ public int getFileUrisCount() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2042,8 +2046,8 @@ public java.lang.String getFileUris(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2058,8 +2062,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2081,8 +2085,8 @@ public Builder setFileUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2103,8 +2107,8 @@ public Builder addFileUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2122,8 +2126,8 @@ public Builder addAllFileUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2140,8 +2144,8 @@ public Builder clearFileUris() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Python drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2173,7 +2177,8 @@ private void ensureArchiveUrisIsMutable() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2188,7 +2193,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2203,7 +2209,8 @@ public int getArchiveUrisCount() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2219,7 +2226,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2235,7 +2243,8 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2258,7 +2267,8 @@ public Builder setArchiveUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2280,7 +2290,8 @@ public Builder addArchiveUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2299,7 +2310,8 @@ public Builder addAllArchiveUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2317,7 +2329,8 @@ public Builder clearArchiveUris() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java index 1f52a82e..61921ac5 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java @@ -223,8 +223,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -236,8 +236,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -249,8 +249,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -263,8 +263,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Python drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -278,7 +278,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -291,7 +292,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -304,7 +306,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -318,7 +321,8 @@ public interface PySparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java index 8d814573..3cd8a0cf 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -23,19 +23,29 @@ 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 */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class RegionName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = + private static final PathTemplate PROJECT_REGION = PathTemplate.createWithoutUrlEncoding("projects/{project}/regions/{region}"); - private volatile Map fieldValuesMap; - private final String project; private final String region; + @Deprecated + protected RegionName() { + project = null; + region = null; + } + + private RegionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + region = Preconditions.checkNotNull(builder.getRegion()); + } + public String getProject() { return project; } @@ -52,11 +62,6 @@ public Builder toBuilder() { return new Builder(this); } - private RegionName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - } - public static RegionName of(String project, String region) { return newBuilder().setProject(project).setRegion(region).build(); } @@ -70,7 +75,7 @@ public static RegionName parse(String formattedString) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch( + PROJECT_REGION.validatedMatch( formattedString, "RegionName.parse: formattedString not in valid format"); return of(matchMap.get("project"), matchMap.get("region")); } @@ -84,7 +89,7 @@ public static List parseList(List formattedStrings) { } public static List toStringList(List values) { - List list = new ArrayList(values.size()); + List list = new ArrayList<>(values.size()); for (RegionName value : values) { if (value == null) { list.add(""); @@ -96,16 +101,21 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); + return PROJECT_REGION.matches(formattedString); } + @Override public Map getFieldValuesMap() { if (fieldValuesMap == null) { synchronized (this) { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("region", region); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (region != null) { + fieldMapBuilder.put("region", region); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -119,15 +129,38 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "region", region); + return PROJECT_REGION.instantiate("project", project, "region", region); } - /** Builder for RegionName. */ - public static class Builder { + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + RegionName that = ((RegionName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.region, that.region); + } + return false; + } + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(region); + return h; + } + + /** Builder for projects/{project}/regions/{region}. */ + public static class Builder { private String project; private String region; + protected Builder() {} + public String getProject() { return project; } @@ -146,8 +179,6 @@ public Builder setRegion(String region) { return this; } - private Builder() {} - private Builder(RegionName regionName) { project = regionName.project; region = regionName.region; @@ -157,26 +188,4 @@ public RegionName build() { return new RegionName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof RegionName) { - RegionName that = (RegionName) o; - return (this.project.equals(that.project)) && (this.region.equals(that.region)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= region.hashCode(); - return h; - } } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java index 58e8dbe5..af1211ff 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java @@ -37,15 +37,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n*google/cloud/dataproc/v1beta2/shared.p" + "roto\022\035google.cloud.dataproc.v1beta2\032\034goo" - + "gle/api/annotations.proto*\302\001\n\tComponent\022" + + "gle/api/annotations.proto*\266\001\n\tComponent\022" + "\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005" - + "\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\020\n\014HI" - + "VE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001\022\014\n\010KERBEROS\020\007\022" - + "\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEP" - + "PELIN\020\004\022\r\n\tZOOKEEPER\020\010By\n!com.google.clo" - + "ud.dataproc.v1beta2B\013SharedProtoP\001ZEgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "dataproc/v1beta2;dataprocb\006proto3" + + "\022\t\n\005DRUID\020\t\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003" + + "\022\013\n\007JUPYTER\020\001\022\014\n\010KERBEROS\020\007\022\n\n\006PRESTO\020\006\022" + + "\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZ" + + "OOKEEPER\020\010By\n!com.google.cloud.dataproc." + + "v1beta2B\013SharedProtoP\001ZEgoogle.golang.or" + + "g/genproto/googleapis/cloud/dataproc/v1b" + + "eta2;dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java index 5eaad162..78d40dd8 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java @@ -175,7 +175,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { *
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
    * such as "1.2" (including a subminor version, such as "1.2.29"), or the
    * ["preview"
    * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -204,7 +204,7 @@ public java.lang.String getImageVersion() {
    * 
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
    * such as "1.2" (including a subminor version, such as "1.2.29"), or the
    * ["preview"
    * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -896,7 +896,7 @@ public Builder mergeFrom(
      * 
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
      * such as "1.2" (including a subminor version, such as "1.2.29"), or the
      * ["preview"
      * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -924,7 +924,7 @@ public java.lang.String getImageVersion() {
      * 
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
      * such as "1.2" (including a subminor version, such as "1.2.29"), or the
      * ["preview"
      * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -952,7 +952,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() {
      * 
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
      * such as "1.2" (including a subminor version, such as "1.2.29"), or the
      * ["preview"
      * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -979,7 +979,7 @@ public Builder setImageVersion(java.lang.String value) {
      * 
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
      * such as "1.2" (including a subminor version, such as "1.2.29"), or the
      * ["preview"
      * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -1002,7 +1002,7 @@ public Builder clearImageVersion() {
      * 
      * Optional. The version of software inside the cluster. It must be one of the
      * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
      * such as "1.2" (including a subminor version, such as "1.2.29"), or the
      * ["preview"
      * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
index 6b2f2fef..29b851ca 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
@@ -29,7 +29,7 @@ public interface SoftwareConfigOrBuilder
    * 
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
    * such as "1.2" (including a subminor version, such as "1.2.29"), or the
    * ["preview"
    * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
@@ -47,7 +47,7 @@ public interface SoftwareConfigOrBuilder
    * 
    * Optional. The version of software inside the cluster. It must be one of the
    * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions),
+   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
    * such as "1.2" (including a subminor version, such as "1.2.29"), or the
    * ["preview"
    * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java
index 8dec085f..98672cc5 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java
@@ -523,8 +523,8 @@ public com.google.protobuf.ByteString getJarFileUrisBytes(int index) {
    *
    *
    * 
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -538,8 +538,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -553,8 +553,8 @@ public int getFileUrisCount() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -569,8 +569,8 @@ public java.lang.String getFileUris(int index) { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -588,8 +588,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -604,8 +604,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -620,8 +620,8 @@ public int getArchiveUrisCount() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -637,8 +637,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -2027,8 +2027,8 @@ private void ensureFileUrisIsMutable() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2042,8 +2042,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2057,8 +2057,8 @@ public int getFileUrisCount() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2073,8 +2073,8 @@ public java.lang.String getFileUris(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2089,8 +2089,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2112,8 +2112,8 @@ public Builder setFileUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2134,8 +2134,8 @@ public Builder addFileUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2153,8 +2153,8 @@ public Builder addAllFileUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2171,8 +2171,8 @@ public Builder clearFileUris() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2204,8 +2204,8 @@ private void ensureArchiveUrisIsMutable() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2220,8 +2220,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2236,8 +2236,8 @@ public int getArchiveUrisCount() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2253,8 +2253,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2270,8 +2270,8 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2294,8 +2294,8 @@ public Builder setArchiveUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2317,8 +2317,8 @@ public Builder addArchiveUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2337,8 +2337,8 @@ public Builder addAllArchiveUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -2356,8 +2356,8 @@ public Builder clearArchiveUris() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory
-     * of Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java index 9a524b6e..198adb65 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java @@ -193,8 +193,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -206,8 +206,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -219,8 +219,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -233,8 +233,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * Spark drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -248,8 +248,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -262,8 +262,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -276,8 +276,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -291,8 +291,8 @@ public interface SparkJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory
-   * of Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java index f56d0518..197e281b 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java @@ -324,8 +324,8 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -339,8 +339,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -354,8 +354,8 @@ public int getFileUrisCount() { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -370,8 +370,8 @@ public java.lang.String getFileUris(int index) { * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -389,8 +389,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -405,8 +405,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -421,8 +421,8 @@ public int getArchiveUrisCount() { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -438,8 +438,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -1420,8 +1420,8 @@ private void ensureFileUrisIsMutable() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1435,8 +1435,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1450,8 +1450,8 @@ public int getFileUrisCount() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1466,8 +1466,8 @@ public java.lang.String getFileUris(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1482,8 +1482,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1505,8 +1505,8 @@ public Builder setFileUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1527,8 +1527,8 @@ public Builder addFileUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1546,8 +1546,8 @@ public Builder addAllFileUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1564,8 +1564,8 @@ public Builder clearFileUris() { * * *
-     * Optional. HCFS URIs of files to be copied to the working directory of
-     * R drivers and distributed tasks. Useful for naively parallel tasks.
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor. Useful for naively parallel tasks.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1597,8 +1597,8 @@ private void ensureArchiveUrisIsMutable() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1613,8 +1613,8 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1629,8 +1629,8 @@ public int getArchiveUrisCount() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1646,8 +1646,8 @@ public java.lang.String getArchiveUris(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1663,8 +1663,8 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1687,8 +1687,8 @@ public Builder setArchiveUris(int index, java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1710,8 +1710,8 @@ public Builder addArchiveUris(java.lang.String value) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1730,8 +1730,8 @@ public Builder addAllArchiveUris(java.lang.Iterable values) { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* @@ -1749,8 +1749,8 @@ public Builder clearArchiveUris() { * * *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Spark drivers and tasks. Supported file types:
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
      * .jar, .tar, .tar.gz, .tgz, and .zip.
      * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java index 03957053..574e79f3 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java @@ -113,8 +113,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -126,8 +126,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -139,8 +139,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,8 +153,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of files to be copied to the working directory of
-   * R drivers and distributed tasks. Useful for naively parallel tasks.
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor. Useful for naively parallel tasks.
    * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -168,8 +168,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -182,8 +182,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -196,8 +196,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* @@ -211,8 +211,8 @@ public interface SparkRJobOrBuilder * * *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Spark drivers and tasks. Supported file types:
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
    * .jar, .tar, .tar.gz, .tgz, and .zip.
    * 
* diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java index 8dfffc12..c933d772 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java @@ -229,10 +229,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -278,10 +278,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -327,10 +327,10 @@ public int getFieldsCount() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -377,10 +377,10 @@ public java.lang.String getFields(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1078,10 +1078,10 @@ private void ensureFieldsIsMutable() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1127,10 +1127,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1176,10 +1176,10 @@ public int getFieldsCount() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1226,10 +1226,10 @@ public java.lang.String getFields(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1276,10 +1276,10 @@ public com.google.protobuf.ByteString getFieldsBytes(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1333,10 +1333,10 @@ public Builder setFields(int index, java.lang.String value) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1389,10 +1389,10 @@ public Builder addFields(java.lang.String value) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1442,10 +1442,10 @@ public Builder addAllFields(java.lang.Iterable values) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1494,10 +1494,10 @@ public Builder clearFields() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java index 93c43366..580307f3 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java @@ -67,10 +67,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -114,10 +114,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -161,10 +161,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -209,10 +209,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - * For example, a field path that references the zone field of a workflow - * template's cluster selector would be specified as - * `placement.clusterSelector.zone`. + * A field path is similar in syntax to a + * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + * field path that references the zone field of a workflow template's cluster + * selector would be specified as `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java index 3a55fc4f..ad919a25 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java @@ -680,10 +680,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -711,10 +712,11 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2678,10 +2680,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2708,10 +2711,11 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2738,10 +2742,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2767,10 +2772,11 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2792,10 +2798,11 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
+     * receives two
+     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+     * requests  with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created
+     * and stored in the backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
      * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
index ff07b68c..b3df24ce 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
@@ -411,10 +411,11 @@ public interface UpdateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -431,10 +432,11 @@ public interface UpdateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
+   * receives two
+   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
+   * requests  with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created
+   * and stored in the backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
    * The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java
index 201bff3c..0505db7d 100644
--- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java
+++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java
@@ -200,6 +200,51 @@ private WorkflowMetadata(
               java.lang.String s = input.readStringRequireUtf8();
 
               clusterUuid_ = s;
+              break;
+            }
+          case 98:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (dagTimeout_ != null) {
+                subBuilder = dagTimeout_.toBuilder();
+              }
+              dagTimeout_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagTimeout_);
+                dagTimeout_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 106:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (dagStartTime_ != null) {
+                subBuilder = dagStartTime_.toBuilder();
+              }
+              dagStartTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagStartTime_);
+                dagStartTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 114:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (dagEndTime_ != null) {
+                subBuilder = dagEndTime_.toBuilder();
+              }
+              dagEndTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagEndTime_);
+                dagEndTime_ = subBuilder.buildPartial();
+              }
+
               break;
             }
           default:
@@ -1009,6 +1054,185 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
     }
   }
 
+  public static final int DAG_TIMEOUT_FIELD_NUMBER = 12;
+  private com.google.protobuf.Duration dagTimeout_;
+  /**
+   *
+   *
+   * 
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + @java.lang.Override + public boolean hasDagTimeout() { + return dagTimeout_ != null; + } + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getDagTimeout() { + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + } + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + return getDagTimeout(); + } + + public static final int DAG_START_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp dagStartTime_; + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + @java.lang.Override + public boolean hasDagStartTime() { + return dagStartTime_ != null; + } + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDagStartTime() { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { + return getDagStartTime(); + } + + public static final int DAG_END_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp dagEndTime_; + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + @java.lang.Override + public boolean hasDagEndTime() { + return dagEndTime_ != null; + } + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDagEndTime() { + return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; + } + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { + return getDagEndTime(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1055,6 +1279,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getClusterUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_); } + if (dagTimeout_ != null) { + output.writeMessage(12, getDagTimeout()); + } + if (dagStartTime_ != null) { + output.writeMessage(13, getDagStartTime()); + } + if (dagEndTime_ != null) { + output.writeMessage(14, getDagEndTime()); + } unknownFields.writeTo(output); } @@ -1104,6 +1337,15 @@ public int getSerializedSize() { if (!getClusterUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); } + if (dagTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); + } + if (dagStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); + } + if (dagEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1146,6 +1388,18 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (hasDagTimeout() != other.hasDagTimeout()) return false; + if (hasDagTimeout()) { + if (!getDagTimeout().equals(other.getDagTimeout())) return false; + } + if (hasDagStartTime() != other.hasDagStartTime()) return false; + if (hasDagStartTime()) { + if (!getDagStartTime().equals(other.getDagStartTime())) return false; + } + if (hasDagEndTime() != other.hasDagEndTime()) return false; + if (hasDagEndTime()) { + if (!getDagEndTime().equals(other.getDagEndTime())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1191,6 +1445,18 @@ public int hashCode() { } hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; hash = (53 * hash) + getClusterUuid().hashCode(); + if (hasDagTimeout()) { + hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getDagTimeout().hashCode(); + } + if (hasDagStartTime()) { + hash = (37 * hash) + DAG_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDagStartTime().hashCode(); + } + if (hasDagEndTime()) { + hash = (37 * hash) + DAG_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDagEndTime().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1397,6 +1663,24 @@ public Builder clear() { } clusterUuid_ = ""; + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = null; + } else { + dagStartTime_ = null; + dagStartTimeBuilder_ = null; + } + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = null; + } else { + dagEndTime_ = null; + dagEndTimeBuilder_ = null; + } return this; } @@ -1457,6 +1741,21 @@ public com.google.cloud.dataproc.v1beta2.WorkflowMetadata buildPartial() { result.endTime_ = endTimeBuilder_.build(); } result.clusterUuid_ = clusterUuid_; + if (dagTimeoutBuilder_ == null) { + result.dagTimeout_ = dagTimeout_; + } else { + result.dagTimeout_ = dagTimeoutBuilder_.build(); + } + if (dagStartTimeBuilder_ == null) { + result.dagStartTime_ = dagStartTime_; + } else { + result.dagStartTime_ = dagStartTimeBuilder_.build(); + } + if (dagEndTimeBuilder_ == null) { + result.dagEndTime_ = dagEndTime_; + } else { + result.dagEndTime_ = dagEndTimeBuilder_.build(); + } onBuilt(); return result; } @@ -1541,6 +1840,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowMetadata othe clusterUuid_ = other.clusterUuid_; onChanged(); } + if (other.hasDagTimeout()) { + mergeDagTimeout(other.getDagTimeout()); + } + if (other.hasDagStartTime()) { + mergeDagStartTime(other.getDagStartTime()); + } + if (other.hasDagEndTime()) { + mergeDagEndTime(other.getDagEndTime()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3232,6 +3540,683 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration dagTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + public boolean hasDagTimeout() { + return dagTimeoutBuilder_ != null || dagTimeout_ != null; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + public com.google.protobuf.Duration getDagTimeout() { + if (dagTimeoutBuilder_ == null) { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } else { + return dagTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagTimeout_ = value; + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = builderForValue.build(); + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (dagTimeout_ != null) { + dagTimeout_ = + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + } else { + dagTimeout_ = value; + } + onChanged(); + } else { + dagTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagTimeout() { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + onChanged(); + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { + + onChanged(); + return getDagTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + if (dagTimeoutBuilder_ != null) { + return dagTimeoutBuilder_.getMessageOrBuilder(); + } else { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs.
+     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+     * as a
+     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+     * For example, "1800" = 1800 seconds/30 minutes duration.
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDagTimeoutFieldBuilder() { + if (dagTimeoutBuilder_ == null) { + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); + dagTimeout_ = null; + } + return dagTimeoutBuilder_; + } + + private com.google.protobuf.Timestamp dagStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagStartTimeBuilder_; + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + public boolean hasDagStartTime() { + return dagStartTimeBuilder_ != null || dagStartTime_ != null; + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + public com.google.protobuf.Timestamp getDagStartTime() { + if (dagStartTimeBuilder_ == null) { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } else { + return dagStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagStartTime(com.google.protobuf.Timestamp value) { + if (dagStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagStartTime_ = value; + onChanged(); + } else { + dagStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = builderForValue.build(); + onChanged(); + } else { + dagStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { + if (dagStartTimeBuilder_ == null) { + if (dagStartTime_ != null) { + dagStartTime_ = + com.google.protobuf.Timestamp.newBuilder(dagStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + dagStartTime_ = value; + } + onChanged(); + } else { + dagStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagStartTime() { + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = null; + onChanged(); + } else { + dagStartTime_ = null; + dagStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { + + onChanged(); + return getDagStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { + if (dagStartTimeBuilder_ != null) { + return dagStartTimeBuilder_.getMessageOrBuilder(); + } else { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } + } + /** + * + * + *
+     * Output only. DAG start time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDagStartTimeFieldBuilder() { + if (dagStartTimeBuilder_ == null) { + dagStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagStartTime(), getParentForChildren(), isClean()); + dagStartTime_ = null; + } + return dagStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp dagEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagEndTimeBuilder_; + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + public boolean hasDagEndTime() { + return dagEndTimeBuilder_ != null || dagEndTime_ != null; + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + public com.google.protobuf.Timestamp getDagEndTime() { + if (dagEndTimeBuilder_ == null) { + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; + } else { + return dagEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagEndTime(com.google.protobuf.Timestamp value) { + if (dagEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagEndTime_ = value; + onChanged(); + } else { + dagEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = builderForValue.build(); + onChanged(); + } else { + dagEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { + if (dagEndTimeBuilder_ == null) { + if (dagEndTime_ != null) { + dagEndTime_ = + com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); + } else { + dagEndTime_ = value; + } + onChanged(); + } else { + dagEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagEndTime() { + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = null; + onChanged(); + } else { + dagEndTime_ = null; + dagEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { + + onChanged(); + return getDagEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { + if (dagEndTimeBuilder_ != null) { + return dagEndTimeBuilder_.getMessageOrBuilder(); + } else { + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; + } + } + /** + * + * + *
+     * Output only. DAG end time, which is only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+     * when the DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDagEndTimeFieldBuilder() { + if (dagEndTimeBuilder_ == null) { + dagEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagEndTime(), getParentForChildren(), isClean()); + dagEndTime_ = null; + } + return dagEndTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java index 5b59db24..9630991a 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java @@ -407,4 +407,148 @@ public interface WorkflowMetadataOrBuilder * @return The bytes for clusterUuid. */ com.google.protobuf.ByteString getClusterUuidBytes(); + + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + boolean hasDagTimeout(); + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + com.google.protobuf.Duration getDagTimeout(); + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs.
+   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
+   * as a
+   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
+   * For example, "1800" = 1800 seconds/30 minutes duration.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); + + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + boolean hasDagStartTime(); + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + com.google.protobuf.Timestamp getDagStartTime(); + /** + * + * + *
+   * Output only. DAG start time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + boolean hasDagEndTime(); + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + com.google.protobuf.Timestamp getDagEndTime(); + /** + * + * + *
+   * Output only. DAG end time, which is only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
+   * when the DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java index d794731c..4907f90b 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java @@ -177,6 +177,21 @@ private WorkflowTemplate( extensionRegistry)); break; } + case 82: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (dagTimeout_ != null) { + subBuilder = dagTimeout_.toBuilder(); + } + dagTimeout_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dagTimeout_); + dagTimeout_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -809,6 +824,79 @@ public com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder getParameter return parameters_.get(index); } + public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; + private com.google.protobuf.Duration dagTimeout_; + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + @java.lang.Override + public boolean hasDagTimeout() { + return dagTimeout_ != null; + } + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getDagTimeout() { + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + } + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + return getDagTimeout(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -849,6 +937,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(9, parameters_.get(i)); } + if (dagTimeout_ != null) { + output.writeMessage(10, getDagTimeout()); + } unknownFields.writeTo(output); } @@ -892,6 +983,9 @@ public int getSerializedSize() { for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); } + if (dagTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -926,6 +1020,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getJobsList().equals(other.getJobsList())) return false; if (!getParametersList().equals(other.getParametersList())) return false; + if (hasDagTimeout() != other.hasDagTimeout()) return false; + if (hasDagTimeout()) { + if (!getDagTimeout().equals(other.getDagTimeout())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,6 +1065,10 @@ public int hashCode() { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } + if (hasDagTimeout()) { + hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getDagTimeout().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1172,6 +1274,12 @@ public Builder clear() { } else { parametersBuilder_.clear(); } + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } return this; } @@ -1238,6 +1346,11 @@ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } + if (dagTimeoutBuilder_ == null) { + result.dagTimeout_ = dagTimeout_; + } else { + result.dagTimeout_ = dagTimeoutBuilder_.build(); + } onBuilt(); return result; } @@ -1363,6 +1476,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowTemplate othe } } } + if (other.hasDagTimeout()) { + mergeDagTimeout(other.getDagTimeout()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3318,6 +3434,270 @@ public com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder addParameters return parametersBuilder_; } + private com.google.protobuf.Duration dagTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + public boolean hasDagTimeout() { + return dagTimeoutBuilder_ != null || dagTimeout_ != null; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + public com.google.protobuf.Duration getDagTimeout() { + if (dagTimeoutBuilder_ == null) { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } else { + return dagTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagTimeout_ = value; + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = builderForValue.build(); + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (dagTimeout_ != null) { + dagTimeout_ = + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + } else { + dagTimeout_ = value; + } + onChanged(); + } else { + dagTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDagTimeout() { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + onChanged(); + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { + + onChanged(); + return getDagTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + if (dagTimeoutBuilder_ != null) { + return dagTimeoutBuilder_.getMessageOrBuilder(); + } else { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+     * and "d" suffixes for second, minute, hour, and day duration values,
+     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+     * the workflow is running at the end of the timeout period, any remaining
+     * jobs are cancelled, the workflow is terminated, and if the workflow was
+     * running on a [managed
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDagTimeoutFieldBuilder() { + if (dagTimeoutBuilder_ == null) { + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); + dagTimeout_ = null; + } + return dagTimeoutBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java index 77b3526a..172c2420 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java @@ -5,7 +5,7 @@ * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -26,29 +26,48 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import javax.annotation.Generated; -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class WorkflowTemplateName implements ResourceName { - - @Deprecated - protected WorkflowTemplateName() {} - - private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE = + private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE = + private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}"); - private volatile Map fieldValuesMap; private PathTemplate pathTemplate; private String fixedValue; + private final String project; + private final String region; + private final String workflowTemplate; + private final String location; + + @Deprecated + protected WorkflowTemplateName() { + project = null; + region = null; + workflowTemplate = null; + location = null; + } + + private WorkflowTemplateName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + region = Preconditions.checkNotNull(builder.getRegion()); + workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); + location = null; + pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE; + } - private String project; - private String region; - private String workflowTemplate; - private String location; + private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); + region = null; + pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE; + } public String getProject() { return project; @@ -66,20 +85,6 @@ public String getLocation() { return location; } - private WorkflowTemplateName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE; - } - - private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE; - } - public static Builder newBuilder() { return new Builder(); } @@ -99,7 +104,7 @@ public Builder toBuilder() { } public static WorkflowTemplateName of(String project, String region, String workflowTemplate) { - return newProjectRegionWorkflowTemplateBuilder() + return newBuilder() .setProject(project) .setRegion(region) .setWorkflowTemplate(workflowTemplate) @@ -109,7 +114,7 @@ public static WorkflowTemplateName of(String project, String region, String work @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static WorkflowTemplateName ofProjectRegionWorkflowTemplateName( String project, String region, String workflowTemplate) { - return newProjectRegionWorkflowTemplateBuilder() + return newBuilder() .setProject(project) .setRegion(region) .setWorkflowTemplate(workflowTemplate) @@ -161,18 +166,17 @@ public static WorkflowTemplateName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - if (PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) { - Map matchMap = - PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.match(formattedString); + if (PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString)) { + Map matchMap = PROJECT_REGION_WORKFLOW_TEMPLATE.match(formattedString); return ofProjectRegionWorkflowTemplateName( matchMap.get("project"), matchMap.get("region"), matchMap.get("workflow_template")); - } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString)) { - Map matchMap = - PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.match(formattedString); + } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_WORKFLOW_TEMPLATE.match(formattedString); return ofProjectLocationWorkflowTemplateName( matchMap.get("project"), matchMap.get("location"), matchMap.get("workflow_template")); } - throw new ValidationException("JobName.parse: formattedString not in valid format"); + throw new ValidationException( + "WorkflowTemplateName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -196,8 +200,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString) - || PROJECT_LOCATION_WORKFLOW_TEMPLATE_PATH_TEMPLATE.matches(formattedString); + return PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString) + || PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString); } @Override @@ -234,9 +238,39 @@ public String toString() { return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + WorkflowTemplateName that = ((WorkflowTemplateName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.region, that.region) + && Objects.equals(this.workflowTemplate, that.workflowTemplate) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(region); + h *= 1000003; + h ^= Objects.hashCode(workflowTemplate); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + /** Builder for projects/{project}/regions/{region}/workflowTemplates/{workflow_template}. */ public static class Builder { - private String project; private String region; private String workflowTemplate; @@ -272,9 +306,8 @@ public Builder setWorkflowTemplate(String workflowTemplate) { private Builder(WorkflowTemplateName workflowTemplateName) { Preconditions.checkArgument( - workflowTemplateName.pathTemplate == PROJECT_REGION_WORKFLOW_TEMPLATE_PATH_TEMPLATE, - "toBuilder is only supported when WorkflowTemplateName has the pattern of " - + "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}."); + Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE), + "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); project = workflowTemplateName.project; region = workflowTemplateName.region; workflowTemplate = workflowTemplateName.workflowTemplate; @@ -288,12 +321,11 @@ public WorkflowTemplateName build() { /** Builder for projects/{project}/locations/{location}/workflowTemplates/{workflow_template}. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static class ProjectLocationWorkflowTemplateBuilder { - private String project; private String location; private String workflowTemplate; - private ProjectLocationWorkflowTemplateBuilder() {} + protected ProjectLocationWorkflowTemplateBuilder() {} public String getProject() { return project; @@ -326,35 +358,4 @@ public WorkflowTemplateName build() { return new WorkflowTemplateName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - WorkflowTemplateName that = (WorkflowTemplateName) o; - return (Objects.equals(this.project, that.project)) - && (Objects.equals(this.region, that.region)) - && (Objects.equals(this.workflowTemplate, that.workflowTemplate)) - && (Objects.equals(this.location, that.location)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(region); - h *= 1000003; - h ^= Objects.hashCode(workflowTemplate); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java index 51ed9353..82a75da7 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java @@ -443,4 +443,66 @@ public interface WorkflowTemplateOrBuilder * */ com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder getParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + boolean hasDagTimeout(); + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + com.google.protobuf.Duration getDagTimeout(); + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
+   * and "d" suffixes for second, minute, hour, and day duration values,
+   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
+   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
+   * the workflow is running at the end of the timeout period, any remaining
+   * jobs are cancelled, the workflow is terminated, and if the workflow was
+   * running on a [managed
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java index c9429838..f2c2967d 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java @@ -152,194 +152,201 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032,google/cloud/dataproc/v1beta2/cluste" + "rs.proto\032(google/cloud/dataproc/v1beta2/" + "jobs.proto\032#google/longrunning/operation" - + "s.proto\032\033google/protobuf/empty.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\327\005\n\020Workfl" - + "owTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001\0224\n\013create_t" - + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\022P\n\006labels\030\006 \003(\0132;.googl" - + "e.cloud.dataproc.v1beta2.WorkflowTemplat" - + "e.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007 \001(\01328." - + "google.cloud.dataproc.v1beta2.WorkflowTe" - + "mplatePlacement\0227\n\004jobs\030\010 \003(\0132).google.c" - + "loud.dataproc.v1beta2.OrderedJob\022I\n\npara" - + "meters\030\t \003(\01320.google.cloud.dataproc.v1b" - + "eta2.TemplateParameterB\003\340A\001\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\312\001\352A\306" - + "\001\n(dataproc.googleapis.com/WorkflowTempl" - + "ate\022Iprojects/{project}/regions/{region}" - + "/workflowTemplates/{workflow_template}\022M" - + "projects/{project}/locations/{location}/" - + "workflowTemplates/{workflow_template} \001\"" - + "\276\001\n\031WorkflowTemplatePlacement\022H\n\017managed" - + "_cluster\030\001 \001(\0132-.google.cloud.dataproc.v" - + "1beta2.ManagedClusterH\000\022J\n\020cluster_selec" - + "tor\030\002 \001(\0132..google.cloud.dataproc.v1beta" - + "2.ClusterSelectorH\000B\013\n\tplacement\"\336\001\n\016Man" - + "agedCluster\022\024\n\014cluster_name\030\002 \001(\t\022<\n\006con" - + "fig\030\003 \001(\0132,.google.cloud.dataproc.v1beta" - + "2.ClusterConfig\022I\n\006labels\030\004 \003(\01329.google" - + ".cloud.dataproc.v1beta2.ManagedCluster.L" - + "abelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\017ClusterSelector\022\014\n" - + "\004zone\030\001 \001(\t\022Y\n\016cluster_labels\030\002 \003(\0132A.go" - + "ogle.cloud.dataproc.v1beta2.ClusterSelec" - + "tor.ClusterLabelsEntry\0324\n\022ClusterLabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\220\006\n" - + "\nOrderedJob\022\024\n\007step_id\030\001 \001(\tB\003\340A\002\022>\n\nhad" - + "oop_job\030\002 \001(\0132(.google.cloud.dataproc.v1" - + "beta2.HadoopJobH\000\022<\n\tspark_job\030\003 \001(\0132\'.g" - + "oogle.cloud.dataproc.v1beta2.SparkJobH\000\022" - + "@\n\013pyspark_job\030\004 \001(\0132).google.cloud.data" - + "proc.v1beta2.PySparkJobH\000\022:\n\010hive_job\030\005 " - + "\001(\0132&.google.cloud.dataproc.v1beta2.Hive" - + "JobH\000\0228\n\007pig_job\030\006 \001(\0132%.google.cloud.da" - + "taproc.v1beta2.PigJobH\000\022?\n\013spark_r_job\030\013" - + " \001(\0132(.google.cloud.dataproc.v1beta2.Spa" - + "rkRJobH\000\022C\n\rspark_sql_job\030\007 \001(\0132*.google" - + ".cloud.dataproc.v1beta2.SparkSqlJobH\000\022>\n" + + "s.proto\032\036google/protobuf/duration.proto\032" + + "\033google/protobuf/empty.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\214\006\n\020WorkflowTempla" + + "te\022\017\n\002id\030\002 \001(\tB\003\340A\002\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" + + "\n\007version\030\003 \001(\005B\003\340A\001\0224\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022P\n\006labels\030\006 \003(\0132;.google.cloud." + + "dataproc.v1beta2.WorkflowTemplate.Labels" + + "EntryB\003\340A\001\022K\n\tplacement\030\007 \001(\01328.google.c" + + "loud.dataproc.v1beta2.WorkflowTemplatePl" + + "acement\0227\n\004jobs\030\010 \003(\0132).google.cloud.dat" + + "aproc.v1beta2.OrderedJob\022I\n\nparameters\030\t" + + " \003(\01320.google.cloud.dataproc.v1beta2.Tem" + + "plateParameterB\003\340A\001\0223\n\013dag_timeout\030\n \001(\013" + + "2\031.google.protobuf.DurationB\003\340A\001\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" + + "\312\001\352A\306\001\n(dataproc.googleapis.com/Workflow" + + "Template\022Iprojects/{project}/regions/{re" + + "gion}/workflowTemplates/{workflow_templa" + + "te}\022Mprojects/{project}/locations/{locat" + + "ion}/workflowTemplates/{workflow_templat" + + "e} \001\"\276\001\n\031WorkflowTemplatePlacement\022H\n\017ma" + + "naged_cluster\030\001 \001(\0132-.google.cloud.datap" + + "roc.v1beta2.ManagedClusterH\000\022J\n\020cluster_" + + "selector\030\002 \001(\0132..google.cloud.dataproc.v" + + "1beta2.ClusterSelectorH\000B\013\n\tplacement\"\336\001" + + "\n\016ManagedCluster\022\024\n\014cluster_name\030\002 \001(\t\022<" + + "\n\006config\030\003 \001(\0132,.google.cloud.dataproc.v" + + "1beta2.ClusterConfig\022I\n\006labels\030\004 \003(\01329.g" + + "oogle.cloud.dataproc.v1beta2.ManagedClus" + + "ter.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\017ClusterSelect" + + "or\022\014\n\004zone\030\001 \001(\t\022Y\n\016cluster_labels\030\002 \003(\013" + + "2A.google.cloud.dataproc.v1beta2.Cluster" + + "Selector.ClusterLabelsEntry\0324\n\022ClusterLa" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\270\006\n\nOrderedJob\022\024\n\007step_id\030\001 \001(\tB\003\340A\002\022C" + + "\n\nhadoop_job\030\002 \001(\0132(.google.cloud.datapr" + + "oc.v1beta2.HadoopJobB\003\340A\001H\000\022A\n\tspark_job" + + "\030\003 \001(\0132\'.google.cloud.dataproc.v1beta2.S" + + "parkJobB\003\340A\001H\000\022E\n\013pyspark_job\030\004 \001(\0132).go" + + "ogle.cloud.dataproc.v1beta2.PySparkJobB\003" + + "\340A\001H\000\022?\n\010hive_job\030\005 \001(\0132&.google.cloud.d" + + "ataproc.v1beta2.HiveJobB\003\340A\001H\000\022=\n\007pig_jo" + + "b\030\006 \001(\0132%.google.cloud.dataproc.v1beta2." + + "PigJobB\003\340A\001H\000\022D\n\013spark_r_job\030\013 \001(\0132(.goo" + + "gle.cloud.dataproc.v1beta2.SparkRJobB\003\340A" + + "\001H\000\022H\n\rspark_sql_job\030\007 \001(\0132*.google.clou" + + "d.dataproc.v1beta2.SparkSqlJobB\003\340A\001H\000\022C\n" + "\npresto_job\030\014 \001(\0132(.google.cloud.datapro" - + "c.v1beta2.PrestoJobH\000\022J\n\006labels\030\010 \003(\01325." - + "google.cloud.dataproc.v1beta2.OrderedJob" - + ".LabelsEntryB\003\340A\001\022E\n\nscheduling\030\t \001(\0132,." - + "google.cloud.dataproc.v1beta2.JobSchedul" - + "ingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n \003(\tB" - + "\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\n\n\010job_type\"\216\001\n\021TemplatePara" - + "meter\022\014\n\004name\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\022\023\n\013d" - + "escription\030\003 \001(\t\022F\n\nvalidation\030\004 \001(\01322.g" - + "oogle.cloud.dataproc.v1beta2.ParameterVa" - + "lidation\"\253\001\n\023ParameterValidation\022?\n\005rege" - + "x\030\001 \001(\0132..google.cloud.dataproc.v1beta2." - + "RegexValidationH\000\022@\n\006values\030\002 \001(\0132..goog" - + "le.cloud.dataproc.v1beta2.ValueValidatio" - + "nH\000B\021\n\017validation_type\"\"\n\017RegexValidatio" - + "n\022\017\n\007regexes\030\001 \003(\t\"!\n\017ValueValidation\022\016\n" - + "\006values\030\001 \003(\t\"\310\005\n\020WorkflowMetadata\022\025\n\010te" - + "mplate\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\002 \001(\005B\003\340A\003\022" - + "L\n\016create_cluster\030\003 \001(\0132/.google.cloud.d" - + "ataproc.v1beta2.ClusterOperationB\003\340A\003\022@\n" - + "\005graph\030\004 \001(\0132,.google.cloud.dataproc.v1b" - + "eta2.WorkflowGraphB\003\340A\003\022L\n\016delete_cluste" - + "r\030\005 \001(\0132/.google.cloud.dataproc.v1beta2." - + "ClusterOperationB\003\340A\003\022I\n\005state\030\006 \001(\01625.g" - + "oogle.cloud.dataproc.v1beta2.WorkflowMet" - + "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" - + "\340A\003\022S\n\nparameters\030\010 \003(\0132?.google.cloud.d" - + "ataproc.v1beta2.WorkflowMetadata.Paramet" - + "ersEntry\0223\n\nstart_time\030\t \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014clus" - + "ter_uuid\030\013 \001(\tB\003\340A\003\0321\n\017ParametersEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" - + "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" - + "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" - + "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" - + "one\030\003 \001(\010B\003\340A\003\"P\n\rWorkflowGraph\022?\n\005nodes" - + "\030\001 \003(\0132+.google.cloud.dataproc.v1beta2.W" - + "orkflowNodeB\003\340A\003\"\251\002\n\014WorkflowNode\022\024\n\007ste" - + "p_id\030\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids" - + "\030\002 \003(\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022I\n\005stat" - + "e\030\005 \001(\01625.google.cloud.dataproc.v1beta2." - + "WorkflowNode.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001" - + "(\tB\003\340A\003\"k\n\tNodeState\022\033\n\027NODE_STATUS_UNSP" - + "ECIFIED\020\000\022\013\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007" - + "RUNNING\020\003\022\r\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\251\001\n" - + "\035CreateWorkflowTemplateRequest\022@\n\006parent" - + "\030\001 \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/" - + "WorkflowTemplate\022F\n\010template\030\002 \001(\0132/.goo" - + "gle.cloud.dataproc.v1beta2.WorkflowTempl" - + "ateB\003\340A\002\"m\n\032GetWorkflowTemplateRequest\022>" - + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc.googleapi" - + "s.com/WorkflowTemplate\022\017\n\007version\030\002 \001(\005\"" - + "\274\002\n\"InstantiateWorkflowTemplateRequest\022>" - + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc.googleapi" - + "s.com/WorkflowTemplate\022\017\n\007version\030\002 \001(\005\022" - + "\027\n\013instance_id\030\003 \001(\tB\002\030\001\022\022\n\nrequest_id\030\005" - + " \001(\t\022e\n\nparameters\030\004 \003(\0132Q.google.cloud." - + "dataproc.v1beta2.InstantiateWorkflowTemp" - + "lateRequest.ParametersEntry\0321\n\017Parameter" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\335" - + "\001\n(InstantiateInlineWorkflowTemplateRequ" - + "est\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dataproc.go" - + "ogleapis.com/WorkflowTemplate\022F\n\010templat" - + "e\030\002 \001(\0132/.google.cloud.dataproc.v1beta2." - + "WorkflowTemplateB\003\340A\002\022\023\n\013instance_id\030\003 \001" - + "(\t\022\022\n\nrequest_id\030\004 \001(\t\"g\n\035UpdateWorkflow" - + "TemplateRequest\022F\n\010template\030\001 \001(\0132/.goog" - + "le.cloud.dataproc.v1beta2.WorkflowTempla" - + "teB\003\340A\002\"\207\001\n\034ListWorkflowTemplatesRequest" + + "c.v1beta2.PrestoJobB\003\340A\001H\000\022J\n\006labels\030\010 \003" + + "(\01325.google.cloud.dataproc.v1beta2.Order" + + "edJob.LabelsEntryB\003\340A\001\022E\n\nscheduling\030\t \001" + + "(\0132,.google.cloud.dataproc.v1beta2.JobSc" + + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" + + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\216\001\n\021Templat" + + "eParameter\022\014\n\004name\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t" + + "\022\023\n\013description\030\003 \001(\t\022F\n\nvalidation\030\004 \001(" + + "\01322.google.cloud.dataproc.v1beta2.Parame" + + "terValidation\"\253\001\n\023ParameterValidation\022?\n" + + "\005regex\030\001 \001(\0132..google.cloud.dataproc.v1b" + + "eta2.RegexValidationH\000\022@\n\006values\030\002 \001(\0132." + + ".google.cloud.dataproc.v1beta2.ValueVali" + + "dationH\000B\021\n\017validation_type\"\"\n\017RegexVali" + + "dation\022\017\n\007regexes\030\001 \003(\t\"!\n\017ValueValidati" + + "on\022\016\n\006values\030\001 \003(\t\"\355\006\n\020WorkflowMetadata\022" + + "\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\002 \001(\005B" + + "\003\340A\003\022L\n\016create_cluster\030\003 \001(\0132/.google.cl" + + "oud.dataproc.v1beta2.ClusterOperationB\003\340" + + "A\003\022@\n\005graph\030\004 \001(\0132,.google.cloud.datapro" + + "c.v1beta2.WorkflowGraphB\003\340A\003\022L\n\016delete_c" + + "luster\030\005 \001(\0132/.google.cloud.dataproc.v1b" + + "eta2.ClusterOperationB\003\340A\003\022I\n\005state\030\006 \001(" + + "\01625.google.cloud.dataproc.v1beta2.Workfl" + + "owMetadata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 " + + "\001(\tB\003\340A\003\022S\n\nparameters\030\010 \003(\0132?.google.cl" + + "oud.dataproc.v1beta2.WorkflowMetadata.Pa" + + "rametersEntry\0223\n\nstart_time\030\t \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + + "\014cluster_uuid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030" + + "\014 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0227\n" + + "\016dag_start_time\030\r \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0321\n\017Paramet" + + "ersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"8\n\005State\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007R" + + "UNNING\020\002\022\010\n\004DONE\020\003\"T\n\020ClusterOperation\022\031" + + "\n\014operation_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\t" + + "B\003\340A\003\022\021\n\004done\030\003 \001(\010B\003\340A\003\"P\n\rWorkflowGrap" + + "h\022?\n\005nodes\030\001 \003(\0132+.google.cloud.dataproc" + + ".v1beta2.WorkflowNodeB\003\340A\003\"\251\002\n\014WorkflowN" + + "ode\022\024\n\007step_id\030\001 \001(\tB\003\340A\003\022\"\n\025prerequisit" + + "e_step_ids\030\002 \003(\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340" + + "A\003\022I\n\005state\030\005 \001(\01625.google.cloud.datapro" + + "c.v1beta2.WorkflowNode.NodeStateB\003\340A\003\022\022\n" + + "\005error\030\006 \001(\tB\003\340A\003\"k\n\tNodeState\022\033\n\027NODE_S" + + "TATUS_UNSPECIFIED\020\000\022\013\n\007BLOCKED\020\001\022\014\n\010RUNN" + + "ABLE\020\002\022\013\n\007RUNNING\020\003\022\r\n\tCOMPLETED\020\004\022\n\n\006FA" + + "ILED\020\005\"\251\001\n\035CreateWorkflowTemplateRequest" + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dataproc.googl" - + "eapis.com/WorkflowTemplate\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\206\001\n\035ListWorkfl" - + "owTemplatesResponse\022G\n\ttemplates\030\001 \003(\0132/" - + ".google.cloud.dataproc.v1beta2.WorkflowT" - + "emplateB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340" - + "A\003\"p\n\035DeleteWorkflowTemplateRequest\022>\n\004n" - + "ame\030\001 \001(\tB0\340A\002\372A*\n(dataproc.googleapis.c" - + "om/WorkflowTemplate\022\017\n\007version\030\002 \001(\0052\351\021\n" - + "\027WorkflowTemplateService\022\260\002\n\026CreateWorkf" - + "lowTemplate\022<.google.cloud.dataproc.v1be" - + "ta2.CreateWorkflowTemplateRequest\032/.goog" - + "le.cloud.dataproc.v1beta2.WorkflowTempla" - + "te\"\246\001\202\323\344\223\002\214\001\"8/v1beta2/{parent=projects/" - + "*/regions/*}/workflowTemplates:\010template" - + "ZF\":/v1beta2/{parent=projects/*/location" - + "s/*}/workflowTemplates:\010template\332A\020paren" - + "t, template\022\211\002\n\023GetWorkflowTemplate\0229.go" - + "ogle.cloud.dataproc.v1beta2.GetWorkflowT" - + "emplateRequest\032/.google.cloud.dataproc.v" - + "1beta2.WorkflowTemplate\"\205\001\202\323\344\223\002x\0228/v1bet" - + "a2/{name=projects/*/regions/*/workflowTe" - + "mplates/*}Z<\022:/v1beta2/{name=projects/*/" - + "locations/*/workflowTemplates/*}\332A\004name\022" - + "\345\002\n\033InstantiateWorkflowTemplate\022A.google" - + ".cloud.dataproc.v1beta2.InstantiateWorkf" - + "lowTemplateRequest\032\035.google.longrunning." - + "Operation\"\343\001\202\323\344\223\002\226\001\"D/v1beta2/{name=proj" - + "ects/*/regions/*/workflowTemplates/*}:in" - + "stantiate:\001*ZK\"F/v1beta2/{name=projects/" - + "*/locations/*/workflowTemplates/*}:insta" - + "ntiate:\001*\332A\004name\332A\020name, parameters\312A)\n\025" - + "google.protobuf.Empty\022\020WorkflowMetadata\022" - + "\204\003\n!InstantiateInlineWorkflowTemplate\022G." - + "google.cloud.dataproc.v1beta2.Instantiat" - + "eInlineWorkflowTemplateRequest\032\035.google." - + "longrunning.Operation\"\366\001\202\323\344\223\002\260\001\"L/v1beta" - + "2/{parent=projects/*/locations/*}/workfl" - + "owTemplates:instantiateInline:\010templateZ" - + "V\"J/v1beta2/{parent=projects/*/regions/*" - + "}/workflowTemplates:instantiateInline:\010t" - + "emplate\332A\020parent, template\312A)\n\025google.pr" - + "otobuf.Empty\022\020WorkflowMetadata\022\272\002\n\026Updat" - + "eWorkflowTemplate\022<.google.cloud.datapro" - + "c.v1beta2.UpdateWorkflowTemplateRequest\032" - + "/.google.cloud.dataproc.v1beta2.Workflow" - + "Template\"\260\001\202\323\344\223\002\236\001\032A/v1beta2/{template.n" - + "ame=projects/*/regions/*/workflowTemplat" - + "es/*}:\010templateZO\032C/v1beta2/{template.na" + + "eapis.com/WorkflowTemplate\022F\n\010template\030\002" + + " \001(\0132/.google.cloud.dataproc.v1beta2.Wor" + + "kflowTemplateB\003\340A\002\"m\n\032GetWorkflowTemplat" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc" + + ".googleapis.com/WorkflowTemplate\022\017\n\007vers" + + "ion\030\002 \001(\005\"\274\002\n\"InstantiateWorkflowTemplat" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc" + + ".googleapis.com/WorkflowTemplate\022\017\n\007vers" + + "ion\030\002 \001(\005\022\027\n\013instance_id\030\003 \001(\tB\002\030\001\022\022\n\nre" + + "quest_id\030\005 \001(\t\022e\n\nparameters\030\004 \003(\0132Q.goo" + + "gle.cloud.dataproc.v1beta2.InstantiateWo" + + "rkflowTemplateRequest.ParametersEntry\0321\n" + + "\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\335\001\n(InstantiateInlineWorkflowTe" + + "mplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(d" + + "ataproc.googleapis.com/WorkflowTemplate\022" + + "F\n\010template\030\002 \001(\0132/.google.cloud.datapro" + + "c.v1beta2.WorkflowTemplateB\003\340A\002\022\023\n\013insta" + + "nce_id\030\003 \001(\t\022\022\n\nrequest_id\030\004 \001(\t\"g\n\035Upda" + + "teWorkflowTemplateRequest\022F\n\010template\030\001 " + + "\001(\0132/.google.cloud.dataproc.v1beta2.Work" + + "flowTemplateB\003\340A\002\"\207\001\n\034ListWorkflowTempla" + + "tesRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(data" + + "proc.googleapis.com/WorkflowTemplate\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\206\001\n\035" + + "ListWorkflowTemplatesResponse\022G\n\ttemplat" + + "es\030\001 \003(\0132/.google.cloud.dataproc.v1beta2" + + ".WorkflowTemplateB\003\340A\003\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\003\"p\n\035DeleteWorkflowTemplateRe" + + "quest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc.go" + + "ogleapis.com/WorkflowTemplate\022\017\n\007version" + + "\030\002 \001(\0052\351\021\n\027WorkflowTemplateService\022\260\002\n\026C" + + "reateWorkflowTemplate\022<.google.cloud.dat" + + "aproc.v1beta2.CreateWorkflowTemplateRequ" + + "est\032/.google.cloud.dataproc.v1beta2.Work" + + "flowTemplate\"\246\001\202\323\344\223\002\214\001\"8/v1beta2/{parent" + + "=projects/*/regions/*}/workflowTemplates" + + ":\010templateZF\":/v1beta2/{parent=projects/" + + "*/locations/*}/workflowTemplates:\010templa" + + "te\332A\020parent, template\022\211\002\n\023GetWorkflowTem" + + "plate\0229.google.cloud.dataproc.v1beta2.Ge" + + "tWorkflowTemplateRequest\032/.google.cloud." + + "dataproc.v1beta2.WorkflowTemplate\"\205\001\202\323\344\223" + + "\002x\0228/v1beta2/{name=projects/*/regions/*/" + + "workflowTemplates/*}Z<\022:/v1beta2/{name=p" + + "rojects/*/locations/*/workflowTemplates/" + + "*}\332A\004name\022\345\002\n\033InstantiateWorkflowTemplat" + + "e\022A.google.cloud.dataproc.v1beta2.Instan" + + "tiateWorkflowTemplateRequest\032\035.google.lo" + + "ngrunning.Operation\"\343\001\202\323\344\223\002\226\001\"D/v1beta2/" + + "{name=projects/*/regions/*/workflowTempl" + + "ates/*}:instantiate:\001*ZK\"F/v1beta2/{name" + + "=projects/*/locations/*/workflowTemplate" + + "s/*}:instantiate:\001*\332A\004name\332A\020name, param" + + "eters\312A)\n\025google.protobuf.Empty\022\020Workflo" + + "wMetadata\022\204\003\n!InstantiateInlineWorkflowT" + + "emplate\022G.google.cloud.dataproc.v1beta2." + + "InstantiateInlineWorkflowTemplateRequest" + + "\032\035.google.longrunning.Operation\"\366\001\202\323\344\223\002\260" + + "\001\"L/v1beta2/{parent=projects/*/locations" + + "/*}/workflowTemplates:instantiateInline:" + + "\010templateZV\"J/v1beta2/{parent=projects/*" + + "/regions/*}/workflowTemplates:instantiat" + + "eInline:\010template\332A\020parent, template\312A)\n" + + "\025google.protobuf.Empty\022\020WorkflowMetadata" + + "\022\272\002\n\026UpdateWorkflowTemplate\022<.google.clo" + + "ud.dataproc.v1beta2.UpdateWorkflowTempla" + + "teRequest\032/.google.cloud.dataproc.v1beta" + + "2.WorkflowTemplate\"\260\001\202\323\344\223\002\236\001\032A/v1beta2/{" + + "template.name=projects/*/regions/*/workf" + + "lowTemplates/*}:\010templateZO\032C/v1beta2/{t" + + "emplate.name=projects/*/locations/*/work" + + "flowTemplates/*}:\010template\332A\010template\022\234\002" + + "\n\025ListWorkflowTemplates\022;.google.cloud.d" + + "ataproc.v1beta2.ListWorkflowTemplatesReq" + + "uest\032<.google.cloud.dataproc.v1beta2.Lis" + + "tWorkflowTemplatesResponse\"\207\001\202\323\344\223\002x\0228/v1" + + "beta2/{parent=projects/*/regions/*}/work" + + "flowTemplatesZ<\022:/v1beta2/{parent=projec" + + "ts/*/locations/*}/workflowTemplates\332A\006pa" + + "rent\022\366\001\n\026DeleteWorkflowTemplate\022<.google" + + ".cloud.dataproc.v1beta2.DeleteWorkflowTe" + + "mplateRequest\032\026.google.protobuf.Empty\"\205\001" + + "\202\323\344\223\002x*8/v1beta2/{name=projects/*/region" + + "s/*/workflowTemplates/*}Z<*:/v1beta2/{na" + "me=projects/*/locations/*/workflowTempla" - + "tes/*}:\010template\332A\010template\022\234\002\n\025ListWork" - + "flowTemplates\022;.google.cloud.dataproc.v1" - + "beta2.ListWorkflowTemplatesRequest\032<.goo" - + "gle.cloud.dataproc.v1beta2.ListWorkflowT" - + "emplatesResponse\"\207\001\202\323\344\223\002x\0228/v1beta2/{par" - + "ent=projects/*/regions/*}/workflowTempla" - + "tesZ<\022:/v1beta2/{parent=projects/*/locat" - + "ions/*}/workflowTemplates\332A\006parent\022\366\001\n\026D" - + "eleteWorkflowTemplate\022<.google.cloud.dat" - + "aproc.v1beta2.DeleteWorkflowTemplateRequ" - + "est\032\026.google.protobuf.Empty\"\205\001\202\323\344\223\002x*8/v" - + "1beta2/{name=projects/*/regions/*/workfl" - + "owTemplates/*}Z<*:/v1beta2/{name=project" - + "s/*/locations/*/workflowTemplates/*}\332A\004n" - + "ame\032K\312A\027dataproc.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\204\001\n!com.google.cloud.dataproc.v1beta2B\026" - + "WorkflowTemplatesProtoP\001ZEgoogle.golang." - + "org/genproto/googleapis/cloud/dataproc/v" - + "1beta2;dataprocb\006proto3" + + "tes/*}\332A\004name\032K\312A\027dataproc.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\204\001\n!com.google.cloud.dataproc" + + ".v1beta2B\026WorkflowTemplatesProtoP\001ZEgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "dataproc/v1beta2;dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -352,6 +359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dataproc.v1beta2.ClustersProto.getDescriptor(), com.google.cloud.dataproc.v1beta2.JobsProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -370,6 +378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Placement", "Jobs", "Parameters", + "DagTimeout", }); internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_descriptor = internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor @@ -502,6 +511,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", "ClusterUuid", + "DagTimeout", + "DagStartTime", + "DagEndTime", }); internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_descriptor = internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor @@ -630,6 +642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.dataproc.v1beta2.ClustersProto.getDescriptor(); com.google.cloud.dataproc.v1beta2.JobsProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto index a7d6376b..7601cca8 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto @@ -36,10 +36,12 @@ option (google.api.resource_definition) = { // Cloud Dataproc API. service AutoscalingPolicyService { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates new autoscaling policy. - rpc CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest) returns (AutoscalingPolicy) { + rpc CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest) + returns (AutoscalingPolicy) { option (google.api.http) = { post: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies" body: "policy" @@ -55,7 +57,8 @@ service AutoscalingPolicyService { // // Disabled check for update_mask, because all updates will be full // replacements. - rpc UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest) returns (AutoscalingPolicy) { + rpc UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest) + returns (AutoscalingPolicy) { option (google.api.http) = { put: "/v1beta2/{policy.name=projects/*/locations/*/autoscalingPolicies/*}" body: "policy" @@ -68,7 +71,8 @@ service AutoscalingPolicyService { } // Retrieves autoscaling policy. - rpc GetAutoscalingPolicy(GetAutoscalingPolicyRequest) returns (AutoscalingPolicy) { + rpc GetAutoscalingPolicy(GetAutoscalingPolicyRequest) + returns (AutoscalingPolicy) { option (google.api.http) = { get: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}" additional_bindings { @@ -79,7 +83,8 @@ service AutoscalingPolicyService { } // Lists autoscaling policies in the project. - rpc ListAutoscalingPolicies(ListAutoscalingPoliciesRequest) returns (ListAutoscalingPoliciesResponse) { + rpc ListAutoscalingPolicies(ListAutoscalingPoliciesRequest) + returns (ListAutoscalingPoliciesResponse) { option (google.api.http) = { get: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies" additional_bindings { @@ -91,7 +96,8 @@ service AutoscalingPolicyService { // Deletes an autoscaling policy. It is an error to delete an autoscaling // policy that is in use by one or more clusters. - rpc DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest) returns (google.protobuf.Empty) { + rpc DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}" additional_bindings { @@ -136,22 +142,26 @@ message AutoscalingPolicy { } // Required. Describes how the autoscaler will operate for primary workers. - InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(google.api.field_behavior) = REQUIRED]; + InstanceGroupAutoscalingPolicyConfig worker_config = 4 + [(google.api.field_behavior) = REQUIRED]; // Optional. Describes how the autoscaler will operate for secondary workers. - InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Basic algorithm for autoscaling. message BasicAutoscalingAlgorithm { // Required. YARN autoscaling configuration. - BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED]; + BasicYarnAutoscalingConfig yarn_config = 1 + [(google.api.field_behavior) = REQUIRED]; // Optional. Duration between scaling events. A scaling period starts after // the update operation from the previous event has completed. // // Bounds: [2m, 1d]. Default: 2m. - google.protobuf.Duration cooldown_period = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration cooldown_period = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Basic autoscaling configurations for YARN. @@ -162,22 +172,29 @@ message BasicYarnAutoscalingConfig { // downscaling operations. // // Bounds: [0s, 1d]. - google.protobuf.Duration graceful_decommission_timeout = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Fraction of average pending memory in the last cooldown period - // for which to add workers. A scale-up factor of 1.0 will result in scaling - // up so that there is no pending memory remaining after the update (more - // aggressive scaling). A scale-up factor closer to 0 will result in a smaller - // magnitude of scaling up (less aggressive scaling). + google.protobuf.Duration graceful_decommission_timeout = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Fraction of average YARN pending memory in the last cooldown + // period for which to add workers. A scale-up factor of 1.0 will result in + // scaling up so that there is no pending memory remaining after the update + // (more aggressive scaling). A scale-up factor closer to 0 will result in a + // smaller magnitude of scaling up (less aggressive scaling). See [How + // autoscaling + // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) + // for more information. // // Bounds: [0.0, 1.0]. double scale_up_factor = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Fraction of average pending memory in the last cooldown period - // for which to remove workers. A scale-down factor of 1 will result in + // Required. Fraction of average YARN pending memory in the last cooldown + // period for which to remove workers. A scale-down factor of 1 will result in // scaling down so that there is no available memory remaining after the // update (more aggressive scaling). A scale-down factor of 0 disables // removing workers, which can be beneficial for autoscaling a single job. + // See [How autoscaling + // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) + // for more information. // // Bounds: [0.0, 1.0]. double scale_down_factor = 2 [(google.api.field_behavior) = REQUIRED]; @@ -189,7 +206,8 @@ message BasicYarnAutoscalingConfig { // on any recommended change. // // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_up_min_worker_fraction = 3 [(google.api.field_behavior) = OPTIONAL]; + double scale_up_min_worker_fraction = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Minimum scale-down threshold as a fraction of total cluster size // before scaling occurs. For example, in a 20-worker cluster, a threshold of @@ -198,7 +216,8 @@ message BasicYarnAutoscalingConfig { // on any recommended change. // // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_down_min_worker_fraction = 4 [(google.api.field_behavior) = OPTIONAL]; + double scale_down_min_worker_fraction = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration for the size bounds of an instance group, including its @@ -341,7 +360,8 @@ message ListAutoscalingPoliciesRequest { // A response to a request to list autoscaling policies in a project. message ListAutoscalingPoliciesResponse { // Output only. Autoscaling policies list. - repeated AutoscalingPolicy policies = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated AutoscalingPolicy policies = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This token is included in the response if there are more // results to fetch. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto index 93e6fe79..8af436e0 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto @@ -30,17 +30,27 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta option java_multiple_files = true; option java_outer_classname = "ClustersProto"; option java_package = "com.google.cloud.dataproc.v1beta2"; +option (google.api.resource_definition) = { + type: "container.googleapis.com/Cluster" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}" +}; +option (google.api.resource_definition) = { + type: "metastore.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" +}; // The ClusterControllerService provides methods to manage clusters // of Compute Engine instances. service ClusterController { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { + rpc CreateCluster(CreateClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/projects/{project_id}/regions/{region}/clusters" body: "cluster" @@ -55,12 +65,14 @@ service ClusterController { // Updates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { + rpc UpdateCluster(UpdateClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" body: "cluster" }; - option (google.api.method_signature) = "project_id, region, cluster_name, cluster, update_mask"; + option (google.api.method_signature) = + "project_id, region, cluster_name, cluster, update_mask"; option (google.longrunning.operation_info) = { response_type: "Cluster" metadata_type: "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" @@ -70,7 +82,8 @@ service ClusterController { // Deletes a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). - rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { + rpc DeleteCluster(DeleteClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" }; @@ -105,7 +118,8 @@ service ClusterController { // [Operation.response][google.longrunning.Operation.response] // contains // [Empty][google.protobuf.Empty]. - rpc DiagnoseCluster(DiagnoseClusterRequest) returns (google.longrunning.Operation) { + rpc DiagnoseCluster(DiagnoseClusterRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose" body: "*" @@ -145,7 +159,8 @@ message Cluster { ClusterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous cluster status. - repeated ClusterStatus status_history = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated ClusterStatus status_history = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A cluster UUID (Unique Universal Identifier). Dataproc // generates this value when it creates the cluster. @@ -171,27 +186,41 @@ message ClusterConfig { // bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs + // data, such as Spark and MapReduce history files. If you do not specify a + // temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or + // EU) for your cluster's temp bucket according to the Compute Engine zone + // where your cluster is deployed, and then create and manage this + // project-level, per-location bucket. The default bucket has a TTL of 90 + // days, but you can use any TTL (or none) if you specify a bucket. + string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The shared Compute Engine config settings for // all instances in a cluster. - GceClusterConfig gce_cluster_config = 8 [(google.api.field_behavior) = OPTIONAL]; + GceClusterConfig gce_cluster_config = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // the master instance in a cluster. - InstanceGroupConfig master_config = 9 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig master_config = 9 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // worker instances in a cluster. - InstanceGroupConfig worker_config = 10 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig worker_config = 10 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for // additional worker instances in a cluster. - InstanceGroupConfig secondary_worker_config = 12 [(google.api.field_behavior) = OPTIONAL]; + InstanceGroupConfig secondary_worker_config = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The config settings for software inside the cluster. SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL]; // Optional. The config setting for auto delete cluster schedule. - LifecycleConfig lifecycle_config = 14 [(google.api.field_behavior) = OPTIONAL]; + LifecycleConfig lifecycle_config = 14 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Commands to execute on each node after config is // completed. By default, executables are run on master and all worker nodes. @@ -206,14 +235,17 @@ message ClusterConfig { // else // ... worker specific actions ... // fi - repeated NodeInitializationAction initialization_actions = 11 [(google.api.field_behavior) = OPTIONAL]; + repeated NodeInitializationAction initialization_actions = 11 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Encryption settings for the cluster. - EncryptionConfig encryption_config = 15 [(google.api.field_behavior) = OPTIONAL]; + EncryptionConfig encryption_config = 15 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Autoscaling config for the policy associated with the cluster. // Cluster does not autoscale if this field is unset. - AutoscalingConfig autoscaling_config = 16 [(google.api.field_behavior) = OPTIONAL]; + AutoscalingConfig autoscaling_config = 16 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Port/endpoint configuration for this cluster EndpointConfig endpoint_config = 17 [(google.api.field_behavior) = OPTIONAL]; @@ -221,11 +253,12 @@ message ClusterConfig { // Optional. Security related configuration. SecurityConfig security_config = 18 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Kubernetes Engine config for Dataproc clusters deployed to Kubernetes. - // Setting this is considered mutually exclusive with Compute Engine-based - // options such as `gce_cluster_config`, `master_config`, `worker_config`, - // `secondary_worker_config`, and `autoscaling_config`. - GkeClusterConfig gke_cluster_config = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The Kubernetes Engine config for Dataproc clusters deployed to + // Kubernetes. Setting this is considered mutually exclusive with Compute + // Engine-based options such as `gce_cluster_config`, `master_config`, + // `worker_config`, `secondary_worker_config`, and `autoscaling_config`. + GkeClusterConfig gke_cluster_config = 19 + [(google.api.field_behavior) = OPTIONAL]; } // The GKE config for this cluster. @@ -246,14 +279,16 @@ message GkeClusterConfig { } // Optional. A target for the deployment. - NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(google.api.field_behavior) = OPTIONAL]; + NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 + [(google.api.field_behavior) = OPTIONAL]; } // Endpoint config for this cluster message EndpointConfig { // Output only. The map of port descriptions to URLs. Will only be populated // if enable_http_port_access is true. - map http_ports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + map http_ports = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. If true, enable http access to specific ports on the cluster // from external sources. Defaults to false. @@ -330,7 +365,7 @@ message GceClusterConfig { bool internal_ip_only = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The [Dataproc service - // account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) + // account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) // (also see [VM Data Plane // identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) // used by Dataproc cluster VM instances to access Google Cloud Platform @@ -356,7 +391,8 @@ message GceClusterConfig { // * https://www.googleapis.com/auth/bigtable.admin.table // * https://www.googleapis.com/auth/bigtable.data // * https://www.googleapis.com/auth/devstorage.full_control - repeated string service_account_scopes = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated string service_account_scopes = 3 + [(google.api.field_behavior) = OPTIONAL]; // The Compute Engine tags to add to all instances (see [Tagging // instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). @@ -368,19 +404,42 @@ message GceClusterConfig { map metadata = 5; // Optional. Reservation Affinity for consuming Zonal reservation. - ReservationAffinity reservation_affinity = 11 [(google.api.field_behavior) = OPTIONAL]; + ReservationAffinity reservation_affinity = 11 + [(google.api.field_behavior) = OPTIONAL]; } // The config settings for Compute Engine resources in // an instance group, such as a master or worker group. message InstanceGroupConfig { + // Controls the use of + // [preemptible instances] + // (https://cloud.google.com/compute/docs/instances/preemptible) + // within the group. + enum Preemptibility { + // Preemptibility is unspecified, the system will choose the + // appropriate setting for each instance group. + PREEMPTIBILITY_UNSPECIFIED = 0; + + // Instances are non-preemptible. + // + // This option is allowed for all instance groups and is the only valid + // value for Master and Worker instance groups. + NON_PREEMPTIBLE = 1; + + // Instances are preemptible. + // + // This option is allowed only for secondary worker groups. + PREEMPTIBLE = 2; + } + // Optional. The number of VM instances in the instance group. // For master instance groups, must be set to 1. int32 num_instances = 1 [(google.api.field_behavior) = OPTIONAL]; // Output only. The list of instance names. Dataproc derives the names // from `cluster_name`, `num_instances`, and the instance group. - repeated string instance_names = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string instance_names = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The Compute Engine image resource used for cluster instances. // @@ -424,14 +483,25 @@ message InstanceGroupConfig { // instances. bool is_preemptible = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Specifies the preemptibility of the instance group. + // + // The default value for master and worker groups is + // `NON_PREEMPTIBLE`. This default cannot be changed. + // + // The default value for secondary instances is + // `PREEMPTIBLE`. + Preemptibility preemptibility = 10 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The config for Compute Engine Instance Group // Manager that manages this group. // This is only used for preemptible instance groups. - ManagedGroupConfig managed_group_config = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + ManagedGroupConfig managed_group_config = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The Compute Engine accelerator configuration for these // instances. - repeated AcceleratorConfig accelerators = 8 [(google.api.field_behavior) = OPTIONAL]; + repeated AcceleratorConfig accelerators = 8 + [(google.api.field_behavior) = OPTIONAL]; // Specifies the minimum cpu platform for the Instance Group. // See [Dataproc -> Minimum CPU @@ -446,7 +516,8 @@ message ManagedGroupConfig { string instance_template_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The name of the Instance Group Manager for this group. - string instance_group_manager_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string instance_group_manager_name = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies the type and number of accelerator cards attached to the instances @@ -500,27 +571,32 @@ message LifecycleConfig { // deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON // representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - google.protobuf.Duration idle_delete_ttl = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration idle_delete_ttl = 1 + [(google.api.field_behavior) = OPTIONAL]; // Either the exact time the cluster should be deleted at or // the cluster maximum age. oneof ttl { - // Optional. The time when cluster will be auto-deleted. (see JSON representation of + // Optional. The time when cluster will be auto-deleted. (see JSON + // representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp auto_delete_time = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp auto_delete_time = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The lifetime duration of cluster. The cluster will be // auto-deleted at the end of this period. Minimum value is 10 minutes; // maximum value is 14 days (see JSON representation of // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration auto_delete_ttl = 3 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration auto_delete_ttl = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Output only. The time when cluster became idle (most recent job finished) // and became eligible for deletion due to idleness (see JSON representation // of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp idle_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp idle_start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Security related configuration, including encryption, Kerberos, etc. @@ -531,13 +607,14 @@ message SecurityConfig { // Specifies Kerberos related configuration. message KerberosConfig { - // Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set - // this field to true to enable Kerberos on a cluster. + // Optional. Flag to indicate whether to Kerberize the cluster (default: + // false). Set this field to true to enable Kerberos on a cluster. bool enable_kerberos = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. The Cloud Storage URI of a KMS encrypted file containing the root // principal password. - string root_principal_password_uri = 2 [(google.api.field_behavior) = REQUIRED]; + string root_principal_password_uri = 2 + [(google.api.field_behavior) = REQUIRED]; // Required. The uri of the KMS key used to encrypt various sensitive // files. @@ -578,12 +655,14 @@ message KerberosConfig { // Optional. The admin server (IP or hostname) for the remote trusted realm in // a cross realm trust relationship. - string cross_realm_trust_admin_server = 11 [(google.api.field_behavior) = OPTIONAL]; + string cross_realm_trust_admin_server = 11 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud Storage URI of a KMS encrypted file containing the // shared password between the on-cluster Kerberos realm and the remote // trusted realm, in a cross realm trust relationship. - string cross_realm_trust_shared_password_uri = 12 [(google.api.field_behavior) = OPTIONAL]; + string cross_realm_trust_shared_password_uri = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud Storage URI of a KMS encrypted file containing the // master key of the KDC database. @@ -612,7 +691,8 @@ message NodeInitializationAction { // Cluster creation fails with an explanatory error message (the // name of the executable that caused the error and the exceeded timeout // period) if the executable is not completed at end of the timeout period. - google.protobuf.Duration execution_timeout = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration execution_timeout = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The status of a cluster and its instances. @@ -674,7 +754,8 @@ message ClusterStatus { // Output only. Time when this state was entered (see JSON representation of // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp state_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional state information that includes // status reported by the agent. @@ -685,7 +766,7 @@ message ClusterStatus { message SoftwareConfig { // Optional. The version of software inside the cluster. It must be one of the // supported [Dataproc - // Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), + // Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), // such as "1.2" (including a subminor version, such as "1.2.29"), or the // ["preview" // version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). @@ -741,10 +822,11 @@ message CreateClusterRequest { Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A unique id used to identify the request. If the server - // receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same - // id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend - // is returned. + // receives two + // [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] + // requests with the same id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -778,7 +860,8 @@ message UpdateClusterRequest { // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). // // Only supported on Dataproc image versions 1.2 and higher. - google.protobuf.Duration graceful_decommission_timeout = 6 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration graceful_decommission_timeout = 6 + [(google.api.field_behavior) = OPTIONAL]; // Required. Specifies the path, relative to `Cluster`, of // the field to update. For example, to change the number of workers @@ -840,13 +923,15 @@ message UpdateClusterRequest { // autoscaling policies // // - google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; // Optional. A unique id used to identify the request. If the server - // receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same - // id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // receives two + // [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] + // requests with the same id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). @@ -873,10 +958,11 @@ message DeleteClusterRequest { string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A unique id used to identify the request. If the server - // receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same - // id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. + // receives two + // [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] + // requests with the same id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created + // and stored in the backend is returned. // // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto index 9d9aaae0..c99f6791 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto @@ -224,12 +224,12 @@ message SparkJob { // Spark driver and tasks. repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // Spark drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory - // of Spark drivers and tasks. Supported file types: + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -265,11 +265,12 @@ message PySparkJob { // Python driver and tasks. repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // Python drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory of + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -414,12 +415,12 @@ message SparkRJob { // occur that causes an incorrect job submission. repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // R drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory of - // Spark drivers and tasks. Supported file types: + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -562,9 +563,9 @@ message JobStatus { // Encapsulates the full scoping used to reference a job. message JobReference { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The ID of the Google Cloud Platform project that the job belongs to. If + // specified, must match the request project ID. + string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The job ID, which must be unique within the project. // The ID must contain only letters (a-z, A-Z), numbers (0-9), diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto index 130ae554..ac474aa5 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto @@ -25,20 +25,17 @@ option java_package = "com.google.cloud.dataproc.v1beta2"; // Cluster components that can be activated. enum Component { - // Unspecified component. + // Unspecified component. Specifying this will cause Cluster creation to fail. COMPONENT_UNSPECIFIED = 0; // The Anaconda python distribution. ANACONDA = 5; - // Docker - DOCKER = 13; - // The Druid query engine. DRUID = 9; - // Flink - FLINK = 14; + // HBase. + HBASE = 11; // The Hive Web HCatalog (the REST service for accessing HCatalog). HIVE_WEBHCAT = 3; diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto index e5ef680b..48f2f719 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/dataproc/v1beta2/clusters.proto"; import "google/cloud/dataproc/v1beta2/jobs.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; @@ -35,10 +36,12 @@ option java_package = "com.google.cloud.dataproc.v1beta2"; // Dataproc API. service WorkflowTemplateService { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { post: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" body: "template" @@ -54,7 +57,8 @@ service WorkflowTemplateService { // // Can retrieve previously instantiated template by specifying optional // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { get: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" additional_bindings { @@ -84,7 +88,8 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) { + rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate" body: "*" @@ -104,7 +109,8 @@ service WorkflowTemplateService { // Instantiates a template and begins execution. // // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], + // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], + // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], // [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. // // The returned Operation can be used to track execution of @@ -125,7 +131,9 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) { + rpc InstantiateInlineWorkflowTemplate( + InstantiateInlineWorkflowTemplateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" body: "template" @@ -143,7 +151,8 @@ service WorkflowTemplateService { // Updates (replaces) workflow template. The updated template // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { put: "/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}" body: "template" @@ -156,7 +165,8 @@ service WorkflowTemplateService { } // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) { + rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) + returns (ListWorkflowTemplatesResponse) { option (google.api.http) = { get: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" additional_bindings { @@ -167,7 +177,8 @@ service WorkflowTemplateService { } // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" additional_bindings { @@ -220,10 +231,12 @@ message WorkflowTemplate { int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow @@ -248,7 +261,20 @@ message WorkflowTemplate { // Optional. Template parameters whose values are substituted into the // template. Values for parameters must be provided when the template is // instantiated. - repeated TemplateParameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; + repeated TemplateParameter parameters = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h", + // and "d" suffixes for second, minute, hour, and day duration values, + // respectively. The timeout duration must be from 10 minutes ("10m") to 24 + // hours ("24h" or "1d"). The timer begins when the first job is submitted. If + // the workflow is running at the end of the timeout period, any remaining + // jobs are cancelled, the workflow is terminated, and if the workflow was + // running on a [managed + // cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), + // the cluster is deleted. + google.protobuf.Duration dag_timeout = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies workflow execution target. @@ -316,8 +342,8 @@ message OrderedJob { // // The step id is used as prefix for job id, as job // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other - // steps. + // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] + // field from other steps. // // The id must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). Cannot begin or end with underscore @@ -326,23 +352,29 @@ message OrderedJob { // Required. The job definition. oneof job_type { - HadoopJob hadoop_job = 2; + // Optional. Job is a Hadoop job. + HadoopJob hadoop_job = 2 [(google.api.field_behavior) = OPTIONAL]; - SparkJob spark_job = 3; + // Optional. Job is a Spark job. + SparkJob spark_job = 3 [(google.api.field_behavior) = OPTIONAL]; - PySparkJob pyspark_job = 4; + // Optional. Job is a PySpark job. + PySparkJob pyspark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - HiveJob hive_job = 5; + // Optional. Job is a Hive job. + HiveJob hive_job = 5 [(google.api.field_behavior) = OPTIONAL]; - PigJob pig_job = 6; + // Optional. Job is a Pig job. + PigJob pig_job = 6 [(google.api.field_behavior) = OPTIONAL]; - // Spark R job - SparkRJob spark_r_job = 11; + // Optional. Job is a SparkR job. + SparkRJob spark_r_job = 11 [(google.api.field_behavior) = OPTIONAL]; - SparkSqlJob spark_sql_job = 7; + // Optional. Job is a SparkSql job. + SparkSqlJob spark_sql_job = 7 [(google.api.field_behavior) = OPTIONAL]; - // Presto job - PrestoJob presto_job = 12; + // Optional. Job is a Presto job. + PrestoJob presto_job = 12 [(google.api.field_behavior) = OPTIONAL]; } // Optional. The labels to associate with this job. @@ -362,7 +394,8 @@ message OrderedJob { // Optional. The optional list of prerequisite job step_ids. // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 [(google.api.field_behavior) = OPTIONAL]; + repeated string prerequisite_step_ids = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A configurable parameter that replaces one or more fields in the template. @@ -388,10 +421,10 @@ message TemplateParameter { // A field is allowed to appear in at most one parameter's list of field // paths. // - // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - // For example, a field path that references the zone field of a workflow - // template's cluster selector would be specified as - // `placement.clusterSelector.zone`. + // A field path is similar in syntax to a + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + // field path that references the zone field of a workflow template's cluster + // selector would be specified as `placement.clusterSelector.zone`. // // Also, field paths can reference fields using the following syntax: // @@ -498,13 +531,15 @@ message WorkflowMetadata { int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation create_cluster = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow graph. WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation delete_cluster = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow state. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -516,13 +551,35 @@ message WorkflowMetadata { map parameters = 8; // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The UUID of target cluster. string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timeout duration for the DAG of jobs. + // Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed + // as a + // [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping]. + // For example, "1800" = 1800 seconds/30 minutes duration. + google.protobuf.Duration dag_timeout = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG start time, which is only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] + // when the DAG begins. + google.protobuf.Timestamp dag_start_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG end time, which is only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] + // when the DAG ends. + google.protobuf.Timestamp dag_end_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The cluster operation triggered by a workflow. @@ -571,7 +628,8 @@ message WorkflowNode { string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string prerequisite_step_ids = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The job id; populated after the node enters RUNNING state. string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -753,7 +811,8 @@ message ListWorkflowTemplatesRequest { // A response to a request to list workflow templates in a project. message ListWorkflowTemplatesResponse { // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated WorkflowTemplate templates = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This token is included in the response if there are more // results to fetch. To fetch additional results, provide this value as the diff --git a/synth.metadata b/synth.metadata index b1183f80..c71a146e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,16 +11,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6fd07563a2f1a6785066f5955ad9659a315e4492", - "internalRef": "324941614" + "sha": "6d65640b1fcbdf26ea76cb720de0ac138cae9bed", + "internalRef": "347036369" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6fd07563a2f1a6785066f5955ad9659a315e4492", - "internalRef": "324941614" + "sha": "6d65640b1fcbdf26ea76cb720de0ac138cae9bed", + "internalRef": "347036369" } }, { @@ -170,7 +170,6 @@ "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerSmokeTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java", @@ -183,7 +182,6 @@ "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSmokeTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java", "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java", @@ -406,6 +404,7 @@ "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java", "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java", "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java", + "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java", "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java", "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java", "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java", From 8cefd201130ca11a7f7dc9626ac839b9dd0a0245 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Dec 2020 18:41:09 +0100 Subject: [PATCH 059/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.1.10 (#408) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6225ae9b..95be760b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.10 From 51303a7fef05ec818411900e55dc2283bb45fa25 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Dec 2020 14:37:52 -0800 Subject: [PATCH 060/519] chore(java): remove formatter action Source-Author: Jeff Ching Source-Date: Tue Dec 29 10:50:17 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 6133907dbb3ddab204a17a15d5c53ec0aae9b033 Source-Link: https://github.com/googleapis/synthtool/commit/6133907dbb3ddab204a17a15d5c53ec0aae9b033 --- .github/workflows/formatting.yaml | 25 ------------------------- synth.metadata | 5 ++--- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/formatting.yaml diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml deleted file mode 100644 index 6844407b..00000000 --- a/.github/workflows/formatting.yaml +++ /dev/null @@ -1,25 +0,0 @@ -on: - pull_request_target: - types: [opened, synchronize] - branches: - - master -name: format -jobs: - format-code: - runs-on: ubuntu-latest - env: - ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} - steps: - - uses: actions/checkout@v2 - with: - ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: actions/setup-java@v1 - with: - java-version: 11 - - run: "mvn com.coveo:fmt-maven-plugin:format" - - uses: googleapis/code-suggester@v1 - with: - command: review - pull_number: ${{ github.event.pull_request.number }} - git_dir: '.' diff --git a/synth.metadata b/synth.metadata index c71a146e..0ae6ae28 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "299b16879c3ee155b300fbb53ca4735e580cfe83" + "sha": "8cefd201130ca11a7f7dc9626ac839b9dd0a0245" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3f67ceece7e797a5736a25488aae35405649b90b" + "sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033" } } ], @@ -66,7 +66,6 @@ ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", - ".github/workflows/formatting.yaml", ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", From edfdc537ed3e1b6497c74b6680c821a889f537d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 5 Jan 2021 17:05:11 -0800 Subject: [PATCH 061/519] chore: regenerate README --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 687dd215..fd9247c7 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "d1a9c96a4d86611350c5b07853d419f1ec579b8d" + "sha": "8cefd201130ca11a7f7dc9626ac839b9dd0a0245" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3f67ceece7e797a5736a25488aae35405649b90b" + "sha": "6b026e1443948dcfc0b9e3289c85e940eb70f694" } } ] diff --git a/README.md b/README.md index 4b638422..e4241851 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.1.8 + 1.1.10 ``` From d8c43dabcd4f9c6f1f49813559f33bcbf9cf2b76 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 12:05:27 -0800 Subject: [PATCH 062/519] chore: regenerate README (#417) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index fd9247c7..a6842346 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "8cefd201130ca11a7f7dc9626ac839b9dd0a0245" + "sha": "edfdc537ed3e1b6497c74b6680c821a889f537d4" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6b026e1443948dcfc0b9e3289c85e940eb70f694" + "sha": "a3e990f3545dc8ccd384a75d20ce9cb185ca6a28" } } ] diff --git a/README.md b/README.md index e4241851..cd6c17a3 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,17 @@ If you are using Maven without BOM, add this to your dependencies: ``` -If you are using Gradle, add this to your dependencies +If you are using Gradle 5.x or later, add this to your dependencies +```Groovy +implementation platform('com.google.cloud:libraries-bom:16.2.0') + +compile 'com.google.cloud:google-cloud-dataproc' +``` +If you are using Gradle without BOM, add this to your dependencies ```Groovy compile 'com.google.cloud:google-cloud-dataproc:1.1.10' ``` + If you are using SBT, add this to your dependencies ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.10" From e30b3e044acafa8ce2910269c7643f5089eb13a8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 12:16:04 -0800 Subject: [PATCH 063/519] chore: regenerate README (#419) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-01-07 20:07:44,473 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-07 20:07:45,343 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/e7434495-3730-423d-83c7-6f6499939c8e/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index a6842346..811c512c 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "edfdc537ed3e1b6497c74b6680c821a889f537d4" + "sha": "d8c43dabcd4f9c6f1f49813559f33bcbf9cf2b76" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a3e990f3545dc8ccd384a75d20ce9cb185ca6a28" + "sha": "41a4e56982620d3edcf110d76f4fcdfdec471ac8" } } ] diff --git a/README.md b/README.md index cd6c17a3..4bcb7ea1 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.2.0') +implementation platform('com.google.cloud:libraries-bom:16.2.1') compile 'com.google.cloud:google-cloud-dataproc' ``` From 5f122a802a6a3ee16ea562dfaf70e98b97040aa9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 22:30:24 +0100 Subject: [PATCH 064/519] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#418) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a0305ea6..a8994b04 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From 662a5e3e70c3e804f48e84005d584ccb08530398 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 13:48:19 -0800 Subject: [PATCH 065/519] chore: regenerate README (#420) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-01-07 21:36:39,966 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-07 21:36:40,878 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/fa13a801-346b-4430-9a8d-6be8a75f8cae/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 811c512c..c051c188 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "d8c43dabcd4f9c6f1f49813559f33bcbf9cf2b76" + "sha": "5f122a802a6a3ee16ea562dfaf70e98b97040aa9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "41a4e56982620d3edcf110d76f4fcdfdec471ac8" + "sha": "67f09bf301083798e7220137723222eb00b8f88a" } } ] diff --git a/README.md b/README.md index 4bcb7ea1..95ead72e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From f52fb6bcf78bf83a22c51ca35a42bf495c178186 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 11 Jan 2021 11:34:09 -0800 Subject: [PATCH 066/519] chore: update gapic-generator-java to 0.0.18 (#421) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2931a0a1-7fb5-47f3-a3f9-074deaaf0858/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 350949863 Source-Link: https://github.com/googleapis/googleapis/commit/91e206bcfeaf8948ea03fe3cb1b7616108496cd3 --- .../dataproc/v1/AutoscalingPolicyServiceClient.java | 3 +-- .../cloud/dataproc/v1/ClusterControllerClient.java | 3 +-- .../google/cloud/dataproc/v1/JobControllerClient.java | 3 +-- .../dataproc/v1/WorkflowTemplateServiceClient.java | 3 +-- .../dataproc/v1/stub/AutoscalingPolicyServiceStub.java | 2 +- .../v1/stub/AutoscalingPolicyServiceStubSettings.java | 1 - .../cloud/dataproc/v1/stub/ClusterControllerStub.java | 2 +- .../v1/stub/ClusterControllerStubSettings.java | 1 - .../GrpcAutoscalingPolicyServiceCallableFactory.java | 2 +- .../v1/stub/GrpcClusterControllerCallableFactory.java | 2 +- .../v1/stub/GrpcJobControllerCallableFactory.java | 2 +- .../GrpcWorkflowTemplateServiceCallableFactory.java | 2 +- .../cloud/dataproc/v1/stub/JobControllerStub.java | 2 +- .../dataproc/v1/stub/JobControllerStubSettings.java | 1 - .../dataproc/v1/stub/WorkflowTemplateServiceStub.java | 2 +- .../v1/stub/WorkflowTemplateServiceStubSettings.java | 1 - .../v1beta2/AutoscalingPolicyServiceClient.java | 2 +- .../v1beta2/AutoscalingPolicyServiceSettings.java | 1 + .../dataproc/v1beta2/ClusterControllerClient.java | 2 +- .../dataproc/v1beta2/ClusterControllerSettings.java | 1 + .../cloud/dataproc/v1beta2/JobControllerClient.java | 2 +- .../cloud/dataproc/v1beta2/JobControllerSettings.java | 1 + .../v1beta2/WorkflowTemplateServiceClient.java | 2 +- .../v1beta2/WorkflowTemplateServiceSettings.java | 1 + .../v1beta2/stub/AutoscalingPolicyServiceStub.java | 4 +++- .../dataproc/v1beta2/stub/ClusterControllerStub.java | 4 +++- .../GrpcAutoscalingPolicyServiceCallableFactory.java | 4 +++- .../v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java | 2 ++ .../stub/GrpcClusterControllerCallableFactory.java | 4 +++- .../v1beta2/stub/GrpcClusterControllerStub.java | 2 ++ .../v1beta2/stub/GrpcJobControllerCallableFactory.java | 4 +++- .../dataproc/v1beta2/stub/GrpcJobControllerStub.java | 2 ++ .../GrpcWorkflowTemplateServiceCallableFactory.java | 4 +++- .../v1beta2/stub/GrpcWorkflowTemplateServiceStub.java | 2 ++ .../cloud/dataproc/v1beta2/stub/JobControllerStub.java | 4 +++- .../v1beta2/stub/WorkflowTemplateServiceStub.java | 4 +++- synth.metadata | 10 +++++----- 37 files changed, 57 insertions(+), 37 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index d85ce9d3..592055c5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -91,8 +91,7 @@ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceClient implements BackgroundResource { private final AutoscalingPolicyServiceSettings settings; private final AutoscalingPolicyServiceStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index ae80f94e..8975f551 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -97,8 +97,7 @@ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class ClusterControllerClient implements BackgroundResource { private final ClusterControllerSettings settings; private final ClusterControllerStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index ca6eb688..191b06ef 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -92,8 +92,7 @@ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class JobControllerClient implements BackgroundResource { private final JobControllerSettings settings; private final JobControllerStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 33a0e328..4d4a16cc 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -96,8 +96,7 @@ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceClient implements BackgroundResource { private final WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java index af1cf752..4d3137a7 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java @@ -36,7 +36,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { public UnaryCallable diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 58e91c6b..2ef752ad 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -90,7 +90,6 @@ * autoscalingPolicyServiceSettingsBuilder.build(); * }

*/ -@BetaApi @Generated("by gapic-generator-java") public class AutoscalingPolicyServiceStubSettings extends StubSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java index a746102a..c8a161b4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java @@ -42,7 +42,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public abstract class ClusterControllerStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 3fc25f55..d2c3ce62 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -98,7 +98,6 @@ * clusterControllerSettingsBuilder.build(); * }

*/ -@BetaApi @Generated("by gapic-generator-java") public class ClusterControllerStubSettings extends StubSettings { /** The default scopes of the service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index 57de9885..6fc11a53 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -41,7 +41,7 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class GrpcAutoscalingPolicyServiceCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java index 030721a0..63442c5c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java @@ -41,7 +41,7 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class GrpcClusterControllerCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java index 285d96d3..86be4daa 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java @@ -41,7 +41,7 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class GrpcJobControllerCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java index 4da9fd42..2b8ccb12 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -41,7 +41,7 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java index 550b6d22..fccb5d88 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java @@ -41,7 +41,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public abstract class JobControllerStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 5790e2a4..6f4fb9c2 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -96,7 +96,6 @@ * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build(); * }

*/ -@BetaApi @Generated("by gapic-generator-java") public class JobControllerStubSettings extends StubSettings { /** The default scopes of the service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java index 685c0e26..42792163 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java @@ -42,7 +42,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public abstract class WorkflowTemplateServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 1ec3503f..00bcf4bc 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -98,7 +98,6 @@ * workflowTemplateServiceSettingsBuilder.build(); * }

*/ -@BetaApi @Generated("by gapic-generator-java") public class WorkflowTemplateServiceStubSettings extends StubSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java index 56678fac..4de0c395 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java @@ -93,7 +93,7 @@ *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class AutoscalingPolicyServiceClient implements BackgroundResource { private final AutoscalingPolicyServiceSettings settings; private final AutoscalingPolicyServiceStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java index bf828d37..aeda5508 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java @@ -68,6 +68,7 @@ * autoscalingPolicyServiceSettingsBuilder.build(); * }

*/ +@BetaApi @Generated("by gapic-generator-java") public class AutoscalingPolicyServiceSettings extends ClientSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index 079cb1fd..cebe3f20 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -98,7 +98,7 @@ *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class ClusterControllerClient implements BackgroundResource { private final ClusterControllerSettings settings; private final ClusterControllerStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java index de87b9c1..3825a940 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java @@ -69,6 +69,7 @@ * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build(); * }

*/ +@BetaApi @Generated("by gapic-generator-java") public class ClusterControllerSettings extends ClientSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 2dcf938f..9e0fefd5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -93,7 +93,7 @@ *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class JobControllerClient implements BackgroundResource { private final JobControllerSettings settings; private final JobControllerStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java index 01c5dea3..28d2e477 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java @@ -68,6 +68,7 @@ * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build(); * }

*/ +@BetaApi @Generated("by gapic-generator-java") public class JobControllerSettings extends ClientSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 7a14f842..7d13b92a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -97,7 +97,7 @@ *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class WorkflowTemplateServiceClient implements BackgroundResource { private final WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java index 0d0f9e3c..469ddf36 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java @@ -70,6 +70,7 @@ * workflowTemplateServiceSettingsBuilder.build(); * }

*/ +@BetaApi @Generated("by gapic-generator-java") public class WorkflowTemplateServiceSettings extends ClientSettings { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java index 454054a2..2592bd13 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy; @@ -36,7 +37,8 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { public UnaryCallable diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java index 849645b3..7da04316 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -41,7 +42,8 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public abstract class ClusterControllerStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index 01934f14..b47b3603 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -16,6 +16,7 @@ package com.google.cloud.dataproc.v1beta2.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; @@ -41,7 +42,8 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public class GrpcAutoscalingPolicyServiceCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index ca60a8ac..bba98775 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; +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; @@ -48,6 +49,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ +@BetaApi @Generated("by gapic-generator-java") public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { private static final MethodDescriptor diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java index e4fdf302..6fe8a4dd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java @@ -16,6 +16,7 @@ package com.google.cloud.dataproc.v1beta2.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; @@ -41,7 +42,8 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public class GrpcClusterControllerCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index 4e6f5b17..ca14592f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; +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; @@ -52,6 +53,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ +@BetaApi @Generated("by gapic-generator-java") public class GrpcClusterControllerStub extends ClusterControllerStub { private static final MethodDescriptor diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java index c2f5415a..572294a2 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java @@ -16,6 +16,7 @@ package com.google.cloud.dataproc.v1beta2.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; @@ -41,7 +42,8 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public class GrpcJobControllerCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index 832b083f..856e85e0 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; +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; @@ -52,6 +53,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ +@BetaApi @Generated("by gapic-generator-java") public class GrpcJobControllerStub extends JobControllerStub { private static final MethodDescriptor submitJobMethodDescriptor = diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java index 1fa7f756..6fd2cb9c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -16,6 +16,7 @@ package com.google.cloud.dataproc.v1beta2.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; @@ -41,7 +42,8 @@ * *

This class is for advanced usage. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceCallableFactory implements GrpcStubCallableFactory { @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index d8700040..782e459e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; +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; @@ -53,6 +54,7 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ +@BetaApi @Generated("by gapic-generator-java") public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { private static final MethodDescriptor diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java index ce86e52f..33542906 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -41,7 +42,8 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public abstract class JobControllerStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java index 5ccf9daf..b117802a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -42,7 +43,8 @@ * *

This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") +@BetaApi +@Generated("by gapic-generator-java") public abstract class WorkflowTemplateServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { diff --git a/synth.metadata b/synth.metadata index 0ae6ae28..5fd83163 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "8cefd201130ca11a7f7dc9626ac839b9dd0a0245" + "sha": "662a5e3e70c3e804f48e84005d584ccb08530398" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6d65640b1fcbdf26ea76cb720de0ac138cae9bed", - "internalRef": "347036369" + "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", + "internalRef": "350949863" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6d65640b1fcbdf26ea76cb720de0ac138cae9bed", - "internalRef": "347036369" + "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", + "internalRef": "350949863" } }, { From 69a78e192957f1c00943be624ce29fe2e2d333cb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Jan 2021 01:48:26 +0100 Subject: [PATCH 067/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 (#422) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.17.0` -> `0.18.0` | --- ### Release Notes

googleapis/java-shared-dependencies ### [`v0.18.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0180-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0171v0180-2021-01-13) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.1...v0.18.0) ##### Features - add commons-codec to dependencyManagement ([#​251](https://www.github.com/googleapis/java-shared-dependencies/issues/251)) ([4ee990d](https://www.github.com/googleapis/java-shared-dependencies/commit/4ee990d79c9207c81155f6ee9279308a2d4d0f9d)) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.5.0 ([#​247](https://www.github.com/googleapis/java-shared-dependencies/issues/247)) ([37c0861](https://www.github.com/googleapis/java-shared-dependencies/commit/37c0861cfb89f13a0682c98067c633b13b30b827)) ##### [0.17.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.17.0...v0.17.1) (2021-01-12) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.1 ([#​245](https://www.github.com/googleapis/java-shared-dependencies/issues/245)) ([5ffc8a0](https://www.github.com/googleapis/java-shared-dependencies/commit/5ffc8a0d173ea0222ac9610ece0ac2aeb1d17f27)) ### [`v0.17.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0171-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0170v0171-2021-01-12) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.0...v0.17.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ae698113..b8db4f54 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.17.0 + 0.18.0 pom import From 00b227ffdf52bf169975922148c8ff0b2be6b7e0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:32:27 +0100 Subject: [PATCH 068/519] test(deps): update dependency com.google.truth:truth to v1.1.2 (#424) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 95be760b..ee5d3a80 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -47,7 +47,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 39cbc9e3..6d46a0e0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -45,7 +45,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a8994b04..280db837 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 5c2c2a64fdb30be5ef939e81c82c3d0d860eb448 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 25 Jan 2021 10:26:13 -0800 Subject: [PATCH 069/519] chore: regenerate README (#425) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-01-25 17:37:36,955 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-25 17:37:37,907 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c45f7e8e-8f06-499c-acc7-05c0d6e9a7a3/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index c051c188..d20064cc 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "5f122a802a6a3ee16ea562dfaf70e98b97040aa9" + "sha": "00b227ffdf52bf169975922148c8ff0b2be6b7e0" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "67f09bf301083798e7220137723222eb00b8f88a" + "sha": "b259489b06b25f399768b74b8baa943991f38ea7" } } ] diff --git a/README.md b/README.md index 95ead72e..af2c6b27 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.2.1') +implementation platform('com.google.cloud:libraries-bom:16.3.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 46076d03be8a5bc73e7f9e690a3bd0839d6b3dc4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Jan 2021 19:32:13 +0100 Subject: [PATCH 070/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.10.0 (#426) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.9.4` -> `0.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/compatibility-slim/0.9.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/confidence-slim/0.9.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.10.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0100-httpswwwgithubcomgoogleapisjava-shared-configcomparev094v0100-2021-01-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.9.4...v0.10.0) ##### Features - adding pom profile to generate docfx yml from javadoc ([#​213](https://www.github.com/googleapis/java-shared-config/issues/213)) ([3527c47](https://www.github.com/googleapis/java-shared-config/commit/3527c47ff413d415f87fccca84358da2c837841d)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.39 ([#​209](https://www.github.com/googleapis/java-shared-config/issues/209)) ([fb53922](https://www.github.com/googleapis/java-shared-config/commit/fb539226d407001822a56c7fff792922cd85d1fe)) ##### [0.9.4](https://www.github.com/googleapis/java-shared-config/compare/v0.9.3...v0.9.4) (2020-10-21) ##### Documentation - Latest for Cloud-RAD ([#​199](https://www.github.com/googleapis/java-shared-config/issues/199)) ([34712af](https://www.github.com/googleapis/java-shared-config/commit/34712afac58aa0d148f0843026b3ff770ee030c2)) ##### [0.9.3](https://www.github.com/googleapis/java-shared-config/compare/v0.9.2...v0.9.3) (2020-10-15) ##### Dependencies - update auto-value-annotation.version to v1.7.4 ([#​157](https://www.github.com/googleapis/java-shared-config/issues/157)) ([5d7e394](https://www.github.com/googleapis/java-shared-config/commit/5d7e394d964010a3e32af492cec4be85aabc3ebf)) ##### [0.9.2](https://www.github.com/googleapis/java-shared-config/compare/v0.9.1...v0.9.2) (2020-07-02) ##### Dependencies - update dependency org.apache.maven.surefire:surefire-junit47 to v3.0.0-M5 ([#​180](https://www.github.com/googleapis/java-shared-config/issues/180)) ([802d9c5](https://www.github.com/googleapis/java-shared-config/commit/802d9c528d34b386face69ca75a014ce57fc3ac1)) ##### [0.9.1](https://www.github.com/googleapis/java-shared-config/compare/v0.9.0...v0.9.1) (2020-07-01) ##### Bug Fixes - maven-dependency-plugin configuration breaking downstream config ([#​174](https://www.github.com/googleapis/java-shared-config/issues/174)) ([507217f](https://www.github.com/googleapis/java-shared-config/commit/507217fe509cd4f16eb50c8075ab43229238e08d)) ##### Documentation - change Devsite output path to /java/docs/reference ([#​176](https://www.github.com/googleapis/java-shared-config/issues/176)) ([8b98af5](https://www.github.com/googleapis/java-shared-config/commit/8b98af54bf503d97bb86b6d02a5c4301b39384e1))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 9f217272..1a3a5e99 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index b8db4f54..e3e5028b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 From bc77f4441dec1e1b5245d4006278bf600b78482b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 26 Jan 2021 11:14:14 -0800 Subject: [PATCH 071/519] chore: adding docfx doclet resource (#427) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/11676c06-4b47-49bf-b330-a8f1fcd14996/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/3816b080296d4d52975079fd26c110dd26ba25af --- .kokoro/release/publish_javadoc.cfg | 3 +++ synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index f4fe8eed..97af4388 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -27,3 +27,6 @@ before_action { } } } + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 5fd83163..ed4b46e2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "662a5e3e70c3e804f48e84005d584ccb08530398" + "sha": "5c2c2a64fdb30be5ef939e81c82c3d0d860eb448" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033" + "sha": "3816b080296d4d52975079fd26c110dd26ba25af" } } ], From 9d6e6c4c3a9371e5069202a78b388ff5e8814eba Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 28 Jan 2021 22:14:51 -0800 Subject: [PATCH 072/519] build: migrate to flakybot (#428) --- .kokoro/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index d7967d98..f709e28a 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop - ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-dataproc + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot + ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-dataproc fi echo "exiting with ${RETURN_CODE}" From a7408a821df9c2e69bbb31c6fbd797bcc3d56494 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Feb 2021 19:13:27 +0100 Subject: [PATCH 073/519] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#423) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 280db837..2c0ef6ad 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From d7503e7c005c240672741fbc5541a7281c55be23 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Feb 2021 19:13:49 +0100 Subject: [PATCH 074/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.9 (#416) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ee5d3a80..64f1dcf0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.6 + 1.113.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6d46a0e0..11e4fddb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.6 + 1.113.9 junit From a28823be42c6ef4fbd1c6e500e2b52b6cac85e4c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Feb 2021 10:26:03 -0800 Subject: [PATCH 075/519] chore: regenerate README (#429) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-01 18:15:43,450 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-01 18:15:44,382 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/9fbb68e4-d438-4314-9656-cf0cf4f67a75/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index d20064cc..8a76d3c2 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "00b227ffdf52bf169975922148c8ff0b2be6b7e0" + "sha": "d7503e7c005c240672741fbc5541a7281c55be23" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b259489b06b25f399768b74b8baa943991f38ea7" + "sha": "a38d9dbf2fe5e0352b1dffd7eb15e31809c7fd62" } } ] diff --git a/README.md b/README.md index af2c6b27..18c0223a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From 9e8fa0e0c23ef574eab9e492a37ae4f8d0b251d2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Feb 2021 09:08:46 -0800 Subject: [PATCH 076/519] chore: Re-generated to pick up changes from synthtool. (#433) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * build: migrate to flakybot Source-Author: Justin Beckwith Source-Date: Thu Jan 28 22:22:38 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: d1bb9173100f62c0cfc8f3138b62241e7f47ca6a Source-Link: https://github.com/googleapis/synthtool/commit/d1bb9173100f62c0cfc8f3138b62241e7f47ca6a * build(java): generate docfx yml on release * feat: generate docfx yml on release * fix: updates name variable * fix: remove non needed resource * fix: update date Source-Author: Emily Ball Source-Date: Mon Feb 1 15:24:59 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 5de29e9434b63ea6d7e46dc348521c62969af1a1 Source-Link: https://github.com/googleapis/synthtool/commit/5de29e9434b63ea6d7e46dc348521c62969af1a1 * build(java): run linkage monitor as GitHub action Source-Author: Tomo Suzuki Source-Date: Tue Feb 2 16:20:26 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 Source-Link: https://github.com/googleapis/synthtool/commit/e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 --- .github/workflows/ci.yaml | 13 ++++++- .kokoro/linkage-monitor.sh | 46 ---------------------- .kokoro/release/publish_javadoc.cfg | 5 +-- .kokoro/release/publish_javadoc11.cfg | 30 +++++++++++++++ .kokoro/release/publish_javadoc11.sh | 55 +++++++++++++++++++++++++++ synth.metadata | 7 ++-- 6 files changed, 102 insertions(+), 54 deletions(-) delete mode 100755 .kokoro/linkage-monitor.sh create mode 100644 .kokoro/release/publish_javadoc11.cfg create mode 100755 .kokoro/release/publish_javadoc11.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 68302207..98a472e1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,18 @@ jobs: with: java-version: 8 - run: java -version - - run: .kokoro/linkage-monitor.sh + - name: Install artifacts to local Maven repository + run: | + source .kokoro/common.sh + retry_with_backoff 3 10 \ + mvn install -B -V \ + -Dmaven.test.skip -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true + shell: bash + - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh deleted file mode 100755 index 759ab4e2..00000000 --- a/.kokoro/linkage-monitor.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail -# Display commands being run. -set -x - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java version -java -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true - -# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR -JAR=linkage-monitor-latest-all-deps.jar -curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" - -# Fails if there's new linkage errors compared with baseline -java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index 97af4388..ba133e14 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -26,7 +26,4 @@ before_action { keyname: "docuploader_service_account" } } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file +} \ No newline at end of file diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg new file mode 100644 index 00000000..2ddd71ce --- /dev/null +++ b/.kokoro/release/publish_javadoc11.cfg @@ -0,0 +1,30 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "STAGING_BUCKET_V2" + value: "docs-staging-v2" + # Production will be at: docs-staging-v2 +} + +# Configure the docker image for kokoro-trampoline +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-memcache/.kokoro/release/publish_javadoc11.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh new file mode 100755 index 00000000..865e7bac --- /dev/null +++ b/.kokoro/release/publish_javadoc11.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2021 Google Inc. +# +# Licensed under the Apache License, Version 2.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. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET_V2}" ]]; then + echo "Need to set STAGING_BUCKET_V2 environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -q -DskipTests=true + +export NAME=google-cloud-dataproc +export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# V3 generates docfx yml from javadoc +# generate yml +mvn clean site -B -q -P docFX + +pushd target/docfx-yml + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload yml +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET_V2} \ + --destination-prefix docfx- diff --git a/synth.metadata b/synth.metadata index ed4b46e2..b6f8bb8f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "5c2c2a64fdb30be5ef939e81c82c3d0d860eb448" + "sha": "a28823be42c6ef4fbd1c6e500e2b52b6cac85e4c" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3816b080296d4d52975079fd26c110dd26ba25af" + "sha": "e935c9ecb47da0f2e054f5f1845f7cf7c95fa625" } } ], @@ -76,7 +76,6 @@ ".kokoro/continuous/java8.cfg", ".kokoro/continuous/readme.cfg", ".kokoro/dependencies.sh", - ".kokoro/linkage-monitor.sh", ".kokoro/nightly/common.cfg", ".kokoro/nightly/integration.cfg", ".kokoro/nightly/java11.cfg", @@ -108,6 +107,8 @@ ".kokoro/release/promote.sh", ".kokoro/release/publish_javadoc.cfg", ".kokoro/release/publish_javadoc.sh", + ".kokoro/release/publish_javadoc11.cfg", + ".kokoro/release/publish_javadoc11.sh", ".kokoro/release/snapshot.cfg", ".kokoro/release/snapshot.sh", ".kokoro/release/stage.cfg", From fb1262dc4e427d5cfb6196f24c00f865b7573bcd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Feb 2021 10:02:07 -0800 Subject: [PATCH 077/519] build(java): update autorelease branch name check (#435) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1bee5a28-eca1-4bf4-bafb-e5d12b2af620/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/140ba24a136c63e7f10a998a63e7898aed63ea7d --- .github/workflows/auto-release.yaml | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2b6cdbc9..76e6404b 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -17,7 +17,7 @@ jobs: } // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/synth.metadata b/synth.metadata index b6f8bb8f..434adfe5 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a28823be42c6ef4fbd1c6e500e2b52b6cac85e4c" + "sha": "9e8fa0e0c23ef574eab9e492a37ae4f8d0b251d2" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e935c9ecb47da0f2e054f5f1845f7cf7c95fa625" + "sha": "140ba24a136c63e7f10a998a63e7898aed63ea7d" } } ], From 24065636d88e9ac7818921717f8ed06e77cc2ebc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Feb 2021 16:20:10 -0800 Subject: [PATCH 078/519] chore: Re-generated to pick up changes from synthtool. (#436) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/6e80cdc5-e3cc-4a87-af9b-624be8759c22/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 Source-Link: https://github.com/googleapis/synthtool/commit/27b2d4f4674840628d0b75c5941e89c12af4764f --- .kokoro/release/publish_javadoc11.cfg | 4 ++-- LICENSE | 1 - synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg index 2ddd71ce..8a7b3f4a 100644 --- a/.kokoro/release/publish_javadoc11.cfg +++ b/.kokoro/release/publish_javadoc11.cfg @@ -14,7 +14,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-memcache/.kokoro/release/publish_javadoc11.sh" + value: "github/java-dataproc/.kokoro/release/publish_javadoc11.sh" } before_action { @@ -27,4 +27,4 @@ before_action { } # Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/LICENSE b/LICENSE index d6456956..261eeb9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,3 @@ - Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/synth.metadata b/synth.metadata index 434adfe5..c97959fe 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "9e8fa0e0c23ef574eab9e492a37ae4f8d0b251d2" + "sha": "fb1262dc4e427d5cfb6196f24c00f865b7573bcd" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "140ba24a136c63e7f10a998a63e7898aed63ea7d" + "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" } } ], From bb356719e818b896259f399c084092c056549a6a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Feb 2021 16:42:09 -0800 Subject: [PATCH 079/519] docs: generate sample code in the Java microgenerator (#437) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2eb44d9f-9230-443a-a6c3-d1d42a6b9d96/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 356341083 Source-Link: https://github.com/googleapis/googleapis/commit/8d8c008e56f1af31d57f75561e0f1848ffb29eeb --- .../v1/AutoscalingPolicyServiceClient.java | 340 +++++++++++ .../dataproc/v1/ClusterControllerClient.java | 377 ++++++++++++ .../dataproc/v1/JobControllerClient.java | 337 +++++++++++ .../v1/WorkflowTemplateServiceClient.java | 553 +++++++++++++++++ .../cloud/dataproc/v1/package-info.java | 38 ++ .../AutoscalingPolicyServiceClient.java | 340 +++++++++++ .../v1beta2/ClusterControllerClient.java | 376 ++++++++++++ .../dataproc/v1beta2/JobControllerClient.java | 337 +++++++++++ .../WorkflowTemplateServiceClient.java | 559 ++++++++++++++++++ .../cloud/dataproc/v1beta2/package-info.java | 38 ++ synth.metadata | 10 +- 11 files changed, 3300 insertions(+), 5 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 592055c5..9247e11f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -42,6 +42,16 @@ *

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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
+ *     AutoscalingPolicyServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ *   AutoscalingPolicy response =
+ *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
+ * }
+ * }
+ * *

Note: close() needs to be called on the AutoscalingPolicyServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -150,6 +160,18 @@ public AutoscalingPolicyServiceStub getStub() { /** * Creates new autoscaling policy. * + *

Sample code: + * + *

{@code
+   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
+   *     AutoscalingPolicyServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+   *   AutoscalingPolicy response =
+   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
+   * }
+   * }
+ * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
    @@ -178,6 +200,18 @@ public final AutoscalingPolicy createAutoscalingPolicy( /** * Creates new autoscaling policy. * + *

    Sample code: + * + *

    {@code
    +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    +   *     AutoscalingPolicyServiceClient.create()) {
    +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
    +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
    +   *   AutoscalingPolicy response =
    +   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
    +   * }
    +   * }
    + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
      @@ -206,6 +240,21 @@ public final AutoscalingPolicy createAutoscalingPolicy( /** * Creates new autoscaling policy. * + *

      Sample code: + * + *

      {@code
      +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
      +   *     AutoscalingPolicyServiceClient.create()) {
      +   *   String parent =
      +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
      +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
      +   *           .toString();
      +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
      +   *   AutoscalingPolicy response =
      +   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
      +   * }
      +   * }
      + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
        @@ -230,6 +279,23 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin /** * Creates new autoscaling policy. * + *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   CreateAutoscalingPolicyRequest request =
        +   *       CreateAutoscalingPolicyRequest.newBuilder()
        +   *           .setParent(
        +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
        +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
        +   *                   .toString())
        +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
        +   *           .build();
        +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 */ @@ -242,6 +308,24 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe * Creates new autoscaling policy. * *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   CreateAutoscalingPolicyRequest request =
        +   *       CreateAutoscalingPolicyRequest.newBuilder()
        +   *           .setParent(
        +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
        +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
        +   *                   .toString())
        +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
        +   *   // Do something.
        +   *   AutoscalingPolicy response = future.get();
        +   * }
        +   * }
        */ public final UnaryCallable createAutoscalingPolicyCallable() { @@ -254,6 +338,16 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe * *

        Disabled check for update_mask, because all updates will be full replacements. * + *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
        +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
        +   * }
        +   * }
        + * * @param policy Required. The updated autoscaling policy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -269,6 +363,19 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) * *

        Disabled check for update_mask, because all updates will be full replacements. * + *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   UpdateAutoscalingPolicyRequest request =
        +   *       UpdateAutoscalingPolicyRequest.newBuilder()
        +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
        +   *           .build();
        +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 */ @@ -283,6 +390,20 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe *

        Disabled check for update_mask, because all updates will be full replacements. * *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   UpdateAutoscalingPolicyRequest request =
        +   *       UpdateAutoscalingPolicyRequest.newBuilder()
        +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
        +   *           .build();
        +   *   ApiFuture future =
        +   *       autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
        +   *   // Do something.
        +   *   AutoscalingPolicy response = future.get();
        +   * }
        +   * }
        */ public final UnaryCallable updateAutoscalingPolicyCallable() { @@ -293,6 +414,18 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe /** * Retrieves autoscaling policy. * + *

        Sample code: + * + *

        {@code
        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
        +   *     AutoscalingPolicyServiceClient.create()) {
        +   *   AutoscalingPolicyName name =
        +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
        +   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
        +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
        +   * }
        +   * }
        + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
          @@ -320,6 +453,19 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) /** * Retrieves autoscaling policy. * + *

          Sample code: + * + *

          {@code
          +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
          +   *     AutoscalingPolicyServiceClient.create()) {
          +   *   String name =
          +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
          +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
          +   *           .toString();
          +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
          +   * }
          +   * }
          + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
            @@ -345,6 +491,22 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) { /** * Retrieves autoscaling policy. * + *

            Sample code: + * + *

            {@code
            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
            +   *     AutoscalingPolicyServiceClient.create()) {
            +   *   GetAutoscalingPolicyRequest request =
            +   *       GetAutoscalingPolicyRequest.newBuilder()
            +   *           .setName(
            +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
            +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
            +   *                   .toString())
            +   *           .build();
            +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 */ @@ -357,6 +519,23 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest * Retrieves autoscaling policy. * *

            Sample code: + * + *

            {@code
            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
            +   *     AutoscalingPolicyServiceClient.create()) {
            +   *   GetAutoscalingPolicyRequest request =
            +   *       GetAutoscalingPolicyRequest.newBuilder()
            +   *           .setName(
            +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
            +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   AutoscalingPolicy response = future.get();
            +   * }
            +   * }
            */ public final UnaryCallable getAutoscalingPolicyCallable() { @@ -367,6 +546,19 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest /** * Lists autoscaling policies in the project. * + *

            Sample code: + * + *

            {@code
            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
            +   *     AutoscalingPolicyServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (AutoscalingPolicy element :
            +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
              @@ -392,6 +584,19 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati /** * Lists autoscaling policies in the project. * + *

              Sample code: + * + *

              {@code
              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
              +   *     AutoscalingPolicyServiceClient.create()) {
              +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
              +   *   for (AutoscalingPolicy element :
              +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                @@ -417,6 +622,22 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region /** * Lists autoscaling policies in the project. * + *

                Sample code: + * + *

                {@code
                +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                +   *     AutoscalingPolicyServiceClient.create()) {
                +   *   String parent =
                +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                +   *           .toString();
                +   *   for (AutoscalingPolicy element :
                +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
                +   *     // doThingsWith(element);
                +   *   }
                +   * }
                +   * }
                + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                  @@ -440,6 +661,27 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String /** * Lists autoscaling policies in the project. * + *

                  Sample code: + * + *

                  {@code
                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                  +   *     AutoscalingPolicyServiceClient.create()) {
                  +   *   ListAutoscalingPoliciesRequest request =
                  +   *       ListAutoscalingPoliciesRequest.newBuilder()
                  +   *           .setParent(
                  +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                  +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                  +   *                   .toString())
                  +   *           .setPageSize(883849137)
                  +   *           .setPageToken("pageToken873572522")
                  +   *           .build();
                  +   *   for (AutoscalingPolicy element :
                  +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(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 */ @@ -453,6 +695,27 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Lists autoscaling policies in the project. * *

                  Sample code: + * + *

                  {@code
                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                  +   *     AutoscalingPolicyServiceClient.create()) {
                  +   *   ListAutoscalingPoliciesRequest request =
                  +   *       ListAutoscalingPoliciesRequest.newBuilder()
                  +   *           .setParent(
                  +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                  +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                  +   *                   .toString())
                  +   *           .setPageSize(883849137)
                  +   *           .setPageToken("pageToken873572522")
                  +   *           .build();
                  +   *   ApiFuture future =
                  +   *       autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
                  +   *   // Do something.
                  +   *   for (AutoscalingPolicy element : future.get().iterateAll()) {
                  +   *     // doThingsWith(element);
                  +   *   }
                  +   * }
                  +   * }
                  */ public final UnaryCallable listAutoscalingPoliciesPagedCallable() { @@ -464,6 +727,25 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Lists autoscaling policies in the project. * *

                  Sample code: + * + *

                  {@code
                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                  +   *     AutoscalingPolicyServiceClient.create()) {
                  +   *   while (true) {
                  +   *     ListAutoscalingPoliciesResponse response =
                  +   *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
                  +   *     for (AutoscalingPolicy element : response.getResponsesList()) {
                  +   *       // doThingsWith(element);
                  +   *     }
                  +   *     String nextPageToken = response.getNextPageToken();
                  +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                  +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                  +   *     } else {
                  +   *       break;
                  +   *     }
                  +   *   }
                  +   * }
                  +   * }
                  */ public final UnaryCallable listAutoscalingPoliciesCallable() { @@ -475,6 +757,18 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                  Sample code: + * + *

                  {@code
                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                  +   *     AutoscalingPolicyServiceClient.create()) {
                  +   *   AutoscalingPolicyName name =
                  +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                  +   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
                  +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
                  +   * }
                  +   * }
                  + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                    @@ -503,6 +797,19 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                    Sample code: + * + *

                    {@code
                    +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                    +   *     AutoscalingPolicyServiceClient.create()) {
                    +   *   String name =
                    +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                    +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                    +   *           .toString();
                    +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
                    +   * }
                    +   * }
                    + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                      @@ -529,6 +836,22 @@ public final void deleteAutoscalingPolicy(String name) { * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                      +   *     AutoscalingPolicyServiceClient.create()) {
                      +   *   DeleteAutoscalingPolicyRequest request =
                      +   *       DeleteAutoscalingPolicyRequest.newBuilder()
                      +   *           .setName(
                      +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                      +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                      +   *                   .toString())
                      +   *           .build();
                      +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(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 */ @@ -542,6 +865,23 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request * one or more clusters. * *

                      Sample code: + * + *

                      {@code
                      +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                      +   *     AutoscalingPolicyServiceClient.create()) {
                      +   *   DeleteAutoscalingPolicyRequest request =
                      +   *       DeleteAutoscalingPolicyRequest.newBuilder()
                      +   *           .setName(
                      +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                      +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                      +   *                   .toString())
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable deleteAutoscalingPolicyCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 8975f551..2b2443c1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -48,6 +48,15 @@ *

                      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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      + *   String projectId = "projectId-894832108";
                      + *   String region = "region-934795532";
                      + *   String clusterName = "clusterName-1141738587";
                      + *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                      + * }
                      + * }
                      + * *

                      Note: close() needs to be called on the ClusterControllerClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). @@ -167,6 +176,18 @@ public final OperationsClient getOperationsClient() { * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   Cluster cluster = Cluster.newBuilder().build();
                      +   *   Cluster response =
                      +   *       clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -190,6 +211,21 @@ public final OperationFuture createClusterAsy * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   CreateClusterRequest request =
                      +   *       CreateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   Cluster response = clusterControllerClient.createClusterAsync(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 */ @@ -205,6 +241,22 @@ public final OperationFuture createClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   CreateClusterRequest request =
                      +   *       CreateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   OperationFuture future =
                      +   *       clusterControllerClient.createClusterOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Cluster response = future.get();
                      +   * }
                      +   * }
                      */ public final OperationCallable createClusterOperationCallable() { @@ -218,6 +270,22 @@ public final OperationFuture createClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   CreateClusterRequest request =
                      +   *       CreateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       clusterControllerClient.createClusterCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Operation response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable createClusterCallable() { return stub.createClusterCallable(); @@ -229,6 +297,22 @@ public final UnaryCallable createClusterCallabl * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String clusterName = "clusterName-1141738587";
                      +   *   Cluster cluster = Cluster.newBuilder().build();
                      +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                      +   *   Cluster response =
                      +   *       clusterControllerClient
                      +   *           .updateClusterAsync(projectId, region, clusterName, cluster, updateMask)
                      +   *           .get();
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. @@ -275,6 +359,24 @@ public final OperationFuture updateClusterAsy * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   UpdateClusterRequest request =
                      +   *       UpdateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   Cluster response = clusterControllerClient.updateClusterAsync(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 */ @@ -290,6 +392,25 @@ public final OperationFuture updateClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   UpdateClusterRequest request =
                      +   *       UpdateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   OperationFuture future =
                      +   *       clusterControllerClient.updateClusterOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Cluster response = future.get();
                      +   * }
                      +   * }
                      */ public final OperationCallable updateClusterOperationCallable() { @@ -303,6 +424,25 @@ public final OperationFuture updateClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   UpdateClusterRequest request =
                      +   *       UpdateClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setCluster(Cluster.newBuilder().build())
                      +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       clusterControllerClient.updateClusterCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Operation response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable updateClusterCallable() { return stub.updateClusterCallable(); @@ -314,6 +454,17 @@ public final UnaryCallable updateClusterCallabl * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String clusterName = "clusterName-1141738587";
                      +   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -337,6 +488,22 @@ public final OperationFuture deleteClusterAsync * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DeleteClusterRequest request =
                      +   *       DeleteClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setClusterUuid("clusterUuid-1141510955")
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   clusterControllerClient.deleteClusterAsync(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 */ @@ -352,6 +519,23 @@ public final OperationFuture deleteClusterAsync * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DeleteClusterRequest request =
                      +   *       DeleteClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setClusterUuid("clusterUuid-1141510955")
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   OperationFuture future =
                      +   *       clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   future.get();
                      +   * }
                      +   * }
                      */ public final OperationCallable deleteClusterOperationCallable() { @@ -365,6 +549,23 @@ public final OperationFuture deleteClusterAsync * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DeleteClusterRequest request =
                      +   *       DeleteClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setClusterUuid("clusterUuid-1141510955")
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       clusterControllerClient.deleteClusterCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable deleteClusterCallable() { return stub.deleteClusterCallable(); @@ -374,6 +575,17 @@ public final UnaryCallable deleteClusterCallabl /** * Gets the resource representation for a cluster in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String clusterName = "clusterName-1141738587";
                      +   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -394,6 +606,20 @@ public final Cluster getCluster(String projectId, String region, String clusterN /** * Gets the resource representation for a cluster in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   GetClusterRequest request =
                      +   *       GetClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .build();
                      +   *   Cluster response = clusterControllerClient.getCluster(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 */ @@ -406,6 +632,20 @@ public final Cluster getCluster(GetClusterRequest request) { * Gets the resource representation for a cluster in a project. * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   GetClusterRequest request =
                      +   *       GetClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .build();
                      +   *   ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Cluster response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable getClusterCallable() { return stub.getClusterCallable(); @@ -415,6 +655,18 @@ public final UnaryCallable getClusterCallable() { /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -430,6 +682,20 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String filter = "filter-1274492040";
                      +   *   for (Cluster element :
                      +   *       clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -464,6 +730,24 @@ public final ListClustersPagedResponse listClusters( /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   ListClustersRequest request =
                      +   *       ListClustersRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setFilter("filter-1274492040")
                      +   *           .setPageSize(883849137)
                      +   *           .setPageToken("pageToken873572522")
                      +   *           .build();
                      +   *   for (Cluster element : clusterControllerClient.listClusters(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 */ @@ -476,6 +760,25 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * Lists all regions/{region}/clusters in a project alphabetically. * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   ListClustersRequest request =
                      +   *       ListClustersRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setFilter("filter-1274492040")
                      +   *           .setPageSize(883849137)
                      +   *           .setPageToken("pageToken873572522")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       clusterControllerClient.listClustersPagedCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   for (Cluster element : future.get().iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      */ public final UnaryCallable listClustersPagedCallable() { @@ -487,6 +790,24 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * Lists all regions/{region}/clusters in a project alphabetically. * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   while (true) {
                      +   *     ListClustersResponse response =
                      +   *         clusterControllerClient.listClustersCallable().call(request);
                      +   *     for (Cluster element : response.getResponsesList()) {
                      +   *       // doThingsWith(element);
                      +   *     }
                      +   *     String nextPageToken = response.getNextPageToken();
                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                      +   *     } else {
                      +   *       break;
                      +   *     }
                      +   *   }
                      +   * }
                      +   * }
                      */ public final UnaryCallable listClustersCallable() { return stub.listClustersCallable(); @@ -501,6 +822,18 @@ public final UnaryCallable listCluste * contains * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String clusterName = "clusterName-1141738587";
                      +   *   DiagnoseClusterResults response =
                      +   *       clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -527,6 +860,20 @@ public final UnaryCallable listCluste * contains * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DiagnoseClusterRequest request =
                      +   *       DiagnoseClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .build();
                      +   *   DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(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 */ @@ -545,6 +892,21 @@ public final UnaryCallable listCluste * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DiagnoseClusterRequest request =
                      +   *       DiagnoseClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .build();
                      +   *   OperationFuture future =
                      +   *       clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   DiagnoseClusterResults response = future.get();
                      +   * }
                      +   * }
                      */ public final OperationCallable< DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> @@ -562,6 +924,21 @@ public final UnaryCallable listCluste * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). * *

                      Sample code: + * + *

                      {@code
                      +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                      +   *   DiagnoseClusterRequest request =
                      +   *       DiagnoseClusterRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       clusterControllerClient.diagnoseClusterCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Operation response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable diagnoseClusterCallable() { return stub.diagnoseClusterCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 191b06ef..2ca6e8af 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -46,6 +46,15 @@ *

                      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 (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      + *   String projectId = "projectId-894832108";
                      + *   String region = "region-934795532";
                      + *   Job job = Job.newBuilder().build();
                      + *   Job response = jobControllerClient.submitJob(projectId, region, job);
                      + * }
                      + * }
                      + * *

                      Note: close() needs to be called on the JobControllerClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * @@ -160,6 +169,17 @@ public final OperationsClient getOperationsClient() { /** * Submits a job to a cluster. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   Job job = Job.newBuilder().build();
                      +   *   Job response = jobControllerClient.submitJob(projectId, region, job);
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -175,6 +195,21 @@ public final Job submitJob(String projectId, String region, Job job) { /** * Submits a job to a cluster. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   SubmitJobRequest request =
                      +   *       SubmitJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   Job response = jobControllerClient.submitJob(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 */ @@ -187,6 +222,21 @@ public final Job submitJob(SubmitJobRequest request) { * Submits a job to a cluster. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   SubmitJobRequest request =
                      +   *       SubmitJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Job response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable submitJobCallable() { return stub.submitJobCallable(); @@ -196,6 +246,17 @@ public final UnaryCallable submitJobCallable() { /** * Submits job to a cluster. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   Job job = Job.newBuilder().build();
                      +   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -212,6 +273,21 @@ public final OperationFuture submitJobAsOperationAsync( /** * Submits job to a cluster. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   SubmitJobRequest request =
                      +   *       SubmitJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 */ @@ -225,6 +301,22 @@ public final OperationFuture submitJobAsOperationAsync( * Submits job to a cluster. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   SubmitJobRequest request =
                      +   *       SubmitJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   OperationFuture future =
                      +   *       jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Job response = future.get();
                      +   * }
                      +   * }
                      */ public final OperationCallable submitJobAsOperationOperationCallable() { @@ -236,6 +328,22 @@ public final OperationFuture submitJobAsOperationAsync( * Submits job to a cluster. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   SubmitJobRequest request =
                      +   *       SubmitJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setRequestId("requestId693933066")
                      +   *           .build();
                      +   *   ApiFuture future =
                      +   *       jobControllerClient.submitJobAsOperationCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Operation response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable submitJobAsOperationCallable() { return stub.submitJobAsOperationCallable(); @@ -245,6 +353,17 @@ public final UnaryCallable submitJobAsOperationCall /** * Gets the resource representation for a job in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String jobId = "jobId101296568";
                      +   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -264,6 +383,20 @@ public final Job getJob(String projectId, String region, String jobId) { /** * Gets the resource representation for a job in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   GetJobRequest request =
                      +   *       GetJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   Job response = jobControllerClient.getJob(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 */ @@ -276,6 +409,20 @@ public final Job getJob(GetJobRequest request) { * Gets the resource representation for a job in a project. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   GetJobRequest request =
                      +   *       GetJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.getJobCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Job response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable getJobCallable() { return stub.getJobCallable(); @@ -285,6 +432,18 @@ public final UnaryCallable getJobCallable() { /** * Lists regions/{region}/jobs in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -299,6 +458,19 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) { /** * Lists regions/{region}/jobs in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String filter = "filter-1274492040";
                      +   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and @@ -326,6 +498,25 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str /** * Lists regions/{region}/jobs in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   ListJobsRequest request =
                      +   *       ListJobsRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setPageSize(883849137)
                      +   *           .setPageToken("pageToken873572522")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setFilter("filter-1274492040")
                      +   *           .build();
                      +   *   for (Job element : jobControllerClient.listJobs(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 */ @@ -338,6 +529,25 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { * Lists regions/{region}/jobs in a project. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   ListJobsRequest request =
                      +   *       ListJobsRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setPageSize(883849137)
                      +   *           .setPageToken("pageToken873572522")
                      +   *           .setClusterName("clusterName-1141738587")
                      +   *           .setFilter("filter-1274492040")
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   for (Job element : future.get().iterateAll()) {
                      +   *     // doThingsWith(element);
                      +   *   }
                      +   * }
                      +   * }
                      */ public final UnaryCallable listJobsPagedCallable() { return stub.listJobsPagedCallable(); @@ -348,6 +558,23 @@ public final UnaryCallable listJobsPaged * Lists regions/{region}/jobs in a project. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   while (true) {
                      +   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
                      +   *     for (Job element : response.getResponsesList()) {
                      +   *       // doThingsWith(element);
                      +   *     }
                      +   *     String nextPageToken = response.getNextPageToken();
                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                      +   *     } else {
                      +   *       break;
                      +   *     }
                      +   *   }
                      +   * }
                      +   * }
                      */ public final UnaryCallable listJobsCallable() { return stub.listJobsCallable(); @@ -357,6 +584,22 @@ public final UnaryCallable listJobsCallable() /** * Updates a job in a project. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   UpdateJobRequest request =
                      +   *       UpdateJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                      +   *           .build();
                      +   *   Job response = jobControllerClient.updateJob(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 */ @@ -369,6 +612,22 @@ public final Job updateJob(UpdateJobRequest request) { * Updates a job in a project. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   UpdateJobRequest request =
                      +   *       UpdateJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .setJob(Job.newBuilder().build())
                      +   *           .setUpdateMask(FieldMask.newBuilder().build())
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Job response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable updateJobCallable() { return stub.updateJobCallable(); @@ -381,6 +640,17 @@ public final UnaryCallable updateJobCallable() { * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String jobId = "jobId101296568";
                      +   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -403,6 +673,20 @@ public final Job cancelJob(String projectId, String region, String jobId) { * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   CancelJobRequest request =
                      +   *       CancelJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   Job response = jobControllerClient.cancelJob(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 */ @@ -418,6 +702,20 @@ public final Job cancelJob(CancelJobRequest request) { * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   CancelJobRequest request =
                      +   *       CancelJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   Job response = future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable cancelJobCallable() { return stub.cancelJobCallable(); @@ -428,6 +726,17 @@ public final UnaryCallable cancelJobCallable() { * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   String projectId = "projectId-894832108";
                      +   *   String region = "region-934795532";
                      +   *   String jobId = "jobId101296568";
                      +   *   jobControllerClient.deleteJob(projectId, region, jobId);
                      +   * }
                      +   * }
                      + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -448,6 +757,20 @@ public final void deleteJob(String projectId, String region, String jobId) { * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   DeleteJobRequest request =
                      +   *       DeleteJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   jobControllerClient.deleteJob(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 */ @@ -461,6 +784,20 @@ public final void deleteJob(DeleteJobRequest request) { * returns `FAILED_PRECONDITION`. * *

                      Sample code: + * + *

                      {@code
                      +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                      +   *   DeleteJobRequest request =
                      +   *       DeleteJobRequest.newBuilder()
                      +   *           .setProjectId("projectId-894832108")
                      +   *           .setRegion("region-934795532")
                      +   *           .setJobId("jobId101296568")
                      +   *           .build();
                      +   *   ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request);
                      +   *   // Do something.
                      +   *   future.get();
                      +   * }
                      +   * }
                      */ public final UnaryCallable deleteJobCallable() { return stub.deleteJobCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 4d4a16cc..b334fec5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -47,6 +47,16 @@ *

                      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 (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                      + *     WorkflowTemplateServiceClient.create()) {
                      + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                      + *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                      + *   WorkflowTemplate response =
                      + *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                      + * }
                      + * }
                      + * *

                      Note: close() needs to be called on the WorkflowTemplateServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -165,6 +175,18 @@ public final OperationsClient getOperationsClient() { /** * Creates new workflow template. * + *

                      Sample code: + * + *

                      {@code
                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                      +   *     WorkflowTemplateServiceClient.create()) {
                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                      +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                      +   *   WorkflowTemplate response =
                      +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                      +   * }
                      +   * }
                      + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                        @@ -193,6 +215,18 @@ public final WorkflowTemplate createWorkflowTemplate( /** * Creates new workflow template. * + *

                        Sample code: + * + *

                        {@code
                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                        +   *     WorkflowTemplateServiceClient.create()) {
                        +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                        +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                        +   *   WorkflowTemplate response =
                        +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                        +   * }
                        +   * }
                        + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                          @@ -221,6 +255,21 @@ public final WorkflowTemplate createWorkflowTemplate( /** * Creates new workflow template. * + *

                          Sample code: + * + *

                          {@code
                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                          +   *     WorkflowTemplateServiceClient.create()) {
                          +   *   String parent =
                          +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                          +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                          +   *           .toString();
                          +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                          +   *   WorkflowTemplate response =
                          +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                          +   * }
                          +   * }
                          + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                            @@ -245,6 +294,23 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp /** * Creates new workflow template. * + *

                            Sample code: + * + *

                            {@code
                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                            +   *     WorkflowTemplateServiceClient.create()) {
                            +   *   CreateWorkflowTemplateRequest request =
                            +   *       CreateWorkflowTemplateRequest.newBuilder()
                            +   *           .setParent(
                            +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                            +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                            +   *                   .toString())
                            +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                            +   *           .build();
                            +   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 */ @@ -257,6 +323,24 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque * Creates new workflow template. * *

                            Sample code: + * + *

                            {@code
                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                            +   *     WorkflowTemplateServiceClient.create()) {
                            +   *   CreateWorkflowTemplateRequest request =
                            +   *       CreateWorkflowTemplateRequest.newBuilder()
                            +   *           .setParent(
                            +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                            +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                            +   *                   .toString())
                            +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                            +   *           .build();
                            +   *   ApiFuture future =
                            +   *       workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
                            +   *   // Do something.
                            +   *   WorkflowTemplate response = future.get();
                            +   * }
                            +   * }
                            */ public final UnaryCallable createWorkflowTemplateCallable() { @@ -269,6 +353,18 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque * *

                            Can retrieve previously instantiated template by specifying optional version parameter. * + *

                            Sample code: + * + *

                            {@code
                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                            +   *     WorkflowTemplateServiceClient.create()) {
                            +   *   WorkflowTemplateName name =
                            +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                            +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                            +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
                            +   * }
                            +   * }
                            + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                              @@ -298,6 +394,19 @@ public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { * *

                              Can retrieve previously instantiated template by specifying optional version parameter. * + *

                              Sample code: + * + *

                              {@code
                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                              +   *     WorkflowTemplateServiceClient.create()) {
                              +   *   String name =
                              +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                              +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                              +   *           .toString();
                              +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
                              +   * }
                              +   * }
                              + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                @@ -325,6 +434,23 @@ public final WorkflowTemplate getWorkflowTemplate(String name) { * *

                                Can retrieve previously instantiated template by specifying optional version parameter. * + *

                                Sample code: + * + *

                                {@code
                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                +   *     WorkflowTemplateServiceClient.create()) {
                                +   *   GetWorkflowTemplateRequest request =
                                +   *       GetWorkflowTemplateRequest.newBuilder()
                                +   *           .setName(
                                +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                +   *                   .toString())
                                +   *           .setVersion(351608024)
                                +   *           .build();
                                +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 */ @@ -339,6 +465,24 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

                                Can retrieve previously instantiated template by specifying optional version parameter. * *

                                Sample code: + * + *

                                {@code
                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                +   *     WorkflowTemplateServiceClient.create()) {
                                +   *   GetWorkflowTemplateRequest request =
                                +   *       GetWorkflowTemplateRequest.newBuilder()
                                +   *           .setName(
                                +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                +   *                   .toString())
                                +   *           .setVersion(351608024)
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   WorkflowTemplate response = future.get();
                                +   * }
                                +   * }
                                */ public final UnaryCallable getWorkflowTemplateCallable() { @@ -365,6 +509,18 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

                                On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                Sample code: + * + *

                                {@code
                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                +   *     WorkflowTemplateServiceClient.create()) {
                                +   *   WorkflowTemplateName name =
                                +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
                                +   * }
                                +   * }
                                + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                  @@ -409,6 +565,19 @@ public final OperationFuture instantiateWorkflowTemplat *

                                  On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                  Sample code: + * + *

                                  {@code
                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                  +   *     WorkflowTemplateServiceClient.create()) {
                                  +   *   String name =
                                  +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                  +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                  +   *           .toString();
                                  +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
                                  +   * }
                                  +   * }
                                  + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                    @@ -451,6 +620,19 @@ public final OperationFuture instantiateWorkflowTemplat *

                                    On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                    Sample code: + * + *

                                    {@code
                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                    +   *     WorkflowTemplateServiceClient.create()) {
                                    +   *   WorkflowTemplateName name =
                                    +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                    +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                    +   *   Map parameters = new HashMap<>();
                                    +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
                                    +   * }
                                    +   * }
                                    + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                      @@ -498,6 +680,20 @@ public final OperationFuture instantiateWorkflowTemplat *

                                      On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                      Sample code: + * + *

                                      {@code
                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                      +   *     WorkflowTemplateServiceClient.create()) {
                                      +   *   String name =
                                      +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                      +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                      +   *           .toString();
                                      +   *   Map parameters = new HashMap<>();
                                      +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
                                      +   * }
                                      +   * }
                                      + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                        @@ -545,6 +741,25 @@ public final OperationFuture instantiateWorkflowTemplat *

                                        On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                        Sample code: + * + *

                                        {@code
                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                        +   *     WorkflowTemplateServiceClient.create()) {
                                        +   *   InstantiateWorkflowTemplateRequest request =
                                        +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                        +   *           .setName(
                                        +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                        +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                        +   *                   .toString())
                                        +   *           .setVersion(351608024)
                                        +   *           .setRequestId("requestId693933066")
                                        +   *           .putAllParameters(new HashMap())
                                        +   *           .build();
                                        +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 */ @@ -574,6 +789,28 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

                                        Sample code: + * + *

                                        {@code
                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                        +   *     WorkflowTemplateServiceClient.create()) {
                                        +   *   InstantiateWorkflowTemplateRequest request =
                                        +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                        +   *           .setName(
                                        +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                        +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                        +   *                   .toString())
                                        +   *           .setVersion(351608024)
                                        +   *           .setRequestId("requestId693933066")
                                        +   *           .putAllParameters(new HashMap())
                                        +   *           .build();
                                        +   *   OperationFuture future =
                                        +   *       workflowTemplateServiceClient
                                        +   *           .instantiateWorkflowTemplateOperationCallable()
                                        +   *           .futureCall(request);
                                        +   *   // Do something.
                                        +   *   future.get();
                                        +   * }
                                        +   * }
                                        */ public final OperationCallable instantiateWorkflowTemplateOperationCallable() { @@ -601,6 +838,26 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

                                        Sample code: + * + *

                                        {@code
                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                        +   *     WorkflowTemplateServiceClient.create()) {
                                        +   *   InstantiateWorkflowTemplateRequest request =
                                        +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                        +   *           .setName(
                                        +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                        +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                        +   *                   .toString())
                                        +   *           .setVersion(351608024)
                                        +   *           .setRequestId("requestId693933066")
                                        +   *           .putAllParameters(new HashMap())
                                        +   *           .build();
                                        +   *   ApiFuture future =
                                        +   *       workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
                                        +   *   // Do something.
                                        +   *   future.get();
                                        +   * }
                                        +   * }
                                        */ public final UnaryCallable instantiateWorkflowTemplateCallable() { @@ -632,6 +889,17 @@ public final OperationFuture instantiateWorkflowTemplat *

                                        On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                        Sample code: + * + *

                                        {@code
                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                        +   *     WorkflowTemplateServiceClient.create()) {
                                        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                        +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                        +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                        +   * }
                                        +   * }
                                        + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                          @@ -681,6 +949,17 @@ public final OperationFuture instantiateInlineWorkflowT *

                                          On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                          Sample code: + * + *

                                          {@code
                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                          +   *     WorkflowTemplateServiceClient.create()) {
                                          +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                          +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                          +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                          +   * }
                                          +   * }
                                          + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                            @@ -730,6 +1009,20 @@ public final OperationFuture instantiateInlineWorkflowT *

                                            On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                            Sample code: + * + *

                                            {@code
                                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                            +   *     WorkflowTemplateServiceClient.create()) {
                                            +   *   String parent =
                                            +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                            +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                            +   *           .toString();
                                            +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                            +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                            +   * }
                                            +   * }
                                            + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                              @@ -779,6 +1072,24 @@ public final OperationFuture instantiateInlineWorkflowT *

                                              On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   InstantiateInlineWorkflowTemplateRequest request =
                                              +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                              +   *                   .toString())
                                              +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 */ @@ -813,6 +1124,27 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   InstantiateInlineWorkflowTemplateRequest request =
                                              +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                              +   *                   .toString())
                                              +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   OperationFuture future =
                                              +   *       workflowTemplateServiceClient
                                              +   *           .instantiateInlineWorkflowTemplateOperationCallable()
                                              +   *           .futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              */ public final OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { @@ -845,6 +1177,27 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   InstantiateInlineWorkflowTemplateRequest request =
                                              +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                              +   *           .setParent(
                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                              +   *                   .toString())
                                              +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                              +   *           .setRequestId("requestId693933066")
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       workflowTemplateServiceClient
                                              +   *           .instantiateInlineWorkflowTemplateCallable()
                                              +   *           .futureCall(request);
                                              +   *   // Do something.
                                              +   *   future.get();
                                              +   * }
                                              +   * }
                                              */ public final UnaryCallable instantiateInlineWorkflowTemplateCallable() { @@ -856,6 +1209,16 @@ public final OperationFuture instantiateInlineWorkflowT * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * + *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                              +   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
                                              +   * }
                                              +   * }
                                              + * * @param template Required. The updated workflow template. *

                                              The `template.version` field must match the current version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -871,6 +1234,19 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * + *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   UpdateWorkflowTemplateRequest request =
                                              +   *       UpdateWorkflowTemplateRequest.newBuilder()
                                              +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                              +   *           .build();
                                              +   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 */ @@ -884,6 +1260,20 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque * the current server version. * *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   UpdateWorkflowTemplateRequest request =
                                              +   *       UpdateWorkflowTemplateRequest.newBuilder()
                                              +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                              +   *           .build();
                                              +   *   ApiFuture future =
                                              +   *       workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
                                              +   *   // Do something.
                                              +   *   WorkflowTemplate response = future.get();
                                              +   * }
                                              +   * }
                                              */ public final UnaryCallable updateWorkflowTemplateCallable() { @@ -894,6 +1284,19 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque /** * Lists workflows that match the specified filter in the request. * + *

                                              Sample code: + * + *

                                              {@code
                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                              +   *     WorkflowTemplateServiceClient.create()) {
                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                              +   *   for (WorkflowTemplate element :
                                              +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                              +   *     // doThingsWith(element);
                                              +   *   }
                                              +   * }
                                              +   * }
                                              + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                @@ -919,6 +1322,19 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa /** * Lists workflows that match the specified filter in the request. * + *

                                                Sample code: + * + *

                                                {@code
                                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                +   *     WorkflowTemplateServiceClient.create()) {
                                                +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                +   *   for (WorkflowTemplate element :
                                                +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                                +   *     // doThingsWith(element);
                                                +   *   }
                                                +   * }
                                                +   * }
                                                + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                  @@ -944,6 +1360,22 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName /** * Lists workflows that match the specified filter in the request. * + *

                                                  Sample code: + * + *

                                                  {@code
                                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                  +   *     WorkflowTemplateServiceClient.create()) {
                                                  +   *   String parent =
                                                  +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                  +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                  +   *           .toString();
                                                  +   *   for (WorkflowTemplate element :
                                                  +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                                  +   *     // doThingsWith(element);
                                                  +   *   }
                                                  +   * }
                                                  +   * }
                                                  + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                    @@ -967,6 +1399,27 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par /** * Lists workflows that match the specified filter in the request. * + *

                                                    Sample code: + * + *

                                                    {@code
                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                    +   *   ListWorkflowTemplatesRequest request =
                                                    +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                    +   *           .setParent(
                                                    +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                    +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                    +   *                   .toString())
                                                    +   *           .setPageSize(883849137)
                                                    +   *           .setPageToken("pageToken873572522")
                                                    +   *           .build();
                                                    +   *   for (WorkflowTemplate element :
                                                    +   *       workflowTemplateServiceClient.listWorkflowTemplates(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 */ @@ -980,6 +1433,27 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( * Lists workflows that match the specified filter in the request. * *

                                                    Sample code: + * + *

                                                    {@code
                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                    +   *   ListWorkflowTemplatesRequest request =
                                                    +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                    +   *           .setParent(
                                                    +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                    +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                    +   *                   .toString())
                                                    +   *           .setPageSize(883849137)
                                                    +   *           .setPageToken("pageToken873572522")
                                                    +   *           .build();
                                                    +   *   ApiFuture future =
                                                    +   *       workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
                                                    +   *   // Do something.
                                                    +   *   for (WorkflowTemplate element : future.get().iterateAll()) {
                                                    +   *     // doThingsWith(element);
                                                    +   *   }
                                                    +   * }
                                                    +   * }
                                                    */ public final UnaryCallable listWorkflowTemplatesPagedCallable() { @@ -991,6 +1465,25 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( * Lists workflows that match the specified filter in the request. * *

                                                    Sample code: + * + *

                                                    {@code
                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                    +   *   while (true) {
                                                    +   *     ListWorkflowTemplatesResponse response =
                                                    +   *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
                                                    +   *     for (WorkflowTemplate element : response.getResponsesList()) {
                                                    +   *       // doThingsWith(element);
                                                    +   *     }
                                                    +   *     String nextPageToken = response.getNextPageToken();
                                                    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                    +   *     } else {
                                                    +   *       break;
                                                    +   *     }
                                                    +   *   }
                                                    +   * }
                                                    +   * }
                                                    */ public final UnaryCallable listWorkflowTemplatesCallable() { @@ -1001,6 +1494,18 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                    Sample code: + * + *

                                                    {@code
                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                    +   *   WorkflowTemplateName name =
                                                    +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                    +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                                    +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
                                                    +   * }
                                                    +   * }
                                                    + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                      @@ -1028,6 +1533,19 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                      Sample code: + * + *

                                                      {@code
                                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                      +   *     WorkflowTemplateServiceClient.create()) {
                                                      +   *   String name =
                                                      +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                      +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                      +   *           .toString();
                                                      +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
                                                      +   * }
                                                      +   * }
                                                      + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                        @@ -1053,6 +1571,23 @@ public final void deleteWorkflowTemplate(String name) { /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                        Sample code: + * + *

                                                        {@code
                                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                        +   *     WorkflowTemplateServiceClient.create()) {
                                                        +   *   DeleteWorkflowTemplateRequest request =
                                                        +   *       DeleteWorkflowTemplateRequest.newBuilder()
                                                        +   *           .setName(
                                                        +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                        +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                        +   *                   .toString())
                                                        +   *           .setVersion(351608024)
                                                        +   *           .build();
                                                        +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(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 */ @@ -1065,6 +1600,24 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) * Deletes a workflow template. It does not cancel in-progress workflows. * *

                                                        Sample code: + * + *

                                                        {@code
                                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                        +   *     WorkflowTemplateServiceClient.create()) {
                                                        +   *   DeleteWorkflowTemplateRequest request =
                                                        +   *       DeleteWorkflowTemplateRequest.newBuilder()
                                                        +   *           .setName(
                                                        +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                        +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                        +   *                   .toString())
                                                        +   *           .setVersion(351608024)
                                                        +   *           .build();
                                                        +   *   ApiFuture future =
                                                        +   *       workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
                                                        +   *   // Do something.
                                                        +   *   future.get();
                                                        +   * }
                                                        +   * }
                                                        */ public final UnaryCallable deleteWorkflowTemplateCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index 4931bb50..b152ad3c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -23,6 +23,16 @@ * *

                                                        Sample for AutoscalingPolicyServiceClient: * + *

                                                        {@code
                                                        + * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                        + *     AutoscalingPolicyServiceClient.create()) {
                                                        + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                        + *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                        + *   AutoscalingPolicy response =
                                                        + *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                        + * }
                                                        + * }
                                                        + * *

                                                        ======================= ClusterControllerClient ======================= * *

                                                        Service Description: The ClusterControllerService provides methods to manage clusters of @@ -30,17 +40,45 @@ * *

                                                        Sample for ClusterControllerClient: * + *

                                                        {@code
                                                        + * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                        + *   String projectId = "projectId-894832108";
                                                        + *   String region = "region-934795532";
                                                        + *   String clusterName = "clusterName-1141738587";
                                                        + *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                                                        + * }
                                                        + * }
                                                        + * *

                                                        ======================= JobControllerClient ======================= * *

                                                        Service Description: The JobController provides methods to manage jobs. * *

                                                        Sample for JobControllerClient: * + *

                                                        {@code
                                                        + * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                        + *   String projectId = "projectId-894832108";
                                                        + *   String region = "region-934795532";
                                                        + *   Job job = Job.newBuilder().build();
                                                        + *   Job response = jobControllerClient.submitJob(projectId, region, job);
                                                        + * }
                                                        + * }
                                                        + * *

                                                        ======================= WorkflowTemplateServiceClient ======================= * *

                                                        Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

                                                        Sample for WorkflowTemplateServiceClient: + * + *

                                                        {@code
                                                        + * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                        + *     WorkflowTemplateServiceClient.create()) {
                                                        + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                        + *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                        + *   WorkflowTemplate response =
                                                        + *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                        + * }
                                                        + * }
                                                        */ @Generated("by gapic-generator-java") package com.google.cloud.dataproc.v1; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java index 4de0c395..dedaf8ce 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java @@ -43,6 +43,16 @@ *

                                                        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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                        + *     AutoscalingPolicyServiceClient.create()) {
                                                        + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                        + *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                        + *   AutoscalingPolicy response =
                                                        + *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                        + * }
                                                        + * }
                                                        + * *

                                                        Note: close() needs to be called on the AutoscalingPolicyServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -152,6 +162,18 @@ public AutoscalingPolicyServiceStub getStub() { /** * Creates new autoscaling policy. * + *

                                                        Sample code: + * + *

                                                        {@code
                                                        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                        +   *     AutoscalingPolicyServiceClient.create()) {
                                                        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                        +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                        +   *   AutoscalingPolicy response =
                                                        +   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                        +   * }
                                                        +   * }
                                                        + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                          @@ -180,6 +202,18 @@ public final AutoscalingPolicy createAutoscalingPolicy( /** * Creates new autoscaling policy. * + *

                                                          Sample code: + * + *

                                                          {@code
                                                          +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                          +   *     AutoscalingPolicyServiceClient.create()) {
                                                          +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                          +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                          +   *   AutoscalingPolicy response =
                                                          +   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                          +   * }
                                                          +   * }
                                                          + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                            @@ -208,6 +242,21 @@ public final AutoscalingPolicy createAutoscalingPolicy( /** * Creates new autoscaling policy. * + *

                                                            Sample code: + * + *

                                                            {@code
                                                            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                            +   *     AutoscalingPolicyServiceClient.create()) {
                                                            +   *   String parent =
                                                            +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                            +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                            +   *           .toString();
                                                            +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                            +   *   AutoscalingPolicy response =
                                                            +   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                            +   * }
                                                            +   * }
                                                            + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                              @@ -232,6 +281,23 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin /** * Creates new autoscaling policy. * + *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   CreateAutoscalingPolicyRequest request =
                                                              +   *       CreateAutoscalingPolicyRequest.newBuilder()
                                                              +   *           .setParent(
                                                              +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                              +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                              +   *                   .toString())
                                                              +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
                                                              +   *           .build();
                                                              +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 */ @@ -244,6 +310,24 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe * Creates new autoscaling policy. * *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   CreateAutoscalingPolicyRequest request =
                                                              +   *       CreateAutoscalingPolicyRequest.newBuilder()
                                                              +   *           .setParent(
                                                              +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                              +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                              +   *                   .toString())
                                                              +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
                                                              +   *           .build();
                                                              +   *   ApiFuture future =
                                                              +   *       autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
                                                              +   *   // Do something.
                                                              +   *   AutoscalingPolicy response = future.get();
                                                              +   * }
                                                              +   * }
                                                              */ public final UnaryCallable createAutoscalingPolicyCallable() { @@ -256,6 +340,16 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe * *

                                                              Disabled check for update_mask, because all updates will be full replacements. * + *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                              +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
                                                              +   * }
                                                              +   * }
                                                              + * * @param policy Required. The updated autoscaling policy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -271,6 +365,19 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) * *

                                                              Disabled check for update_mask, because all updates will be full replacements. * + *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   UpdateAutoscalingPolicyRequest request =
                                                              +   *       UpdateAutoscalingPolicyRequest.newBuilder()
                                                              +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
                                                              +   *           .build();
                                                              +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 */ @@ -285,6 +392,20 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe *

                                                              Disabled check for update_mask, because all updates will be full replacements. * *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   UpdateAutoscalingPolicyRequest request =
                                                              +   *       UpdateAutoscalingPolicyRequest.newBuilder()
                                                              +   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
                                                              +   *           .build();
                                                              +   *   ApiFuture future =
                                                              +   *       autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
                                                              +   *   // Do something.
                                                              +   *   AutoscalingPolicy response = future.get();
                                                              +   * }
                                                              +   * }
                                                              */ public final UnaryCallable updateAutoscalingPolicyCallable() { @@ -295,6 +416,18 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe /** * Retrieves autoscaling policy. * + *

                                                              Sample code: + * + *

                                                              {@code
                                                              +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                              +   *     AutoscalingPolicyServiceClient.create()) {
                                                              +   *   AutoscalingPolicyName name =
                                                              +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                              +   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
                                                              +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
                                                              +   * }
                                                              +   * }
                                                              + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                @@ -322,6 +455,19 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) /** * Retrieves autoscaling policy. * + *

                                                                Sample code: + * + *

                                                                {@code
                                                                +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                +   *     AutoscalingPolicyServiceClient.create()) {
                                                                +   *   String name =
                                                                +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                +   *           .toString();
                                                                +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
                                                                +   * }
                                                                +   * }
                                                                + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                  @@ -347,6 +493,22 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) { /** * Retrieves autoscaling policy. * + *

                                                                  Sample code: + * + *

                                                                  {@code
                                                                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                  +   *     AutoscalingPolicyServiceClient.create()) {
                                                                  +   *   GetAutoscalingPolicyRequest request =
                                                                  +   *       GetAutoscalingPolicyRequest.newBuilder()
                                                                  +   *           .setName(
                                                                  +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                  +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                  +   *                   .toString())
                                                                  +   *           .build();
                                                                  +   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 */ @@ -359,6 +521,23 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest * Retrieves autoscaling policy. * *

                                                                  Sample code: + * + *

                                                                  {@code
                                                                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                  +   *     AutoscalingPolicyServiceClient.create()) {
                                                                  +   *   GetAutoscalingPolicyRequest request =
                                                                  +   *       GetAutoscalingPolicyRequest.newBuilder()
                                                                  +   *           .setName(
                                                                  +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                  +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                  +   *                   .toString())
                                                                  +   *           .build();
                                                                  +   *   ApiFuture future =
                                                                  +   *       autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
                                                                  +   *   // Do something.
                                                                  +   *   AutoscalingPolicy response = future.get();
                                                                  +   * }
                                                                  +   * }
                                                                  */ public final UnaryCallable getAutoscalingPolicyCallable() { @@ -369,6 +548,19 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest /** * Lists autoscaling policies in the project. * + *

                                                                  Sample code: + * + *

                                                                  {@code
                                                                  +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                  +   *     AutoscalingPolicyServiceClient.create()) {
                                                                  +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                  +   *   for (AutoscalingPolicy element :
                                                                  +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
                                                                  +   *     // doThingsWith(element);
                                                                  +   *   }
                                                                  +   * }
                                                                  +   * }
                                                                  + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                    @@ -394,6 +586,19 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati /** * Lists autoscaling policies in the project. * + *

                                                                    Sample code: + * + *

                                                                    {@code
                                                                    +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                    +   *     AutoscalingPolicyServiceClient.create()) {
                                                                    +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                                    +   *   for (AutoscalingPolicy element :
                                                                    +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
                                                                    +   *     // doThingsWith(element);
                                                                    +   *   }
                                                                    +   * }
                                                                    +   * }
                                                                    + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                      @@ -419,6 +624,22 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region /** * Lists autoscaling policies in the project. * + *

                                                                      Sample code: + * + *

                                                                      {@code
                                                                      +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                      +   *     AutoscalingPolicyServiceClient.create()) {
                                                                      +   *   String parent =
                                                                      +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                      +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                      +   *           .toString();
                                                                      +   *   for (AutoscalingPolicy element :
                                                                      +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
                                                                      +   *     // doThingsWith(element);
                                                                      +   *   }
                                                                      +   * }
                                                                      +   * }
                                                                      + * * @param parent Required. The "resource name" of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                        @@ -442,6 +663,27 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String /** * Lists autoscaling policies in the project. * + *

                                                                        Sample code: + * + *

                                                                        {@code
                                                                        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                        +   *     AutoscalingPolicyServiceClient.create()) {
                                                                        +   *   ListAutoscalingPoliciesRequest request =
                                                                        +   *       ListAutoscalingPoliciesRequest.newBuilder()
                                                                        +   *           .setParent(
                                                                        +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                        +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                        +   *                   .toString())
                                                                        +   *           .setPageSize(883849137)
                                                                        +   *           .setPageToken("pageToken873572522")
                                                                        +   *           .build();
                                                                        +   *   for (AutoscalingPolicy element :
                                                                        +   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(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 */ @@ -455,6 +697,27 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Lists autoscaling policies in the project. * *

                                                                        Sample code: + * + *

                                                                        {@code
                                                                        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                        +   *     AutoscalingPolicyServiceClient.create()) {
                                                                        +   *   ListAutoscalingPoliciesRequest request =
                                                                        +   *       ListAutoscalingPoliciesRequest.newBuilder()
                                                                        +   *           .setParent(
                                                                        +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                        +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                        +   *                   .toString())
                                                                        +   *           .setPageSize(883849137)
                                                                        +   *           .setPageToken("pageToken873572522")
                                                                        +   *           .build();
                                                                        +   *   ApiFuture future =
                                                                        +   *       autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
                                                                        +   *   // Do something.
                                                                        +   *   for (AutoscalingPolicy element : future.get().iterateAll()) {
                                                                        +   *     // doThingsWith(element);
                                                                        +   *   }
                                                                        +   * }
                                                                        +   * }
                                                                        */ public final UnaryCallable listAutoscalingPoliciesPagedCallable() { @@ -466,6 +729,25 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Lists autoscaling policies in the project. * *

                                                                        Sample code: + * + *

                                                                        {@code
                                                                        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                        +   *     AutoscalingPolicyServiceClient.create()) {
                                                                        +   *   while (true) {
                                                                        +   *     ListAutoscalingPoliciesResponse response =
                                                                        +   *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
                                                                        +   *     for (AutoscalingPolicy element : response.getResponsesList()) {
                                                                        +   *       // doThingsWith(element);
                                                                        +   *     }
                                                                        +   *     String nextPageToken = response.getNextPageToken();
                                                                        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                        +   *     } else {
                                                                        +   *       break;
                                                                        +   *     }
                                                                        +   *   }
                                                                        +   * }
                                                                        +   * }
                                                                        */ public final UnaryCallable listAutoscalingPoliciesCallable() { @@ -477,6 +759,18 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                                                                        Sample code: + * + *

                                                                        {@code
                                                                        +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                        +   *     AutoscalingPolicyServiceClient.create()) {
                                                                        +   *   AutoscalingPolicyName name =
                                                                        +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                        +   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
                                                                        +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
                                                                        +   * }
                                                                        +   * }
                                                                        + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                          @@ -505,6 +799,19 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                                                                          Sample code: + * + *

                                                                          {@code
                                                                          +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                          +   *     AutoscalingPolicyServiceClient.create()) {
                                                                          +   *   String name =
                                                                          +   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                          +   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                          +   *           .toString();
                                                                          +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
                                                                          +   * }
                                                                          +   * }
                                                                          + * * @param name Required. The "resource name" of the autoscaling policy, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                            @@ -531,6 +838,22 @@ public final void deleteAutoscalingPolicy(String name) { * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by * one or more clusters. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                            +   *     AutoscalingPolicyServiceClient.create()) {
                                                                            +   *   DeleteAutoscalingPolicyRequest request =
                                                                            +   *       DeleteAutoscalingPolicyRequest.newBuilder()
                                                                            +   *           .setName(
                                                                            +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                            +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                            +   *                   .toString())
                                                                            +   *           .build();
                                                                            +   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(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 */ @@ -544,6 +867,23 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request * one or more clusters. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                            +   *     AutoscalingPolicyServiceClient.create()) {
                                                                            +   *   DeleteAutoscalingPolicyRequest request =
                                                                            +   *       DeleteAutoscalingPolicyRequest.newBuilder()
                                                                            +   *           .setName(
                                                                            +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                            +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                            +   *                   .toString())
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable deleteAutoscalingPolicyCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index cebe3f20..e22a9611 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -48,6 +48,15 @@ *

                                                                            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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            + *   String projectId = "projectId-894832108";
                                                                            + *   String region = "region-934795532";
                                                                            + *   String clusterName = "clusterName-1141738587";
                                                                            + *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                                                                            + * }
                                                                            + * }
                                                                            + * *

                                                                            Note: close() needs to be called on the ClusterControllerClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). @@ -168,6 +177,18 @@ public final OperationsClient getOperationsClient() { * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   Cluster cluster = Cluster.newBuilder().build();
                                                                            +   *   Cluster response =
                                                                            +   *       clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -191,6 +212,21 @@ public final OperationFuture createClusterAsy * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   CreateClusterRequest request =
                                                                            +   *       CreateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   Cluster response = clusterControllerClient.createClusterAsync(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 */ @@ -206,6 +242,22 @@ public final OperationFuture createClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   CreateClusterRequest request =
                                                                            +   *       CreateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   OperationFuture future =
                                                                            +   *       clusterControllerClient.createClusterOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Cluster response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final OperationCallable createClusterOperationCallable() { @@ -219,6 +271,22 @@ public final OperationFuture createClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   CreateClusterRequest request =
                                                                            +   *       CreateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       clusterControllerClient.createClusterCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Operation response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable createClusterCallable() { return stub.createClusterCallable(); @@ -230,6 +298,22 @@ public final UnaryCallable createClusterCallabl * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String clusterName = "clusterName-1141738587";
                                                                            +   *   Cluster cluster = Cluster.newBuilder().build();
                                                                            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                                                            +   *   Cluster response =
                                                                            +   *       clusterControllerClient
                                                                            +   *           .updateClusterAsync(projectId, region, clusterName, cluster, updateMask)
                                                                            +   *           .get();
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param clusterName Required. The cluster name. @@ -281,6 +365,24 @@ public final OperationFuture updateClusterAsy * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   UpdateClusterRequest request =
                                                                            +   *       UpdateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                                                                            +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   Cluster response = clusterControllerClient.updateClusterAsync(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 */ @@ -296,6 +398,25 @@ public final OperationFuture updateClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   UpdateClusterRequest request =
                                                                            +   *       UpdateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                                                                            +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   OperationFuture future =
                                                                            +   *       clusterControllerClient.updateClusterOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Cluster response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final OperationCallable updateClusterOperationCallable() { @@ -309,6 +430,25 @@ public final OperationFuture updateClusterAsy * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   UpdateClusterRequest request =
                                                                            +   *       UpdateClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setCluster(Cluster.newBuilder().build())
                                                                            +   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
                                                                            +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       clusterControllerClient.updateClusterCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Operation response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable updateClusterCallable() { return stub.updateClusterCallable(); @@ -320,6 +460,17 @@ public final UnaryCallable updateClusterCallabl * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String clusterName = "clusterName-1141738587";
                                                                            +   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -343,6 +494,22 @@ public final OperationFuture deleteClusterAsync * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DeleteClusterRequest request =
                                                                            +   *       DeleteClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   clusterControllerClient.deleteClusterAsync(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 */ @@ -358,6 +525,23 @@ public final OperationFuture deleteClusterAsync * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DeleteClusterRequest request =
                                                                            +   *       DeleteClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   OperationFuture future =
                                                                            +   *       clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final OperationCallable deleteClusterOperationCallable() { @@ -371,6 +555,23 @@ public final OperationFuture deleteClusterAsync * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DeleteClusterRequest request =
                                                                            +   *       DeleteClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       clusterControllerClient.deleteClusterCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable deleteClusterCallable() { return stub.deleteClusterCallable(); @@ -380,6 +581,17 @@ public final UnaryCallable deleteClusterCallabl /** * Gets the resource representation for a cluster in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String clusterName = "clusterName-1141738587";
                                                                            +   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -400,6 +612,20 @@ public final Cluster getCluster(String projectId, String region, String clusterN /** * Gets the resource representation for a cluster in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   GetClusterRequest request =
                                                                            +   *       GetClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .build();
                                                                            +   *   Cluster response = clusterControllerClient.getCluster(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 */ @@ -412,6 +638,20 @@ public final Cluster getCluster(GetClusterRequest request) { * Gets the resource representation for a cluster in a project. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   GetClusterRequest request =
                                                                            +   *       GetClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Cluster response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable getClusterCallable() { return stub.getClusterCallable(); @@ -421,6 +661,18 @@ public final UnaryCallable getClusterCallable() { /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -436,6 +688,20 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String filter = "filter-1274492040";
                                                                            +   *   for (Cluster element :
                                                                            +   *       clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -470,6 +736,24 @@ public final ListClustersPagedResponse listClusters( /** * Lists all regions/{region}/clusters in a project alphabetically. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   ListClustersRequest request =
                                                                            +   *       ListClustersRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setFilter("filter-1274492040")
                                                                            +   *           .setPageSize(883849137)
                                                                            +   *           .setPageToken("pageToken873572522")
                                                                            +   *           .build();
                                                                            +   *   for (Cluster element : clusterControllerClient.listClusters(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 */ @@ -482,6 +766,25 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * Lists all regions/{region}/clusters in a project alphabetically. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   ListClustersRequest request =
                                                                            +   *       ListClustersRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setFilter("filter-1274492040")
                                                                            +   *           .setPageSize(883849137)
                                                                            +   *           .setPageToken("pageToken873572522")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       clusterControllerClient.listClustersPagedCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   for (Cluster element : future.get().iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable listClustersPagedCallable() { @@ -493,6 +796,24 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request) * Lists all regions/{region}/clusters in a project alphabetically. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   while (true) {
                                                                            +   *     ListClustersResponse response =
                                                                            +   *         clusterControllerClient.listClustersCallable().call(request);
                                                                            +   *     for (Cluster element : response.getResponsesList()) {
                                                                            +   *       // doThingsWith(element);
                                                                            +   *     }
                                                                            +   *     String nextPageToken = response.getNextPageToken();
                                                                            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                            +   *     } else {
                                                                            +   *       break;
                                                                            +   *     }
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable listClustersCallable() { return stub.listClustersCallable(); @@ -506,6 +827,17 @@ public final UnaryCallable listCluste * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String clusterName = "clusterName-1141738587";
                                                                            +   *   clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs * to. * @param region Required. The Dataproc region in which to handle the request. @@ -531,6 +863,20 @@ public final OperationFuture diagnoseClusterAsy * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DiagnoseClusterRequest request =
                                                                            +   *       DiagnoseClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .build();
                                                                            +   *   clusterControllerClient.diagnoseClusterAsync(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 */ @@ -548,6 +894,21 @@ public final OperationFuture diagnoseClusterAsy * contains [Empty][google.protobuf.Empty]. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DiagnoseClusterRequest request =
                                                                            +   *       DiagnoseClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .build();
                                                                            +   *   OperationFuture future =
                                                                            +   *       clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final OperationCallable diagnoseClusterOperationCallable() { @@ -563,6 +924,21 @@ public final OperationFuture diagnoseClusterAsy * contains [Empty][google.protobuf.Empty]. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                            +   *   DiagnoseClusterRequest request =
                                                                            +   *       DiagnoseClusterRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       clusterControllerClient.diagnoseClusterCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable diagnoseClusterCallable() { return stub.diagnoseClusterCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 9e0fefd5..0ffd23e4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -46,6 +46,15 @@ *

                                                                            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 (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            + *   String projectId = "projectId-894832108";
                                                                            + *   String region = "region-934795532";
                                                                            + *   Job job = Job.newBuilder().build();
                                                                            + *   Job response = jobControllerClient.submitJob(projectId, region, job);
                                                                            + * }
                                                                            + * }
                                                                            + * *

                                                                            Note: close() needs to be called on the JobControllerClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * @@ -161,6 +170,17 @@ public final OperationsClient getOperationsClient() { /** * Submits a job to a cluster. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   Job job = Job.newBuilder().build();
                                                                            +   *   Job response = jobControllerClient.submitJob(projectId, region, job);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -176,6 +196,21 @@ public final Job submitJob(String projectId, String region, Job job) { /** * Submits a job to a cluster. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   SubmitJobRequest request =
                                                                            +   *       SubmitJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   Job response = jobControllerClient.submitJob(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 */ @@ -188,6 +223,21 @@ public final Job submitJob(SubmitJobRequest request) { * Submits a job to a cluster. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   SubmitJobRequest request =
                                                                            +   *       SubmitJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Job response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable submitJobCallable() { return stub.submitJobCallable(); @@ -197,6 +247,17 @@ public final UnaryCallable submitJobCallable() { /** * Submits job to a cluster. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   Job job = Job.newBuilder().build();
                                                                            +   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param job Required. The job resource. @@ -213,6 +274,21 @@ public final OperationFuture submitJobAsOperationAsync( /** * Submits job to a cluster. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   SubmitJobRequest request =
                                                                            +   *       SubmitJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 */ @@ -226,6 +302,22 @@ public final OperationFuture submitJobAsOperationAsync( * Submits job to a cluster. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   SubmitJobRequest request =
                                                                            +   *       SubmitJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   OperationFuture future =
                                                                            +   *       jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Job response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final OperationCallable submitJobAsOperationOperationCallable() { @@ -237,6 +329,22 @@ public final OperationFuture submitJobAsOperationAsync( * Submits job to a cluster. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   SubmitJobRequest request =
                                                                            +   *       SubmitJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setRequestId("requestId693933066")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future =
                                                                            +   *       jobControllerClient.submitJobAsOperationCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Operation response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable submitJobAsOperationCallable() { return stub.submitJobAsOperationCallable(); @@ -246,6 +354,17 @@ public final UnaryCallable submitJobAsOperationCall /** * Gets the resource representation for a job in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String jobId = "jobId101296568";
                                                                            +   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -265,6 +384,20 @@ public final Job getJob(String projectId, String region, String jobId) { /** * Gets the resource representation for a job in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   GetJobRequest request =
                                                                            +   *       GetJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   Job response = jobControllerClient.getJob(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 */ @@ -277,6 +410,20 @@ public final Job getJob(GetJobRequest request) { * Gets the resource representation for a job in a project. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   GetJobRequest request =
                                                                            +   *       GetJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.getJobCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Job response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable getJobCallable() { return stub.getJobCallable(); @@ -286,6 +433,18 @@ public final UnaryCallable getJobCallable() { /** * Lists regions/{region}/jobs in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -300,6 +459,19 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) { /** * Lists regions/{region}/jobs in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String filter = "filter-1274492040";
                                                                            +   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and @@ -327,6 +499,25 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str /** * Lists regions/{region}/jobs in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   ListJobsRequest request =
                                                                            +   *       ListJobsRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setPageSize(883849137)
                                                                            +   *           .setPageToken("pageToken873572522")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setFilter("filter-1274492040")
                                                                            +   *           .build();
                                                                            +   *   for (Job element : jobControllerClient.listJobs(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 */ @@ -339,6 +530,25 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { * Lists regions/{region}/jobs in a project. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   ListJobsRequest request =
                                                                            +   *       ListJobsRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setPageSize(883849137)
                                                                            +   *           .setPageToken("pageToken873572522")
                                                                            +   *           .setClusterName("clusterName-1141738587")
                                                                            +   *           .setFilter("filter-1274492040")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   for (Job element : future.get().iterateAll()) {
                                                                            +   *     // doThingsWith(element);
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable listJobsPagedCallable() { return stub.listJobsPagedCallable(); @@ -349,6 +559,23 @@ public final UnaryCallable listJobsPaged * Lists regions/{region}/jobs in a project. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   while (true) {
                                                                            +   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
                                                                            +   *     for (Job element : response.getResponsesList()) {
                                                                            +   *       // doThingsWith(element);
                                                                            +   *     }
                                                                            +   *     String nextPageToken = response.getNextPageToken();
                                                                            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                            +   *     } else {
                                                                            +   *       break;
                                                                            +   *     }
                                                                            +   *   }
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable listJobsCallable() { return stub.listJobsCallable(); @@ -358,6 +585,22 @@ public final UnaryCallable listJobsCallable() /** * Updates a job in a project. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   UpdateJobRequest request =
                                                                            +   *       UpdateJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                            +   *           .build();
                                                                            +   *   Job response = jobControllerClient.updateJob(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 */ @@ -370,6 +613,22 @@ public final Job updateJob(UpdateJobRequest request) { * Updates a job in a project. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   UpdateJobRequest request =
                                                                            +   *       UpdateJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .setJob(Job.newBuilder().build())
                                                                            +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Job response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable updateJobCallable() { return stub.updateJobCallable(); @@ -382,6 +641,17 @@ public final UnaryCallable updateJobCallable() { * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String jobId = "jobId101296568";
                                                                            +   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -404,6 +674,20 @@ public final Job cancelJob(String projectId, String region, String jobId) { * or * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   CancelJobRequest request =
                                                                            +   *       CancelJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   Job response = jobControllerClient.cancelJob(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 */ @@ -419,6 +703,20 @@ public final Job cancelJob(CancelJobRequest request) { * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   CancelJobRequest request =
                                                                            +   *       CancelJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   Job response = future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable cancelJobCallable() { return stub.cancelJobCallable(); @@ -429,6 +727,17 @@ public final UnaryCallable cancelJobCallable() { * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   String projectId = "projectId-894832108";
                                                                            +   *   String region = "region-934795532";
                                                                            +   *   String jobId = "jobId101296568";
                                                                            +   *   jobControllerClient.deleteJob(projectId, region, jobId);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param region Required. The Dataproc region in which to handle the request. * @param jobId Required. The job ID. @@ -449,6 +758,20 @@ public final void deleteJob(String projectId, String region, String jobId) { * Deletes the job from the project. If the job is active, the delete fails, and the response * returns `FAILED_PRECONDITION`. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   DeleteJobRequest request =
                                                                            +   *       DeleteJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   jobControllerClient.deleteJob(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 */ @@ -462,6 +785,20 @@ public final void deleteJob(DeleteJobRequest request) { * returns `FAILED_PRECONDITION`. * *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                            +   *   DeleteJobRequest request =
                                                                            +   *       DeleteJobRequest.newBuilder()
                                                                            +   *           .setProjectId("projectId-894832108")
                                                                            +   *           .setRegion("region-934795532")
                                                                            +   *           .setJobId("jobId101296568")
                                                                            +   *           .build();
                                                                            +   *   ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request);
                                                                            +   *   // Do something.
                                                                            +   *   future.get();
                                                                            +   * }
                                                                            +   * }
                                                                            */ public final UnaryCallable deleteJobCallable() { return stub.deleteJobCallable(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 7d13b92a..99f89e98 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -47,6 +47,16 @@ *

                                                                            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 (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                            + *     WorkflowTemplateServiceClient.create()) {
                                                                            + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                            + *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                            + *   WorkflowTemplate response =
                                                                            + *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                                            + * }
                                                                            + * }
                                                                            + * *

                                                                            Note: close() needs to be called on the WorkflowTemplateServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -166,6 +176,18 @@ public final OperationsClient getOperationsClient() { /** * Creates new workflow template. * + *

                                                                            Sample code: + * + *

                                                                            {@code
                                                                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                            +   *     WorkflowTemplateServiceClient.create()) {
                                                                            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                            +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                            +   *   WorkflowTemplate response =
                                                                            +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                                            +   * }
                                                                            +   * }
                                                                            + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                              @@ -194,6 +216,18 @@ public final WorkflowTemplate createWorkflowTemplate( /** * Creates new workflow template. * + *

                                                                              Sample code: + * + *

                                                                              {@code
                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                              +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                                              +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                              +   *   WorkflowTemplate response =
                                                                              +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                                              +   * }
                                                                              +   * }
                                                                              + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                @@ -222,6 +256,21 @@ public final WorkflowTemplate createWorkflowTemplate( /** * Creates new workflow template. * + *

                                                                                Sample code: + * + *

                                                                                {@code
                                                                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                +   *     WorkflowTemplateServiceClient.create()) {
                                                                                +   *   String parent =
                                                                                +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                +   *           .toString();
                                                                                +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                +   *   WorkflowTemplate response =
                                                                                +   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                                                +   * }
                                                                                +   * }
                                                                                + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                  @@ -246,6 +295,23 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp /** * Creates new workflow template. * + *

                                                                                  Sample code: + * + *

                                                                                  {@code
                                                                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                  +   *     WorkflowTemplateServiceClient.create()) {
                                                                                  +   *   CreateWorkflowTemplateRequest request =
                                                                                  +   *       CreateWorkflowTemplateRequest.newBuilder()
                                                                                  +   *           .setParent(
                                                                                  +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                  +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                  +   *                   .toString())
                                                                                  +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                  +   *           .build();
                                                                                  +   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 */ @@ -258,6 +324,24 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque * Creates new workflow template. * *

                                                                                  Sample code: + * + *

                                                                                  {@code
                                                                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                  +   *     WorkflowTemplateServiceClient.create()) {
                                                                                  +   *   CreateWorkflowTemplateRequest request =
                                                                                  +   *       CreateWorkflowTemplateRequest.newBuilder()
                                                                                  +   *           .setParent(
                                                                                  +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                  +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                  +   *                   .toString())
                                                                                  +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                  +   *           .build();
                                                                                  +   *   ApiFuture future =
                                                                                  +   *       workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
                                                                                  +   *   // Do something.
                                                                                  +   *   WorkflowTemplate response = future.get();
                                                                                  +   * }
                                                                                  +   * }
                                                                                  */ public final UnaryCallable createWorkflowTemplateCallable() { @@ -270,6 +354,18 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque * *

                                                                                  Can retrieve previously instantiated template by specifying optional version parameter. * + *

                                                                                  Sample code: + * + *

                                                                                  {@code
                                                                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                  +   *     WorkflowTemplateServiceClient.create()) {
                                                                                  +   *   WorkflowTemplateName name =
                                                                                  +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                  +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                                                                  +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
                                                                                  +   * }
                                                                                  +   * }
                                                                                  + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                    @@ -299,6 +395,19 @@ public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { * *

                                                                                    Can retrieve previously instantiated template by specifying optional version parameter. * + *

                                                                                    Sample code: + * + *

                                                                                    {@code
                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                    +   *   String name =
                                                                                    +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                    +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                    +   *           .toString();
                                                                                    +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
                                                                                    +   * }
                                                                                    +   * }
                                                                                    + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                      @@ -326,6 +435,23 @@ public final WorkflowTemplate getWorkflowTemplate(String name) { * *

                                                                                      Can retrieve previously instantiated template by specifying optional version parameter. * + *

                                                                                      Sample code: + * + *

                                                                                      {@code
                                                                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                      +   *     WorkflowTemplateServiceClient.create()) {
                                                                                      +   *   GetWorkflowTemplateRequest request =
                                                                                      +   *       GetWorkflowTemplateRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                      +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .setVersion(351608024)
                                                                                      +   *           .build();
                                                                                      +   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 */ @@ -340,6 +466,24 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

                                                                                      Can retrieve previously instantiated template by specifying optional version parameter. * *

                                                                                      Sample code: + * + *

                                                                                      {@code
                                                                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                      +   *     WorkflowTemplateServiceClient.create()) {
                                                                                      +   *   GetWorkflowTemplateRequest request =
                                                                                      +   *       GetWorkflowTemplateRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                      +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .setVersion(351608024)
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   WorkflowTemplate response = future.get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      */ public final UnaryCallable getWorkflowTemplateCallable() { @@ -366,6 +510,18 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

                                                                                      On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                      Sample code: + * + *

                                                                                      {@code
                                                                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                      +   *     WorkflowTemplateServiceClient.create()) {
                                                                                      +   *   WorkflowTemplateName name =
                                                                                      +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                      +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                                                                      +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                        @@ -410,6 +566,19 @@ public final OperationFuture instantiateWorkflowTemplat *

                                                                                        On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                        Sample code: + * + *

                                                                                        {@code
                                                                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                        +   *     WorkflowTemplateServiceClient.create()) {
                                                                                        +   *   String name =
                                                                                        +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                        +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                        +   *           .toString();
                                                                                        +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
                                                                                        +   * }
                                                                                        +   * }
                                                                                        + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                          @@ -452,6 +621,19 @@ public final OperationFuture instantiateWorkflowTemplat *

                                                                                          On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                          Sample code: + * + *

                                                                                          {@code
                                                                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                          +   *     WorkflowTemplateServiceClient.create()) {
                                                                                          +   *   WorkflowTemplateName name =
                                                                                          +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                          +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                                                                          +   *   Map parameters = new HashMap<>();
                                                                                          +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
                                                                                          +   * }
                                                                                          +   * }
                                                                                          + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                            @@ -499,6 +681,20 @@ public final OperationFuture instantiateWorkflowTemplat *

                                                                                            On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                            Sample code: + * + *

                                                                                            {@code
                                                                                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                            +   *     WorkflowTemplateServiceClient.create()) {
                                                                                            +   *   String name =
                                                                                            +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                            +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                            +   *           .toString();
                                                                                            +   *   Map parameters = new HashMap<>();
                                                                                            +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
                                                                                            +   * }
                                                                                            +   * }
                                                                                            + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                              @@ -546,6 +742,26 @@ public final OperationFuture instantiateWorkflowTemplat *

                                                                                              On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                              +   *   InstantiateWorkflowTemplateRequest request =
                                                                                              +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setVersion(351608024)
                                                                                              +   *           .setInstanceId("instanceId902024336")
                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                              +   *           .putAllParameters(new HashMap())
                                                                                              +   *           .build();
                                                                                              +   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 */ @@ -575,6 +791,29 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                              +   *   InstantiateWorkflowTemplateRequest request =
                                                                                              +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setVersion(351608024)
                                                                                              +   *           .setInstanceId("instanceId902024336")
                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                              +   *           .putAllParameters(new HashMap())
                                                                                              +   *           .build();
                                                                                              +   *   OperationFuture future =
                                                                                              +   *       workflowTemplateServiceClient
                                                                                              +   *           .instantiateWorkflowTemplateOperationCallable()
                                                                                              +   *           .futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              */ public final OperationCallable instantiateWorkflowTemplateOperationCallable() { @@ -602,6 +841,27 @@ public final OperationFuture instantiateWorkflowTemplat * be [Empty][google.protobuf.Empty]. * *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                              +   *   InstantiateWorkflowTemplateRequest request =
                                                                                              +   *       InstantiateWorkflowTemplateRequest.newBuilder()
                                                                                              +   *           .setName(
                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                              +   *                   .toString())
                                                                                              +   *           .setVersion(351608024)
                                                                                              +   *           .setInstanceId("instanceId902024336")
                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                              +   *           .putAllParameters(new HashMap())
                                                                                              +   *           .build();
                                                                                              +   *   ApiFuture future =
                                                                                              +   *       workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
                                                                                              +   *   // Do something.
                                                                                              +   *   future.get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              */ public final UnaryCallable instantiateWorkflowTemplateCallable() { @@ -633,6 +893,17 @@ public final OperationFuture instantiateWorkflowTemplat *

                                                                                              On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                              Sample code: + * + *

                                                                                              {@code
                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                              +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                              +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                                                                              +   * }
                                                                                              +   * }
                                                                                              + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                @@ -682,6 +953,17 @@ public final OperationFuture instantiateInlineWorkflowT *

                                                                                                On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                                Sample code: + * + *

                                                                                                {@code
                                                                                                +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                                                                +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                                +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                                                                                +   * }
                                                                                                +   * }
                                                                                                + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                  @@ -731,6 +1013,20 @@ public final OperationFuture instantiateInlineWorkflowT *

                                                                                                  On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                                  Sample code: + * + *

                                                                                                  {@code
                                                                                                  +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                  +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                  +   *   String parent =
                                                                                                  +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                  +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                  +   *           .toString();
                                                                                                  +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                                  +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
                                                                                                  +   * }
                                                                                                  +   * }
                                                                                                  + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                    @@ -780,6 +1076,25 @@ public final OperationFuture instantiateInlineWorkflowT *

                                                                                                    On successful completion, [Operation.response][google.longrunning.Operation.response] will * be [Empty][google.protobuf.Empty]. * + *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   InstantiateInlineWorkflowTemplateRequest request =
                                                                                                    +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                                                                                    +   *           .setParent(
                                                                                                    +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                    +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                    +   *                   .toString())
                                                                                                    +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                                    +   *           .setInstanceId("instanceId902024336")
                                                                                                    +   *           .setRequestId("requestId693933066")
                                                                                                    +   *           .build();
                                                                                                    +   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 */ @@ -814,6 +1129,28 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   InstantiateInlineWorkflowTemplateRequest request =
                                                                                                    +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                                                                                    +   *           .setParent(
                                                                                                    +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                    +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                    +   *                   .toString())
                                                                                                    +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                                    +   *           .setInstanceId("instanceId902024336")
                                                                                                    +   *           .setRequestId("requestId693933066")
                                                                                                    +   *           .build();
                                                                                                    +   *   OperationFuture future =
                                                                                                    +   *       workflowTemplateServiceClient
                                                                                                    +   *           .instantiateInlineWorkflowTemplateOperationCallable()
                                                                                                    +   *           .futureCall(request);
                                                                                                    +   *   // Do something.
                                                                                                    +   *   future.get();
                                                                                                    +   * }
                                                                                                    +   * }
                                                                                                    */ public final OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { @@ -846,6 +1183,28 @@ public final OperationFuture instantiateInlineWorkflowT * be [Empty][google.protobuf.Empty]. * *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   InstantiateInlineWorkflowTemplateRequest request =
                                                                                                    +   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
                                                                                                    +   *           .setParent(
                                                                                                    +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                    +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                    +   *                   .toString())
                                                                                                    +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                                    +   *           .setInstanceId("instanceId902024336")
                                                                                                    +   *           .setRequestId("requestId693933066")
                                                                                                    +   *           .build();
                                                                                                    +   *   ApiFuture future =
                                                                                                    +   *       workflowTemplateServiceClient
                                                                                                    +   *           .instantiateInlineWorkflowTemplateCallable()
                                                                                                    +   *           .futureCall(request);
                                                                                                    +   *   // Do something.
                                                                                                    +   *   future.get();
                                                                                                    +   * }
                                                                                                    +   * }
                                                                                                    */ public final UnaryCallable instantiateInlineWorkflowTemplateCallable() { @@ -857,6 +1216,16 @@ public final OperationFuture instantiateInlineWorkflowT * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * + *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                                    +   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
                                                                                                    +   * }
                                                                                                    +   * }
                                                                                                    + * * @param template Required. The updated workflow template. *

                                                                                                    The `template.version` field must match the current version. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -872,6 +1241,19 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) * Updates (replaces) workflow template. The updated template must contain version that matches * the current server version. * + *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   UpdateWorkflowTemplateRequest request =
                                                                                                    +   *       UpdateWorkflowTemplateRequest.newBuilder()
                                                                                                    +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                                    +   *           .build();
                                                                                                    +   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 */ @@ -885,6 +1267,20 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque * the current server version. * *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   UpdateWorkflowTemplateRequest request =
                                                                                                    +   *       UpdateWorkflowTemplateRequest.newBuilder()
                                                                                                    +   *           .setTemplate(WorkflowTemplate.newBuilder().build())
                                                                                                    +   *           .build();
                                                                                                    +   *   ApiFuture future =
                                                                                                    +   *       workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
                                                                                                    +   *   // Do something.
                                                                                                    +   *   WorkflowTemplate response = future.get();
                                                                                                    +   * }
                                                                                                    +   * }
                                                                                                    */ public final UnaryCallable updateWorkflowTemplateCallable() { @@ -895,6 +1291,19 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque /** * Lists workflows that match the specified filter in the request. * + *

                                                                                                    Sample code: + * + *

                                                                                                    {@code
                                                                                                    +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                    +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                    +   *   for (WorkflowTemplate element :
                                                                                                    +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                                                                                    +   *     // doThingsWith(element);
                                                                                                    +   *   }
                                                                                                    +   * }
                                                                                                    +   * }
                                                                                                    + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                      @@ -920,6 +1329,19 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa /** * Lists workflows that match the specified filter in the request. * + *

                                                                                                      Sample code: + * + *

                                                                                                      {@code
                                                                                                      +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                      +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                      +   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
                                                                                                      +   *   for (WorkflowTemplate element :
                                                                                                      +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                                                                                      +   *     // doThingsWith(element);
                                                                                                      +   *   }
                                                                                                      +   * }
                                                                                                      +   * }
                                                                                                      + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                        @@ -945,6 +1367,22 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName /** * Lists workflows that match the specified filter in the request. * + *

                                                                                                        Sample code: + * + *

                                                                                                        {@code
                                                                                                        +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                        +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                        +   *   String parent =
                                                                                                        +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                        +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                        +   *           .toString();
                                                                                                        +   *   for (WorkflowTemplate element :
                                                                                                        +   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
                                                                                                        +   *     // doThingsWith(element);
                                                                                                        +   *   }
                                                                                                        +   * }
                                                                                                        +   * }
                                                                                                        + * * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                          @@ -968,6 +1406,27 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par /** * Lists workflows that match the specified filter in the request. * + *

                                                                                                          Sample code: + * + *

                                                                                                          {@code
                                                                                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                          +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                          +   *   ListWorkflowTemplatesRequest request =
                                                                                                          +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                                                                          +   *           .setParent(
                                                                                                          +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                          +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                          +   *                   .toString())
                                                                                                          +   *           .setPageSize(883849137)
                                                                                                          +   *           .setPageToken("pageToken873572522")
                                                                                                          +   *           .build();
                                                                                                          +   *   for (WorkflowTemplate element :
                                                                                                          +   *       workflowTemplateServiceClient.listWorkflowTemplates(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 */ @@ -981,6 +1440,27 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( * Lists workflows that match the specified filter in the request. * *

                                                                                                          Sample code: + * + *

                                                                                                          {@code
                                                                                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                          +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                          +   *   ListWorkflowTemplatesRequest request =
                                                                                                          +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                                                                          +   *           .setParent(
                                                                                                          +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                          +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                          +   *                   .toString())
                                                                                                          +   *           .setPageSize(883849137)
                                                                                                          +   *           .setPageToken("pageToken873572522")
                                                                                                          +   *           .build();
                                                                                                          +   *   ApiFuture future =
                                                                                                          +   *       workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
                                                                                                          +   *   // Do something.
                                                                                                          +   *   for (WorkflowTemplate element : future.get().iterateAll()) {
                                                                                                          +   *     // doThingsWith(element);
                                                                                                          +   *   }
                                                                                                          +   * }
                                                                                                          +   * }
                                                                                                          */ public final UnaryCallable listWorkflowTemplatesPagedCallable() { @@ -992,6 +1472,25 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( * Lists workflows that match the specified filter in the request. * *

                                                                                                          Sample code: + * + *

                                                                                                          {@code
                                                                                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                          +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                          +   *   while (true) {
                                                                                                          +   *     ListWorkflowTemplatesResponse response =
                                                                                                          +   *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
                                                                                                          +   *     for (WorkflowTemplate element : response.getResponsesList()) {
                                                                                                          +   *       // doThingsWith(element);
                                                                                                          +   *     }
                                                                                                          +   *     String nextPageToken = response.getNextPageToken();
                                                                                                          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                                          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                                          +   *     } else {
                                                                                                          +   *       break;
                                                                                                          +   *     }
                                                                                                          +   *   }
                                                                                                          +   * }
                                                                                                          +   * }
                                                                                                          */ public final UnaryCallable listWorkflowTemplatesCallable() { @@ -1002,6 +1501,18 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates( /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                                                                          Sample code: + * + *

                                                                                                          {@code
                                                                                                          +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                          +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                          +   *   WorkflowTemplateName name =
                                                                                                          +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                          +   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
                                                                                                          +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
                                                                                                          +   * }
                                                                                                          +   * }
                                                                                                          + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                            @@ -1029,6 +1540,19 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                                                                            Sample code: + * + *

                                                                                                            {@code
                                                                                                            +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                            +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                            +   *   String name =
                                                                                                            +   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                            +   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                            +   *           .toString();
                                                                                                            +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
                                                                                                            +   * }
                                                                                                            +   * }
                                                                                                            + * * @param name Required. The resource name of the workflow template, as described in * https://cloud.google.com/apis/design/resource_names. *
                                                                                                              @@ -1054,6 +1578,23 @@ public final void deleteWorkflowTemplate(String name) { /** * Deletes a workflow template. It does not cancel in-progress workflows. * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                              +   *   DeleteWorkflowTemplateRequest request =
                                                                                                              +   *       DeleteWorkflowTemplateRequest.newBuilder()
                                                                                                              +   *           .setName(
                                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setVersion(351608024)
                                                                                                              +   *           .build();
                                                                                                              +   *   workflowTemplateServiceClient.deleteWorkflowTemplate(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 */ @@ -1066,6 +1607,24 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) * Deletes a workflow template. It does not cancel in-progress workflows. * *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                              +   *     WorkflowTemplateServiceClient.create()) {
                                                                                                              +   *   DeleteWorkflowTemplateRequest request =
                                                                                                              +   *       DeleteWorkflowTemplateRequest.newBuilder()
                                                                                                              +   *           .setName(
                                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setVersion(351608024)
                                                                                                              +   *           .build();
                                                                                                              +   *   ApiFuture future =
                                                                                                              +   *       workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
                                                                                                              +   *   // Do something.
                                                                                                              +   *   future.get();
                                                                                                              +   * }
                                                                                                              +   * }
                                                                                                              */ public final UnaryCallable deleteWorkflowTemplateCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java index 4fc507e1..726b57a2 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java @@ -24,6 +24,16 @@ * *

                                                                                                              Sample for AutoscalingPolicyServiceClient: * + *

                                                                                                              {@code
                                                                                                              + * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                                                              + *     AutoscalingPolicyServiceClient.create()) {
                                                                                                              + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                              + *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
                                                                                                              + *   AutoscalingPolicy response =
                                                                                                              + *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
                                                                                                              + * }
                                                                                                              + * }
                                                                                                              + * *

                                                                                                              ======================= ClusterControllerClient ======================= * *

                                                                                                              Service Description: The ClusterControllerService provides methods to manage clusters of @@ -31,17 +41,45 @@ * *

                                                                                                              Sample for ClusterControllerClient: * + *

                                                                                                              {@code
                                                                                                              + * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              + *   String projectId = "projectId-894832108";
                                                                                                              + *   String region = "region-934795532";
                                                                                                              + *   String clusterName = "clusterName-1141738587";
                                                                                                              + *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
                                                                                                              + * }
                                                                                                              + * }
                                                                                                              + * *

                                                                                                              ======================= JobControllerClient ======================= * *

                                                                                                              Service Description: The JobController provides methods to manage jobs. * *

                                                                                                              Sample for JobControllerClient: * + *

                                                                                                              {@code
                                                                                                              + * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                                                              + *   String projectId = "projectId-894832108";
                                                                                                              + *   String region = "region-934795532";
                                                                                                              + *   Job job = Job.newBuilder().build();
                                                                                                              + *   Job response = jobControllerClient.submitJob(projectId, region, job);
                                                                                                              + * }
                                                                                                              + * }
                                                                                                              + * *

                                                                                                              ======================= WorkflowTemplateServiceClient ======================= * *

                                                                                                              Service Description: The API interface for managing Workflow Templates in the Dataproc API. * *

                                                                                                              Sample for WorkflowTemplateServiceClient: + * + *

                                                                                                              {@code
                                                                                                              + * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                              + *     WorkflowTemplateServiceClient.create()) {
                                                                                                              + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                                              + *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
                                                                                                              + *   WorkflowTemplate response =
                                                                                                              + *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
                                                                                                              + * }
                                                                                                              + * }
                                                                                                              */ @Generated("by gapic-generator-java") package com.google.cloud.dataproc.v1beta2; diff --git a/synth.metadata b/synth.metadata index c97959fe..e1ece754 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "fb1262dc4e427d5cfb6196f24c00f865b7573bcd" + "sha": "24065636d88e9ac7818921717f8ed06e77cc2ebc" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { From 03ef38fc67b19c10afcaa7a36cd8489e22b7a65c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Feb 2021 17:06:12 +0100 Subject: [PATCH 080/519] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#438) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.3.0` -> `16.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/compatibility-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/confidence-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2c0ef6ad..017477b0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 5aa3dcdde85bf45b0eb496df76b03aada930d945 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Feb 2021 08:18:12 -0800 Subject: [PATCH 081/519] chore: regenerate README (#440) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-02-10 16:09:15,428 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-10 16:09:16,277 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/f3206aaa-ec6a-409e-8d66-05dfdb8a7345/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8a76d3c2..b5542c40 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "d7503e7c005c240672741fbc5541a7281c55be23" + "sha": "03ef38fc67b19c10afcaa7a36cd8489e22b7a65c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a38d9dbf2fe5e0352b1dffd7eb15e31809c7fd62" + "sha": "2414b817065726eae0bc525346c7e874f969369d" } } ] diff --git a/README.md b/README.md index 18c0223a..2698b6b3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.3.0') +implementation platform('com.google.cloud:libraries-bom:16.4.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 87cf125649eeafca05f48cb00fc4ae251082d79f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Feb 2021 09:02:48 -0800 Subject: [PATCH 082/519] build(java): update autorelease script (#439) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/8ae9af40-372e-4b53-9579-33a36c0aa209/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/2414b817065726eae0bc525346c7e874f969369d --- .github/workflows/auto-release.yaml | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 76e6404b..7c8816a7 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -4,7 +4,7 @@ name: auto-release jobs: approve: runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-v') + if: contains(github.head_ref, 'release-please') steps: - uses: actions/github-script@v3 with: @@ -16,7 +16,7 @@ jobs: return; } - // only approve PRs like "chore: release " + // only approve PRs like "chore(master): release " if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/synth.metadata b/synth.metadata index e1ece754..b82458a9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "24065636d88e9ac7818921717f8ed06e77cc2ebc" + "sha": "bb356719e818b896259f399c084092c056549a6a" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" + "sha": "2414b817065726eae0bc525346c7e874f969369d" } } ], From b730ac9afc902bfa99a02cbfe962714d481df8cb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:04:27 +0100 Subject: [PATCH 083/519] test(deps): update dependency junit:junit to v4.13.2 (#441) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e3e5028b..2e995264 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 64f1dcf0..33548088 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -41,7 +41,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 11e4fddb..b80dbe5b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -39,7 +39,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 017477b0..66818f4e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13.1 + 4.13.2 test From 320be91d98ce86fe1328b2d8ce99b7cb542ed0a1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Feb 2021 16:18:27 -0800 Subject: [PATCH 084/519] ci: linkage monitor CI job to use build.sh (#443) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/549c8707-14a7-4963-9d20-bbd5d5285b08/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f327d3b657a63ae4a8efd7f011a15eacae36b59c --- .github/workflows/ci.yaml | 13 +++---------- synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98a472e1..def8b3a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -55,17 +55,10 @@ jobs: java-version: 8 - run: java -version - name: Install artifacts to local Maven repository - run: | - source .kokoro/common.sh - retry_with_backoff 3 10 \ - mvn install -B -V \ - -Dmaven.test.skip -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true + run: .kokoro/build.sh shell: bash - - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor + - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) + uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/synth.metadata b/synth.metadata index b82458a9..c1c3c7bf 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "bb356719e818b896259f399c084092c056549a6a" + "sha": "b730ac9afc902bfa99a02cbfe962714d481df8cb" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" + "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" } } ], From 92e5af0894d002b5ec217ba788ac3e3cf9050945 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Feb 2021 09:00:13 -0800 Subject: [PATCH 085/519] chore: update gapic-generator-java to 0.0.20 (#442) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/549c8707-14a7-4963-9d20-bbd5d5285b08/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 357800868 Source-Link: https://github.com/googleapis/googleapis/commit/e8bc4471a88ac5f60defe3ed436f517174e59ba0 --- .../GrpcAutoscalingPolicyServiceStub.java | 6 ++ .../v1/stub/GrpcClusterControllerStub.java | 11 ++++ .../v1/stub/GrpcJobControllerStub.java | 9 +++ .../stub/GrpcWorkflowTemplateServiceStub.java | 10 ++++ .../GrpcAutoscalingPolicyServiceStub.java | 6 ++ .../stub/GrpcClusterControllerStub.java | 11 ++++ .../v1beta2/stub/GrpcJobControllerStub.java | 9 +++ .../stub/GrpcWorkflowTemplateServiceStub.java | 10 ++++ .../v1/MockAutoscalingPolicyServiceImpl.java | 40 +++++++++++-- .../v1/MockClusterControllerImpl.java | 48 ++++++++++++++-- .../dataproc/v1/MockJobControllerImpl.java | 48 +++++++++++++--- .../v1/MockWorkflowTemplateServiceImpl.java | 56 ++++++++++++++++--- .../MockAutoscalingPolicyServiceImpl.java | 40 +++++++++++-- .../v1beta2/MockClusterControllerImpl.java | 48 ++++++++++++++-- .../v1beta2/MockJobControllerImpl.java | 48 +++++++++++++--- .../MockWorkflowTemplateServiceImpl.java | 56 ++++++++++++++++--- synth.metadata | 8 +-- 17 files changed, 410 insertions(+), 54 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 286c9f4a..55f11d0d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -277,31 +277,37 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createAutoscalingPolicyCallable() { return createAutoscalingPolicyCallable; } + @Override public UnaryCallable updateAutoscalingPolicyCallable() { return updateAutoscalingPolicyCallable; } + @Override public UnaryCallable getAutoscalingPolicyCallable() { return getAutoscalingPolicyCallable; } + @Override public UnaryCallable listAutoscalingPoliciesCallable() { return listAutoscalingPoliciesCallable; } + @Override public UnaryCallable listAutoscalingPoliciesPagedCallable() { return listAutoscalingPoliciesPagedCallable; } + @Override public UnaryCallable deleteAutoscalingPolicyCallable() { return deleteAutoscalingPolicyCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 4aafc4b4..694cae3b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -318,49 +318,60 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; } + @Override public OperationCallable createClusterOperationCallable() { return createClusterOperationCallable; } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; } + @Override public OperationCallable updateClusterOperationCallable() { return updateClusterOperationCallable; } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; } + @Override public OperationCallable deleteClusterOperationCallable() { return deleteClusterOperationCallable; } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override public UnaryCallable listClustersCallable() { return listClustersCallable; } + @Override public UnaryCallable listClustersPagedCallable() { return listClustersPagedCallable; } + @Override public UnaryCallable diagnoseClusterCallable() { return diagnoseClusterCallable; } + @Override public OperationCallable diagnoseClusterOperationCallable() { return diagnoseClusterOperationCallable; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index 9e410dfa..e22f7c9b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -309,39 +309,48 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable submitJobCallable() { return submitJobCallable; } + @Override public UnaryCallable submitJobAsOperationCallable() { return submitJobAsOperationCallable; } + @Override public OperationCallable submitJobAsOperationOperationCallable() { return submitJobAsOperationOperationCallable; } + @Override public UnaryCallable getJobCallable() { return getJobCallable; } + @Override public UnaryCallable listJobsCallable() { return listJobsCallable; } + @Override public UnaryCallable listJobsPagedCallable() { return listJobsPagedCallable; } + @Override public UnaryCallable updateJobCallable() { return updateJobCallable; } + @Override public UnaryCallable cancelJobCallable() { return cancelJobCallable; } + @Override public UnaryCallable deleteJobCallable() { return deleteJobCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index 4da9b503..f5f13b6a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -362,50 +362,60 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createWorkflowTemplateCallable() { return createWorkflowTemplateCallable; } + @Override public UnaryCallable getWorkflowTemplateCallable() { return getWorkflowTemplateCallable; } + @Override public UnaryCallable instantiateWorkflowTemplateCallable() { return instantiateWorkflowTemplateCallable; } + @Override public OperationCallable instantiateWorkflowTemplateOperationCallable() { return instantiateWorkflowTemplateOperationCallable; } + @Override public UnaryCallable instantiateInlineWorkflowTemplateCallable() { return instantiateInlineWorkflowTemplateCallable; } + @Override public OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { return instantiateInlineWorkflowTemplateOperationCallable; } + @Override public UnaryCallable updateWorkflowTemplateCallable() { return updateWorkflowTemplateCallable; } + @Override public UnaryCallable listWorkflowTemplatesCallable() { return listWorkflowTemplatesCallable; } + @Override public UnaryCallable listWorkflowTemplatesPagedCallable() { return listWorkflowTemplatesPagedCallable; } + @Override public UnaryCallable deleteWorkflowTemplateCallable() { return deleteWorkflowTemplateCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index bba98775..de3954cb 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -279,31 +279,37 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createAutoscalingPolicyCallable() { return createAutoscalingPolicyCallable; } + @Override public UnaryCallable updateAutoscalingPolicyCallable() { return updateAutoscalingPolicyCallable; } + @Override public UnaryCallable getAutoscalingPolicyCallable() { return getAutoscalingPolicyCallable; } + @Override public UnaryCallable listAutoscalingPoliciesCallable() { return listAutoscalingPoliciesCallable; } + @Override public UnaryCallable listAutoscalingPoliciesPagedCallable() { return listAutoscalingPoliciesPagedCallable; } + @Override public UnaryCallable deleteAutoscalingPolicyCallable() { return deleteAutoscalingPolicyCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index ca14592f..39f0ad27 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -318,49 +318,60 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createClusterCallable() { return createClusterCallable; } + @Override public OperationCallable createClusterOperationCallable() { return createClusterOperationCallable; } + @Override public UnaryCallable updateClusterCallable() { return updateClusterCallable; } + @Override public OperationCallable updateClusterOperationCallable() { return updateClusterOperationCallable; } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; } + @Override public OperationCallable deleteClusterOperationCallable() { return deleteClusterOperationCallable; } + @Override public UnaryCallable getClusterCallable() { return getClusterCallable; } + @Override public UnaryCallable listClustersCallable() { return listClustersCallable; } + @Override public UnaryCallable listClustersPagedCallable() { return listClustersPagedCallable; } + @Override public UnaryCallable diagnoseClusterCallable() { return diagnoseClusterCallable; } + @Override public OperationCallable diagnoseClusterOperationCallable() { return diagnoseClusterOperationCallable; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index 856e85e0..68446e56 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -311,39 +311,48 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable submitJobCallable() { return submitJobCallable; } + @Override public UnaryCallable submitJobAsOperationCallable() { return submitJobAsOperationCallable; } + @Override public OperationCallable submitJobAsOperationOperationCallable() { return submitJobAsOperationOperationCallable; } + @Override public UnaryCallable getJobCallable() { return getJobCallable; } + @Override public UnaryCallable listJobsCallable() { return listJobsCallable; } + @Override public UnaryCallable listJobsPagedCallable() { return listJobsPagedCallable; } + @Override public UnaryCallable updateJobCallable() { return updateJobCallable; } + @Override public UnaryCallable cancelJobCallable() { return cancelJobCallable; } + @Override public UnaryCallable deleteJobCallable() { return deleteJobCallable; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index 782e459e..0abe58a9 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -364,50 +364,60 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable createWorkflowTemplateCallable() { return createWorkflowTemplateCallable; } + @Override public UnaryCallable getWorkflowTemplateCallable() { return getWorkflowTemplateCallable; } + @Override public UnaryCallable instantiateWorkflowTemplateCallable() { return instantiateWorkflowTemplateCallable; } + @Override public OperationCallable instantiateWorkflowTemplateOperationCallable() { return instantiateWorkflowTemplateOperationCallable; } + @Override public UnaryCallable instantiateInlineWorkflowTemplateCallable() { return instantiateInlineWorkflowTemplateCallable; } + @Override public OperationCallable instantiateInlineWorkflowTemplateOperationCallable() { return instantiateInlineWorkflowTemplateOperationCallable; } + @Override public UnaryCallable updateWorkflowTemplateCallable() { return updateWorkflowTemplateCallable; } + @Override public UnaryCallable listWorkflowTemplatesCallable() { return listWorkflowTemplatesCallable; } + @Override public UnaryCallable listWorkflowTemplatesPagedCallable() { return listWorkflowTemplatesPagedCallable; } + @Override public UnaryCallable deleteWorkflowTemplateCallable() { return deleteWorkflowTemplateCallable; } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java index 61a4bd95..c97ce130 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java @@ -70,7 +70,13 @@ public void createAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -85,7 +91,13 @@ public void updateAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -100,7 +112,13 @@ public void getAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -116,7 +134,13 @@ public void listAutoscalingPolicies( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAutoscalingPolicies, expected %s or %s", + response.getClass().getName(), + ListAutoscalingPoliciesResponse.class.getName(), + Exception.class.getName()))); } } @@ -131,7 +155,13 @@ public void deleteAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java index de4fcbdf..5380d36e 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java @@ -70,7 +70,13 @@ public void createCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -85,7 +91,13 @@ public void updateCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -100,7 +112,13 @@ public void deleteCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -114,7 +132,13 @@ public void getCluster(GetClusterRequest request, StreamObserver respon } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCluster, expected %s or %s", + response.getClass().getName(), + Cluster.class.getName(), + Exception.class.getName()))); } } @@ -129,7 +153,13 @@ public void listClusters( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListClusters, expected %s or %s", + response.getClass().getName(), + ListClustersResponse.class.getName(), + Exception.class.getName()))); } } @@ -144,7 +174,13 @@ public void diagnoseCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DiagnoseCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java index 448c74a4..facfa484 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java @@ -70,7 +70,11 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SubmitJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -85,7 +89,13 @@ public void submitJobAsOperation( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SubmitJobAsOperation, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -99,7 +109,11 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver) } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -113,7 +127,13 @@ public void listJobs(ListJobsRequest request, StreamObserver r } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListJobs, expected %s or %s", + response.getClass().getName(), + ListJobsResponse.class.getName(), + Exception.class.getName()))); } } @@ -127,7 +147,11 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -141,7 +165,11 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CancelJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -155,7 +183,13 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteJob, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java index ee09193d..fe566591 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java @@ -71,7 +71,13 @@ public void createWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -86,7 +92,13 @@ public void getWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -101,7 +113,13 @@ public void instantiateWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method InstantiateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -117,7 +135,13 @@ public void instantiateInlineWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method InstantiateInlineWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -132,7 +156,13 @@ public void updateWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -148,7 +178,13 @@ public void listWorkflowTemplates( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkflowTemplates, expected %s or %s", + response.getClass().getName(), + ListWorkflowTemplatesResponse.class.getName(), + Exception.class.getName()))); } } @@ -163,7 +199,13 @@ public void deleteWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java index 2f31d7da..7ea9b907 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java @@ -70,7 +70,13 @@ public void createAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -85,7 +91,13 @@ public void updateAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -100,7 +112,13 @@ public void getAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + AutoscalingPolicy.class.getName(), + Exception.class.getName()))); } } @@ -116,7 +134,13 @@ public void listAutoscalingPolicies( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAutoscalingPolicies, expected %s or %s", + response.getClass().getName(), + ListAutoscalingPoliciesResponse.class.getName(), + Exception.class.getName()))); } } @@ -131,7 +155,13 @@ public void deleteAutoscalingPolicy( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java index 1f62239c..13d5aa0b 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java @@ -70,7 +70,13 @@ public void createCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -85,7 +91,13 @@ public void updateCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -100,7 +112,13 @@ public void deleteCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -114,7 +132,13 @@ public void getCluster(GetClusterRequest request, StreamObserver respon } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCluster, expected %s or %s", + response.getClass().getName(), + Cluster.class.getName(), + Exception.class.getName()))); } } @@ -129,7 +153,13 @@ public void listClusters( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListClusters, expected %s or %s", + response.getClass().getName(), + ListClustersResponse.class.getName(), + Exception.class.getName()))); } } @@ -144,7 +174,13 @@ public void diagnoseCluster( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DiagnoseCluster, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java index f533ba1c..4293a3d6 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java @@ -70,7 +70,11 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SubmitJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -85,7 +89,13 @@ public void submitJobAsOperation( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SubmitJobAsOperation, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -99,7 +109,11 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver) } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -113,7 +127,13 @@ public void listJobs(ListJobsRequest request, StreamObserver r } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListJobs, expected %s or %s", + response.getClass().getName(), + ListJobsResponse.class.getName(), + Exception.class.getName()))); } } @@ -127,7 +147,11 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -141,7 +165,11 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CancelJob, expected %s or %s", + response.getClass().getName(), Job.class.getName(), Exception.class.getName()))); } } @@ -155,7 +183,13 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteJob, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java index c373ce15..694f7d00 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java @@ -71,7 +71,13 @@ public void createWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -86,7 +92,13 @@ public void getWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -101,7 +113,13 @@ public void instantiateWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method InstantiateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -117,7 +135,13 @@ public void instantiateInlineWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method InstantiateInlineWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); } } @@ -132,7 +156,13 @@ public void updateWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + WorkflowTemplate.class.getName(), + Exception.class.getName()))); } } @@ -148,7 +178,13 @@ public void listWorkflowTemplates( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkflowTemplates, expected %s or %s", + response.getClass().getName(), + ListWorkflowTemplatesResponse.class.getName(), + Exception.class.getName()))); } } @@ -163,7 +199,13 @@ public void deleteWorkflowTemplate( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } } diff --git a/synth.metadata b/synth.metadata index c1c3c7bf..9bcc5d67 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,16 +11,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", - "internalRef": "356341083" + "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", + "internalRef": "357800868" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", - "internalRef": "356341083" + "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", + "internalRef": "357800868" } }, { From aea5b1ece9062f9b6f7f40bb570539bd75385d5e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Feb 2021 09:06:09 -0800 Subject: [PATCH 086/519] chore: update cloud-rad buckets (#444) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/076d8116-2173-4482-aeb4-8514456cfb36/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b416a7befcdbc42de41cf387dcf428f894fb812b --- .kokoro/release/publish_javadoc.cfg | 4 ++-- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.cfg | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- synth.metadata | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index ba133e14..5bbfb5de 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,10 +7,10 @@ env_vars: { value: "docs-staging" } +# cloud-rad staging env_vars: { key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" - # Production will be at: docs-staging-v2 + value: "docs-staging-v2-staging" } env_vars: { diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 29388b6c..354f5453 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -71,7 +71,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload docs +# upload docs to staging bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg index 8a7b3f4a..41ce051b 100644 --- a/.kokoro/release/publish_javadoc11.cfg +++ b/.kokoro/release/publish_javadoc11.cfg @@ -1,9 +1,9 @@ # Format: //devtools/kokoro/config/proto/build.proto +# cloud-rad production env_vars: { key: "STAGING_BUCKET_V2" value: "docs-staging-v2" - # Production will be at: docs-staging-v2 } # Configure the docker image for kokoro-trampoline diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 865e7bac..2764468c 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -48,7 +48,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload yml +# upload yml to production bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ diff --git a/synth.metadata b/synth.metadata index 9bcc5d67..4df3a9ca 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "b730ac9afc902bfa99a02cbfe962714d481df8cb" + "sha": "320be91d98ce86fe1328b2d8ce99b7cb542ed0a1" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" + "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" } } ], From 2bad63f51169e72bd4720e260613012e6c66e8af Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 18 Feb 2021 16:40:32 -0800 Subject: [PATCH 087/519] build: skip Maven download logs (#446) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/62fbd93a-0469-4c6e-9547-84dbcc2a707d/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/1aeca92e4a38f47134cb955f52ea76f84f09ff88 --- .kokoro/build.sh | 2 ++ synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index f709e28a..9a321452 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -60,6 +60,7 @@ javadoc) ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ + -ntp \ -Penable-integration-tests \ -DtrimStackTrace=false \ -Dclirr.skip=true \ @@ -81,6 +82,7 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ + -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/synth.metadata b/synth.metadata index 4df3a9ca..c3004dd9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "320be91d98ce86fe1328b2d8ce99b7cb542ed0a1" + "sha": "aea5b1ece9062f9b6f7f40bb570539bd75385d5e" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" + "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88" } } ], From d6ef0139c16472d3eeff400cdeb8c58f622f843d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 19 Feb 2021 07:46:06 -0800 Subject: [PATCH 088/519] build: reduce download junk in log files (#447) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c662ff13-a77b-48b5-be4e-62774692925a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/6946fd71ae9215b0e7ae188f5057df765ee6d7d2 --- .kokoro/build.sh | 2 +- .kokoro/dependencies.sh | 4 ++-- synth.metadata | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 9a321452..cafd8a10 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -29,7 +29,7 @@ echo ${JOB_TYPE} # attempt to install 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn install -B -V \ + mvn install -B -V -ntp \ -DskipTests=true \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index c91e5a56..0fb8c843 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer retry_with_backoff 3 10 \ - mvn install -B -V \ + mvn install -B -V -ntp \ -DskipTests=true \ -Dclirr.skip=true @@ -86,4 +86,4 @@ then else msg "Errors found. See log statements above." exit 1 -fi \ No newline at end of file +fi diff --git a/synth.metadata b/synth.metadata index c3004dd9..000c3e7a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "aea5b1ece9062f9b6f7f40bb570539bd75385d5e" + "sha": "2bad63f51169e72bd4720e260613012e6c66e8af" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88" + "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" } } ], From db549f9a231eca393c0c1bfda8f004be8e0f7cd9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Feb 2021 22:50:41 +0100 Subject: [PATCH 089/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 (#448) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.18.0` -> `0.19.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-shared-dependencies ### [`v0.19.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0190-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0180v0190-2021-02-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.18.0...v0.19.0) ##### Bug Fixes - update repo name ([#​274](https://www.github.com/googleapis/java-shared-dependencies/issues/274)) ([4a98470](https://www.github.com/googleapis/java-shared-dependencies/commit/4a98470b7493c98137191b7bb3cabca23f98628f)) ##### Dependencies - downgrade opencensus version back to 0.28.0 ([#​265](https://www.github.com/googleapis/java-shared-dependencies/issues/265)) ([f37025c](https://www.github.com/googleapis/java-shared-dependencies/commit/f37025c70f951b1e34904ee983815c0ed8ec4086)) - update dependency com.google.api-client:google-api-client-bom to v1.31.2 ([#​254](https://www.github.com/googleapis/java-shared-dependencies/issues/254)) ([1b0b4a6](https://www.github.com/googleapis/java-shared-dependencies/commit/1b0b4a637cae0c22cd0336c527002025780317d5)) - update dependency com.google.auth:google-auth-library-bom to v0.23.0 ([#​261](https://www.github.com/googleapis/java-shared-dependencies/issues/261)) ([1c0b7bd](https://www.github.com/googleapis/java-shared-dependencies/commit/1c0b7bd60b3d73c16cc6c19ab90d8ccedece3706)) - update dependency com.google.cloud:google-cloud-core to v1.94.1 ([#​272](https://www.github.com/googleapis/java-shared-dependencies/issues/272)) ([44fd4c3](https://www.github.com/googleapis/java-shared-dependencies/commit/44fd4c3c6cae98bd514525f03462b830050828a8)) - update dependency com.google.errorprone:error_prone_annotations to v2.5.1 ([#​255](https://www.github.com/googleapis/java-shared-dependencies/issues/255)) ([6367023](https://www.github.com/googleapis/java-shared-dependencies/commit/63670233424e8f24c3924bba5e2cb6ca97525795)) - update dependency com.google.http-client:google-http-client-bom to v1.38.1 ([#​253](https://www.github.com/googleapis/java-shared-dependencies/issues/253)) ([ad87c74](https://www.github.com/googleapis/java-shared-dependencies/commit/ad87c74d9d893726042156d65850806d92e79952)) - update dependency com.google.protobuf:protobuf-bom to v3.15.0 ([#​278](https://www.github.com/googleapis/java-shared-dependencies/issues/278)) ([989efbd](https://www.github.com/googleapis/java-shared-dependencies/commit/989efbd29bcf4135f7abce49a697303df2cf1a60)) - update dependency io.grpc:grpc-bom to v1.35.0 ([#​248](https://www.github.com/googleapis/java-shared-dependencies/issues/248)) ([7a28c6e](https://www.github.com/googleapis/java-shared-dependencies/commit/7a28c6e7053c181993b1288adcae56de89312113)) - update gax.version to v1.61.0 ([#​277](https://www.github.com/googleapis/java-shared-dependencies/issues/277)) ([f1c3fb9](https://www.github.com/googleapis/java-shared-dependencies/commit/f1c3fb9295f2e1c130b9fc329faa60f4f8474ba6)) - update iam.version to v1.0.7 ([#​252](https://www.github.com/googleapis/java-shared-dependencies/issues/252)) ([5cb3ed9](https://www.github.com/googleapis/java-shared-dependencies/commit/5cb3ed906537269cd7f8d9ccf4b065754b5f5b48)) - update iam.version to v1.0.8 ([#​273](https://www.github.com/googleapis/java-shared-dependencies/issues/273)) ([4d5e7f7](https://www.github.com/googleapis/java-shared-dependencies/commit/4d5e7f720d847918b307a83c95cea10c244ba595))
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2e995264..2d2f1ff0 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.18.0 + 0.19.0 pom import From 24f88a0439507638fe0f0d992c98e665b241fffa Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 22 Feb 2021 09:02:14 -0800 Subject: [PATCH 090/519] chore: release gapic-generator-java v0.0.21 with gapic_metadata.json support (#449) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e5992695-88a9-4609-86b6-ea846bbdb6ce/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 358516065 Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9 --- .../cloud/dataproc/v1/gapic_metadata.json | 120 ++++++++++++++++++ .../dataproc/v1beta2/gapic_metadata.json | 120 ++++++++++++++++++ synth.metadata | 12 +- 3 files changed, 247 insertions(+), 5 deletions(-) create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json new file mode 100644 index 00000000..845a440e --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json @@ -0,0 +1,120 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.dataproc.v1", + "libraryPackage": "com.google.cloud.dataproc.v1", + "services": { + "AutoscalingPolicyService": { + "clients": { + "grpc": { + "libraryClient": "AutoscalingPolicyServiceClient", + "rpcs": { + "CreateAutoscalingPolicy": { + "methods": ["createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicyCallable"] + }, + "DeleteAutoscalingPolicy": { + "methods": ["deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicyCallable"] + }, + "GetAutoscalingPolicy": { + "methods": ["getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicyCallable"] + }, + "ListAutoscalingPolicies": { + "methods": ["listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPoliciesPagedCallable", "listAutoscalingPoliciesCallable"] + }, + "UpdateAutoscalingPolicy": { + "methods": ["updateAutoscalingPolicy", "updateAutoscalingPolicy", "updateAutoscalingPolicyCallable"] + } + } + } + } + }, + "ClusterController": { + "clients": { + "grpc": { + "libraryClient": "ClusterControllerClient", + "rpcs": { + "CreateCluster": { + "methods": ["createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] + }, + "DeleteCluster": { + "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] + }, + "DiagnoseCluster": { + "methods": ["diagnoseClusterAsync", "diagnoseClusterAsync", "diagnoseClusterOperationCallable", "diagnoseClusterCallable"] + }, + "GetCluster": { + "methods": ["getCluster", "getCluster", "getClusterCallable"] + }, + "ListClusters": { + "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] + }, + "UpdateCluster": { + "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] + } + } + } + } + }, + "JobController": { + "clients": { + "grpc": { + "libraryClient": "JobControllerClient", + "rpcs": { + "CancelJob": { + "methods": ["cancelJob", "cancelJob", "cancelJobCallable"] + }, + "DeleteJob": { + "methods": ["deleteJob", "deleteJob", "deleteJobCallable"] + }, + "GetJob": { + "methods": ["getJob", "getJob", "getJobCallable"] + }, + "ListJobs": { + "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] + }, + "SubmitJob": { + "methods": ["submitJob", "submitJob", "submitJobCallable"] + }, + "SubmitJobAsOperation": { + "methods": ["submitJobAsOperationAsync", "submitJobAsOperationAsync", "submitJobAsOperationOperationCallable", "submitJobAsOperationCallable"] + }, + "UpdateJob": { + "methods": ["updateJob", "updateJobCallable"] + } + } + } + } + }, + "WorkflowTemplateService": { + "clients": { + "grpc": { + "libraryClient": "WorkflowTemplateServiceClient", + "rpcs": { + "CreateWorkflowTemplate": { + "methods": ["createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplateCallable"] + }, + "DeleteWorkflowTemplate": { + "methods": ["deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplateCallable"] + }, + "GetWorkflowTemplate": { + "methods": ["getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplateCallable"] + }, + "InstantiateInlineWorkflowTemplate": { + "methods": ["instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateOperationCallable", "instantiateInlineWorkflowTemplateCallable"] + }, + "InstantiateWorkflowTemplate": { + "methods": ["instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateOperationCallable", "instantiateWorkflowTemplateCallable"] + }, + "ListWorkflowTemplates": { + "methods": ["listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplatesPagedCallable", "listWorkflowTemplatesCallable"] + }, + "UpdateWorkflowTemplate": { + "methods": ["updateWorkflowTemplate", "updateWorkflowTemplate", "updateWorkflowTemplateCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json new file mode 100644 index 00000000..d4fb2a90 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json @@ -0,0 +1,120 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.dataproc.v1beta2", + "libraryPackage": "com.google.cloud.dataproc.v1beta2", + "services": { + "AutoscalingPolicyService": { + "clients": { + "grpc": { + "libraryClient": "AutoscalingPolicyServiceClient", + "rpcs": { + "CreateAutoscalingPolicy": { + "methods": ["createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicyCallable"] + }, + "DeleteAutoscalingPolicy": { + "methods": ["deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicyCallable"] + }, + "GetAutoscalingPolicy": { + "methods": ["getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicyCallable"] + }, + "ListAutoscalingPolicies": { + "methods": ["listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPoliciesPagedCallable", "listAutoscalingPoliciesCallable"] + }, + "UpdateAutoscalingPolicy": { + "methods": ["updateAutoscalingPolicy", "updateAutoscalingPolicy", "updateAutoscalingPolicyCallable"] + } + } + } + } + }, + "ClusterController": { + "clients": { + "grpc": { + "libraryClient": "ClusterControllerClient", + "rpcs": { + "CreateCluster": { + "methods": ["createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] + }, + "DeleteCluster": { + "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] + }, + "DiagnoseCluster": { + "methods": ["diagnoseClusterAsync", "diagnoseClusterAsync", "diagnoseClusterOperationCallable", "diagnoseClusterCallable"] + }, + "GetCluster": { + "methods": ["getCluster", "getCluster", "getClusterCallable"] + }, + "ListClusters": { + "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] + }, + "UpdateCluster": { + "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] + } + } + } + } + }, + "JobController": { + "clients": { + "grpc": { + "libraryClient": "JobControllerClient", + "rpcs": { + "CancelJob": { + "methods": ["cancelJob", "cancelJob", "cancelJobCallable"] + }, + "DeleteJob": { + "methods": ["deleteJob", "deleteJob", "deleteJobCallable"] + }, + "GetJob": { + "methods": ["getJob", "getJob", "getJobCallable"] + }, + "ListJobs": { + "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] + }, + "SubmitJob": { + "methods": ["submitJob", "submitJob", "submitJobCallable"] + }, + "SubmitJobAsOperation": { + "methods": ["submitJobAsOperationAsync", "submitJobAsOperationAsync", "submitJobAsOperationOperationCallable", "submitJobAsOperationCallable"] + }, + "UpdateJob": { + "methods": ["updateJob", "updateJobCallable"] + } + } + } + } + }, + "WorkflowTemplateService": { + "clients": { + "grpc": { + "libraryClient": "WorkflowTemplateServiceClient", + "rpcs": { + "CreateWorkflowTemplate": { + "methods": ["createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplateCallable"] + }, + "DeleteWorkflowTemplate": { + "methods": ["deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplateCallable"] + }, + "GetWorkflowTemplate": { + "methods": ["getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplateCallable"] + }, + "InstantiateInlineWorkflowTemplate": { + "methods": ["instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateOperationCallable", "instantiateInlineWorkflowTemplateCallable"] + }, + "InstantiateWorkflowTemplate": { + "methods": ["instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateOperationCallable", "instantiateWorkflowTemplateCallable"] + }, + "ListWorkflowTemplates": { + "methods": ["listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplatesPagedCallable", "listWorkflowTemplatesCallable"] + }, + "UpdateWorkflowTemplate": { + "methods": ["updateWorkflowTemplate", "updateWorkflowTemplate", "updateWorkflowTemplateCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 000c3e7a..5aa27473 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "2bad63f51169e72bd4720e260613012e6c66e8af" + "sha": "db549f9a231eca393c0c1bfda8f004be8e0f7cd9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", - "internalRef": "357800868" + "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", + "internalRef": "358516065" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", - "internalRef": "357800868" + "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", + "internalRef": "358516065" } }, { @@ -126,6 +126,7 @@ "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java", + "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java", @@ -151,6 +152,7 @@ "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java", + "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java", "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java", From bd958c5e8457c13bd79996e5d1a85ad359892faa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:54:04 +0000 Subject: [PATCH 091/519] chore(master): release 1.2.0 (#434) :robot: I have created a release \*beep\* \*boop\* --- ## [1.2.0](https://www.github.com/googleapis/java-dataproc/compare/v1.1.10...v1.2.0) (2021-02-22) ### Features * **v1beta2:** remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata ([#411](https://www.github.com/googleapis/java-dataproc/issues/411)) ([e8025d4](https://www.github.com/googleapis/java-dataproc/commit/e8025d4a5dd68b430b25e60cac823f570bdab3f4)) ### Documentation * generate sample code in the Java microgenerator ([#437](https://www.github.com/googleapis/java-dataproc/issues/437)) ([bb35671](https://www.github.com/googleapis/java-dataproc/commit/bb356719e818b896259f399c084092c056549a6a)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#422](https://www.github.com/googleapis/java-dataproc/issues/422)) ([69a78e1](https://www.github.com/googleapis/java-dataproc/commit/69a78e192957f1c00943be624ce29fe2e2d333cb)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#448](https://www.github.com/googleapis/java-dataproc/issues/448)) ([db549f9](https://www.github.com/googleapis/java-dataproc/commit/db549f9a231eca393c0c1bfda8f004be8e0f7cd9)) * update dependency com.google.cloud:google-cloud-storage to v1.113.9 ([#416](https://www.github.com/googleapis/java-dataproc/issues/416)) ([d7503e7](https://www.github.com/googleapis/java-dataproc/commit/d7503e7c005c240672741fbc5541a7281c55be23)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 19 +++++++++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 47 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 219b7018..de6fa091 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.2.0](https://www.github.com/googleapis/java-dataproc/compare/v1.1.10...v1.2.0) (2021-02-22) + + +### Features + +* **v1beta2:** remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata ([#411](https://www.github.com/googleapis/java-dataproc/issues/411)) ([e8025d4](https://www.github.com/googleapis/java-dataproc/commit/e8025d4a5dd68b430b25e60cac823f570bdab3f4)) + + +### Documentation + +* generate sample code in the Java microgenerator ([#437](https://www.github.com/googleapis/java-dataproc/issues/437)) ([bb35671](https://www.github.com/googleapis/java-dataproc/commit/bb356719e818b896259f399c084092c056549a6a)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#422](https://www.github.com/googleapis/java-dataproc/issues/422)) ([69a78e1](https://www.github.com/googleapis/java-dataproc/commit/69a78e192957f1c00943be624ce29fe2e2d333cb)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#448](https://www.github.com/googleapis/java-dataproc/issues/448)) ([db549f9](https://www.github.com/googleapis/java-dataproc/commit/db549f9a231eca393c0c1bfda8f004be8e0f7cd9)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.9 ([#416](https://www.github.com/googleapis/java-dataproc/issues/416)) ([d7503e7](https://www.github.com/googleapis/java-dataproc/commit/d7503e7c005c240672741fbc5541a7281c55be23)) + ### [1.1.10](https://www.github.com/googleapis/java-dataproc/compare/v1.1.9...v1.1.10) (2020-12-16) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 1a3a5e99..1de685de 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.1.11-SNAPSHOT + 1.2.0 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.1.11-SNAPSHOT + 1.2.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 4c2a7363..2b75b2e1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.1.11-SNAPSHOT + 1.2.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.1.11-SNAPSHOT + 1.2.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 6759d662..b2816944 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index b2413b7d..76f30b93 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/pom.xml b/pom.xml index 2d2f1ff0..24a99a6a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.1.11-SNAPSHOT + 1.2.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 com.google.cloud google-cloud-dataproc - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 89b5625c..84ec8672 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.1.11-SNAPSHOT + 1.2.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 0061e753..a6bcf5aa 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.89.11-SNAPSHOT + 0.90.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b80dbe5b..5073364d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.1.11-SNAPSHOT + 1.2.0 diff --git a/versions.txt b/versions.txt index dfb71e1e..0ac16404 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.89.10:0.89.11-SNAPSHOT -proto-google-cloud-dataproc-v1:1.1.10:1.1.11-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.1.10:1.1.11-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.89.10:0.89.11-SNAPSHOT -google-cloud-dataproc:1.1.10:1.1.11-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.90.0:0.90.0 +proto-google-cloud-dataproc-v1:1.2.0:1.2.0 +grpc-google-cloud-dataproc-v1:1.2.0:1.2.0 +grpc-google-cloud-dataproc-v1beta2:0.90.0:0.90.0 +google-cloud-dataproc:1.2.0:1.2.0 From cec01bda21b6eabb3d8ddd5447eb777d3e943b62 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Feb 2021 21:04:05 +0000 Subject: [PATCH 092/519] chore(master): release 1.2.1-SNAPSHOT (#450) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 1de685de..22eccc14 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.2.0 + 1.2.1-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 2b75b2e1..dfc9c929 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.2.0 + 1.2.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index b2816944..65eb682a 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 76f30b93..7f047502 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 24a99a6a..8498734f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.2.0 + 1.2.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 84ec8672..2089e649 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.0 + 1.2.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index a6bcf5aa..46161d5a 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.0 + 0.90.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5073364d..69dd47c5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 0ac16404..12e38304 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.90.0:0.90.0 -proto-google-cloud-dataproc-v1:1.2.0:1.2.0 -grpc-google-cloud-dataproc-v1:1.2.0:1.2.0 -grpc-google-cloud-dataproc-v1beta2:0.90.0:0.90.0 -google-cloud-dataproc:1.2.0:1.2.0 +proto-google-cloud-dataproc-v1beta2:0.90.0:0.90.1-SNAPSHOT +proto-google-cloud-dataproc-v1:1.2.0:1.2.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.2.0:1.2.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.90.0:0.90.1-SNAPSHOT +google-cloud-dataproc:1.2.0:1.2.1-SNAPSHOT From f49ec39719ea65c465ff6601e066b7e6cc675c4b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:36:04 +0100 Subject: [PATCH 093/519] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#452) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 66818f4e..2200b187 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 077da80c951f5c7f7a4075c589b7819f1698394e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:50:19 +0100 Subject: [PATCH 094/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.2.0 (#451) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.1.10` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.0/compatibility-slim/1.1.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.0/confidence-slim/1.1.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-dataproc ### [`v1.2.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-dataproccomparev1110v120-2021-02-22) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.1.10...v1.2.0) ##### Features - **v1beta2:** remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata ([#​411](https://www.github.com/googleapis/java-dataproc/issues/411)) ([e8025d4](https://www.github.com/googleapis/java-dataproc/commit/e8025d4a5dd68b430b25e60cac823f570bdab3f4)) ##### Documentation - generate sample code in the Java microgenerator ([#​437](https://www.github.com/googleapis/java-dataproc/issues/437)) ([bb35671](https://www.github.com/googleapis/java-dataproc/commit/bb356719e818b896259f399c084092c056549a6a)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#​422](https://www.github.com/googleapis/java-dataproc/issues/422)) ([69a78e1](https://www.github.com/googleapis/java-dataproc/commit/69a78e192957f1c00943be624ce29fe2e2d333cb)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#​448](https://www.github.com/googleapis/java-dataproc/issues/448)) ([db549f9](https://www.github.com/googleapis/java-dataproc/commit/db549f9a231eca393c0c1bfda8f004be8e0f7cd9)) - update dependency com.google.cloud:google-cloud-storage to v1.113.9 ([#​416](https://www.github.com/googleapis/java-dataproc/issues/416)) ([d7503e7](https://www.github.com/googleapis/java-dataproc/commit/d7503e7c005c240672741fbc5541a7281c55be23)) ##### [1.1.10](https://www.github.com/googleapis/java-dataproc/compare/v1.1.9...v1.1.10) (2020-12-16) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#​404](https://www.github.com/googleapis/java-dataproc/issues/404)) ([6e73894](https://www.github.com/googleapis/java-dataproc/commit/6e738949e8aea8323e83a21d31e7cc26f397653b)) ##### [1.1.9](https://www.github.com/googleapis/java-dataproc/compare/v1.1.8...v1.1.9) (2020-12-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#​399](https://www.github.com/googleapis/java-dataproc/issues/399)) ([2234430](https://www.github.com/googleapis/java-dataproc/commit/2234430a65e1efc416f75b275e922592f2d71ed2)) ##### [1.1.8](https://www.github.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8) (2020-12-02) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#​388](https://www.github.com/googleapis/java-dataproc/issues/388)) ([71f7650](https://www.github.com/googleapis/java-dataproc/commit/71f76506ffbec57e1bf40bec7499652b9684e508)) ##### [1.1.7](https://www.github.com/googleapis/java-dataproc/compare/v1.1.6...v1.1.7) (2020-11-17) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#​370](https://www.github.com/googleapis/java-dataproc/issues/370)) ([8b7cb8a](https://www.github.com/googleapis/java-dataproc/commit/8b7cb8a9f8f0d4148020ab919995d266fbd48f53)) - update dependency com.google.cloud:google-cloud-storage to v1.113.4 ([#​368](https://www.github.com/googleapis/java-dataproc/issues/368)) ([26d4171](https://www.github.com/googleapis/java-dataproc/commit/26d4171bccf35e92ac7d4fc235f356597bdd3438)) ##### [1.1.6](https://www.github.com/googleapis/java-dataproc/compare/v1.1.5...v1.1.6) (2020-10-31) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#​358](https://www.github.com/googleapis/java-dataproc/issues/358)) ([6a5c477](https://www.github.com/googleapis/java-dataproc/commit/6a5c477a0705fd9dbcb3a82f7493001db9a6c85e)) ##### [1.1.5](https://www.github.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5) (2020-10-28) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v1.113.2 ([#​346](https://www.github.com/googleapis/java-dataproc/issues/346)) ([59ffe90](https://www.github.com/googleapis/java-dataproc/commit/59ffe901cc71d845feaec13a99cc802e6655c54b)) ##### [1.1.4](https://www.github.com/googleapis/java-dataproc/compare/v1.1.3...v1.1.4) (2020-10-21) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#​334](https://www.github.com/googleapis/java-dataproc/issues/334)) ([6b9af6c](https://www.github.com/googleapis/java-dataproc/commit/6b9af6c10faca6820f6faabeac0c1fa1c63acf93)) ##### [1.1.3](https://www.github.com/googleapis/java-dataproc/compare/v1.1.2...v1.1.3) (2020-10-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#​326](https://www.github.com/googleapis/java-dataproc/issues/326)) ([31a6573](https://www.github.com/googleapis/java-dataproc/commit/31a6573fb32599020b4463643ba69847d23398c1)) ##### [1.1.2](https://www.github.com/googleapis/java-dataproc/compare/v1.1.1...v1.1.2) (2020-10-08) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#​311](https://www.github.com/googleapis/java-dataproc/issues/311)) ([44ac709](https://www.github.com/googleapis/java-dataproc/commit/44ac709e95478f082260117672e82bc1f31d3d77)) ##### [1.1.1](https://www.github.com/googleapis/java-dataproc/compare/v1.1.0...v1.1.1) (2020-09-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#​298](https://www.github.com/googleapis/java-dataproc/issues/298)) ([7f2088c](https://www.github.com/googleapis/java-dataproc/commit/7f2088c5faf83d74da6775d3a57f4cc9489a8838)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#​278](https://www.github.com/googleapis/java-dataproc/issues/278)) ([73d38d9](https://www.github.com/googleapis/java-dataproc/commit/73d38d954a69cabd223d9df51c7b3ee7e9989a3c))
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 33548088..ebe3e8ea 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.1.10 + 1.2.0 From 41358ea38580f4d3c3aaa331f36dd6cae40a7780 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 12:02:22 -0800 Subject: [PATCH 095/519] chore: regenerate README (#453) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-02-24 19:38:24,467 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 19:38:26,060 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/78a45b23-e294-4a00-b02b-7a2ad67d5222/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index b5542c40..d3fdd946 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "03ef38fc67b19c10afcaa7a36cd8489e22b7a65c" + "sha": "f49ec39719ea65c465ff6601e066b7e6cc675c4b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" + "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" } } ] diff --git a/README.md b/README.md index 2698b6b3..52c6532b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import @@ -46,18 +46,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.4.0') +implementation platform('com.google.cloud:libraries-bom:17.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.1.10' +compile 'com.google.cloud:google-cloud-dataproc:1.2.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.1.10" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.2.0" ``` ## Authentication From 153a5f0db75a37d1aef7b5f52979b7c87a17c9cf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 12:34:09 -0800 Subject: [PATCH 096/519] chore: regenerate README (#454) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-02-24 20:04:37,942 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 20:04:39,459 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/ad3673d2-a720-4606-87a0-74e36bb65639/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index d3fdd946..926be6d8 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f49ec39719ea65c465ff6601e066b7e6cc675c4b" + "sha": "41358ea38580f4d3c3aaa331f36dd6cae40a7780" } }, { diff --git a/README.md b/README.md index 52c6532b..a60fc4fb 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.1.10 + 1.2.0 ``` From d2efdfa8647f972fc271a09a028347483a963ae8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 00:34:02 +0100 Subject: [PATCH 097/519] samples(deps): update dependency com.google.cloud:google-cloud-storage to v1.113.11 (#445) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ebe3e8ea..af5a5614 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.9 + 1.113.11 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 69dd47c5..42570090 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.9 + 1.113.11 junit From 0af4d77339debe9b304e57b61a51d2c52ee4663e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 16:08:08 +0100 Subject: [PATCH 098/519] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#455) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2200b187..9ca9bec8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 7f6f36c699996d7c6c14c38735b93fe09eb95259 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 25 Feb 2021 07:20:04 -0800 Subject: [PATCH 099/519] chore: regenerate README (#456) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-02-25 15:10:20,759 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-25 15:10:22,343 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/e75fa9a0-6bf3-4e3c-b530-09af56303f8b/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 926be6d8..1df56503 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "41358ea38580f4d3c3aaa331f36dd6cae40a7780" + "sha": "0af4d77339debe9b304e57b61a51d2c52ee4663e" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" + "sha": "0199c79b8324fba66476300824aa931788c47e2d" } } ] diff --git a/README.md b/README.md index a60fc4fb..add2943c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:17.0.0') +implementation platform('com.google.cloud:libraries-bom:18.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 629645cbe6563a3abc8784459e44de7ae8c978a4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 20:44:05 +0100 Subject: [PATCH 100/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.0 (#457) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.10.0` -> `0.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/compatibility-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/confidence-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-shared-config ### [`v0.11.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-shared-configcomparev0100v0110-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0) ##### Features - migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#​230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#​221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6)) - update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#​219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413))
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 22eccc14..f73a2b2c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 8498734f..36a36858 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 From ed4e9eb666896855a4fec07f996192d2c09004a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Feb 2021 01:26:08 +0100 Subject: [PATCH 101/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 (#458) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.19.0` -> `0.20.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/compatibility-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/confidence-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-shared-dependencies ### [`v0.20.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0190v0200-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.19.0...v0.20.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.24.0 ([#​284](https://www.github.com/googleapis/java-shared-dependencies/issues/284)) ([5e4914c](https://www.github.com/googleapis/java-shared-dependencies/commit/5e4914cc4a8ccd41a219f150a7455da116d1594b)) - update dependency com.google.http-client:google-http-client-bom to v1.39.0 ([#​288](https://www.github.com/googleapis/java-shared-dependencies/issues/288)) ([70bb862](https://www.github.com/googleapis/java-shared-dependencies/commit/70bb862029b840fbd99ba0109fa2b8f585812793)) - update dependency com.google.protobuf:protobuf-bom to v3.15.1 ([#​282](https://www.github.com/googleapis/java-shared-dependencies/issues/282)) ([44283bd](https://www.github.com/googleapis/java-shared-dependencies/commit/44283bdfdc9288b4a8d16b6ed3a61541792d147e)) - update dependency com.google.protobuf:protobuf-bom to v3.15.2 ([#​287](https://www.github.com/googleapis/java-shared-dependencies/issues/287)) ([bdae560](https://www.github.com/googleapis/java-shared-dependencies/commit/bdae5600f9033219ef8beb6c4d1c521fb062eaec)) - update dependency io.grpc:grpc-bom to v1.36.0 ([#​285](https://www.github.com/googleapis/java-shared-dependencies/issues/285)) ([c59771b](https://www.github.com/googleapis/java-shared-dependencies/commit/c59771b2436ac1a4fbc92b48049900472dd6d3ff)) - update gax.version to v1.62.0 ([#​291](https://www.github.com/googleapis/java-shared-dependencies/issues/291)) ([66bd070](https://www.github.com/googleapis/java-shared-dependencies/commit/66bd0702bd3deb64e0f6c73635e0ffd51a4d637e)) - update google.common-protos.version to v2.1.0 ([#​289](https://www.github.com/googleapis/java-shared-dependencies/issues/289)) ([43c9f02](https://www.github.com/googleapis/java-shared-dependencies/commit/43c9f026b1fa82f38dcb93b902281c2559e82d8e)) - update iam.version to v1.0.9 ([#​281](https://www.github.com/googleapis/java-shared-dependencies/issues/281)) ([ee44d0b](https://www.github.com/googleapis/java-shared-dependencies/commit/ee44d0b41e101931ccf5de2561dfcfcc9ff88b88))
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 36a36858..17c5a5ef 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.19.0 + 0.20.0 pom import From 71c44e9e347707ed08fbc87e5d2c284416e1c2ab Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Feb 2021 00:36:12 +0000 Subject: [PATCH 102/519] chore(master): release 1.2.1 (#459) :robot: I have created a release \*beep\* \*boop\* --- ### [1.2.1](https://www.github.com/googleapis/java-dataproc/compare/v1.2.0...v1.2.1) (2021-02-26) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#458](https://www.github.com/googleapis/java-dataproc/issues/458)) ([ed4e9eb](https://www.github.com/googleapis/java-dataproc/commit/ed4e9eb666896855a4fec07f996192d2c09004a6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de6fa091..934fb289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.2.1](https://www.github.com/googleapis/java-dataproc/compare/v1.2.0...v1.2.1) (2021-02-26) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#458](https://www.github.com/googleapis/java-dataproc/issues/458)) ([ed4e9eb](https://www.github.com/googleapis/java-dataproc/commit/ed4e9eb666896855a4fec07f996192d2c09004a6)) + ## [1.2.0](https://www.github.com/googleapis/java-dataproc/compare/v1.1.10...v1.2.0) (2021-02-22) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index f73a2b2c..f546f2b6 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.2.1-SNAPSHOT + 1.2.1 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.2.1-SNAPSHOT + 1.2.1 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1
                                                                                                              diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index dfc9c929..73caff82 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.2.1-SNAPSHOT + 1.2.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.2.1-SNAPSHOT + 1.2.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 65eb682a..1174c43c 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 7f047502..c4a9945c 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/pom.xml b/pom.xml index 17c5a5ef..c661f647 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.2.1-SNAPSHOT + 1.2.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.cloud google-cloud-dataproc - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 2089e649..b44c5887 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1-SNAPSHOT + 1.2.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 46161d5a..127e1e78 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1-SNAPSHOT + 0.90.1 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 42570090..75df6320 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.2.1-SNAPSHOT + 1.2.1 diff --git a/versions.txt b/versions.txt index 12e38304..43297c3e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.90.0:0.90.1-SNAPSHOT -proto-google-cloud-dataproc-v1:1.2.0:1.2.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.2.0:1.2.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.90.0:0.90.1-SNAPSHOT -google-cloud-dataproc:1.2.0:1.2.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.90.1:0.90.1 +proto-google-cloud-dataproc-v1:1.2.1:1.2.1 +grpc-google-cloud-dataproc-v1:1.2.1:1.2.1 +grpc-google-cloud-dataproc-v1beta2:0.90.1:0.90.1 +google-cloud-dataproc:1.2.1:1.2.1 From 4bec269cce34d49a8a3b9a070256d57a8c5a7fca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Feb 2021 00:46:09 +0000 Subject: [PATCH 103/519] chore(master): release 1.2.2-SNAPSHOT (#460) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index f546f2b6..898b19d6 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.2.1 + 1.2.2-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.2.1 + 1.2.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 73caff82..1d4882b7 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.2.1 + 1.2.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.2.1 + 1.2.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 1174c43c..c2ab29a7 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index c4a9945c..6c224613 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index c661f647..d4f3939b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.2.1 + 1.2.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index b44c5887..a6e8cd1d 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.1 + 1.2.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 127e1e78..87ca7a7c 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.1 + 0.90.2-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 75df6320..b6633e43 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.2.1 + 1.2.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 43297c3e..c91788b0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.90.1:0.90.1 -proto-google-cloud-dataproc-v1:1.2.1:1.2.1 -grpc-google-cloud-dataproc-v1:1.2.1:1.2.1 -grpc-google-cloud-dataproc-v1beta2:0.90.1:0.90.1 -google-cloud-dataproc:1.2.1:1.2.1 +proto-google-cloud-dataproc-v1beta2:0.90.1:0.90.2-SNAPSHOT +proto-google-cloud-dataproc-v1:1.2.1:1.2.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.2.1:1.2.2-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.90.1:0.90.2-SNAPSHOT +google-cloud-dataproc:1.2.1:1.2.2-SNAPSHOT From ef5f0bcf9981a1f61ed460f798b932b1d74291c0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:30:26 -0800 Subject: [PATCH 104/519] feat(generator): update protoc to v3.15.3 (#462) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/20ff8108-4bb8-44d9-b386-bf2432a15754/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../google/cloud/dataproc/v1/HadoopJob.java | 68 +++++++++++++++++++ .../cloud/dataproc/v1/HadoopJobOrBuilder.java | 29 ++++++++ .../com/google/cloud/dataproc/v1/HiveJob.java | 29 ++++++++ .../cloud/dataproc/v1/HiveJobOrBuilder.java | 12 ++++ .../com/google/cloud/dataproc/v1/PigJob.java | 29 ++++++++ .../cloud/dataproc/v1/PigJobOrBuilder.java | 12 ++++ .../google/cloud/dataproc/v1/PrestoJob.java | 29 ++++++++ .../cloud/dataproc/v1/PrestoJobOrBuilder.java | 12 ++++ .../google/cloud/dataproc/v1/SparkJob.java | 60 ++++++++++++++++ .../cloud/dataproc/v1/SparkJobOrBuilder.java | 25 +++++++ .../google/cloud/dataproc/v1/SparkSqlJob.java | 29 ++++++++ .../dataproc/v1/SparkSqlJobOrBuilder.java | 12 ++++ .../cloud/dataproc/v1beta2/HadoopJob.java | 68 +++++++++++++++++++ .../dataproc/v1beta2/HadoopJobOrBuilder.java | 29 ++++++++ .../cloud/dataproc/v1beta2/HiveJob.java | 29 ++++++++ .../dataproc/v1beta2/HiveJobOrBuilder.java | 12 ++++ .../google/cloud/dataproc/v1beta2/PigJob.java | 29 ++++++++ .../dataproc/v1beta2/PigJobOrBuilder.java | 12 ++++ .../cloud/dataproc/v1beta2/PrestoJob.java | 29 ++++++++ .../dataproc/v1beta2/PrestoJobOrBuilder.java | 12 ++++ .../cloud/dataproc/v1beta2/SparkJob.java | 60 ++++++++++++++++ .../dataproc/v1beta2/SparkJobOrBuilder.java | 25 +++++++ .../cloud/dataproc/v1beta2/SparkSqlJob.java | 29 ++++++++ .../v1beta2/SparkSqlJobOrBuilder.java | 12 ++++ synth.metadata | 10 +-- 25 files changed, 697 insertions(+), 5 deletions(-) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java index 50beb76f..6a5663db 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java @@ -268,6 +268,24 @@ public DriverCase getDriverCase() { } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file containing the main class.
                                                                                                              +   * Examples:
                                                                                                              +   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -332,6 +350,21 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } public static final int MAIN_CLASS_FIELD_NUMBER = 2; + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file containing the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * @@ -1419,6 +1452,25 @@ public Builder clearDriver() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the jar file containing the main class.
                                                                                                              +     * Examples:
                                                                                                              +     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +     * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + @java.lang.Override + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -1558,6 +1610,22 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                              +     * The name of the driver's main class. The jar file containing the class
                                                                                                              +     * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +     * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + @java.lang.Override + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java index c46c2deb..2ac0697f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java @@ -23,6 +23,22 @@ public interface HadoopJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HadoopJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file containing the main class.
                                                                                                              +   * Examples:
                                                                                                              +   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + boolean hasMainJarFileUri(); /** * * @@ -56,6 +72,19 @@ public interface HadoopJobOrBuilder */ com.google.protobuf.ByteString getMainJarFileUriBytes(); + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file containing the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + boolean hasMainClass(); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java index 19080e17..f93e4aca 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java @@ -240,6 +240,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains Hive queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1156,6 +1170,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains Hive queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java index 1132b56e..56fbdebf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java @@ -23,6 +23,18 @@ public interface HiveJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HiveJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains Hive queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java index 0f835a9a..6eed2768 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java @@ -256,6 +256,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1250,6 +1264,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java index 0a51b64c..63d44fe8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java @@ -23,6 +23,18 @@ public interface PigJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PigJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java index 3fb20f5d..6a7cd0d9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java @@ -248,6 +248,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1172,6 +1186,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains SQL queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java index c5c3173a..acd54f71 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java @@ -23,6 +23,18 @@ public interface PrestoJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PrestoJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java index 27fad2e2..eec98138 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java @@ -265,6 +265,20 @@ public DriverCase getDriverCase() { } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file that contains the main class.
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -321,6 +335,21 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } public static final int MAIN_CLASS_FIELD_NUMBER = 2; + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file that contains the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * @@ -1396,6 +1425,21 @@ public Builder clearDriver() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the jar file that contains the main class.
                                                                                                              +     * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + @java.lang.Override + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -1515,6 +1559,22 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                              +     * The name of the driver's main class. The jar file that contains the class
                                                                                                              +     * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +     * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + @java.lang.Override + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java index d7bee0cc..4505f598 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java @@ -23,6 +23,18 @@ public interface SparkJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file that contains the main class.
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + boolean hasMainJarFileUri(); /** * * @@ -48,6 +60,19 @@ public interface SparkJobOrBuilder */ com.google.protobuf.ByteString getMainJarFileUriBytes(); + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file that contains the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + boolean hasMainClass(); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java index 4fe814cf..1a337c17 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java @@ -251,6 +251,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1204,6 +1218,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains SQL queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java index feebc697..3ba69d14 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java @@ -23,6 +23,18 @@ public interface SparkSqlJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java index a35bef61..268c5a3e 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java @@ -268,6 +268,24 @@ public DriverCase getDriverCase() { } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file containing the main class.
                                                                                                              +   * Examples:
                                                                                                              +   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -332,6 +350,21 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } public static final int MAIN_CLASS_FIELD_NUMBER = 2; + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file containing the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * @@ -1420,6 +1453,25 @@ public Builder clearDriver() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the jar file containing the main class.
                                                                                                              +     * Examples:
                                                                                                              +     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +     * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + @java.lang.Override + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -1559,6 +1611,22 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                              +     * The name of the driver's main class. The jar file containing the class
                                                                                                              +     * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +     * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + @java.lang.Override + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java index 2c018b8a..d22ea544 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java @@ -23,6 +23,22 @@ public interface HadoopJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.HadoopJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file containing the main class.
                                                                                                              +   * Examples:
                                                                                                              +   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
                                                                                                              +   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
                                                                                                              +   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + boolean hasMainJarFileUri(); /** * * @@ -56,6 +72,19 @@ public interface HadoopJobOrBuilder */ com.google.protobuf.ByteString getMainJarFileUriBytes(); + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file containing the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + boolean hasMainClass(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java index 789ac87a..51d57127 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java @@ -240,6 +240,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains Hive queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1159,6 +1173,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains Hive queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java index 29ed744c..31690abb 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java @@ -23,6 +23,18 @@ public interface HiveJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.HiveJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains Hive queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java index daa251e0..5099c20a 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java @@ -256,6 +256,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1252,6 +1266,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java index 620719a0..43638323 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java @@ -23,6 +23,18 @@ public interface PigJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.PigJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains the Pig queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java index 014d0f89..5177b78b 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java @@ -248,6 +248,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1173,6 +1187,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains SQL queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java index 371c7b70..629e2308 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java @@ -23,6 +23,18 @@ public interface PrestoJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.PrestoJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java index 98672cc5..61953199 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java @@ -270,6 +270,20 @@ public DriverCase getDriverCase() { } public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file that contains the main class.
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -326,6 +340,21 @@ public com.google.protobuf.ByteString getMainJarFileUriBytes() { } public static final int MAIN_CLASS_FIELD_NUMBER = 2; + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file that contains the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * @@ -1408,6 +1437,21 @@ public Builder clearDriver() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the jar file that contains the main class.
                                                                                                              +     * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + @java.lang.Override + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } /** * * @@ -1527,6 +1571,22 @@ public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
                                                                                                              +     * The name of the driver's main class. The jar file that contains the class
                                                                                                              +     * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +     * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + @java.lang.Override + public boolean hasMainClass() { + return driverCase_ == 2; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java index 198adb65..a2803a3b 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java @@ -23,6 +23,18 @@ public interface SparkJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the jar file that contains the main class.
                                                                                                              +   * 
                                                                                                              + * + * string main_jar_file_uri = 1; + * + * @return Whether the mainJarFileUri field is set. + */ + boolean hasMainJarFileUri(); /** * * @@ -48,6 +60,19 @@ public interface SparkJobOrBuilder */ com.google.protobuf.ByteString getMainJarFileUriBytes(); + /** + * + * + *
                                                                                                              +   * The name of the driver's main class. The jar file that contains the class
                                                                                                              +   * must be in the default CLASSPATH or specified in `jar_file_uris`.
                                                                                                              +   * 
                                                                                                              + * + * string main_class = 2; + * + * @return Whether the mainClass field is set. + */ + boolean hasMainClass(); /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java index 31140d3c..8de6cf6c 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java @@ -251,6 +251,20 @@ public QueriesCase getQueriesCase() { } public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * @@ -1205,6 +1219,21 @@ public Builder clearQueries() { private int bitField0_; + /** + * + * + *
                                                                                                              +     * The HCFS URI of the script that contains SQL queries.
                                                                                                              +     * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + @java.lang.Override + public boolean hasQueryFileUri() { + return queriesCase_ == 1; + } /** * * diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java index c28466db..cecb1f2d 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java @@ -23,6 +23,18 @@ public interface SparkSqlJobOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkSqlJob) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                                                                                              +   * The HCFS URI of the script that contains SQL queries.
                                                                                                              +   * 
                                                                                                              + * + * string query_file_uri = 1; + * + * @return Whether the queryFileUri field is set. + */ + boolean hasQueryFileUri(); /** * * diff --git a/synth.metadata b/synth.metadata index 5aa27473..65fc19f6 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "db549f9a231eca393c0c1bfda8f004be8e0f7cd9" + "sha": "4bec269cce34d49a8a3b9a070256d57a8c5a7fca" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { From 9b6c4f53c68462b17e3626b95c4fe94104d3f51d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:46:25 -0800 Subject: [PATCH 105/519] chore: regenerate README (#464) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-01 17:32:52,514 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-01 17:32:54,107 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/6e3e8e9e-d0a8-4c2d-9279-85a713048368/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 1df56503..5549c12f 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "0af4d77339debe9b304e57b61a51d2c52ee4663e" + "sha": "ef5f0bcf9981a1f61ed460f798b932b1d74291c0" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0199c79b8324fba66476300824aa931788c47e2d" + "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" } } ] diff --git a/README.md b/README.md index add2943c..c7ff2a2f 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.2.0' +compile 'com.google.cloud:google-cloud-dataproc:1.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.2.1" ``` ## Authentication From 3c093aa573a78330df4486d910d8c857f24b9225 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 16:44:30 -0800 Subject: [PATCH 106/519] chore: remove docLava v2 doc generation (#466) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ee71d617-e341-4f08-b5ee-4a7d066ce934/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/21da7d9fa02f6916d9f87cf4072b3547b5c72eb5 --- .kokoro/release/publish_javadoc.cfg | 8 +------- .kokoro/release/publish_javadoc.sh | 19 ------------------- synth.metadata | 4 ++-- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index 5bbfb5de..5e9f8e43 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,12 +7,6 @@ env_vars: { value: "docs-staging" } -# cloud-rad staging -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" -} - env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-dataproc/.kokoro/release/publish_javadoc.sh" @@ -26,4 +20,4 @@ before_action { keyname: "docuploader_service_account" } } -} \ No newline at end of file +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 354f5453..3fbacdaa 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -56,22 +56,3 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET} - -popd - -# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. - -mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" - -pushd target/devsite/reference - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs to staging bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} diff --git a/synth.metadata b/synth.metadata index 65fc19f6..00e17a58 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "4bec269cce34d49a8a3b9a070256d57a8c5a7fca" + "sha": "9b6c4f53c68462b17e3626b95c4fe94104d3f51d" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" + "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" } } ], From 00bd86aa5bd68c3b36665273a0c0fb2c00df5440 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Mar 2021 20:36:10 +0100 Subject: [PATCH 107/519] chore(deps): update dependency com.google.cloud:libraries-bom to v18.1.0 (#467) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `18.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9ca9bec8..9a9fd1a1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 18.1.0 pom import From ae33794818b6abc28c3e4d71c6ed33d62ac577b3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Mar 2021 20:38:17 +0100 Subject: [PATCH 108/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.2.1 (#461) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.2.0` -> `1.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.1/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.2.1/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index af5a5614..6d0c494d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1 From 1d588989948677fdbdcb45003a266f07067ee1e6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Mar 2021 12:30:07 -0800 Subject: [PATCH 109/519] chore: regenerate README (#468) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-03 19:38:56,301 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-03 19:38:57,256 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/dfdebe26-adee-40e6-b07a-f7a3c56be009/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 5549c12f..16a5eb6b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "ef5f0bcf9981a1f61ed460f798b932b1d74291c0" + "sha": "ae33794818b6abc28c3e4d71c6ed33d62ac577b3" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" + "sha": "2e7bd5cc66a3f0b90ce1c150eb35c89eeb9872d6" } } ] diff --git a/README.md b/README.md index c7ff2a2f..6f4c370f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 18.0.0 + 18.1.0 pom import @@ -39,14 +39,14 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.2.0 + 1.2.1 ``` If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:18.0.0') +implementation platform('com.google.cloud:libraries-bom:18.1.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 0a1f7c6f56de2a414eaac485ff092e3fc5858a93 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 08:04:23 -0800 Subject: [PATCH 110/519] chore(release): update Java microgenerator to 1.0.1 (#469) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/275ac997-7e27-4573-b8f9-23808247186d/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 360805639 Source-Link: https://github.com/googleapis/googleapis/commit/3befd26ca55723d3e8111909331eac1249837987 --- .../dataproc/v1/AutoscalingPolicyServiceClient.java | 2 +- .../dataproc/v1/AutoscalingPolicyServiceSettings.java | 2 +- .../cloud/dataproc/v1/ClusterControllerClient.java | 2 +- .../cloud/dataproc/v1/ClusterControllerSettings.java | 2 +- .../google/cloud/dataproc/v1/JobControllerClient.java | 2 +- .../cloud/dataproc/v1/JobControllerSettings.java | 2 +- .../dataproc/v1/WorkflowTemplateServiceClient.java | 2 +- .../dataproc/v1/WorkflowTemplateServiceSettings.java | 2 +- .../com/google/cloud/dataproc/v1/package-info.java | 2 +- .../dataproc/v1/stub/AutoscalingPolicyServiceStub.java | 2 +- .../v1/stub/AutoscalingPolicyServiceStubSettings.java | 2 +- .../cloud/dataproc/v1/stub/ClusterControllerStub.java | 2 +- .../v1/stub/ClusterControllerStubSettings.java | 2 +- .../GrpcAutoscalingPolicyServiceCallableFactory.java | 2 +- .../v1/stub/GrpcAutoscalingPolicyServiceStub.java | 2 +- .../v1/stub/GrpcClusterControllerCallableFactory.java | 2 +- .../dataproc/v1/stub/GrpcClusterControllerStub.java | 2 +- .../v1/stub/GrpcJobControllerCallableFactory.java | 2 +- .../cloud/dataproc/v1/stub/GrpcJobControllerStub.java | 2 +- .../GrpcWorkflowTemplateServiceCallableFactory.java | 2 +- .../v1/stub/GrpcWorkflowTemplateServiceStub.java | 2 +- .../cloud/dataproc/v1/stub/JobControllerStub.java | 2 +- .../dataproc/v1/stub/JobControllerStubSettings.java | 2 +- .../dataproc/v1/stub/WorkflowTemplateServiceStub.java | 2 +- .../v1/stub/WorkflowTemplateServiceStubSettings.java | 2 +- .../v1beta2/AutoscalingPolicyServiceClient.java | 2 +- .../v1beta2/AutoscalingPolicyServiceSettings.java | 2 +- .../dataproc/v1beta2/ClusterControllerClient.java | 2 +- .../dataproc/v1beta2/ClusterControllerSettings.java | 2 +- .../cloud/dataproc/v1beta2/JobControllerClient.java | 2 +- .../cloud/dataproc/v1beta2/JobControllerSettings.java | 2 +- .../v1beta2/WorkflowTemplateServiceClient.java | 2 +- .../v1beta2/WorkflowTemplateServiceSettings.java | 2 +- .../google/cloud/dataproc/v1beta2/package-info.java | 2 +- .../v1beta2/stub/AutoscalingPolicyServiceStub.java | 2 +- .../stub/AutoscalingPolicyServiceStubSettings.java | 2 +- .../dataproc/v1beta2/stub/ClusterControllerStub.java | 2 +- .../v1beta2/stub/ClusterControllerStubSettings.java | 2 +- .../GrpcAutoscalingPolicyServiceCallableFactory.java | 2 +- .../v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java | 2 +- .../stub/GrpcClusterControllerCallableFactory.java | 2 +- .../v1beta2/stub/GrpcClusterControllerStub.java | 2 +- .../v1beta2/stub/GrpcJobControllerCallableFactory.java | 2 +- .../dataproc/v1beta2/stub/GrpcJobControllerStub.java | 2 +- .../GrpcWorkflowTemplateServiceCallableFactory.java | 2 +- .../v1beta2/stub/GrpcWorkflowTemplateServiceStub.java | 2 +- .../cloud/dataproc/v1beta2/stub/JobControllerStub.java | 2 +- .../v1beta2/stub/JobControllerStubSettings.java | 2 +- .../v1beta2/stub/WorkflowTemplateServiceStub.java | 2 +- .../stub/WorkflowTemplateServiceStubSettings.java | 2 +- .../v1/AutoscalingPolicyServiceClientTest.java | 2 +- .../cloud/dataproc/v1/ClusterControllerClientTest.java | 2 +- .../cloud/dataproc/v1/JobControllerClientTest.java | 2 +- .../dataproc/v1/MockAutoscalingPolicyService.java | 2 +- .../dataproc/v1/MockAutoscalingPolicyServiceImpl.java | 2 +- .../cloud/dataproc/v1/MockClusterController.java | 2 +- .../cloud/dataproc/v1/MockClusterControllerImpl.java | 2 +- .../google/cloud/dataproc/v1/MockJobController.java | 2 +- .../cloud/dataproc/v1/MockJobControllerImpl.java | 2 +- .../cloud/dataproc/v1/MockWorkflowTemplateService.java | 2 +- .../dataproc/v1/MockWorkflowTemplateServiceImpl.java | 2 +- .../dataproc/v1/WorkflowTemplateServiceClientTest.java | 2 +- .../v1beta2/AutoscalingPolicyServiceClientTest.java | 2 +- .../dataproc/v1beta2/ClusterControllerClientTest.java | 2 +- .../dataproc/v1beta2/JobControllerClientTest.java | 2 +- .../dataproc/v1beta2/MockAutoscalingPolicyService.java | 2 +- .../v1beta2/MockAutoscalingPolicyServiceImpl.java | 2 +- .../cloud/dataproc/v1beta2/MockClusterController.java | 2 +- .../dataproc/v1beta2/MockClusterControllerImpl.java | 2 +- .../cloud/dataproc/v1beta2/MockJobController.java | 2 +- .../cloud/dataproc/v1beta2/MockJobControllerImpl.java | 2 +- .../dataproc/v1beta2/MockWorkflowTemplateService.java | 2 +- .../v1beta2/MockWorkflowTemplateServiceImpl.java | 2 +- .../v1beta2/WorkflowTemplateServiceClientTest.java | 2 +- .../cloud/dataproc/v1/AutoscalingPolicyName.java | 2 +- .../com/google/cloud/dataproc/v1/LocationName.java | 2 +- .../java/com/google/cloud/dataproc/v1/RegionName.java | 2 +- .../google/cloud/dataproc/v1/WorkflowTemplateName.java | 2 +- .../cloud/dataproc/v1beta2/AutoscalingPolicyName.java | 2 +- .../com/google/cloud/dataproc/v1beta2/ClusterName.java | 2 +- .../google/cloud/dataproc/v1beta2/LocationName.java | 2 +- .../com/google/cloud/dataproc/v1beta2/RegionName.java | 2 +- .../cloud/dataproc/v1beta2/WorkflowTemplateName.java | 2 +- synth.metadata | 10 +++++----- 84 files changed, 88 insertions(+), 88 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 9247e11f..f7bbadd5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index 1ca5daa8..aba49662 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 2b2443c1..e07fbb63 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index b8b22b72..e4d40160 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 2ca6e8af..fdf358c0 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index 546f5cf7..c16d3caa 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index b334fec5..ba8bbeb1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index 03d89c31..a964f1e5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index b152ad3c..246d9b5f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java index 4d3137a7..a4cb2d3b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 2ef752ad..50647e7e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java index c8a161b4..f75e4fbd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index d2c3ce62..ee7a93e4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index 6fc11a53..8bb76da3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 55f11d0d..99be2b1b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java index 63442c5c..7e08bdaf 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 694cae3b..687b1896 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java index 86be4daa..6c20d95a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index e22f7c9b..e21d889f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java index 2b8ccb12..5899556e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index f5f13b6a..8f3d88ec 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java index fccb5d88..d3613add 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 6f4fb9c2..de11fe5c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java index 42792163..ea75946b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 00bcf4bc..e4deecf0 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java index dedaf8ce..f62f81d7 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java index aeda5508..9f5756f5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index e22a9611..a7b58cde 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java index 3825a940..eafa8bc3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 0ffd23e4..384e17c9 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java index 28d2e477..f700dd21 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 99f89e98..5463128d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java index 469ddf36..fbf23573 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java index 726b57a2..bfcbb6a1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java index 2592bd13..c51aa7c7 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java index fd716b84..b8367707 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java index 7da04316..8e879b50 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java index 7857251c..e4e208a1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java index b47b3603..489b9010 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index de3954cb..c784c73a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java index 6fe8a4dd..4f28cfab 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index 39f0ad27..770ac946 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java index 572294a2..16ed3d2d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index 68446e56..2b9469e5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java index 6fd2cb9c..36506b4a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index 0abe58a9..2e95fc12 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java index 33542906..58a13533 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java index e6b58847..f8f73f2e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java index b117802a..bb8047dd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java index 0912dd69..fb5f930e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java index f6e981c4..437c8c00 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java index 40d059f8..b43be30a 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java index 6cf661b9..5c6f6d2c 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java index a15d9f48..fbceec8b 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java index c97ce130..5528721e 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java index 57479579..757fb4cf 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java index 5380d36e..e3168799 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java index da1f93da..f585b65e 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java index facfa484..2571d765 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java index d42a4daf..f4881cc5 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java index fe566591..88e8e17f 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java index 051b20e0..ec172781 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java index bdfab55a..6014512e 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java index 95520651..b2dbac3d 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java index 736499f5..3314216c 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java index 067e045d..ef5d92e4 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java index 7ea9b907..af9c4d69 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java index 296e5a3d..da78be2e 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java index 13d5aa0b..5df752ef 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java index b970524d..e3272336 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java index 4293a3d6..49791494 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java index 295398c7..dfb8a3b0 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java index 694f7d00..3b2a87bf 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java index 1594a95d..86ec5be0 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java index 7266069a..bc836f51 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java index 94a1ecfb..5f2c086f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java index 46a8e3cd..eed9dfd4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java index b471a5b9..96e8c16d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java index a04de167..55a5265e 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java index 244cc71b..88016ac9 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java index 59696061..5f3f1944 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java index 3cd8a0cf..93f6954d 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java index 172c2420..16ed07be 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/synth.metadata b/synth.metadata index 00e17a58..e2675733 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "9b6c4f53c68462b17e3626b95c4fe94104d3f51d" + "sha": "1d588989948677fdbdcb45003a266f07067ee1e6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", - "internalRef": "359781040" + "sha": "3befd26ca55723d3e8111909331eac1249837987", + "internalRef": "360805639" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", - "internalRef": "359781040" + "sha": "3befd26ca55723d3e8111909331eac1249837987", + "internalRef": "360805639" } }, { From 7864f424259d7386ee6f24552b8fc070411e5564 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 08:40:20 -0800 Subject: [PATCH 111/519] chore: regenerate README (#471) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-04 16:06:35,485 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-04 16:06:36,443 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/24425041-0a2e-4b49-aec2-a45b223b1988/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 16a5eb6b..a2b20ea2 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "ae33794818b6abc28c3e4d71c6ed33d62ac577b3" + "sha": "0a1f7c6f56de2a414eaac485ff092e3fc5858a93" } }, { diff --git a/README.md b/README.md index 6f4c370f..a05f742f 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:18.1.0') +implementation platform('com.google.cloud:libraries-bom:19.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 46028fe9ceebafb3036b79f8c12b92abf460616d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:47 +0100 Subject: [PATCH 112/519] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#470) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.1.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9a9fd1a1..ff168ab8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.1.0 + 19.0.0 pom import From 75c4a73983d6073a595056fb86aedb53c340a378 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 11:58:44 -0800 Subject: [PATCH 113/519] chore: regenerate README (#472) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-04 19:43:40,450 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-04 19:43:41,296 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/0751b653-cb9c-4526-897d-accc9dad1828/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index a2b20ea2..a4ab2a81 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "0a1f7c6f56de2a414eaac485ff092e3fc5858a93" + "sha": "46028fe9ceebafb3036b79f8c12b92abf460616d" } }, { diff --git a/README.md b/README.md index a05f742f..986d0179 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 18.1.0 + 19.0.0 pom import From e95b8f219702434443eb362345ad9d394a6431b0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 15:52:09 -0800 Subject: [PATCH 114/519] chore: copy README to docfx-yml dir (#473) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d7228b3e-1797-4121-9880-b79d0244a6b6/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/d0bdade9a962042dc0f770cf631086f3db59b5b0 --- .kokoro/release/publish_javadoc11.sh | 5 ++++- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 2764468c..4436f0be 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -40,6 +40,9 @@ export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # 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 + pushd target/docfx-yml # create metadata @@ -52,4 +55,4 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx- + --destination-prefix docfx diff --git a/synth.metadata b/synth.metadata index e2675733..d5b0c6a2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "1d588989948677fdbdcb45003a266f07067ee1e6" + "sha": "75c4a73983d6073a595056fb86aedb53c340a378" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" + "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" } } ], From 03f261be86b9d1a8df9b7ec377db67bc6b0e91f3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Mar 2021 08:28:32 -0800 Subject: [PATCH 115/519] chore: update gax-java dependency to 1.62 (#474) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2718da3c-b88a-48de-aced-8b584fdcf2da/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 --- .../v1/AutoscalingPolicyServiceGrpc.java | 60 ++++++------- .../dataproc/v1/ClusterControllerGrpc.java | 76 ++++++++-------- .../cloud/dataproc/v1/JobControllerGrpc.java | 88 ++++++++++--------- .../v1/WorkflowTemplateServiceGrpc.java | 82 ++++++++--------- .../v1beta2/AutoscalingPolicyServiceGrpc.java | 60 ++++++------- .../v1beta2/ClusterControllerGrpc.java | 76 ++++++++-------- .../dataproc/v1beta2/JobControllerGrpc.java | 88 ++++++++++--------- .../v1beta2/WorkflowTemplateServiceGrpc.java | 82 ++++++++--------- synth.metadata | 10 +-- 9 files changed, 327 insertions(+), 295 deletions(-) diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java index 80062108..7b8b76cb 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -359,7 +354,8 @@ public void createAutoscalingPolicy( com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAutoscalingPolicyMethod(), responseObserver); } /** @@ -375,7 +371,8 @@ public void updateAutoscalingPolicy( com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAutoscalingPolicyMethod(), responseObserver); } /** @@ -389,7 +386,8 @@ public void getAutoscalingPolicy( com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAutoscalingPolicyMethod(), responseObserver); } /** @@ -403,7 +401,8 @@ public void listAutoscalingPolicies( com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAutoscalingPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutoscalingPoliciesMethod(), responseObserver); } /** @@ -417,7 +416,8 @@ public void listAutoscalingPolicies( public void deleteAutoscalingPolicy( com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAutoscalingPolicyMethod(), responseObserver); } @java.lang.Override @@ -425,35 +425,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, com.google.cloud.dataproc.v1.AutoscalingPolicy>( this, METHODID_CREATE_AUTOSCALING_POLICY))) .addMethod( getUpdateAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, com.google.cloud.dataproc.v1.AutoscalingPolicy>( this, METHODID_UPDATE_AUTOSCALING_POLICY))) .addMethod( getGetAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, com.google.cloud.dataproc.v1.AutoscalingPolicy>( this, METHODID_GET_AUTOSCALING_POLICY))) .addMethod( getListAutoscalingPoliciesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( this, METHODID_LIST_AUTOSCALING_POLICIES))) .addMethod( getDeleteAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) @@ -492,7 +492,7 @@ public void createAutoscalingPolicy( com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -511,7 +511,7 @@ public void updateAutoscalingPolicy( com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -528,7 +528,7 @@ public void getAutoscalingPolicy( com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -545,7 +545,7 @@ public void listAutoscalingPolicies( com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request, responseObserver); @@ -562,7 +562,7 @@ public void listAutoscalingPolicies( public void deleteAutoscalingPolicy( com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -599,7 +599,7 @@ protected AutoscalingPolicyServiceBlockingStub build( */ public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -614,7 +614,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( */ public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -627,7 +627,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( */ public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -640,7 +640,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( */ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies( com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); } @@ -654,7 +654,7 @@ public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscal */ public com.google.protobuf.Empty deleteAutoscalingPolicy( com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); } } @@ -691,7 +691,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1.AutoscalingPolicy> createAutoscalingPolicy( com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -708,7 +708,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1.AutoscalingPolicy> updateAutoscalingPolicy( com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -722,7 +722,7 @@ protected AutoscalingPolicyServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.AutoscalingPolicy> getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -737,7 +737,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> listAutoscalingPolicies( com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); } @@ -752,7 +752,7 @@ protected AutoscalingPolicyServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteAutoscalingPolicy( com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java index 7a2eb402..5da6ef58 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -364,7 +359,8 @@ public abstract static class ClusterControllerImplBase implements io.grpc.Bindab public void createCluster( com.google.cloud.dataproc.v1.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); } /** @@ -379,7 +375,8 @@ public void createCluster( public void updateCluster( com.google.cloud.dataproc.v1.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); } /** @@ -394,7 +391,8 @@ public void updateCluster( public void deleteCluster( com.google.cloud.dataproc.v1.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); } /** @@ -407,7 +405,7 @@ public void deleteCluster( public void getCluster( com.google.cloud.dataproc.v1.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); } /** @@ -421,7 +419,8 @@ public void listClusters( com.google.cloud.dataproc.v1.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); } /** @@ -440,7 +439,8 @@ public void listClusters( public void diagnoseCluster( com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDiagnoseClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiagnoseClusterMethod(), responseObserver); } @java.lang.Override @@ -448,38 +448,38 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) .addMethod( getUpdateClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) .addMethod( getDeleteClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) .addMethod( getGetClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster>(this, METHODID_GET_CLUSTER))) .addMethod( getListClustersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.ListClustersRequest, com.google.cloud.dataproc.v1.ListClustersResponse>( this, METHODID_LIST_CLUSTERS))) .addMethod( getDiagnoseClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) @@ -519,7 +519,7 @@ protected ClusterControllerStub build( public void createCluster( com.google.cloud.dataproc.v1.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); @@ -537,7 +537,7 @@ public void createCluster( public void updateCluster( com.google.cloud.dataproc.v1.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request, responseObserver); @@ -555,7 +555,7 @@ public void updateCluster( public void deleteCluster( com.google.cloud.dataproc.v1.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request, responseObserver); @@ -571,7 +571,7 @@ public void deleteCluster( public void getCluster( com.google.cloud.dataproc.v1.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); } @@ -586,7 +586,7 @@ public void listClusters( com.google.cloud.dataproc.v1.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); @@ -608,7 +608,7 @@ public void listClusters( public void diagnoseCluster( com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request, responseObserver); @@ -647,7 +647,8 @@ protected ClusterControllerBlockingStub build( */ public com.google.longrunning.Operation createCluster( com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return blockingUnaryCall(getChannel(), getCreateClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); } /** @@ -661,7 +662,8 @@ public com.google.longrunning.Operation createCluster( */ public com.google.longrunning.Operation updateCluster( com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return blockingUnaryCall(getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } /** @@ -675,7 +677,8 @@ public com.google.longrunning.Operation updateCluster( */ public com.google.longrunning.Operation deleteCluster( com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return blockingUnaryCall(getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } /** @@ -687,7 +690,8 @@ public com.google.longrunning.Operation deleteCluster( */ public com.google.cloud.dataproc.v1.Cluster getCluster( com.google.cloud.dataproc.v1.GetClusterRequest request) { - return blockingUnaryCall(getChannel(), getGetClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); } /** @@ -699,7 +703,8 @@ public com.google.cloud.dataproc.v1.Cluster getCluster( */ public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( com.google.cloud.dataproc.v1.ListClustersRequest request) { - return blockingUnaryCall(getChannel(), getListClustersMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); } /** @@ -717,7 +722,8 @@ public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( */ public com.google.longrunning.Operation diagnoseCluster( com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return blockingUnaryCall(getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); } } @@ -752,7 +758,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } @@ -767,7 +773,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } @@ -782,7 +788,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } @@ -795,7 +801,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } @@ -809,7 +815,7 @@ protected ClusterControllerFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.ListClustersResponse> listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } @@ -828,7 +834,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java index 749d4504..34acc0ca 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -391,7 +386,7 @@ public abstract static class JobControllerImplBase implements io.grpc.BindableSe public void submitJob( com.google.cloud.dataproc.v1.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); } /** @@ -404,7 +399,8 @@ public void submitJob( public void submitJobAsOperation( com.google.cloud.dataproc.v1.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitJobAsOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubmitJobAsOperationMethod(), responseObserver); } /** @@ -417,7 +413,7 @@ public void submitJobAsOperation( public void getJob( com.google.cloud.dataproc.v1.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); } /** @@ -431,7 +427,7 @@ public void listJobs( com.google.cloud.dataproc.v1.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); } /** @@ -444,7 +440,7 @@ public void listJobs( public void updateJob( com.google.cloud.dataproc.v1.UpdateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); } /** @@ -461,7 +457,7 @@ public void updateJob( public void cancelJob( com.google.cloud.dataproc.v1.CancelJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); } /** @@ -475,7 +471,7 @@ public void cancelJob( public void deleteJob( com.google.cloud.dataproc.v1.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); } @java.lang.Override @@ -483,43 +479,43 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSubmitJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job>(this, METHODID_SUBMIT_JOB))) .addMethod( getSubmitJobAsOperationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) .addMethod( getGetJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job>( this, METHODID_GET_JOB))) .addMethod( getListJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.ListJobsRequest, com.google.cloud.dataproc.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) .addMethod( getUpdateJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job>(this, METHODID_UPDATE_JOB))) .addMethod( getCancelJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job>(this, METHODID_CANCEL_JOB))) .addMethod( getDeleteJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_JOB))) @@ -555,7 +551,7 @@ protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions c public void submitJob( com.google.cloud.dataproc.v1.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); } @@ -569,7 +565,7 @@ public void submitJob( public void submitJobAsOperation( com.google.cloud.dataproc.v1.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request, responseObserver); @@ -585,7 +581,7 @@ public void submitJobAsOperation( public void getJob( com.google.cloud.dataproc.v1.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); } @@ -600,7 +596,7 @@ public void listJobs( com.google.cloud.dataproc.v1.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); } @@ -614,7 +610,7 @@ public void listJobs( public void updateJob( com.google.cloud.dataproc.v1.UpdateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); } @@ -632,7 +628,7 @@ public void updateJob( public void cancelJob( com.google.cloud.dataproc.v1.CancelJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); } @@ -647,7 +643,7 @@ public void cancelJob( public void deleteJob( com.google.cloud.dataproc.v1.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); } } @@ -680,7 +676,8 @@ protected JobControllerBlockingStub build( */ public com.google.cloud.dataproc.v1.Job submitJob( com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return blockingUnaryCall(getChannel(), getSubmitJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobMethod(), getCallOptions(), request); } /** @@ -692,7 +689,7 @@ public com.google.cloud.dataproc.v1.Job submitJob( */ public com.google.longrunning.Operation submitJobAsOperation( com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); } @@ -705,7 +702,8 @@ public com.google.longrunning.Operation submitJobAsOperation( */ public com.google.cloud.dataproc.v1.Job getJob( com.google.cloud.dataproc.v1.GetJobRequest request) { - return blockingUnaryCall(getChannel(), getGetJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); } /** @@ -717,7 +715,8 @@ public com.google.cloud.dataproc.v1.Job getJob( */ public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( com.google.cloud.dataproc.v1.ListJobsRequest request) { - return blockingUnaryCall(getChannel(), getListJobsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); } /** @@ -729,7 +728,8 @@ public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( */ public com.google.cloud.dataproc.v1.Job updateJob( com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return blockingUnaryCall(getChannel(), getUpdateJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); } /** @@ -745,7 +745,8 @@ public com.google.cloud.dataproc.v1.Job updateJob( */ public com.google.cloud.dataproc.v1.Job cancelJob( com.google.cloud.dataproc.v1.CancelJobRequest request) { - return blockingUnaryCall(getChannel(), getCancelJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelJobMethod(), getCallOptions(), request); } /** @@ -758,7 +759,8 @@ public com.google.cloud.dataproc.v1.Job cancelJob( */ public com.google.protobuf.Empty deleteJob( com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return blockingUnaryCall(getChannel(), getDeleteJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); } } @@ -790,7 +792,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return futureUnaryCall(getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); } /** @@ -802,7 +805,7 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); } @@ -815,7 +818,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { - return futureUnaryCall(getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); } /** @@ -828,7 +832,8 @@ protected JobControllerFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.ListJobsResponse> listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { - return futureUnaryCall(getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); } /** @@ -840,7 +845,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return futureUnaryCall(getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); } /** @@ -856,7 +862,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { - return futureUnaryCall(getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); } /** @@ -869,7 +876,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteJob( com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return futureUnaryCall(getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index 72723623..665b780e 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -463,7 +458,8 @@ public void createWorkflowTemplate( com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowTemplateMethod(), responseObserver); } /** @@ -479,7 +475,8 @@ public void getWorkflowTemplate( com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowTemplateMethod(), responseObserver); } /** @@ -507,7 +504,8 @@ public void getWorkflowTemplate( public void instantiateWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInstantiateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateWorkflowTemplateMethod(), responseObserver); } /** @@ -538,7 +536,8 @@ public void instantiateWorkflowTemplate( public void instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInstantiateInlineWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateInlineWorkflowTemplateMethod(), responseObserver); } /** @@ -553,7 +552,8 @@ public void updateWorkflowTemplate( com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkflowTemplateMethod(), responseObserver); } /** @@ -567,7 +567,8 @@ public void listWorkflowTemplates( com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListWorkflowTemplatesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowTemplatesMethod(), responseObserver); } /** @@ -580,7 +581,8 @@ public void listWorkflowTemplates( public void deleteWorkflowTemplate( com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowTemplateMethod(), responseObserver); } @java.lang.Override @@ -588,49 +590,49 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, com.google.cloud.dataproc.v1.WorkflowTemplate>( this, METHODID_CREATE_WORKFLOW_TEMPLATE))) .addMethod( getGetWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, com.google.cloud.dataproc.v1.WorkflowTemplate>( this, METHODID_GET_WORKFLOW_TEMPLATE))) .addMethod( getInstantiateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, com.google.longrunning.Operation>( this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) .addMethod( getInstantiateInlineWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, com.google.longrunning.Operation>( this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) .addMethod( getUpdateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, com.google.cloud.dataproc.v1.WorkflowTemplate>( this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) .addMethod( getListWorkflowTemplatesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( this, METHODID_LIST_WORKFLOW_TEMPLATES))) .addMethod( getDeleteWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) @@ -669,7 +671,7 @@ public void createWorkflowTemplate( com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -688,7 +690,7 @@ public void getWorkflowTemplate( com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -719,7 +721,7 @@ public void getWorkflowTemplate( public void instantiateWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -753,7 +755,7 @@ public void instantiateWorkflowTemplate( public void instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -771,7 +773,7 @@ public void updateWorkflowTemplate( com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -788,7 +790,7 @@ public void listWorkflowTemplates( com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request, responseObserver); @@ -804,7 +806,7 @@ public void listWorkflowTemplates( public void deleteWorkflowTemplate( com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -841,7 +843,7 @@ protected WorkflowTemplateServiceBlockingStub build( */ public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -856,7 +858,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( */ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); } @@ -884,7 +886,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( */ public com.google.longrunning.Operation instantiateWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -915,7 +917,7 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate( */ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); } @@ -929,7 +931,7 @@ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( */ public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -942,7 +944,7 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( */ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates( com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); } @@ -955,7 +957,7 @@ public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTe */ public com.google.protobuf.Empty deleteWorkflowTemplate( com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); } } @@ -991,7 +993,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.WorkflowTemplate> createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1007,7 +1009,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.WorkflowTemplate> getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1036,7 +1038,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture instantiateWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1068,7 +1070,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1084,7 +1086,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.WorkflowTemplate> updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1098,7 +1100,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); } @@ -1111,7 +1113,7 @@ protected WorkflowTemplateServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java index 7bf1eba5..e9d5038f 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -366,7 +361,8 @@ public void createAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAutoscalingPolicyMethod(), responseObserver); } /** @@ -382,7 +378,8 @@ public void updateAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAutoscalingPolicyMethod(), responseObserver); } /** @@ -396,7 +393,8 @@ public void getAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAutoscalingPolicyMethod(), responseObserver); } /** @@ -411,7 +409,8 @@ public void listAutoscalingPolicies( io.grpc.stub.StreamObserver< com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListAutoscalingPoliciesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAutoscalingPoliciesMethod(), responseObserver); } /** @@ -425,7 +424,8 @@ public void listAutoscalingPolicies( public void deleteAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAutoscalingPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAutoscalingPolicyMethod(), responseObserver); } @java.lang.Override @@ -433,35 +433,35 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( this, METHODID_CREATE_AUTOSCALING_POLICY))) .addMethod( getUpdateAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( this, METHODID_UPDATE_AUTOSCALING_POLICY))) .addMethod( getGetAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( this, METHODID_GET_AUTOSCALING_POLICY))) .addMethod( getListAutoscalingPoliciesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest, com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse>( this, METHODID_LIST_AUTOSCALING_POLICIES))) .addMethod( getDeleteAutoscalingPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) @@ -500,7 +500,7 @@ public void createAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -519,7 +519,7 @@ public void updateAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -536,7 +536,7 @@ public void getAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -554,7 +554,7 @@ public void listAutoscalingPolicies( io.grpc.stub.StreamObserver< com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request, responseObserver); @@ -571,7 +571,7 @@ public void listAutoscalingPolicies( public void deleteAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request, responseObserver); @@ -608,7 +608,7 @@ protected AutoscalingPolicyServiceBlockingStub build( */ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -623,7 +623,7 @@ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPoli */ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -636,7 +636,7 @@ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPoli */ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); } @@ -650,7 +650,7 @@ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy( public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse listAutoscalingPolicies( com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); } @@ -664,7 +664,7 @@ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy( */ public com.google.protobuf.Empty deleteAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); } } @@ -701,7 +701,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> createAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -718,7 +718,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> updateAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -733,7 +733,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> getAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); } @@ -748,7 +748,7 @@ protected AutoscalingPolicyServiceFutureStub build( com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> listAutoscalingPolicies( com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); } @@ -763,7 +763,7 @@ protected AutoscalingPolicyServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteAutoscalingPolicy( com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java index 7acc1f4a..c8e559a1 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -374,7 +369,8 @@ public abstract static class ClusterControllerImplBase implements io.grpc.Bindab public void createCluster( com.google.cloud.dataproc.v1beta2.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); } /** @@ -389,7 +385,8 @@ public void createCluster( public void updateCluster( com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); } /** @@ -404,7 +401,8 @@ public void updateCluster( public void deleteCluster( com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); } /** @@ -417,7 +415,7 @@ public void deleteCluster( public void getCluster( com.google.cloud.dataproc.v1beta2.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); } /** @@ -431,7 +429,8 @@ public void listClusters( com.google.cloud.dataproc.v1beta2.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); } /** @@ -450,7 +449,8 @@ public void listClusters( public void diagnoseCluster( com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDiagnoseClusterMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiagnoseClusterMethod(), responseObserver); } @java.lang.Override @@ -458,38 +458,38 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.CreateClusterRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) .addMethod( getUpdateClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.UpdateClusterRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) .addMethod( getDeleteClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.DeleteClusterRequest, com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) .addMethod( getGetClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.GetClusterRequest, com.google.cloud.dataproc.v1beta2.Cluster>(this, METHODID_GET_CLUSTER))) .addMethod( getListClustersMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.ListClustersRequest, com.google.cloud.dataproc.v1beta2.ListClustersResponse>( this, METHODID_LIST_CLUSTERS))) .addMethod( getDiagnoseClusterMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest, com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) @@ -529,7 +529,7 @@ protected ClusterControllerStub build( public void createCluster( com.google.cloud.dataproc.v1beta2.CreateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); @@ -547,7 +547,7 @@ public void createCluster( public void updateCluster( com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request, responseObserver); @@ -565,7 +565,7 @@ public void updateCluster( public void deleteCluster( com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request, responseObserver); @@ -581,7 +581,7 @@ public void deleteCluster( public void getCluster( com.google.cloud.dataproc.v1beta2.GetClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); } @@ -596,7 +596,7 @@ public void listClusters( com.google.cloud.dataproc.v1beta2.ListClustersRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); @@ -618,7 +618,7 @@ public void listClusters( public void diagnoseCluster( com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request, responseObserver); @@ -657,7 +657,8 @@ protected ClusterControllerBlockingStub build( */ public com.google.longrunning.Operation createCluster( com.google.cloud.dataproc.v1beta2.CreateClusterRequest request) { - return blockingUnaryCall(getChannel(), getCreateClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); } /** @@ -671,7 +672,8 @@ public com.google.longrunning.Operation createCluster( */ public com.google.longrunning.Operation updateCluster( com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request) { - return blockingUnaryCall(getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } /** @@ -685,7 +687,8 @@ public com.google.longrunning.Operation updateCluster( */ public com.google.longrunning.Operation deleteCluster( com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request) { - return blockingUnaryCall(getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); } /** @@ -697,7 +700,8 @@ public com.google.longrunning.Operation deleteCluster( */ public com.google.cloud.dataproc.v1beta2.Cluster getCluster( com.google.cloud.dataproc.v1beta2.GetClusterRequest request) { - return blockingUnaryCall(getChannel(), getGetClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); } /** @@ -709,7 +713,8 @@ public com.google.cloud.dataproc.v1beta2.Cluster getCluster( */ public com.google.cloud.dataproc.v1beta2.ListClustersResponse listClusters( com.google.cloud.dataproc.v1beta2.ListClustersRequest request) { - return blockingUnaryCall(getChannel(), getListClustersMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); } /** @@ -727,7 +732,8 @@ public com.google.cloud.dataproc.v1beta2.ListClustersResponse listClusters( */ public com.google.longrunning.Operation diagnoseCluster( com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request) { - return blockingUnaryCall(getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); } } @@ -762,7 +768,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createCluster(com.google.cloud.dataproc.v1beta2.CreateClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } @@ -777,7 +783,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateCluster(com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } @@ -792,7 +798,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteCluster(com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); } @@ -806,7 +812,7 @@ protected ClusterControllerFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1beta2.Cluster> getCluster(com.google.cloud.dataproc.v1beta2.GetClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); } @@ -820,7 +826,7 @@ protected ClusterControllerFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1beta2.ListClustersResponse> listClusters(com.google.cloud.dataproc.v1beta2.ListClustersRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListClustersMethod(), getCallOptions()), request); } @@ -839,7 +845,7 @@ protected ClusterControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture diagnoseCluster(com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java index b0fdbc1f..e252d9de 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -402,7 +397,7 @@ public abstract static class JobControllerImplBase implements io.grpc.BindableSe public void submitJob( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); } /** @@ -415,7 +410,8 @@ public void submitJob( public void submitJobAsOperation( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSubmitJobAsOperationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubmitJobAsOperationMethod(), responseObserver); } /** @@ -428,7 +424,7 @@ public void submitJobAsOperation( public void getJob( com.google.cloud.dataproc.v1beta2.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); } /** @@ -442,7 +438,7 @@ public void listJobs( com.google.cloud.dataproc.v1beta2.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); } /** @@ -455,7 +451,7 @@ public void listJobs( public void updateJob( com.google.cloud.dataproc.v1beta2.UpdateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); } /** @@ -472,7 +468,7 @@ public void updateJob( public void cancelJob( com.google.cloud.dataproc.v1beta2.CancelJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); } /** @@ -486,7 +482,7 @@ public void cancelJob( public void deleteJob( com.google.cloud.dataproc.v1beta2.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); } @java.lang.Override @@ -494,44 +490,44 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSubmitJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_SUBMIT_JOB))) .addMethod( getSubmitJobAsOperationMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) .addMethod( getGetJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.GetJobRequest, com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_GET_JOB))) .addMethod( getListJobsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.ListJobsRequest, com.google.cloud.dataproc.v1beta2.ListJobsResponse>( this, METHODID_LIST_JOBS))) .addMethod( getUpdateJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.UpdateJobRequest, com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_UPDATE_JOB))) .addMethod( getCancelJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.CancelJobRequest, com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_CANCEL_JOB))) .addMethod( getDeleteJobMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.DeleteJobRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_JOB))) @@ -567,7 +563,7 @@ protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions c public void submitJob( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); } @@ -581,7 +577,7 @@ public void submitJob( public void submitJobAsOperation( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request, responseObserver); @@ -597,7 +593,7 @@ public void submitJobAsOperation( public void getJob( com.google.cloud.dataproc.v1beta2.GetJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); } @@ -612,7 +608,7 @@ public void listJobs( com.google.cloud.dataproc.v1beta2.ListJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); } @@ -626,7 +622,7 @@ public void listJobs( public void updateJob( com.google.cloud.dataproc.v1beta2.UpdateJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); } @@ -644,7 +640,7 @@ public void updateJob( public void cancelJob( com.google.cloud.dataproc.v1beta2.CancelJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); } @@ -659,7 +655,7 @@ public void cancelJob( public void deleteJob( com.google.cloud.dataproc.v1beta2.DeleteJobRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); } } @@ -692,7 +688,8 @@ protected JobControllerBlockingStub build( */ public com.google.cloud.dataproc.v1beta2.Job submitJob( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return blockingUnaryCall(getChannel(), getSubmitJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitJobMethod(), getCallOptions(), request); } /** @@ -704,7 +701,7 @@ public com.google.cloud.dataproc.v1beta2.Job submitJob( */ public com.google.longrunning.Operation submitJobAsOperation( com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); } @@ -717,7 +714,8 @@ public com.google.longrunning.Operation submitJobAsOperation( */ public com.google.cloud.dataproc.v1beta2.Job getJob( com.google.cloud.dataproc.v1beta2.GetJobRequest request) { - return blockingUnaryCall(getChannel(), getGetJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobMethod(), getCallOptions(), request); } /** @@ -729,7 +727,8 @@ public com.google.cloud.dataproc.v1beta2.Job getJob( */ public com.google.cloud.dataproc.v1beta2.ListJobsResponse listJobs( com.google.cloud.dataproc.v1beta2.ListJobsRequest request) { - return blockingUnaryCall(getChannel(), getListJobsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobsMethod(), getCallOptions(), request); } /** @@ -741,7 +740,8 @@ public com.google.cloud.dataproc.v1beta2.ListJobsResponse listJobs( */ public com.google.cloud.dataproc.v1beta2.Job updateJob( com.google.cloud.dataproc.v1beta2.UpdateJobRequest request) { - return blockingUnaryCall(getChannel(), getUpdateJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateJobMethod(), getCallOptions(), request); } /** @@ -757,7 +757,8 @@ public com.google.cloud.dataproc.v1beta2.Job updateJob( */ public com.google.cloud.dataproc.v1beta2.Job cancelJob( com.google.cloud.dataproc.v1beta2.CancelJobRequest request) { - return blockingUnaryCall(getChannel(), getCancelJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelJobMethod(), getCallOptions(), request); } /** @@ -770,7 +771,8 @@ public com.google.cloud.dataproc.v1beta2.Job cancelJob( */ public com.google.protobuf.Empty deleteJob( com.google.cloud.dataproc.v1beta2.DeleteJobRequest request) { - return blockingUnaryCall(getChannel(), getDeleteJobMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteJobMethod(), getCallOptions(), request); } } @@ -802,7 +804,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture submitJob(com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return futureUnaryCall(getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); } /** @@ -814,7 +817,7 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture submitJobAsOperation(com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); } @@ -827,7 +830,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getJob(com.google.cloud.dataproc.v1beta2.GetJobRequest request) { - return futureUnaryCall(getChannel().newCall(getGetJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobMethod(), getCallOptions()), request); } /** @@ -840,7 +844,8 @@ protected JobControllerFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1beta2.ListJobsResponse> listJobs(com.google.cloud.dataproc.v1beta2.ListJobsRequest request) { - return futureUnaryCall(getChannel().newCall(getListJobsMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobsMethod(), getCallOptions()), request); } /** @@ -852,7 +857,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture updateJob(com.google.cloud.dataproc.v1beta2.UpdateJobRequest request) { - return futureUnaryCall(getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); } /** @@ -868,7 +874,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture cancelJob(com.google.cloud.dataproc.v1beta2.CancelJobRequest request) { - return futureUnaryCall(getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); } /** @@ -881,7 +888,8 @@ protected JobControllerFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteJob( com.google.cloud.dataproc.v1beta2.DeleteJobRequest request) { - return futureUnaryCall(getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java index 0909a3e9..a1ec46d1 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.dataproc.v1beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -470,7 +465,8 @@ public void createWorkflowTemplate( com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowTemplateMethod(), responseObserver); } /** @@ -486,7 +482,8 @@ public void getWorkflowTemplate( com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowTemplateMethod(), responseObserver); } /** @@ -514,7 +511,8 @@ public void getWorkflowTemplate( public void instantiateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInstantiateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateWorkflowTemplateMethod(), responseObserver); } /** @@ -546,7 +544,8 @@ public void instantiateWorkflowTemplate( public void instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getInstantiateInlineWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInstantiateInlineWorkflowTemplateMethod(), responseObserver); } /** @@ -561,7 +560,8 @@ public void updateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkflowTemplateMethod(), responseObserver); } /** @@ -575,7 +575,8 @@ public void listWorkflowTemplates( com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListWorkflowTemplatesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowTemplatesMethod(), responseObserver); } /** @@ -588,7 +589,8 @@ public void listWorkflowTemplates( public void deleteWorkflowTemplate( com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteWorkflowTemplateMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowTemplateMethod(), responseObserver); } @java.lang.Override @@ -596,49 +598,49 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest, com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( this, METHODID_CREATE_WORKFLOW_TEMPLATE))) .addMethod( getGetWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest, com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( this, METHODID_GET_WORKFLOW_TEMPLATE))) .addMethod( getInstantiateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest, com.google.longrunning.Operation>( this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) .addMethod( getInstantiateInlineWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest, com.google.longrunning.Operation>( this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) .addMethod( getUpdateWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest, com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) .addMethod( getListWorkflowTemplatesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest, com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse>( this, METHODID_LIST_WORKFLOW_TEMPLATES))) .addMethod( getDeleteWorkflowTemplateMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) @@ -677,7 +679,7 @@ public void createWorkflowTemplate( com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -696,7 +698,7 @@ public void getWorkflowTemplate( com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -727,7 +729,7 @@ public void getWorkflowTemplate( public void instantiateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -762,7 +764,7 @@ public void instantiateWorkflowTemplate( public void instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -780,7 +782,7 @@ public void updateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -797,7 +799,7 @@ public void listWorkflowTemplates( com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request, responseObserver); @@ -813,7 +815,7 @@ public void listWorkflowTemplates( public void deleteWorkflowTemplate( com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request, responseObserver); @@ -850,7 +852,7 @@ protected WorkflowTemplateServiceBlockingStub build( */ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate createWorkflowTemplate( com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -865,7 +867,7 @@ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate createWorkflowTemplate */ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getWorkflowTemplate( com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); } @@ -893,7 +895,7 @@ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getWorkflowTemplate( */ public com.google.longrunning.Operation instantiateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -925,7 +927,7 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate( */ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); } @@ -939,7 +941,7 @@ public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( */ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate updateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); } @@ -952,7 +954,7 @@ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate updateWorkflowTemplate */ public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse listWorkflowTemplates( com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); } @@ -965,7 +967,7 @@ public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse listWorkf */ public com.google.protobuf.Empty deleteWorkflowTemplate( com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); } } @@ -1002,7 +1004,7 @@ protected WorkflowTemplateServiceFutureStub build( com.google.cloud.dataproc.v1beta2.WorkflowTemplate> createWorkflowTemplate( com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1018,7 +1020,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataproc.v1beta2.WorkflowTemplate> getWorkflowTemplate(com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1047,7 +1049,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture instantiateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1080,7 +1082,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture instantiateInlineWorkflowTemplate( com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1097,7 +1099,7 @@ protected WorkflowTemplateServiceFutureStub build( com.google.cloud.dataproc.v1beta2.WorkflowTemplate> updateWorkflowTemplate( com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); } @@ -1112,7 +1114,7 @@ protected WorkflowTemplateServiceFutureStub build( com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse> listWorkflowTemplates( com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); } @@ -1126,7 +1128,7 @@ protected WorkflowTemplateServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteWorkflowTemplate( com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index d5b0c6a2..8ebf1032 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "75c4a73983d6073a595056fb86aedb53c340a378" + "sha": "e95b8f219702434443eb362345ad9d394a6431b0" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { From 42f464a672c0b6a2595a847de689b0e4171ee7f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 21:46:07 +0100 Subject: [PATCH 116/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 (#475) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.0` -> `0.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/compatibility-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/confidence-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-shared-dependencies ### [`v0.20.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0200v0201-2021-03-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.0...v0.20.1)
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d4f3939b..7a74ff3d 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.0 + 0.20.1 pom import From 4adee02a422ce0064064c0bd0a1a91f69fddccb6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Mar 2021 16:12:26 -0800 Subject: [PATCH 117/519] build(java): update autorelease title check in response to the new multi release branch changes (#476) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/50a12256-ca5e-4f80-a8f2-ba3c4ab12a2c/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/0b064d767537e0675fc053e53fca473c5c701fb8 --- .github/workflows/auto-release.yaml | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 7c8816a7..9b4fd4d8 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -16,8 +16,8 @@ jobs: return; } - // only approve PRs like "chore(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { return; } diff --git a/synth.metadata b/synth.metadata index 8ebf1032..521a7f95 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "e95b8f219702434443eb362345ad9d394a6431b0" + "sha": "42f464a672c0b6a2595a847de689b0e4171ee7f9" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" + "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" } } ], From 096f64a1773f2bc20c348a7e28e225439b56faca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Mar 2021 06:04:17 +0100 Subject: [PATCH 118/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.13 (#465) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6d0c494d..3c4d7254 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.11 + 1.113.13 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b6633e43..183310d2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.11 + 1.113.13 junit From fc301380439955b8a81b402b7f6fe0c25b115a22 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 05:16:06 +0000 Subject: [PATCH 119/519] chore: release 1.3.0 (#463) :robot: I have created a release \*beep\* \*boop\* --- ## [1.3.0](https://www.github.com/googleapis/java-dataproc/compare/v1.2.1...v1.3.0) (2021-03-11) ### Features * **generator:** update protoc to v3.15.3 ([#462](https://www.github.com/googleapis/java-dataproc/issues/462)) ([ef5f0bc](https://www.github.com/googleapis/java-dataproc/commit/ef5f0bcf9981a1f61ed460f798b932b1d74291c0)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#475](https://www.github.com/googleapis/java-dataproc/issues/475)) ([42f464a](https://www.github.com/googleapis/java-dataproc/commit/42f464a672c0b6a2595a847de689b0e4171ee7f9)) * update dependency com.google.cloud:google-cloud-storage to v1.113.13 ([#465](https://www.github.com/googleapis/java-dataproc/issues/465)) ([096f64a](https://www.github.com/googleapis/java-dataproc/commit/096f64a1773f2bc20c348a7e28e225439b56faca)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 41 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 934fb289..5031fe51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.3.0](https://www.github.com/googleapis/java-dataproc/compare/v1.2.1...v1.3.0) (2021-03-11) + + +### Features + +* **generator:** update protoc to v3.15.3 ([#462](https://www.github.com/googleapis/java-dataproc/issues/462)) ([ef5f0bc](https://www.github.com/googleapis/java-dataproc/commit/ef5f0bcf9981a1f61ed460f798b932b1d74291c0)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#475](https://www.github.com/googleapis/java-dataproc/issues/475)) ([42f464a](https://www.github.com/googleapis/java-dataproc/commit/42f464a672c0b6a2595a847de689b0e4171ee7f9)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.13 ([#465](https://www.github.com/googleapis/java-dataproc/issues/465)) ([096f64a](https://www.github.com/googleapis/java-dataproc/commit/096f64a1773f2bc20c348a7e28e225439b56faca)) + ### [1.2.1](https://www.github.com/googleapis/java-dataproc/compare/v1.2.0...v1.2.1) (2021-02-26) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 898b19d6..28daba60 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.2.2-SNAPSHOT + 1.3.0 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.2.2-SNAPSHOT + 1.3.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0
                                                                                                              diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1d4882b7..d7bba074 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.2.2-SNAPSHOT + 1.3.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.2.2-SNAPSHOT + 1.3.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index c2ab29a7..eda62448 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 6c224613..052a661b 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/pom.xml b/pom.xml index 7a74ff3d..c5056927 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.2.2-SNAPSHOT + 1.3.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0 com.google.cloud google-cloud-dataproc - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index a6e8cd1d..f24b0a94 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.2.2-SNAPSHOT + 1.3.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 87ca7a7c..f63d0939 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.90.2-SNAPSHOT + 0.91.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 183310d2..1915f673 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.2.2-SNAPSHOT + 1.3.0 diff --git a/versions.txt b/versions.txt index c91788b0..d35f644a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.90.1:0.90.2-SNAPSHOT -proto-google-cloud-dataproc-v1:1.2.1:1.2.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.2.1:1.2.2-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.90.1:0.90.2-SNAPSHOT -google-cloud-dataproc:1.2.1:1.2.2-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.91.0:0.91.0 +proto-google-cloud-dataproc-v1:1.3.0:1.3.0 +grpc-google-cloud-dataproc-v1:1.3.0:1.3.0 +grpc-google-cloud-dataproc-v1beta2:0.91.0:0.91.0 +google-cloud-dataproc:1.3.0:1.3.0 From a66bfdf8243cbe8c97af1155f13328a79b3f6ac0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 05:28:07 +0000 Subject: [PATCH 120/519] chore: release 1.3.1-SNAPSHOT (#477) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 28daba60..0b10a4a2 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.3.0 + 1.3.1-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.3.0 + 1.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index d7bba074..a937b9ad 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.3.0 + 1.3.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.3.0 + 1.3.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index eda62448..93cf4993 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 052a661b..a7509e71 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index c5056927..864eaabf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.3.0 + 1.3.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index f24b0a94..2d3a6845 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.0 + 1.3.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index f63d0939..d33c0fc3 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.0 + 0.91.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1915f673..544b1f84 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.3.0 + 1.3.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index d35f644a..1e7854e5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.91.0:0.91.0 -proto-google-cloud-dataproc-v1:1.3.0:1.3.0 -grpc-google-cloud-dataproc-v1:1.3.0:1.3.0 -grpc-google-cloud-dataproc-v1beta2:0.91.0:0.91.0 -google-cloud-dataproc:1.3.0:1.3.0 +proto-google-cloud-dataproc-v1beta2:0.91.0:0.91.1-SNAPSHOT +proto-google-cloud-dataproc-v1:1.3.0:1.3.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.3.0:1.3.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.91.0:0.91.1-SNAPSHOT +google-cloud-dataproc:1.3.0:1.3.1-SNAPSHOT From 83aa0008591bcd364df704c319ed4259a87eec9c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 15 Mar 2021 08:30:11 -0700 Subject: [PATCH 121/519] chore: update java microgenerator to 1.0.2 Adds request initialization to sample code (#480) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ec2612ad-1aa2-48fe-9cb7-87d107cbcd42/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 362856902 Source-Link: https://github.com/googleapis/googleapis/commit/1305ca41d554eb0725237561e34129373bb8cbc1 --- .../v1/AutoscalingPolicyServiceClient.java | 9 +++++ .../dataproc/v1/ClusterControllerClient.java | 8 +++++ .../dataproc/v1/JobControllerClient.java | 9 +++++ .../v1/WorkflowTemplateServiceClient.java | 9 +++++ .../AutoscalingPolicyServiceClient.java | 9 +++++ .../v1beta2/ClusterControllerClient.java | 8 +++++ .../dataproc/v1beta2/JobControllerClient.java | 9 +++++ .../WorkflowTemplateServiceClient.java | 9 +++++ .../v1/MockAutoscalingPolicyServiceImpl.java | 20 +++++------ .../v1/MockClusterControllerImpl.java | 24 ++++++------- .../dataproc/v1/MockJobControllerImpl.java | 36 +++++++++++-------- .../v1/MockWorkflowTemplateServiceImpl.java | 28 +++++++-------- .../MockAutoscalingPolicyServiceImpl.java | 20 +++++------ .../v1beta2/MockClusterControllerImpl.java | 24 ++++++------- .../v1beta2/MockJobControllerImpl.java | 36 +++++++++++-------- .../MockWorkflowTemplateServiceImpl.java | 28 +++++++-------- synth.metadata | 10 +++--- 17 files changed, 191 insertions(+), 105 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index f7bbadd5..d452ebaf 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -731,6 +731,15 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( *
                                                                                                              {@code
                                                                                                                  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                                                                  *     AutoscalingPolicyServiceClient.create()) {
                                                                                                              +   *   ListAutoscalingPoliciesRequest request =
                                                                                                              +   *       ListAutoscalingPoliciesRequest.newBuilder()
                                                                                                              +   *           .setParent(
                                                                                                              +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListAutoscalingPoliciesResponse response =
                                                                                                                  *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
                                                                                                              index e07fbb63..022ba23f 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
                                                                                                              @@ -793,6 +793,14 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
                                                                                                                  *
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   ListClustersRequest request =
                                                                                                              +   *       ListClustersRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListClustersResponse response =
                                                                                                                  *         clusterControllerClient.listClustersCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
                                                                                                              index fdf358c0..5fc45b92 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
                                                                                                              @@ -561,6 +561,15 @@ public final UnaryCallable listJobsPaged
                                                                                                                  *
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                                                              +   *   ListJobsRequest request =
                                                                                                              +   *       ListJobsRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
                                                                                                                  *     for (Job element : response.getResponsesList()) {
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
                                                                                                              index ba8bbeb1..d45c399e 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
                                                                                                              @@ -1469,6 +1469,15 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                                  *     WorkflowTemplateServiceClient.create()) {
                                                                                                              +   *   ListWorkflowTemplatesRequest request =
                                                                                                              +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                                                                              +   *           .setParent(
                                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListWorkflowTemplatesResponse response =
                                                                                                                  *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
                                                                                                              index f62f81d7..7d2319ca 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
                                                                                                              @@ -733,6 +733,15 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
                                                                                                                  *     AutoscalingPolicyServiceClient.create()) {
                                                                                                              +   *   ListAutoscalingPoliciesRequest request =
                                                                                                              +   *       ListAutoscalingPoliciesRequest.newBuilder()
                                                                                                              +   *           .setParent(
                                                                                                              +   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
                                                                                                              +   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListAutoscalingPoliciesResponse response =
                                                                                                                  *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
                                                                                                              index a7b58cde..2bd8e1df 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
                                                                                                              @@ -799,6 +799,14 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
                                                                                                                  *
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   ListClustersRequest request =
                                                                                                              +   *       ListClustersRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListClustersResponse response =
                                                                                                                  *         clusterControllerClient.listClustersCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java
                                                                                                              index 384e17c9..431d774c 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java
                                                                                                              @@ -562,6 +562,15 @@ public final UnaryCallable listJobsPaged
                                                                                                                  *
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
                                                                                                              +   *   ListJobsRequest request =
                                                                                                              +   *       ListJobsRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setFilter("filter-1274492040")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
                                                                                                                  *     for (Job element : response.getResponsesList()) {
                                                                                                              diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
                                                                                                              index 5463128d..d3e10497 100644
                                                                                                              --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
                                                                                                              +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
                                                                                                              @@ -1476,6 +1476,15 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
                                                                                                                  * 
                                                                                                              {@code
                                                                                                                  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
                                                                                                                  *     WorkflowTemplateServiceClient.create()) {
                                                                                                              +   *   ListWorkflowTemplatesRequest request =
                                                                                                              +   *       ListWorkflowTemplatesRequest.newBuilder()
                                                                                                              +   *           .setParent(
                                                                                                              +   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
                                                                                                              +   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
                                                                                                              +   *                   .toString())
                                                                                                              +   *           .setPageSize(883849137)
                                                                                                              +   *           .setPageToken("pageToken873572522")
                                                                                                              +   *           .build();
                                                                                                                  *   while (true) {
                                                                                                                  *     ListWorkflowTemplatesResponse response =
                                                                                                                  *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
                                                                                                              index 5528721e..78357cb9 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createAutoscalingPolicy(
                                                                                                                     CreateAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -74,7 +74,7 @@ public void createAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -83,7 +83,7 @@ public void createAutoscalingPolicy(
                                                                                                                 @Override
                                                                                                                 public void updateAutoscalingPolicy(
                                                                                                                     UpdateAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -95,7 +95,7 @@ public void updateAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -104,7 +104,7 @@ public void updateAutoscalingPolicy(
                                                                                                                 @Override
                                                                                                                 public void getAutoscalingPolicy(
                                                                                                                     GetAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -116,7 +116,7 @@ public void getAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -126,7 +126,7 @@ public void getAutoscalingPolicy(
                                                                                                                 public void listAutoscalingPolicies(
                                                                                                                     ListAutoscalingPoliciesRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListAutoscalingPoliciesResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListAutoscalingPoliciesResponse) response));
                                                                                                              @@ -138,7 +138,7 @@ public void listAutoscalingPolicies(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListAutoscalingPolicies, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListAutoscalingPoliciesResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -147,7 +147,7 @@ public void listAutoscalingPolicies(
                                                                                                                 @Override
                                                                                                                 public void deleteAutoscalingPolicy(
                                                                                                                     DeleteAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -159,7 +159,7 @@ public void deleteAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
                                                                                                              index e3168799..0d3eb918 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createCluster(
                                                                                                                     CreateClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -74,7 +74,7 @@ public void createCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -83,7 +83,7 @@ public void createCluster(
                                                                                                                 @Override
                                                                                                                 public void updateCluster(
                                                                                                                     UpdateClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -95,7 +95,7 @@ public void updateCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -104,7 +104,7 @@ public void updateCluster(
                                                                                                                 @Override
                                                                                                                 public void deleteCluster(
                                                                                                                     DeleteClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -116,7 +116,7 @@ public void deleteCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -124,7 +124,7 @@ public void deleteCluster(
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void getCluster(GetClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Cluster) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Cluster) response));
                                                                                                              @@ -136,7 +136,7 @@ public void getCluster(GetClusterRequest request, StreamObserver respon
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Cluster.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -145,7 +145,7 @@ public void getCluster(GetClusterRequest request, StreamObserver respon
                                                                                                                 @Override
                                                                                                                 public void listClusters(
                                                                                                                     ListClustersRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListClustersResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListClustersResponse) response));
                                                                                                              @@ -157,7 +157,7 @@ public void listClusters(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListClusters, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListClustersResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -166,7 +166,7 @@ public void listClusters(
                                                                                                                 @Override
                                                                                                                 public void diagnoseCluster(
                                                                                                                     DiagnoseClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -178,7 +178,7 @@ public void diagnoseCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DiagnoseCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
                                                                                                              index 2571d765..682ba337 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void submitJob(SubmitJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -74,14 +74,16 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method SubmitJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void submitJobAsOperation(
                                                                                                                     SubmitJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -93,7 +95,7 @@ public void submitJobAsOperation(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method SubmitJobAsOperation, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -101,7 +103,7 @@ public void submitJobAsOperation(
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void getJob(GetJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -113,13 +115,15 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver)
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void listJobs(ListJobsRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListJobsResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListJobsResponse) response));
                                                                                                              @@ -131,7 +135,7 @@ public void listJobs(ListJobsRequest request, StreamObserver r
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListJobs, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListJobsResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -139,7 +143,7 @@ public void listJobs(ListJobsRequest request, StreamObserver r
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -151,13 +155,15 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void cancelJob(CancelJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -169,13 +175,15 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CancelJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -187,7 +195,7 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
                                                                                                              index 88e8e17f..12761ffe 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
                                                                                                              @@ -63,7 +63,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createWorkflowTemplate(
                                                                                                                     CreateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -75,7 +75,7 @@ public void createWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -84,7 +84,7 @@ public void createWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void getWorkflowTemplate(
                                                                                                                     GetWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -96,7 +96,7 @@ public void getWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -105,7 +105,7 @@ public void getWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void instantiateWorkflowTemplate(
                                                                                                                     InstantiateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -117,7 +117,7 @@ public void instantiateWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method InstantiateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -127,7 +127,7 @@ public void instantiateWorkflowTemplate(
                                                                                                                 public void instantiateInlineWorkflowTemplate(
                                                                                                                     InstantiateInlineWorkflowTemplateRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -139,7 +139,7 @@ public void instantiateInlineWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method InstantiateInlineWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -148,7 +148,7 @@ public void instantiateInlineWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void updateWorkflowTemplate(
                                                                                                                     UpdateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -160,7 +160,7 @@ public void updateWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -170,7 +170,7 @@ public void updateWorkflowTemplate(
                                                                                                                 public void listWorkflowTemplates(
                                                                                                                     ListWorkflowTemplatesRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListWorkflowTemplatesResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListWorkflowTemplatesResponse) response));
                                                                                                              @@ -182,7 +182,7 @@ public void listWorkflowTemplates(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListWorkflowTemplates, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListWorkflowTemplatesResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -191,7 +191,7 @@ public void listWorkflowTemplates(
                                                                                                                 @Override
                                                                                                                 public void deleteWorkflowTemplate(
                                                                                                                     DeleteWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -203,7 +203,7 @@ public void deleteWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java
                                                                                                              index af9c4d69..6bb52626 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createAutoscalingPolicy(
                                                                                                                     CreateAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -74,7 +74,7 @@ public void createAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -83,7 +83,7 @@ public void createAutoscalingPolicy(
                                                                                                                 @Override
                                                                                                                 public void updateAutoscalingPolicy(
                                                                                                                     UpdateAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -95,7 +95,7 @@ public void updateAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -104,7 +104,7 @@ public void updateAutoscalingPolicy(
                                                                                                                 @Override
                                                                                                                 public void getAutoscalingPolicy(
                                                                                                                     GetAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof AutoscalingPolicy) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((AutoscalingPolicy) response));
                                                                                                              @@ -116,7 +116,7 @@ public void getAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 AutoscalingPolicy.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -126,7 +126,7 @@ public void getAutoscalingPolicy(
                                                                                                                 public void listAutoscalingPolicies(
                                                                                                                     ListAutoscalingPoliciesRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListAutoscalingPoliciesResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListAutoscalingPoliciesResponse) response));
                                                                                                              @@ -138,7 +138,7 @@ public void listAutoscalingPolicies(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListAutoscalingPolicies, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListAutoscalingPoliciesResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -147,7 +147,7 @@ public void listAutoscalingPolicies(
                                                                                                                 @Override
                                                                                                                 public void deleteAutoscalingPolicy(
                                                                                                                     DeleteAutoscalingPolicyRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -159,7 +159,7 @@ public void deleteAutoscalingPolicy(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java
                                                                                                              index 5df752ef..399780a5 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createCluster(
                                                                                                                     CreateClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -74,7 +74,7 @@ public void createCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -83,7 +83,7 @@ public void createCluster(
                                                                                                                 @Override
                                                                                                                 public void updateCluster(
                                                                                                                     UpdateClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -95,7 +95,7 @@ public void updateCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -104,7 +104,7 @@ public void updateCluster(
                                                                                                                 @Override
                                                                                                                 public void deleteCluster(
                                                                                                                     DeleteClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -116,7 +116,7 @@ public void deleteCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -124,7 +124,7 @@ public void deleteCluster(
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void getCluster(GetClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Cluster) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Cluster) response));
                                                                                                              @@ -136,7 +136,7 @@ public void getCluster(GetClusterRequest request, StreamObserver respon
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Cluster.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -145,7 +145,7 @@ public void getCluster(GetClusterRequest request, StreamObserver respon
                                                                                                                 @Override
                                                                                                                 public void listClusters(
                                                                                                                     ListClustersRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListClustersResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListClustersResponse) response));
                                                                                                              @@ -157,7 +157,7 @@ public void listClusters(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListClusters, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListClustersResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -166,7 +166,7 @@ public void listClusters(
                                                                                                                 @Override
                                                                                                                 public void diagnoseCluster(
                                                                                                                     DiagnoseClusterRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -178,7 +178,7 @@ public void diagnoseCluster(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DiagnoseCluster, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java
                                                                                                              index 49791494..9be75346 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java
                                                                                                              @@ -62,7 +62,7 @@ public void reset() {
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void submitJob(SubmitJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -74,14 +74,16 @@ public void submitJob(SubmitJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method SubmitJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void submitJobAsOperation(
                                                                                                                     SubmitJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -93,7 +95,7 @@ public void submitJobAsOperation(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method SubmitJobAsOperation, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -101,7 +103,7 @@ public void submitJobAsOperation(
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void getJob(GetJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -113,13 +115,15 @@ public void getJob(GetJobRequest request, StreamObserver responseObserver)
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void listJobs(ListJobsRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListJobsResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListJobsResponse) response));
                                                                                                              @@ -131,7 +135,7 @@ public void listJobs(ListJobsRequest request, StreamObserver r
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListJobs, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListJobsResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -139,7 +143,7 @@ public void listJobs(ListJobsRequest request, StreamObserver r
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -151,13 +155,15 @@ public void updateJob(UpdateJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void cancelJob(CancelJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Job) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Job) response));
                                                                                                              @@ -169,13 +175,15 @@ public void cancelJob(CancelJobRequest request, StreamObserver responseObse
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CancelJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(), Job.class.getName(), Exception.class.getName())));
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                              +                  Job.class.getName(),
                                                                                                              +                  Exception.class.getName())));
                                                                                                                   }
                                                                                                                 }
                                                                                                               
                                                                                                                 @Override
                                                                                                                 public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -187,7 +195,7 @@ public void deleteJob(DeleteJobRequest request, StreamObserver responseOb
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteJob, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java
                                                                                                              index 3b2a87bf..bc2fdada 100644
                                                                                                              --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java
                                                                                                              +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java
                                                                                                              @@ -63,7 +63,7 @@ public void reset() {
                                                                                                                 @Override
                                                                                                                 public void createWorkflowTemplate(
                                                                                                                     CreateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -75,7 +75,7 @@ public void createWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method CreateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -84,7 +84,7 @@ public void createWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void getWorkflowTemplate(
                                                                                                                     GetWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -96,7 +96,7 @@ public void getWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method GetWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -105,7 +105,7 @@ public void getWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void instantiateWorkflowTemplate(
                                                                                                                     InstantiateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -117,7 +117,7 @@ public void instantiateWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method InstantiateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -127,7 +127,7 @@ public void instantiateWorkflowTemplate(
                                                                                                                 public void instantiateInlineWorkflowTemplate(
                                                                                                                     InstantiateInlineWorkflowTemplateRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Operation) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Operation) response));
                                                                                                              @@ -139,7 +139,7 @@ public void instantiateInlineWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method InstantiateInlineWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Operation.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -148,7 +148,7 @@ public void instantiateInlineWorkflowTemplate(
                                                                                                                 @Override
                                                                                                                 public void updateWorkflowTemplate(
                                                                                                                     UpdateWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof WorkflowTemplate) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((WorkflowTemplate) response));
                                                                                                              @@ -160,7 +160,7 @@ public void updateWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method UpdateWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 WorkflowTemplate.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -170,7 +170,7 @@ public void updateWorkflowTemplate(
                                                                                                                 public void listWorkflowTemplates(
                                                                                                                     ListWorkflowTemplatesRequest request,
                                                                                                                     StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof ListWorkflowTemplatesResponse) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((ListWorkflowTemplatesResponse) response));
                                                                                                              @@ -182,7 +182,7 @@ public void listWorkflowTemplates(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method ListWorkflowTemplates, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 ListWorkflowTemplatesResponse.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              @@ -191,7 +191,7 @@ public void listWorkflowTemplates(
                                                                                                                 @Override
                                                                                                                 public void deleteWorkflowTemplate(
                                                                                                                     DeleteWorkflowTemplateRequest request, StreamObserver responseObserver) {
                                                                                                              -    Object response = responses.remove();
                                                                                                              +    Object response = responses.poll();
                                                                                                                   if (response instanceof Empty) {
                                                                                                                     requests.add(request);
                                                                                                                     responseObserver.onNext(((Empty) response));
                                                                                                              @@ -203,7 +203,7 @@ public void deleteWorkflowTemplate(
                                                                                                                         new IllegalArgumentException(
                                                                                                                             String.format(
                                                                                                                                 "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s",
                                                                                                              -                  response.getClass().getName(),
                                                                                                              +                  response == null ? "null" : response.getClass().getName(),
                                                                                                                                 Empty.class.getName(),
                                                                                                                                 Exception.class.getName())));
                                                                                                                   }
                                                                                                              diff --git a/synth.metadata b/synth.metadata
                                                                                                              index 521a7f95..c53917c2 100644
                                                                                                              --- a/synth.metadata
                                                                                                              +++ b/synth.metadata
                                                                                                              @@ -4,23 +4,23 @@
                                                                                                                     "git": {
                                                                                                                       "name": ".",
                                                                                                                       "remote": "https://github.com/googleapis/java-dataproc.git",
                                                                                                              -        "sha": "42f464a672c0b6a2595a847de689b0e4171ee7f9"
                                                                                                              +        "sha": "a66bfdf8243cbe8c97af1155f13328a79b3f6ac0"
                                                                                                                     }
                                                                                                                   },
                                                                                                                   {
                                                                                                                     "git": {
                                                                                                                       "name": "googleapis",
                                                                                                                       "remote": "https://github.com/googleapis/googleapis.git",
                                                                                                              -        "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
                                                                                                              -        "internalRef": "361377784"
                                                                                                              +        "sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
                                                                                                              +        "internalRef": "362856902"
                                                                                                                     }
                                                                                                                   },
                                                                                                                   {
                                                                                                                     "git": {
                                                                                                                       "name": "googleapis",
                                                                                                                       "remote": "https://github.com/googleapis/googleapis.git",
                                                                                                              -        "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
                                                                                                              -        "internalRef": "361377784"
                                                                                                              +        "sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
                                                                                                              +        "internalRef": "362856902"
                                                                                                                     }
                                                                                                                   },
                                                                                                                   {
                                                                                                              
                                                                                                              From decf63e35944f572cc233f3ed70f74c97f88103a Mon Sep 17 00:00:00 2001
                                                                                                              From: Yoshi Automation Bot 
                                                                                                              Date: Mon, 15 Mar 2021 08:50:09 -0700
                                                                                                              Subject: [PATCH 122/519] chore: regenerate README (#481)
                                                                                                              
                                                                                                              This PR was generated using Autosynth. :rainbow:
                                                                                                              
                                                                                                              
                                                                                                              
                                                                                                              Log from Synthtool ``` 2021-03-15 15:34:01,499 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-15 15:34:02,457 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/e28b854b-55cb-4afb-a9eb-dca560ce2e82/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index a4ab2a81..9caf38da 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "46028fe9ceebafb3036b79f8c12b92abf460616d" + "sha": "83aa0008591bcd364df704c319ed4259a87eec9c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2e7bd5cc66a3f0b90ce1c150eb35c89eeb9872d6" + "sha": "2c54c473779ea731128cea61a3a6c975a08a5378" } } ] diff --git a/README.md b/README.md index 986d0179..a4816fb2 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.2.1' +compile 'com.google.cloud:google-cloud-dataproc:1.3.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.2.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.3.0" ``` ## Authentication From 663aae2cf32f871afd221860d79284188054035f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:22 +0100 Subject: [PATCH 123/519] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#482) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ff168ab8..c475de81 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 93ff88232b253a289b285470e9e9736ee719f30e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Mar 2021 13:42:05 -0700 Subject: [PATCH 124/519] chore: regenerate README (#483) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-17 20:13:32,053 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-17 20:13:32,953 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/6dbff4a0-3c03-45dc-8858-0e628b77af8c/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 9caf38da..1365c0a8 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "83aa0008591bcd364df704c319ed4259a87eec9c" + "sha": "663aae2cf32f871afd221860d79284188054035f" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2c54c473779ea731128cea61a3a6c975a08a5378" + "sha": "78437c732a60c64895778697b078497b0988346c" } } ] diff --git a/README.md b/README.md index a4816fb2..1ae8b18b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.0.0') +implementation platform('com.google.cloud:libraries-bom:19.1.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 0dda808653fd730566989c2a7e469235d284b7d5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Mar 2021 16:42:20 +0100 Subject: [PATCH 125/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.3.0 (#478) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.2.1` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.3.0/compatibility-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.3.0/confidence-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-dataproc ### [`v1.3.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-dataproccomparev121v130-2021-03-11) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.2.1...v1.3.0) ##### Features - **generator:** update protoc to v3.15.3 ([#​462](https://www.github.com/googleapis/java-dataproc/issues/462)) ([ef5f0bc](https://www.github.com/googleapis/java-dataproc/commit/ef5f0bcf9981a1f61ed460f798b932b1d74291c0)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#​475](https://www.github.com/googleapis/java-dataproc/issues/475)) ([42f464a](https://www.github.com/googleapis/java-dataproc/commit/42f464a672c0b6a2595a847de689b0e4171ee7f9)) - update dependency com.google.cloud:google-cloud-storage to v1.113.13 ([#​465](https://www.github.com/googleapis/java-dataproc/issues/465)) ([096f64a](https://www.github.com/googleapis/java-dataproc/commit/096f64a1773f2bc20c348a7e28e225439b56faca)) ##### [1.2.1](https://www.github.com/googleapis/java-dataproc/compare/v1.2.0...v1.2.1) (2021-02-26) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#​458](https://www.github.com/googleapis/java-dataproc/issues/458)) ([ed4e9eb](https://www.github.com/googleapis/java-dataproc/commit/ed4e9eb666896855a4fec07f996192d2c09004a6))
                                                                                                              --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3c4d7254..3b346618 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.2.1 + 1.3.0 From 708bee9335b06becba76f28b4574eb48f3022351 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 23 Mar 2021 09:04:04 -0700 Subject: [PATCH 126/519] chore: regenerate README (#489) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-23 15:44:55,917 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-23 15:44:56,942 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/f12c90c7-baf4-4da7-b381-b15312deed61/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 1365c0a8..df07f0db 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "663aae2cf32f871afd221860d79284188054035f" + "sha": "0dda808653fd730566989c2a7e469235d284b7d5" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "78437c732a60c64895778697b078497b0988346c" + "sha": "c84c8f156e09702e1c8946bfb9746e6f5892cf27" } } ] diff --git a/README.md b/README.md index 1ae8b18b..b21ee7e7 100644 --- a/README.md +++ b/README.md @@ -39,14 +39,14 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.2.1 + 1.3.0 ``` If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.1.0') +implementation platform('com.google.cloud:libraries-bom:19.2.1') compile 'com.google.cloud:google-cloud-dataproc' ``` From fb2e34a7bb35b2cabad93b586101299ccabd1a7d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Mar 2021 16:10:16 -0700 Subject: [PATCH 127/519] chore(java): detect sample-secrets in build.sh (#491) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d55a1379-0d11-4919-8fb9-7dd3f61a70ab/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef --- .kokoro/build.sh | 5 +++++ synth.metadata | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index cafd8a10..8fbe759f 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -79,6 +79,11 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ diff --git a/synth.metadata b/synth.metadata index c53917c2..3a690d61 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a66bfdf8243cbe8c97af1155f13328a79b3f6ac0" + "sha": "708bee9335b06becba76f28b4574eb48f3022351" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" + "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef" } } ], From dc806cf70bb7b5e0c5c255f9e0d5f7221869e5b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 29 Mar 2021 15:56:02 +0200 Subject: [PATCH 128/519] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#484) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c475de81..0369469c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From c6e0446d1240fa0fe543de9af77e40fe7bfa3d71 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 29 Mar 2021 07:52:11 -0700 Subject: [PATCH 129/519] chore: regenerate README (#492) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-03-29 13:58:17,049 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-29 13:58:18,238 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/cc131742-aad2-4f95-8c67-d8ae0ef39ecc/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index df07f0db..46c16fb5 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "0dda808653fd730566989c2a7e469235d284b7d5" + "sha": "dc806cf70bb7b5e0c5c255f9e0d5f7221869e5b2" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c84c8f156e09702e1c8946bfb9746e6f5892cf27" + "sha": "60fc32cc950c20cfdd774b846a4a7dc5d1e4d0ef" } } ] diff --git a/README.md b/README.md index b21ee7e7..a54a2376 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From c3213c6844ec26fc2ebb55e56ee6753d56d5542d Mon Sep 17 00:00:00 2001 From: Brad Miro Date: Mon, 29 Mar 2021 11:08:54 -0400 Subject: [PATCH 130/519] fixing machine type for new default image (#490) --- samples/snippets/src/main/java/CreateCluster.java | 4 ++-- .../snippets/src/main/java/CreateClusterWithAutoscaling.java | 4 ++-- samples/snippets/src/main/java/Quickstart.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/snippets/src/main/java/CreateCluster.java b/samples/snippets/src/main/java/CreateCluster.java index 0815a35f..0623c8cc 100644 --- a/samples/snippets/src/main/java/CreateCluster.java +++ b/samples/snippets/src/main/java/CreateCluster.java @@ -51,12 +51,12 @@ public static void createCluster(String projectId, String region, String cluster // Configure the settings for our cluster. InstanceGroupConfig masterConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(1) .build(); InstanceGroupConfig workerConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(2) .build(); ClusterConfig clusterConfig = diff --git a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java b/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java index 2a8a6285..91774b89 100644 --- a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java +++ b/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java @@ -138,12 +138,12 @@ public static void createClusterwithAutoscaling( // Configure the settings for our cluster. InstanceGroupConfig masterConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(1) .build(); InstanceGroupConfig workerConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(2) .build(); ClusterConfig clusterConfig = diff --git a/samples/snippets/src/main/java/Quickstart.java b/samples/snippets/src/main/java/Quickstart.java index 0f54c5f8..44c2afc7 100644 --- a/samples/snippets/src/main/java/Quickstart.java +++ b/samples/snippets/src/main/java/Quickstart.java @@ -79,12 +79,12 @@ public static void quickstart( // Configure the settings for our cluster. InstanceGroupConfig masterConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(1) .build(); InstanceGroupConfig workerConfig = InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-1") + .setMachineTypeUri("n1-standard-2") .setNumInstances(2) .build(); ClusterConfig clusterConfig = From 011e6ef3f9b50fd83488e2db17978c17258c7c63 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 29 Mar 2021 15:34:14 -0700 Subject: [PATCH 131/519] chore: remove staging bucket v2 (#493) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a5bf99b0-f2a5-4ac0-ae4c-9e4e0ef0adde/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/572ef8f70edd9041f5bcfa71511aed6aecfc2098 --- .kokoro/release/publish_javadoc.sh | 5 ----- synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 3fbacdaa..dbcc2268 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -24,11 +24,6 @@ if [[ -z "${STAGING_BUCKET}" ]]; then exit 1 fi -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - # work from the git root directory pushd $(dirname "$0")/../../ diff --git a/synth.metadata b/synth.metadata index 3a690d61..f5ba3211 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "708bee9335b06becba76f28b4574eb48f3022351" + "sha": "c3213c6844ec26fc2ebb55e56ee6753d56d5542d" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef" + "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" } } ], From a208e54b7d7634d1ee2de3470f7c2a3e7b0180c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Apr 2021 18:26:27 +0200 Subject: [PATCH 132/519] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#495) --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3b346618..276d6e36 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.21 + 1.0.22 diff --git a/samples/pom.xml b/samples/pom.xml index 999ba027..99c3134c 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 544b1f84..924a0b1e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0369469c..7c71f86d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From 81b26b1b38536ab2fc4c52796a19b66646072ccc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 20:38:11 +0200 Subject: [PATCH 133/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.14 (#479) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.113.13` -> `1.113.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.14/compatibility-slim/1.113.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.14/confidence-slim/1.113.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
                                                                                                              googleapis/java-storage ### [`v1.113.14`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​111314-httpswwwgithubcomgoogleapisjava-storagecomparev111313v111314-2021-03-11) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.113.13...v1.113.14)
                                                                                                              --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 276d6e36..55704362 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.13 + 1.113.14 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 924a0b1e..567b907a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.13 + 1.113.14 junit From 706417837c624a0915fd1fb6d9c5279d6819f7c3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Apr 2021 12:20:14 -0700 Subject: [PATCH 134/519] chore: regenerate README (#499) This PR was generated using Autosynth. :rainbow:
                                                                                                              Log from Synthtool ``` 2021-04-09 18:40:25,456 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-09 18:40:26,643 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
                                                                                                              Full log will be available here: https://source.cloud.google.com/results/invocations/1bb7d9ad-6f50-41f9-9159-cee8f7933d28/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 46c16fb5..90d25424 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "dc806cf70bb7b5e0c5c255f9e0d5f7221869e5b2" + "sha": "81b26b1b38536ab2fc4c52796a19b66646072ccc" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "60fc32cc950c20cfdd774b846a4a7dc5d1e4d0ef" + "sha": "1f5e6bc8dc8e3661ee550905fc070e55e1b6cea1" } } ] diff --git a/README.md b/README.md index a54a2376..a4e74f4a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ Java idiomatic client for [Dataproc][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + + + ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file From 3c78a971133b3809ac3c962a1c07951480047c31 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Apr 2021 13:34:10 -0700 Subject: [PATCH 135/519] feat: update the Dataproc V1 API client library (#497) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/910f143f-7dd7-4a06-8fca-74558edd8e86/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 367518225 Source-Link: https://github.com/googleapis/googleapis/commit/439f098cb730af18c8ae4e65971ea3badf45138a --- .../dataproc/v1/ClusterControllerClient.java | 166 ++ .../v1/ClusterControllerSettings.java | 44 + .../v1/WorkflowTemplateServiceClient.java | 4 +- .../cloud/dataproc/v1/gapic_metadata.json | 6 + .../v1/stub/ClusterControllerStub.java | 20 + .../stub/ClusterControllerStubSettings.java | 140 ++ .../v1/stub/GrpcClusterControllerStub.java | 95 + .../v1/ClusterControllerClientTest.java | 142 ++ .../v1/MockClusterControllerImpl.java | 41 + .../v1/WorkflowTemplateServiceClientTest.java | 7 + .../dataproc/v1/ClusterControllerGrpc.java | 231 ++- .../v1/WorkflowTemplateServiceGrpc.java | 12 +- .../cloud/dataproc/v1/ClusterConfig.java | 668 +++++++ .../dataproc/v1/ClusterConfigOrBuilder.java | 99 + .../google/cloud/dataproc/v1/ClusterName.java | 223 +++ .../cloud/dataproc/v1/ClusterStatus.java | 66 + .../cloud/dataproc/v1/ClustersProto.java | 642 ++++--- .../google/cloud/dataproc/v1/Component.java | 145 +- .../dataproc/v1/CreateClusterRequest.java | 42 +- .../v1/CreateClusterRequestOrBuilder.java | 12 +- .../dataproc/v1/DeleteClusterRequest.java | 35 +- .../v1/DeleteClusterRequestOrBuilder.java | 10 +- .../google/cloud/dataproc/v1/DiskConfig.java | 42 +- .../dataproc/v1/DiskConfigOrBuilder.java | 12 +- .../cloud/dataproc/v1/GceClusterConfig.java | 1025 +++++++++- .../v1/GceClusterConfigOrBuilder.java | 115 ++ .../cloud/dataproc/v1/GkeClusterConfig.java | 1690 +++++++++++++++++ .../v1/GkeClusterConfigOrBuilder.java | 68 + .../cloud/dataproc/v1/IdentityConfig.java | 829 ++++++++ .../dataproc/v1/IdentityConfigOrBuilder.java | 90 + .../dataproc/v1/InstanceGroupConfig.java | 24 +- .../v1/InstanceGroupConfigOrBuilder.java | 6 +- .../InstantiateWorkflowTemplateRequest.java | 22 +- ...tiateWorkflowTemplateRequestOrBuilder.java | 10 +- .../com/google/cloud/dataproc/v1/Job.java | 16 +- .../cloud/dataproc/v1/JobOrBuilder.java | 4 +- .../cloud/dataproc/v1/JobPlacement.java | 356 ++++ .../dataproc/v1/JobPlacementOrBuilder.java | 64 + .../cloud/dataproc/v1/JobReference.java | 28 +- .../dataproc/v1/JobReferenceOrBuilder.java | 8 +- .../cloud/dataproc/v1/JobScheduling.java | 106 +- .../dataproc/v1/JobSchedulingOrBuilder.java | 17 +- .../google/cloud/dataproc/v1/JobsProto.java | 264 +-- .../cloud/dataproc/v1/KerberosConfig.java | 56 +- .../dataproc/v1/KerberosConfigOrBuilder.java | 16 +- .../cloud/dataproc/v1/LifecycleConfig.java | 48 +- .../dataproc/v1/LifecycleConfigOrBuilder.java | 12 +- .../cloud/dataproc/v1/MetastoreConfig.java | 663 +++++++ .../dataproc/v1/MetastoreConfigOrBuilder.java | 58 + .../cloud/dataproc/v1/NodeGroupAffinity.java | 683 +++++++ .../v1/NodeGroupAffinityOrBuilder.java | 64 + .../google/cloud/dataproc/v1/OrderedJob.java | 28 +- .../dataproc/v1/OrderedJobOrBuilder.java | 8 +- .../google/cloud/dataproc/v1/QueryList.java | 78 +- .../cloud/dataproc/v1/QueryListOrBuilder.java | 24 +- .../cloud/dataproc/v1/SecurityConfig.java | 390 +++- .../dataproc/v1/SecurityConfigOrBuilder.java | 62 +- .../google/cloud/dataproc/v1/ServiceName.java | 223 +++ .../google/cloud/dataproc/v1/SharedProto.java | 19 +- .../dataproc/v1/ShieldedInstanceConfig.java | 728 +++++++ .../v1/ShieldedInstanceConfigOrBuilder.java | 64 + .../dataproc/v1/StartClusterRequest.java | 1428 ++++++++++++++ .../v1/StartClusterRequestOrBuilder.java | 172 ++ .../cloud/dataproc/v1/StopClusterRequest.java | 1428 ++++++++++++++ .../v1/StopClusterRequestOrBuilder.java | 172 ++ .../cloud/dataproc/v1/SubmitJobRequest.java | 35 +- .../v1/SubmitJobRequestOrBuilder.java | 10 +- .../cloud/dataproc/v1/TemplateParameter.java | 104 +- .../v1/TemplateParameterOrBuilder.java | 32 +- .../dataproc/v1/UpdateClusterRequest.java | 35 +- .../v1/UpdateClusterRequestOrBuilder.java | 10 +- .../cloud/dataproc/v1/WorkflowMetadata.java | 961 ++++++++++ .../v1/WorkflowMetadataOrBuilder.java | 138 ++ .../cloud/dataproc/v1/WorkflowTemplate.java | 392 ++++ .../v1/WorkflowTemplateOrBuilder.java | 65 + .../dataproc/v1/WorkflowTemplatesProto.java | 378 ++-- .../google/cloud/dataproc/v1/clusters.proto | 272 ++- .../proto/google/cloud/dataproc/v1/jobs.proto | 70 +- .../google/cloud/dataproc/v1/shared.proto | 26 +- .../dataproc/v1/workflow_templates.proto | 110 +- synth.metadata | 26 +- 81 files changed, 15700 insertions(+), 1034 deletions(-) create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 022ba23f..87cb4c5f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -448,6 +448,172 @@ public final UnaryCallable updateClusterCallabl return stub.updateClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StopClusterRequest request =
                                                                                                              +   *       StopClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   Cluster response = clusterControllerClient.stopClusterAsync(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 stopClusterAsync( + StopClusterRequest request) { + return stopClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StopClusterRequest request =
                                                                                                              +   *       StopClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   OperationFuture future =
                                                                                                              +   *       clusterControllerClient.stopClusterOperationCallable().futureCall(request);
                                                                                                              +   *   // Do something.
                                                                                                              +   *   Cluster response = future.get();
                                                                                                              +   * }
                                                                                                              +   * }
                                                                                                              + */ + public final OperationCallable + stopClusterOperationCallable() { + return stub.stopClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StopClusterRequest request =
                                                                                                              +   *       StopClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   ApiFuture future =
                                                                                                              +   *       clusterControllerClient.stopClusterCallable().futureCall(request);
                                                                                                              +   *   // Do something.
                                                                                                              +   *   Operation response = future.get();
                                                                                                              +   * }
                                                                                                              +   * }
                                                                                                              + */ + public final UnaryCallable stopClusterCallable() { + return stub.stopClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StartClusterRequest request =
                                                                                                              +   *       StartClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   Cluster response = clusterControllerClient.startClusterAsync(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 startClusterAsync( + StartClusterRequest request) { + return startClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StartClusterRequest request =
                                                                                                              +   *       StartClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   OperationFuture future =
                                                                                                              +   *       clusterControllerClient.startClusterOperationCallable().futureCall(request);
                                                                                                              +   *   // Do something.
                                                                                                              +   *   Cluster response = future.get();
                                                                                                              +   * }
                                                                                                              +   * }
                                                                                                              + */ + public final OperationCallable + startClusterOperationCallable() { + return stub.startClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a cluster in a project. + * + *

                                                                                                              Sample code: + * + *

                                                                                                              {@code
                                                                                                              +   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
                                                                                                              +   *   StartClusterRequest request =
                                                                                                              +   *       StartClusterRequest.newBuilder()
                                                                                                              +   *           .setProjectId("projectId-894832108")
                                                                                                              +   *           .setRegion("region-934795532")
                                                                                                              +   *           .setClusterName("clusterName-1141738587")
                                                                                                              +   *           .setClusterUuid("clusterUuid-1141510955")
                                                                                                              +   *           .setRequestId("requestId693933066")
                                                                                                              +   *           .build();
                                                                                                              +   *   ApiFuture future =
                                                                                                              +   *       clusterControllerClient.startClusterCallable().futureCall(request);
                                                                                                              +   *   // Do something.
                                                                                                              +   *   Operation response = future.get();
                                                                                                              +   * }
                                                                                                              +   * }
                                                                                                              + */ + public final UnaryCallable startClusterCallable() { + return stub.startClusterCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index e4d40160..27f7760d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -94,6 +94,28 @@ public UnaryCallSettings updateClusterSettings( return ((ClusterControllerStubSettings) getStubSettings()).updateClusterOperationSettings(); } + /** Returns the object with the settings used for calls to stopCluster. */ + public UnaryCallSettings stopClusterSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).stopClusterSettings(); + } + + /** Returns the object with the settings used for calls to stopCluster. */ + public OperationCallSettings + stopClusterOperationSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).stopClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to startCluster. */ + public UnaryCallSettings startClusterSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).startClusterSettings(); + } + + /** Returns the object with the settings used for calls to startCluster. */ + public OperationCallSettings + startClusterOperationSettings() { + return ((ClusterControllerStubSettings) getStubSettings()).startClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterSettings(); @@ -248,6 +270,28 @@ public UnaryCallSettings.Builder updateClusterS return getStubSettingsBuilder().updateClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to stopCluster. */ + public UnaryCallSettings.Builder stopClusterSettings() { + return getStubSettingsBuilder().stopClusterSettings(); + } + + /** Returns the builder for the settings used for calls to stopCluster. */ + public OperationCallSettings.Builder + stopClusterOperationSettings() { + return getStubSettingsBuilder().stopClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to startCluster. */ + public UnaryCallSettings.Builder startClusterSettings() { + return getStubSettingsBuilder().startClusterSettings(); + } + + /** Returns the builder for the settings used for calls to startCluster. */ + public OperationCallSettings.Builder + startClusterOperationSettings() { + return getStubSettingsBuilder().startClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return getStubSettingsBuilder().deleteClusterSettings(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index d45c399e..71b74c57 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -647,7 +647,7 @@ public final OperationFuture instantiateWorkflowTemplat *
                                                                                                            * * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 100 characters. + * parameters. Values may not exceed 1000 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateWorkflowTemplateAsync( @@ -708,7 +708,7 @@ public final OperationFuture instantiateWorkflowTemplat *
                                                                                                          * * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 100 characters. + * parameters. Values may not exceed 1000 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture instantiateWorkflowTemplateAsync( diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json index 845a440e..1b98e6d0 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json @@ -49,6 +49,12 @@ "ListClusters": { "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] }, + "StartCluster": { + "methods": ["startClusterAsync", "startClusterOperationCallable", "startClusterCallable"] + }, + "StopCluster": { + "methods": ["stopClusterAsync", "stopClusterOperationCallable", "stopClusterCallable"] + }, "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java index f75e4fbd..2cae1ff5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java @@ -30,6 +30,8 @@ import com.google.cloud.dataproc.v1.GetClusterRequest; import com.google.cloud.dataproc.v1.ListClustersRequest; import com.google.cloud.dataproc.v1.ListClustersResponse; +import com.google.cloud.dataproc.v1.StartClusterRequest; +import com.google.cloud.dataproc.v1.StopClusterRequest; import com.google.cloud.dataproc.v1.UpdateClusterRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -67,6 +69,24 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } + public OperationCallable + stopClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: stopClusterOperationCallable()"); + } + + public UnaryCallable stopClusterCallable() { + throw new UnsupportedOperationException("Not implemented: stopClusterCallable()"); + } + + public OperationCallable + startClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startClusterOperationCallable()"); + } + + public UnaryCallable startClusterCallable() { + throw new UnsupportedOperationException("Not implemented: startClusterCallable()"); + } + public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index ee7a93e4..e379310b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -53,6 +53,8 @@ import com.google.cloud.dataproc.v1.GetClusterRequest; import com.google.cloud.dataproc.v1.ListClustersRequest; import com.google.cloud.dataproc.v1.ListClustersResponse; +import com.google.cloud.dataproc.v1.StartClusterRequest; +import com.google.cloud.dataproc.v1.StopClusterRequest; import com.google.cloud.dataproc.v1.UpdateClusterRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -110,6 +112,12 @@ public class ClusterControllerStubSettings extends StubSettings updateClusterSettings; private final OperationCallSettings updateClusterOperationSettings; + private final UnaryCallSettings stopClusterSettings; + private final OperationCallSettings + stopClusterOperationSettings; + private final UnaryCallSettings startClusterSettings; + private final OperationCallSettings + startClusterOperationSettings; private final UnaryCallSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; @@ -197,6 +205,28 @@ public UnaryCallSettings updateClusterSettings( return updateClusterOperationSettings; } + /** Returns the object with the settings used for calls to stopCluster. */ + public UnaryCallSettings stopClusterSettings() { + return stopClusterSettings; + } + + /** Returns the object with the settings used for calls to stopCluster. */ + public OperationCallSettings + stopClusterOperationSettings() { + return stopClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to startCluster. */ + public UnaryCallSettings startClusterSettings() { + return startClusterSettings; + } + + /** Returns the object with the settings used for calls to startCluster. */ + public OperationCallSettings + startClusterOperationSettings() { + return startClusterOperationSettings; + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return deleteClusterSettings; @@ -304,6 +334,10 @@ protected ClusterControllerStubSettings(Builder settingsBuilder) throws IOExcept createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); updateClusterSettings = settingsBuilder.updateClusterSettings().build(); updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + stopClusterSettings = settingsBuilder.stopClusterSettings().build(); + stopClusterOperationSettings = settingsBuilder.stopClusterOperationSettings().build(); + startClusterSettings = settingsBuilder.startClusterSettings().build(); + startClusterOperationSettings = settingsBuilder.startClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); getClusterSettings = settingsBuilder.getClusterSettings().build(); @@ -323,6 +357,14 @@ public static class Builder extends StubSettings.Builder updateClusterOperationSettings; + private final UnaryCallSettings.Builder stopClusterSettings; + private final OperationCallSettings.Builder< + StopClusterRequest, Cluster, ClusterOperationMetadata> + stopClusterOperationSettings; + private final UnaryCallSettings.Builder startClusterSettings; + private final OperationCallSettings.Builder< + StartClusterRequest, Cluster, ClusterOperationMetadata> + startClusterOperationSettings; private final UnaryCallSettings.Builder deleteClusterSettings; private final OperationCallSettings.Builder< DeleteClusterRequest, Empty, ClusterOperationMetadata> @@ -345,6 +387,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_6_codes", ImmutableSet.copyOf( @@ -371,6 +414,8 @@ public static class Builder extends StubSettings.Builder>of( createClusterSettings, updateClusterSettings, + stopClusterSettings, + startClusterSettings, deleteClusterSettings, getClusterSettings, listClustersSettings, @@ -421,6 +472,10 @@ protected Builder(ClusterControllerStubSettings settings) { createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); updateClusterSettings = settings.updateClusterSettings.toBuilder(); updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + stopClusterSettings = settings.stopClusterSettings.toBuilder(); + stopClusterOperationSettings = settings.stopClusterOperationSettings.toBuilder(); + startClusterSettings = settings.startClusterSettings.toBuilder(); + startClusterOperationSettings = settings.startClusterOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); getClusterSettings = settings.getClusterSettings.toBuilder(); @@ -432,6 +487,8 @@ protected Builder(ClusterControllerStubSettings settings) { ImmutableList.>of( createClusterSettings, updateClusterSettings, + stopClusterSettings, + startClusterSettings, deleteClusterSettings, getClusterSettings, listClustersSettings, @@ -460,6 +517,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + builder + .stopClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .startClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) @@ -528,6 +595,53 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(900000L)) .build())); + builder + .stopClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.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())); + + builder + .startClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.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())); + builder .deleteClusterOperationSettings() .setInitialCallSettings( @@ -621,6 +735,32 @@ public UnaryCallSettings.Builder updateClusterS return updateClusterOperationSettings; } + /** Returns the builder for the settings used for calls to stopCluster. */ + public UnaryCallSettings.Builder stopClusterSettings() { + return stopClusterSettings; + } + + /** Returns the builder for the settings used for calls to stopCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + stopClusterOperationSettings() { + return stopClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to startCluster. */ + public UnaryCallSettings.Builder startClusterSettings() { + return startClusterSettings; + } + + /** Returns the builder for the settings used for calls to startCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + startClusterOperationSettings() { + return startClusterOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return deleteClusterSettings; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 687b1896..4d93d320 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -35,6 +35,8 @@ import com.google.cloud.dataproc.v1.GetClusterRequest; import com.google.cloud.dataproc.v1.ListClustersRequest; import com.google.cloud.dataproc.v1.ListClustersResponse; +import com.google.cloud.dataproc.v1.StartClusterRequest; +import com.google.cloud.dataproc.v1.StopClusterRequest; import com.google.cloud.dataproc.v1.UpdateClusterRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -75,6 +77,23 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor stopClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StopCluster") + .setRequestMarshaller(ProtoUtils.marshaller(StopClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + startClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StartCluster") + .setRequestMarshaller(ProtoUtils.marshaller(StartClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -119,6 +138,12 @@ public class GrpcClusterControllerStub extends ClusterControllerStub { private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable stopClusterCallable; + private final OperationCallable + stopClusterOperationCallable; + private final UnaryCallable startClusterCallable; + private final OperationCallable + startClusterOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; @@ -204,6 +229,36 @@ public Map extract(UpdateClusterRequest request) { } }) .build(); + GrpcCallSettings stopClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(stopClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(StopClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) + .build(); + GrpcCallSettings startClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(StartClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); + } + }) + .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -282,6 +337,24 @@ public Map extract(DiagnoseClusterRequest request) { settings.updateClusterOperationSettings(), clientContext, operationsStub); + this.stopClusterCallable = + callableFactory.createUnaryCallable( + stopClusterTransportSettings, settings.stopClusterSettings(), clientContext); + this.stopClusterOperationCallable = + callableFactory.createOperationCallable( + stopClusterTransportSettings, + settings.stopClusterOperationSettings(), + clientContext, + operationsStub); + this.startClusterCallable = + callableFactory.createUnaryCallable( + startClusterTransportSettings, settings.startClusterSettings(), clientContext); + this.startClusterOperationCallable = + callableFactory.createOperationCallable( + startClusterTransportSettings, + settings.startClusterOperationSettings(), + clientContext, + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -340,6 +413,28 @@ public UnaryCallable updateClusterCallable() { return updateClusterOperationCallable; } + @Override + public UnaryCallable stopClusterCallable() { + return stopClusterCallable; + } + + @Override + public OperationCallable + stopClusterOperationCallable() { + return stopClusterOperationCallable; + } + + @Override + public UnaryCallable startClusterCallable() { + return startClusterCallable; + } + + @Override + public OperationCallable + startClusterOperationCallable() { + return startClusterOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java index b43be30a..4de43fa7 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java @@ -211,6 +211,148 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void stopClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockClusterController.addResponse(resultOperation); + + StopClusterRequest request = + StopClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + + Cluster actualResponse = client.stopClusterAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopClusterRequest actualRequest = ((StopClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); + Assert.assertEquals(request.getClusterName(), actualRequest.getClusterName()); + Assert.assertEquals(request.getClusterUuid(), actualRequest.getClusterUuid()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterController.addException(exception); + + try { + StopClusterRequest request = + StopClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + client.stopClusterAsync(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()); + } + } + + @Test + public void startClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setProjectId("projectId-894832108") + .setClusterName("clusterName-1141738587") + .setConfig(ClusterConfig.newBuilder().build()) + .putAllLabels(new HashMap()) + .setStatus(ClusterStatus.newBuilder().build()) + .addAllStatusHistory(new ArrayList()) + .setClusterUuid("clusterUuid-1141510955") + .setMetrics(ClusterMetrics.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockClusterController.addResponse(resultOperation); + + StartClusterRequest request = + StartClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + + Cluster actualResponse = client.startClusterAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartClusterRequest actualRequest = ((StartClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); + Assert.assertEquals(request.getClusterName(), actualRequest.getClusterName()); + Assert.assertEquals(request.getClusterUuid(), actualRequest.getClusterUuid()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterController.addException(exception); + + try { + StartClusterRequest request = + StartClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + client.startClusterAsync(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()); + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java index 0d3eb918..90f5bdc3 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java @@ -101,6 +101,47 @@ public void updateCluster( } } + @Override + public void stopCluster(StopClusterRequest 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 StopCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void startCluster( + StartClusterRequest 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 StartCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteCluster( DeleteClusterRequest request, StreamObserver responseObserver) { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java index ec172781..26e26daf 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java @@ -30,6 +30,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; @@ -104,6 +105,7 @@ public void createWorkflowTemplateTest() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -157,6 +159,7 @@ public void createWorkflowTemplateTest2() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -210,6 +213,7 @@ public void createWorkflowTemplateTest3() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -263,6 +267,7 @@ public void getWorkflowTemplateTest() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -316,6 +321,7 @@ public void getWorkflowTemplateTest2() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); @@ -689,6 +695,7 @@ public void updateWorkflowTemplateTest() throws Exception { .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) .addAllJobs(new ArrayList()) .addAllParameters(new ArrayList()) + .setDagTimeout(Duration.newBuilder().build()) .build(); mockWorkflowTemplateService.addResponse(expectedResponse); diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java index 5da6ef58..4c78be81 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -121,6 +121,91 @@ private ClusterControllerGrpc() {} return getUpdateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> + getStopClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopCluster", + requestType = com.google.cloud.dataproc.v1.StopClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> + getStopClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> + getStopClusterMethod; + if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { + ClusterControllerGrpc.getStopClusterMethod = + getStopClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterControllerMethodDescriptorSupplier("StopCluster")) + .build(); + } + } + } + return getStopClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> + getStartClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartCluster", + requestType = com.google.cloud.dataproc.v1.StartClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> + getStartClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> + getStartClusterMethod; + if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { + synchronized (ClusterControllerGrpc.class) { + if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { + ClusterControllerGrpc.getStartClusterMethod = + getStartClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.StartClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterControllerMethodDescriptorSupplier("StartCluster")) + .build(); + } + } + } + return getStartClusterMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> getDeleteClusterMethod; @@ -379,6 +464,34 @@ public void updateCluster( getUpdateClusterMethod(), responseObserver); } + /** + * + * + *
                                                                                                          +     * Stops a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public void stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopClusterMethod(), responseObserver); + } + + /** + * + * + *
                                                                                                          +     * Starts a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public void startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartClusterMethod(), responseObserver); + } + /** * * @@ -458,6 +571,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getStopClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StopClusterRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_CLUSTER))) + .addMethod( + getStartClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.StartClusterRequest, + com.google.longrunning.Operation>(this, METHODID_START_CLUSTER))) .addMethod( getDeleteClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -543,6 +668,38 @@ public void updateCluster( responseObserver); } + /** + * + * + *
                                                                                                          +     * Stops a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public void stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                                          +     * Starts a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public void startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartClusterMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -666,6 +823,32 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
                                                                                                          +     * Stops a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public com.google.longrunning.Operation stopCluster( + com.google.cloud.dataproc.v1.StopClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                                          +     * Starts a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public com.google.longrunning.Operation startCluster( + com.google.cloud.dataproc.v1.StartClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartClusterMethod(), getCallOptions(), request); + } + /** * * @@ -777,6 +960,32 @@ protected ClusterControllerFutureStub build( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
                                                                                                          +     * Stops a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public com.google.common.util.concurrent.ListenableFuture + stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                                          +     * Starts a cluster in a project.
                                                                                                          +     * 
                                                                                                          + */ + public com.google.common.util.concurrent.ListenableFuture + startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartClusterMethod(), getCallOptions()), request); + } + /** * * @@ -841,10 +1050,12 @@ protected ClusterControllerFutureStub build( private static final int METHODID_CREATE_CLUSTER = 0; private static final int METHODID_UPDATE_CLUSTER = 1; - private static final int METHODID_DELETE_CLUSTER = 2; - private static final int METHODID_GET_CLUSTER = 3; - private static final int METHODID_LIST_CLUSTERS = 4; - private static final int METHODID_DIAGNOSE_CLUSTER = 5; + private static final int METHODID_STOP_CLUSTER = 2; + private static final int METHODID_START_CLUSTER = 3; + private static final int METHODID_DELETE_CLUSTER = 4; + private static final int METHODID_GET_CLUSTER = 5; + private static final int METHODID_LIST_CLUSTERS = 6; + private static final int METHODID_DIAGNOSE_CLUSTER = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -873,6 +1084,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataproc.v1.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STOP_CLUSTER: + serviceImpl.stopCluster( + (com.google.cloud.dataproc.v1.StopClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_CLUSTER: + serviceImpl.startCluster( + (com.google.cloud.dataproc.v1.StartClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_CLUSTER: serviceImpl.deleteCluster( (com.google.cloud.dataproc.v1.DeleteClusterRequest) request, @@ -960,6 +1181,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier()) .addMethod(getCreateClusterMethod()) .addMethod(getUpdateClusterMethod()) + .addMethod(getStopClusterMethod()) + .addMethod(getStartClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getGetClusterMethod()) .addMethod(getListClustersMethod()) diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index 665b780e..3f284e38 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -514,7 +514,8 @@ public void instantiateWorkflowTemplate( *
                                                                                                                * Instantiates a template and begins execution.
                                                                                                                * This method is equivalent to executing the sequence
                                                                                                          -     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                          +     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
                                                                                                          +     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                                * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
                                                                                                                * The returned Operation can be used to track execution of
                                                                                                                * workflow by polling
                                                                                                          @@ -733,7 +734,8 @@ public void instantiateWorkflowTemplate(
                                                                                                                * 
                                                                                                                * Instantiates a template and begins execution.
                                                                                                                * This method is equivalent to executing the sequence
                                                                                                          -     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                          +     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
                                                                                                          +     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                                * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
                                                                                                                * The returned Operation can be used to track execution of
                                                                                                                * workflow by polling
                                                                                                          @@ -896,7 +898,8 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(
                                                                                                                * 
                                                                                                                * Instantiates a template and begins execution.
                                                                                                                * This method is equivalent to executing the sequence
                                                                                                          -     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                          +     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
                                                                                                          +     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                                * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
                                                                                                                * The returned Operation can be used to track execution of
                                                                                                                * workflow by polling
                                                                                                          @@ -1048,7 +1051,8 @@ protected WorkflowTemplateServiceFutureStub build(
                                                                                                                * 
                                                                                                                * Instantiates a template and begins execution.
                                                                                                                * This method is equivalent to executing the sequence
                                                                                                          -     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                          +     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
                                                                                                          +     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
                                                                                                                * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
                                                                                                                * The returned Operation can be used to track execution of
                                                                                                                * workflow by polling
                                                                                                          diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
                                                                                                          index 4e903d22..88051058 100644
                                                                                                          --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
                                                                                                          +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
                                                                                                          @@ -259,6 +259,38 @@ private ClusterConfig(
                                                                                                                           endpointConfig_ = subBuilder.buildPartial();
                                                                                                                         }
                                                                                                           
                                                                                                          +              break;
                                                                                                          +            }
                                                                                                          +          case 162:
                                                                                                          +            {
                                                                                                          +              com.google.cloud.dataproc.v1.MetastoreConfig.Builder subBuilder = null;
                                                                                                          +              if (metastoreConfig_ != null) {
                                                                                                          +                subBuilder = metastoreConfig_.toBuilder();
                                                                                                          +              }
                                                                                                          +              metastoreConfig_ =
                                                                                                          +                  input.readMessage(
                                                                                                          +                      com.google.cloud.dataproc.v1.MetastoreConfig.parser(), extensionRegistry);
                                                                                                          +              if (subBuilder != null) {
                                                                                                          +                subBuilder.mergeFrom(metastoreConfig_);
                                                                                                          +                metastoreConfig_ = subBuilder.buildPartial();
                                                                                                          +              }
                                                                                                          +
                                                                                                          +              break;
                                                                                                          +            }
                                                                                                          +          case 170:
                                                                                                          +            {
                                                                                                          +              com.google.cloud.dataproc.v1.GkeClusterConfig.Builder subBuilder = null;
                                                                                                          +              if (gkeClusterConfig_ != null) {
                                                                                                          +                subBuilder = gkeClusterConfig_.toBuilder();
                                                                                                          +              }
                                                                                                          +              gkeClusterConfig_ =
                                                                                                          +                  input.readMessage(
                                                                                                          +                      com.google.cloud.dataproc.v1.GkeClusterConfig.parser(), extensionRegistry);
                                                                                                          +              if (subBuilder != null) {
                                                                                                          +                subBuilder.mergeFrom(gkeClusterConfig_);
                                                                                                          +                gkeClusterConfig_ = subBuilder.buildPartial();
                                                                                                          +              }
                                                                                                          +
                                                                                                                         break;
                                                                                                                       }
                                                                                                                     default:
                                                                                                          @@ -313,6 +345,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                                                                                                              * and manage this project-level, per-location bucket (see
                                                                                                              * [Dataproc staging
                                                                                                              * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
                                                                                                          +   * **This field requires a Cloud Storage bucket name, not a URI to a Cloud
                                                                                                          +   * Storage bucket.**
                                                                                                              * 
                                                                                                          * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -344,6 +378,8 @@ public java.lang.String getConfigBucket() { * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
                                                                                                          * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -378,6 +414,8 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
                                                                                                          * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -409,6 +447,8 @@ public java.lang.String getTempBucket() { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
                                                                                                          * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1121,6 +1161,123 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB return getEndpointConfig(); } + public static final int METASTORE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; + /** + * + * + *
                                                                                                          +   * Optional. Metastore configuration.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + @java.lang.Override + public boolean hasMetastoreConfig() { + return metastoreConfig_ != null; + } + /** + * + * + *
                                                                                                          +   * Optional. Metastore configuration.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } + /** + * + * + *
                                                                                                          +   * Optional. Metastore configuration.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { + return getMetastoreConfig(); + } + + public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.dataproc.v1.GkeClusterConfig gkeClusterConfig_; + /** + * + * + *
                                                                                                          +   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
                                                                                                          +   * Kubernetes. Setting this is considered mutually exclusive with Compute
                                                                                                          +   * Engine-based options such as `gce_cluster_config`, `master_config`,
                                                                                                          +   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + @java.lang.Override + public boolean hasGkeClusterConfig() { + return gkeClusterConfig_ != null; + } + /** + * + * + *
                                                                                                          +   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
                                                                                                          +   * Kubernetes. Setting this is considered mutually exclusive with Compute
                                                                                                          +   * Engine-based options such as `gce_cluster_config`, `master_config`,
                                                                                                          +   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { + return gkeClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() + : gkeClusterConfig_; + } + /** + * + * + *
                                                                                                          +   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
                                                                                                          +   * Kubernetes. Setting this is considered mutually exclusive with Compute
                                                                                                          +   * Engine-based options such as `gce_cluster_config`, `master_config`,
                                                                                                          +   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
                                                                                                          +   * 
                                                                                                          + * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { + return getGkeClusterConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1174,6 +1331,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endpointConfig_ != null) { output.writeMessage(19, getEndpointConfig()); } + if (metastoreConfig_ != null) { + output.writeMessage(20, getMetastoreConfig()); + } + if (gkeClusterConfig_ != null) { + output.writeMessage(21, getGkeClusterConfig()); + } unknownFields.writeTo(output); } @@ -1225,6 +1388,12 @@ public int getSerializedSize() { if (endpointConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointConfig()); } + if (metastoreConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); + } + if (gkeClusterConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getGkeClusterConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1284,6 +1453,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEndpointConfig()) { if (!getEndpointConfig().equals(other.getEndpointConfig())) return false; } + if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; + if (hasMetastoreConfig()) { + if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; + } + if (hasGkeClusterConfig() != other.hasGkeClusterConfig()) return false; + if (hasGkeClusterConfig()) { + if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1343,6 +1520,14 @@ public int hashCode() { hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEndpointConfig().hashCode(); } + if (hasMetastoreConfig()) { + hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMetastoreConfig().hashCode(); + } + if (hasGkeClusterConfig()) { + hash = (37 * hash) + GKE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGkeClusterConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1560,6 +1745,18 @@ public Builder clear() { endpointConfig_ = null; endpointConfigBuilder_ = null; } + if (metastoreConfigBuilder_ == null) { + metastoreConfig_ = null; + } else { + metastoreConfig_ = null; + metastoreConfigBuilder_ = null; + } + if (gkeClusterConfigBuilder_ == null) { + gkeClusterConfig_ = null; + } else { + gkeClusterConfig_ = null; + gkeClusterConfigBuilder_ = null; + } return this; } @@ -1649,6 +1846,16 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { } else { result.endpointConfig_ = endpointConfigBuilder_.build(); } + if (metastoreConfigBuilder_ == null) { + result.metastoreConfig_ = metastoreConfig_; + } else { + result.metastoreConfig_ = metastoreConfigBuilder_.build(); + } + if (gkeClusterConfigBuilder_ == null) { + result.gkeClusterConfig_ = gkeClusterConfig_; + } else { + result.gkeClusterConfig_ = gkeClusterConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1763,6 +1970,12 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.hasEndpointConfig()) { mergeEndpointConfig(other.getEndpointConfig()); } + if (other.hasMetastoreConfig()) { + mergeMetastoreConfig(other.getMetastoreConfig()); + } + if (other.hasGkeClusterConfig()) { + mergeGkeClusterConfig(other.getGkeClusterConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1808,6 +2021,8 @@ public Builder mergeFrom( * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1838,6 +2053,8 @@ public java.lang.String getConfigBucket() { * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1868,6 +2085,8 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1897,6 +2116,8 @@ public Builder setConfigBucket(java.lang.String value) { * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1922,6 +2143,8 @@ public Builder clearConfigBucket() { * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1954,6 +2177,8 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1984,6 +2209,8 @@ public java.lang.String getTempBucket() { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2014,6 +2241,8 @@ public com.google.protobuf.ByteString getTempBucketBytes() { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2043,6 +2272,8 @@ public Builder setTempBucket(java.lang.String value) { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2068,6 +2299,8 @@ public Builder clearTempBucket() { * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4775,6 +5008,441 @@ public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrB return endpointConfigBuilder_; } + private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + metastoreConfigBuilder_; + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + public boolean hasMetastoreConfig() { + return metastoreConfigBuilder_ != null || metastoreConfig_ != null; + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { + if (metastoreConfigBuilder_ == null) { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } else { + return metastoreConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { + if (metastoreConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metastoreConfig_ = value; + onChanged(); + } else { + metastoreConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetastoreConfig( + com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { + if (metastoreConfigBuilder_ == null) { + metastoreConfig_ = builderForValue.build(); + onChanged(); + } else { + metastoreConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { + if (metastoreConfigBuilder_ == null) { + if (metastoreConfig_ != null) { + metastoreConfig_ = + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + metastoreConfig_ = value; + } + onChanged(); + } else { + metastoreConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetastoreConfig() { + if (metastoreConfigBuilder_ == null) { + metastoreConfig_ = null; + onChanged(); + } else { + metastoreConfig_ = null; + metastoreConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { + + onChanged(); + return getMetastoreConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { + if (metastoreConfigBuilder_ != null) { + return metastoreConfigBuilder_.getMessageOrBuilder(); + } else { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } + } + /** + * + * + *
+     * Optional. Metastore configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + getMetastoreConfigFieldBuilder() { + if (metastoreConfigBuilder_ == null) { + metastoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), getParentForChildren(), isClean()); + metastoreConfig_ = null; + } + return metastoreConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.GkeClusterConfig gkeClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + gkeClusterConfigBuilder_; + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + public boolean hasGkeClusterConfig() { + return gkeClusterConfigBuilder_ != null || gkeClusterConfig_ != null; + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeClusterConfig. + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { + if (gkeClusterConfigBuilder_ == null) { + return gkeClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() + : gkeClusterConfig_; + } else { + return gkeClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { + if (gkeClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeClusterConfig_ = value; + onChanged(); + } else { + gkeClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGkeClusterConfig( + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { + if (gkeClusterConfigBuilder_ == null) { + gkeClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + gkeClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { + if (gkeClusterConfigBuilder_ == null) { + if (gkeClusterConfig_ != null) { + gkeClusterConfig_ = + com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder(gkeClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gkeClusterConfig_ = value; + } + onChanged(); + } else { + gkeClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGkeClusterConfig() { + if (gkeClusterConfigBuilder_ == null) { + gkeClusterConfig_ = null; + onChanged(); + } else { + gkeClusterConfig_ = null; + gkeClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { + + onChanged(); + return getGkeClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { + if (gkeClusterConfigBuilder_ != null) { + return gkeClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return gkeClusterConfig_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() + : gkeClusterConfig_; + } + } + /** + * + * + *
+     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+     * Kubernetes. Setting this is considered mutually exclusive with Compute
+     * Engine-based options such as `gce_cluster_config`, `master_config`,
+     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + getGkeClusterConfigFieldBuilder() { + if (gkeClusterConfigBuilder_ == null) { + gkeClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( + getGkeClusterConfig(), getParentForChildren(), isClean()); + gkeClusterConfig_ = null; + } + return gkeClusterConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index faec0811..0c6667e5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -36,6 +36,8 @@ public interface ClusterConfigOrBuilder * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -56,6 +58,8 @@ public interface ClusterConfigOrBuilder * and manage this project-level, per-location bucket (see * [Dataproc staging * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -77,6 +81,8 @@ public interface ClusterConfigOrBuilder * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -97,6 +103,8 @@ public interface ClusterConfigOrBuilder * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a * bucket. + * **This field requires a Cloud Storage bucket name, not a URI to a Cloud + * Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -648,4 +656,95 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization * */ com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Metastore configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + boolean hasMetastoreConfig(); + /** + * + * + *
+   * Optional. Metastore configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); + /** + * + * + *
+   * Optional. Metastore configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); + + /** + * + * + *
+   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + boolean hasGkeClusterConfig(); + /** + * + * + *
+   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gkeClusterConfig. + */ + com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); + /** + * + * + *
+   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
+   * Kubernetes. Setting this is considered mutually exclusive with Compute
+   * Engine-based options such as `gce_cluster_config`, `master_config`,
+   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java new file mode 100644 index 00000000..322bc06f --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java @@ -0,0 +1,223 @@ +/* + * 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.dataproc.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + + @Deprecated + protected ClusterName() { + project = null; + location = null; + cluster = null; + } + + private ClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ClusterName of(String project, String location, String cluster) { + return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static ClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER.validatedMatch( + formattedString, "ClusterName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + 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 (ClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER.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 (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER.instantiate( + "project", project, "location", location, "cluster", cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ClusterName that = ((ClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster); + } + 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(cluster); + return h; + } + + /** Builder for projects/{project}/locations/{location}/clusters/{cluster}. */ + public static class Builder { + private String project; + private String location; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(ClusterName clusterName) { + project = clusterName.project; + location = clusterName.location; + cluster = clusterName.cluster; + } + + public ClusterName build() { + return new ClusterName(this); + } + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index f3906534..a32f4d58 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java @@ -212,6 +212,36 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UPDATING = 5; */ UPDATING(5), + /** + * + * + *
+     * The cluster is being stopped. It cannot be used.
+     * 
+ * + * STOPPING = 6; + */ + STOPPING(6), + /** + * + * + *
+     * The cluster is currently stopped. It is not ready for use.
+     * 
+ * + * STOPPED = 7; + */ + STOPPED(7), + /** + * + * + *
+     * The cluster is being started. It is not ready for use.
+     * 
+ * + * STARTING = 8; + */ + STARTING(8), UNRECOGNIZED(-1), ; @@ -275,6 +305,36 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UPDATING = 5; */ public static final int UPDATING_VALUE = 5; + /** + * + * + *
+     * The cluster is being stopped. It cannot be used.
+     * 
+ * + * STOPPING = 6; + */ + public static final int STOPPING_VALUE = 6; + /** + * + * + *
+     * The cluster is currently stopped. It is not ready for use.
+     * 
+ * + * STOPPED = 7; + */ + public static final int STOPPED_VALUE = 7; + /** + * + * + *
+     * The cluster is being started. It is not ready for use.
+     * 
+ * + * STARTING = 8; + */ + public static final int STARTING_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -312,6 +372,12 @@ public static State forNumber(int value) { return DELETING; case 5: return UPDATING; + case 6: + return STOPPING; + case 7: + return STOPPED; + case 8: + return STARTING; default: return null; } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index b4e41d27..db02a2ca 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -39,6 +39,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,6 +71,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +111,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -107,6 +131,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -127,6 +155,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -167,212 +203,273 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n\'google/cloud/dataproc/v1/clusters.prot" + "o\022\030google.cloud.dataproc.v1\032\034google/api/" + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032%goo" - + "gle/cloud/dataproc/v1/shared.proto\032#goog" - + "le/longrunning/operations.proto\032\036google/" - + "protobuf/duration.proto\032 google/protobuf" - + "/field_mask.proto\032\037google/protobuf/times" - + "tamp.proto\"\315\003\n\007Cluster\022\027\n\nproject_id\030\001 \001" - + "(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022<\n\006co" - + "nfig\030\003 \001(\0132\'.google.cloud.dataproc.v1.Cl" - + "usterConfigB\003\340A\002\022B\n\006labels\030\010 \003(\0132-.googl" - + "e.cloud.dataproc.v1.Cluster.LabelsEntryB" - + "\003\340A\001\022<\n\006status\030\004 \001(\0132\'.google.cloud.data" - + "proc.v1.ClusterStatusB\003\340A\003\022D\n\016status_his" - + "tory\030\007 \003(\0132\'.google.cloud.dataproc.v1.Cl" - + "usterStatusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003" - + "\340A\003\022>\n\007metrics\030\t \001(\0132(.google.cloud.data" - + "proc.v1.ClusterMetricsB\003\340A\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\222\007\n\rC" - + "lusterConfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001" - + "\022\030\n\013temp_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluste" - + "r_config\030\010 \001(\0132*.google.cloud.dataproc.v" - + "1.GceClusterConfigB\003\340A\001\022I\n\rmaster_config" - + "\030\t \001(\0132-.google.cloud.dataproc.v1.Instan" - + "ceGroupConfigB\003\340A\001\022I\n\rworker_config\030\n \001(" - + "\0132-.google.cloud.dataproc.v1.InstanceGro" - + "upConfigB\003\340A\001\022S\n\027secondary_worker_config" - + "\030\014 \001(\0132-.google.cloud.dataproc.v1.Instan" - + "ceGroupConfigB\003\340A\001\022F\n\017software_config\030\r " - + "\001(\0132(.google.cloud.dataproc.v1.SoftwareC" - + "onfigB\003\340A\001\022W\n\026initialization_actions\030\013 \003" - + "(\01322.google.cloud.dataproc.v1.NodeInitia" - + "lizationActionB\003\340A\001\022J\n\021encryption_config" - + "\030\017 \001(\0132*.google.cloud.dataproc.v1.Encryp" - + "tionConfigB\003\340A\001\022L\n\022autoscaling_config\030\022 " - + "\001(\0132+.google.cloud.dataproc.v1.Autoscali" - + "ngConfigB\003\340A\001\022F\n\017security_config\030\020 \001(\0132(" - + ".google.cloud.dataproc.v1.SecurityConfig" - + "B\003\340A\001\022H\n\020lifecycle_config\030\021 \001(\0132).google" - + ".cloud.dataproc.v1.LifecycleConfigB\003\340A\001\022" - + "F\n\017endpoint_config\030\023 \001(\0132(.google.cloud." - + "dataproc.v1.EndpointConfigB\003\340A\001\"\272\001\n\016Endp" - + "ointConfig\022P\n\nhttp_ports\030\001 \003(\01327.google." - + "cloud.dataproc.v1.EndpointConfig.HttpPor" - + "tsEntryB\003\340A\003\022$\n\027enable_http_port_access\030" - + "\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021AutoscalingConfi" - + "g\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020Encryption" - + "Config\022 \n\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001" - + "\"\237\003\n\020GceClusterConfig\022\025\n\010zone_uri\030\001 \001(\tB" - + "\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n\016subnet" - + "work_uri\030\006 \001(\tB\003\340A\001\022\035\n\020internal_ip_only\030" - + "\007 \001(\010B\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001" - + "\022#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n" - + "\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.c" - + "loud.dataproc.v1.GceClusterConfig.Metada" - + "taEntry\022P\n\024reservation_affinity\030\013 \001(\0132-." - + "google.cloud.dataproc.v1.ReservationAffi" - + "nityB\003\340A\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"\315\004\n\023InstanceGroupConf" - + "ig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016instan" - + "ce_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\tB\003" - + "\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n\013di" - + "sk_config\030\005 \001(\0132$.google.cloud.dataproc." - + "v1.DiskConfigB\003\340A\001\022\033\n\016is_preemptible\030\006 \001" - + "(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<.google" - + ".cloud.dataproc.v1.InstanceGroupConfig.P" - + "reemptibilityB\003\340A\001\022O\n\024managed_group_conf" - + "ig\030\007 \001(\0132,.google.cloud.dataproc.v1.Mana" - + "gedGroupConfigB\003\340A\003\022F\n\014accelerators\030\010 \003(" - + "\0132+.google.cloud.dataproc.v1.Accelerator" - + "ConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t \001(\tB\003\340" - + "A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIBILITY_U" - + "NSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013PRE" - + "EMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026inst" - + "ance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033instanc" - + "e_group_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021Accel" - + "eratorConfig\022\034\n\024accelerator_type_uri\030\001 \001" - + "(\t\022\031\n\021accelerator_count\030\002 \001(\005\"f\n\nDiskCon" - + "fig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot" - + "_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_local_ss" - + "ds\030\002 \001(\005B\003\340A\001\"s\n\030NodeInitializationActio" - + "n\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021execu" - + "tion_timeout\030\002 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\"\204\003\n\rClusterStatus\022A\n\005state\030\001 " - + "\001(\0162-.google.cloud.dataproc.v1.ClusterSt" - + "atus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A\001\022" - + "9\n\020state_start_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620.g" - + "oogle.cloud.dataproc.v1.ClusterStatus.Su" - + "bstateB\003\340A\003\"V\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010CRE" - + "ATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010DELET" - + "ING\020\004\022\014\n\010UPDATING\020\005\"<\n\010Substate\022\017\n\013UNSPE" - + "CIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020" - + "\002\"S\n\016SecurityConfig\022A\n\017kerberos_config\030\001" - + " \001(\0132(.google.cloud.dataproc.v1.Kerberos" - + "Config\"\220\004\n\016KerberosConfig\022\034\n\017enable_kerb" - + "eros\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_passwo" - + "rd_uri\030\002 \001(\tB\003\340A\002\022\030\n\013kms_key_uri\030\003 \001(\tB\003" - + "\340A\002\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016trusts" - + "tore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_password" - + "_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(" - + "\tB\003\340A\001\022$\n\027truststore_password_uri\030\010 \001(\tB" - + "\003\340A\001\022$\n\027cross_realm_trust_realm\030\t \001(\tB\003\340" - + "A\001\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+" - + "\n\036cross_realm_trust_admin_server\030\013 \001(\tB\003" - + "\340A\001\0222\n%cross_realm_trust_shared_password" - + "_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB" - + "\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" - + "\005realm\030\017 \001(\tB\003\340A\001\"\371\001\n\016SoftwareConfig\022\032\n\r" - + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002" - + " \003(\01328.google.cloud.dataproc.v1.Software" - + "Config.PropertiesEntryB\003\340A\001\022E\n\023optional_" - + "components\030\003 \003(\0162#.google.cloud.dataproc" - + ".v1.ComponentB\003\340A\001\0321\n\017PropertiesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017Lifecy" - + "cleConfig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\022;\n\020auto_delet" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\001H\000\0228\n\017idle_start" - + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003B\005\n\003ttl\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_m" - + "etrics\030\001 \003(\01329.google.cloud.dataproc.v1." - + "ClusterMetrics.HdfsMetricsEntry\022O\n\014yarn_" - + "metrics\030\002 \003(\01329.google.cloud.dataproc.v1" - + ".ClusterMetrics.YarnMetricsEntry\0322\n\020Hdfs" - + "MetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" - + ":\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\003:\0028\001\"\226\001\n\024CreateClusterReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" - + "(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.google.cloud." - + "dataproc.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\npr" - + "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002" - + "\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003" - + " \001(\0132!.google.cloud.dataproc.v1.ClusterB" - + "\003\340A\002\022E\n\035graceful_decommission_timeout\030\006 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013u" - + "pdate_mask\030\004 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\223\001\n\024D" - + "eleteClusterRequest\022\027\n\nproject_id\030\001 \001(\tB" - + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_nam" - + "e\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022" - + "\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterRe" - + "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region" - + "\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211" - + "\001\n\023ListClustersRequest\022\027\n\nproject_id\030\001 \001" - + "(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005" - + " \001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" - + "e_token\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersRespon" - + "se\0228\n\010clusters\030\001 \003(\0132!.google.cloud.data" - + "proc.v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\n" - + "project_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340" - + "A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026Diagnos" - + "eClusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003" - + "\"\370\001\n\023ReservationAffinity\022Y\n\030consume_rese" - + "rvation_type\030\001 \001(\01622.google.cloud.datapr" - + "oc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003k" - + "ey\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Ty" - + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATI" - + "ON\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RE" - + "SERVATION\020\0032\377\014\n\021ClusterController\022\200\002\n\rCr" - + "eateCluster\022..google.cloud.dataproc.v1.C" - + "reateClusterRequest\032\035.google.longrunning" - + ".Operation\"\237\001\202\323\344\223\002>\"3/v1/projects/{proje" - + "ct_id}/regions/{region}/clusters:\007cluste" - + "r\332A\031project_id,region,cluster\312A<\n\007Cluste" - + "r\0221google.cloud.dataproc.v1.ClusterOpera" - + "tionMetadata\022\250\002\n\rUpdateCluster\022..google." - + "cloud.dataproc.v1.UpdateClusterRequest\032\035" - + ".google.longrunning.Operation\"\307\001\202\323\344\223\002M2B" - + "/v1/projects/{project_id}/regions/{regio" - + "n}/clusters/{cluster_name}:\007cluster\332A2pr" - + "oject_id,region,cluster_name,cluster,upd" - + "ate_mask\312A<\n\007Cluster\0221google.cloud.datap" - + "roc.v1.ClusterOperationMetadata\022\231\002\n\rDele" - + "teCluster\022..google.cloud.dataproc.v1.Del" - + "eteClusterRequest\032\035.google.longrunning.O" - + "peration\"\270\001\202\323\344\223\002D*B/v1/projects/{project" - + "_id}/regions/{region}/clusters/{cluster_" - + "name}\332A\036project_id,region,cluster_name\312A" - + "J\n\025google.protobuf.Empty\0221google.cloud.d" - + "ataproc.v1.ClusterOperationMetadata\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.Ge" - + "tClusterRequest\032!.google.cloud.dataproc." - + "v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{projec" - + "t_id}/regions/{region}/clusters/{cluster" - + "_name}\332A\036project_id,region,cluster_name\022" - + "\331\001\n\014ListClusters\022-.google.cloud.dataproc" - + ".v1.ListClustersRequest\032..google.cloud.d" - + "ataproc.v1.ListClustersResponse\"j\202\323\344\223\0025\022" - + "3/v1/projects/{project_id}/regions/{regi" - + "on}/clusters\332A\021project_id,region\332A\030proje" - + "ct_id,region,filter\022\252\002\n\017DiagnoseCluster\022" - + "0.google.cloud.dataproc.v1.DiagnoseClust" - + "erRequest\032\035.google.longrunning.Operation" - + "\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_id}/reg" - + "ions/{region}/clusters/{cluster_name}:di" - + "agnose:\001*\332A\036project_id,region,cluster_na" - + "me\312AK\n\026DiagnoseClusterResults\0221google.cl" - + "oud.dataproc.v1.ClusterOperationMetadata" - + "\032K\312A\027dataproc.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBq\n" - + "\034com.google.cloud.dataproc.v1B\rClustersP" - + "rotoP\001Z@google.golang.org/genproto/googl" - + "eapis/cloud/dataproc/v1;dataprocb\006proto3" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032%google/cloud/dat" + + "aproc/v1/shared.proto\032#google/longrunnin" + + "g/operations.proto\032\036google/protobuf/dura" + + "tion.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\315\003" + + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + + "google.cloud.dataproc.v1.ClusterConfigB\003" + + "\340A\002\022B\n\006labels\030\010 \003(\0132-.google.cloud.datap" + + "roc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006statu" + + "s\030\004 \001(\0132\'.google.cloud.dataproc.v1.Clust" + + "erStatusB\003\340A\003\022D\n\016status_history\030\007 \003(\0132\'." + + "google.cloud.dataproc.v1.ClusterStatusB\003" + + "\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007metric" + + "s\030\t \001(\0132(.google.cloud.dataproc.v1.Clust" + + "erMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\251\010\n\rClusterConfig\022" + + "\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_buck" + + "et\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config\030\010 \001(" + + "\0132*.google.cloud.dataproc.v1.GceClusterC" + + "onfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-.goog" + + "le.cloud.dataproc.v1.InstanceGroupConfig" + + "B\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.google.cl" + + "oud.dataproc.v1.InstanceGroupConfigB\003\340A\001" + + "\022S\n\027secondary_worker_config\030\014 \001(\0132-.goog" + + "le.cloud.dataproc.v1.InstanceGroupConfig" + + "B\003\340A\001\022F\n\017software_config\030\r \001(\0132(.google." + + "cloud.dataproc.v1.SoftwareConfigB\003\340A\001\022W\n" + + "\026initialization_actions\030\013 \003(\01322.google.c" + + "loud.dataproc.v1.NodeInitializationActio" + + "nB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*.goog" + + "le.cloud.dataproc.v1.EncryptionConfigB\003\340" + + "A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.google." + + "cloud.dataproc.v1.AutoscalingConfigB\003\340A\001" + + "\022F\n\017security_config\030\020 \001(\0132(.google.cloud" + + ".dataproc.v1.SecurityConfigB\003\340A\001\022H\n\020life" + + "cycle_config\030\021 \001(\0132).google.cloud.datapr" + + "oc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpoint_c" + + "onfig\030\023 \001(\0132(.google.cloud.dataproc.v1.E" + + "ndpointConfigB\003\340A\001\022H\n\020metastore_config\030\024" + + " \001(\0132).google.cloud.dataproc.v1.Metastor" + + "eConfigB\003\340A\001\022K\n\022gke_cluster_config\030\025 \001(\013" + + "2*.google.cloud.dataproc.v1.GkeClusterCo" + + "nfigB\003\340A\001\"\223\002\n\020GkeClusterConfig\022w\n namesp" + + "aced_gke_deployment_target\030\001 \001(\0132H.googl" + + "e.cloud.dataproc.v1.GkeClusterConfig.Nam" + + "espacedGkeDeploymentTargetB\003\340A\001\032\205\001\n\035Name" + + "spacedGkeDeploymentTarget\022D\n\022target_gke_" + + "cluster\030\001 \001(\tB(\340A\001\372A\"\n container.googlea" + + "pis.com/Cluster\022\036\n\021cluster_namespace\030\002 \001" + + "(\tB\003\340A\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports" + + "\030\001 \003(\01327.google.cloud.dataproc.v1.Endpoi" + + "ntConfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_h" + + "ttp_port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021" + + "AutoscalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340" + + "A\001\"4\n\020EncryptionConfig\022 \n\023gce_pd_kms_key" + + "_name\030\001 \001(\tB\003\340A\001\"\272\006\n\020GceClusterConfig\022\025\n" + + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(" + + "\tB\003\340A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020i" + + "nternal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ip" + + "v6_google_access\030\014 \001(\0162B.google.cloud.da" + + "taproc.v1.GceClusterConfig.PrivateIpv6Go" + + "ogleAccessB\003\340A\001\022\034\n\017service_account\030\010 \001(\t" + + "B\003\340A\001\022#\n\026service_account_scopes\030\003 \003(\tB\003\340" + + "A\001\022\014\n\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.goo" + + "gle.cloud.dataproc.v1.GceClusterConfig.M" + + "etadataEntry\022P\n\024reservation_affinity\030\013 \001" + + "(\0132-.google.cloud.dataproc.v1.Reservatio" + + "nAffinityB\003\340A\001\022M\n\023node_group_affinity\030\r " + + "\001(\0132+.google.cloud.dataproc.v1.NodeGroup" + + "AffinityB\003\340A\001\022W\n\030shielded_instance_confi" + + "g\030\016 \001(\01320.google.cloud.dataproc.v1.Shiel" + + "dedInstanceConfigB\003\340A\001\032/\n\rMetadataEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001\n\027Priv" + + "ateIpv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOG" + + "LE_ACCESS_UNSPECIFIED\020\000\022\033\n\027INHERIT_FROM_" + + "SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDIRECTIO" + + "NAL\020\003\"0\n\021NodeGroupAffinity\022\033\n\016node_group" + + "_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedInstanceConfi" + + "g\022\037\n\022enable_secure_boot\030\001 \001(\010B\003\340A\001\022\030\n\013en" + + "able_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enable_integrity" + + "_monitoring\030\003 \001(\010B\003\340A\001\"\315\004\n\023InstanceGroup" + + "Config\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016in" + + "stance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001" + + "(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>" + + "\n\013disk_config\030\005 \001(\0132$.google.cloud.datap" + + "roc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemptible" + + "\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<.go" + + "ogle.cloud.dataproc.v1.InstanceGroupConf" + + "ig.PreemptibilityB\003\340A\001\022O\n\024managed_group_" + + "config\030\007 \001(\0132,.google.cloud.dataproc.v1." + + "ManagedGroupConfigB\003\340A\003\022F\n\014accelerators\030" + + "\010 \003(\0132+.google.cloud.dataproc.v1.Acceler" + + "atorConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t \001(" + + "\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIBILI" + + "TY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n" + + "\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026" + + "instance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033ins" + + "tance_group_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021A" + + "cceleratorConfig\022\034\n\024accelerator_type_uri" + + "\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"f\n\nDis" + + "kConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021" + + "boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_loca" + + "l_ssds\030\002 \001(\005B\003\340A\001\"s\n\030NodeInitializationA" + + "ction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021e" + + "xecution_timeout\030\002 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\"\255\003\n\rClusterStatus\022A\n\005stat" + + "e\030\001 \001(\0162-.google.cloud.dataproc.v1.Clust" + + "erStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003" + + "\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\016" + + "20.google.cloud.dataproc.v1.ClusterStatu" + + "s.SubstateB\003\340A\003\"\177\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n" + + "\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010D" + + "ELETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n" + + "\007STOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013" + + "UNSPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_ST" + + "ATUS\020\002\"\240\001\n\016SecurityConfig\022F\n\017kerberos_co" + + "nfig\030\001 \001(\0132(.google.cloud.dataproc.v1.Ke" + + "rberosConfigB\003\340A\001\022F\n\017identity_config\030\002 \001" + + "(\0132(.google.cloud.dataproc.v1.IdentityCo" + + "nfigB\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017enable_k" + + "erberos\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_pas" + + "sword_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(" + + "\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016tru" + + "ststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_passw" + + "ord_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007" + + " \001(\tB\003\340A\001\022$\n\027truststore_password_uri\030\010 \001" + + "(\tB\003\340A\001\022$\n\027cross_realm_trust_realm\030\t \001(\t" + + "B\003\340A\001\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003\340A" + + "\001\022+\n\036cross_realm_trust_admin_server\030\013 \001(" + + "\tB\003\340A\001\0222\n%cross_realm_trust_shared_passw" + + "ord_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001" + + "(\tB\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001" + + "\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022" + + "r\n\034user_service_account_mapping\030\001 \003(\0132G." + + "google.cloud.dataproc.v1.IdentityConfig." + + "UserServiceAccountMappingEntryB\003\340A\002\032@\n\036U" + + "serServiceAccountMappingEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig" + + "\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022Q\n\nproperti" + + "es\030\002 \003(\01328.google.cloud.dataproc.v1.Soft" + + "wareConfig.PropertiesEntryB\003\340A\001\022E\n\023optio" + + "nal_components\030\003 \003(\0162#.google.cloud.data" + + "proc.v1.ComponentB\003\340A\001\0321\n\017PropertiesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017Li" + + "fecycleConfig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031" + + ".google.protobuf.DurationB\003\340A\001\022;\n\020auto_d" + + "elete_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001H\000\0228\n\017idle_s" + + "tart_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022L\n\032da" + + "taproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n " + + "metastore.googleapis.com/Service\"\232\002\n\016Clu" + + "sterMetrics\022O\n\014hdfs_metrics\030\001 \003(\01329.goog" + + "le.cloud.dataproc.v1.ClusterMetrics.Hdfs" + + "MetricsEntry\022O\n\014yarn_metrics\030\002 \003(\01329.goo" + + "gle.cloud.dataproc.v1.ClusterMetrics.Yar" + + "nMetricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetrics" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\226\001" + + "\n\024CreateClusterRequest\022\027\n\nproject_id\030\001 \001" + + "(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030" + + "\002 \001(\0132!.google.cloud.dataproc.v1.Cluster" + + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\256\002\n\024Updat" + + "eClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" + + "\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 " + + "\001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cloud" + + ".dataproc.v1.ClusterB\003\340A\002\022E\n\035graceful_de" + + "commission_timeout\030\006 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\022\027\n\nreques" + + "t_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterRequest\022\027" + + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB" + + "\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014clust" + + "er_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003" + + "\340A\001\"\222\001\n\023StartClusterRequest\022\027\n\nproject_i" + + "d\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clu" + + "ster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001" + + "(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024Del" + + "eteClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030" + + "\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n" + + "\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterRequ" + + "est\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003" + + " \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n" + + "\023ListClustersRequest\022\027\n\nproject_id\030\001 \001(\t" + + "B\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001" + + "(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersResponse" + + "\0228\n\010clusters\030\001 \003(\0132!.google.cloud.datapr" + + "oc.v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 " + + "\001(\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\npr" + + "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002" + + "\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseC" + + "lusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370" + + "\001\n\023ReservationAffinity\022Y\n\030consume_reserv" + + "ation_type\030\001 \001(\01622.google.cloud.dataproc" + + ".v1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003key" + + "\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type" + + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION" + + "\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESE" + + "RVATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rCrea" + + "teCluster\022..google.cloud.dataproc.v1.Cre" + + "ateClusterRequest\032\035.google.longrunning.O" + + "peration\"\237\001\202\323\344\223\002>\"3/v1/projects/{project" + + "_id}/regions/{region}/clusters:\007cluster\332" + + "A\031project_id,region,cluster\312A<\n\007Cluster\022" + + "1google.cloud.dataproc.v1.ClusterOperati" + + "onMetadata\022\250\002\n\rUpdateCluster\022..google.cl" + + "oud.dataproc.v1.UpdateClusterRequest\032\035.g" + + "oogle.longrunning.Operation\"\307\001\202\323\344\223\002M2B/v" + + "1/projects/{project_id}/regions/{region}" + + "/clusters/{cluster_name}:\007cluster\332A2proj" + + "ect_id,region,cluster_name,cluster,updat" + + "e_mask\312A<\n\007Cluster\0221google.cloud.datapro" + + "c.v1.ClusterOperationMetadata\022\356\001\n\013StopCl" + + "uster\022,.google.cloud.dataproc.v1.StopClu" + + "sterRequest\032\035.google.longrunning.Operati" + + "on\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id}/r" + + "egions/{region}/clusters/{cluster_name}:" + + "stop:\001*\312A<\n\007Cluster\0221google.cloud.datapr" + + "oc.v1.ClusterOperationMetadata\022\361\001\n\014Start" + + "Cluster\022-.google.cloud.dataproc.v1.Start" + + "ClusterRequest\032\035.google.longrunning.Oper" + + "ation\"\222\001\202\323\344\223\002M\"H/v1/projects/{project_id" + + "}/regions/{region}/clusters/{cluster_nam" + + "e}:start:\001*\312A<\n\007Cluster\0221google.cloud.da" + + "taproc.v1.ClusterOperationMetadata\022\231\002\n\rD" + + "eleteCluster\022..google.cloud.dataproc.v1." + + "DeleteClusterRequest\032\035.google.longrunnin" + + "g.Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{proj" + + "ect_id}/regions/{region}/clusters/{clust" + + "er_name}\332A\036project_id,region,cluster_nam" + + "e\312AJ\n\025google.protobuf.Empty\0221google.clou" + + "d.dataproc.v1.ClusterOperationMetadata\022\311" + + "\001\n\nGetCluster\022+.google.cloud.dataproc.v1" + + ".GetClusterRequest\032!.google.cloud.datapr" + + "oc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{pro" + + "ject_id}/regions/{region}/clusters/{clus" + + "ter_name}\332A\036project_id,region,cluster_na" + + "me\022\331\001\n\014ListClusters\022-.google.cloud.datap" + + "roc.v1.ListClustersRequest\032..google.clou" + + "d.dataproc.v1.ListClustersResponse\"j\202\323\344\223" + + "\0025\0223/v1/projects/{project_id}/regions/{r" + + "egion}/clusters\332A\021project_id,region\332A\030pr" + + "oject_id,region,filter\022\252\002\n\017DiagnoseClust" + + "er\0220.google.cloud.dataproc.v1.DiagnoseCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_id}/" + + "regions/{region}/clusters/{cluster_name}" + + ":diagnose:\001*\332A\036project_id,region,cluster" + + "_name\312AK\n\026DiagnoseClusterResults\0221google" + + ".cloud.dataproc.v1.ClusterOperationMetad" + + "ata\032K\312A\027dataproc.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\263\002\n\034com.google.cloud.dataproc.v1B\rClust" + + "ersProtoP\001Z@google.golang.org/genproto/g" + + "oogleapis/cloud/dataproc/v1;dataproc\352A^\n" + + " container.googleapis.com/Cluster\022:proje" + + "cts/{project}/locations/{location}/clust" + + "ers/{cluster}\352A^\n metastore.googleapis.c" + + "om/Service\022:projects/{project}/locations" + + "/{location}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -381,6 +478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.dataproc.v1.SharedProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -429,9 +527,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecurityConfig", "LifecycleConfig", "EndpointConfig", + "MetastoreConfig", + "GkeClusterConfig", }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, + new java.lang.String[] { + "NamespacedGkeDeploymentTarget", + }); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor = + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor, + new java.lang.String[] { + "TargetGkeCluster", "ClusterNamespace", + }); + internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, @@ -447,7 +565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, @@ -455,7 +573,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PolicyUri", }); internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, @@ -463,7 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcePdKmsKeyName", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, @@ -472,11 +590,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", "SubnetworkUri", "InternalIpOnly", + "PrivateIpv6GoogleAccess", "ServiceAccount", "ServiceAccountScopes", "Tags", "Metadata", "ReservationAffinity", + "NodeGroupAffinity", + "ShieldedInstanceConfig", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor @@ -488,8 +609,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, + new java.lang.String[] { + "NodeGroupUri", + }); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, @@ -506,7 +643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinCpuPlatform", }); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, @@ -514,7 +651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplateName", "InstanceGroupManagerName", }); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, @@ -522,7 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorTypeUri", "AcceleratorCount", }); internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, @@ -530,7 +667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -538,7 +675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -546,15 +683,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, new java.lang.String[] { - "KerberosConfig", + "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -575,8 +712,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TgtLifetimeHours", "Realm", }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, + new java.lang.String[] { + "UserServiceAccountMapping", + }); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = + internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -592,15 +745,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, new java.lang.String[] { "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", }); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, + new java.lang.String[] { + "DataprocMetastoreService", + }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -624,7 +785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -632,7 +793,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -645,8 +806,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "RequestId", }); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", + }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -654,7 +831,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -662,7 +839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -670,7 +847,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -678,7 +855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -686,7 +863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -694,7 +871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, @@ -708,12 +885,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java index 8a8254b3..1f8afa86 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java @@ -23,6 +23,7 @@ * *
  * Cluster components that can be activated.
+ * Next ID: 16.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Component} @@ -42,12 +43,56 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The Anaconda python distribution.
+   * The Anaconda python distribution. The Anaconda component is not supported
+   * in the Dataproc
+   * <a
+   * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0">2.0
+   * image</a>. The 2.0 image is pre-installed with Miniconda.
    * 
* * ANACONDA = 5; */ ANACONDA(5), + /** + * + * + *
+   * Docker
+   * 
+ * + * DOCKER = 13; + */ + DOCKER(13), + /** + * + * + *
+   * The Druid query engine. (alpha)
+   * 
+ * + * DRUID = 9; + */ + DRUID(9), + /** + * + * + *
+   * Flink
+   * 
+ * + * FLINK = 14; + */ + FLINK(14), + /** + * + * + *
+   * HBase. (beta)
+   * 
+ * + * HBASE = 11; + */ + HBASE(11), /** * * @@ -78,6 +123,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * PRESTO = 6; */ PRESTO(6), + /** + * + * + *
+   * The Ranger service.
+   * 
+ * + * RANGER = 12; + */ + RANGER(12), + /** + * + * + *
+   * The Solr service.
+   * 
+ * + * SOLR = 10; + */ + SOLR(10), /** * * @@ -115,12 +180,56 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The Anaconda python distribution.
+   * The Anaconda python distribution. The Anaconda component is not supported
+   * in the Dataproc
+   * <a
+   * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0">2.0
+   * image</a>. The 2.0 image is pre-installed with Miniconda.
    * 
* * ANACONDA = 5; */ public static final int ANACONDA_VALUE = 5; + /** + * + * + *
+   * Docker
+   * 
+ * + * DOCKER = 13; + */ + public static final int DOCKER_VALUE = 13; + /** + * + * + *
+   * The Druid query engine. (alpha)
+   * 
+ * + * DRUID = 9; + */ + public static final int DRUID_VALUE = 9; + /** + * + * + *
+   * Flink
+   * 
+ * + * FLINK = 14; + */ + public static final int FLINK_VALUE = 14; + /** + * + * + *
+   * HBase. (beta)
+   * 
+ * + * HBASE = 11; + */ + public static final int HBASE_VALUE = 11; /** * * @@ -151,6 +260,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * PRESTO = 6; */ public static final int PRESTO_VALUE = 6; + /** + * + * + *
+   * The Ranger service.
+   * 
+ * + * RANGER = 12; + */ + public static final int RANGER_VALUE = 12; + /** + * + * + *
+   * The Solr service.
+   * 
+ * + * SOLR = 10; + */ + public static final int SOLR_VALUE = 10; /** * * @@ -200,12 +329,24 @@ public static Component forNumber(int value) { return COMPONENT_UNSPECIFIED; case 5: return ANACONDA; + case 13: + return DOCKER; + case 9: + return DRUID; + case 14: + return FLINK; + case 11: + return HBASE; case 3: return HIVE_WEBHCAT; case 1: return JUPYTER; case 6: return PRESTO; + case 12: + return RANGER; + case 10: + return SOLR; case 4: return ZEPPELIN; case 8: diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java index 96d8fb87..dbb97c33 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java @@ -298,9 +298,9 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { * * *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * Optional. A unique id used to identify the request. If the server receives two
+   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -329,9 +329,9 @@ public java.lang.String getRequestId() {
    *
    *
    * 
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * Optional. A unique id used to identify the request. If the server receives two
+   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -1160,9 +1160,9 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() {
      *
      *
      * 
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * Optional. A unique id used to identify the request. If the server receives two
+     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1190,9 +1190,9 @@ public java.lang.String getRequestId() {
      *
      *
      * 
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * Optional. A unique id used to identify the request. If the server receives two
+     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1220,9 +1220,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      *
      * 
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * Optional. A unique id used to identify the request. If the server receives two
+     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1249,9 +1249,9 @@ public Builder setRequestId(java.lang.String value) {
      *
      *
      * 
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * Optional. A unique id used to identify the request. If the server receives two
+     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1274,9 +1274,9 @@ public Builder clearRequestId() {
      *
      *
      * 
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * Optional. A unique id used to identify the request. If the server receives two
+     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java
index 699e931a..9e5a0bdd 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java
@@ -117,9 +117,9 @@ public interface CreateClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * Optional. A unique id used to identify the request. If the server receives two
+   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -137,9 +137,9 @@ public interface CreateClusterRequestOrBuilder
    *
    *
    * 
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * Optional. A unique id used to identify the request. If the server receives two
+   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
index cb49ccee..0ae15440 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
@@ -350,8 +350,9 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -381,8 +382,9 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -1230,8 +1232,9 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -1260,8 +1263,9 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -1290,8 +1294,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -1319,8 +1324,9 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -1344,8 +1350,9 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java
index 532cf74d..04b305eb 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java
@@ -132,8 +132,9 @@ public interface DeleteClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -152,8 +153,9 @@ public interface DeleteClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
index 60cd4baf..4e39c6bc 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
@@ -128,8 +128,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * 
    * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+   * "pd-ssd" (Persistent Disk Solid State Drive),
+   * or "pd-standard" (Persistent Disk Hard Disk Drive).
+   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,8 +155,10 @@ public java.lang.String getBootDiskType() { * *
    * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+   * "pd-ssd" (Persistent Disk Solid State Drive),
+   * or "pd-standard" (Persistent Disk Hard Disk Drive).
+   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -566,8 +570,10 @@ public Builder mergeFrom( * *
      * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+     * "pd-ssd" (Persistent Disk Solid State Drive),
+     * or "pd-standard" (Persistent Disk Hard Disk Drive).
+     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -590,8 +596,10 @@ public java.lang.String getBootDiskType() { * *
      * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+     * "pd-ssd" (Persistent Disk Solid State Drive),
+     * or "pd-standard" (Persistent Disk Hard Disk Drive).
+     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -614,8 +622,10 @@ public com.google.protobuf.ByteString getBootDiskTypeBytes() { * *
      * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+     * "pd-ssd" (Persistent Disk Solid State Drive),
+     * or "pd-standard" (Persistent Disk Hard Disk Drive).
+     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -637,8 +647,10 @@ public Builder setBootDiskType(java.lang.String value) { * *
      * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+     * "pd-ssd" (Persistent Disk Solid State Drive),
+     * or "pd-standard" (Persistent Disk Hard Disk Drive).
+     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -656,8 +668,10 @@ public Builder clearBootDiskType() { * *
      * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
+     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+     * "pd-ssd" (Persistent Disk Solid State Drive),
+     * or "pd-standard" (Persistent Disk Hard Disk Drive).
+     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
      * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index df7d411f..fb52a5c3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -28,8 +28,10 @@ public interface DiskConfigOrBuilder * *
    * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+   * "pd-ssd" (Persistent Disk Solid State Drive),
+   * or "pd-standard" (Persistent Disk Hard Disk Drive).
+   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -42,8 +44,10 @@ public interface DiskConfigOrBuilder * *
    * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
+   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
+   * "pd-ssd" (Persistent Disk Solid State Drive),
+   * or "pd-standard" (Persistent Disk Hard Disk Drive).
+   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
    * 
* * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 9ec84a3d..3a5f8034 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -42,6 +42,7 @@ private GceClusterConfig() { zoneUri_ = ""; networkUri_ = ""; subnetworkUri_ = ""; + privateIpv6GoogleAccess_ = 0; serviceAccount_ = ""; serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -159,6 +160,46 @@ private GceClusterConfig( reservationAffinity_ = subBuilder.buildPartial(); } + break; + } + case 96: + { + int rawValue = input.readEnum(); + + privateIpv6GoogleAccess_ = rawValue; + break; + } + case 106: + { + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder subBuilder = null; + if (nodeGroupAffinity_ != null) { + subBuilder = nodeGroupAffinity_.toBuilder(); + } + nodeGroupAffinity_ = + input.readMessage( + com.google.cloud.dataproc.v1.NodeGroupAffinity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeGroupAffinity_); + nodeGroupAffinity_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder subBuilder = null; + if (shieldedInstanceConfig_ != null) { + subBuilder = shieldedInstanceConfig_.toBuilder(); + } + shieldedInstanceConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedInstanceConfig_); + shieldedInstanceConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -212,6 +253,202 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class); } + /** + * + * + *
+   * `PrivateIpv6GoogleAccess` controls whether and how Dataproc cluster nodes
+   * can communicate with Google Services through gRPC over IPv6.
+   * These values are directly mapped to corresponding values in the
+   * [Compute Engine Instance
+   * fields](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess} + */ + public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * If unspecified, Compute Engine default behavior will apply, which
+     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
+     * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), + /** + * + * + *
+     * Private access to and from Google Services configuration
+     * inherited from the subnetwork configuration. This is the
+     * default Compute Engine behavior.
+     * 
+ * + * INHERIT_FROM_SUBNETWORK = 1; + */ + INHERIT_FROM_SUBNETWORK(1), + /** + * + * + *
+     * Enables outbound private IPv6 access to Google Services from the Dataproc
+     * cluster.
+     * 
+ * + * OUTBOUND = 2; + */ + OUTBOUND(2), + /** + * + * + *
+     * Enables bidirectional private IPv6 access between Google Services and the
+     * Dataproc cluster.
+     * 
+ * + * BIDIRECTIONAL = 3; + */ + BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * If unspecified, Compute Engine default behavior will apply, which
+     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
+     * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Private access to and from Google Services configuration
+     * inherited from the subnetwork configuration. This is the
+     * default Compute Engine behavior.
+     * 
+ * + * INHERIT_FROM_SUBNETWORK = 1; + */ + public static final int INHERIT_FROM_SUBNETWORK_VALUE = 1; + /** + * + * + *
+     * Enables outbound private IPv6 access to Google Services from the Dataproc
+     * cluster.
+     * 
+ * + * OUTBOUND = 2; + */ + public static final int OUTBOUND_VALUE = 2; + /** + * + * + *
+     * Enables bidirectional private IPv6 access between Google Services and the
+     * Dataproc cluster.
+     * 
+ * + * BIDIRECTIONAL = 3; + */ + public static final int BIDIRECTIONAL_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 PrivateIpv6GoogleAccess 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 PrivateIpv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: + return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: + return INHERIT_FROM_SUBNETWORK; + case 2: + return OUTBOUND; + case 3: + return BIDIRECTIONAL; + 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 PrivateIpv6GoogleAccess findValueByNumber(int number) { + return PrivateIpv6GoogleAccess.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.dataproc.v1.GceClusterConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final PrivateIpv6GoogleAccess[] VALUES = values(); + + public static PrivateIpv6GoogleAccess 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 PrivateIpv6GoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess) + } + public static final int ZONE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object zoneUri_; /** @@ -426,6 +663,50 @@ public boolean getInternalIpOnly() { return internalIpOnly_; } + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_; + /** + * + * + *
+   * Optional. The type of IPv6 access for a cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+   * Optional. The type of IPv6 access for a cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( + privateIpv6GoogleAccess_); + return result == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED + : result; + } + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; private volatile java.lang.Object serviceAccount_; /** @@ -825,6 +1106,118 @@ public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() return getReservationAffinity(); } + public static final int NODE_GROUP_AFFINITY_FIELD_NUMBER = 13; + private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeGroupAffinity field is set. + */ + @java.lang.Override + public boolean hasNodeGroupAffinity() { + return nodeGroupAffinity_ != null; + } + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeGroupAffinity. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; + } + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { + return getNodeGroupAffinity(); + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 14; + private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -866,6 +1259,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reservationAffinity_ != null) { output.writeMessage(11, getReservationAffinity()); } + if (privateIpv6GoogleAccess_ + != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, privateIpv6GoogleAccess_); + } + if (nodeGroupAffinity_ != null) { + output.writeMessage(13, getNodeGroupAffinity()); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(14, getShieldedInstanceConfig()); + } unknownFields.writeTo(output); } @@ -920,6 +1325,19 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); } + if (privateIpv6GoogleAccess_ + != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); + } + if (nodeGroupAffinity_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -940,6 +1358,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNetworkUri().equals(other.getNetworkUri())) return false; if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; if (getInternalIpOnly() != other.getInternalIpOnly()) return false; + if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; if (!getTagsList().equals(other.getTagsList())) return false; @@ -948,6 +1367,14 @@ public boolean equals(final java.lang.Object obj) { if (hasReservationAffinity()) { if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; } + if (hasNodeGroupAffinity() != other.hasNodeGroupAffinity()) return false; + if (hasNodeGroupAffinity()) { + if (!getNodeGroupAffinity().equals(other.getNodeGroupAffinity())) return false; + } + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,6 +1394,8 @@ public int hashCode() { hash = (53 * hash) + getSubnetworkUri().hashCode(); hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); + hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + privateIpv6GoogleAccess_; hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); if (getServiceAccountScopesCount() > 0) { @@ -985,6 +1414,14 @@ public int hashCode() { hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; hash = (53 * hash) + getReservationAffinity().hashCode(); } + if (hasNodeGroupAffinity()) { + hash = (37 * hash) + NODE_GROUP_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupAffinity().hashCode(); + } + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1159,6 +1596,8 @@ public Builder clear() { internalIpOnly_ = false; + privateIpv6GoogleAccess_ = 0; + serviceAccount_ = ""; serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1172,6 +1611,18 @@ public Builder clear() { reservationAffinity_ = null; reservationAffinityBuilder_ = null; } + if (nodeGroupAffinityBuilder_ == null) { + nodeGroupAffinity_ = null; + } else { + nodeGroupAffinity_ = null; + nodeGroupAffinityBuilder_ = null; + } + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } return this; } @@ -1204,6 +1655,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() { result.networkUri_ = networkUri_; result.subnetworkUri_ = subnetworkUri_; result.internalIpOnly_ = internalIpOnly_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; result.serviceAccount_ = serviceAccount_; if (((bitField0_ & 0x00000001) != 0)) { serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); @@ -1222,6 +1674,16 @@ public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() { } else { result.reservationAffinity_ = reservationAffinityBuilder_.build(); } + if (nodeGroupAffinityBuilder_ == null) { + result.nodeGroupAffinity_ = nodeGroupAffinity_; + } else { + result.nodeGroupAffinity_ = nodeGroupAffinityBuilder_.build(); + } + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1286,6 +1748,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.getInternalIpOnly() != false) { setInternalIpOnly(other.getInternalIpOnly()); } + if (other.privateIpv6GoogleAccess_ != 0) { + setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); + } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; onChanged(); @@ -1314,6 +1779,12 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.hasReservationAffinity()) { mergeReservationAffinity(other.getReservationAffinity()); } + if (other.hasNodeGroupAffinity()) { + mergeNodeGroupAffinity(other.getNodeGroupAffinity()); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1840,26 +2311,132 @@ public Builder clearInternalIpOnly() { return this; } - private java.lang.Object serviceAccount_ = ""; + private int privateIpv6GoogleAccess_ = 0; /** * * *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
+     * Optional. The type of IPv6 access for a cluster.
      * 
* - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The serviceAccount. + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+     * Optional. The type of IPv6 access for a cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccessValue(int value) { + + privateIpv6GoogleAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of IPv6 access for a cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( + privateIpv6GoogleAccess_); + return result == null + ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The type of IPv6 access for a cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccess( + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + privateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of IPv6 access for a cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrivateIpv6GoogleAccess() { + + privateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * Optional. The [Dataproc service
+     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
+     * (also see [VM Data Plane
+     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
+     * used by Dataproc cluster VM instances to access Google Cloud Platform
+     * services.
+     * If not specified, the
+     * [Compute Engine default service
+     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
+     * is used.
+     * 
+ * + * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; @@ -2814,6 +3391,428 @@ public Builder clearReservationAffinity() { return reservationAffinityBuilder_; } + private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> + nodeGroupAffinityBuilder_; + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeGroupAffinity field is set. + */ + public boolean hasNodeGroupAffinity() { + return nodeGroupAffinityBuilder_ != null || nodeGroupAffinity_ != null; + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeGroupAffinity. + */ + public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { + if (nodeGroupAffinityBuilder_ == null) { + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; + } else { + return nodeGroupAffinityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { + if (nodeGroupAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeGroupAffinity_ = value; + onChanged(); + } else { + nodeGroupAffinityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeGroupAffinity( + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder builderForValue) { + if (nodeGroupAffinityBuilder_ == null) { + nodeGroupAffinity_ = builderForValue.build(); + onChanged(); + } else { + nodeGroupAffinityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { + if (nodeGroupAffinityBuilder_ == null) { + if (nodeGroupAffinity_ != null) { + nodeGroupAffinity_ = + com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeGroupAffinity_ = value; + } + onChanged(); + } else { + nodeGroupAffinityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodeGroupAffinity() { + if (nodeGroupAffinityBuilder_ == null) { + nodeGroupAffinity_ = null; + onChanged(); + } else { + nodeGroupAffinity_ = null; + nodeGroupAffinityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder getNodeGroupAffinityBuilder() { + + onChanged(); + return getNodeGroupAffinityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { + if (nodeGroupAffinityBuilder_ != null) { + return nodeGroupAffinityBuilder_.getMessageOrBuilder(); + } else { + return nodeGroupAffinity_ == null + ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() + : nodeGroupAffinity_; + } + } + /** + * + * + *
+     * Optional. Node Group Affinity for sole-tenant clusters.
+     * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> + getNodeGroupAffinityFieldBuilder() { + if (nodeGroupAffinityBuilder_ == null) { + nodeGroupAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.NodeGroupAffinity, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( + getNodeGroupAffinity(), getParentForChildren(), isClean()); + nodeGroupAffinity_ = null; + } + return nodeGroupAffinityBuilder_; + } + + private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShieldedInstanceConfig( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setShieldedInstanceConfig( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeShieldedInstanceConfig( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ShieldedInstanceConfig, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index 047c0eab..2ab99951 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -160,6 +160,36 @@ public interface GceClusterConfigOrBuilder */ boolean getInternalIpOnly(); + /** + * + * + *
+   * Optional. The type of IPv6 access for a cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + int getPrivateIpv6GoogleAccessValue(); + /** + * + * + *
+   * Optional. The type of IPv6 access for a cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateIpv6GoogleAccess. + */ + com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess + getPrivateIpv6GoogleAccess(); + /** * * @@ -457,4 +487,89 @@ public interface GceClusterConfigOrBuilder * */ com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeGroupAffinity field is set. + */ + boolean hasNodeGroupAffinity(); + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeGroupAffinity. + */ + com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity(); + /** + * + * + *
+   * Optional. Node Group Affinity for sole-tenant clusters.
+   * 
+ * + * + * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder(); + + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The shieldedInstanceConfig. + */ + com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + * + * + *
+   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java new file mode 100644 index 00000000..dba308fa --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java @@ -0,0 +1,1690 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * The GKE config for this cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} + */ +public final class GkeClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig) + GkeClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeClusterConfig.newBuilder() to construct. + private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeClusterConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeClusterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeClusterConfig( + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder + subBuilder = null; + if (namespacedGkeDeploymentTarget_ != null) { + subBuilder = namespacedGkeDeploymentTarget_.toBuilder(); + } + namespacedGkeDeploymentTarget_ = + input.readMessage( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(namespacedGkeDeploymentTarget_); + namespacedGkeDeploymentTarget_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeClusterConfig.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + } + + public interface NamespacedGkeDeploymentTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The target GKE cluster to deploy to.
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The targetGkeCluster. + */ + java.lang.String getTargetGkeCluster(); + /** + * + * + *
+     * Optional. The target GKE cluster to deploy to.
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetGkeCluster. + */ + com.google.protobuf.ByteString getTargetGkeClusterBytes(); + + /** + * + * + *
+     * Optional. A namespace within the GKE cluster to deploy into.
+     * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamespace. + */ + java.lang.String getClusterNamespace(); + /** + * + * + *
+     * Optional. A namespace within the GKE cluster to deploy into.
+     * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamespace. + */ + com.google.protobuf.ByteString getClusterNamespaceBytes(); + } + /** + * + * + *
+   * A full, namespace-isolated deployment target for an existing GKE cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget} + */ + public static final class NamespacedGkeDeploymentTarget + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + NamespacedGkeDeploymentTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamespacedGkeDeploymentTarget.newBuilder() to construct. + private NamespacedGkeDeploymentTarget( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NamespacedGkeDeploymentTarget() { + targetGkeCluster_ = ""; + clusterNamespace_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NamespacedGkeDeploymentTarget(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NamespacedGkeDeploymentTarget( + 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(); + + targetGkeCluster_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterNamespace_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder + .class); + } + + public static final int TARGET_GKE_CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object targetGkeCluster_; + /** + * + * + *
+     * Optional. The target GKE cluster to deploy to.
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The targetGkeCluster. + */ + @java.lang.Override + public java.lang.String getTargetGkeCluster() { + java.lang.Object ref = targetGkeCluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetGkeCluster_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The target GKE cluster to deploy to.
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetGkeCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetGkeClusterBytes() { + java.lang.Object ref = targetGkeCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetGkeCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAMESPACE_FIELD_NUMBER = 2; + private volatile java.lang.Object clusterNamespace_; + /** + * + * + *
+     * Optional. A namespace within the GKE cluster to deploy into.
+     * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamespace. + */ + @java.lang.Override + public java.lang.String getClusterNamespace() { + java.lang.Object ref = clusterNamespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamespace_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. A namespace within the GKE cluster to deploy into.
+     * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNamespaceBytes() { + java.lang.Object ref = clusterNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTargetGkeClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGkeCluster_); + } + if (!getClusterNamespaceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterNamespace_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTargetGkeClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGkeCluster_); + } + if (!getClusterNamespaceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterNamespace_); + } + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget other = + (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) obj; + + if (!getTargetGkeCluster().equals(other.getTargetGkeCluster())) return false; + if (!getClusterNamespace().equals(other.getClusterNamespace())) 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) + TARGET_GKE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getTargetGkeCluster().hashCode(); + hash = (37 * hash) + CLUSTER_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getClusterNamespace().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 full, namespace-isolated deployment target for an existing GKE cluster.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder + .class); + } + + // Construct using + // com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.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(); + targetGkeCluster_ = ""; + + clusterNamespace_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget build() { + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + buildPartial() { + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget result = + new com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget(this); + result.targetGkeCluster_ = targetGkeCluster_; + result.clusterNamespace_ = clusterNamespace_; + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) { + return mergeFrom( + (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget other) { + if (other + == com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .getDefaultInstance()) return this; + if (!other.getTargetGkeCluster().isEmpty()) { + targetGkeCluster_ = other.targetGkeCluster_; + onChanged(); + } + if (!other.getClusterNamespace().isEmpty()) { + clusterNamespace_ = other.clusterNamespace_; + 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object targetGkeCluster_ = ""; + /** + * + * + *
+       * Optional. The target GKE cluster to deploy to.
+       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+       * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The targetGkeCluster. + */ + public java.lang.String getTargetGkeCluster() { + java.lang.Object ref = targetGkeCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetGkeCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The target GKE cluster to deploy to.
+       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+       * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetGkeCluster. + */ + public com.google.protobuf.ByteString getTargetGkeClusterBytes() { + java.lang.Object ref = targetGkeCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetGkeCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The target GKE cluster to deploy to.
+       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+       * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetGkeCluster to set. + * @return This builder for chaining. + */ + public Builder setTargetGkeCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetGkeCluster_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The target GKE cluster to deploy to.
+       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+       * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetGkeCluster() { + + targetGkeCluster_ = getDefaultInstance().getTargetGkeCluster(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The target GKE cluster to deploy to.
+       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+       * 
+ * + * + * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetGkeCluster to set. + * @return This builder for chaining. + */ + public Builder setTargetGkeClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetGkeCluster_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterNamespace_ = ""; + /** + * + * + *
+       * Optional. A namespace within the GKE cluster to deploy into.
+       * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterNamespace. + */ + public java.lang.String getClusterNamespace() { + java.lang.Object ref = clusterNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. A namespace within the GKE cluster to deploy into.
+       * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterNamespace. + */ + public com.google.protobuf.ByteString getClusterNamespaceBytes() { + java.lang.Object ref = clusterNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. A namespace within the GKE cluster to deploy into.
+       * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterNamespace to set. + * @return This builder for chaining. + */ + public Builder setClusterNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterNamespace_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A namespace within the GKE cluster to deploy into.
+       * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterNamespace() { + + clusterNamespace_ = getDefaultInstance().getClusterNamespace(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A namespace within the GKE cluster to deploy into.
+       * 
+ * + * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterNamespace to set. + * @return This builder for chaining. + */ + public Builder setClusterNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterNamespace_ = 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) + private static final com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget(); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamespacedGkeDeploymentTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespacedGkeDeploymentTarget(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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER = 1; + private com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + namespacedGkeDeploymentTarget_; + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the namespacedGkeDeploymentTarget field is set. + */ + @java.lang.Override + public boolean hasNamespacedGkeDeploymentTarget() { + return namespacedGkeDeploymentTarget_ != null; + } + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The namespacedGkeDeploymentTarget. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getNamespacedGkeDeploymentTarget() { + return namespacedGkeDeploymentTarget_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .getDefaultInstance() + : namespacedGkeDeploymentTarget_; + } + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder + getNamespacedGkeDeploymentTargetOrBuilder() { + return getNamespacedGkeDeploymentTarget(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (namespacedGkeDeploymentTarget_ != null) { + output.writeMessage(1, getNamespacedGkeDeploymentTarget()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (namespacedGkeDeploymentTarget_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getNamespacedGkeDeploymentTarget()); + } + 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.dataproc.v1.GkeClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeClusterConfig other = + (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; + + if (hasNamespacedGkeDeploymentTarget() != other.hasNamespacedGkeDeploymentTarget()) + return false; + if (hasNamespacedGkeDeploymentTarget()) { + if (!getNamespacedGkeDeploymentTarget().equals(other.getNamespacedGkeDeploymentTarget())) + 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 (hasNamespacedGkeDeploymentTarget()) { + hash = (37 * hash) + NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getNamespacedGkeDeploymentTarget().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 GKE config for this cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig) + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeClusterConfig.class, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GkeClusterConfig.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 (namespacedGkeDeploymentTargetBuilder_ == null) { + namespacedGkeDeploymentTarget_ = null; + } else { + namespacedGkeDeploymentTarget_ = null; + namespacedGkeDeploymentTargetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig build() { + com.google.cloud.dataproc.v1.GkeClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { + com.google.cloud.dataproc.v1.GkeClusterConfig result = + new com.google.cloud.dataproc.v1.GkeClusterConfig(this); + if (namespacedGkeDeploymentTargetBuilder_ == null) { + result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTarget_; + } else { + result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTargetBuilder_.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.dataproc.v1.GkeClusterConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { + if (other == com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) return this; + if (other.hasNamespacedGkeDeploymentTarget()) { + mergeNamespacedGkeDeploymentTarget(other.getNamespacedGkeDeploymentTarget()); + } + 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.dataproc.v1.GkeClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.GkeClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + namespacedGkeDeploymentTarget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder> + namespacedGkeDeploymentTargetBuilder_; + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the namespacedGkeDeploymentTarget field is set. + */ + public boolean hasNamespacedGkeDeploymentTarget() { + return namespacedGkeDeploymentTargetBuilder_ != null + || namespacedGkeDeploymentTarget_ != null; + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The namespacedGkeDeploymentTarget. + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getNamespacedGkeDeploymentTarget() { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + return namespacedGkeDeploymentTarget_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .getDefaultInstance() + : namespacedGkeDeploymentTarget_; + } else { + return namespacedGkeDeploymentTargetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNamespacedGkeDeploymentTarget( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + namespacedGkeDeploymentTarget_ = value; + onChanged(); + } else { + namespacedGkeDeploymentTargetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNamespacedGkeDeploymentTarget( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder + builderForValue) { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + namespacedGkeDeploymentTarget_ = builderForValue.build(); + onChanged(); + } else { + namespacedGkeDeploymentTargetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNamespacedGkeDeploymentTarget( + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + if (namespacedGkeDeploymentTarget_ != null) { + namespacedGkeDeploymentTarget_ = + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .newBuilder(namespacedGkeDeploymentTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + namespacedGkeDeploymentTarget_ = value; + } + onChanged(); + } else { + namespacedGkeDeploymentTargetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNamespacedGkeDeploymentTarget() { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + namespacedGkeDeploymentTarget_ = null; + onChanged(); + } else { + namespacedGkeDeploymentTarget_ = null; + namespacedGkeDeploymentTargetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder + getNamespacedGkeDeploymentTargetBuilder() { + + onChanged(); + return getNamespacedGkeDeploymentTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder + getNamespacedGkeDeploymentTargetOrBuilder() { + if (namespacedGkeDeploymentTargetBuilder_ != null) { + return namespacedGkeDeploymentTargetBuilder_.getMessageOrBuilder(); + } else { + return namespacedGkeDeploymentTarget_ == null + ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + .getDefaultInstance() + : namespacedGkeDeploymentTarget_; + } + } + /** + * + * + *
+     * Optional. A target for the deployment.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder> + getNamespacedGkeDeploymentTargetFieldBuilder() { + if (namespacedGkeDeploymentTargetBuilder_ == null) { + namespacedGkeDeploymentTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfig + .NamespacedGkeDeploymentTargetOrBuilder>( + getNamespacedGkeDeploymentTarget(), getParentForChildren(), isClean()); + namespacedGkeDeploymentTarget_ = null; + } + return namespacedGkeDeploymentTargetBuilder_; + } + + @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.dataproc.v1.GkeClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig) + private static final com.google.cloud.dataproc.v1.GkeClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeClusterConfig(); + } + + public static com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeClusterConfig(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.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java new file mode 100644 index 00000000..994f7dbc --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java @@ -0,0 +1,68 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface GkeClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the namespacedGkeDeploymentTarget field is set. + */ + boolean hasNamespacedGkeDeploymentTarget(); + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The namespacedGkeDeploymentTarget. + */ + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget + getNamespacedGkeDeploymentTarget(); + /** + * + * + *
+   * Optional. A target for the deployment.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder + getNamespacedGkeDeploymentTargetOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java new file mode 100644 index 00000000..ead588db --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java @@ -0,0 +1,829 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Identity related configuration, including service account based
+ * secure multi-tenancy user mappings.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig} + */ +public final class IdentityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.IdentityConfig) + IdentityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdentityConfig.newBuilder() to construct. + private IdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IdentityConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IdentityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IdentityConfig( + 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)) { + userServiceAccountMapping_ = + com.google.protobuf.MapField.newMapField( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + userServiceAccountMapping__ = + input.readMessage( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + userServiceAccountMapping_ + .getMutableMap() + .put( + userServiceAccountMapping__.getKey(), userServiceAccountMapping__.getValue()); + 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetUserServiceAccountMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.IdentityConfig.class, + com.google.cloud.dataproc.v1.IdentityConfig.Builder.class); + } + + public static final int USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER = 1; + + private static final class UserServiceAccountMappingDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField + userServiceAccountMapping_; + + private com.google.protobuf.MapField + internalGetUserServiceAccountMapping() { + if (userServiceAccountMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry); + } + return userServiceAccountMapping_; + } + + public int getUserServiceAccountMappingCount() { + return internalGetUserServiceAccountMapping().getMap().size(); + } + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetUserServiceAccountMapping().getMap().containsKey(key); + } + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserServiceAccountMapping() { + return getUserServiceAccountMappingMap(); + } + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getUserServiceAccountMappingMap() { + return internalGetUserServiceAccountMapping().getMap(); + } + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetUserServiceAccountMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetUserServiceAccountMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetUserServiceAccountMapping(), + UserServiceAccountMappingDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetUserServiceAccountMapping().getMap().entrySet()) { + com.google.protobuf.MapEntry userServiceAccountMapping__ = + UserServiceAccountMappingDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, userServiceAccountMapping__); + } + 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.dataproc.v1.IdentityConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.IdentityConfig other = + (com.google.cloud.dataproc.v1.IdentityConfig) obj; + + if (!internalGetUserServiceAccountMapping() + .equals(other.internalGetUserServiceAccountMapping())) 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 (!internalGetUserServiceAccountMapping().getMap().isEmpty()) { + hash = (37 * hash) + USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserServiceAccountMapping().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.IdentityConfig) + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetUserServiceAccountMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableUserServiceAccountMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.IdentityConfig.class, + com.google.cloud.dataproc.v1.IdentityConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.IdentityConfig.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(); + internalGetMutableUserServiceAccountMapping().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.IdentityConfig build() { + com.google.cloud.dataproc.v1.IdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() { + com.google.cloud.dataproc.v1.IdentityConfig result = + new com.google.cloud.dataproc.v1.IdentityConfig(this); + int from_bitField0_ = bitField0_; + result.userServiceAccountMapping_ = internalGetUserServiceAccountMapping(); + result.userServiceAccountMapping_.makeImmutable(); + 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.dataproc.v1.IdentityConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.IdentityConfig other) { + if (other == com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance()) return this; + internalGetMutableUserServiceAccountMapping() + .mergeFrom(other.internalGetUserServiceAccountMapping()); + 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.dataproc.v1.IdentityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.IdentityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + userServiceAccountMapping_; + + private com.google.protobuf.MapField + internalGetUserServiceAccountMapping() { + if (userServiceAccountMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry); + } + return userServiceAccountMapping_; + } + + private com.google.protobuf.MapField + internalGetMutableUserServiceAccountMapping() { + onChanged(); + ; + if (userServiceAccountMapping_ == null) { + userServiceAccountMapping_ = + com.google.protobuf.MapField.newMapField( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry); + } + if (!userServiceAccountMapping_.isMutable()) { + userServiceAccountMapping_ = userServiceAccountMapping_.copy(); + } + return userServiceAccountMapping_; + } + + public int getUserServiceAccountMappingCount() { + return internalGetUserServiceAccountMapping().getMap().size(); + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetUserServiceAccountMapping().getMap().containsKey(key); + } + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserServiceAccountMapping() { + return getUserServiceAccountMappingMap(); + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getUserServiceAccountMappingMap() { + return internalGetUserServiceAccountMapping().getMap(); + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetUserServiceAccountMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetUserServiceAccountMapping().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserServiceAccountMapping() { + internalGetMutableUserServiceAccountMapping().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeUserServiceAccountMapping(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableUserServiceAccountMapping().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserServiceAccountMapping() { + return internalGetMutableUserServiceAccountMapping().getMutableMap(); + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putUserServiceAccountMapping(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableUserServiceAccountMapping().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Required. Map of user to service account.
+     * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllUserServiceAccountMapping( + java.util.Map values) { + internalGetMutableUserServiceAccountMapping().getMutableMap().putAll(values); + 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.dataproc.v1.IdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.IdentityConfig) + private static final com.google.cloud.dataproc.v1.IdentityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.IdentityConfig(); + } + + public static com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdentityConfig(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.dataproc.v1.IdentityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java new file mode 100644 index 00000000..8e42dfec --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java @@ -0,0 +1,90 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface IdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getUserServiceAccountMappingCount(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsUserServiceAccountMapping(java.lang.String key); + /** Use {@link #getUserServiceAccountMappingMap()} instead. */ + @java.lang.Deprecated + java.util.Map getUserServiceAccountMapping(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map getUserServiceAccountMappingMap(); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.lang.String getUserServiceAccountMappingOrDefault( + java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Required. Map of user to service account.
+   * 
+ * + * + * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java index 9293c072..db0e129d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java @@ -384,7 +384,11 @@ private Preemptibility(int value) { * *
    * Optional. The number of VM instances in the instance group.
-   * For master instance groups, must be set to 1.
+   * For [HA
+   * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
+   * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
+   * For standard cluster [master_config](#FIELDS.master_config) groups,
+   * **must be set to 1**.
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1474,7 +1478,11 @@ public Builder mergeFrom( * *
      * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
+     * For [HA
+     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
+     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
+     * For standard cluster [master_config](#FIELDS.master_config) groups,
+     * **must be set to 1**.
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1490,7 +1498,11 @@ public int getNumInstances() { * *
      * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
+     * For [HA
+     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
+     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
+     * For standard cluster [master_config](#FIELDS.master_config) groups,
+     * **must be set to 1**.
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1509,7 +1521,11 @@ public Builder setNumInstances(int value) { * *
      * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
+     * For [HA
+     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
+     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
+     * For standard cluster [master_config](#FIELDS.master_config) groups,
+     * **must be set to 1**.
      * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java index 9709605d..77f65b6d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java @@ -28,7 +28,11 @@ public interface InstanceGroupConfigOrBuilder * *
    * Optional. The number of VM instances in the instance group.
-   * For master instance groups, must be set to 1.
+   * For [HA
+   * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
+   * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
+   * For standard cluster [master_config](#FIELDS.master_config) groups,
+   * **must be set to 1**.
    * 
* * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java index 29844db6..edfd0940 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java @@ -332,7 +332,7 @@ public int getParametersCount() { * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -356,7 +356,7 @@ public java.util.Map getParameters() { * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -371,7 +371,7 @@ public java.util.Map getParametersMap() { * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -391,7 +391,7 @@ public java.lang.String getParametersOrDefault( * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1191,7 +1191,7 @@ public int getParametersCount() { * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1215,7 +1215,7 @@ public java.util.Map getParameters() { * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1230,7 +1230,7 @@ public java.util.Map getParametersMap() { * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1250,7 +1250,7 @@ public java.lang.String getParametersOrDefault( * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1277,7 +1277,7 @@ public Builder clearParameters() { * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1300,7 +1300,7 @@ public java.util.Map getMutableParameters() * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1321,7 +1321,7 @@ public Builder putParameters(java.lang.String key, java.lang.String value) { * *
      * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
+     * parameters. Values may not exceed 1000 characters.
      * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java index b7c701af..cd7510b5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java @@ -125,7 +125,7 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -137,7 +137,7 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -152,7 +152,7 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -164,7 +164,7 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -176,7 +176,7 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder * *
    * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
+   * parameters. Values may not exceed 1000 characters.
    * 
* * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java index 191e0e09..3450f415 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java @@ -1582,8 +1582,8 @@ public com.google.protobuf.ByteString getJobUuidBytes() { * * *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is
+   * `false`, the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
@@ -6513,8 +6513,8 @@ public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
@@ -6531,8 +6531,8 @@ public boolean getDone() { * * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
@@ -6552,8 +6552,8 @@ public Builder setDone(boolean value) { * * *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is
+     * `false`, the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java index f70e389f..0bc0e6ee 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java @@ -836,8 +836,8 @@ public interface JobOrBuilder * * *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is
+   * `false`, the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java index 27b3ec8b..97a86edf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java @@ -61,6 +61,7 @@ private JobPlacement( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -85,6 +86,23 @@ private JobPlacement( clusterUuid_ = s; break; } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clusterLabels_ = + com.google.protobuf.MapField.newMapField( + ClusterLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry clusterLabels__ = + input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + clusterLabels_ + .getMutableMap() + .put(clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -109,6 +127,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetClusterLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -219,6 +248,115 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { } } + public static final int CLUSTER_LABELS_FIELD_NUMBER = 3; + + private static final class ClusterLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.JobsProto + .internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField clusterLabels_; + + private com.google.protobuf.MapField + internalGetClusterLabels() { + if (clusterLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ClusterLabelsDefaultEntryHolder.defaultEntry); + } + return clusterLabels_; + } + + public int getClusterLabelsCount() { + return internalGetClusterLabels().getMap().size(); + } + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetClusterLabels().getMap().containsKey(key); + } + /** Use {@link #getClusterLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getClusterLabels() { + return getClusterLabelsMap(); + } + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getClusterLabelsMap() { + return internalGetClusterLabels().getMap(); + } + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetClusterLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetClusterLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -239,6 +377,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getClusterUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @@ -254,6 +394,16 @@ public int getSerializedSize() { if (!getClusterUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); } + for (java.util.Map.Entry entry : + internalGetClusterLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry clusterLabels__ = + ClusterLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterLabels__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -272,6 +422,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,6 +438,10 @@ public int hashCode() { hash = (53 * hash) + getClusterName().hashCode(); hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; hash = (53 * hash) + getClusterUuid().hashCode(); + if (!internalGetClusterLabels().getMap().isEmpty()) { + hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetClusterLabels().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -405,6 +560,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetClusterLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableClusterLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -436,6 +611,7 @@ public Builder clear() { clusterUuid_ = ""; + internalGetMutableClusterLabels().clear(); return this; } @@ -463,8 +639,11 @@ public com.google.cloud.dataproc.v1.JobPlacement build() { public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { com.google.cloud.dataproc.v1.JobPlacement result = new com.google.cloud.dataproc.v1.JobPlacement(this); + int from_bitField0_ = bitField0_; result.clusterName_ = clusterName_; result.clusterUuid_ = clusterUuid_; + result.clusterLabels_ = internalGetClusterLabels(); + result.clusterLabels_.makeImmutable(); onBuilt(); return result; } @@ -522,6 +701,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobPlacement other) { clusterUuid_ = other.clusterUuid_; onChanged(); } + internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -551,6 +731,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object clusterName_ = ""; /** * @@ -768,6 +950,180 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField clusterLabels_; + + private com.google.protobuf.MapField + internalGetClusterLabels() { + if (clusterLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ClusterLabelsDefaultEntryHolder.defaultEntry); + } + return clusterLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableClusterLabels() { + onChanged(); + ; + if (clusterLabels_ == null) { + clusterLabels_ = + com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); + } + if (!clusterLabels_.isMutable()) { + clusterLabels_ = clusterLabels_.copy(); + } + return clusterLabels_; + } + + public int getClusterLabelsCount() { + return internalGetClusterLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsClusterLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetClusterLabels().getMap().containsKey(key); + } + /** Use {@link #getClusterLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getClusterLabels() { + return getClusterLabelsMap(); + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getClusterLabelsMap() { + return internalGetClusterLabels().getMap(); + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getClusterLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetClusterLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetClusterLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearClusterLabels() { + internalGetMutableClusterLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeClusterLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableClusterLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableClusterLabels() { + return internalGetMutableClusterLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putClusterLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableClusterLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. Cluster labels to identify a cluster where the job will be
+     * submitted.
+     * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllClusterLabels(java.util.Map values) { + internalGetMutableClusterLabels().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java index d6fefeb0..696cdbe6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java @@ -74,4 +74,68 @@ public interface JobPlacementOrBuilder * @return The bytes for clusterUuid. */ com.google.protobuf.ByteString getClusterUuidBytes(); + + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getClusterLabelsCount(); + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsClusterLabels(java.lang.String key); + /** Use {@link #getClusterLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getClusterLabels(); + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getClusterLabelsMap(); + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getClusterLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Cluster labels to identify a cluster where the job will be
+   * submitted.
+   * 
+ * + * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getClusterLabelsOrThrow(java.lang.String key); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java index 3aa591a6..046ede89 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java @@ -125,8 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,8 +149,8 @@ public java.lang.String getProjectId() { * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -562,8 +562,8 @@ public Builder mergeFrom( * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -585,8 +585,8 @@ public java.lang.String getProjectId() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -608,8 +608,8 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -630,8 +630,8 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -648,8 +648,8 @@ public Builder clearProjectId() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs
+     * to. If specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java index df102fa4..c22d0ffd 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java @@ -27,8 +27,8 @@ public interface JobReferenceOrBuilder * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -40,8 +40,8 @@ public interface JobReferenceOrBuilder * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs
+   * to. If specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index 74d7e7b8..63b20c9a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -73,6 +73,11 @@ private JobScheduling( maxFailuresPerHour_ = input.readInt32(); break; } + case 16: + { + maxFailuresTotal_ = input.readInt32(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -114,7 +119,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver terminating with non-zero code before job is
+   * a result of driver exiting with non-zero code before job is
    * reported failed.
    * A job may be reported as thrashing if driver exits with non-zero code
    * 4 times within 10 minute window.
@@ -130,6 +135,26 @@ public int getMaxFailuresPerHour() {
     return maxFailuresPerHour_;
   }
 
+  public static final int MAX_FAILURES_TOTAL_FIELD_NUMBER = 2;
+  private int maxFailuresTotal_;
+  /**
+   *
+   *
+   * 
+   * Optional. Maximum number of times in total a driver may be restarted as a
+   * result of driver exiting with non-zero code before job is reported failed.
+   * Maximum value is 240.
+   * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFailuresTotal. + */ + @java.lang.Override + public int getMaxFailuresTotal() { + return maxFailuresTotal_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -147,6 +172,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxFailuresPerHour_ != 0) { output.writeInt32(1, maxFailuresPerHour_); } + if (maxFailuresTotal_ != 0) { + output.writeInt32(2, maxFailuresTotal_); + } unknownFields.writeTo(output); } @@ -159,6 +187,9 @@ public int getSerializedSize() { if (maxFailuresPerHour_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxFailuresPerHour_); } + if (maxFailuresTotal_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFailuresTotal_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -176,6 +207,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.JobScheduling) obj; if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) return false; + if (getMaxFailuresTotal() != other.getMaxFailuresTotal()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -189,6 +221,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAX_FAILURES_PER_HOUR_FIELD_NUMBER; hash = (53 * hash) + getMaxFailuresPerHour(); + hash = (37 * hash) + MAX_FAILURES_TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getMaxFailuresTotal(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -336,6 +370,8 @@ public Builder clear() { super.clear(); maxFailuresPerHour_ = 0; + maxFailuresTotal_ = 0; + return this; } @@ -364,6 +400,7 @@ public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { com.google.cloud.dataproc.v1.JobScheduling result = new com.google.cloud.dataproc.v1.JobScheduling(this); result.maxFailuresPerHour_ = maxFailuresPerHour_; + result.maxFailuresTotal_ = maxFailuresTotal_; onBuilt(); return result; } @@ -416,6 +453,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobScheduling other) { if (other.getMaxFailuresPerHour() != 0) { setMaxFailuresPerHour(other.getMaxFailuresPerHour()); } + if (other.getMaxFailuresTotal() != 0) { + setMaxFailuresTotal(other.getMaxFailuresTotal()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -451,7 +491,7 @@ public Builder mergeFrom( * *
      * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
+     * a result of driver exiting with non-zero code before job is
      * reported failed.
      * A job may be reported as thrashing if driver exits with non-zero code
      * 4 times within 10 minute window.
@@ -471,7 +511,7 @@ public int getMaxFailuresPerHour() {
      *
      * 
      * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
+     * a result of driver exiting with non-zero code before job is
      * reported failed.
      * A job may be reported as thrashing if driver exits with non-zero code
      * 4 times within 10 minute window.
@@ -494,7 +534,7 @@ public Builder setMaxFailuresPerHour(int value) {
      *
      * 
      * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
+     * a result of driver exiting with non-zero code before job is
      * reported failed.
      * A job may be reported as thrashing if driver exits with non-zero code
      * 4 times within 10 minute window.
@@ -512,6 +552,64 @@ public Builder clearMaxFailuresPerHour() {
       return this;
     }
 
+    private int maxFailuresTotal_;
+    /**
+     *
+     *
+     * 
+     * Optional. Maximum number of times in total a driver may be restarted as a
+     * result of driver exiting with non-zero code before job is reported failed.
+     * Maximum value is 240.
+     * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFailuresTotal. + */ + @java.lang.Override + public int getMaxFailuresTotal() { + return maxFailuresTotal_; + } + /** + * + * + *
+     * Optional. Maximum number of times in total a driver may be restarted as a
+     * result of driver exiting with non-zero code before job is reported failed.
+     * Maximum value is 240.
+     * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxFailuresTotal to set. + * @return This builder for chaining. + */ + public Builder setMaxFailuresTotal(int value) { + + maxFailuresTotal_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of times in total a driver may be restarted as a
+     * result of driver exiting with non-zero code before job is reported failed.
+     * Maximum value is 240.
+     * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxFailuresTotal() { + + maxFailuresTotal_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java index 15665dc4..29b4b317 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java @@ -28,7 +28,7 @@ public interface JobSchedulingOrBuilder * *
    * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver terminating with non-zero code before job is
+   * a result of driver exiting with non-zero code before job is
    * reported failed.
    * A job may be reported as thrashing if driver exits with non-zero code
    * 4 times within 10 minute window.
@@ -40,4 +40,19 @@ public interface JobSchedulingOrBuilder
    * @return The maxFailuresPerHour.
    */
   int getMaxFailuresPerHour();
+
+  /**
+   *
+   *
+   * 
+   * Optional. Maximum number of times in total a driver may be restarted as a
+   * result of driver exiting with non-zero code before job is reported failed.
+   * Maximum value is 240.
+   * 
+ * + * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFailuresTotal. + */ + int getMaxFailuresTotal(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java index 982ab839..6ce22a02 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java @@ -119,6 +119,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -281,128 +285,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" + "\0132\'.google.cloud.dataproc.v1.LoggingConf" + "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"D\n\014JobPlac" - + "ement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clus" - + "ter_uuid\030\002 \001(\tB\003\340A\003\"\331\003\n\tJobStatus\022=\n\005sta" - + "te\030\001 \001(\0162).google.cloud.dataproc.v1.JobS" - + "tatus.StateB\003\340A\003\022\027\n\007details\030\002 \001(\tB\006\340A\003\340A" - + "\001\0229\n\020state_start_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022C\n\010substate\030\007 \001(\0162," - + ".google.cloud.dataproc.v1.JobStatus.Subs" - + "tateB\003\340A\003\"\251\001\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\013\n\007PENDING\020\001\022\016\n\nSETUP_DONE\020\010\022\013\n\007RUNNI" - + "NG\020\002\022\022\n\016CANCEL_PENDING\020\003\022\022\n\016CANCEL_START" - + "ED\020\007\022\r\n\tCANCELLED\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006" - + "\022\023\n\017ATTEMPT_FAILURE\020\t\"H\n\010Substate\022\017\n\013UNS" - + "PECIFIED\020\000\022\r\n\tSUBMITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n" - + "\014STALE_STATUS\020\003\"<\n\014JobReference\022\027\n\nproje" - + "ct_id\030\001 \001(\tB\003\340A\001\022\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002" - + "\n\017YarnApplication\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005" - + "state\030\002 \001(\0162/.google.cloud.dataproc.v1.Y" - + "arnApplication.StateB\003\340A\002\022\025\n\010progress\030\003 " - + "\001(\002B\003\340A\002\022\031\n\014tracking_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n" - + "\nNEW_SAVING\020\002\022\r\n\tSUBMITTED\020\003\022\014\n\010ACCEPTED" - + "\020\004\022\013\n\007RUNNING\020\005\022\014\n\010FINISHED\020\006\022\n\n\006FAILED\020" - + "\007\022\n\n\006KILLED\020\010\"\377\010\n\003Job\022>\n\treference\030\001 \001(\013" - + "2&.google.cloud.dataproc.v1.JobReference" - + "B\003\340A\001\022>\n\tplacement\030\002 \001(\0132&.google.cloud." - + "dataproc.v1.JobPlacementB\003\340A\002\022>\n\nhadoop_" - + "job\030\003 \001(\0132#.google.cloud.dataproc.v1.Had" - + "oopJobB\003\340A\001H\000\022<\n\tspark_job\030\004 \001(\0132\".googl" - + "e.cloud.dataproc.v1.SparkJobB\003\340A\001H\000\022@\n\013p" - + "yspark_job\030\005 \001(\0132$.google.cloud.dataproc" - + ".v1.PySparkJobB\003\340A\001H\000\022:\n\010hive_job\030\006 \001(\0132" - + "!.google.cloud.dataproc.v1.HiveJobB\003\340A\001H" - + "\000\0228\n\007pig_job\030\007 \001(\0132 .google.cloud.datapr" - + "oc.v1.PigJobB\003\340A\001H\000\022?\n\013spark_r_job\030\025 \001(\013" - + "2#.google.cloud.dataproc.v1.SparkRJobB\003\340" - + "A\001H\000\022C\n\rspark_sql_job\030\014 \001(\0132%.google.clo" - + "ud.dataproc.v1.SparkSqlJobB\003\340A\001H\000\022>\n\npre" - + "sto_job\030\027 \001(\0132#.google.cloud.dataproc.v1" - + ".PrestoJobB\003\340A\001H\000\0228\n\006status\030\010 \001(\0132#.goog" - + "le.cloud.dataproc.v1.JobStatusB\003\340A\003\022@\n\016s" - + "tatus_history\030\r \003(\0132#.google.cloud.datap" - + "roc.v1.JobStatusB\003\340A\003\022I\n\021yarn_applicatio" - + "ns\030\t \003(\0132).google.cloud.dataproc.v1.Yarn" - + "ApplicationB\003\340A\003\022\'\n\032driver_output_resour" - + "ce_uri\030\021 \001(\tB\003\340A\003\022%\n\030driver_control_file" - + "s_uri\030\017 \001(\tB\003\340A\003\022>\n\006labels\030\022 \003(\0132).googl" - + "e.cloud.dataproc.v1.Job.LabelsEntryB\003\340A\001" - + "\022@\n\nscheduling\030\024 \001(\0132\'.google.cloud.data" - + "proc.v1.JobSchedulingB\003\340A\001\022\025\n\010job_uuid\030\026" - + " \001(\tB\003\340A\003\022\021\n\004done\030\030 \001(\010B\003\340A\003\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010t" - + "ype_job\"3\n\rJobScheduling\022\"\n\025max_failures" - + "_per_hour\030\001 \001(\005B\003\340A\001\"\212\001\n\020SubmitJobReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" - + "(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.google.cloud.data" - + "proc.v1.JobB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\"\256\001\n\013JobMetadata\022\023\n\006job_id\030\001 \001(\tB\003\340A\003\0228" - + "\n\006status\030\002 \001(\0132#.google.cloud.dataproc.v" - + "1.JobStatusB\003\340A\003\022\033\n\016operation_type\030\003 \001(\t" - + "B\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\"R\n\rGetJobRequest\022\027\n\np" - + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" - + "\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263\002\n\017ListJobsReque" - + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\006 " - + "\001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\022\031\n\014cluster_name\030\004 \001(\tB" - + "\003\340A\001\022Y\n\021job_state_matcher\030\005 \001(\01629.google" - + ".cloud.dataproc.v1.ListJobsRequest.JobSt" - + "ateMatcherB\003\340A\001\022\023\n\006filter\030\007 \001(\tB\003\340A\001\"6\n\017" - + "JobStateMatcher\022\007\n\003ALL\020\000\022\n\n\006ACTIVE\020\001\022\016\n\n" - + "NON_ACTIVE\020\002\"\274\001\n\020UpdateJobRequest\022\027\n\npro" - + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022" - + "\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003job\030\004 \001(\0132\035.goog" - + "le.cloud.dataproc.v1.JobB\003\340A\002\0224\n\013update_" - + "mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\"b\n\020ListJobsResponse\0220\n\004jobs\030\001 \003(\0132\035." - + "google.cloud.dataproc.v1.JobB\003\340A\003\022\034\n\017nex" - + "t_page_token\030\002 \001(\tB\003\340A\001\"U\n\020CancelJobRequ" - + "est\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003" - + " \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"U\n\020Delete" - + "JobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006r" - + "egion\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\0022\374\n" - + "\n\rJobController\022\261\001\n\tSubmitJob\022*.google.c" - + "loud.dataproc.v1.SubmitJobRequest\032\035.goog" - + "le.cloud.dataproc.v1.Job\"Y\202\323\344\223\002;\"6/v1/pr" - + "ojects/{project_id}/regions/{region}/job" - + "s:submit:\001*\332A\025project_id,region,job\022\336\001\n\024" - + "SubmitJobAsOperation\022*.google.cloud.data" - + "proc.v1.SubmitJobRequest\032\035.google.longru" - + "nning.Operation\"{\202\323\344\223\002F\"A/v1/projects/{p" - + "roject_id}/regions/{region}/jobs:submitA" - + "sOperation:\001*\332A\027project_id, region, job\312" - + "A\022\n\003Job\022\013JobMetadata\022\255\001\n\006GetJob\022\'.google" - + ".cloud.dataproc.v1.GetJobRequest\032\035.googl" - + "e.cloud.dataproc.v1.Job\"[\202\323\344\223\002:\0228/v1/pro" - + "jects/{project_id}/regions/{region}/jobs" - + "/{job_id}\332A\030project_id,region,job_id\022\311\001\n" - + "\010ListJobs\022).google.cloud.dataproc.v1.Lis" - + "tJobsRequest\032*.google.cloud.dataproc.v1." - + "ListJobsResponse\"f\202\323\344\223\0021\022//v1/projects/{" - + "project_id}/regions/{region}/jobs\332A\021proj" - + "ect_id,region\332A\030project_id,region,filter" - + "\022\235\001\n\tUpdateJob\022*.google.cloud.dataproc.v" - + "1.UpdateJobRequest\032\035.google.cloud.datapr" - + "oc.v1.Job\"E\202\323\344\223\002?28/v1/projects/{project" - + "_id}/regions/{region}/jobs/{job_id}:\003job" - + "\022\275\001\n\tCancelJob\022*.google.cloud.dataproc.v" - + "1.CancelJobRequest\032\035.google.cloud.datapr" - + "oc.v1.Job\"e\202\323\344\223\002D\"?/v1/projects/{project" - + "_id}/regions/{region}/jobs/{job_id}:canc" - + "el:\001*\332A\030project_id,region,job_id\022\254\001\n\tDel" - + "eteJob\022*.google.cloud.dataproc.v1.Delete" - + "JobRequest\032\026.google.protobuf.Empty\"[\202\323\344\223" - + "\002:*8/v1/projects/{project_id}/regions/{r" - + "egion}/jobs/{job_id}\332A\030project_id,region" - + ",job_id\032K\312A\027dataproc.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formBm\n\034com.google.cloud.dataproc.v1B\tJo" - + "bsProtoP\001Z@google.golang.org/genproto/go" - + "ogleapis/cloud/dataproc/v1;dataprocb\006pro" - + "to3" + + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" + + "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" + + "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" + + " \003(\01329.google.cloud.dataproc.v1.JobPlace" + + "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" + + ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" + + "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" + + "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" + + "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" + + "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" + + "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" + + "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" + + "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" + + "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" + + "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" + + "gle.cloud.dataproc.v1.YarnApplication.St" + + "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" + + "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" + + "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" + + "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\377\010\n" + + "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" + + "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" + + "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" + + "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" + + "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" + + "spark_job\030\004 \001(\0132\".google.cloud.dataproc." + + "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" + + "$.google.cloud.dataproc.v1.PySparkJobB\003\340" + + "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" + + "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" + + "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" + + "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" + + "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" + + "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" + + "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" + + "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" + + ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" + + "(\0132#.google.cloud.dataproc.v1.JobStatusB" + + "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" + + ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" + + "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" + + "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" + + ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." + + "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " + + "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" + + "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" + + "\030\030 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"T\n\rJobSch" + + "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" + + "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" + + "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" + + "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" + + "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" + + "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." + + "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" + + "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" + + "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" + + "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" + + "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" + + "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" + + "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" + + "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" + + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" + + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" + + "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" + + "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" + + "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" + + "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" + + ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" + + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" + + "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" + + "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" + + "itJob\022*.google.cloud.dataproc.v1.SubmitJ" + + "obRequest\032\035.google.cloud.dataproc.v1.Job" + + "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" + + "ons/{region}/jobs:submit:\001*\332A\025project_id" + + ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" + + "oogle.cloud.dataproc.v1.SubmitJobRequest" + + "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" + + "A/v1/projects/{project_id}/regions/{regi" + + "on}/jobs:submitAsOperation:\001*\332A\027project_" + + "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" + + "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" + + "bRequest\032\035.google.cloud.dataproc.v1.Job\"" + + "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" + + "ns/{region}/jobs/{job_id}\332A\030project_id,r" + + "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" + + ".dataproc.v1.ListJobsRequest\032*.google.cl" + + "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" + + "\022//v1/projects/{project_id}/regions/{reg" + + "ion}/jobs\332A\021project_id,region\332A\030project_" + + "id,region,filter\022\235\001\n\tUpdateJob\022*.google." + + "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." + + "cloud.dataproc.v1.CancelJobRequest\032\035.goo" + + "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" + + "rojects/{project_id}/regions/{region}/jo" + + "bs/{job_id}:cancel:\001*\332A\030project_id,regio" + + "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" + + "taproc.v1.DeleteJobRequest\032\026.google.prot" + + "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" + + "t_id}/regions/{region}/jobs/{job_id}\332A\030p" + + "roject_id,region,job_id\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformBm\n\034com.google.cloud" + + ".dataproc.v1B\tJobsProtoP\001Z@google.golang" + + ".org/genproto/googleapis/cloud/dataproc/" + + "v1;dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -647,7 +655,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, new java.lang.String[] { - "ClusterName", "ClusterUuid", + "ClusterName", "ClusterUuid", "ClusterLabels", + }); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = getDescriptor().getMessageTypes().get(11); @@ -714,7 +730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, new java.lang.String[] { - "MaxFailuresPerHour", + "MaxFailuresPerHour", "MaxFailuresTotal", }); internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = getDescriptor().getMessageTypes().get(16); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java index fb3d78bd..b7aaf98c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java @@ -242,11 +242,11 @@ public boolean getEnableKerberos() { * * *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rootPrincipalPasswordUri. */ @@ -266,11 +266,11 @@ public java.lang.String getRootPrincipalPasswordUri() { * * *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rootPrincipalPasswordUri. */ @@ -293,11 +293,11 @@ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { * * *
-   * Required. The uri of the KMS key used to encrypt various sensitive
+   * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyUri. */ @@ -317,11 +317,11 @@ public java.lang.String getKmsKeyUri() { * * *
-   * Required. The uri of the KMS key used to encrypt various sensitive
+   * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyUri. */ @@ -1542,11 +1542,11 @@ public Builder clearEnableKerberos() { * * *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The rootPrincipalPasswordUri. @@ -1566,11 +1566,11 @@ public java.lang.String getRootPrincipalPasswordUri() { * * *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The bytes for rootPrincipalPasswordUri. @@ -1590,11 +1590,11 @@ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { * * *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The rootPrincipalPasswordUri to set. @@ -1613,11 +1613,11 @@ public Builder setRootPrincipalPasswordUri(java.lang.String value) { * * *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -1632,11 +1632,11 @@ public Builder clearRootPrincipalPasswordUri() { * * *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
      * principal password.
      * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes for rootPrincipalPasswordUri to set. @@ -1658,11 +1658,11 @@ public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString v * * *
-     * Required. The uri of the KMS key used to encrypt various sensitive
+     * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyUri. */ @@ -1681,11 +1681,11 @@ public java.lang.String getKmsKeyUri() { * * *
-     * Required. The uri of the KMS key used to encrypt various sensitive
+     * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyUri. */ @@ -1704,11 +1704,11 @@ public com.google.protobuf.ByteString getKmsKeyUriBytes() { * * *
-     * Required. The uri of the KMS key used to encrypt various sensitive
+     * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The kmsKeyUri to set. * @return This builder for chaining. @@ -1726,11 +1726,11 @@ public Builder setKmsKeyUri(java.lang.String value) { * * *
-     * Required. The uri of the KMS key used to encrypt various sensitive
+     * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1744,11 +1744,11 @@ public Builder clearKmsKeyUri() { * * *
-     * Required. The uri of the KMS key used to encrypt various sensitive
+     * Optional. The uri of the KMS key used to encrypt various sensitive
      * files.
      * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for kmsKeyUri to set. * @return This builder for chaining. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java index 426c5c3a..0f7dc472 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java @@ -41,11 +41,11 @@ public interface KerberosConfigOrBuilder * * *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rootPrincipalPasswordUri. */ @@ -54,11 +54,11 @@ public interface KerberosConfigOrBuilder * * *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
    * principal password.
    * 
* - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rootPrincipalPasswordUri. */ @@ -68,11 +68,11 @@ public interface KerberosConfigOrBuilder * * *
-   * Required. The uri of the KMS key used to encrypt various sensitive
+   * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyUri. */ @@ -81,11 +81,11 @@ public interface KerberosConfigOrBuilder * * *
-   * Required. The uri of the KMS key used to encrypt various sensitive
+   * Optional. The uri of the KMS key used to encrypt various sensitive
    * files.
    * 
* - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; + * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyUri. */ diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java index 09df34bf..92751d87 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java @@ -215,9 +215,9 @@ public TtlCase getTtlCase() { *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -235,9 +235,9 @@ public boolean hasIdleDeleteTtl() { *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -257,9 +257,9 @@ public com.google.protobuf.Duration getIdleDeleteTtl() { *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -910,9 +910,9 @@ public Builder clearTtl() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -930,9 +930,9 @@ public boolean hasIdleDeleteTtl() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -956,9 +956,9 @@ public com.google.protobuf.Duration getIdleDeleteTtl() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -984,9 +984,9 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -1009,9 +1009,9 @@ public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForV *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -1041,9 +1041,9 @@ public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -1067,9 +1067,9 @@ public Builder clearIdleDeleteTtl() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -1087,9 +1087,9 @@ public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * @@ -1111,9 +1111,9 @@ public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { *
      * Optional. The duration to keep the cluster alive while idling (when no jobs
      * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
      * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java index 624e8e12..3f94c68e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java @@ -29,9 +29,9 @@ public interface LifecycleConfigOrBuilder *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -46,9 +46,9 @@ public interface LifecycleConfigOrBuilder *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63,9 +63,9 @@ public interface LifecycleConfigOrBuilder *
    * Optional. The duration to keep the cluster alive while idling (when no jobs
    * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
+   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
    * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
+   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java new file mode 100644 index 00000000..ca49e495 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java @@ -0,0 +1,663 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Specifies a Metastore configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} + */ +public final class MetastoreConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.MetastoreConfig) + MetastoreConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetastoreConfig.newBuilder() to construct. + private MetastoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetastoreConfig() { + dataprocMetastoreService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetastoreConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetastoreConfig( + 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(); + + dataprocMetastoreService_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.MetastoreConfig.class, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + } + + public static final int DATAPROC_METASTORE_SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object dataprocMetastoreService_; + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataprocMetastoreService. + */ + @java.lang.Override + public java.lang.String getDataprocMetastoreService() { + java.lang.Object ref = dataprocMetastoreService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataprocMetastoreService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataprocMetastoreService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { + java.lang.Object ref = dataprocMetastoreService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataprocMetastoreService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDataprocMetastoreServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDataprocMetastoreServiceBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); + } + 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.dataproc.v1.MetastoreConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.MetastoreConfig other = + (com.google.cloud.dataproc.v1.MetastoreConfig) obj; + + if (!getDataprocMetastoreService().equals(other.getDataprocMetastoreService())) 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) + DATAPROC_METASTORE_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDataprocMetastoreService().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Specifies a Metastore configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.MetastoreConfig) + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.MetastoreConfig.class, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.MetastoreConfig.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(); + dataprocMetastoreService_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfig build() { + com.google.cloud.dataproc.v1.MetastoreConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { + com.google.cloud.dataproc.v1.MetastoreConfig result = + new com.google.cloud.dataproc.v1.MetastoreConfig(this); + result.dataprocMetastoreService_ = dataprocMetastoreService_; + 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.dataproc.v1.MetastoreConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.MetastoreConfig other) { + if (other == com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) return this; + if (!other.getDataprocMetastoreService().isEmpty()) { + dataprocMetastoreService_ = other.dataprocMetastoreService_; + 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.dataproc.v1.MetastoreConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.MetastoreConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object dataprocMetastoreService_ = ""; + /** + * + * + *
+     * Required. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+     * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataprocMetastoreService. + */ + public java.lang.String getDataprocMetastoreService() { + java.lang.Object ref = dataprocMetastoreService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataprocMetastoreService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+     * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataprocMetastoreService. + */ + public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { + java.lang.Object ref = dataprocMetastoreService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataprocMetastoreService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+     * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataprocMetastoreService to set. + * @return This builder for chaining. + */ + public Builder setDataprocMetastoreService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataprocMetastoreService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+     * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataprocMetastoreService() { + + dataprocMetastoreService_ = getDefaultInstance().getDataprocMetastoreService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+     * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataprocMetastoreService to set. + * @return This builder for chaining. + */ + public Builder setDataprocMetastoreServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataprocMetastoreService_ = 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.dataproc.v1.MetastoreConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.MetastoreConfig) + private static final com.google.cloud.dataproc.v1.MetastoreConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.MetastoreConfig(); + } + + public static com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastoreConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetastoreConfig(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.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java new file mode 100644 index 00000000..c0c1d17b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface MetastoreConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataprocMetastoreService. + */ + java.lang.String getDataprocMetastoreService(); + /** + * + * + *
+   * Required. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
+   * 
+ * + * + * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataprocMetastoreService. + */ + com.google.protobuf.ByteString getDataprocMetastoreServiceBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java new file mode 100644 index 00000000..0fbcac3b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java @@ -0,0 +1,683 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Node Group Affinity for clusters using sole-tenant node groups.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} + */ +public final class NodeGroupAffinity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupAffinity) + NodeGroupAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeGroupAffinity.newBuilder() to construct. + private NodeGroupAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeGroupAffinity() { + nodeGroupUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeGroupAffinity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeGroupAffinity( + 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(); + + nodeGroupUri_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroupAffinity.class, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); + } + + public static final int NODE_GROUP_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeGroupUri_; + /** + * + * + *
+   * Required. The URI of a
+   * sole-tenant [node group
+   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+   * that the cluster will be created on.
+   * A full URL, partial URI, or node group name are valid. Examples:
+   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `node-group-1`
+   * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeGroupUri. + */ + @java.lang.Override + public java.lang.String getNodeGroupUri() { + java.lang.Object ref = nodeGroupUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The URI of a
+   * sole-tenant [node group
+   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+   * that the cluster will be created on.
+   * A full URL, partial URI, or node group name are valid. Examples:
+   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `node-group-1`
+   * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeGroupUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeGroupUriBytes() { + java.lang.Object ref = nodeGroupUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNodeGroupUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeGroupUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeGroupUri_); + } + 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.dataproc.v1.NodeGroupAffinity)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.NodeGroupAffinity other = + (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; + + if (!getNodeGroupUri().equals(other.getNodeGroupUri())) 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) + NODE_GROUP_URI_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroupUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Node Group Affinity for clusters using sole-tenant node groups.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupAffinity) + com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.NodeGroupAffinity.class, + com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.NodeGroupAffinity.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(); + nodeGroupUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupAffinity build() { + com.google.cloud.dataproc.v1.NodeGroupAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() { + com.google.cloud.dataproc.v1.NodeGroupAffinity result = + new com.google.cloud.dataproc.v1.NodeGroupAffinity(this); + result.nodeGroupUri_ = nodeGroupUri_; + 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.dataproc.v1.NodeGroupAffinity) { + return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupAffinity other) { + if (other == com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance()) return this; + if (!other.getNodeGroupUri().isEmpty()) { + nodeGroupUri_ = other.nodeGroupUri_; + 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.dataproc.v1.NodeGroupAffinity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.NodeGroupAffinity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeGroupUri_ = ""; + /** + * + * + *
+     * Required. The URI of a
+     * sole-tenant [node group
+     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+     * that the cluster will be created on.
+     * A full URL, partial URI, or node group name are valid. Examples:
+     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `node-group-1`
+     * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeGroupUri. + */ + public java.lang.String getNodeGroupUri() { + java.lang.Object ref = nodeGroupUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroupUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The URI of a
+     * sole-tenant [node group
+     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+     * that the cluster will be created on.
+     * A full URL, partial URI, or node group name are valid. Examples:
+     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `node-group-1`
+     * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeGroupUri. + */ + public com.google.protobuf.ByteString getNodeGroupUriBytes() { + java.lang.Object ref = nodeGroupUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The URI of a
+     * sole-tenant [node group
+     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+     * that the cluster will be created on.
+     * A full URL, partial URI, or node group name are valid. Examples:
+     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `node-group-1`
+     * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroupUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of a
+     * sole-tenant [node group
+     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+     * that the cluster will be created on.
+     * A full URL, partial URI, or node group name are valid. Examples:
+     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `node-group-1`
+     * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeGroupUri() { + + nodeGroupUri_ = getDefaultInstance().getNodeGroupUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The URI of a
+     * sole-tenant [node group
+     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+     * that the cluster will be created on.
+     * A full URL, partial URI, or node group name are valid. Examples:
+     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+     * * `node-group-1`
+     * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroupUri_ = 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.dataproc.v1.NodeGroupAffinity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupAffinity) + private static final com.google.cloud.dataproc.v1.NodeGroupAffinity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupAffinity(); + } + + public static com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeGroupAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeGroupAffinity(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.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java new file mode 100644 index 00000000..5ec58655 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java @@ -0,0 +1,64 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface NodeGroupAffinityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The URI of a
+   * sole-tenant [node group
+   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+   * that the cluster will be created on.
+   * A full URL, partial URI, or node group name are valid. Examples:
+   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `node-group-1`
+   * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeGroupUri. + */ + java.lang.String getNodeGroupUri(); + /** + * + * + *
+   * Required. The URI of a
+   * sole-tenant [node group
+   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
+   * that the cluster will be created on.
+   * A full URL, partial URI, or node group name are valid. Examples:
+   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
+   * * `node-group-1`
+   * 
+ * + * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeGroupUri. + */ + com.google.protobuf.ByteString getNodeGroupUriBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java index 959abd9f..f9103c2a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java @@ -369,8 +369,8 @@ public JobTypeCase getJobTypeCase() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -400,8 +400,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1797,8 +1797,8 @@ public Builder clearJobType() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1827,8 +1827,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1857,8 +1857,8 @@ public com.google.protobuf.ByteString getStepIdBytes() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1886,8 +1886,8 @@ public Builder setStepId(java.lang.String value) { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1911,8 +1911,8 @@ public Builder clearStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java index 198e4fca..1b61d806 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java @@ -31,8 +31,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -51,8 +51,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - * steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + * field from other steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java index de0b236c..1f47fc8a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java @@ -124,9 +124,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -150,9 +150,9 @@ public com.google.protobuf.ProtocolStringList getQueriesList() {
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -176,9 +176,9 @@ public int getQueriesCount() {
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -203,9 +203,9 @@ public java.lang.String getQueries(int index) {
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -575,9 +575,9 @@ private void ensureQueriesIsMutable() {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -601,9 +601,9 @@ public com.google.protobuf.ProtocolStringList getQueriesList() {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -627,9 +627,9 @@ public int getQueriesCount() {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -654,9 +654,9 @@ public java.lang.String getQueries(int index) {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -681,9 +681,9 @@ public com.google.protobuf.ByteString getQueriesBytes(int index) {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -715,9 +715,9 @@ public Builder setQueries(int index, java.lang.String value) {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -748,9 +748,9 @@ public Builder addQueries(java.lang.String value) {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -778,9 +778,9 @@ public Builder addAllQueries(java.lang.Iterable values) {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
@@ -807,9 +807,9 @@ public Builder clearQueries() {
      *
      *
      * 
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
+     * Required. The queries to execute. You do not need to end a query expression
+     * with a semicolon. Multiple queries can be specified in one
+     * string by separating each with a semicolon. Here is an example of a
      * Dataproc API snippet that uses a QueryList to specify a HiveJob:
      *     "hiveJob": {
      *       "queryList": {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java
index 568b46aa..05bb09a0 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java
@@ -27,9 +27,9 @@ public interface QueryListOrBuilder
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -51,9 +51,9 @@ public interface QueryListOrBuilder
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -75,9 +75,9 @@ public interface QueryListOrBuilder
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
@@ -100,9 +100,9 @@ public interface QueryListOrBuilder
    *
    *
    * 
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
+   * Required. The queries to execute. You do not need to end a query expression
+   * with a semicolon. Multiple queries can be specified in one
+   * string by separating each with a semicolon. Here is an example of a
    * Dataproc API snippet that uses a QueryList to specify a HiveJob:
    *     "hiveJob": {
    *       "queryList": {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
index dade0e6c..1cf38ac7 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Security related configuration, including Kerberos.
+ * Security related configuration, including encryption, Kerberos, etc.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} @@ -82,6 +82,22 @@ private SecurityConfig( kerberosConfig_ = subBuilder.buildPartial(); } + break; + } + case 18: + { + com.google.cloud.dataproc.v1.IdentityConfig.Builder subBuilder = null; + if (identityConfig_ != null) { + subBuilder = identityConfig_.toBuilder(); + } + identityConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.IdentityConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(identityConfig_); + identityConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -124,10 +140,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the kerberosConfig field is set. */ @@ -139,10 +157,12 @@ public boolean hasKerberosConfig() { * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The kerberosConfig. */ @@ -156,16 +176,75 @@ public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { return getKerberosConfig(); } + public static final int IDENTITY_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the identityConfig field is set. + */ + @java.lang.Override + public boolean hasIdentityConfig() { + return identityConfig_ != null; + } + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; + } + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { + return getIdentityConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -183,6 +262,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kerberosConfig_ != null) { output.writeMessage(1, getKerberosConfig()); } + if (identityConfig_ != null) { + output.writeMessage(2, getIdentityConfig()); + } unknownFields.writeTo(output); } @@ -195,6 +277,9 @@ public int getSerializedSize() { if (kerberosConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig()); } + if (identityConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentityConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -215,6 +300,10 @@ public boolean equals(final java.lang.Object obj) { if (hasKerberosConfig()) { if (!getKerberosConfig().equals(other.getKerberosConfig())) return false; } + if (hasIdentityConfig() != other.hasIdentityConfig()) return false; + if (hasIdentityConfig()) { + if (!getIdentityConfig().equals(other.getIdentityConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,6 +319,10 @@ public int hashCode() { hash = (37 * hash) + KERBEROS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getKerberosConfig().hashCode(); } + if (hasIdentityConfig()) { + hash = (37 * hash) + IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdentityConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -334,7 +427,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Security related configuration, including Kerberos.
+   * Security related configuration, including encryption, Kerberos, etc.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} @@ -381,6 +474,12 @@ public Builder clear() { kerberosConfig_ = null; kerberosConfigBuilder_ = null; } + if (identityConfigBuilder_ == null) { + identityConfig_ = null; + } else { + identityConfig_ = null; + identityConfigBuilder_ = null; + } return this; } @@ -413,6 +512,11 @@ public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { } else { result.kerberosConfig_ = kerberosConfigBuilder_.build(); } + if (identityConfigBuilder_ == null) { + result.identityConfig_ = identityConfig_; + } else { + result.identityConfig_ = identityConfigBuilder_.build(); + } onBuilt(); return result; } @@ -465,6 +569,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SecurityConfig other) { if (other.hasKerberosConfig()) { mergeKerberosConfig(other.getKerberosConfig()); } + if (other.hasIdentityConfig()) { + mergeIdentityConfig(other.getIdentityConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -504,10 +611,12 @@ public Builder mergeFrom( * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the kerberosConfig field is set. */ @@ -518,10 +627,12 @@ public boolean hasKerberosConfig() { * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The kerberosConfig. */ @@ -538,10 +649,12 @@ public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { @@ -560,10 +673,12 @@ public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig val * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKerberosConfig( com.google.cloud.dataproc.v1.KerberosConfig.Builder builderForValue) { @@ -580,10 +695,12 @@ public Builder setKerberosConfig( * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { if (kerberosConfigBuilder_ == null) { @@ -606,10 +723,12 @@ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig v * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKerberosConfig() { if (kerberosConfigBuilder_ == null) { @@ -626,10 +745,12 @@ public Builder clearKerberosConfig() { * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.KerberosConfig.Builder getKerberosConfigBuilder() { @@ -640,10 +761,12 @@ public com.google.cloud.dataproc.v1.KerberosConfig.Builder getKerberosConfigBuil * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { if (kerberosConfigBuilder_ != null) { @@ -658,10 +781,12 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB * * *
-     * Kerberos related configuration.
+     * Optional. Kerberos related configuration.
      * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1.KerberosConfig, @@ -680,6 +805,219 @@ public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrB return kerberosConfigBuilder_; } + private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> + identityConfigBuilder_; + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the identityConfig field is set. + */ + public boolean hasIdentityConfig() { + return identityConfigBuilder_ != null || identityConfig_ != null; + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityConfig. + */ + public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { + if (identityConfigBuilder_ == null) { + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; + } else { + return identityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { + if (identityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityConfig_ = value; + onChanged(); + } else { + identityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdentityConfig( + com.google.cloud.dataproc.v1.IdentityConfig.Builder builderForValue) { + if (identityConfigBuilder_ == null) { + identityConfig_ = builderForValue.build(); + onChanged(); + } else { + identityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { + if (identityConfigBuilder_ == null) { + if (identityConfig_ != null) { + identityConfig_ = + com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + identityConfig_ = value; + } + onChanged(); + } else { + identityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdentityConfig() { + if (identityConfigBuilder_ == null) { + identityConfig_ = null; + onChanged(); + } else { + identityConfig_ = null; + identityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.IdentityConfig.Builder getIdentityConfigBuilder() { + + onChanged(); + return getIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { + if (identityConfigBuilder_ != null) { + return identityConfigBuilder_.getMessageOrBuilder(); + } else { + return identityConfig_ == null + ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() + : identityConfig_; + } + } + /** + * + * + *
+     * Optional. Identity related configuration, including service account based
+     * secure multi-tenancy user mappings.
+     * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> + getIdentityConfigFieldBuilder() { + if (identityConfigBuilder_ == null) { + identityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.IdentityConfig, + com.google.cloud.dataproc.v1.IdentityConfig.Builder, + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( + getIdentityConfig(), getParentForChildren(), isClean()); + identityConfig_ = null; + } + return identityConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java index c0b788a2..15cabbf9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java @@ -27,10 +27,12 @@ public interface SecurityConfigOrBuilder * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the kerberosConfig field is set. */ @@ -39,10 +41,12 @@ public interface SecurityConfigOrBuilder * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The kerberosConfig. */ @@ -51,10 +55,56 @@ public interface SecurityConfigOrBuilder * * *
-   * Kerberos related configuration.
+   * Optional. Kerberos related configuration.
    * 
* - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1; + * + * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the identityConfig field is set. + */ + boolean hasIdentityConfig(); + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The identityConfig. + */ + com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig(); + /** + * + * + *
+   * Optional. Identity related configuration, including service account based
+   * secure multi-tenancy user mappings.
+   * 
+ * + * + * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java new file mode 100644 index 00000000..e5853518 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java @@ -0,0 +1,223 @@ +/* + * 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.dataproc.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ServiceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/services/{service}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String service; + + @Deprecated + protected ServiceName() { + project = null; + location = null; + service = null; + } + + private ServiceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + service = Preconditions.checkNotNull(builder.getService()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ServiceName of(String project, String location, String service) { + return newBuilder().setProject(project).setLocation(location).setService(service).build(); + } + + public static String format(String project, String location, String service) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static ServiceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SERVICE.validatedMatch( + formattedString, "ServiceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("service")); + } + + 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 (ServiceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SERVICE.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 (service != null) { + fieldMapBuilder.put("service", service); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SERVICE.instantiate( + "project", project, "location", location, "service", service); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ServiceName that = ((ServiceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.service, that.service); + } + 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(service); + return h; + } + + /** Builder for projects/{project}/locations/{location}/services/{service}. */ + public static class Builder { + private String project; + private String location; + private String service; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setService(String service) { + this.service = service; + return this; + } + + private Builder(ServiceName serviceName) { + project = serviceName.project; + location = serviceName.location; + service = serviceName.service; + } + + public ServiceName build() { + return new ServiceName(this); + } + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java index 923a4367..758072b2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -37,21 +37,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n%google/cloud/dataproc/v1/shared.proto\022" + "\030google.cloud.dataproc.v1\032\034google/api/an" - + "notations.proto*|\n\tComponent\022\031\n\025COMPONEN" - + "T_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\020\n\014HIVE_WE" - + "BHCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022\014\n\010ZEPP" - + "ELIN\020\004\022\r\n\tZOOKEEPER\020\010Bo\n\034com.google.clou" - + "d.dataproc.v1B\013SharedProtoP\001Z@google.gol" - + "ang.org/genproto/googleapis/cloud/datapr" - + "oc/v1;dataprocb\006proto3" + + "notations.proto\032\037google/api/field_behavi" + + "or.proto*\277\001\n\tComponent\022\031\n\025COMPONENT_UNSP" + + "ECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005D" + + "RUID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEB" + + "HCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022\n\n\006RANGE" + + "R\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZOOKEEPER" + + "\020\010Bo\n\034com.google.cloud.dataproc.v1B\013Shar" + + "edProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/cloud/dataproc/v1;dataprocb\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), }); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java new file mode 100644 index 00000000..01d8b14f --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java @@ -0,0 +1,728 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Shielded Instance Config for clusters using [Compute Engine Shielded
+ * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig} + */ +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig) + ShieldedInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedInstanceConfig.newBuilder() to construct. + private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedInstanceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedInstanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShieldedInstanceConfig( + 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 8: + { + enableSecureBoot_ = input.readBool(); + break; + } + case 16: + { + enableVtpm_ = input.readBool(); + break; + } + case 24: + { + enableIntegrityMonitoring_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class); + } + + public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; + private boolean enableSecureBoot_; + /** + * + * + *
+   * Optional. Defines whether instances have Secure Boot enabled.
+   * 
+ * + * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + + public static final int ENABLE_VTPM_FIELD_NUMBER = 2; + private boolean enableVtpm_; + /** + * + * + *
+   * Optional. Defines whether instances have the vTPM enabled.
+   * 
+ * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+   * Optional. Defines whether instances have integrity monitoring enabled.
+   * 
+ * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableVtpm_ != false) { + output.writeBool(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(3, enableIntegrityMonitoring_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSecureBoot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); + } + 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.dataproc.v1.ShieldedInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = + (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; + + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) 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) + ENABLE_SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Shielded Instance Config for clusters using [Compute Engine Shielded
+   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig) + com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, + com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ShieldedInstanceConfig.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(); + enableSecureBoot_ = false; + + enableVtpm_ = false; + + enableIntegrityMonitoring_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig build() { + com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() { + com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = + new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this); + result.enableSecureBoot_ = enableSecureBoot_; + result.enableVtpm_ = enableVtpm_; + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + 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.dataproc.v1.ShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ShieldedInstanceConfig other) { + if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance()) + return this; + if (other.getEnableSecureBoot() != false) { + setEnableSecureBoot(other.getEnableSecureBoot()); + } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + 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.dataproc.v1.ShieldedInstanceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableSecureBoot_; + /** + * + * + *
+     * Optional. Defines whether instances have Secure Boot enabled.
+     * 
+ * + * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + /** + * + * + *
+     * Optional. Defines whether instances have Secure Boot enabled.
+     * 
+ * + * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableSecureBoot to set. + * @return This builder for chaining. + */ + public Builder setEnableSecureBoot(boolean value) { + + enableSecureBoot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines whether instances have Secure Boot enabled.
+     * 
+ * + * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableSecureBoot() { + + enableSecureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableVtpm_; + /** + * + * + *
+     * Optional. Defines whether instances have the vTPM enabled.
+     * 
+ * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + /** + * + * + *
+     * Optional. Defines whether instances have the vTPM enabled.
+     * 
+ * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableVtpm to set. + * @return This builder for chaining. + */ + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines whether instances have the vTPM enabled.
+     * 
+ * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableVtpm() { + + enableVtpm_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+     * Optional. Defines whether instances have integrity monitoring enabled.
+     * 
+ * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + /** + * + * + *
+     * Optional. Defines whether instances have integrity monitoring enabled.
+     * 
+ * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines whether instances have integrity monitoring enabled.
+     * 
+ * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + + enableIntegrityMonitoring_ = false; + 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.dataproc.v1.ShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) + private static final com.google.cloud.dataproc.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(); + } + + public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShieldedInstanceConfig(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.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 00000000..26e0a138 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,64 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Defines whether instances have Secure Boot enabled.
+   * 
+ * + * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); + + /** + * + * + *
+   * Optional. Defines whether instances have the vTPM enabled.
+   * 
+ * + * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + * + * + *
+   * Optional. Defines whether instances have integrity monitoring enabled.
+   * 
+ * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java new file mode 100644 index 00000000..e2fae913 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java @@ -0,0 +1,1428 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to start a cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} + */ +public final class StartClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StartClusterRequest) + StartClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StartClusterRequest.newBuilder() to construct. + private StartClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StartClusterRequest() { + projectId_ = ""; + region_ = ""; + clusterName_ = ""; + clusterUuid_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StartClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StartClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + region_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterUuid_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.StartClusterRequest.class, + com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 2; + private volatile java.lang.Object region_; + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterName_; + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + @java.lang.Override + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterUuid_; + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + @java.lang.Override + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getRegionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); + } + if (!getClusterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); + } + if (!getClusterUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); + } + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getRegionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); + } + if (!getClusterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); + } + if (!getClusterUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); + } + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); + } + 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.dataproc.v1.StartClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.StartClusterRequest other = + (com.google.cloud.dataproc.v1.StartClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterName().hashCode(); + hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUuid().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to start a cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StartClusterRequest) + com.google.cloud.dataproc.v1.StartClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.StartClusterRequest.class, + com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.StartClusterRequest.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(); + projectId_ = ""; + + region_ = ""; + + clusterName_ = ""; + + clusterUuid_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StartClusterRequest build() { + com.google.cloud.dataproc.v1.StartClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { + com.google.cloud.dataproc.v1.StartClusterRequest result = + new com.google.cloud.dataproc.v1.StartClusterRequest(this); + result.projectId_ = projectId_; + result.region_ = region_; + result.clusterName_ = clusterName_; + result.clusterUuid_ = clusterUuid_; + result.requestId_ = requestId_; + 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.dataproc.v1.StartClusterRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.StartClusterRequest other) { + if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + onChanged(); + } + if (!other.getClusterName().isEmpty()) { + clusterName_ = other.clusterName_; + onChanged(); + } + if (!other.getClusterUuid().isEmpty()) { + clusterUuid_ = other.clusterUuid_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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.dataproc.v1.StartClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.StartClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + region_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + region_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterName_ = ""; + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterName() { + + clusterName_ = getDefaultInstance().getClusterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterUuid_ = ""; + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + public com.google.protobuf.ByteString getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterUuid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterUuid() { + + clusterUuid_ = getDefaultInstance().getClusterUuid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + 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.dataproc.v1.StartClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StartClusterRequest) + private static final com.google.cloud.dataproc.v1.StartClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StartClusterRequest(); + } + + public static com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartClusterRequest(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.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java new file mode 100644 index 00000000..21333938 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface StartClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StartClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + java.lang.String getClusterName(); + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + com.google.protobuf.ByteString getClusterNameBytes(); + + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + java.lang.String getClusterUuid(); + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + com.google.protobuf.ByteString getClusterUuidBytes(); + + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java new file mode 100644 index 00000000..b4c62c13 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java @@ -0,0 +1,1428 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to stop a cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} + */ +public final class StopClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StopClusterRequest) + StopClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopClusterRequest.newBuilder() to construct. + private StopClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StopClusterRequest() { + projectId_ = ""; + region_ = ""; + clusterName_ = ""; + clusterUuid_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StopClusterRequest( + 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(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + region_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterUuid_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.StopClusterRequest.class, + com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 2; + private volatile java.lang.Object region_; + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterName_; + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + @java.lang.Override + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UUID_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterUuid_; + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + @java.lang.Override + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getRegionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); + } + if (!getClusterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); + } + if (!getClusterUuidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); + } + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getRegionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); + } + if (!getClusterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); + } + if (!getClusterUuidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); + } + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); + } + 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.dataproc.v1.StopClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.StopClusterRequest other = + (com.google.cloud.dataproc.v1.StopClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterName().hashCode(); + hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUuid().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to stop a cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StopClusterRequest) + com.google.cloud.dataproc.v1.StopClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.StopClusterRequest.class, + com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.StopClusterRequest.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(); + projectId_ = ""; + + region_ = ""; + + clusterName_ = ""; + + clusterUuid_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StopClusterRequest build() { + com.google.cloud.dataproc.v1.StopClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { + com.google.cloud.dataproc.v1.StopClusterRequest result = + new com.google.cloud.dataproc.v1.StopClusterRequest(this); + result.projectId_ = projectId_; + result.region_ = region_; + result.clusterName_ = clusterName_; + result.clusterUuid_ = clusterUuid_; + result.requestId_ = requestId_; + 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.dataproc.v1.StopClusterRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.StopClusterRequest other) { + if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + onChanged(); + } + if (!other.getClusterName().isEmpty()) { + clusterName_ = other.clusterName_; + onChanged(); + } + if (!other.getClusterUuid().isEmpty()) { + clusterUuid_ = other.clusterUuid_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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.dataproc.v1.StopClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.StopClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the Google Cloud Platform project the
+     * cluster belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + region_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Dataproc region in which to handle the request.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + region_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterName_ = ""; + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + public java.lang.String getClusterName() { + java.lang.Object ref = clusterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + public com.google.protobuf.ByteString getClusterNameBytes() { + java.lang.Object ref = clusterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterName() { + + clusterName_ = getDefaultInstance().getClusterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cluster name.
+     * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterName to set. + * @return This builder for chaining. + */ + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterUuid_ = ""; + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + public java.lang.String getClusterUuid() { + java.lang.Object ref = clusterUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + public com.google.protobuf.ByteString getClusterUuidBytes() { + java.lang.Object ref = clusterUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterUuid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterUuid() { + + clusterUuid_ = getDefaultInstance().getClusterUuid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifying the `cluster_uuid` means the RPC will fail
+     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+     * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterUuid to set. + * @return This builder for chaining. + */ + public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterUuid_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique id used to identify the request. If the server
+     * receives two
+     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+     * with the same id, then the second request will be ignored and the
+     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+     * backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + 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.dataproc.v1.StopClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StopClusterRequest) + private static final com.google.cloud.dataproc.v1.StopClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StopClusterRequest(); + } + + public static com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopClusterRequest(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.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java new file mode 100644 index 00000000..db7d5089 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface StopClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StopClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Required. The ID of the Google Cloud Platform project the
+   * cluster belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + /** + * + * + *
+   * Required. The Dataproc region in which to handle the request.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterName. + */ + java.lang.String getClusterName(); + /** + * + * + *
+   * Required. The cluster name.
+   * 
+ * + * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterName. + */ + com.google.protobuf.ByteString getClusterNameBytes(); + + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterUuid. + */ + java.lang.String getClusterUuid(); + /** + * + * + *
+   * Optional. Specifying the `cluster_uuid` means the RPC will fail
+   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
+   * 
+ * + * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterUuid. + */ + com.google.protobuf.ByteString getClusterUuidBytes(); + + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique id used to identify the request. If the server
+   * receives two
+   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
+   * with the same id, then the second request will be ignored and the
+   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+   * backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java index f09f3fd4..146b7e6c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java @@ -295,8 +295,9 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { * *
    * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -326,8 +327,9 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -1130,8 +1132,9 @@ public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1160,8 +1163,9 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1190,8 +1194,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1219,8 +1224,9 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
@@ -1244,8 +1250,9 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java
index 89394a14..cc9dcd73 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java
@@ -115,8 +115,9 @@ public interface SubmitJobRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
@@ -135,8 +136,9 @@ public interface SubmitJobRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
index 31d64261..5841367c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
@@ -228,10 +228,10 @@ public com.google.protobuf.ByteString getNameBytes() {
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -277,10 +277,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -326,10 +326,10 @@ public int getFieldsCount() {
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -376,10 +376,10 @@ public java.lang.String getFields(int index) {
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -1081,10 +1081,10 @@ private void ensureFieldsIsMutable() {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1130,10 +1130,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1179,10 +1179,10 @@ public int getFieldsCount() {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1229,10 +1229,10 @@ public java.lang.String getFields(int index) {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1279,10 +1279,10 @@ public com.google.protobuf.ByteString getFieldsBytes(int index) {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1336,10 +1336,10 @@ public Builder setFields(int index, java.lang.String value) {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1392,10 +1392,10 @@ public Builder addFields(java.lang.String value) {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1445,10 +1445,10 @@ public Builder addAllFields(java.lang.Iterable values) {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
@@ -1497,10 +1497,10 @@ public Builder clearFields() {
      * Required. Paths to all fields that the parameter replaces.
      * A field is allowed to appear in at most one parameter's list of field
      * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
+     * A field path is similar in syntax to a
+     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+     * field path that references the zone field of a workflow template's cluster
+     * selector would be specified as `placement.clusterSelector.zone`.
      * Also, field paths can reference fields using the following syntax:
      * * Values in maps can be referenced by key:
      *     * labels['key']
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java
index 5625583f..9a57e01c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java
@@ -67,10 +67,10 @@ public interface TemplateParameterOrBuilder
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -114,10 +114,10 @@ public interface TemplateParameterOrBuilder
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -161,10 +161,10 @@ public interface TemplateParameterOrBuilder
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
@@ -209,10 +209,10 @@ public interface TemplateParameterOrBuilder
    * Required. Paths to all fields that the parameter replaces.
    * A field is allowed to appear in at most one parameter's list of field
    * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
+   * A field path is similar in syntax to a
+   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
+   * field path that references the zone field of a workflow template's cluster
+   * selector would be specified as `placement.clusterSelector.zone`.
    * Also, field paths can reference fields using the following syntax:
    * * Values in maps can be referenced by key:
    *     * labels['key']
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
index 20788914..0b73b240 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
@@ -651,8 +651,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -682,8 +683,9 @@ public java.lang.String getRequestId() {
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -2576,8 +2578,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -2606,8 +2609,9 @@ public java.lang.String getRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -2636,8 +2640,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -2665,8 +2670,9 @@ public Builder setRequestId(java.lang.String value) {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
@@ -2690,8 +2696,9 @@ public Builder clearRequestId() {
      *
      * 
      * Optional. A unique id used to identify the request. If the server
-     * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-     * id, then the second request will be ignored and the
+     * receives two
+     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+     * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
      * backend is returned.
      * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java
index cf39dac2..64c9de7b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java
@@ -384,8 +384,9 @@ public interface UpdateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
@@ -404,8 +405,9 @@ public interface UpdateClusterRequestOrBuilder
    *
    * 
    * Optional. A unique id used to identify the request. If the server
-   * receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests  with the same
-   * id, then the second request will be ignored and the
+   * receives two
+   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
+   * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
    * backend is returned.
    * It is recommended to always set this value to a
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java
index 4d8f25d6..8903df0c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java
@@ -198,6 +198,51 @@ private WorkflowMetadata(
               java.lang.String s = input.readStringRequireUtf8();
 
               clusterUuid_ = s;
+              break;
+            }
+          case 98:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (dagTimeout_ != null) {
+                subBuilder = dagTimeout_.toBuilder();
+              }
+              dagTimeout_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagTimeout_);
+                dagTimeout_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 106:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (dagStartTime_ != null) {
+                subBuilder = dagStartTime_.toBuilder();
+              }
+              dagStartTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagStartTime_);
+                dagStartTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 114:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (dagEndTime_ != null) {
+                subBuilder = dagEndTime_.toBuilder();
+              }
+              dagEndTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dagEndTime_);
+                dagEndTime_ = subBuilder.buildPartial();
+              }
+
               break;
             }
           default:
@@ -1005,6 +1050,179 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
     }
   }
 
+  public static final int DAG_TIMEOUT_FIELD_NUMBER = 12;
+  private com.google.protobuf.Duration dagTimeout_;
+  /**
+   *
+   *
+   * 
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + @java.lang.Override + public boolean hasDagTimeout() { + return dagTimeout_ != null; + } + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getDagTimeout() { + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + } + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + return getDagTimeout(); + } + + public static final int DAG_START_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp dagStartTime_; + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + @java.lang.Override + public boolean hasDagStartTime() { + return dagStartTime_ != null; + } + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDagStartTime() { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { + return getDagStartTime(); + } + + public static final int DAG_END_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp dagEndTime_; + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + @java.lang.Override + public boolean hasDagEndTime() { + return dagEndTime_ != null; + } + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDagEndTime() { + return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; + } + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { + return getDagEndTime(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1051,6 +1269,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getClusterUuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_); } + if (dagTimeout_ != null) { + output.writeMessage(12, getDagTimeout()); + } + if (dagStartTime_ != null) { + output.writeMessage(13, getDagStartTime()); + } + if (dagEndTime_ != null) { + output.writeMessage(14, getDagEndTime()); + } unknownFields.writeTo(output); } @@ -1100,6 +1327,15 @@ public int getSerializedSize() { if (!getClusterUuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); } + if (dagTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); + } + if (dagStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); + } + if (dagEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1142,6 +1378,18 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (!getClusterUuid().equals(other.getClusterUuid())) return false; + if (hasDagTimeout() != other.hasDagTimeout()) return false; + if (hasDagTimeout()) { + if (!getDagTimeout().equals(other.getDagTimeout())) return false; + } + if (hasDagStartTime() != other.hasDagStartTime()) return false; + if (hasDagStartTime()) { + if (!getDagStartTime().equals(other.getDagStartTime())) return false; + } + if (hasDagEndTime() != other.hasDagEndTime()) return false; + if (hasDagEndTime()) { + if (!getDagEndTime().equals(other.getDagEndTime())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1187,6 +1435,18 @@ public int hashCode() { } hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; hash = (53 * hash) + getClusterUuid().hashCode(); + if (hasDagTimeout()) { + hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getDagTimeout().hashCode(); + } + if (hasDagStartTime()) { + hash = (37 * hash) + DAG_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDagStartTime().hashCode(); + } + if (hasDagEndTime()) { + hash = (37 * hash) + DAG_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDagEndTime().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1393,6 +1653,24 @@ public Builder clear() { } clusterUuid_ = ""; + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = null; + } else { + dagStartTime_ = null; + dagStartTimeBuilder_ = null; + } + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = null; + } else { + dagEndTime_ = null; + dagEndTimeBuilder_ = null; + } return this; } @@ -1453,6 +1731,21 @@ public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { result.endTime_ = endTimeBuilder_.build(); } result.clusterUuid_ = clusterUuid_; + if (dagTimeoutBuilder_ == null) { + result.dagTimeout_ = dagTimeout_; + } else { + result.dagTimeout_ = dagTimeoutBuilder_.build(); + } + if (dagStartTimeBuilder_ == null) { + result.dagStartTime_ = dagStartTime_; + } else { + result.dagStartTime_ = dagStartTimeBuilder_.build(); + } + if (dagEndTimeBuilder_ == null) { + result.dagEndTime_ = dagEndTime_; + } else { + result.dagEndTime_ = dagEndTimeBuilder_.build(); + } onBuilt(); return result; } @@ -1536,6 +1829,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) { clusterUuid_ = other.clusterUuid_; onChanged(); } + if (other.hasDagTimeout()) { + mergeDagTimeout(other.getDagTimeout()); + } + if (other.hasDagStartTime()) { + mergeDagStartTime(other.getDagStartTime()); + } + if (other.hasDagEndTime()) { + mergeDagEndTime(other.getDagEndTime()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3225,6 +3527,665 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration dagTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + public boolean hasDagTimeout() { + return dagTimeoutBuilder_ != null || dagTimeout_ != null; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + public com.google.protobuf.Duration getDagTimeout() { + if (dagTimeoutBuilder_ == null) { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } else { + return dagTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagTimeout_ = value; + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = builderForValue.build(); + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (dagTimeout_ != null) { + dagTimeout_ = + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + } else { + dagTimeout_ = value; + } + onChanged(); + } else { + dagTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagTimeout() { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + onChanged(); + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { + + onChanged(); + return getDagTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + if (dagTimeoutBuilder_ != null) { + return dagTimeoutBuilder_.getMessageOrBuilder(); + } else { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } + } + /** + * + * + *
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+     * (see [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * 
+ * + * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDagTimeoutFieldBuilder() { + if (dagTimeoutBuilder_ == null) { + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); + dagTimeout_ = null; + } + return dagTimeoutBuilder_; + } + + private com.google.protobuf.Timestamp dagStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagStartTimeBuilder_; + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + public boolean hasDagStartTime() { + return dagStartTimeBuilder_ != null || dagStartTime_ != null; + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + public com.google.protobuf.Timestamp getDagStartTime() { + if (dagStartTimeBuilder_ == null) { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } else { + return dagStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagStartTime(com.google.protobuf.Timestamp value) { + if (dagStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagStartTime_ = value; + onChanged(); + } else { + dagStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = builderForValue.build(); + onChanged(); + } else { + dagStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { + if (dagStartTimeBuilder_ == null) { + if (dagStartTime_ != null) { + dagStartTime_ = + com.google.protobuf.Timestamp.newBuilder(dagStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + dagStartTime_ = value; + } + onChanged(); + } else { + dagStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagStartTime() { + if (dagStartTimeBuilder_ == null) { + dagStartTime_ = null; + onChanged(); + } else { + dagStartTime_ = null; + dagStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { + + onChanged(); + return getDagStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { + if (dagStartTimeBuilder_ != null) { + return dagStartTimeBuilder_.getMessageOrBuilder(); + } else { + return dagStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagStartTime_; + } + } + /** + * + * + *
+     * Output only. DAG start time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG begins.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDagStartTimeFieldBuilder() { + if (dagStartTimeBuilder_ == null) { + dagStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagStartTime(), getParentForChildren(), isClean()); + dagStartTime_ = null; + } + return dagStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp dagEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dagEndTimeBuilder_; + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + public boolean hasDagEndTime() { + return dagEndTimeBuilder_ != null || dagEndTime_ != null; + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + public com.google.protobuf.Timestamp getDagEndTime() { + if (dagEndTimeBuilder_ == null) { + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; + } else { + return dagEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagEndTime(com.google.protobuf.Timestamp value) { + if (dagEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagEndTime_ = value; + onChanged(); + } else { + dagEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = builderForValue.build(); + onChanged(); + } else { + dagEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { + if (dagEndTimeBuilder_ == null) { + if (dagEndTime_ != null) { + dagEndTime_ = + com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); + } else { + dagEndTime_ = value; + } + onChanged(); + } else { + dagEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDagEndTime() { + if (dagEndTimeBuilder_ == null) { + dagEndTime_ = null; + onChanged(); + } else { + dagEndTime_ = null; + dagEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { + + onChanged(); + return getDagEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { + if (dagEndTimeBuilder_ != null) { + return dagEndTimeBuilder_.getMessageOrBuilder(); + } else { + return dagEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dagEndTime_; + } + } + /** + * + * + *
+     * Output only. DAG end time, only set for workflows with
+     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+     * DAG ends.
+     * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDagEndTimeFieldBuilder() { + if (dagEndTimeBuilder_ == null) { + dagEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDagEndTime(), getParentForChildren(), isClean()); + dagEndTime_ = null; + } + return dagEndTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java index 61c07982..30219062 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java @@ -407,4 +407,142 @@ public interface WorkflowMetadataOrBuilder * @return The bytes for clusterUuid. */ com.google.protobuf.ByteString getClusterUuidBytes(); + + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagTimeout field is set. + */ + boolean hasDagTimeout(); + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagTimeout. + */ + com.google.protobuf.Duration getDagTimeout(); + /** + * + * + *
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
+   * (see [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); + + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagStartTime field is set. + */ + boolean hasDagStartTime(); + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagStartTime. + */ + com.google.protobuf.Timestamp getDagStartTime(); + /** + * + * + *
+   * Output only. DAG start time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG begins.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dagEndTime field is set. + */ + boolean hasDagEndTime(); + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dagEndTime. + */ + com.google.protobuf.Timestamp getDagEndTime(); + /** + * + * + *
+   * Output only. DAG end time, only set for workflows with
+   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
+   * DAG ends.
+   * 
+ * + * + * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index f6fa56c0..3c2e2bf8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java @@ -176,6 +176,21 @@ private WorkflowTemplate( com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry)); break; } + case 82: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (dagTimeout_ != null) { + subBuilder = dagTimeout_.toBuilder(); + } + dagTimeout_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dagTimeout_); + dagTimeout_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -802,6 +817,82 @@ public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBu return parameters_.get(index); } + public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; + private com.google.protobuf.Duration dagTimeout_; + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + @java.lang.Override + public boolean hasDagTimeout() { + return dagTimeout_ != null; + } + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getDagTimeout() { + return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; + } + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + return getDagTimeout(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -842,6 +933,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(9, parameters_.get(i)); } + if (dagTimeout_ != null) { + output.writeMessage(10, getDagTimeout()); + } unknownFields.writeTo(output); } @@ -885,6 +979,9 @@ public int getSerializedSize() { for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); } + if (dagTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -919,6 +1016,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getJobsList().equals(other.getJobsList())) return false; if (!getParametersList().equals(other.getParametersList())) return false; + if (hasDagTimeout() != other.hasDagTimeout()) return false; + if (hasDagTimeout()) { + if (!getDagTimeout().equals(other.getDagTimeout())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -960,6 +1061,10 @@ public int hashCode() { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } + if (hasDagTimeout()) { + hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getDagTimeout().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1165,6 +1270,12 @@ public Builder clear() { } else { parametersBuilder_.clear(); } + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } return this; } @@ -1231,6 +1342,11 @@ public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } + if (dagTimeoutBuilder_ == null) { + result.dagTimeout_ = dagTimeout_; + } else { + result.dagTimeout_ = dagTimeoutBuilder_.build(); + } onBuilt(); return result; } @@ -1355,6 +1471,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { } } } + if (other.hasDagTimeout()) { + mergeDagTimeout(other.getDagTimeout()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3303,6 +3422,279 @@ public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuild return parametersBuilder_; } + private com.google.protobuf.Duration dagTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dagTimeoutBuilder_; + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + public boolean hasDagTimeout() { + return dagTimeoutBuilder_ != null || dagTimeout_ != null; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + public com.google.protobuf.Duration getDagTimeout() { + if (dagTimeoutBuilder_ == null) { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } else { + return dagTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dagTimeout_ = value; + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = builderForValue.build(); + onChanged(); + } else { + dagTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDagTimeout(com.google.protobuf.Duration value) { + if (dagTimeoutBuilder_ == null) { + if (dagTimeout_ != null) { + dagTimeout_ = + com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); + } else { + dagTimeout_ = value; + } + onChanged(); + } else { + dagTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDagTimeout() { + if (dagTimeoutBuilder_ == null) { + dagTimeout_ = null; + onChanged(); + } else { + dagTimeout_ = null; + dagTimeoutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { + + onChanged(); + return getDagTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { + if (dagTimeoutBuilder_ != null) { + return dagTimeoutBuilder_.getMessageOrBuilder(); + } else { + return dagTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dagTimeout_; + } + } + /** + * + * + *
+     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
+     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+     * The timeout duration must be from 10 minutes ("600s") to 24 hours
+     * ("86400s"). The timer begins when the first job is submitted. If the
+     * workflow is running at the end of the timeout period, any remaining jobs
+     * are cancelled, the workflow is ended, and if the workflow was running on a
+     * [managed
+     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+     * the cluster is deleted.
+     * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDagTimeoutFieldBuilder() { + if (dagTimeoutBuilder_ == null) { + dagTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDagTimeout(), getParentForChildren(), isClean()); + dagTimeout_ = null; + } + return dagTimeoutBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java index 524587ca..5ad42f18 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java @@ -438,4 +438,69 @@ public interface WorkflowTemplateOrBuilder * */ com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index); + + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dagTimeout field is set. + */ + boolean hasDagTimeout(); + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dagTimeout. + */ + com.google.protobuf.Duration getDagTimeout(); + /** + * + * + *
+   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
+   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
+   * The timeout duration must be from 10 minutes ("600s") to 24 hours
+   * ("86400s"). The timer begins when the first job is submitted. If the
+   * workflow is running at the end of the timeout period, any remaining jobs
+   * are cancelled, the workflow is ended, and if the workflow was running on a
+   * [managed
+   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
+   * the cluster is deleted.
+   * 
+ * + * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java index c44ab556..b5036aaf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java @@ -151,189 +151,195 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\031google/api/resource.proto\032\'google" + "/cloud/dataproc/v1/clusters.proto\032#googl" + "e/cloud/dataproc/v1/jobs.proto\032#google/l" - + "ongrunning/operations.proto\032\033google/prot" - + "obuf/empty.proto\032\037google/protobuf/timest" - + "amp.proto\"\315\005\n\020WorkflowTemplate\022\017\n\002id\030\002 \001" - + "(\tB\003\340A\002\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 " - + "\001(\005B\003\340A\001\0224\n\013create_time\030\004 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\005 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022K\n\006" - + "labels\030\006 \003(\01326.google.cloud.dataproc.v1." - + "WorkflowTemplate.LabelsEntryB\003\340A\001\022K\n\tpla" - + "cement\030\007 \001(\01323.google.cloud.dataproc.v1." - + "WorkflowTemplatePlacementB\003\340A\002\0227\n\004jobs\030\010" - + " \003(\0132$.google.cloud.dataproc.v1.OrderedJ" - + "obB\003\340A\002\022D\n\nparameters\030\t \003(\0132+.google.clo" - + "ud.dataproc.v1.TemplateParameterB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.com/Wor" - + "kflowTemplate\022Iprojects/{project}/region" - + "s/{region}/workflowTemplates/{workflow_t" - + "emplate}\022Mprojects/{project}/locations/{" - + "location}/workflowTemplates/{workflow_te" - + "mplate} \001\"\264\001\n\031WorkflowTemplatePlacement\022" - + "C\n\017managed_cluster\030\001 \001(\0132(.google.cloud." - + "dataproc.v1.ManagedClusterH\000\022E\n\020cluster_" - + "selector\030\002 \001(\0132).google.cloud.dataproc.v" - + "1.ClusterSelectorH\000B\013\n\tplacement\"\343\001\n\016Man" - + "agedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022<" - + "\n\006config\030\003 \001(\0132\'.google.cloud.dataproc.v" - + "1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(\01324.g" - + "oogle.cloud.dataproc.v1.ManagedCluster.L" - + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterSelect" - + "or\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_labels\030" - + "\002 \003(\0132<.google.cloud.dataproc.v1.Cluster" - + "Selector.ClusterLabelsEntryB\003\340A\002\0324\n\022Clus" - + "terLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 \001(\tB\003" - + "\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cloud.d" - + "ataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspark_job" - + "\030\003 \001(\0132\".google.cloud.dataproc.v1.SparkJ" - + "obB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.google." - + "cloud.dataproc.v1.PySparkJobB\003\340A\001H\000\022:\n\010h" - + "ive_job\030\005 \001(\0132!.google.cloud.dataproc.v1" - + ".HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 .googl" - + "e.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?\n\013spa" - + "rk_r_job\030\013 \001(\0132#.google.cloud.dataproc.v" - + "1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job\030\007 \001(" - + "\0132%.google.cloud.dataproc.v1.SparkSqlJob" - + "B\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.google.clo" - + "ud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006label" - + "s\030\010 \003(\01320.google.cloud.dataproc.v1.Order" - + "edJob.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\t \001" - + "(\0132\'.google.cloud.dataproc.v1.JobSchedul" - + "ingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n \003(\tB" - + "\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021TemplatePara" - + "meter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030\002 \003(\t" - + "B\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\nvalid" - + "ation\030\004 \001(\0132-.google.cloud.dataproc.v1.P" - + "arameterValidationB\003\340A\001\"\241\001\n\023ParameterVal" - + "idation\022:\n\005regex\030\001 \001(\0132).google.cloud.da" - + "taproc.v1.RegexValidationH\000\022;\n\006values\030\002 " - + "\001(\0132).google.cloud.dataproc.v1.ValueVali" - + "dationH\000B\021\n\017validation_type\"\'\n\017RegexVali" - + "dation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017ValueVal" - + "idation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\257\005\n\020Workflo" - + "wMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n\007vers" - + "ion\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 \001(\0132*" - + ".google.cloud.dataproc.v1.ClusterOperati" - + "onB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.cloud.da" - + "taproc.v1.WorkflowGraphB\003\340A\003\022G\n\016delete_c" - + "luster\030\005 \001(\0132*.google.cloud.dataproc.v1." - + "ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(\01620.g" - + "oogle.cloud.dataproc.v1.WorkflowMetadata" - + ".StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003\340A\003\022N" - + "\n\nparameters\030\010 \003(\0132:.google.cloud.datapr" - + "oc.v1.WorkflowMetadata.ParametersEntry\0223" - + "\n\nstart_time\030\t \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\031\n\014cluster_uuid\030\013" - + " \001(\tB\003\340A\003\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022\013\n\007UNKNOWN" - + "\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\"T" - + "\n\020ClusterOperation\022\031\n\014operation_id\030\001 \001(\t" - + "B\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004done\030\003 \001(\010B" - + "\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes\030\001 \003(\0132&.g" - + "oogle.cloud.dataproc.v1.WorkflowNodeB\003\340A" - + "\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030\001 \001(\tB\003\340A\003" - + "\022\"\n\025prerequisite_step_ids\030\002 \003(\tB\003\340A\003\022\023\n\006" - + "job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001(\01620.googl" - + "e.cloud.dataproc.v1.WorkflowNode.NodeSta" - + "teB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n\tNodeState" - + "\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013\n\007BLOCKED\020" - + "\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r\n\tCOMPLETE" - + "D\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWorkflowTempla" - + "teRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(datap" - + "roc.googleapis.com/WorkflowTemplate\022A\n\010t" - + "emplate\030\002 \001(\0132*.google.cloud.dataproc.v1" - + ".WorkflowTemplateB\003\340A\002\"r\n\032GetWorkflowTem" - + "plateRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(data" - + "proc.googleapis.com/WorkflowTemplate\022\024\n\007" - + "version\030\002 \001(\005B\003\340A\001\"\255\002\n\"InstantiateWorkfl" - + "owTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(dataproc.googleapis.com/WorkflowTemplat" - + "e\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nrequest_id\030\005 " - + "\001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L.google.cl" - + "oud.dataproc.v1.InstantiateWorkflowTempl" - + "ateRequest.ParametersEntryB\003\340A\001\0321\n\017Param" - + "etersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\310\001\n(InstantiateInlineWorkflowTemplate" - + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(datapro" - + "c.googleapis.com/WorkflowTemplate\022A\n\010tem" - + "plate\030\002 \001(\0132*.google.cloud.dataproc.v1.W" - + "orkflowTemplateB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" - + "B\003\340A\001\"b\n\035UpdateWorkflowTemplateRequest\022A" - + "\n\010template\030\001 \001(\0132*.google.cloud.dataproc" - + ".v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034ListWorkfl" - + "owTemplatesRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" - + "A*\022(dataproc.googleapis.com/WorkflowTemp" - + "late\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" - + "en\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflowTemplatesR" - + "esponse\022B\n\ttemplates\030\001 \003(\0132*.google.clou" - + "d.dataproc.v1.WorkflowTemplateB\003\340A\003\022\034\n\017n" - + "ext_page_token\030\002 \001(\tB\003\340A\003\"u\n\035DeleteWorkf" - + "lowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" - + "\n(dataproc.googleapis.com/WorkflowTempla" - + "te\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027WorkflowTem" - + "plateService\022\233\002\n\026CreateWorkflowTemplate\022" - + "7.google.cloud.dataproc.v1.CreateWorkflo" - + "wTemplateRequest\032*.google.cloud.dataproc" - + ".v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001\"5/v1/{par" - + "ent=projects/*/locations/*}/workflowTemp" - + "lates:\010templateZ?\"3/v1/{parent=projects/" - + "*/regions/*}/workflowTemplates:\010template" - + "\332A\017parent,template\022\364\001\n\023GetWorkflowTempla" - + "te\0224.google.cloud.dataproc.v1.GetWorkflo" - + "wTemplateRequest\032*.google.cloud.dataproc" - + ".v1.WorkflowTemplate\"{\202\323\344\223\002n\0225/v1/{name=" - + "projects/*/locations/*/workflowTemplates" - + "/*}Z5\0223/v1/{name=projects/*/regions/*/wo" - + "rkflowTemplates/*}\332A\004name\022\325\002\n\033Instantiat" - + "eWorkflowTemplate\022<.google.cloud.datapro" - + "c.v1.InstantiateWorkflowTemplateRequest\032" - + "\035.google.longrunning.Operation\"\330\001\202\323\344\223\002\214\001" - + "\"A/v1/{name=projects/*/locations/*/workf" - + "lowTemplates/*}:instantiate:\001*ZD\"?/v1/{n" - + "ame=projects/*/regions/*/workflowTemplat" - + "es/*}:instantiate:\001*\332A\004name\332A\017name,param" - + "eters\312A)\n\025google.protobuf.Empty\022\020Workflo" - + "wMetadata\022\364\002\n!InstantiateInlineWorkflowT" - + "emplate\022B.google.cloud.dataproc.v1.Insta" - + "ntiateInlineWorkflowTemplateRequest\032\035.go" - + "ogle.longrunning.Operation\"\353\001\202\323\344\223\002\246\001\"G/v" - + "1/{parent=projects/*/locations/*}/workfl" - + "owTemplates:instantiateInline:\010templateZ" - + "Q\"E/v1/{parent=projects/*/regions/*}/wor" - + "kflowTemplates:instantiateInline:\010templa" - + "te\332A\017parent,template\312A)\n\025google.protobuf" - + ".Empty\022\020WorkflowMetadata\022\246\002\n\026UpdateWorkf" - + "lowTemplate\0227.google.cloud.dataproc.v1.U" - + "pdateWorkflowTemplateRequest\032*.google.cl" - + "oud.dataproc.v1.WorkflowTemplate\"\246\001\202\323\344\223\002" - + "\224\001\032>/v1/{template.name=projects/*/locati" - + "ons/*/workflowTemplates/*}:\010templateZH\032<" - + "/v1/{template.name=projects/*/regions/*/" - + "workflowTemplates/*}:\010template\332A\010templat" - + "e\022\207\002\n\025ListWorkflowTemplates\0226.google.clo" - + "ud.dataproc.v1.ListWorkflowTemplatesRequ" - + "est\0327.google.cloud.dataproc.v1.ListWorkf" - + "lowTemplatesResponse\"}\202\323\344\223\002n\0225/v1/{paren" - + "t=projects/*/locations/*}/workflowTempla" - + "tesZ5\0223/v1/{parent=projects/*/regions/*}" - + "/workflowTemplates\332A\006parent\022\346\001\n\026DeleteWo" - + "rkflowTemplate\0227.google.cloud.dataproc.v" - + "1.DeleteWorkflowTemplateRequest\032\026.google" - + ".protobuf.Empty\"{\202\323\344\223\002n*5/v1/{name=proje" - + "cts/*/locations/*/workflowTemplates/*}Z5" - + "*3/v1/{name=projects/*/regions/*/workflo" - + "wTemplates/*}\332A\004name\032K\312A\027dataproc.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformBz\n\034com.google.cloud.da" - + "taproc.v1B\026WorkflowTemplatesProtoP\001Z@goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/dataproc/v1;dataprocb\006proto3" + + "ongrunning/operations.proto\032\036google/prot" + + "obuf/duration.proto\032\033google/protobuf/emp" + + "ty.proto\032\037google/protobuf/timestamp.prot" + + "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001" + + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006" + + " \003(\01326.google.cloud.dataproc.v1.Workflow" + + "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007" + + " \001(\01323.google.cloud.dataproc.v1.Workflow" + + "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g" + + "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022" + + "D\n\nparameters\030\t \003(\0132+.google.cloud.datap" + + "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim" + + "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co" + + "m/WorkflowTemplate\022Iprojects/{project}/r" + + "egions/{region}/workflowTemplates/{workf" + + "low_template}\022Mprojects/{project}/locati" + + "ons/{location}/workflowTemplates/{workfl" + + "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace" + + "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c" + + "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu" + + "ster_selector\030\002 \001(\0132).google.cloud.datap" + + "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001" + + "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003" + + "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap" + + "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(" + + "\01324.google.cloud.dataproc.v1.ManagedClus" + + "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS" + + "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la" + + "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl" + + "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n" + + "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 " + + "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl" + + "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar" + + "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S" + + "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go" + + "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000" + + "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr" + + "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ." + + "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?" + + "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap" + + "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job" + + "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS" + + "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl" + + "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006" + + "labels\030\010 \003(\01320.google.cloud.dataproc.v1." + + "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin" + + "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc" + + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" + + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat" + + "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030" + + "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n" + + "validation\030\004 \001(\0132-.google.cloud.dataproc" + + ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet" + + "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo" + + "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu" + + "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu" + + "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege" + + "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val" + + "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo" + + "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 " + + "\001(\0132*.google.cloud.dataproc.v1.ClusterOp" + + "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo" + + "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del" + + "ete_cluster\030\005 \001(\0132*.google.cloud.datapro" + + "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(" + + "\01620.google.cloud.dataproc.v1.WorkflowMet" + + "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" + + "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d" + + "ataproc.v1.WorkflowMetadata.ParametersEn" + + "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u" + + "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start" + + "_time\030\r \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" + + "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" + + "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" + + "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" + + "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes" + + "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl" + + "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030" + + "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003(" + + "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001" + + "(\01620.google.cloud.dataproc.v1.WorkflowNo" + + "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n" + + "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r" + + "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork" + + "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" + + "\372A*\022(dataproc.googleapis.com/WorkflowTem" + + "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d" + + "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW" + + "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A" + + "\002\372A*\n(dataproc.googleapis.com/WorkflowTe" + + "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant" + + "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001(" + + "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf" + + "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq" + + "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L" + + ".google.cloud.dataproc.v1.InstantiateWor" + + "kflowTemplateRequest.ParametersEntryB\003\340A" + + "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl" + + "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" + + "*\022(dataproc.googleapis.com/WorkflowTempl" + + "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat" + + "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques" + + "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat" + + "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou" + + "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034" + + "ListWorkflowTemplatesRequest\022@\n\006parent\030\001" + + " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo" + + "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow" + + "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g" + + "oogle.cloud.dataproc.v1.WorkflowTemplate" + + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D" + + "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001" + + "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work" + + "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W" + + "orkflowTemplateService\022\233\002\n\026CreateWorkflo" + + "wTemplate\0227.google.cloud.dataproc.v1.Cre" + + "ateWorkflowTemplateRequest\032*.google.clou" + + "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001" + + "\"5/v1/{parent=projects/*/locations/*}/wo" + + "rkflowTemplates:\010templateZ?\"3/v1/{parent" + + "=projects/*/regions/*}/workflowTemplates" + + ":\010template\332A\017parent,template\022\364\001\n\023GetWork" + + "flowTemplate\0224.google.cloud.dataproc.v1." + + "GetWorkflowTemplateRequest\032*.google.clou" + + "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225" + + "/v1/{name=projects/*/locations/*/workflo" + + "wTemplates/*}Z5\0223/v1/{name=projects/*/re" + + "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033" + + "InstantiateWorkflowTemplate\022<.google.clo" + + "ud.dataproc.v1.InstantiateWorkflowTempla" + + "teRequest\032\035.google.longrunning.Operation" + + "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio" + + "ns/*/workflowTemplates/*}:instantiate:\001*" + + "ZD\"?/v1/{name=projects/*/regions/*/workf" + + "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017" + + "name,parameters\312A)\n\025google.protobuf.Empt" + + "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin" + + "eWorkflowTemplate\022B.google.cloud.datapro" + + "c.v1.InstantiateInlineWorkflowTemplateRe" + + "quest\032\035.google.longrunning.Operation\"\353\001\202" + + "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations" + + "/*}/workflowTemplates:instantiateInline:" + + "\010templateZQ\"E/v1/{parent=projects/*/regi" + + "ons/*}/workflowTemplates:instantiateInli" + + "ne:\010template\332A\017parent,template\312A)\n\025googl" + + "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U" + + "pdateWorkflowTemplate\0227.google.cloud.dat" + + "aproc.v1.UpdateWorkflowTemplateRequest\032*" + + ".google.cloud.dataproc.v1.WorkflowTempla" + + "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project" + + "s/*/locations/*/workflowTemplates/*}:\010te" + + "mplateZH\032 user_service_account_mapping = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Specifies the selection and config of software inside the cluster. message SoftwareConfig { // Optional. The version of software inside the cluster. It must be one of the @@ -698,9 +853,9 @@ message SoftwareConfig { message LifecycleConfig { // Optional. The duration to keep the cluster alive while idling (when no jobs // are running). Passing this threshold will cause the cluster to be - // deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON + // deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON // representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). + // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). google.protobuf.Duration idle_delete_ttl = 1 [(google.api.field_behavior) = OPTIONAL]; // Either the exact time the cluster should be deleted at or @@ -724,6 +879,21 @@ message LifecycleConfig { google.protobuf.Timestamp idle_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Specifies a Metastore configuration. +message MetastoreConfig { + // Required. Resource name of an existing Dataproc Metastore service. + // + // Example: + // + // * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]` + string dataproc_metastore_service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; +} + // Contains cluster daemon metrics, such as HDFS and YARN stats. // // **Beta Feature**: This report is available for testing purposes only. It may @@ -748,9 +918,9 @@ message CreateClusterRequest { // Required. The cluster to create. Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique id used to identify the request. If the server - // receives two [CreateClusterRequest][google.cloud.dataproc.v1.CreateClusterRequest] requests with the same - // id, then the second request will be ignored and the + // Optional. A unique id used to identify the request. If the server receives two + // [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s + // with the same id, then the second request will be ignored and the // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend // is returned. // @@ -842,8 +1012,9 @@ message UpdateClusterRequest { google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; // Optional. A unique id used to identify the request. If the server - // receives two [UpdateClusterRequest][google.cloud.dataproc.v1.UpdateClusterRequest] requests with the same - // id, then the second request will be ignored and the + // receives two + // [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s + // with the same id, then the second request will be ignored and the // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the // backend is returned. // @@ -855,6 +1026,68 @@ message UpdateClusterRequest { string request_id = 7 [(google.api.field_behavior) = OPTIONAL]; } +// A request to stop a cluster. +message StopClusterRequest { + // Required. The ID of the Google Cloud Platform project the + // cluster belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Dataproc region in which to handle the request. + string region = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The cluster name. + string cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifying the `cluster_uuid` means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. + string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique id used to identify the request. If the server + // receives two + // [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s + // with the same id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the + // backend is returned. + // + // Recommendation: Set this value to a + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). + // + // The id must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to start a cluster. +message StartClusterRequest { + // Required. The ID of the Google Cloud Platform project the + // cluster belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Dataproc region in which to handle the request. + string region = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The cluster name. + string cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifying the `cluster_uuid` means the RPC will fail + // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. + string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique id used to identify the request. If the server + // receives two + // [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s + // with the same id, then the second request will be ignored and the + // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the + // backend is returned. + // + // Recommendation: Set this value to a + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). + // + // The id must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; +} + // A request to delete a cluster. message DeleteClusterRequest { // Required. The ID of the Google Cloud Platform project that the cluster @@ -872,8 +1105,9 @@ message DeleteClusterRequest { string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A unique id used to identify the request. If the server - // receives two [DeleteClusterRequest][google.cloud.dataproc.v1.DeleteClusterRequest] requests with the same - // id, then the second request will be ignored and the + // receives two + // [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s + // with the same id, then the second request will be ignored and the // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the // backend is returned. // diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto index 065530f3..f3521b5d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto @@ -32,7 +32,8 @@ option java_package = "com.google.cloud.dataproc.v1"; // The JobController provides methods to manage jobs. service JobController { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Submits a job to a cluster. rpc SubmitJob(SubmitJobRequest) returns (Job) { @@ -44,7 +45,8 @@ service JobController { } // Submits job to a cluster. - rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) { + rpc SubmitJobAsOperation(SubmitJobRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation" body: "*" @@ -286,9 +288,9 @@ message PySparkJob { // A list of queries to run on a cluster. message QueryList { - // Required. The queries to execute. You do not need to terminate a query - // with a semicolon. Multiple queries can be specified in one string - // by separating each with a semicolon. Here is an example of an Cloud + // Required. The queries to execute. You do not need to end a query expression + // with a semicolon. Multiple queries can be specified in one + // string by separating each with a semicolon. Here is an example of a // Dataproc API snippet that uses a QueryList to specify a HiveJob: // // "hiveJob": { @@ -323,7 +325,8 @@ message HiveJob { // Optional. Mapping of query variable names to values (equivalent to the // Hive command: `SET name="value";`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names and values, used to configure Hive. // Properties that conflict with values set by the Dataproc API may be @@ -352,7 +355,8 @@ message SparkSqlJob { // Optional. Mapping of query variable names to values (equivalent to the // Spark SQL command: SET `name="value";`). - map script_variables = 3 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure // Spark SQL's SparkConf. Properties that conflict with values set by the @@ -386,7 +390,8 @@ message PigJob { // Optional. Mapping of query variable names to values (equivalent to the Pig // command: `name=[value]`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure Pig. // Properties that conflict with values set by the Dataproc API may be @@ -479,6 +484,11 @@ message JobPlacement { // Output only. A cluster UUID generated by the Dataproc service when // the job is submitted. string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Cluster labels to identify a cluster where the job will be + // submitted. + map cluster_labels = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Dataproc job status. @@ -557,7 +567,8 @@ message JobStatus { ]; // Output only. The time when this state was entered. - google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional state information, which includes // status reported by the agent. @@ -566,8 +577,8 @@ message JobStatus { // Encapsulates the full scoping used to reference a job. message JobReference { - // Optional. The ID of the Google Cloud Platform project that the job belongs to. If - // specified, must match the request project ID. + // Optional. The ID of the Google Cloud Platform project that the job belongs + // to. If specified, must match the request project ID. string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The job ID, which must be unique within the project. @@ -677,22 +688,26 @@ message Job { JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous job status. - repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated JobStatus status_history = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The collection of YARN applications spun up by this job. // // **Beta** Feature: This report is available for testing purposes only. It // may be changed before final release. - repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated YarnApplication yarn_applications = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A URI pointing to the location of the stdout of the job's // driver program. - string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_output_resource_uri = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If present, the location of miscellaneous control files // which may be used as part of job setup and handling. If not present, // control files may be placed in the same location as `driver_output_uri`. - string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_control_files_uri = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this job. // Label **keys** must contain 1 to 63 characters, and must conform to @@ -711,8 +726,8 @@ message Job { // may be reused over time. string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Indicates whether the job is completed. If the value is `false`, - // the job is still in progress. If `true`, the job is completed, and + // Output only. Indicates whether the job is completed. If the value is + // `false`, the job is still in progress. If `true`, the job is completed, and // `status.state` field will indicate if it was successful, failed, // or cancelled. bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -721,7 +736,7 @@ message Job { // Job scheduling options. message JobScheduling { // Optional. Maximum number of times per hour a driver may be restarted as - // a result of driver terminating with non-zero code before job is + // a result of driver exiting with non-zero code before job is // reported failed. // // A job may be reported as thrashing if driver exits with non-zero code @@ -729,6 +744,11 @@ message JobScheduling { // // Maximum value is 10. int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of times in total a driver may be restarted as a + // result of driver exiting with non-zero code before job is reported failed. + // Maximum value is 240. + int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL]; } // A request to submit a job. @@ -744,8 +764,9 @@ message SubmitJobRequest { Job job = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A unique id used to identify the request. If the server - // receives two [SubmitJobRequest][google.cloud.dataproc.v1.SubmitJobRequest] requests with the same - // id, then the second request will be ignored and the + // receives two + // [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s + // with the same id, then the second request will be ignored and the // first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend // is returned. // @@ -769,7 +790,8 @@ message JobMetadata { string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Job submission time. - google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to get the resource representation for a job in a project. @@ -822,7 +844,8 @@ message ListJobsRequest { // (default = match ALL jobs). // // If `filter` is provided, `jobStateMatcher` will be ignored. - JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL]; + JobStateMatcher job_state_matcher = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A filter constraining the jobs to list. Filters are // case-sensitive and have the following syntax: @@ -862,7 +885,8 @@ message UpdateJobRequest { // labels, and the `PATCH` request body would specify the new // value. Note: Currently, labels is the only // field that can be updated. - google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 5 + [(google.api.field_behavior) = REQUIRED]; } // A list of jobs in a project. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto index 7a1382f1..176e4535 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dataproc.v1; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; option java_multiple_files = true; @@ -24,13 +25,30 @@ option java_outer_classname = "SharedProto"; option java_package = "com.google.cloud.dataproc.v1"; // Cluster components that can be activated. +// Next ID: 16. enum Component { // Unspecified component. Specifying this will cause Cluster creation to fail. COMPONENT_UNSPECIFIED = 0; - // The Anaconda python distribution. + // The Anaconda python distribution. The Anaconda component is not supported + // in the Dataproc + // 2.0 + // image. The 2.0 image is pre-installed with Miniconda. ANACONDA = 5; + // Docker + DOCKER = 13; + + // The Druid query engine. (alpha) + DRUID = 9; + + // Flink + FLINK = 14; + + // HBase. (beta) + HBASE = 11; + // The Hive Web HCatalog (the REST service for accessing HCatalog). HIVE_WEBHCAT = 3; @@ -40,6 +58,12 @@ enum Component { // The Presto query engine. PRESTO = 6; + // The Ranger service. + RANGER = 12; + + // The Solr service. + SOLR = 10; + // The Zeppelin notebook. ZEPPELIN = 4; diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto index 04f81004..ea5bfd05 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/dataproc/v1/clusters.proto"; import "google/cloud/dataproc/v1/jobs.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; @@ -35,10 +36,12 @@ option java_package = "com.google.cloud.dataproc.v1"; // Dataproc API. service WorkflowTemplateService { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates" body: "template" @@ -54,7 +57,8 @@ service WorkflowTemplateService { // // Can retrieve previously instantiated template by specifying optional // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -84,7 +88,8 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) { + rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate" body: "*" @@ -104,7 +109,8 @@ service WorkflowTemplateService { // Instantiates a template and begins execution. // // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], + // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], + // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], // [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. // // The returned Operation can be used to track execution of @@ -125,7 +131,9 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) { + rpc InstantiateInlineWorkflowTemplate( + InstantiateInlineWorkflowTemplateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" body: "template" @@ -143,7 +151,8 @@ service WorkflowTemplateService { // Updates (replaces) workflow template. The updated template // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { put: "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}" body: "template" @@ -156,7 +165,8 @@ service WorkflowTemplateService { } // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) { + rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) + returns (ListWorkflowTemplatesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/workflowTemplates" additional_bindings { @@ -167,7 +177,8 @@ service WorkflowTemplateService { } // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) { + rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -213,10 +224,12 @@ message WorkflowTemplate { int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow @@ -233,7 +246,8 @@ message WorkflowTemplate { map labels = 6 [(google.api.field_behavior) = OPTIONAL]; // Required. WorkflowTemplate scheduling information. - WorkflowTemplatePlacement placement = 7 [(google.api.field_behavior) = REQUIRED]; + WorkflowTemplatePlacement placement = 7 + [(google.api.field_behavior) = REQUIRED]; // Required. The Directed Acyclic Graph of Jobs to submit. repeated OrderedJob jobs = 8 [(google.api.field_behavior) = REQUIRED]; @@ -241,7 +255,21 @@ message WorkflowTemplate { // Optional. Template parameters whose values are substituted into the // template. Values for parameters must be provided when the template is // instantiated. - repeated TemplateParameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; + repeated TemplateParameter parameters = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Timeout duration for the DAG of jobs, expressed in seconds (see + // [JSON representation of + // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). + // The timeout duration must be from 10 minutes ("600s") to 24 hours + // ("86400s"). The timer begins when the first job is submitted. If the + // workflow is running at the end of the timeout period, any remaining jobs + // are cancelled, the workflow is ended, and if the workflow was running on a + // [managed + // cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), + // the cluster is deleted. + google.protobuf.Duration dag_timeout = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies workflow execution target. @@ -299,7 +327,8 @@ message ClusterSelector { // Required. The cluster labels. Cluster must have all labels // to match. - map cluster_labels = 2 [(google.api.field_behavior) = REQUIRED]; + map cluster_labels = 2 + [(google.api.field_behavior) = REQUIRED]; } // A job executed by the workflow. @@ -309,8 +338,8 @@ message OrderedJob { // // The step id is used as prefix for job id, as job // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - // steps. + // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] + // field from other steps. // // The id must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). Cannot begin or end with underscore @@ -361,7 +390,8 @@ message OrderedJob { // Optional. The optional list of prerequisite job step_ids. // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 [(google.api.field_behavior) = OPTIONAL]; + repeated string prerequisite_step_ids = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A configurable parameter that replaces one or more fields in the template. @@ -387,10 +417,10 @@ message TemplateParameter { // A field is allowed to appear in at most one parameter's list of field // paths. // - // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - // For example, a field path that references the zone field of a workflow - // template's cluster selector would be specified as - // `placement.clusterSelector.zone`. + // A field path is similar in syntax to a + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a + // field path that references the zone field of a workflow template's cluster + // selector would be specified as `placement.clusterSelector.zone`. // // Also, field paths can reference fields using the following syntax: // @@ -497,13 +527,15 @@ message WorkflowMetadata { int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation create_cluster = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow graph. WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation delete_cluster = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow state. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -515,13 +547,33 @@ message WorkflowMetadata { map parameters = 8; // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The UUID of target cluster. string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timeout duration for the DAG of jobs, expressed in seconds + // (see [JSON representation of + // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). + google.protobuf.Duration dag_timeout = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG start time, only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when + // DAG begins. + google.protobuf.Timestamp dag_start_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG end time, only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when + // DAG ends. + google.protobuf.Timestamp dag_end_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The cluster operation triggered by a workflow. @@ -570,7 +622,8 @@ message WorkflowNode { string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string prerequisite_step_ids = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The job id; populated after the node enters RUNNING state. string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -670,7 +723,7 @@ message InstantiateWorkflowTemplateRequest { string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. Map from parameter names to values that should be used for those - // parameters. Values may not exceed 100 characters. + // parameters. Values may not exceed 1000 characters. map parameters = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -746,7 +799,8 @@ message ListWorkflowTemplatesRequest { // A response to a request to list workflow templates in a project. message ListWorkflowTemplatesResponse { // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated WorkflowTemplate templates = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This token is included in the response if there are more // results to fetch. To fetch additional results, provide this value as the diff --git a/synth.metadata b/synth.metadata index f5ba3211..64fb85c3 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "c3213c6844ec26fc2ebb55e56ee6753d56d5542d" + "sha": "a208e54b7d7634d1ee2de3470f7c2a3e7b0180c6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1305ca41d554eb0725237561e34129373bb8cbc1", - "internalRef": "362856902" + "sha": "439f098cb730af18c8ae4e65971ea3badf45138a", + "internalRef": "367518225" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1305ca41d554eb0725237561e34129373bb8cbc1", - "internalRef": "362856902" + "sha": "439f098cb730af18c8ae4e65971ea3badf45138a", + "internalRef": "367518225" } }, { @@ -223,6 +223,7 @@ "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java", @@ -270,10 +271,14 @@ "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java", @@ -322,6 +327,10 @@ "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java", @@ -344,7 +353,10 @@ "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java", @@ -353,6 +365,10 @@ "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java", + "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java", "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java", From bc31368719be3083b5bb8ffe80ea9f3db7c69907 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 22:36:12 +0200 Subject: [PATCH 136/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 (#500) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.1` -> `0.21.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/compatibility-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/confidence-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0201v0210-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.1...v0.21.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.25.0 ([#​310](https://www.github.com/googleapis/java-shared-dependencies/issues/310)) ([8f3a0f0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f3a0f002b787f7b27cfe031654fa20bf342f839)) - update dependency com.google.auth:google-auth-library-bom to v0.25.2 ([#​311](https://www.github.com/googleapis/java-shared-dependencies/issues/311)) ([6c47a3e](https://www.github.com/googleapis/java-shared-dependencies/commit/6c47a3edbd9da04ba255487a66c0f3a41393217d)) - update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#​315](https://www.github.com/googleapis/java-shared-dependencies/issues/315)) ([dc254ca](https://www.github.com/googleapis/java-shared-dependencies/commit/dc254ca7359b68fe9411f7b96130ffb416b45c6f)) - update dependency com.google.http-client:google-http-client-bom to v1.39.1 ([#​309](https://www.github.com/googleapis/java-shared-dependencies/issues/309)) ([37225e2](https://www.github.com/googleapis/java-shared-dependencies/commit/37225e2d1b32a618765391720b57ff29e7b8f7f9)) - update dependency com.google.http-client:google-http-client-bom to v1.39.2 ([#​321](https://www.github.com/googleapis/java-shared-dependencies/issues/321)) ([273c66d](https://www.github.com/googleapis/java-shared-dependencies/commit/273c66d374f7cd6040aac2f302fd1c1dc0f4a1c0)) - update dependency com.google.protobuf:protobuf-bom to v3.15.6 ([#​308](https://www.github.com/googleapis/java-shared-dependencies/issues/308)) ([b29dd05](https://www.github.com/googleapis/java-shared-dependencies/commit/b29dd0535f02b56607f64ba69e85d4d468902789)) - update dependency com.google.protobuf:protobuf-bom to v3.15.7 ([#​316](https://www.github.com/googleapis/java-shared-dependencies/issues/316)) ([9c00d77](https://www.github.com/googleapis/java-shared-dependencies/commit/9c00d7753c1f7b963deb9ad69dcfe24ba28da5a2)) - update dependency com.google.protobuf:protobuf-bom to v3.15.8 ([#​319](https://www.github.com/googleapis/java-shared-dependencies/issues/319)) ([15e5ae2](https://www.github.com/googleapis/java-shared-dependencies/commit/15e5ae2ef46eedcd790ffd8644677d36db5c63f9)) - update dependency io.grpc:grpc-bom to v1.37.0 ([#​313](https://www.github.com/googleapis/java-shared-dependencies/issues/313)) ([c599351](https://www.github.com/googleapis/java-shared-dependencies/commit/c5993511c7305e1ced42d73552a93a25dc5e1ac1)) - update gax.version to v1.63.0 ([#​318](https://www.github.com/googleapis/java-shared-dependencies/issues/318)) ([ba709da](https://www.github.com/googleapis/java-shared-dependencies/commit/ba709da6fb0e9bcfc83e663588336598737b46e4)) - update google.core.version to v1.94.4 ([#​305](https://www.github.com/googleapis/java-shared-dependencies/issues/305)) ([0d38f4c](https://www.github.com/googleapis/java-shared-dependencies/commit/0d38f4c9ffadcfd9446712b8bf0729399b0c9e91)) - update google.core.version to v1.94.5 ([#​320](https://www.github.com/googleapis/java-shared-dependencies/issues/320)) ([3439721](https://www.github.com/googleapis/java-shared-dependencies/commit/3439721da83a8b92d9c4b6ecfd158cfb1e1a0503)) - update guava to 30.1.1-android ([#​322](https://www.github.com/googleapis/java-shared-dependencies/issues/322)) ([a6b5d3b](https://www.github.com/googleapis/java-shared-dependencies/commit/a6b5d3b8ccfc352bf0d1678952ce3cd8b7a8361e)) - update iam.version to v1.0.11 ([#​304](https://www.github.com/googleapis/java-shared-dependencies/issues/304)) ([95a5264](https://www.github.com/googleapis/java-shared-dependencies/commit/95a526442b3d24c83782523d38dd3931e828d757)) ##### [0.20.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.20.0...v0.20.1) (2021-03-09) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.2 ([#​301](https://www.github.com/googleapis/java-shared-dependencies/issues/301)) ([7c01eba](https://www.github.com/googleapis/java-shared-dependencies/commit/7c01ebabb6fd65b7404e56651b0ba27f505bb033)) - update dependency com.google.api-client:google-api-client-bom to v1.31.3 ([#​295](https://www.github.com/googleapis/java-shared-dependencies/issues/295)) ([a0774e9](https://www.github.com/googleapis/java-shared-dependencies/commit/a0774e9d62d00614142bc4c14214a83dda66d4ad)) - update dependency com.google.api.grpc:grpc-google-iam-v1 to v1.0.10 ([#​292](https://www.github.com/googleapis/java-shared-dependencies/issues/292)) ([b629789](https://www.github.com/googleapis/java-shared-dependencies/commit/b629789e3a1cc9a7308b829c034b09b06e24fc07)) - update dependency com.google.auth:google-auth-library-bom to v0.24.1 ([#​293](https://www.github.com/googleapis/java-shared-dependencies/issues/293)) ([d85ec34](https://www.github.com/googleapis/java-shared-dependencies/commit/d85ec347ccdd14dfdab10d365d2c2f8df3035e4d)) - update dependency com.google.protobuf:protobuf-bom to v3.15.3 ([#​294](https://www.github.com/googleapis/java-shared-dependencies/issues/294)) ([58c01aa](https://www.github.com/googleapis/java-shared-dependencies/commit/58c01aa076e2c4954986185f913bac2c51a1e6fb)) - update dependency com.google.protobuf:protobuf-bom to v3.15.5 ([#​302](https://www.github.com/googleapis/java-shared-dependencies/issues/302)) ([e9d5e6e](https://www.github.com/googleapis/java-shared-dependencies/commit/e9d5e6ee6039915da186315ceada673ac37b88d3)) - update google.core.version to v1.94.2 ([#​296](https://www.github.com/googleapis/java-shared-dependencies/issues/296)) ([af83b90](https://www.github.com/googleapis/java-shared-dependencies/commit/af83b901be0c03d507189999215d35345602fad7)) - update google.core.version to v1.94.3 ([#​300](https://www.github.com/googleapis/java-shared-dependencies/issues/300)) ([3e73176](https://www.github.com/googleapis/java-shared-dependencies/commit/3e73176af0b07dfe621163b301174b5b5820dfa2))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 864eaabf..d13c7d03 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.1 + 0.21.0 pom import From d258cfc68ea3cf0153e7bb0bc35c3c0ca7e2c5ec Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Apr 2021 21:58:08 +0000 Subject: [PATCH 137/519] chore: release 1.4.0 (#498) :robot: I have created a release \*beep\* \*boop\* --- ## [1.4.0](https://www.github.com/googleapis/java-dataproc/compare/v1.3.0...v1.4.0) (2021-04-09) ### Features * update the Dataproc V1 API client library ([#497](https://www.github.com/googleapis/java-dataproc/issues/497)) ([3c78a97](https://www.github.com/googleapis/java-dataproc/commit/3c78a971133b3809ac3c962a1c07951480047c31)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#500](https://www.github.com/googleapis/java-dataproc/issues/500)) ([bc31368](https://www.github.com/googleapis/java-dataproc/commit/bc31368719be3083b5bb8ffe80ea9f3db7c69907)) * update dependency com.google.cloud:google-cloud-storage to v1.113.14 ([#479](https://www.github.com/googleapis/java-dataproc/issues/479)) ([81b26b1](https://www.github.com/googleapis/java-dataproc/commit/81b26b1b38536ab2fc4c52796a19b66646072ccc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 41 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5031fe51..af796754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.4.0](https://www.github.com/googleapis/java-dataproc/compare/v1.3.0...v1.4.0) (2021-04-09) + + +### Features + +* update the Dataproc V1 API client library ([#497](https://www.github.com/googleapis/java-dataproc/issues/497)) ([3c78a97](https://www.github.com/googleapis/java-dataproc/commit/3c78a971133b3809ac3c962a1c07951480047c31)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#500](https://www.github.com/googleapis/java-dataproc/issues/500)) ([bc31368](https://www.github.com/googleapis/java-dataproc/commit/bc31368719be3083b5bb8ffe80ea9f3db7c69907)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.14 ([#479](https://www.github.com/googleapis/java-dataproc/issues/479)) ([81b26b1](https://www.github.com/googleapis/java-dataproc/commit/81b26b1b38536ab2fc4c52796a19b66646072ccc)) + ## [1.3.0](https://www.github.com/googleapis/java-dataproc/compare/v1.2.1...v1.3.0) (2021-03-11) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 0b10a4a2..7fc5864f 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.3.1-SNAPSHOT + 1.4.0 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.3.1-SNAPSHOT + 1.4.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index a937b9ad..8722b17c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.3.1-SNAPSHOT + 1.4.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.3.1-SNAPSHOT + 1.4.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 93cf4993..545c5bc4 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index a7509e71..c82ce311 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/pom.xml b/pom.xml index d13c7d03..058d1ab7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.3.1-SNAPSHOT + 1.4.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 com.google.cloud google-cloud-dataproc - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 2d3a6845..671d1d00 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.3.1-SNAPSHOT + 1.4.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index d33c0fc3..f8f41f4b 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.91.1-SNAPSHOT + 0.92.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 567b907a..08ce3dd1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.3.1-SNAPSHOT + 1.4.0 diff --git a/versions.txt b/versions.txt index 1e7854e5..eecb7d31 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.91.0:0.91.1-SNAPSHOT -proto-google-cloud-dataproc-v1:1.3.0:1.3.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.3.0:1.3.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.91.0:0.91.1-SNAPSHOT -google-cloud-dataproc:1.3.0:1.3.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.92.0:0.92.0 +proto-google-cloud-dataproc-v1:1.4.0:1.4.0 +grpc-google-cloud-dataproc-v1:1.4.0:1.4.0 +grpc-google-cloud-dataproc-v1beta2:0.92.0:0.92.0 +google-cloud-dataproc:1.4.0:1.4.0 From 9fe9adec991431e258c9adb99f066a60030b6ad1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:42:07 +0000 Subject: [PATCH 138/519] chore: release 1.4.1-SNAPSHOT (#501) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 7fc5864f..e1737542 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.0 + 1.4.1-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 8722b17c..1e7b79e3 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.0 + 1.4.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 545c5bc4..dd10f641 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index c82ce311..ef32e9d3 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 058d1ab7..fe11fa15 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.0 + 1.4.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 671d1d00..8b3c2ce9 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.0 + 1.4.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index f8f41f4b..72a9b362 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.0 + 0.92.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 08ce3dd1..339498e0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index eecb7d31..4bcb4651 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.0:0.92.0 -proto-google-cloud-dataproc-v1:1.4.0:1.4.0 -grpc-google-cloud-dataproc-v1:1.4.0:1.4.0 -grpc-google-cloud-dataproc-v1beta2:0.92.0:0.92.0 -google-cloud-dataproc:1.4.0:1.4.0 +proto-google-cloud-dataproc-v1beta2:0.92.0:0.92.1-SNAPSHOT +proto-google-cloud-dataproc-v1:1.4.0:1.4.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.4.0:1.4.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.92.0:0.92.1-SNAPSHOT +google-cloud-dataproc:1.4.0:1.4.1-SNAPSHOT From 01f1a449043bd6ece00e491a2742cd73b5d6b618 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Apr 2021 16:16:13 -0700 Subject: [PATCH 139/519] chore: regenerate README (#503) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-09 22:45:36,847 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-09 22:45:38,198 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/aa73a393-e99f-4d9c-b465-5ace02985ce2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 90d25424..13510e34 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "81b26b1b38536ab2fc4c52796a19b66646072ccc" + "sha": "9fe9adec991431e258c9adb99f066a60030b6ad1" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f5e6bc8dc8e3661ee550905fc070e55e1b6cea1" + "sha": "d9ddac83a22a600dd33854c9d835a4fe52284207" } } ] diff --git a/README.md b/README.md index a4e74f4a..6aed15b3 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,6 @@ Java idiomatic client for [Dataproc][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] - - - ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file @@ -55,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.3.0' +compile 'com.google.cloud:google-cloud-dataproc:1.4.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.0" ``` ## Authentication From a4e962acaa7a401c8934c99b0d16a3825d372e81 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 07:22:38 -0700 Subject: [PATCH 140/519] build(java): skip javadoc tests during dependencies test (#502) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/33ced83d-18be-4eec-9f43-00d6fbbc175a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5b0e1592dd7d70b485e157ea4b3eb1704ecbd015 --- .kokoro/dependencies.sh | 1 + synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 0fb8c843..59d2aafc 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -33,6 +33,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" retry_with_backoff 3 10 \ mvn install -B -V -ntp \ -DskipTests=true \ + -Dmaven.javadoc.skip=true \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/synth.metadata b/synth.metadata index 64fb85c3..c8d3c9b2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a208e54b7d7634d1ee2de3470f7c2a3e7b0180c6" + "sha": "d258cfc68ea3cf0153e7bb0bc35c3c0ca7e2c5ec" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" + "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" } } ], From ae5f49c5b97ca99f9c8a2cbf2bf835b2d6fe4099 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 08:00:24 -0700 Subject: [PATCH 141/519] chore: regenerate README (#505) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-12 14:28:05,153 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-12 14:28:06,512 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/a3a2ce0e-eaeb-43e2-8702-04e19081c66b/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 13510e34..6db9758a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "9fe9adec991431e258c9adb99f066a60030b6ad1" + "sha": "a4e962acaa7a401c8934c99b0d16a3825d372e81" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d9ddac83a22a600dd33854c9d835a4fe52284207" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } } ] diff --git a/README.md b/README.md index 6aed15b3..d007d4b0 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.2.1') +implementation platform('com.google.cloud:libraries-bom:20.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 2d2fd044e1317f1c9ab9550a487f5133babc2b07 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:28:52 +0200 Subject: [PATCH 142/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#506) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7c71f86d..f1f90094 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From 23d3a4280c373f068132632f14d455c1ee3eaf22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:29:25 +0200 Subject: [PATCH 143/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.4.0 (#504) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.4.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​140-httpswwwgithubcomgoogleapisjava-dataproccomparev130v140-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.3.0...v1.4.0) ##### Features - update the Dataproc V1 API client library ([#​497](https://www.github.com/googleapis/java-dataproc/issues/497)) ([3c78a97](https://www.github.com/googleapis/java-dataproc/commit/3c78a971133b3809ac3c962a1c07951480047c31)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#​500](https://www.github.com/googleapis/java-dataproc/issues/500)) ([bc31368](https://www.github.com/googleapis/java-dataproc/commit/bc31368719be3083b5bb8ffe80ea9f3db7c69907)) - update dependency com.google.cloud:google-cloud-storage to v1.113.14 ([#​479](https://www.github.com/googleapis/java-dataproc/issues/479)) ([81b26b1](https://www.github.com/googleapis/java-dataproc/commit/81b26b1b38536ab2fc4c52796a19b66646072ccc))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 55704362..79d6df25 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.3.0 + 1.4.0 From f7e4f10644c1954053bd5e5696934b4f9bd49ffb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 08:56:33 -0700 Subject: [PATCH 144/519] chore: regenerate README (#507) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-12 15:33:54,424 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-12 15:33:55,677 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/a6e6160a-29f8-4ae5-9911-555262401c5e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 6db9758a..944b8100 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a4e962acaa7a401c8934c99b0d16a3825d372e81" + "sha": "23d3a4280c373f068132632f14d455c1ee3eaf22" } }, { diff --git a/README.md b/README.md index d007d4b0..067f47fa 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.3.0 + 1.4.0 ``` From 894ce84afaada6edeb85809802522e81d2ba1f9d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Apr 2021 08:38:27 -0700 Subject: [PATCH 145/519] fix: typo (#508) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a39ccf4b-409a-4423-9b0c-4dc43267f906/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/082e1ca0863b13ada8594fe91845380765da5b70 --- .kokoro/build.sh | 2 +- synth.metadata | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 8fbe759f..63e00a00 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -37,7 +37,7 @@ retry_with_backoff 3 10 \ -Dgcloud.download.skip=true \ -T 1C -# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it +# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) fi diff --git a/synth.metadata b/synth.metadata index c8d3c9b2..69dbcefa 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "d258cfc68ea3cf0153e7bb0bc35c3c0ca7e2c5ec" + "sha": "f7e4f10644c1954053bd5e5696934b4f9bd49ffb" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" + "sha": "082e1ca0863b13ada8594fe91845380765da5b70" } } ], @@ -62,6 +62,7 @@ ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", + ".github/sync-repo-settings.yaml", ".github/trusted-contribution.yml", ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", From 1e3f9e6303adba9f3faf86d220930bd901bbd558 Mon Sep 17 00:00:00 2001 From: BenWhitehead Date: Tue, 13 Apr 2021 19:23:42 -0400 Subject: [PATCH 146/519] chore: update QuickstartTest to use StdOutCaptureRule (#376) --- samples/snippets/src/test/java/QuickstartTest.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/samples/snippets/src/test/java/QuickstartTest.java b/samples/snippets/src/test/java/QuickstartTest.java index 0cbc2524..b4abd7a1 100644 --- a/samples/snippets/src/test/java/QuickstartTest.java +++ b/samples/snippets/src/test/java/QuickstartTest.java @@ -28,16 +28,16 @@ import com.google.cloud.storage.BucketInfo; import com.google.cloud.storage.Storage; import com.google.cloud.storage.StorageOptions; +import com.google.cloud.testing.junit4.StdOutCaptureRule; import com.google.protobuf.Empty; -import java.io.ByteArrayOutputStream; import java.io.IOException; -import java.io.PrintStream; import java.util.UUID; import java.util.concurrent.ExecutionException; import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -60,7 +60,8 @@ public class QuickstartTest { + "rdd = sc.parallelize((1,2,3,4,5))\n" + "sum = rdd.reduce(lambda x, y: x + y)\n"; - private ByteArrayOutputStream bout; + @Rule + public StdOutCaptureRule stdOutCapture = new StdOutCaptureRule(); private Bucket bucket; private Blob blob; @@ -78,9 +79,6 @@ public static void checkRequirements() { @Before public void setUp() { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - Storage storage = StorageOptions.getDefaultInstance().getService(); bucket = storage.create(BucketInfo.of(BUCKET_NAME)); blob = bucket.create(JOB_FILE_NAME, SORT_CODE.getBytes(UTF_8), "text/plain"); @@ -89,7 +87,7 @@ public void setUp() { @Test public void quickstartTest() throws IOException, InterruptedException { Quickstart.main(PROJECT_ID, REGION, CLUSTER_NAME, JOB_FILE_PATH); - String output = bout.toString(); + String output = stdOutCapture.getCapturedOutputAsUtf8String(); assertThat(output, CoreMatchers.containsString("Cluster created successfully")); assertThat(output, CoreMatchers.containsString("Job finished successfully:")); From 917ea60907308ac84583cbeeb05b1f0b6583600c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 02:59:59 +0200 Subject: [PATCH 147/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.15 (#510) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 79d6df25..b6ca78a2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.14 + 1.113.15 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 339498e0..1b79ae59 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.14 + 1.113.15 junit From a749493d05bfd1aefd2af64c28a9deaf13873bce Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 23:12:34 +0200 Subject: [PATCH 148/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.1 (#511) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.0` -> `0.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/compatibility-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/confidence-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0111-httpswwwgithubcomgoogleapisjava-shared-configcomparev0110v0111-2021-04-14) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.0...v0.11.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e1737542..dfaee68e 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index fe11fa15..dd532d8b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 From 077e71d177ce1cd2827006ab60f56f05888a8b1d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Apr 2021 08:34:25 -0700 Subject: [PATCH 149/519] fix: release scripts from issuing overlapping phases (#512) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/42e6b423-50a1-45f0-be87-e54e9aaf68d2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d --- .kokoro/release/snapshot.sh | 2 +- .kokoro/release/stage.sh | 2 +- synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh index 098168a7..1f55b770 100755 --- a/.kokoro/release/snapshot.sh +++ b/.kokoro/release/snapshot.sh @@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ +mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DperformRelease=true \ -Dgpg.executable=gpg \ diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 16126d2e..8a103384 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml" # attempt to stage 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn clean install deploy -B \ + mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ -DperformRelease=true \ diff --git a/synth.metadata b/synth.metadata index 69dbcefa..88de5275 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f7e4f10644c1954053bd5e5696934b4f9bd49ffb" + "sha": "a749493d05bfd1aefd2af64c28a9deaf13873bce" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "082e1ca0863b13ada8594fe91845380765da5b70" + "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" } } ], From c1af78a1edb2b4e913344a73bdb1f958693e42fe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:07 +0200 Subject: [PATCH 150/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#513) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f1f90094..96f74dbe 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From dd52359217f54ec214f1ee09fa9372365f93b9eb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 19 Apr 2021 08:50:04 -0700 Subject: [PATCH 151/519] chore: regenerate README (#514) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-19 14:46:21,472 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-19 14:46:22,669 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/7e216cc6-e664-4dc6-bc3b-a8c068a99c0a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 944b8100..b08ed215 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "23d3a4280c373f068132632f14d455c1ee3eaf22" + "sha": "c1af78a1edb2b4e913344a73bdb1f958693e42fe" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2" } } ] diff --git a/README.md b/README.md index 067f47fa..41636c56 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.0.0') +implementation platform('com.google.cloud:libraries-bom:20.1.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 863dbc99d71f67776e919c6c6eb832ecd6cf516b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 17:28:23 +0200 Subject: [PATCH 152/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 (#515) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.0` -> `0.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/compatibility-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/confidence-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0211-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0210v0211-2021-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.0...v0.21.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dd532d8b..b17106ef 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 0.21.1 pom import From 87fa7b8c3caf6558125e7c69ac4de4b1b4f3cf98 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 00:34:16 +0200 Subject: [PATCH 153/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.2 (#523) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.1` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/compatibility-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/confidence-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0112-httpswwwgithubcomgoogleapisjava-shared-configcomparev0111v0112-2021-04-22) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index dfaee68e..47fce539 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index b17106ef..0d1de6e8 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 From 95606d8a28e55271fff71f3323e260bf9210f7ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 24 Apr 2021 00:56:08 +0200 Subject: [PATCH 154/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1 (#524) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/compatibility-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/confidence-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0211v100-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.1...v1.0.0) ##### Features - promote to 1.0.0 ([#​341](https://www.github.com/googleapis/java-shared-dependencies/issues/341)) ([eddce7b](https://www.github.com/googleapis/java-shared-dependencies/commit/eddce7bda196d757c0bb93a05574cc742e3d7ff6)) ##### Dependencies - update dependency com.google.api:api-common to v1.10.3 ([#​340](https://www.github.com/googleapis/java-shared-dependencies/issues/340)) ([6a7fc33](https://www.github.com/googleapis/java-shared-dependencies/commit/6a7fc33548c199d5f310b3ee5024907882d22726)) - update dependency com.google.auth:google-auth-library-bom to v0.25.4 ([#​334](https://www.github.com/googleapis/java-shared-dependencies/issues/334)) ([e5c747d](https://www.github.com/googleapis/java-shared-dependencies/commit/e5c747d245194effc258ae706e7764153010cd53)) - update dependency com.google.auth:google-auth-library-bom to v0.25.5 ([#​338](https://www.github.com/googleapis/java-shared-dependencies/issues/338)) ([ffa1df5](https://www.github.com/googleapis/java-shared-dependencies/commit/ffa1df5497b5365f520b665a202b8caf6521fc9d)) - update dependency org.threeten:threetenbp to v1.5.1 ([#​335](https://www.github.com/googleapis/java-shared-dependencies/issues/335)) ([c8c6df4](https://www.github.com/googleapis/java-shared-dependencies/commit/c8c6df48e7f80944544939e502f4f08543af2631)) - update google.core.version to v1.94.8 ([#​342](https://www.github.com/googleapis/java-shared-dependencies/issues/342)) ([d946dd2](https://www.github.com/googleapis/java-shared-dependencies/commit/d946dd2299aac32f969a2226a1391e1e73f00e62)) ##### [0.21.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.21.0...v0.21.1) (2021-04-19) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​332](https://www.github.com/googleapis/java-shared-dependencies/issues/332)) ([e289825](https://www.github.com/googleapis/java-shared-dependencies/commit/e289825a3bc45b4796db7ce4347f8d9d9251a410)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.3 ([#​329](https://www.github.com/googleapis/java-shared-dependencies/issues/329)) ([a77b4fc](https://www.github.com/googleapis/java-shared-dependencies/commit/a77b4fcc2ea5caf366c76a4698bac6d4c9abc92e)) - update dependency com.google.api-client:google-api-client-bom to v1.31.4 ([#​326](https://www.github.com/googleapis/java-shared-dependencies/issues/326)) ([409d24f](https://www.github.com/googleapis/java-shared-dependencies/commit/409d24f8a0cac30e41ca45eb2711aecb335d70dd)) - update dependency com.google.auth:google-auth-library-bom to v0.25.3 ([#​328](https://www.github.com/googleapis/java-shared-dependencies/issues/328)) ([88cfc08](https://www.github.com/googleapis/java-shared-dependencies/commit/88cfc08952881200e23ed95cfa2eebad85ec7ab3)) - update google.core.version to v1.94.7 ([#​324](https://www.github.com/googleapis/java-shared-dependencies/issues/324)) ([0412c88](https://www.github.com/googleapis/java-shared-dependencies/commit/0412c88468940c1182bc0761bfe269a6688fe7b7)) - update iam.version to v1.0.12 ([#​327](https://www.github.com/googleapis/java-shared-dependencies/issues/327)) ([548d5f5](https://www.github.com/googleapis/java-shared-dependencies/commit/548d5f53c4f264f1cbb9ca72fdfe4608ab16b480))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0d1de6e8..65346b07 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.1 + 1.0.0 pom import From 4de0db640d16d4afddf172dc8b87339918731dfe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:18:07 +0000 Subject: [PATCH 155/519] chore: release 1.4.1 (#509) :robot: I have created a release \*beep\* \*boop\* --- ### [1.4.1](https://www.github.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1) (2021-04-23) ### Bug Fixes * release scripts from issuing overlapping phases ([#512](https://www.github.com/googleapis/java-dataproc/issues/512)) ([077e71d](https://www.github.com/googleapis/java-dataproc/commit/077e71d177ce1cd2827006ab60f56f05888a8b1d)) * typo ([#508](https://www.github.com/googleapis/java-dataproc/issues/508)) ([894ce84](https://www.github.com/googleapis/java-dataproc/commit/894ce84afaada6edeb85809802522e81d2ba1f9d)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#515](https://www.github.com/googleapis/java-dataproc/issues/515)) ([863dbc9](https://www.github.com/googleapis/java-dataproc/commit/863dbc99d71f67776e919c6c6eb832ecd6cf516b)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#524](https://www.github.com/googleapis/java-dataproc/issues/524)) ([95606d8](https://www.github.com/googleapis/java-dataproc/commit/95606d8a28e55271fff71f3323e260bf9210f7ee)) * update dependency com.google.cloud:google-cloud-storage to v1.113.15 ([#510](https://www.github.com/googleapis/java-dataproc/issues/510)) ([917ea60](https://www.github.com/googleapis/java-dataproc/commit/917ea60907308ac84583cbeeb05b1f0b6583600c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 43 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af796754..093290f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +### [1.4.1](https://www.github.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1) (2021-04-23) + + +### Bug Fixes + +* release scripts from issuing overlapping phases ([#512](https://www.github.com/googleapis/java-dataproc/issues/512)) ([077e71d](https://www.github.com/googleapis/java-dataproc/commit/077e71d177ce1cd2827006ab60f56f05888a8b1d)) +* typo ([#508](https://www.github.com/googleapis/java-dataproc/issues/508)) ([894ce84](https://www.github.com/googleapis/java-dataproc/commit/894ce84afaada6edeb85809802522e81d2ba1f9d)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#515](https://www.github.com/googleapis/java-dataproc/issues/515)) ([863dbc9](https://www.github.com/googleapis/java-dataproc/commit/863dbc99d71f67776e919c6c6eb832ecd6cf516b)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#524](https://www.github.com/googleapis/java-dataproc/issues/524)) ([95606d8](https://www.github.com/googleapis/java-dataproc/commit/95606d8a28e55271fff71f3323e260bf9210f7ee)) +* update dependency com.google.cloud:google-cloud-storage to v1.113.15 ([#510](https://www.github.com/googleapis/java-dataproc/issues/510)) ([917ea60](https://www.github.com/googleapis/java-dataproc/commit/917ea60907308ac84583cbeeb05b1f0b6583600c)) + ## [1.4.0](https://www.github.com/googleapis/java-dataproc/compare/v1.3.0...v1.4.0) (2021-04-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 47fce539..19dc2cfb 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.1-SNAPSHOT + 1.4.1 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.1-SNAPSHOT + 1.4.1 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1e7b79e3..41fb4537 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.1-SNAPSHOT + 1.4.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.1-SNAPSHOT + 1.4.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index dd10f641..e640a557 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index ef32e9d3..419ba153 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/pom.xml b/pom.xml index 65346b07..5207be25 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.1-SNAPSHOT + 1.4.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1 com.google.cloud google-cloud-dataproc - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 8b3c2ce9..4eb72bfc 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1-SNAPSHOT + 1.4.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 72a9b362..32de6783 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1-SNAPSHOT + 0.92.1 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1b79ae59..bd9e6c32 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.1-SNAPSHOT + 1.4.1 diff --git a/versions.txt b/versions.txt index 4bcb4651..5aae5fe1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.0:0.92.1-SNAPSHOT -proto-google-cloud-dataproc-v1:1.4.0:1.4.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.4.0:1.4.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.92.0:0.92.1-SNAPSHOT -google-cloud-dataproc:1.4.0:1.4.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.92.1:0.92.1 +proto-google-cloud-dataproc-v1:1.4.1:1.4.1 +grpc-google-cloud-dataproc-v1:1.4.1:1.4.1 +grpc-google-cloud-dataproc-v1beta2:0.92.1:0.92.1 +google-cloud-dataproc:1.4.1:1.4.1 From 0739e02827c6dcff7fa2ac2bcbad310a0914aeab Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:28:11 +0000 Subject: [PATCH 156/519] chore: release 1.4.2-SNAPSHOT (#525) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 19dc2cfb..17c6958b 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.1 + 1.4.2-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.1 + 1.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 41fb4537..c45cd293 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.1 + 1.4.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.1 + 1.4.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e640a557..23c0aa77 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 419ba153..dd106008 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5207be25..522a86ef 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.1 + 1.4.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 4eb72bfc..44049190 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.1 + 1.4.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 32de6783..a247f04a 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.1 + 0.92.2-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bd9e6c32..6b24513c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.1 + 1.4.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5aae5fe1..462dc3fa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.1:0.92.1 -proto-google-cloud-dataproc-v1:1.4.1:1.4.1 -grpc-google-cloud-dataproc-v1:1.4.1:1.4.1 -grpc-google-cloud-dataproc-v1beta2:0.92.1:0.92.1 -google-cloud-dataproc:1.4.1:1.4.1 +proto-google-cloud-dataproc-v1beta2:0.92.1:0.92.2-SNAPSHOT +proto-google-cloud-dataproc-v1:1.4.1:1.4.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.4.1:1.4.2-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.92.1:0.92.2-SNAPSHOT +google-cloud-dataproc:1.4.1:1.4.2-SNAPSHOT From 779d5b5e99b6124911784d5973aa66e47777845c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Apr 2021 01:26:36 +0200 Subject: [PATCH 157/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.113.16 (#526) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.113.15` -> `1.113.16` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/compatibility-slim/1.113.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.113.16/confidence-slim/1.113.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.113.16`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​111316-httpswwwgithubcomgoogleapisjava-storagecomparev111315v111316-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.113.15...v1.113.16)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b6ca78a2..177e5508 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.15 + 1.113.16 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6b24513c..ad015867 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.15 + 1.113.16 junit From 76df5978f190d305bc5e26440a496f99852cc3c4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 23:36:14 +0000 Subject: [PATCH 158/519] chore: release 1.4.2 (#528) :robot: I have created a release \*beep\* \*boop\* --- ### [1.4.2](https://www.github.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) (2021-04-26) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v1.113.16 ([#526](https://www.github.com/googleapis/java-dataproc/issues/526)) ([779d5b5](https://www.github.com/googleapis/java-dataproc/commit/779d5b5e99b6124911784d5973aa66e47777845c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 093290f0..94ab1727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.4.2](https://www.github.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) (2021-04-26) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v1.113.16 ([#526](https://www.github.com/googleapis/java-dataproc/issues/526)) ([779d5b5](https://www.github.com/googleapis/java-dataproc/commit/779d5b5e99b6124911784d5973aa66e47777845c)) + ### [1.4.1](https://www.github.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1) (2021-04-23) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 17c6958b..af0d8433 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.2-SNAPSHOT + 1.4.2 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.2-SNAPSHOT + 1.4.2 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index c45cd293..47efdf09 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.2-SNAPSHOT + 1.4.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.2-SNAPSHOT + 1.4.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 23c0aa77..2eed0b38 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index dd106008..fdce9626 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/pom.xml b/pom.xml index 522a86ef..1b4d4533 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.2-SNAPSHOT + 1.4.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2 com.google.cloud google-cloud-dataproc - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 44049190..4a9645f2 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2-SNAPSHOT + 1.4.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index a247f04a..f15a9924 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2-SNAPSHOT + 0.92.2 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ad015867..ecc8f815 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.2-SNAPSHOT + 1.4.2 diff --git a/versions.txt b/versions.txt index 462dc3fa..5f32726a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.1:0.92.2-SNAPSHOT -proto-google-cloud-dataproc-v1:1.4.1:1.4.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.4.1:1.4.2-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.92.1:0.92.2-SNAPSHOT -google-cloud-dataproc:1.4.1:1.4.2-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.92.2:0.92.2 +proto-google-cloud-dataproc-v1:1.4.2:1.4.2 +grpc-google-cloud-dataproc-v1:1.4.2:1.4.2 +grpc-google-cloud-dataproc-v1beta2:0.92.2:0.92.2 +google-cloud-dataproc:1.4.2:1.4.2 From 8548616d19138e856b6b23b375066631debba16d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Apr 2021 16:38:13 -0700 Subject: [PATCH 159/519] chore: regenerate README (#529) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-26 23:29:42,033 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-26 23:29:43,313 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/1fdb0361-75e1-4a3d-b7c5-43a373a4f2a4/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index b08ed215..7865631e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "c1af78a1edb2b4e913344a73bdb1f958693e42fe" + "sha": "779d5b5e99b6124911784d5973aa66e47777845c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2" + "sha": "a648ce0ca3fe122b3186d7e6861cb641437e485e" } } ] diff --git a/README.md b/README.md index 41636c56..5114b46f 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.4.0' +compile 'com.google.cloud:google-cloud-dataproc:1.4.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.1" ``` ## Authentication From 2caf3fb0ef7f64c53d7a3c2a1d5ec917e63dbb11 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 16:42:19 +0200 Subject: [PATCH 160/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#532) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 96f74dbe..ff70aadb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From 460ea2a48498e24492f2ec3fb734c929d15dab76 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Apr 2021 08:48:03 -0700 Subject: [PATCH 161/519] chore: regenerate README (#533) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-29 14:45:32,495 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-29 14:45:33,770 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/98e7db21-4d4c-46d4-8616-6ddda038e677/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 7865631e..048f4ac7 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "779d5b5e99b6124911784d5973aa66e47777845c" + "sha": "2caf3fb0ef7f64c53d7a3c2a1d5ec917e63dbb11" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a648ce0ca3fe122b3186d7e6861cb641437e485e" + "sha": "06a8cd0ff7e81b05e6c503eab510ec622384caa7" } } ] diff --git a/README.md b/README.md index 5114b46f..2d1d6ddf 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import @@ -46,18 +46,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.1.0') +implementation platform('com.google.cloud:libraries-bom:20.2.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.4.1' +compile 'com.google.cloud:google-cloud-dataproc:1.4.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.2" ``` ## Authentication From 120854035edb3b0ee52876161c47636131f6ba47 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Apr 2021 20:18:03 +0200 Subject: [PATCH 162/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.4.2 (#527) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.4.0` -> `1.4.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.2/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.2/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.4.2`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​142-httpswwwgithubcomgoogleapisjava-dataproccomparev141v142-2021-04-26) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) ### [`v1.4.1`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​141-httpswwwgithubcomgoogleapisjava-dataproccomparev140v141-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 177e5508..f888e2ae 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.2 From ab786aacb475548c7d84aec9ba0dafe0821fdf20 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Apr 2021 11:38:15 -0700 Subject: [PATCH 163/519] chore: regenerate README (#534) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-30 18:23:45,199 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-30 18:23:46,482 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/30148581-782c-459e-9c55-cc51694504af/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 048f4ac7..ac3306ef 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "2caf3fb0ef7f64c53d7a3c2a1d5ec917e63dbb11" + "sha": "120854035edb3b0ee52876161c47636131f6ba47" } }, { diff --git a/README.md b/README.md index 2d1d6ddf..667e468a 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.4.0 + 1.4.2 ``` From a0112e33e4cdc65c3e6ecf740b58b1e4949c12ee Mon Sep 17 00:00:00 2001 From: "google-cloud-policy-bot[bot]" <80869356+google-cloud-policy-bot[bot]@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:42:31 +0000 Subject: [PATCH 164/519] chore: add SECURITY.md (#531) chore: add SECURITY.md --- SECURITY.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..8b58ae9c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. From 1ca0c759b2b9d4c52f052644c2f142cd9bfc43c7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 4 May 2021 09:08:19 -0700 Subject: [PATCH 165/519] build(java): switch to release-please for release tagging (#536) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4d67a5a1-abab-4644-93fd-993084fdbdb4/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/release-please.yml | 3 ++- synth.metadata | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index dce2c845..8ca7f9ca 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,2 +1,3 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 88de5275..bbf93ec2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a749493d05bfd1aefd2af64c28a9deaf13873bce" + "sha": "a0112e33e4cdc65c3e6ecf740b58b1e4949c12ee" } }, { From e47cbe6ea3a30aa6c0e9e435dac176a9cdadaeb6 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 4 May 2021 12:44:21 -0400 Subject: [PATCH 166/519] chore: add enumeration data type to .repo-metadata.json (#537) Adds a standard enumeration of library types in .repo-metadata.json --- .repo-metadata.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 1b401261..e69de29b 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,17 +0,0 @@ -{ - "name": "dataproc", - "name_pretty": "Dataproc", - "product_documentation": "https://cloud.google.com/dataproc", - "client_documentation": "https://googleapis.dev/java/google-cloud-dataproc/latest/", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559745", - "release_level": "ga", - "language": "java", - "repo": "googleapis/java-dataproc", - "repo_short": "java-dataproc", - "distribution_name": "com.google.cloud:google-cloud-dataproc", - "codeowner_team": "@googleapis/api-dataproc", - "api_id": "dataproc.googleapis.com", - "transport": "grpc", - "requires_billing": true, - "api_description": "is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop." -} From 321a9e90229704e681028f01b18124e25a0c3a90 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 5 May 2021 19:52:02 -0400 Subject: [PATCH 167/519] chore: add enumeration data type to .repo-metadata.json (#538) Adds a standard enumeration of library types in .repo-metadata.json --- .repo-metadata.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.repo-metadata.json b/.repo-metadata.json index e69de29b..eb22be0f 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -0,0 +1,18 @@ +{ + "name": "dataproc", + "name_pretty": "Dataproc", + "product_documentation": "https://cloud.google.com/dataproc", + "client_documentation": "https://googleapis.dev/java/google-cloud-dataproc/latest/", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559745", + "release_level": "ga", + "language": "java", + "repo": "googleapis/java-dataproc", + "repo_short": "java-dataproc", + "distribution_name": "com.google.cloud:google-cloud-dataproc", + "codeowner_team": "@googleapis/api-dataproc", + "api_id": "dataproc.googleapis.com", + "transport": "grpc", + "requires_billing": true, + "api_description": "is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop.", + "library_type": "GAPIC_AUTO" + } \ No newline at end of file From fb66f4ffbe758a813343dde1df3952f840cdb9af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 May 2021 17:46:05 +0200 Subject: [PATCH 168/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.2 (#535) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.apache.maven.plugins:maven-project-info-reports-plugin | `3.1.1` -> `3.1.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/compatibility-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/confidence-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1b4d4533..85d5fc59 100644 --- a/pom.xml +++ b/pom.xml @@ -141,7 +141,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.1.2 From 1436c71b3d4ba310adfccc79b1edee1a37194eb3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 10 May 2021 10:14:28 -0700 Subject: [PATCH 169/519] chore: adding cloud-rad java xrefs (#541) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/86e74812-c02f-4f90-8e42-37c2aca2b51d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/046994f491c02806aea60118e214a9edd67f5ab7 --- .kokoro/release/publish_javadoc11.sh | 7 +++++++ synth.metadata | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 4436f0be..8f225f99 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -49,6 +49,13 @@ pushd target/docfx-yml python3 -m docuploader create-metadata \ --name ${NAME} \ --version ${VERSION} \ + --xrefs devsite://java/gax \ + --xrefs devsite://java/google-cloud-core \ + --xrefs devsite://java/api-common \ + --xrefs devsite://java/proto-google-common-protos \ + --xrefs devsite://java/google-api-client \ + --xrefs devsite://java/google-http-client \ + --xrefs devsite://java/protobuf \ --language java # upload yml to production bucket diff --git a/synth.metadata b/synth.metadata index bbf93ec2..f1be08eb 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "a0112e33e4cdc65c3e6ecf740b58b1e4949c12ee" + "sha": "fb66f4ffbe758a813343dde1df3952f840cdb9af" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" + "sha": "046994f491c02806aea60118e214a9edd67f5ab7" } } ], From 5b272a91916678deb2d02f38a1acc26e41c206e0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 10 May 2021 10:44:05 -0700 Subject: [PATCH 170/519] chore: regenerate README (#543) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-05-10 17:34:32,155 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-10 17:34:33,426 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/b54eb72f-bebe-4339-9f41-bd2969f6e6cd/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index ac3306ef..6829d9ba 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "120854035edb3b0ee52876161c47636131f6ba47" + "sha": "1436c71b3d4ba310adfccc79b1edee1a37194eb3" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "06a8cd0ff7e81b05e6c503eab510ec622384caa7" + "sha": "6726988c677bb78385868bfc48dbfa2fe981d44a" } } ] diff --git a/README.md b/README.md index 667e468a..d81117e4 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.2.0') +implementation platform('com.google.cloud:libraries-bom:20.3.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 67fcadd562407d01b8aca7551ea4bc4e57c5940f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 11 May 2021 03:22:26 +0200 Subject: [PATCH 171/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 (#544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.0.0` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare100v110-2021-05-10) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.0.0...v1.1.0) ##### Dependencies - update dependency com.google.protobuf:protobuf-bom to v3.16.0 ([#​348](https://www.github.com/googleapis/java-shared-dependencies/issues/348)) ([0aacfde](https://www.github.com/googleapis/java-shared-dependencies/commit/0aacfdeec70e30803734db8287c47e4fad5481ef)) - update gax.version to v1.64.0 ([#​345](https://www.github.com/googleapis/java-shared-dependencies/issues/345)) ([478bd35](https://www.github.com/googleapis/java-shared-dependencies/commit/478bd35296293e81c7e70157f50bfbebdc1bb54d)) - update iam.version to v1.0.13 ([#​343](https://www.github.com/googleapis/java-shared-dependencies/issues/343)) ([3637923](https://www.github.com/googleapis/java-shared-dependencies/commit/363792392b71deff5cc5731104b631122fba5e61))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85d5fc59..6bc94e5d 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.0.0 + 1.1.0 pom import From 94c963cf511c7a5e75bca7e145fad626bf8a5c5c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 20:18:13 +0200 Subject: [PATCH 172/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.114.0 (#545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.113.16` -> `1.114.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.114.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.114.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.114.0/compatibility-slim/1.113.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.114.0/confidence-slim/1.113.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.114.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11140-httpswwwgithubcomgoogleapisjava-storagecomparev111316v11140-2021-05-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.113.16...v1.114.0) ##### Features - Remove client side vaildation for lifecycle conditions ([#​816](https://www.github.com/googleapis/java-storage/issues/816)) ([5ec84cc](https://www.github.com/googleapis/java-storage/commit/5ec84cc2935a4787dd14a207d27501878f5849d5)) ##### Bug Fixes - **test:** update blob paths used in storage.it.ITStorageTest#testDownloadPublicBlobWithoutAuthentication ([#​759](https://www.github.com/googleapis/java-storage/issues/759)) ([#​817](https://www.github.com/googleapis/java-storage/issues/817)) ([1a576ca](https://www.github.com/googleapis/java-storage/commit/1a576ca3945b51d7a678aa2414be91b3c6b2d55e)) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.31.5 ([#​820](https://www.github.com/googleapis/java-storage/issues/820)) ([9e1bc0b](https://www.github.com/googleapis/java-storage/commit/9e1bc0b42abdaab0b11d761ecdbb92f6116aacd2)) - update dependency com.google.api.grpc:grpc-google-cloud-kms-v1 to v0.88.3 ([#​797](https://www.github.com/googleapis/java-storage/issues/797)) ([747e7e4](https://www.github.com/googleapis/java-storage/commit/747e7e463c028b9cf8a406b7536b1916c1d52c01)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#​815](https://www.github.com/googleapis/java-storage/issues/815)) ([e210de9](https://www.github.com/googleapis/java-storage/commit/e210de93452243242be7d3d719d00da723632335)) ##### [1.113.16](https://www.github.com/googleapis/java-storage/compare/v1.113.15...v1.113.16) (2021-04-23) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​784](https://www.github.com/googleapis/java-storage/issues/784)) ([36751f5](https://www.github.com/googleapis/java-storage/commit/36751f5de9708ac9e23550f67256fb05ebf1f69e)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#​789](https://www.github.com/googleapis/java-storage/issues/789)) ([c005e87](https://www.github.com/googleapis/java-storage/commit/c005e877a7d64c4bbd2ed267526d8025ea29a9ad)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#​794](https://www.github.com/googleapis/java-storage/issues/794)) ([195fead](https://www.github.com/googleapis/java-storage/commit/195fead94dea4c50f7e285e0a7a1578fa5b6265d)) ##### [1.113.15](https://www.github.com/googleapis/java-storage/compare/v1.113.14...v1.113.15) (2021-04-13) ##### Bug Fixes - **test:** update blob paths used in storage.it.ITStorageTest#testDownloadPublicBlobWithoutAuthentication ([#​759](https://www.github.com/googleapis/java-storage/issues/759)) ([9a6619c](https://www.github.com/googleapis/java-storage/commit/9a6619c39a89e2c2ee8d0000d595d09ac7b7825f)) - typo ([#​779](https://www.github.com/googleapis/java-storage/issues/779)) ([3c3d6b4](https://www.github.com/googleapis/java-storage/commit/3c3d6b487648fde4eb956ce8912cd680a4440f8d)) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.31.4 ([#​774](https://www.github.com/googleapis/java-storage/issues/774)) ([ad9ff7b](https://www.github.com/googleapis/java-storage/commit/ad9ff7b801d0c5fb39f72c7118c319f4e45084a0)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#​771](https://www.github.com/googleapis/java-storage/issues/771)) ([5605095](https://www.github.com/googleapis/java-storage/commit/5605095ed796327879a930c12526b3c5b1409b17)) - update kms.version to v0.88.1 ([#​758](https://www.github.com/googleapis/java-storage/issues/758)) ([3e57ea9](https://www.github.com/googleapis/java-storage/commit/3e57ea9a2f5f7013e997469c5ca32be8cef2a4a4)) - update kms.version to v0.88.2 ([#​778](https://www.github.com/googleapis/java-storage/issues/778)) ([6edfc4c](https://www.github.com/googleapis/java-storage/commit/6edfc4ced2bdae9878ecdbc5ef636ac39bdb5881)) - update truth ([#​767](https://www.github.com/googleapis/java-storage/issues/767)) ([4e5ee03](https://www.github.com/googleapis/java-storage/commit/4e5ee0398e700baf4f88224f66309e426f9532d7)) ##### [1.113.14](https://www.github.com/googleapis/java-storage/compare/v1.113.13...v1.113.14) (2021-03-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#​749](https://www.github.com/googleapis/java-storage/issues/749)) ([bb42107](https://www.github.com/googleapis/java-storage/commit/bb42107ff10148e14e112ff78534753f2ebc7dd9)) - update kms.version to v0.88.0 ([#​753](https://www.github.com/googleapis/java-storage/issues/753)) ([eaedb64](https://www.github.com/googleapis/java-storage/commit/eaedb6456f2f427a7f2f3f3d6bd13d0d49fd269b)) ##### [1.113.13](https://www.github.com/googleapis/java-storage/compare/v1.113.12...v1.113.13) (2021-03-08) ##### Bug Fixes - npe in createFrom ([#​746](https://www.github.com/googleapis/java-storage/issues/746)) ([9ed9d13](https://www.github.com/googleapis/java-storage/commit/9ed9d1389e92766b66e2b8b4fb78b44d96d98803)) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.31.3 ([#​737](https://www.github.com/googleapis/java-storage/issues/737)) ([71b3842](https://www.github.com/googleapis/java-storage/commit/71b384233226531eabc1bd8eebf716ec53708afc)) ##### [1.113.12](https://www.github.com/googleapis/java-storage/compare/v1.113.11...v1.113.12) (2021-02-26) ##### Bug Fixes - retrying get remote offset and recover from last chunk failures. ([#​726](https://www.github.com/googleapis/java-storage/issues/726)) ([b41b881](https://www.github.com/googleapis/java-storage/commit/b41b88109e13b5ebbd0393d1f264225c12876be6)) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.31.2 ([#​686](https://www.github.com/googleapis/java-storage/issues/686)) ([6b1f036](https://www.github.com/googleapis/java-storage/commit/6b1f0361376167719ec5456181134136d27d1d3c)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#​732](https://www.github.com/googleapis/java-storage/issues/732)) ([c98413d](https://www.github.com/googleapis/java-storage/commit/c98413df9d9514340aed78b5a4d5e596760bb616)) - update kms.version to v0.87.7 ([#​724](https://www.github.com/googleapis/java-storage/issues/724)) ([3229bd8](https://www.github.com/googleapis/java-storage/commit/3229bd860f3a4d700a969aa9e922bbf6b5c1ca10)) - update kms.version to v0.87.8 ([#​733](https://www.github.com/googleapis/java-storage/issues/733)) ([a21b75f](https://www.github.com/googleapis/java-storage/commit/a21b75fa846f373970298dd98f8f3520fc2b3c97)) ##### [1.113.11](https://www.github.com/googleapis/java-storage/compare/v1.113.10...v1.113.11) (2021-02-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#​719](https://www.github.com/googleapis/java-storage/issues/719)) ([5831bfa](https://www.github.com/googleapis/java-storage/commit/5831bfae3afeab9b044c8d53ebf6a2ce79bc9950)) ##### [1.113.10](https://www.github.com/googleapis/java-storage/compare/v1.113.9...v1.113.10) (2021-02-17) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20210127-1.31.0 ([#​706](https://www.github.com/googleapis/java-storage/issues/706)) ([04db8f7](https://www.github.com/googleapis/java-storage/commit/04db8f7b87644559685d4c05a67a74e4c8bea364)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#​683](https://www.github.com/googleapis/java-storage/issues/683)) ([6f172eb](https://www.github.com/googleapis/java-storage/commit/6f172eba6fd6e9c11a1f49569249ea6e714ea91f)) - update kms.version to v0.87.6 ([#​702](https://www.github.com/googleapis/java-storage/issues/702)) ([a50c333](https://www.github.com/googleapis/java-storage/commit/a50c333f6e944fa4c6bdf9613cddca7c4fe79652)) ##### [1.113.9](https://www.github.com/googleapis/java-storage/compare/v1.113.8...v1.113.9) (2021-01-12) ##### Bug Fixes - last chunk is retriable ([#​677](https://www.github.com/googleapis/java-storage/issues/677)) ([44f49e0](https://www.github.com/googleapis/java-storage/commit/44f49e0a33c3e541d9f8b22622ffff17cc8b8eaa)) - unnecessary options in resumable upload URL ([#​679](https://www.github.com/googleapis/java-storage/issues/679)) ([d31a39b](https://www.github.com/googleapis/java-storage/commit/d31a39b88b2d8adb04549330f9b8ff1c1a516b69)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.1 ([#​678](https://www.github.com/googleapis/java-storage/issues/678)) ([d4a237f](https://www.github.com/googleapis/java-storage/commit/d4a237f4dff9dd870a69d5da9d690c14d4e88610)) - update kms.version to v0.87.5 ([#​662](https://www.github.com/googleapis/java-storage/issues/662)) ([20e7c1f](https://www.github.com/googleapis/java-storage/commit/20e7c1f10a233df6d4660b31d26cd95a6d4002e9)) ##### [1.113.8](https://www.github.com/googleapis/java-storage/compare/v1.113.7...v1.113.8) (2020-12-16) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#​659](https://www.github.com/googleapis/java-storage/issues/659)) ([5fa03fa](https://www.github.com/googleapis/java-storage/commit/5fa03fa14aa9ee29e7b1b27b783ab873052b97c6)) ##### [1.113.7](https://www.github.com/googleapis/java-storage/compare/v1.113.6...v1.113.7) (2020-12-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([f1fc884](https://www.github.com/googleapis/java-storage/commit/f1fc884851ee602d737f3e4191acb1f8450c8f2c)) ##### [1.113.6](https://www.github.com/googleapis/java-storage/compare/v1.113.5...v1.113.6) (2020-12-10) ##### Bug Fixes - content-length missing in offset request ([#​647](https://www.github.com/googleapis/java-storage/issues/647)) ([3cd3815](https://www.github.com/googleapis/java-storage/commit/3cd3815c62603d05d4c571ba1affeaf91e4d8040)) ##### Dependencies - update kms.version to v0.87.3 ([#​646](https://www.github.com/googleapis/java-storage/issues/646)) ([c93896a](https://www.github.com/googleapis/java-storage/commit/c93896a5007b48753809de806ddaf6c8df6e9d56)) ##### [1.113.5](https://www.github.com/googleapis/java-storage/compare/v1.113.4...v1.113.5) (2020-12-07) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.31.1 ([#​611](https://www.github.com/googleapis/java-storage/issues/611)) ([7c4c759](https://www.github.com/googleapis/java-storage/commit/7c4c759d8bca9c20252e06e02eb8ead3bd9f88d6)) - update dependency com.google.api.grpc:grpc-google-cloud-kms-v1 to v0.87.2 ([#​625](https://www.github.com/googleapis/java-storage/issues/625)) ([243a3cb](https://www.github.com/googleapis/java-storage/commit/243a3cb1506b2e2d609210dc4e9608637c06d7f3)) - update dependency com.google.apis:google-api-services-storage to v1-rev20201112-1.30.10 ([#​613](https://www.github.com/googleapis/java-storage/issues/613)) ([b0e24db](https://www.github.com/googleapis/java-storage/commit/b0e24db88c784fd05988a813bd8b29aeff0739f2)) - update dependency com.google.apis:google-api-services-storage to v1-rev20201112-1.31.0 ([#​641](https://www.github.com/googleapis/java-storage/issues/641)) ([11da9c7](https://www.github.com/googleapis/java-storage/commit/11da9c7e9058c508423e7b2f84c897ab3e9ab3f3)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#​639](https://www.github.com/googleapis/java-storage/issues/639)) ([68a3af9](https://www.github.com/googleapis/java-storage/commit/68a3af9b12c0e05d2cf59fb58aceab15323e29b1)) - update dependency org.apache.httpcomponents:httpcore to v4.4.14 ([#​637](https://www.github.com/googleapis/java-storage/issues/637)) ([af53902](https://www.github.com/googleapis/java-storage/commit/af5390239ffd1e157f066a1009b7bb18fa6264ec)) ##### [1.113.4](https://www.github.com/googleapis/java-storage/compare/v1.113.3...v1.113.4) (2020-11-13) ##### Bug Fixes - retry using remote offset ([#​604](https://www.github.com/googleapis/java-storage/issues/604)) ([216b52c](https://www.github.com/googleapis/java-storage/commit/216b52c54d34eaf1307788809a3512c461adf381)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#​610](https://www.github.com/googleapis/java-storage/issues/610)) ([ac65e5b](https://www.github.com/googleapis/java-storage/commit/ac65e5b0bd324d5726504bb3405c758675a56ddc)) ##### [1.113.3](https://www.github.com/googleapis/java-storage/compare/v1.113.2...v1.113.3) (2020-11-06) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#​592](https://www.github.com/googleapis/java-storage/issues/592)) ([25e8e6a](https://www.github.com/googleapis/java-storage/commit/25e8e6a01dde517fd42cfc8ae59b8555ea0a2831)) - update kms.version to v0.87.1 ([#​595](https://www.github.com/googleapis/java-storage/issues/595)) ([1e399cd](https://www.github.com/googleapis/java-storage/commit/1e399cd33755e647bf08f4a82af932320cab655d)) ##### [1.113.2](https://www.github.com/googleapis/java-storage/compare/v1.113.1...v1.113.2) (2020-10-26) ##### Documentation - update libraries-bom ([#​540](https://www.github.com/googleapis/java-storage/issues/540)) ([54987e1](https://www.github.com/googleapis/java-storage/commit/54987e1ba35d99db680ab2ad6ac86a6b74c7c705)) - update libraries-bom ([#​552](https://www.github.com/googleapis/java-storage/issues/552)) ([c4df018](https://www.github.com/googleapis/java-storage/commit/c4df01875b8f088bd65bcd0353e1b74a18b9582c)) ##### Dependencies - update dependency com.google.api-client:google-api-client to v1.30.11 ([#​575](https://www.github.com/googleapis/java-storage/issues/575)) ([99838e6](https://www.github.com/googleapis/java-storage/commit/99838e63f9a71095c4d8f6c99622a9aee2e5d26d)) - update dependency com.google.apis:google-api-services-storage to v1-rev20200927-1.30.10 ([#​539](https://www.github.com/googleapis/java-storage/issues/539)) ([5e49013](https://www.github.com/googleapis/java-storage/commit/5e49013add340e4d8287e00b8d4a9c499df80205)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#​529](https://www.github.com/googleapis/java-storage/issues/529)) ([dc58856](https://www.github.com/googleapis/java-storage/commit/dc58856c2548013a495b62cc6bb696ada24d2557)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#​549](https://www.github.com/googleapis/java-storage/issues/549)) ([c59c28d](https://www.github.com/googleapis/java-storage/commit/c59c28d97a9eb4e811921c7cad637d67c2be16be)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#​566](https://www.github.com/googleapis/java-storage/issues/566)) ([f1dedfb](https://www.github.com/googleapis/java-storage/commit/f1dedfbf9f47c87c7f7fea5e6c1c7c1af35b060e)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#​570](https://www.github.com/googleapis/java-storage/issues/570)) ([ef55f49](https://www.github.com/googleapis/java-storage/commit/ef55f49230f58863195782b5fe0f84285a316aef)) ##### [1.113.1](https://www.github.com/googleapis/java-storage/compare/v1.113.0...v1.113.1) (2020-09-17) ##### Bug Fixes - KMS Bad Key error when using existing Blob context to overwrite object ([#​507](https://www.github.com/googleapis/java-storage/issues/507)) ([4d9c490](https://www.github.com/googleapis/java-storage/commit/4d9c49027e4746ee273902694441886c2f43188d)) - When passing a sub-array (offset, length) to the Storage#create method the array is needlessly cloned ([#​506](https://www.github.com/googleapis/java-storage/issues/506)) ([9415bb7](https://www.github.com/googleapis/java-storage/commit/9415bb7bdb42d8012ca457a90070b616e6bbec19)), closes [#​505](https://www.github.com/googleapis/java-storage/issues/505) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20200814-1.30.10 ([#​499](https://www.github.com/googleapis/java-storage/issues/499)) ([af91d7d](https://www.github.com/googleapis/java-storage/commit/af91d7da4117fb22992d6a860af61f72906e0aa1)) ##### Documentation - update libraries-bom ([#​504](https://www.github.com/googleapis/java-storage/issues/504)) ([0e58c1c](https://www.github.com/googleapis/java-storage/commit/0e58c1cb2b6a890e567b043188613021592f2bc8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f888e2ae..75bfcd73 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.113.16 + 1.114.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ecc8f815..faa7fae4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.113.16 + 1.114.0 junit From cf51851ac1da49df1443fdd479142a28e502f813 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 May 2021 16:40:38 -0700 Subject: [PATCH 173/519] build(java): remove codecov action (#546) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e6b0cbbb-c315-4d47-a85f-ad59f2a76c78/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1 --- .github/workflows/ci.yaml | 6 +----- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index def8b3a2..0195b32f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,6 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test - - name: coverage - uses: codecov/codecov-action@v1 - with: - name: actions ${{matrix.java}} windows: runs-on: windows-latest steps: @@ -80,4 +76,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/synth.metadata b/synth.metadata index f1be08eb..c452936a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "fb66f4ffbe758a813343dde1df3952f840cdb9af" + "sha": "94c963cf511c7a5e75bca7e145fad626bf8a5c5c" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "046994f491c02806aea60118e214a9edd67f5ab7" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ], From 8c9370fe8f8e0b49509902e33880abcfa6bf5c84 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 02:06:14 +0000 Subject: [PATCH 174/519] chore: release 1.4.3-SNAPSHOT (#530) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index af0d8433..d5ee9a38 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.2 + 1.4.3-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 47efdf09..97bf8981 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.2 + 1.4.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 2eed0b38..c3d8021d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index fdce9626..767d12e0 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6bc94e5d..430b9c0e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.2 + 1.4.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 4a9645f2..56f7da4b 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.2 + 1.4.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index f15a9924..b8629141 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.2 + 0.92.3-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index faa7fae4..dd53b7ca 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5f32726a..874a5ad5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.2:0.92.2 -proto-google-cloud-dataproc-v1:1.4.2:1.4.2 -grpc-google-cloud-dataproc-v1:1.4.2:1.4.2 -grpc-google-cloud-dataproc-v1beta2:0.92.2:0.92.2 -google-cloud-dataproc:1.4.2:1.4.2 +proto-google-cloud-dataproc-v1beta2:0.92.2:0.92.3-SNAPSHOT +proto-google-cloud-dataproc-v1:1.4.2:1.4.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.4.2:1.4.3-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.92.2:0.92.3-SNAPSHOT +google-cloud-dataproc:1.4.2:1.4.3-SNAPSHOT From acaea8dfacc99fa4ebb4550cbcc3777c39645107 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 02:16:36 +0000 Subject: [PATCH 175/519] chore: release 1.4.3 (#547) :robot: I have created a release \*beep\* \*boop\* --- ### [1.4.3](https://www.github.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3) (2021-05-14) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#544](https://www.github.com/googleapis/java-dataproc/issues/544)) ([67fcadd](https://www.github.com/googleapis/java-dataproc/commit/67fcadd562407d01b8aca7551ea4bc4e57c5940f)) * update dependency com.google.cloud:google-cloud-storage to v1.114.0 ([#545](https://www.github.com/googleapis/java-dataproc/issues/545)) ([94c963c](https://www.github.com/googleapis/java-dataproc/commit/94c963cf511c7a5e75bca7e145fad626bf8a5c5c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94ab1727..d9d1f7b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.4.3](https://www.github.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3) (2021-05-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#544](https://www.github.com/googleapis/java-dataproc/issues/544)) ([67fcadd](https://www.github.com/googleapis/java-dataproc/commit/67fcadd562407d01b8aca7551ea4bc4e57c5940f)) +* update dependency com.google.cloud:google-cloud-storage to v1.114.0 ([#545](https://www.github.com/googleapis/java-dataproc/issues/545)) ([94c963c](https://www.github.com/googleapis/java-dataproc/commit/94c963cf511c7a5e75bca7e145fad626bf8a5c5c)) + ### [1.4.2](https://www.github.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) (2021-04-26) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index d5ee9a38..b1293273 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.3-SNAPSHOT + 1.4.3 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.3-SNAPSHOT + 1.4.3 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 97bf8981..3fb7188c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.3-SNAPSHOT + 1.4.3 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.3-SNAPSHOT + 1.4.3 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index c3d8021d..156595c8 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 767d12e0..edc8c763 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/pom.xml b/pom.xml index 430b9c0e..5044f25e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.3-SNAPSHOT + 1.4.3 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 com.google.cloud google-cloud-dataproc - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 56f7da4b..8b622549 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3-SNAPSHOT + 1.4.3 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index b8629141..a3046788 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3-SNAPSHOT + 0.92.3 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dd53b7ca..fcb7017f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.3-SNAPSHOT + 1.4.3 diff --git a/versions.txt b/versions.txt index 874a5ad5..32ac5be7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.2:0.92.3-SNAPSHOT -proto-google-cloud-dataproc-v1:1.4.2:1.4.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.4.2:1.4.3-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.92.2:0.92.3-SNAPSHOT -google-cloud-dataproc:1.4.2:1.4.3-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.92.3:0.92.3 +proto-google-cloud-dataproc-v1:1.4.3:1.4.3 +grpc-google-cloud-dataproc-v1:1.4.3:1.4.3 +grpc-google-cloud-dataproc-v1beta2:0.92.3:0.92.3 +google-cloud-dataproc:1.4.3:1.4.3 From a3f812de9379c0514decf0cf47369dc063a0ec2f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 02:26:38 +0000 Subject: [PATCH 176/519] chore: release 1.4.4-SNAPSHOT (#548) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b1293273..603ef32c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.3 + 1.4.4-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.3 + 1.4.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 3fb7188c..dbd0da03 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.3 + 1.4.4-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.3 + 1.4.4-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 156595c8..00024f73 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index edc8c763..f0bd65e5 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5044f25e..aae32ad4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.3 + 1.4.4-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 8b622549..5cc29218 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.3 + 1.4.4-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index a3046788..fd051544 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.3 + 0.92.4-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fcb7017f..8003d9e5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.3 + 1.4.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 32ac5be7..428b39e4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.3:0.92.3 -proto-google-cloud-dataproc-v1:1.4.3:1.4.3 -grpc-google-cloud-dataproc-v1:1.4.3:1.4.3 -grpc-google-cloud-dataproc-v1beta2:0.92.3:0.92.3 -google-cloud-dataproc:1.4.3:1.4.3 +proto-google-cloud-dataproc-v1beta2:0.92.3:0.92.4-SNAPSHOT +proto-google-cloud-dataproc-v1:1.4.3:1.4.4-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.4.3:1.4.4-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.92.3:0.92.4-SNAPSHOT +google-cloud-dataproc:1.4.3:1.4.4-SNAPSHOT From dba5c00ea398ccc1fd5ff4b7f6edfc47988ba514 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:46:22 +0200 Subject: [PATCH 177/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#542) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ff70aadb..07fd4662 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.4.0 pom import From f57848bc83a9a6a05f23149b014111eb325a942d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 16 May 2021 19:02:02 -0700 Subject: [PATCH 178/519] chore: regenerate README (#551) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-05-17 01:51:49,255 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-17 01:51:50,499 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/1e40a6b3-5492-4340-a2d7-fc51dbf4353a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 6829d9ba..e657355b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "1436c71b3d4ba310adfccc79b1edee1a37194eb3" + "sha": "dba5c00ea398ccc1fd5ff4b7f6edfc47988ba514" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6726988c677bb78385868bfc48dbfa2fe981d44a" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ] diff --git a/README.md b/README.md index d81117e4..ca6cfde4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.2.0 + 20.4.0 pom import @@ -46,18 +46,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.3.0') +implementation platform('com.google.cloud:libraries-bom:20.4.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.4.2' +compile 'com.google.cloud:google-cloud-dataproc:1.4.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.3" ``` ## Authentication From fdf629ca71397e338fc822e8f97f6757a696817d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 17 May 2021 16:20:16 -0700 Subject: [PATCH 179/519] chore: add changelog to cloud-rad (#552) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/81e4ad9c-db2f-4f59-8745-b52a48665ccc/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/c86c7a60985644eab557949363a38301d40d78d2 --- .kokoro/release/publish_javadoc11.sh | 2 ++ synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 8f225f99..00f2471b 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -42,6 +42,8 @@ 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 +cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/synth.metadata b/synth.metadata index c452936a..1fa31f1b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "94c963cf511c7a5e75bca7e145fad626bf8a5c5c" + "sha": "f57848bc83a9a6a05f23149b014111eb325a942d" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "c86c7a60985644eab557949363a38301d40d78d2" } } ], From c6fbf45f964242cd249e6aebfd85b8d63cf1697c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 May 2021 07:20:13 -0700 Subject: [PATCH 180/519] feat: add `gcf-owl-bot[bot]` to `ignoreAuthors` (#554) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/89d4fac7-23f8-4cf0-b412-6ccac17af7af/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/7332178a11ddddc91188dc0f25bca1ccadcaa6c6 --- .github/generated-files-bot.yml | 1 + synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 47c2ba13..c644a24e 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -9,3 +9,4 @@ ignoreAuthors: - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' +- 'gcf-owl-bot[bot]' diff --git a/synth.metadata b/synth.metadata index 1fa31f1b..bce0b5e9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f57848bc83a9a6a05f23149b014111eb325a942d" + "sha": "fdf629ca71397e338fc822e8f97f6757a696817d" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c86c7a60985644eab557949363a38301d40d78d2" + "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" } } ], From 2fe5a5de5ad05ac83c948d59edb1fecb6f3f12d6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 17:12:07 +0200 Subject: [PATCH 181/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 (#553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare110v120-2021-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.1.0...v1.2.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.31.5 ([#​353](https://www.github.com/googleapis/java-shared-dependencies/issues/353)) ([8d72ab0](https://www.github.com/googleapis/java-shared-dependencies/commit/8d72ab003e08c864aedc17fc190ba26f393bf0c7)) - update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#​360](https://www.github.com/googleapis/java-shared-dependencies/issues/360)) ([8f952d0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f952d05745358fc426a1a2dcb688da5d5010239)) - update dependency com.google.protobuf:protobuf-bom to v3.17.0 ([#​355](https://www.github.com/googleapis/java-shared-dependencies/issues/355)) ([09858fb](https://www.github.com/googleapis/java-shared-dependencies/commit/09858fb4f1b78a77e828501597d20df4db0ebfcf)) - update dependency io.grpc:grpc-bom to v1.37.1 ([#​359](https://www.github.com/googleapis/java-shared-dependencies/issues/359)) ([bc9869e](https://www.github.com/googleapis/java-shared-dependencies/commit/bc9869e914314f951afd69f2acae95c414398f43)) - update google.common-protos.version to v2.2.1 ([#​358](https://www.github.com/googleapis/java-shared-dependencies/issues/358)) ([a3ed764](https://www.github.com/googleapis/java-shared-dependencies/commit/a3ed764a0e5143ee323d4b69c9747b8265d349e2)) - update iam.version to v1.0.14 ([#​352](https://www.github.com/googleapis/java-shared-dependencies/issues/352)) ([bea9a01](https://www.github.com/googleapis/java-shared-dependencies/commit/bea9a01788ac1332a4bc7e06574ef5701700fe90))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aae32ad4..5f859dda 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.1.0 + 1.2.0 pom import From 69c3cc71e6413ff926bdedca8633d264e5107877 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 23:04:08 +0200 Subject: [PATCH 182/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.12.0 (#556) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.2` -> `0.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/compatibility-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/confidence-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 603ef32c..4d32247c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 5f859dda..0d64e78c 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 From cc675f04871f847ff99ddb123d11640b1796a37c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 20 May 2021 15:38:03 -0700 Subject: [PATCH 183/519] chore: dump maven version along with java (#557) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/77f4b242-0926-4e4e-acee-48c7b5d1aa76/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8eae0234a16b26c2ff616d305dbd9786c8b10a47 --- .kokoro/build.sh | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 63e00a00..642f0b97 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -23,8 +23,8 @@ cd ${scriptDir}/.. # include common functions source ${scriptDir}/common.sh -# Print out Java version -java -version +# Print out Maven & Java version +mvn -version echo ${JOB_TYPE} # attempt to install 3 times with exponential backoff (starting with 10 seconds) diff --git a/synth.metadata b/synth.metadata index bce0b5e9..bb31338c 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "fdf629ca71397e338fc822e8f97f6757a696817d" + "sha": "69c3cc71e6413ff926bdedca8633d264e5107877" } }, { @@ -27,7 +27,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" + "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" } } ], From 111dc4970dbb3662dc2535c7630bef55400b616c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 18:58:15 +0200 Subject: [PATCH 184/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#559) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 07fd4662..5299195d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 22ec4f9db66cea758126b870078ffee562aadd15 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 18:59:03 +0200 Subject: [PATCH 185/519] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 (#558) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0d64e78c..298e8a90 100644 --- a/pom.xml +++ b/pom.xml @@ -168,7 +168,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.3.0 html From 24823114a499625f94e77f575e557e77c31edb2a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 25 May 2021 10:10:11 -0700 Subject: [PATCH 186/519] chore: regenerate README (#560) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-05-25 17:01:32,417 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-25 17:01:33,615 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/1fdb35f0-5e2e-43d3-9202-f9d8f8d27fb1/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index e657355b..f04c230a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "dba5c00ea398ccc1fd5ff4b7f6edfc47988ba514" + "sha": "22ec4f9db66cea758126b870078ffee562aadd15" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "a2de127f90799cd5bace653b1dcc5dd2ca8b19c9" } } ] diff --git a/README.md b/README.md index ca6cfde4..ddfd5081 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.4.0') +implementation platform('com.google.cloud:libraries-bom:20.5.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 693df292a201637c42401dd025bbcdc9e9db1743 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:45:31 +0200 Subject: [PATCH 187/519] test(deps): update dependency com.google.truth:truth to v1.1.3 (#561) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 75bfcd73..4199d664 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -47,7 +47,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8003d9e5..298e78dd 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -45,7 +45,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5299195d..204fcbcf 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From f44e361dda1c9620dce8c4b554fa7305d3a3b72d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 May 2021 23:32:06 +0200 Subject: [PATCH 188/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.4.3 (#549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.4.2` -> `1.4.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.3/compatibility-slim/1.4.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.4.3/confidence-slim/1.4.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.4.3`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​143-httpswwwgithubcomgoogleapisjava-dataproccomparev142v143-2021-05-14) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4199d664..70e289bc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3 From 5ca0a20f39cf80e730c93a597a98c738d0a5530c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 31 May 2021 14:42:12 -0700 Subject: [PATCH 189/519] chore: regenerate README (#562) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-05-31 21:34:21,776 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-31 21:34:23,051 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/18b347ed-6674-40a9-b6d9-61de384fa827/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index f04c230a..31e7cf38 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "22ec4f9db66cea758126b870078ffee562aadd15" + "sha": "f44e361dda1c9620dce8c4b554fa7305d3a3b72d" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a2de127f90799cd5bace653b1dcc5dd2ca8b19c9" + "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" } } ] diff --git a/README.md b/README.md index ddfd5081..5076dff2 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.4.2 + 1.4.3 ``` From d6d5ba236a81de3006baae18dc61d35504b088cc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 22:04:12 +0000 Subject: [PATCH 190/519] chore: release 1.5.0 (#555) :robot: I have created a release \*beep\* \*boop\* --- ## [1.5.0](https://www.github.com/googleapis/java-dataproc/compare/v1.4.3...v1.5.0) (2021-05-31) ### Features * add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#554](https://www.github.com/googleapis/java-dataproc/issues/554)) ([c6fbf45](https://www.github.com/googleapis/java-dataproc/commit/c6fbf45f964242cd249e6aebfd85b8d63cf1697c)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#553](https://www.github.com/googleapis/java-dataproc/issues/553)) ([2fe5a5d](https://www.github.com/googleapis/java-dataproc/commit/2fe5a5de5ad05ac83c948d59edb1fecb6f3f12d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 40 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d1f7b7..fd98fe46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.5.0](https://www.github.com/googleapis/java-dataproc/compare/v1.4.3...v1.5.0) (2021-05-31) + + +### Features + +* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#554](https://www.github.com/googleapis/java-dataproc/issues/554)) ([c6fbf45](https://www.github.com/googleapis/java-dataproc/commit/c6fbf45f964242cd249e6aebfd85b8d63cf1697c)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#553](https://www.github.com/googleapis/java-dataproc/issues/553)) ([2fe5a5d](https://www.github.com/googleapis/java-dataproc/commit/2fe5a5de5ad05ac83c948d59edb1fecb6f3f12d6)) + ### [1.4.3](https://www.github.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3) (2021-05-14) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 4d32247c..e9d8ba32 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.4.4-SNAPSHOT + 1.5.0 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.4.4-SNAPSHOT + 1.5.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index dbd0da03..e1c406ac 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.4.4-SNAPSHOT + 1.5.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.4.4-SNAPSHOT + 1.5.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 00024f73..d6dbd902 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index f0bd65e5..da07a7aa 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/pom.xml b/pom.xml index 298e8a90..7870ff0d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.4.4-SNAPSHOT + 1.5.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0 com.google.cloud google-cloud-dataproc - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 5cc29218..66fd9e64 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.4.4-SNAPSHOT + 1.5.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index fd051544..4e6e57b6 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.92.4-SNAPSHOT + 0.93.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 298e78dd..805fbee6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.4.4-SNAPSHOT + 1.5.0 diff --git a/versions.txt b/versions.txt index 428b39e4..d01f7b4f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.92.3:0.92.4-SNAPSHOT -proto-google-cloud-dataproc-v1:1.4.3:1.4.4-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.4.3:1.4.4-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.92.3:0.92.4-SNAPSHOT -google-cloud-dataproc:1.4.3:1.4.4-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.0:0.93.0 +proto-google-cloud-dataproc-v1:1.5.0:1.5.0 +grpc-google-cloud-dataproc-v1:1.5.0:1.5.0 +grpc-google-cloud-dataproc-v1beta2:0.93.0:0.93.0 +google-cloud-dataproc:1.5.0:1.5.0 From eb94eb1dbfbc0a3148713a674a0e32ce20e40d39 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 22:12:12 +0000 Subject: [PATCH 191/519] chore: release 1.5.1-SNAPSHOT (#563) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e9d8ba32..021a06d8 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.0 + 1.5.1-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index e1c406ac..94745e6c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.0 + 1.5.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index d6dbd902..886edf0f 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index da07a7aa..688038ab 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7870ff0d..c857fb80 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.0 + 1.5.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 66fd9e64..49e099c3 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.0 + 1.5.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 4e6e57b6..5694481a 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.0 + 0.93.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 805fbee6..fbf89676 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index d01f7b4f..d611b5a4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.0:0.93.0 -proto-google-cloud-dataproc-v1:1.5.0:1.5.0 -grpc-google-cloud-dataproc-v1:1.5.0:1.5.0 -grpc-google-cloud-dataproc-v1beta2:0.93.0:0.93.0 -google-cloud-dataproc:1.5.0:1.5.0 +proto-google-cloud-dataproc-v1beta2:0.93.0:0.93.1-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.0:1.5.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.5.0:1.5.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.93.0:0.93.1-SNAPSHOT +google-cloud-dataproc:1.5.0:1.5.1-SNAPSHOT From 9183a2251b9fbaf07b62ad6fa2e2dc04659ec779 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Jun 2021 22:16:30 +0200 Subject: [PATCH 192/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.115.0 (#565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.114.0` -> `1.115.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.115.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.115.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.115.0/compatibility-slim/1.114.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.115.0/confidence-slim/1.114.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.115.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11150-httpswwwgithubcomgoogleapisjava-storagecomparev11140v11150-2021-06-01) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.114.0...v1.115.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​837](https://www.github.com/googleapis/java-storage/issues/837)) ([fe8e98a](https://www.github.com/googleapis/java-storage/commit/fe8e98a229f472c1f29d206d937690660bfa1444)) ##### Bug Fixes - improve error detection and reporting for BlobWriteChannel retry state ([#​846](https://www.github.com/googleapis/java-storage/issues/846)) ([d0f2184](https://www.github.com/googleapis/java-storage/commit/d0f2184f4dd2d99a4315f260f35421358d14a2df)), closes [#​839](https://www.github.com/googleapis/java-storage/issues/839) - update BucketInfo translation code to properly handle lifecycle rules ([#​852](https://www.github.com/googleapis/java-storage/issues/852)) ([3b1df1d](https://www.github.com/googleapis/java-storage/commit/3b1df1d00a459b134103bc8738f0294188502a37)), closes [#​850](https://www.github.com/googleapis/java-storage/issues/850) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#​836](https://www.github.com/googleapis/java-storage/issues/836)) ([c1752ce](https://www.github.com/googleapis/java-storage/commit/c1752ce17d5d723d0ea36c41d98ae2bc9201fec2)) - update kms.version to v0.88.4 ([#​830](https://www.github.com/googleapis/java-storage/issues/830)) ([7e3dc28](https://www.github.com/googleapis/java-storage/commit/7e3dc287e4285a9312393179671a78c569e7e869)) - update kms.version to v0.89.0 ([#​855](https://www.github.com/googleapis/java-storage/issues/855)) ([29236e9](https://www.github.com/googleapis/java-storage/commit/29236e9d2eefb0e64b1b9bbfc532f4c3ae3e9ea4))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 70e289bc..1e0236dc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.114.0 + 1.115.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fbf89676..aa1b0a87 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.114.0 + 1.115.0 junit From 8199bda638bb86aa16abb5122bb563a909a76601 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Jun 2021 22:18:13 +0200 Subject: [PATCH 193/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.5.0 (#564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.4.3` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.0/compatibility-slim/1.4.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.0/confidence-slim/1.4.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.5.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​150-httpswwwgithubcomgoogleapisjava-dataproccomparev143v150-2021-05-31) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.4.3...v1.5.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​554](https://www.github.com/googleapis/java-dataproc/issues/554)) ([c6fbf45](https://www.github.com/googleapis/java-dataproc/commit/c6fbf45f964242cd249e6aebfd85b8d63cf1697c)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#​553](https://www.github.com/googleapis/java-dataproc/issues/553)) ([2fe5a5d](https://www.github.com/googleapis/java-dataproc/commit/2fe5a5de5ad05ac83c948d59edb1fecb6f3f12d6)) ##### [1.4.3](https://www.github.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3) (2021-05-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#​544](https://www.github.com/googleapis/java-dataproc/issues/544)) ([67fcadd](https://www.github.com/googleapis/java-dataproc/commit/67fcadd562407d01b8aca7551ea4bc4e57c5940f)) - update dependency com.google.cloud:google-cloud-storage to v1.114.0 ([#​545](https://www.github.com/googleapis/java-dataproc/issues/545)) ([94c963c](https://www.github.com/googleapis/java-dataproc/commit/94c963cf511c7a5e75bca7e145fad626bf8a5c5c)) ##### [1.4.2](https://www.github.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) (2021-04-26) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v1.113.16 ([#​526](https://www.github.com/googleapis/java-dataproc/issues/526)) ([779d5b5](https://www.github.com/googleapis/java-dataproc/commit/779d5b5e99b6124911784d5973aa66e47777845c)) ##### [1.4.1](https://www.github.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1) (2021-04-23) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​512](https://www.github.com/googleapis/java-dataproc/issues/512)) ([077e71d](https://www.github.com/googleapis/java-dataproc/commit/077e71d177ce1cd2827006ab60f56f05888a8b1d)) - typo ([#​508](https://www.github.com/googleapis/java-dataproc/issues/508)) ([894ce84](https://www.github.com/googleapis/java-dataproc/commit/894ce84afaada6edeb85809802522e81d2ba1f9d)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#​515](https://www.github.com/googleapis/java-dataproc/issues/515)) ([863dbc9](https://www.github.com/googleapis/java-dataproc/commit/863dbc99d71f67776e919c6c6eb832ecd6cf516b)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#​524](https://www.github.com/googleapis/java-dataproc/issues/524)) ([95606d8](https://www.github.com/googleapis/java-dataproc/commit/95606d8a28e55271fff71f3323e260bf9210f7ee)) - update dependency com.google.cloud:google-cloud-storage to v1.113.15 ([#​510](https://www.github.com/googleapis/java-dataproc/issues/510)) ([917ea60](https://www.github.com/googleapis/java-dataproc/commit/917ea60907308ac84583cbeeb05b1f0b6583600c))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1e0236dc..87c8c0ad 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.4.3 + 1.5.0 From 138c265be3ff18404179da73ed2b4e056643833e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Jun 2021 20:30:18 +0000 Subject: [PATCH 194/519] chore: release 1.5.1 (#566) :robot: I have created a release \*beep\* \*boop\* --- ### [1.5.1](https://www.github.com/googleapis/java-dataproc/compare/v1.5.0...v1.5.1) (2021-06-02) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v1.115.0 ([#565](https://www.github.com/googleapis/java-dataproc/issues/565)) ([9183a22](https://www.github.com/googleapis/java-dataproc/commit/9183a2251b9fbaf07b62ad6fa2e2dc04659ec779)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd98fe46..a72d7b04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.5.1](https://www.github.com/googleapis/java-dataproc/compare/v1.5.0...v1.5.1) (2021-06-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v1.115.0 ([#565](https://www.github.com/googleapis/java-dataproc/issues/565)) ([9183a22](https://www.github.com/googleapis/java-dataproc/commit/9183a2251b9fbaf07b62ad6fa2e2dc04659ec779)) + ## [1.5.0](https://www.github.com/googleapis/java-dataproc/compare/v1.4.3...v1.5.0) (2021-05-31) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 021a06d8..df19d835 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.1-SNAPSHOT + 1.5.1 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.5.1-SNAPSHOT + 1.5.1 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 94745e6c..cb2a24a7 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.1-SNAPSHOT + 1.5.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.1-SNAPSHOT + 1.5.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 886edf0f..0d30f04d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 688038ab..9550e825 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/pom.xml b/pom.xml index c857fb80..7a956735 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.1-SNAPSHOT + 1.5.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.cloud google-cloud-dataproc - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 49e099c3..7fd89dd0 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1-SNAPSHOT + 1.5.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 5694481a..71be9991 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1-SNAPSHOT + 0.93.1 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index aa1b0a87..6bf9fbdb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.1-SNAPSHOT + 1.5.1 diff --git a/versions.txt b/versions.txt index d611b5a4..f514d0db 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.0:0.93.1-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.0:1.5.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.5.0:1.5.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.93.0:0.93.1-SNAPSHOT -google-cloud-dataproc:1.5.0:1.5.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.1:0.93.1 +proto-google-cloud-dataproc-v1:1.5.1:1.5.1 +grpc-google-cloud-dataproc-v1:1.5.1:1.5.1 +grpc-google-cloud-dataproc-v1beta2:0.93.1:0.93.1 +google-cloud-dataproc:1.5.1:1.5.1 From e3de0a79b3dffd037ce19f107d27f2d6cbdb5086 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 2 Jun 2021 13:30:19 -0700 Subject: [PATCH 195/519] chore: regenerate README (#567) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-02 20:19:15,105 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-02 20:19:16,429 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/27a4ba61-f7be-46c1-a1d5-55588306ac5c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 31e7cf38..93648581 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f44e361dda1c9620dce8c4b554fa7305d3a3b72d" + "sha": "8199bda638bb86aa16abb5122bb563a909a76601" } }, { diff --git a/README.md b/README.md index 5076dff2..9eb331b9 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.4.3 + 1.5.0 ``` @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.4.3' +compile 'com.google.cloud:google-cloud-dataproc:1.5.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.4.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.0" ``` ## Authentication From 6671d61e191b20506d7216fc018b4c1a92d86ebe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Jun 2021 20:46:15 +0000 Subject: [PATCH 196/519] chore: release 1.5.2-SNAPSHOT (#568) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index df19d835..6866bf6c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.1 + 1.5.2-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index cb2a24a7..45b7a9c2 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.1 + 1.5.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 0d30f04d..27aa2189 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 9550e825..243b2715 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7a956735..cd4384f8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.1 + 1.5.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 7fd89dd0..a19f1a46 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.1 + 1.5.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 71be9991..5294ae8f 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.1 + 0.93.2-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6bf9fbdb..6693cea1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index f514d0db..c01bf22f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.1:0.93.1 -proto-google-cloud-dataproc-v1:1.5.1:1.5.1 -grpc-google-cloud-dataproc-v1:1.5.1:1.5.1 -grpc-google-cloud-dataproc-v1beta2:0.93.1:0.93.1 -google-cloud-dataproc:1.5.1:1.5.1 +proto-google-cloud-dataproc-v1beta2:0.93.1:0.93.2-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.1:1.5.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.5.1:1.5.2-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.93.1:0.93.2-SNAPSHOT +google-cloud-dataproc:1.5.1:1.5.2-SNAPSHOT From f18a46eb06a2998113a6f09ed2262a5a28af221e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Jun 2021 02:20:50 +0200 Subject: [PATCH 197/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.5.1 (#569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.5.0` -> `1.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.1/compatibility-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.1/confidence-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.5.1`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​151-httpswwwgithubcomgoogleapisjava-dataproccomparev150v151-2021-06-02) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.5.0...v1.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 87c8c0ad..cefc3d59 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1 From e82b7d6d8449523185deb16da240fde30070d104 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 2 Jun 2021 17:34:34 -0700 Subject: [PATCH 198/519] chore: regenerate README (#571) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-03 00:25:18,017 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-03 00:25:19,230 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/ebb26191-0435-46b9-89d0-10b1f0082d56/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 93648581..572ddf39 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "8199bda638bb86aa16abb5122bb563a909a76601" + "sha": "f18a46eb06a2998113a6f09ed2262a5a28af221e" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" + "sha": "811d20bc0b00c09773dfc74ac2baaf1286e943b7" } } ] diff --git a/README.md b/README.md index 9eb331b9..acc88940 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.5.0 + 1.5.1 ``` @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.5.0' +compile 'com.google.cloud:google-cloud-dataproc:1.5.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.1" ``` ## Authentication From 2983c65a3bf830bfc8526a008845cfe6dd87bd1c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Jun 2021 08:24:33 -0700 Subject: [PATCH 199/519] chore: release gapic-generator-java v1.0.10 (#570) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/feeb5d42-3368-497e-bc8b-ce3bd990a422/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 377081269 Source-Link: https://github.com/googleapis/googleapis/commit/a5f96d06ef57e325761bad010f460d0c5dbeccda --- .../cloud/dataproc/v1/JobControllerClientTest.java | 2 +- .../dataproc/v1beta2/JobControllerClientTest.java | 2 +- synth.metadata | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java index 5c6f6d2c..ac623f68 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java @@ -50,9 +50,9 @@ @Generated("by gapic-generator-java") public class JobControllerClientTest { + private static MockJobController mockJobController; private static MockServiceHelper mockServiceHelper; private JobControllerClient client; - private static MockJobController mockJobController; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java index 3314216c..ff7ed3bb 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java @@ -50,9 +50,9 @@ @Generated("by gapic-generator-java") public class JobControllerClientTest { + private static MockJobController mockJobController; private static MockServiceHelper mockServiceHelper; private JobControllerClient client; - private static MockJobController mockJobController; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/synth.metadata b/synth.metadata index bb31338c..db7f2420 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "69c3cc71e6413ff926bdedca8633d264e5107877" + "sha": "6671d61e191b20506d7216fc018b4c1a92d86ebe" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "439f098cb730af18c8ae4e65971ea3badf45138a", - "internalRef": "367518225" + "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", + "internalRef": "377081269" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "439f098cb730af18c8ae4e65971ea3badf45138a", - "internalRef": "367518225" + "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", + "internalRef": "377081269" } }, { From 525af16403796180618787c4bca29777104a66bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 17:10:30 +0200 Subject: [PATCH 200/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 (#572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.2.0` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare120v130-2021-06-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.2.0...v1.3.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​365](https://www.github.com/googleapis/java-shared-dependencies/issues/365)) ([7e8309b](https://www.github.com/googleapis/java-shared-dependencies/commit/7e8309bf67ade0fe2b09f792848136cd88b4d2e4)) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.26.0 ([#​368](https://www.github.com/googleapis/java-shared-dependencies/issues/368)) ([38256a8](https://www.github.com/googleapis/java-shared-dependencies/commit/38256a82cb6896c3f5e5ea6ca5d8d671c412bf84)) - update dependency com.google.cloud:google-cloud-core-bom to v1.95.0 ([#​377](https://www.github.com/googleapis/java-shared-dependencies/issues/377)) ([297ea62](https://www.github.com/googleapis/java-shared-dependencies/commit/297ea621e02f8c0679c8b07ed399d11eaacecc14)) - update dependency com.google.code.gson:gson to v2.8.7 ([#​370](https://www.github.com/googleapis/java-shared-dependencies/issues/370)) ([cdc1b8e](https://www.github.com/googleapis/java-shared-dependencies/commit/cdc1b8ea1c93f97b712081ca8dc8ea57f342b69e)) - update dependency com.google.protobuf:protobuf-bom to v3.17.1 ([#​369](https://www.github.com/googleapis/java-shared-dependencies/issues/369)) ([5a19574](https://www.github.com/googleapis/java-shared-dependencies/commit/5a19574bc626bb3c6b573ed1d177e8907188dec1)) - update dependency com.google.protobuf:protobuf-bom to v3.17.2 ([#​374](https://www.github.com/googleapis/java-shared-dependencies/issues/374)) ([83516e6](https://www.github.com/googleapis/java-shared-dependencies/commit/83516e691b99e5e5d22d27e561781a5ade5fb514)) - update dependency io.grpc:grpc-bom to v1.38.0 ([#​364](https://www.github.com/googleapis/java-shared-dependencies/issues/364)) ([00db570](https://www.github.com/googleapis/java-shared-dependencies/commit/00db5701c3b0aa609f3778c06911a9a0248ca342)) - update gax.version to v1.65.0 ([#​376](https://www.github.com/googleapis/java-shared-dependencies/issues/376)) ([b793a0d](https://www.github.com/googleapis/java-shared-dependencies/commit/b793a0d7744ff1b0f8ae5d3d13ec4776ae8d3089)) - update google.common-protos.version to v2.3.1 ([#​366](https://www.github.com/googleapis/java-shared-dependencies/issues/366)) ([7d6a7fa](https://www.github.com/googleapis/java-shared-dependencies/commit/7d6a7fa7a2cad2b3f2ecf45e42d2ed5db0b60a43)) - update google.common-protos.version to v2.3.2 ([#​375](https://www.github.com/googleapis/java-shared-dependencies/issues/375)) ([68a47ad](https://www.github.com/googleapis/java-shared-dependencies/commit/68a47ad3243f3e980db74c9c8505a1b3063c131b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cd4384f8..5230c60d 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.2.0 + 1.3.0 pom import From fcccd5443d854c674c234be0a38e7af5b272f7d4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Jun 2021 15:26:09 +0000 Subject: [PATCH 201/519] chore: release 1.5.2 (#573) :robot: I have created a release \*beep\* \*boop\* --- ### [1.5.2](https://www.github.com/googleapis/java-dataproc/compare/v1.5.1...v1.5.2) (2021-06-04) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#572](https://www.github.com/googleapis/java-dataproc/issues/572)) ([525af16](https://www.github.com/googleapis/java-dataproc/commit/525af16403796180618787c4bca29777104a66bc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a72d7b04..fb4717fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.5.2](https://www.github.com/googleapis/java-dataproc/compare/v1.5.1...v1.5.2) (2021-06-04) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#572](https://www.github.com/googleapis/java-dataproc/issues/572)) ([525af16](https://www.github.com/googleapis/java-dataproc/commit/525af16403796180618787c4bca29777104a66bc)) + ### [1.5.1](https://www.github.com/googleapis/java-dataproc/compare/v1.5.0...v1.5.1) (2021-06-02) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 6866bf6c..1ad6678f 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.2-SNAPSHOT + 1.5.2 pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.5.2-SNAPSHOT + 1.5.2 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 45b7a9c2..e273aedf 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.2-SNAPSHOT + 1.5.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.2-SNAPSHOT + 1.5.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 27aa2189..ce133662 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 243b2715..ddb3dad0 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/pom.xml b/pom.xml index 5230c60d..983355bc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.2-SNAPSHOT + 1.5.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.cloud google-cloud-dataproc - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index a19f1a46..af1beeac 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2-SNAPSHOT + 1.5.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 5294ae8f..d791965d 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2-SNAPSHOT + 0.93.2 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6693cea1..6e5cb1ab 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.2-SNAPSHOT + 1.5.2 diff --git a/versions.txt b/versions.txt index c01bf22f..96dbc5e3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.1:0.93.2-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.1:1.5.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.5.1:1.5.2-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.93.1:0.93.2-SNAPSHOT -google-cloud-dataproc:1.5.1:1.5.2-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.2 +proto-google-cloud-dataproc-v1:1.5.2:1.5.2 +grpc-google-cloud-dataproc-v1:1.5.2:1.5.2 +grpc-google-cloud-dataproc-v1beta2:0.93.2:0.93.2 +google-cloud-dataproc:1.5.2:1.5.2 From f638f191a34966d0daf8351634f15d6fb8baca0a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Jun 2021 15:36:08 +0000 Subject: [PATCH 202/519] chore: release 1.5.3-SNAPSHOT (#574) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 1ad6678f..64cc9076 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.2 + 1.5.3-SNAPSHOT pom com.google.cloud @@ -64,27 +64,27 @@ com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index e273aedf..8d5ab947 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.2 + 1.5.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index ce133662..cb71a59f 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index ddb3dad0..56ae072f 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 983355bc..f7277cd3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.2 + 1.5.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index af1beeac..23d23abd 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.2 + 1.5.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index d791965d..2d479091 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.2 + 0.93.3-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6e5cb1ab..cb3fc57c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 96dbc5e3..19612c30 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.2 -proto-google-cloud-dataproc-v1:1.5.2:1.5.2 -grpc-google-cloud-dataproc-v1:1.5.2:1.5.2 -grpc-google-cloud-dataproc-v1beta2:0.93.2:0.93.2 -google-cloud-dataproc:1.5.2:1.5.2 +proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT +google-cloud-dataproc:1.5.2:1.5.3-SNAPSHOT From 7e126e9cf453333e157695fb257a86688aff5b04 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:10 +0200 Subject: [PATCH 203/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 204fcbcf..538b8e00 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From fc3e4a04d14833ff87e3c7970ea6cbce89e22218 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 7 Jun 2021 12:18:08 -0700 Subject: [PATCH 204/519] chore: regenerate README (#578) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-07 19:02:32,586 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-07 19:02:33,889 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c8a495fe-e7b9-495e-807d-d09f5129f809/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 572ddf39..897fb10a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f18a46eb06a2998113a6f09ed2262a5a28af221e" + "sha": "7e126e9cf453333e157695fb257a86688aff5b04" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "811d20bc0b00c09773dfc74ac2baaf1286e943b7" + "sha": "2430f8d90ed8a508e8422a3a7191e656d5a6bf53" } } ] diff --git a/README.md b/README.md index acc88940..9adb72b5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import @@ -46,18 +46,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.5.0') +implementation platform('com.google.cloud:libraries-bom:20.6.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.5.1' +compile 'com.google.cloud:google-cloud-dataproc:1.5.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.2" ``` ## Authentication From c5f2107247bd5544d5089c029ec30543e26ad869 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:32:22 +0200 Subject: [PATCH 205/519] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#576) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index cefc3d59..4ae08b20 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.22 + 1.0.23 diff --git a/samples/pom.xml b/samples/pom.xml index 99c3134c..590aa546 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cb3fc57c..c40565bc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 538b8e00..18cab2d9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 3d24a3d7555a900da096ed4de1d6aa7e8469c5cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 20:52:50 +0200 Subject: [PATCH 206/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.5.2 (#575) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4ae08b20..7f7251eb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2 From 444c65aae9816f4169d91c91e9b8ed7be8647d17 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 12:06:03 -0700 Subject: [PATCH 207/519] chore: regenerate README (#580) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-09 18:56:22,208 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-09 18:56:23,540 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/61af7302-b1ed-4a7d-82d7-ef86a62f8c81/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 897fb10a..fafdfb50 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "7e126e9cf453333e157695fb257a86688aff5b04" + "sha": "3d24a3d7555a900da096ed4de1d6aa7e8469c5cd" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2430f8d90ed8a508e8422a3a7191e656d5a6bf53" + "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" } } ] diff --git a/README.md b/README.md index 9adb72b5..3eb1797c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.5.1 + 1.5.2 ``` From 8953b74c3fc211e3a3be478ffedb8abb1287caeb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Jun 2021 08:08:38 -0700 Subject: [PATCH 208/519] chore: release gapic-generator-java v1.0.11 (#579) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d9b761d2-0b70-49f9-af57-9bc5a22aa741/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378266372 Source-Link: https://github.com/googleapis/googleapis/commit/9e3105549a35520f215359065c11e8dce15e18af --- .../v1/AutoscalingPolicyServiceClientTest.java | 2 +- .../cloud/dataproc/v1/ClusterControllerClientTest.java | 2 +- .../cloud/dataproc/v1/JobControllerClientTest.java | 2 +- .../dataproc/v1/WorkflowTemplateServiceClientTest.java | 4 ++-- .../v1beta2/AutoscalingPolicyServiceClientTest.java | 2 +- .../dataproc/v1beta2/ClusterControllerClientTest.java | 2 +- .../dataproc/v1beta2/JobControllerClientTest.java | 2 +- .../v1beta2/WorkflowTemplateServiceClientTest.java | 4 ++-- synth.metadata | 10 +++++----- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java index 437c8c00..8735aac5 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java @@ -45,8 +45,8 @@ public class AutoscalingPolicyServiceClientTest { private static MockAutoscalingPolicyService mockAutoscalingPolicyService; private static MockServiceHelper mockServiceHelper; - private AutoscalingPolicyServiceClient client; private LocalChannelProvider channelProvider; + private AutoscalingPolicyServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java index 4de43fa7..1e7bff14 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java @@ -52,8 +52,8 @@ public class ClusterControllerClientTest { private static MockClusterController mockClusterController; private static MockServiceHelper mockServiceHelper; - private ClusterControllerClient client; private LocalChannelProvider channelProvider; + private ClusterControllerClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java index ac623f68..b2307912 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java @@ -52,8 +52,8 @@ public class JobControllerClientTest { private static MockJobController mockJobController; private static MockServiceHelper mockServiceHelper; - private JobControllerClient client; private LocalChannelProvider channelProvider; + private JobControllerClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java index 26e26daf..1fd5977b 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java @@ -52,10 +52,10 @@ @Generated("by gapic-generator-java") public class WorkflowTemplateServiceClientTest { - private static MockWorkflowTemplateService mockWorkflowTemplateService; private static MockServiceHelper mockServiceHelper; - private WorkflowTemplateServiceClient client; + private static MockWorkflowTemplateService mockWorkflowTemplateService; private LocalChannelProvider channelProvider; + private WorkflowTemplateServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java index 6014512e..d425e92c 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java @@ -45,8 +45,8 @@ public class AutoscalingPolicyServiceClientTest { private static MockAutoscalingPolicyService mockAutoscalingPolicyService; private static MockServiceHelper mockServiceHelper; - private AutoscalingPolicyServiceClient client; private LocalChannelProvider channelProvider; + private AutoscalingPolicyServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java index b2dbac3d..bf69e016 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java @@ -52,8 +52,8 @@ public class ClusterControllerClientTest { private static MockClusterController mockClusterController; private static MockServiceHelper mockServiceHelper; - private ClusterControllerClient client; private LocalChannelProvider channelProvider; + private ClusterControllerClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java index ff7ed3bb..a1012f77 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java @@ -52,8 +52,8 @@ public class JobControllerClientTest { private static MockJobController mockJobController; private static MockServiceHelper mockServiceHelper; - private JobControllerClient client; private LocalChannelProvider channelProvider; + private JobControllerClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java index 86ec5be0..f8357586 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java @@ -52,10 +52,10 @@ @Generated("by gapic-generator-java") public class WorkflowTemplateServiceClientTest { - private static MockWorkflowTemplateService mockWorkflowTemplateService; private static MockServiceHelper mockServiceHelper; - private WorkflowTemplateServiceClient client; + private static MockWorkflowTemplateService mockWorkflowTemplateService; private LocalChannelProvider channelProvider; + private WorkflowTemplateServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/synth.metadata b/synth.metadata index db7f2420..829b1a26 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "6671d61e191b20506d7216fc018b4c1a92d86ebe" + "sha": "c5f2107247bd5544d5089c029ec30543e26ad869" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "9e3105549a35520f215359065c11e8dce15e18af", + "internalRef": "378266372" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "9e3105549a35520f215359065c11e8dce15e18af", + "internalRef": "378266372" } }, { From 4d868f133ad9e903fe862f4cc0211e6bdd40b321 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 11 Jun 2021 08:12:11 -0700 Subject: [PATCH 209/519] chore: release gapic-generator-java v1.0.12 (#581) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/675537c9-dcc8-4abc-8118-558533dde3d2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378718217 Source-Link: https://github.com/googleapis/googleapis/commit/08c4eeb531c01ad031134dca94b18e3f7dd35902 --- .../v1/stub/AutoscalingPolicyServiceStubSettings.java | 7 +++++++ .../v1/stub/ClusterControllerStubSettings.java | 7 +++++++ .../dataproc/v1/stub/JobControllerStubSettings.java | 7 +++++++ .../v1/stub/WorkflowTemplateServiceStubSettings.java | 7 +++++++ .../stub/AutoscalingPolicyServiceStubSettings.java | 7 +++++++ .../v1beta2/stub/ClusterControllerStubSettings.java | 7 +++++++ .../v1beta2/stub/JobControllerStubSettings.java | 7 +++++++ .../stub/WorkflowTemplateServiceStubSettings.java | 7 +++++++ synth.metadata | 10 +++++----- 9 files changed, 61 insertions(+), 5 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 50647e7e..74ebe987 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -238,6 +238,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -401,6 +406,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index e379310b..92b6f431 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -283,6 +283,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -502,6 +507,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index de11fe5c..7dbac111 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -229,6 +229,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -410,6 +415,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index e4deecf0..68fefe73 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -271,6 +271,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -474,6 +479,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java index b8367707..695ef6a3 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java @@ -239,6 +239,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -402,6 +407,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java index e4e208a1..a7c6a9fd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java @@ -251,6 +251,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -443,6 +448,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java index f8f73f2e..0a4b83d5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java @@ -230,6 +230,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -411,6 +416,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java index fb5f930e..b3bffdd8 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java @@ -272,6 +272,11 @@ public static String getDefaultEndpoint() { return "dataproc.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -475,6 +480,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/synth.metadata b/synth.metadata index 829b1a26..5b262cd3 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "c5f2107247bd5544d5089c029ec30543e26ad869" + "sha": "8953b74c3fc211e3a3be478ffedb8abb1287caeb" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9e3105549a35520f215359065c11e8dce15e18af", - "internalRef": "378266372" + "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", + "internalRef": "378718217" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9e3105549a35520f215359065c11e8dce15e18af", - "internalRef": "378266372" + "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", + "internalRef": "378718217" } }, { From 09e9e6a62c34cf73735df0a663c3efe4f68ec060 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 14 Jun 2021 12:54:09 -0400 Subject: [PATCH 210/519] chore: migrate to owlbot (#582) --- .github/.OwlBot.lock.yaml | 3 ++ .github/.OwlBot.yaml | 32 +++++++++++++++++++ google-cloud-dataproc-bom/pom.xml | 21 ++++++------ google-cloud-dataproc/pom.xml | 4 +-- synth.py => owlbot.py | 24 +++++--------- pom.xml | 10 +++--- .../java/CreateClusterWithAutoscaling.java | 2 +- .../snippets/src/main/java/Quickstart.java | 3 -- samples/snippets/src/main/java/SubmitJob.java | 3 +- .../src/test/java/CreateClusterTest.java | 9 +++--- .../CreateClusterWithAutoscalingTest.java | 2 +- .../src/test/java/QuickstartTest.java | 3 +- versions.txt | 6 ++-- 13 files changed, 71 insertions(+), 51 deletions(-) create mode 100644 .github/.OwlBot.lock.yaml create mode 100644 .github/.OwlBot.yaml rename synth.py => owlbot.py (51%) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 00000000..ba57534a --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:689e998ca8b33117d8607b1c3df12b9cfebd68b621ba5ab6ce17be8715506203 + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 00000000..29f73178 --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,32 @@ +# 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. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-preserve-regex: +- "/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" + +deep-copy-regex: +- source: "/google/cloud/dataproc/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-dataproc-$1/src" +- source: "/google/cloud/dataproc/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-dataproc-$1/src" +- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-dataproc/src" diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 64cc9076..cc921ce4 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -60,7 +60,6 @@ - com.google.cloud google-cloud-dataproc @@ -68,23 +67,23 @@ com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + grpc-google-cloud-dataproc-v1 + 1.5.3-SNAPSHOT com.google.api.grpc - grpc-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + grpc-google-cloud-dataproc-v1beta2 + 0.93.3-SNAPSHOT com.google.api.grpc - proto-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + proto-google-cloud-dataproc-v1beta2 + 0.93.3-SNAPSHOT com.google.api.grpc - grpc-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + proto-google-cloud-dataproc-v1 + 1.5.3-SNAPSHOT @@ -100,4 +99,4 @@ - \ No newline at end of file + diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 8d5ab947..5a31f0e2 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -121,4 +121,4 @@ - \ No newline at end of file + diff --git a/synth.py b/owlbot.py similarity index 51% rename from synth.py rename to owlbot.py index eb34d451..dca9d867 100644 --- a/synth.py +++ b/owlbot.py @@ -1,10 +1,10 @@ -# Copyright 2018 Google LLC +# 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 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -12,21 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This script is used to synthesize generated parts of this library.""" +import synthtool as s +from synthtool.languages import java -import synthtool.languages.java as java -AUTOSYNTH_MULTIPLE_COMMITS = True -AUTOSYNTH_MULTIPLE_PRS = True - -service = 'dataproc' -versions = ['v1', 'v1beta2'] - -for version in versions: - java.bazel_library( - service=service, - version=version, - bazel_target=f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java', - ) +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) +s.remove_staging_dirs() java.common_templates() diff --git a/pom.xml b/pom.xml index f7277cd3..704c91f1 100644 --- a/pom.xml +++ b/pom.xml @@ -128,12 +128,12 @@ - proto-google-cloud-dataproc-v1beta2 - proto-google-cloud-dataproc-v1 + google-cloud-dataproc grpc-google-cloud-dataproc-v1 grpc-google-cloud-dataproc-v1beta2 - google-cloud-dataproc - google-cloud-dataproc-bom + proto-google-cloud-dataproc-v1beta2 + proto-google-cloud-dataproc-v1 + google-cloud-dataproc-bom @@ -205,4 +205,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java b/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java index 91774b89..981721a4 100644 --- a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java +++ b/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java @@ -85,7 +85,7 @@ public static void createClusterwithAutoscaling( // try-with-resources closes the client, but this can also be done manually with the .close() // method. try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); + ClusterControllerClient.create(clusterControllerSettings); AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings)) { diff --git a/samples/snippets/src/main/java/Quickstart.java b/samples/snippets/src/main/java/Quickstart.java index 44c2afc7..f7911313 100644 --- a/samples/snippets/src/main/java/Quickstart.java +++ b/samples/snippets/src/main/java/Quickstart.java @@ -46,10 +46,7 @@ import com.google.cloud.storage.StorageOptions; import com.google.protobuf.Empty; import java.io.IOException; -import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/samples/snippets/src/main/java/SubmitJob.java b/samples/snippets/src/main/java/SubmitJob.java index 667f3863..93193a7a 100644 --- a/samples/snippets/src/main/java/SubmitJob.java +++ b/samples/snippets/src/main/java/SubmitJob.java @@ -41,8 +41,7 @@ public static void submitJob() throws IOException, InterruptedException { submitJob(projectId, region, clusterName); } - public static void submitJob( - String projectId, String region, String clusterName) + public static void submitJob(String projectId, String region, String clusterName) throws IOException, InterruptedException { String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); diff --git a/samples/snippets/src/test/java/CreateClusterTest.java b/samples/snippets/src/test/java/CreateClusterTest.java index 539e0e2b..506881ad 100644 --- a/samples/snippets/src/test/java/CreateClusterTest.java +++ b/samples/snippets/src/test/java/CreateClusterTest.java @@ -30,7 +30,6 @@ import org.hamcrest.CoreMatchers; import org.junit.After; import org.junit.Before; -import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -41,8 +40,8 @@ public class CreateClusterTest { private static final String CLUSTER_NAME = String.format("java-cc-test-%s", UUID.randomUUID().toString()); private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - + // private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String PROJECT_ID = "gcloud-devel"; private ByteArrayOutputStream bout; private static void requireEnv(String varName) { @@ -50,12 +49,12 @@ private static void requireEnv(String varName) { String.format("Environment variable '%s' is required to perform these tests.", varName), System.getenv(varName)); } - + /* @BeforeClass public static void checkRequirements() { requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); requireEnv("GOOGLE_CLOUD_PROJECT"); - } + }*/ @Before public void setUp() { diff --git a/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java b/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java index 188ef7af..1b8f1505 100644 --- a/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java +++ b/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java @@ -79,7 +79,7 @@ public void tearDown() throws IOException, InterruptedException, ExecutionExcept AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); + ClusterControllerClient.create(clusterControllerSettings); AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings)) { diff --git a/samples/snippets/src/test/java/QuickstartTest.java b/samples/snippets/src/test/java/QuickstartTest.java index b4abd7a1..eff7ed05 100644 --- a/samples/snippets/src/test/java/QuickstartTest.java +++ b/samples/snippets/src/test/java/QuickstartTest.java @@ -60,8 +60,7 @@ public class QuickstartTest { + "rdd = sc.parallelize((1,2,3,4,5))\n" + "sum = rdd.reduce(lambda x, y: x + y)\n"; - @Rule - public StdOutCaptureRule stdOutCapture = new StdOutCaptureRule(); + @Rule public StdOutCaptureRule stdOutCapture = new StdOutCaptureRule(); private Bucket bucket; private Blob blob; diff --git a/versions.txt b/versions.txt index 19612c30..158e75e2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT +google-cloud-dataproc:1.5.2:1.5.3-SNAPSHOT grpc-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT grpc-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT -google-cloud-dataproc:1.5.2:1.5.3-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT From 252914932e1e6f2a477575fb9b2f8922394851ef Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 19:36:30 +0000 Subject: [PATCH 211/519] chore: new owl bot post processor docker image (#584) Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:3796fe5c26bbf814f0a82a2eab2749b5710f87e7197dc011e5fa3c694e532462 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index ba57534a..be22516e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:689e998ca8b33117d8607b1c3df12b9cfebd68b621ba5ab6ce17be8715506203 image: gcr.io/repo-automation-bots/owlbot-java:latest + digest: sha256:3796fe5c26bbf814f0a82a2eab2749b5710f87e7197dc011e5fa3c694e532462 diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 59d2aafc..a7e999d3 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -46,7 +46,7 @@ function completenessCheck() { # This is stripped from the output as it is not present in the flattened pom. # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt + mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." @@ -70,7 +70,7 @@ function completenessCheck() { set +e error_count=0 -for path in $(find -name ".flattened-pom.xml") +for path in **/.flattened-pom.xml do # Check flattened pom in each dir that contains it for completeness dir=$(dirname "$path") From dfb3adba105c0bd811262f4091c42ce478ecd147 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Jun 2021 23:12:09 +0000 Subject: [PATCH 212/519] chore: release gapic-generator-java v1.0.13 (#586) Committer: @miraleung PiperOrigin-RevId: 379784268 Source-Link: https://github.com/googleapis/googleapis/commit/551681f25e36b11829e87e580281350461f4f3f5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/478f36572d7bcf1dc66038d0e76b9b3fa2abae63 --- .../com/google/cloud/dataproc/v1/AutoscalingPolicyName.java | 6 +++--- .../main/java/com/google/cloud/dataproc/v1/ClusterName.java | 6 +++--- .../java/com/google/cloud/dataproc/v1/LocationName.java | 4 ++-- .../main/java/com/google/cloud/dataproc/v1/RegionName.java | 4 ++-- .../main/java/com/google/cloud/dataproc/v1/ServiceName.java | 6 +++--- .../com/google/cloud/dataproc/v1/WorkflowTemplateName.java | 6 +++--- .../cloud/dataproc/v1beta2/AutoscalingPolicyName.java | 6 +++--- .../java/com/google/cloud/dataproc/v1beta2/ClusterName.java | 6 +++--- .../com/google/cloud/dataproc/v1beta2/LocationName.java | 4 ++-- .../java/com/google/cloud/dataproc/v1beta2/RegionName.java | 4 ++-- .../google/cloud/dataproc/v1beta2/WorkflowTemplateName.java | 6 +++--- 11 files changed, 29 insertions(+), 29 deletions(-) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java index bc836f51..b0b09719 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java @@ -311,9 +311,9 @@ private Builder(AutoscalingPolicyName autoscalingPolicyName) { Preconditions.checkArgument( Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY), "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - project = autoscalingPolicyName.project; - location = autoscalingPolicyName.location; - autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; + this.project = autoscalingPolicyName.project; + this.location = autoscalingPolicyName.location; + this.autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; } public AutoscalingPolicyName build() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java index 322bc06f..03c92db9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java @@ -211,9 +211,9 @@ public Builder setCluster(String cluster) { } private Builder(ClusterName clusterName) { - project = clusterName.project; - location = clusterName.location; - cluster = clusterName.cluster; + this.project = clusterName.project; + this.location = clusterName.location; + this.cluster = clusterName.cluster; } public ClusterName build() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java index 5f2c086f..3539c904 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java index eed9dfd4..f73d1f21 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java @@ -180,8 +180,8 @@ public Builder setRegion(String region) { } private Builder(RegionName regionName) { - project = regionName.project; - region = regionName.region; + this.project = regionName.project; + this.region = regionName.region; } public RegionName build() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java index e5853518..4d878f85 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java @@ -211,9 +211,9 @@ public Builder setService(String service) { } private Builder(ServiceName serviceName) { - project = serviceName.project; - location = serviceName.location; - service = serviceName.service; + this.project = serviceName.project; + this.location = serviceName.location; + this.service = serviceName.service; } public ServiceName build() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java index 96e8c16d..6bbd109d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java @@ -308,9 +308,9 @@ private Builder(WorkflowTemplateName workflowTemplateName) { Preconditions.checkArgument( Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE), "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - project = workflowTemplateName.project; - region = workflowTemplateName.region; - workflowTemplate = workflowTemplateName.workflowTemplate; + this.project = workflowTemplateName.project; + this.region = workflowTemplateName.region; + this.workflowTemplate = workflowTemplateName.workflowTemplate; } public WorkflowTemplateName build() { diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java index 55a5265e..26b3a3ab 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java @@ -311,9 +311,9 @@ private Builder(AutoscalingPolicyName autoscalingPolicyName) { Preconditions.checkArgument( Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY), "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - project = autoscalingPolicyName.project; - location = autoscalingPolicyName.location; - autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; + this.project = autoscalingPolicyName.project; + this.location = autoscalingPolicyName.location; + this.autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; } public AutoscalingPolicyName build() { diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java index 88016ac9..5fc405cc 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java @@ -211,9 +211,9 @@ public Builder setCluster(String cluster) { } private Builder(ClusterName clusterName) { - project = clusterName.project; - location = clusterName.location; - cluster = clusterName.cluster; + this.project = clusterName.project; + this.location = clusterName.location; + this.cluster = clusterName.cluster; } public ClusterName build() { diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java index 5f3f1944..76109225 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java index 93f6954d..902c0aa5 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java @@ -180,8 +180,8 @@ public Builder setRegion(String region) { } private Builder(RegionName regionName) { - project = regionName.project; - region = regionName.region; + this.project = regionName.project; + this.region = regionName.region; } public RegionName build() { diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java index 16ed07be..85a19f71 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java @@ -308,9 +308,9 @@ private Builder(WorkflowTemplateName workflowTemplateName) { Preconditions.checkArgument( Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE), "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - project = workflowTemplateName.project; - region = workflowTemplateName.region; - workflowTemplate = workflowTemplateName.workflowTemplate; + this.project = workflowTemplateName.project; + this.region = workflowTemplateName.region; + this.workflowTemplate = workflowTemplateName.workflowTemplate; } public WorkflowTemplateName build() { From 81d260015af4e4c102a537da35ed09129cdb17a2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Jun 2021 22:06:06 +0000 Subject: [PATCH 213/519] chore: minimize noise from build scripts (#1091) (#587) This should limit the amount of scrolling client devs have to do when debugging a test failure Co-authored-by: Elliotte Rusty Harold Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/1c0c698705e668ccb3d68556ae7260f16ce63a6e Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:117d9f1bef3342ea256419068dfaf65e5b2d126534ef0773c25ce71b8474f346 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/coerce_logs.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index be22516e..cd2e6d39 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:3796fe5c26bbf814f0a82a2eab2749b5710f87e7197dc011e5fa3c694e532462 + digest: sha256:117d9f1bef3342ea256419068dfaf65e5b2d126534ef0773c25ce71b8474f346 diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh index 5cf7ba49..46edbf7f 100755 --- a/.kokoro/coerce_logs.sh +++ b/.kokoro/coerce_logs.sh @@ -28,7 +28,6 @@ job=$(basename ${KOKORO_JOB_NAME}) echo "coercing sponge logs..." for xml in `find . -name *-sponge_log.xml` do - echo "processing ${xml}" class=$(basename ${xml} | cut -d- -f2) dir=$(dirname ${xml})/${job}/${class} text=$(dirname ${xml})/${class}-sponge_log.txt From f19587f164b3961095ee2ffd4f6e37b57f6f79f3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 23 Jun 2021 16:28:30 +0000 Subject: [PATCH 214/519] fix: Add `shopt -s nullglob` to dependencies script (#1130) (#588) This prevents processing the unexpanded glob "**/.flattened-pom.xml" in repos which do not flatten any POMs. Source-Link: https://github.com/googleapis/synthtool/commit/87254ac89a9559864c0a245d6b150406439ce3d8 Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:a9b83a276c82987d284b733713fe86a3c8a2cc457933767eeb2688b882e54c6a --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index cd2e6d39..a86dc465 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:117d9f1bef3342ea256419068dfaf65e5b2d126534ef0773c25ce71b8474f346 + digest: sha256:a9b83a276c82987d284b733713fe86a3c8a2cc457933767eeb2688b882e54c6a diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index a7e999d3..9030ba8f 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -14,6 +14,7 @@ # limitations under the License. set -eo pipefail +shopt -s nullglob ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) From ac51d8cdf4a114bfc43cfdf1296b1ae9fbea6aae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:08:40 +0200 Subject: [PATCH 215/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#589) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 18cab2d9..8c815e67 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 55fb5f42b7e06ca1b590c0f8bc8d8dd0f3677c75 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 01:22:48 +0200 Subject: [PATCH 216/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​140-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare130v140-2021-06-30) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.3.0...v1.4.0) ##### Features - add grpc-gcp to dependencyManagement ([#​389](https://www.github.com/googleapis/java-shared-dependencies/issues/389)) ([57fd2e6](https://www.github.com/googleapis/java-shared-dependencies/commit/57fd2e646e28e37e0b5e4e1b37425d4897a8776f)) ##### Bug Fixes - Add `shopt -s nullglob` to dependencies script ([#​392](https://www.github.com/googleapis/java-shared-dependencies/issues/392)) ([f8f29df](https://www.github.com/googleapis/java-shared-dependencies/commit/f8f29df1c9cc6eca517c99113fb9509fd611ac92)) - Add common httpclient and oauth dependencies ([#​391](https://www.github.com/googleapis/java-shared-dependencies/issues/391)) ([09660e1](https://www.github.com/googleapis/java-shared-dependencies/commit/09660e1e50c96dcd7df4e80d8ad357f8256eda6c)) - Update dependencies.sh to not break on mac ([#​384](https://www.github.com/googleapis/java-shared-dependencies/issues/384)) ([0ae2841](https://www.github.com/googleapis/java-shared-dependencies/commit/0ae2841d7ce2885d041795c58a38d2d3973c2e5a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.1 ([#​390](https://www.github.com/googleapis/java-shared-dependencies/issues/390)) ([00288c1](https://www.github.com/googleapis/java-shared-dependencies/commit/00288c18d09616582c8bec961ecc5c00ef1d4288)) - update dependency com.google.api:api-common to v1.10.4 ([#​385](https://www.github.com/googleapis/java-shared-dependencies/issues/385)) ([5f2b39b](https://www.github.com/googleapis/java-shared-dependencies/commit/5f2b39b5bdc4cec9d5ab2f050e11000ed372d057)) - update dependency com.google.api:gax-grpc to v1.65.1 ([#​382](https://www.github.com/googleapis/java-shared-dependencies/issues/382)) ([a2a1547](https://www.github.com/googleapis/java-shared-dependencies/commit/a2a15471dee21207a0b97b3bc8f6f59d6a4a2d13)) - update dependency com.google.protobuf:protobuf-bom to v3.17.3 ([#​379](https://www.github.com/googleapis/java-shared-dependencies/issues/379)) ([6f43eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/6f43eb553dca98140d343bee3f1003096d79ee6c)) - update dependency io.grpc:grpc-bom to v1.38.1 ([#​386](https://www.github.com/googleapis/java-shared-dependencies/issues/386)) ([7b1d4cf](https://www.github.com/googleapis/java-shared-dependencies/commit/7b1d4cf317fbd75b91d6a63f82b5fc2f46eaf3ca)) - update dependency io.grpc:grpc-bom to v1.39.0 ([#​394](https://www.github.com/googleapis/java-shared-dependencies/issues/394)) ([ebc8af6](https://www.github.com/googleapis/java-shared-dependencies/commit/ebc8af6b3f850b58b35d9720a7a0b1545d4616bd)) - update gax.version to v1.66.0 ([#​395](https://www.github.com/googleapis/java-shared-dependencies/issues/395)) ([c73f73e](https://www.github.com/googleapis/java-shared-dependencies/commit/c73f73e84740a8117be342a66e179eaf3e29c6fd)) - update google.core.version to v1.95.1 ([#​381](https://www.github.com/googleapis/java-shared-dependencies/issues/381)) ([4496153](https://www.github.com/googleapis/java-shared-dependencies/commit/44961532f621b0ab19e9e7feebb7d588aef5d423)) - update google.core.version to v1.95.2 ([#​383](https://www.github.com/googleapis/java-shared-dependencies/issues/383)) ([7216859](https://www.github.com/googleapis/java-shared-dependencies/commit/7216859bcd67fa1ce1119831c33c50a2d5b79324)) - update google.core.version to v1.95.3 ([#​388](https://www.github.com/googleapis/java-shared-dependencies/issues/388)) ([354e4e8](https://www.github.com/googleapis/java-shared-dependencies/commit/354e4e811f4ba886406681a4261ac0455a9eb2d2)) - update google.core.version to v1.95.4 ([#​393](https://www.github.com/googleapis/java-shared-dependencies/issues/393)) ([be78ad8](https://www.github.com/googleapis/java-shared-dependencies/commit/be78ad85e31d8876eabafee7aa8242712573cb46))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 704c91f1..019cc096 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.3.0 + 1.4.0 pom import From c6e3f76289f6703c627b899ce9397ac5d3e2d338 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 22:38:30 +0200 Subject: [PATCH 217/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.117.1 (#592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.115.0` -> `1.117.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.117.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.117.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.117.1/compatibility-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.117.1/confidence-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.117.1`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11171-httpswwwgithubcomgoogleapisjava-storagecomparev11170v11171-2021-06-30) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.117.0...v1.117.1) ### [`v1.117.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11170-httpswwwgithubcomgoogleapisjava-storagecomparev11160v11170-2021-06-28) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.116.0...v1.117.0) ##### Features - Add from and to storage url options for BlobId ([#​888](https://www.github.com/googleapis/java-storage/issues/888)) ([1876a58](https://www.github.com/googleapis/java-storage/commit/1876a580f904d095ca6621c1e2f38c3a6e253276)) - add support of public access prevention ([#​636](https://www.github.com/googleapis/java-storage/issues/636)) ([3d1e482](https://www.github.com/googleapis/java-storage/commit/3d1e48208c44c35c8e3761913bcd05c438e81069)) ##### Bug Fixes - Add `shopt -s nullglob` to dependencies script ([#​894](https://www.github.com/googleapis/java-storage/issues/894)) ([901fd33](https://www.github.com/googleapis/java-storage/commit/901fd335c8d2f2e49844dee2adfa318a98ed99ba)) - Update dependencies.sh to not break on mac ([#​879](https://www.github.com/googleapis/java-storage/issues/879)) ([bc6d1d9](https://www.github.com/googleapis/java-storage/commit/bc6d1d9e211fbbb1accd1019c8eed4bc55ca421c)) ##### Documentation - add notice about broken OLM experience ([#​898](https://www.github.com/googleapis/java-storage/issues/898)) ([73e7cdf](https://www.github.com/googleapis/java-storage/commit/73e7cdf162be76a8438160f4c7f2070fb6fb5ea6)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20210127-1.31.5 ([#​889](https://www.github.com/googleapis/java-storage/issues/889)) ([99138a4](https://www.github.com/googleapis/java-storage/commit/99138a4cd3523cc634e3c5283a775a1c245b6201)) ### [`v1.116.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11160-httpswwwgithubcomgoogleapisjava-storagecomparev11150v11160-2021-06-14) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.115.0...v1.116.0) ##### Features - Add shouldReturnRawInputStream option to Get requests ([#​872](https://www.github.com/googleapis/java-storage/issues/872)) ([474dfae](https://www.github.com/googleapis/java-storage/commit/474dfaec09d591455cecc77b08461efff1010c3a)) ##### Bug Fixes - **ci:** remove linkage-monitor to pass 1.106.1 patch ci ([#​862](https://www.github.com/googleapis/java-storage/issues/862)) ([94a9159](https://www.github.com/googleapis/java-storage/commit/94a915958f888cfbf4110d06a7f64be135dc141e)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#​863](https://www.github.com/googleapis/java-storage/issues/863)) ([37bfd5e](https://www.github.com/googleapis/java-storage/commit/37bfd5e3cf1c62767ff8033366cca66c2e8e6e4c)) - update kms.version ([#​860](https://www.github.com/googleapis/java-storage/issues/860)) ([f1430ff](https://www.github.com/googleapis/java-storage/commit/f1430ffea07696ea808369fcd287187c14afc9a2)) - update kms.version to v0.89.3 ([#​873](https://www.github.com/googleapis/java-storage/issues/873)) ([ee7c236](https://www.github.com/googleapis/java-storage/commit/ee7c2368928c050befb809a2d61bd6ffc92bdc88))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7f7251eb..2d7fa49d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.115.0 + 1.117.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c40565bc..363615e6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.115.0 + 1.117.1 junit From 3f59bcd646f46d00eff09ec7b8cf3353df8cb209 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 5 Jul 2021 13:02:29 -0700 Subject: [PATCH 218/519] chore: regenerate README (#591) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-23 16:31:53,159 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-23 16:31:55,310 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/40f0c67b-49a6-4ef8-8ec8-b33086e78a50/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index fafdfb50..cd934761 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "3d24a3d7555a900da096ed4de1d6aa7e8469c5cd" + "sha": "f19587f164b3961095ee2ffd4f6e37b57f6f79f3" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" + "sha": "9763f20e4b7bb1091082462b2f7970e965d0d414" } } ] diff --git a/README.md b/README.md index 3eb1797c..77d4a175 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.6.0') +implementation platform('com.google.cloud:libraries-bom:20.7.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 56c9f7ed804f9f9891413546412fec0e8f62d513 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 5 Jul 2021 13:12:27 -0700 Subject: [PATCH 219/519] chore: regenerate README (#594) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-05 20:04:41,772 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-05 20:04:43,066 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/e9b791c3-febb-418a-95ec-07c7908828cf/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index cd934761..8339e303 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "f19587f164b3961095ee2ffd4f6e37b57f6f79f3" + "sha": "3f59bcd646f46d00eff09ec7b8cf3353df8cb209" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "9763f20e4b7bb1091082462b2f7970e965d0d414" + "sha": "39652e3948f455fd0b77535a0145eeec561a3706" } } ] diff --git a/README.md b/README.md index 77d4a175..f7c2678c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From b292ead9c00242421aa3c579b2f5e0b082257034 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:04:15 +0000 Subject: [PATCH 220/519] chore: release 1.5.3 (#590) :robot: I have created a release \*beep\* \*boop\* --- ### [1.5.3](https://www.github.com/googleapis/java-dataproc/compare/v1.5.2...v1.5.3) (2021-07-05) ### Bug Fixes * Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-dataproc/issues/1130)) ([#588](https://www.github.com/googleapis/java-dataproc/issues/588)) ([f19587f](https://www.github.com/googleapis/java-dataproc/commit/f19587f164b3961095ee2ffd4f6e37b57f6f79f3)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#593](https://www.github.com/googleapis/java-dataproc/issues/593)) ([55fb5f4](https://www.github.com/googleapis/java-dataproc/commit/55fb5f42b7e06ca1b590c0f8bc8d8dd0f3677c75)) * update dependency com.google.cloud:google-cloud-storage to v1.117.1 ([#592](https://www.github.com/googleapis/java-dataproc/issues/592)) ([c6e3f76](https://www.github.com/googleapis/java-dataproc/commit/c6e3f76289f6703c627b899ce9397ac5d3e2d338)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 41 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb4717fc..ea05eb55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.5.3](https://www.github.com/googleapis/java-dataproc/compare/v1.5.2...v1.5.3) (2021-07-05) + + +### Bug Fixes + +* Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-dataproc/issues/1130)) ([#588](https://www.github.com/googleapis/java-dataproc/issues/588)) ([f19587f](https://www.github.com/googleapis/java-dataproc/commit/f19587f164b3961095ee2ffd4f6e37b57f6f79f3)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#593](https://www.github.com/googleapis/java-dataproc/issues/593)) ([55fb5f4](https://www.github.com/googleapis/java-dataproc/commit/55fb5f42b7e06ca1b590c0f8bc8d8dd0f3677c75)) +* update dependency com.google.cloud:google-cloud-storage to v1.117.1 ([#592](https://www.github.com/googleapis/java-dataproc/issues/592)) ([c6e3f76](https://www.github.com/googleapis/java-dataproc/commit/c6e3f76289f6703c627b899ce9397ac5d3e2d338)) + ### [1.5.2](https://www.github.com/googleapis/java-dataproc/compare/v1.5.1...v1.5.2) (2021-06-04) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index cc921ce4..5c2888a4 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.3-SNAPSHOT + 1.5.3 pom com.google.cloud @@ -63,27 +63,27 @@ com.google.cloud google-cloud-dataproc - 1.5.3-SNAPSHOT + 1.5.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 5a31f0e2..7bbbaf73 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.3-SNAPSHOT + 1.5.3 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.3-SNAPSHOT + 1.5.3 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index cb71a59f..bc113b86 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 56ae072f..9bb222db 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/pom.xml b/pom.xml index 019cc096..0a1f1b27 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.3-SNAPSHOT + 1.5.3 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.cloud google-cloud-dataproc - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 23d23abd..b165b9e3 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3-SNAPSHOT + 1.5.3 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 2d479091..bd2be6c5 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3-SNAPSHOT + 0.93.3 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 363615e6..29b988f0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.3-SNAPSHOT + 1.5.3 diff --git a/versions.txt b/versions.txt index 158e75e2..67663083 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:1.5.2:1.5.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.93.2:0.93.3-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.2:1.5.3-SNAPSHOT +google-cloud-dataproc:1.5.3:1.5.3 +grpc-google-cloud-dataproc-v1:1.5.3:1.5.3 +grpc-google-cloud-dataproc-v1beta2:0.93.3:0.93.3 +proto-google-cloud-dataproc-v1beta2:0.93.3:0.93.3 +proto-google-cloud-dataproc-v1:1.5.3:1.5.3 From 7d0b4b8240e22fd3c56b881d840438190f94adba Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:16:25 +0000 Subject: [PATCH 221/519] chore: release 1.5.4-SNAPSHOT (#595) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 +++++----- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 +++++----- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- .../clirr-ignored-differences.xml | 22 ------------------- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 ++++----- 10 files changed, 28 insertions(+), 50 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 5c2888a4..ba87e9d8 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.3 + 1.5.4-SNAPSHOT pom com.google.cloud @@ -63,27 +63,27 @@ com.google.cloud google-cloud-dataproc - 1.5.3 + 1.5.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 7bbbaf73..7b814d10 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.3 + 1.5.4-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.3 + 1.5.4-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index bc113b86..1b0a8fac 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 9bb222db..831bd026 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0a1f1b27..f6caba97 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.3 + 1.5.4-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -70,27 +70,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index b165b9e3..6d994074 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.3 + 1.5.4-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml index e4109312..afdef514 100644 --- a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml @@ -16,26 +16,4 @@ com/google/cloud/dataproc/v1beta2/*OrBuilder boolean has*(*) - - - - 6001 - com/google/cloud/dataproc/v1beta2/Component - DOCKER - - - 6011 - com/google/cloud/dataproc/v1beta2/Component - DOCKER_VALUE - - - 6001 - com/google/cloud/dataproc/v1beta2/Component - FLINK - - - 6011 - com/google/cloud/dataproc/v1beta2/Component - FLINK_VALUE - diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index bd2be6c5..21f41e2a 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.3 + 0.93.4-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 29b988f0..34d0d627 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.3 + 1.5.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 67663083..9aecf2a6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:1.5.3:1.5.3 -grpc-google-cloud-dataproc-v1:1.5.3:1.5.3 -grpc-google-cloud-dataproc-v1beta2:0.93.3:0.93.3 -proto-google-cloud-dataproc-v1beta2:0.93.3:0.93.3 -proto-google-cloud-dataproc-v1:1.5.3:1.5.3 +google-cloud-dataproc:1.5.3:1.5.4-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.5.3:1.5.4-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.93.3:0.93.4-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.3:0.93.4-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.3:1.5.4-SNAPSHOT From 5ec2583fe1d3ae3a8958a25a02f8ca1461661754 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 7 Jul 2021 10:54:34 -0400 Subject: [PATCH 222/519] chore: remove distributionManagement section (#596) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- pom.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index f6caba97..9f0a2b02 100644 --- a/pom.xml +++ b/pom.xml @@ -41,16 +41,7 @@ https://github.com/googleapis/java-dataproc/issues GitHub Issues - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + Apache-2.0 From db8dc099e26003bc0322424cbf6cb4c5575a5716 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 7 Jul 2021 08:08:19 -0700 Subject: [PATCH 223/519] chore: regenerate README (#598) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-07 14:58:21,181 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-07 14:58:22,498 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/2a99d05e-b9a9-4c66-9496-b7a63d8609d7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8339e303..8ba1182e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "3f59bcd646f46d00eff09ec7b8cf3353df8cb209" + "sha": "5ec2583fe1d3ae3a8958a25a02f8ca1461661754" } }, { diff --git a/README.md b/README.md index f7c2678c..33777a2c 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.5.2' +compile 'com.google.cloud:google-cloud-dataproc:1.5.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.3" ``` ## Authentication From 0cbfbde584a6725355696406b3b1611962d7fd77 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 8 Jul 2021 12:32:26 -0400 Subject: [PATCH 224/519] chore: remove distributionManagement section (#600) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- google-cloud-dataproc-bom/pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ba87e9d8..97d457dd 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -39,17 +39,6 @@ https://github.com/googleapis/java-dataproc - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 From b2079ec950f7c41123f075cee07d2aea6c0b0a03 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:40:22 +0200 Subject: [PATCH 225/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#601) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 8c815e67..469dacf2 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From c5ab9baaf752e701b80796ec87541578727dd18c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Jul 2021 07:56:14 -0700 Subject: [PATCH 226/519] chore: regenerate README (#603) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-09 14:45:45,289 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-09 14:45:46,574 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c2fb2038-9ebb-47ba-8257-17adae3bb18e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8ba1182e..255678f2 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "5ec2583fe1d3ae3a8958a25a02f8ca1461661754" + "sha": "b2079ec950f7c41123f075cee07d2aea6c0b0a03" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39652e3948f455fd0b77535a0145eeec561a3706" + "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" } } ] diff --git a/README.md b/README.md index 33777a2c..bf516625 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.7.0') +implementation platform('com.google.cloud:libraries-bom:20.8.0') compile 'com.google.cloud:google-cloud-dataproc' ``` From 34542a015ee459038d140b96bae43b1225d7abbc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Jul 2021 19:10:13 +0000 Subject: [PATCH 227/519] chore: remove All rights reserved clause from java.header (#1148) (#602) After discussion with OSPO, it has been decided to remove "All rights reserved" clause from the java.header file to better reflect the [correct license header](https://g3doc.corp.google.com/company/teams/opensource/releasing/preparing.md?cl=head#Apache-header). Source-Link: https://github.com/googleapis/synthtool/commit/09c59c20a4bf0daed1665af59035ff240fe356df Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:2e88a4a7fe3377cf8de1fa5982134f6ef2768980fa2f94edcc1ba6604ae2e7ca --- .github/.OwlBot.lock.yaml | 2 +- java.header | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a86dc465..23bcdc9b 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:a9b83a276c82987d284b733713fe86a3c8a2cc457933767eeb2688b882e54c6a + digest: sha256:2e88a4a7fe3377cf8de1fa5982134f6ef2768980fa2f94edcc1ba6604ae2e7ca diff --git a/java.header b/java.header index 3a9b503a..d0970ba7 100644 --- a/java.header +++ b/java.header @@ -1,5 +1,5 @@ ^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ ^ \*$ ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ ^ \* you may not use this file except in compliance with the License\.$ From adf200ce9303141b0fe4c40ba4d8c521969fcede Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Jul 2021 18:14:28 +0200 Subject: [PATCH 228/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v1.5.3 (#599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `1.5.2` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.3/compatibility-slim/1.5.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/1.5.3/confidence-slim/1.5.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v1.5.3`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​153-httpswwwgithubcomgoogleapisjava-dataproccomparev152v153-2021-07-05) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v1.5.2...v1.5.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2d7fa49d..a4f04f3b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3 From 5674613ffef6a1351aec205ab423370e319b48d9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Jul 2021 09:28:24 -0700 Subject: [PATCH 229/519] chore: regenerate README (#605) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-14 16:16:48,880 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-14 16:16:50,373 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/d7a92e00-aecf-41d5-a27d-34c46b637468/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 +- README.md | 50 +++++++++++++++++++- 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 255678f2..096d2b23 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "b2079ec950f7c41123f075cee07d2aea6c0b0a03" + "sha": "adf200ce9303141b0fe4c40ba4d8c521969fcede" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" + "sha": "e44dc0c742b1230887a73552357e0c18dcc30b92" } } ] diff --git a/README.md b/README.md index bf516625..fd458fee 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.5.2 + 1.5.3 ``` @@ -115,10 +115,50 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr Dataproc uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning @@ -179,3 +219,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=dataproc.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java From 0e14edef7f0eda03931f901b7fcdea3c200d8b0f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Jul 2021 23:35:04 +0000 Subject: [PATCH 230/519] chore: add dependencyDashboardLabels to renovate.json (#1156) (#606) Source-Link: https://github.com/googleapis/synthtool/commit/5d3c52f5db664eee9026db76b5bcb466f3a09ca9 Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:b3f8a219abf58ed4a775da5b90934b34f477b74f6f4e5d15781694dcc67b6f41 --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 23bcdc9b..98f19efe 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:2e88a4a7fe3377cf8de1fa5982134f6ef2768980fa2f94edcc1ba6604ae2e7ca + digest: sha256:b3f8a219abf58ed4a775da5b90934b34f477b74f6f4e5d15781694dcc67b6f41 diff --git a/renovate.json b/renovate.json index 1b7949b5..e82b1c08 100644 --- a/renovate.json +++ b/renovate.json @@ -69,5 +69,8 @@ } ], "semanticCommits": true, - "masterIssue": true + "dependencyDashboard": true, + "dependencyDashboardLabels": [ + "type: process" + ] } From 09cef99bf017f80f4bde96475e48e61e189b04c9 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 15 Jul 2021 12:46:14 -0400 Subject: [PATCH 231/519] chore: make owlbot check required (#607) --- .github/sync-repo-settings.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6bddd18e..dbe495a7 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -39,6 +39,7 @@ branchProtectionRules: - "units (11)" - "Kokoro - Test: Integration" - "cla/google" + - "OwlBot Post Processor" # List of explicit permissions to add (additive only) permissionRules: - team: yoshi-admins From e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Jul 2021 00:56:39 +0200 Subject: [PATCH 232/519] deps: update dependency com.google.cloud:google-cloud-storage to v1.118.0 (#604) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `1.117.1` -> `1.118.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.118.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.118.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.118.0/compatibility-slim/1.117.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/1.118.0/confidence-slim/1.117.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v1.118.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​11180-httpswwwgithubcomgoogleapisjava-storagecomparev11171v11180-2021-07-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v1.117.1...v1.118.0) ##### Features - fix signed url mismatch in BlobWriteChannel ([#​915](https://www.github.com/googleapis/java-storage/issues/915)) ([8b05867](https://www.github.com/googleapis/java-storage/commit/8b0586757523cfc550c62ff264eea3eebbd7f32e)) ##### Bug Fixes - correct lastChunk retry logic in BlobWriteChannel ([#​918](https://www.github.com/googleapis/java-storage/issues/918)) ([ab0228c](https://www.github.com/googleapis/java-storage/commit/ab0228c95df831d79f4a9c993908e5700dab5aa7)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20210127-1.32.1 ([#​910](https://www.github.com/googleapis/java-storage/issues/910)) ([2c54acc](https://www.github.com/googleapis/java-storage/commit/2c54acca0653a96773ab3606a8d97299e9fdf045)) - update kms.version to v0.90.0 ([#​911](https://www.github.com/googleapis/java-storage/issues/911)) ([1050725](https://www.github.com/googleapis/java-storage/commit/1050725c91b4375340ba113568ba04538c7f52fc)) ##### [1.117.1](https://www.github.com/googleapis/java-storage/compare/v1.117.0...v1.117.1) (2021-06-30) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#​905](https://www.github.com/googleapis/java-storage/issues/905)) ([dd084d1](https://www.github.com/googleapis/java-storage/commit/dd084d16b5f0bbf54730f2e91ce2c04a61457e0f))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a4f04f3b..d4e3a81e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.117.1 + 1.118.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 34d0d627..f9051b57 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.117.1 + 1.118.0 junit From 11f7df1f930d3c6ee4ade68ca986844c86432b59 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 3 Aug 2021 02:14:27 +0200 Subject: [PATCH 233/519] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#613) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd458fee..0650b8e7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import @@ -46,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.8.0') +implementation platform('com.google.cloud:libraries-bom:20.9.0') compile 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 469dacf2..0b51a65e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From 57f87b501497d8a67138607842cbc7f5b66739da Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 2 Aug 2021 20:22:27 -0400 Subject: [PATCH 234/519] build: configure branch java7 as a release branch (#619) enable releases --- .github/release-please.yml | 5 ++ .github/sync-repo-settings.yaml | 85 ++++++++++++++++----------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index 8ca7f9ca..7bf58076 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,8 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index dbe495a7..84b918e8 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,50 +1,45 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" - - "OwlBot Post Processor" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push \ No newline at end of file + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push From 10bbe4398486f94075248e1501daad42d9043148 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Aug 2021 23:57:17 +0200 Subject: [PATCH 235/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.13.1 (#616) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.12.0` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.13.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0131-httpswwwgithubcomgoogleapisjava-shared-configcomparev0130v0131-2021-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-config/releases/v0.13.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) ##### Bug Fixes - Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) - Update dependencies.sh to not break on mac ([#​276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) ##### Dependencies - update auto-value-annotation.version to v1.8.2 ([#​275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) - update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#​266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) - update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#​274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) ***
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 97d457dd..45a79a26 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 9f0a2b02..226b36f1 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 From a76913b34497a7eebe3326e69b87d6a08b4f0047 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:06:45 +0000 Subject: [PATCH 236/519] chore: release gapic-generator-java v1.0.17 (#623) Committer: @miraleung PiperOrigin-RevId: 388499329 Source-Link: https://github.com/googleapis/googleapis/commit/bb0a090d9204110042ab5dee2ce9e06e8071ce54 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d196f38277f745f7d99d468c5af0950bc9925b44 --- .../v1/stub/GrpcAutoscalingPolicyServiceStub.java | 8 +++++++- .../cloud/dataproc/v1/stub/GrpcClusterControllerStub.java | 8 +++++++- .../cloud/dataproc/v1/stub/GrpcJobControllerStub.java | 8 +++++++- .../dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java | 8 +++++++- .../v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java | 8 +++++++- .../dataproc/v1beta2/stub/GrpcClusterControllerStub.java | 8 +++++++- .../dataproc/v1beta2/stub/GrpcJobControllerStub.java | 8 +++++++- .../v1beta2/stub/GrpcWorkflowTemplateServiceStub.java | 8 +++++++- 8 files changed, 56 insertions(+), 8 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 99be2b1b..240a5a98 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -314,7 +314,13 @@ public UnaryCallable deleteAutoscalingPol @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 4d93d320..3843f55c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -474,7 +474,13 @@ public UnaryCallable diagnoseClusterCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index e21d889f..d842058a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -357,7 +357,13 @@ public UnaryCallable deleteJobCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index 8f3d88ec..ad146643 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -422,7 +422,13 @@ public UnaryCallable deleteWorkflowTemplat @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index c784c73a..7ff00b5b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -316,7 +316,13 @@ public UnaryCallable deleteAutoscalingPol @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index 770ac946..ba22f84d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -379,7 +379,13 @@ public UnaryCallable diagnoseClusterCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index 2b9469e5..5bc7d4bf 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -359,7 +359,13 @@ public UnaryCallable deleteJobCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index 2e95fc12..1a6167f2 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -424,7 +424,13 @@ public UnaryCallable deleteWorkflowTemplat @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override From 550ccf247f66e78a3a7934af9262aa48f6ed2691 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 Aug 2021 15:10:35 +0000 Subject: [PATCH 237/519] chore: remove java 7 units check (#1168) (#617) Source-Link: https://github.com/googleapis/synthtool/commit/1a2878d6909dd10ca4e3c1b5943d6622e996054e Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 2 +- README.md | 18 ++++++++++++++++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 98f19efe..3f7432a5 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:b3f8a219abf58ed4a775da5b90934b34f477b74f6f4e5d15781694dcc67b6f41 + digest: sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0195b32f..65ae6ecd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 diff --git a/README.md b/README.md index 0650b8e7..60dae441 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,11 @@ Java idiomatic client for [Dataproc][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file + ```xml @@ -35,6 +37,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file If you are using Maven without BOM, add this to your dependencies: + ```xml com.google.cloud @@ -45,17 +48,20 @@ If you are using Maven without BOM, add this to your dependencies: ``` If you are using Gradle 5.x or later, add this to your dependencies + ```Groovy implementation platform('com.google.cloud:libraries-bom:20.9.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies + ```Groovy compile 'com.google.cloud:google-cloud-dataproc:1.5.3' ``` If you are using SBT, add this to your dependencies + ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.3" ``` @@ -64,6 +70,10 @@ libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.3" See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Dataproc APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Dataproc API calls. + ## Getting Started ### Prerequisites @@ -93,8 +103,7 @@ use this Dataproc Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-dataproc/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/java-dataproc/tree/master/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | @@ -165,6 +174,7 @@ and on [google-cloud-java][g-c-j]. This library follows [Semantic Versioning](http://semver.org/). + ## Contributing @@ -176,6 +186,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -208,6 +219,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataproc&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ From b0f4ce1d48b7702cf308bcc58dbbaf7987ce43d7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 01:08:47 +0200 Subject: [PATCH 238/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1 (#621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.12.0` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-configcomparev0131v100-2021-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.1...v1.0.0) ##### ⚠ BREAKING CHANGES - update shared-config to java 1.8 ([#​277](https://togithub.com/googleapis/java-shared-config/issues/277)) ##### Features - update shared-config to java 1.8 ([#​277](https://www.github.com/googleapis/java-shared-config/issues/277)) ([9c297a2](https://www.github.com/googleapis/java-shared-config/commit/9c297a27bc236092aab3ae292c7bed206293bc51)) ##### [0.13.1](https://www.github.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) (2021-07-27) ##### Bug Fixes - revert update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 ([#​280](https://www.github.com/googleapis/java-shared-config/issues/280)) ([bdbbb9c](https://www.github.com/googleapis/java-shared-config/commit/bdbbb9c13571d0ef06009ebf03bc25c6e6fcbc17)) ### [`v0.13.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0131-httpswwwgithubcomgoogleapisjava-shared-configcomparev0130v0131-2021-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-config/releases/v0.13.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) ##### Bug Fixes - Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) - Update dependencies.sh to not break on mac ([#​276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) ##### Dependencies - update auto-value-annotation.version to v1.8.2 ([#​275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) - update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#​266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) - update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#​274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) ***
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 45a79a26..2c7c2818 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 226b36f1..c4be250b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 From 6c7c9350381ba1543e05dd8f9804b545e7342a1c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 21:00:45 +0200 Subject: [PATCH 239/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2 (#625) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.4.0` -> `2.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare140v200-2021-08-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.4.0...v2.0.0) ##### ⚠ BREAKING CHANGES - promote to 2.0.0 ([#​428](https://togithub.com/googleapis/java-shared-dependencies/issues/428)) ##### Features - promote to 2.0.0 ([#​428](https://www.github.com/googleapis/java-shared-dependencies/issues/428)) ([4db31f2](https://www.github.com/googleapis/java-shared-dependencies/commit/4db31f29f1668d4743e8af8996b0c4b30e6831b3)) ##### Documentation - we don't use this as a parent pom ([#​407](https://www.github.com/googleapis/java-shared-dependencies/issues/407)) ([4c86aaf](https://www.github.com/googleapis/java-shared-dependencies/commit/4c86aafc05097b6702056f5cb37736127b6df306)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.4 ([#​398](https://www.github.com/googleapis/java-shared-dependencies/issues/398)) ([f0d49b5](https://www.github.com/googleapis/java-shared-dependencies/commit/f0d49b54ba334f9351c66c9924e3d0d2ed7c0016)) - update dependency com.google.api:api-common to v1.10.6 ([#​411](https://www.github.com/googleapis/java-shared-dependencies/issues/411)) ([79801b5](https://www.github.com/googleapis/java-shared-dependencies/commit/79801b5fee08a8c97e275ed3674ab6c83b204a90)) - update dependency com.google.api:api-common to v2 ([#​414](https://www.github.com/googleapis/java-shared-dependencies/issues/414)) ([17f6e68](https://www.github.com/googleapis/java-shared-dependencies/commit/17f6e68a2792843dd41d3877c095e97c052c5ac0)) - update dependency com.google.auth:google-auth-library-bom to v0.27.0 ([#​400](https://www.github.com/googleapis/java-shared-dependencies/issues/400)) ([0d5a95b](https://www.github.com/googleapis/java-shared-dependencies/commit/0d5a95b84076684f84b0fdbb93a706113f44457d)) - update dependency com.google.auth:google-auth-library-bom to v1 ([#​413](https://www.github.com/googleapis/java-shared-dependencies/issues/413)) ([94897d3](https://www.github.com/googleapis/java-shared-dependencies/commit/94897d30bb1cac0059e272b058f6221fb7e4733f)) - update dependency com.google.cloud:grpc-gcp to v1.1.0 ([#​403](https://www.github.com/googleapis/java-shared-dependencies/issues/403)) ([3cc59f1](https://www.github.com/googleapis/java-shared-dependencies/commit/3cc59f15ebb31a7f97c9f3d78057022afabe75e9)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#​406](https://www.github.com/googleapis/java-shared-dependencies/issues/406)) ([2905787](https://www.github.com/googleapis/java-shared-dependencies/commit/29057879adeda8bc40a903ef3b5feafc83c3d972)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​426](https://www.github.com/googleapis/java-shared-dependencies/issues/426)) ([853b68b](https://www.github.com/googleapis/java-shared-dependencies/commit/853b68b16c88c3abb745ee1f71ba4bb317cbc680)) - update gax.version to v1.67.0 ([#​405](https://www.github.com/googleapis/java-shared-dependencies/issues/405)) ([632dcd0](https://www.github.com/googleapis/java-shared-dependencies/commit/632dcd0a9f10b034a2a2ec92c7c3413490dd2a03)) - update gax.version to v2 (major) ([#​418](https://www.github.com/googleapis/java-shared-dependencies/issues/418)) ([670a9e0](https://www.github.com/googleapis/java-shared-dependencies/commit/670a9e0a9588a7e592eb5dd8c0cb9ab08e07293e)) - update google.core.version to v1.96.1 ([#​417](https://www.github.com/googleapis/java-shared-dependencies/issues/417)) ([49db9cb](https://www.github.com/googleapis/java-shared-dependencies/commit/49db9cb473c8d3d794ad57a41cfc223239482174)) - update google.core.version to v2 (major) ([#​427](https://www.github.com/googleapis/java-shared-dependencies/issues/427)) ([8cc7a92](https://www.github.com/googleapis/java-shared-dependencies/commit/8cc7a922cc3ba10a157e3649d7a783bbbcbee010)) - update guava to 30.1.1-jre ([#​423](https://www.github.com/googleapis/java-shared-dependencies/issues/423)) ([94aca59](https://www.github.com/googleapis/java-shared-dependencies/commit/94aca597804d7b45aae22811b277c44281e62d64))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c4be250b..740164d1 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import From ab8983c080920ce4e92271a36f215ebfb6eb6109 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 9 Aug 2021 15:54:22 -0400 Subject: [PATCH 240/519] chore: remove java7 units check from required checks (#626) --- .github/sync-repo-settings.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 84b918e8..ffd39f6f 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -13,7 +13,6 @@ branchProtectionRules: - linkage-monitor - lint - clirr - - units (7) - units (8) - units (11) - 'Kokoro - Test: Integration' From 2541ee5a9ef7d27c217355875bf5ae3d3699fe22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 9 Aug 2021 22:01:32 +0200 Subject: [PATCH 241/519] deps: update dependency com.google.cloud:google-cloud-storage to v2 (#629) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d4e3a81e..7d6a9980 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 1.118.0 + 2.0.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f9051b57..91290ba0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 1.118.0 + 2.0.0 junit From 554a1b0a4f297cd8deed567b0d0db821ead3964f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 9 Aug 2021 13:01:42 -0700 Subject: [PATCH 242/519] chore: regenerate README (#611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: regenerate README * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .github/readme/synth.metadata/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 096d2b23..773d4ee9 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "adf200ce9303141b0fe4c40ba4d8c521969fcede" + "sha": "e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e44dc0c742b1230887a73552357e0c18dcc30b92" + "sha": "82fe6d92bf9cf8a042a33234aa02343f73c12492" } } ] From 128d207257744b69cafdd93aa70cfa93a607a337 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:12:19 +0000 Subject: [PATCH 243/519] chore: release 1.5.4 (#610) :robot: I have created a release \*beep\* \*boop\* --- ### [1.5.4](https://www.github.com/googleapis/java-dataproc/compare/v1.5.3...v1.5.4) (2021-08-09) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#625](https://www.github.com/googleapis/java-dataproc/issues/625)) ([6c7c935](https://www.github.com/googleapis/java-dataproc/commit/6c7c9350381ba1543e05dd8f9804b545e7342a1c)) * update dependency com.google.cloud:google-cloud-storage to v1.118.0 ([#604](https://www.github.com/googleapis/java-dataproc/issues/604)) ([e2fb23c](https://www.github.com/googleapis/java-dataproc/commit/e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7)) * update dependency com.google.cloud:google-cloud-storage to v2 ([#629](https://www.github.com/googleapis/java-dataproc/issues/629)) ([2541ee5](https://www.github.com/googleapis/java-dataproc/commit/2541ee5a9ef7d27c217355875bf5ae3d3699fe22)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 37 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea05eb55..4fc9dac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.5.4](https://www.github.com/googleapis/java-dataproc/compare/v1.5.3...v1.5.4) (2021-08-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#625](https://www.github.com/googleapis/java-dataproc/issues/625)) ([6c7c935](https://www.github.com/googleapis/java-dataproc/commit/6c7c9350381ba1543e05dd8f9804b545e7342a1c)) +* update dependency com.google.cloud:google-cloud-storage to v1.118.0 ([#604](https://www.github.com/googleapis/java-dataproc/issues/604)) ([e2fb23c](https://www.github.com/googleapis/java-dataproc/commit/e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7)) +* update dependency com.google.cloud:google-cloud-storage to v2 ([#629](https://www.github.com/googleapis/java-dataproc/issues/629)) ([2541ee5](https://www.github.com/googleapis/java-dataproc/commit/2541ee5a9ef7d27c217355875bf5ae3d3699fe22)) + ### [1.5.3](https://www.github.com/googleapis/java-dataproc/compare/v1.5.2...v1.5.3) (2021-07-05) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 2c7c2818..0abef7c3 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.4-SNAPSHOT + 1.5.4 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 1.5.4-SNAPSHOT + 1.5.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 7b814d10..d0faba7c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.4-SNAPSHOT + 1.5.4 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.4-SNAPSHOT + 1.5.4 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 1b0a8fac..29b3ea5e 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 831bd026..b21cd870 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/pom.xml b/pom.xml index 740164d1..72f2c620 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.4-SNAPSHOT + 1.5.4 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.cloud google-cloud-dataproc - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 6d994074..17dced81 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4-SNAPSHOT + 1.5.4 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 21f41e2a..91616359 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4-SNAPSHOT + 0.93.4 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 91290ba0..5413e916 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.4-SNAPSHOT + 1.5.4 diff --git a/versions.txt b/versions.txt index 9aecf2a6..1d7a2eab 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:1.5.3:1.5.4-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.5.3:1.5.4-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.93.3:0.93.4-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.93.3:0.93.4-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.3:1.5.4-SNAPSHOT +google-cloud-dataproc:1.5.4:1.5.4 +grpc-google-cloud-dataproc-v1:1.5.4:1.5.4 +grpc-google-cloud-dataproc-v1beta2:0.93.4:0.93.4 +proto-google-cloud-dataproc-v1beta2:0.93.4:0.93.4 +proto-google-cloud-dataproc-v1:1.5.4:1.5.4 From 0aaf5a3b1b79a75e1c026b65c1be194caf6082d8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:22:14 +0000 Subject: [PATCH 244/519] chore: release 1.5.5-SNAPSHOT (#630) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 0abef7c3..1d9375b6 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.4 + 1.5.5-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 1.5.4 + 1.5.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index d0faba7c..9a5717ec 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.4 + 1.5.5-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.4 + 1.5.5-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 29b3ea5e..594e1a9c 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index b21cd870..3b3d29c8 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 72f2c620..5430028b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.4 + 1.5.5-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.cloud google-cloud-dataproc - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 17dced81..438e621e 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.4 + 1.5.5-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 91616359..ca08912c 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.4 + 0.93.5-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5413e916..2fbed031 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.4 + 1.5.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1d7a2eab..7feee841 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:1.5.4:1.5.4 -grpc-google-cloud-dataproc-v1:1.5.4:1.5.4 -grpc-google-cloud-dataproc-v1beta2:0.93.4:0.93.4 -proto-google-cloud-dataproc-v1beta2:0.93.4:0.93.4 -proto-google-cloud-dataproc-v1:1.5.4:1.5.4 +google-cloud-dataproc:1.5.4:1.5.5-SNAPSHOT +grpc-google-cloud-dataproc-v1:1.5.4:1.5.5-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.93.4:0.93.5-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.93.4:0.93.5-SNAPSHOT +proto-google-cloud-dataproc-v1:1.5.4:1.5.5-SNAPSHOT From ff1784fd5e2997fcf3cbbb69fcfd49cc29bcbd44 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:40:32 +0000 Subject: [PATCH 245/519] build: update from broken v1beta2 links to v1 (#628) PiperOrigin-RevId: 389649385 Source-Link: https://github.com/googleapis/googleapis/commit/2c1c2ac112b63ae304226b90dfbb9462a6418864 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10d84a0bdd6864acdd0b1750c19888d4b54d4e4 feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../v1/AutoscalingPolicyServiceClient.java | 8 +- .../v1/AutoscalingPolicyServiceSettings.java | 3 +- .../dataproc/v1/ClusterControllerClient.java | 8 +- .../v1/ClusterControllerSettings.java | 3 +- .../dataproc/v1/JobControllerClient.java | 10 +- .../dataproc/v1/JobControllerSettings.java | 3 +- .../v1/WorkflowTemplateServiceClient.java | 8 +- .../v1/WorkflowTemplateServiceSettings.java | 3 +- .../AutoscalingPolicyServiceStubSettings.java | 3 +- .../stub/ClusterControllerStubSettings.java | 3 +- .../GrpcAutoscalingPolicyServiceStub.java | 57 ++--- .../v1/stub/GrpcClusterControllerStub.java | 118 ++++----- .../v1/stub/GrpcJobControllerStub.java | 101 +++----- .../stub/GrpcWorkflowTemplateServiceStub.java | 82 +++---- .../v1/stub/JobControllerStubSettings.java | 3 +- .../WorkflowTemplateServiceStubSettings.java | 3 +- .../AutoscalingPolicyServiceClient.java | 8 +- .../AutoscalingPolicyServiceSettings.java | 3 +- .../v1beta2/ClusterControllerClient.java | 56 ++--- .../v1beta2/ClusterControllerSettings.java | 3 +- .../dataproc/v1beta2/JobControllerClient.java | 22 +- .../v1beta2/JobControllerSettings.java | 3 +- .../WorkflowTemplateServiceClient.java | 29 +-- .../WorkflowTemplateServiceSettings.java | 3 +- .../AutoscalingPolicyServiceStubSettings.java | 3 +- .../stub/ClusterControllerStubSettings.java | 3 +- .../GrpcAutoscalingPolicyServiceStub.java | 57 ++--- .../stub/GrpcClusterControllerStub.java | 88 +++---- .../v1beta2/stub/GrpcJobControllerStub.java | 101 +++----- .../stub/GrpcWorkflowTemplateServiceStub.java | 82 +++---- .../stub/JobControllerStubSettings.java | 3 +- .../WorkflowTemplateServiceStubSettings.java | 3 +- .../v1beta2/ClusterControllerGrpc.java | 32 +-- .../dataproc/v1beta2/JobControllerGrpc.java | 16 +- .../v1beta2/WorkflowTemplateServiceGrpc.java | 8 +- .../clirr-ignored-differences.xml | 9 + .../google/cloud/dataproc/v1/ClusterName.java | 223 ------------------ .../google/cloud/dataproc/v1/ServiceName.java | 223 ------------------ .../clirr-ignored-differences.xml | 5 + .../cloud/dataproc/v1beta2/ClusterName.java | 223 ------------------ .../cloud/dataproc/v1beta2/clusters.proto | 8 +- .../google/cloud/dataproc/v1beta2/jobs.proto | 4 +- .../dataproc/v1beta2/workflow_templates.proto | 2 +- 43 files changed, 353 insertions(+), 1283 deletions(-) delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index d452ebaf..d242371d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -944,12 +943,7 @@ public static ApiFuture createAsync( ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListAutoscalingPoliciesPagedResponse apply(ListAutoscalingPoliciesPage input) { - return new ListAutoscalingPoliciesPagedResponse(input); - } - }, + input -> new ListAutoscalingPoliciesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java index aba49662..28bc9d98 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java @@ -196,14 +196,13 @@ public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 87cb4c5f..51f40c03 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1163,12 +1162,7 @@ public static ApiFuture createAsync( ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListClustersPagedResponse apply(ListClustersPage input) { - return new ListClustersPagedResponse(input); - } - }, + input -> new ListClustersPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java index 27f7760d..b608594b 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java @@ -235,14 +235,13 @@ public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { return ((ClusterControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java index 5fc45b92..d052c400 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -852,14 +851,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListJobsPagedResponse apply(ListJobsPage input) { - return new ListJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java index c16d3caa..4a443d10 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java @@ -198,14 +198,13 @@ public JobControllerStubSettings.Builder getStubSettingsBuilder() { return ((JobControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 71b74c57..42fc846c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1679,12 +1678,7 @@ public static ApiFuture createAsync( ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) { - return new ListWorkflowTemplatesPagedResponse(input); - } - }, + input -> new ListWorkflowTemplatesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java index a964f1e5..9502edcb 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java @@ -224,14 +224,13 @@ public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 74ebe987..22099087 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -441,14 +441,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 92b6f431..3784a683 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -700,14 +700,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java index 240a5a98..89dd2c65 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java @@ -23,7 +23,6 @@ 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.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; @@ -38,7 +37,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -171,13 +169,10 @@ protected GrpcAutoscalingPolicyServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -185,13 +180,10 @@ public Map extract(CreateAutoscalingPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("policy.name", String.valueOf(request.getPolicy().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("policy.name", String.valueOf(request.getPolicy().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -199,13 +191,10 @@ public Map extract(UpdateAutoscalingPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -214,13 +203,10 @@ public Map extract(GetAutoscalingPolicyRequest request) { .newBuilder() .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListAutoscalingPoliciesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -228,13 +214,10 @@ public Map extract(ListAutoscalingPoliciesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java index 3843f55c..7b9fb4cb 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.Cluster; import com.google.cloud.dataproc.v1.ClusterOperationMetadata; @@ -45,7 +44,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -204,118 +202,94 @@ protected GrpcClusterControllerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings stopClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(stopClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StopClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings startClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(startClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StartClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings listClustersTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listClustersMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListClustersRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings diagnoseClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(diagnoseClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DiagnoseClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java index d842058a..4eb3b09f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.CancelJobRequest; import com.google.cloud.dataproc.v1.DeleteJobRequest; @@ -42,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -169,102 +167,81 @@ protected GrpcJobControllerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SubmitJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings submitJobAsOperationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobAsOperationMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SubmitJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings updateJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java index ad146643..405a7863 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; @@ -43,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -204,13 +202,10 @@ protected GrpcWorkflowTemplateServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -218,13 +213,10 @@ public Map extract(CreateWorkflowTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -232,14 +224,10 @@ public Map extract(GetWorkflowTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - InstantiateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -247,14 +235,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - InstantiateInlineWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -262,14 +246,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "template.name", String.valueOf(request.getTemplate().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("template.name", String.valueOf(request.getTemplate().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -278,26 +258,20 @@ public Map extract(UpdateWorkflowTemplateRequest request) { .newBuilder() .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListWorkflowTemplatesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 7dbac111..89eb6870 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -482,14 +482,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 68fefe73..05a433b8 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -574,14 +574,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java index 7d2319ca..60d39599 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1beta2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -946,12 +945,7 @@ public static ApiFuture createAsync( ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListAutoscalingPoliciesPagedResponse apply(ListAutoscalingPoliciesPage input) { - return new ListAutoscalingPoliciesPagedResponse(input); - } - }, + input -> new ListAutoscalingPoliciesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java index 9f5756f5..4a416299 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java @@ -197,14 +197,13 @@ public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index 2bd8e1df..39f3b627 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1beta2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -174,8 +173,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -209,8 +207,7 @@ public final OperationFuture createClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -238,8 +235,7 @@ public final OperationFuture createClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -267,8 +263,7 @@ public final OperationFuture createClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -295,8 +290,7 @@ public final UnaryCallable createClusterCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -362,8 +356,7 @@ public final OperationFuture updateClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -394,8 +387,7 @@ public final OperationFuture updateClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -426,8 +418,7 @@ public final OperationFuture updateClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -457,8 +448,7 @@ public final UnaryCallable updateClusterCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -491,8 +481,7 @@ public final OperationFuture deleteClusterAsync // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -521,8 +510,7 @@ public final OperationFuture deleteClusterAsync // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -551,8 +539,7 @@ public final OperationFuture deleteClusterAsync // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * *

Sample code: * @@ -830,8 +817,7 @@ public final UnaryCallable listCluste // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * @@ -866,8 +852,7 @@ public final OperationFuture diagnoseClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * @@ -896,8 +881,7 @@ public final OperationFuture diagnoseClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * @@ -926,8 +910,7 @@ public final OperationFuture diagnoseClusterAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. * After the operation completes, [Operation.response][google.longrunning.Operation.response] * contains [Empty][google.protobuf.Empty]. * @@ -997,12 +980,7 @@ public static ApiFuture createAsync( ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListClustersPagedResponse apply(ListClustersPage input) { - return new ListClustersPagedResponse(input); - } - }, + input -> new ListClustersPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java index eafa8bc3..da2fdc1f 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java @@ -213,14 +213,13 @@ public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { return ((ClusterControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java index 431d774c..a29b868e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1beta2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -646,9 +645,7 @@ public final UnaryCallable updateJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). + * regions/{region}/jobs.list or regions/{region}/jobs.get. * *

Sample code: * @@ -679,9 +676,7 @@ public final Job cancelJob(String projectId, String region, String jobId) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). + * regions/{region}/jobs.list or regions/{region}/jobs.get. * *

Sample code: * @@ -707,9 +702,7 @@ public final Job cancelJob(CancelJobRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). + * regions/{region}/jobs.list or regions/{region}/jobs.get. * *

Sample code: * @@ -853,14 +846,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListJobsPagedResponse apply(ListJobsPage input) { - return new ListJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java index f700dd21..bdccc85c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java @@ -199,14 +199,13 @@ public JobControllerStubSettings.Builder getStubSettingsBuilder() { return ((JobControllerStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index d3e10497..ee09725a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.dataproc.v1beta2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -502,8 +501,7 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -558,8 +556,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -613,8 +610,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -673,8 +669,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -734,8 +729,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -782,8 +776,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -832,8 +825,7 @@ public final OperationFuture instantiateWorkflowTemplat * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any * inflight jobs to be cancelled and workflow-owned clusters to be deleted. * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * @@ -1686,12 +1678,7 @@ public static ApiFuture createAsync( ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) { - return new ListWorkflowTemplatesPagedResponse(input); - } - }, + input -> new ListWorkflowTemplatesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java index fbf23573..1c23be0d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java @@ -225,14 +225,13 @@ public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java index 695ef6a3..d0ddcff7 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java @@ -442,14 +442,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java index a7c6a9fd..c7e2d7e1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java @@ -584,14 +584,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java index 7ff00b5b..013c5c3a 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java @@ -24,7 +24,6 @@ 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.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy; import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest; @@ -39,7 +38,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -173,13 +171,10 @@ protected GrpcAutoscalingPolicyServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -187,13 +182,10 @@ public Map extract(CreateAutoscalingPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("policy.name", String.valueOf(request.getPolicy().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("policy.name", String.valueOf(request.getPolicy().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -201,13 +193,10 @@ public Map extract(UpdateAutoscalingPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -216,13 +205,10 @@ public Map extract(GetAutoscalingPolicyRequest request) { .newBuilder() .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListAutoscalingPoliciesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -230,13 +216,10 @@ public Map extract(ListAutoscalingPoliciesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteAutoscalingPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java index ba22f84d..9346f9f8 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.Cluster; import com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata; @@ -43,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -179,88 +177,70 @@ protected GrpcClusterControllerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings updateClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings getClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings listClustersTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listClustersMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListClustersRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings diagnoseClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(diagnoseClusterMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DiagnoseClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_name", String.valueOf(request.getClusterName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java index 5bc7d4bf..319573f1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.CancelJobRequest; import com.google.cloud.dataproc.v1beta2.DeleteJobRequest; @@ -43,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -171,102 +169,81 @@ protected GrpcJobControllerStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SubmitJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings submitJobAsOperationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitJobAsOperationMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SubmitJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings updateJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings cancelJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("job_id", String.valueOf(request.getJobId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("region", String.valueOf(request.getRegion())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java index 1a6167f2..d019b4d1 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest; import com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest; @@ -44,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -206,13 +204,10 @@ protected GrpcWorkflowTemplateServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -220,13 +215,10 @@ public Map extract(CreateWorkflowTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -234,14 +226,10 @@ public Map extract(GetWorkflowTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - InstantiateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -249,14 +237,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - InstantiateInlineWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -264,14 +248,10 @@ public Map extract( GrpcCallSettings.newBuilder() .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "template.name", String.valueOf(request.getTemplate().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("template.name", String.valueOf(request.getTemplate().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -280,26 +260,20 @@ public Map extract(UpdateWorkflowTemplateRequest request) { .newBuilder() .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListWorkflowTemplatesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteWorkflowTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteWorkflowTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java index 0a4b83d5..4fa4e3fd 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java @@ -483,14 +483,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java index b3bffdd8..de284cdf 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java @@ -575,14 +575,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java index c8e559a1..5a4c86a1 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java @@ -363,7 +363,7 @@ public abstract static class ClusterControllerImplBase implements io.grpc.Bindab *

      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void createCluster( @@ -379,7 +379,7 @@ public void createCluster( *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void updateCluster( @@ -395,7 +395,7 @@ public void updateCluster( *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void deleteCluster( @@ -439,7 +439,7 @@ public void listClusters( *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * After the operation completes,
      * [Operation.response][google.longrunning.Operation.response]
      * contains
@@ -523,7 +523,7 @@ protected ClusterControllerStub build(
      * 
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void createCluster( @@ -541,7 +541,7 @@ public void createCluster( *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void updateCluster( @@ -559,7 +559,7 @@ public void updateCluster( *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public void deleteCluster( @@ -608,7 +608,7 @@ public void listClusters( *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * After the operation completes,
      * [Operation.response][google.longrunning.Operation.response]
      * contains
@@ -652,7 +652,7 @@ protected ClusterControllerBlockingStub build(
      * 
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.longrunning.Operation createCluster( @@ -667,7 +667,7 @@ public com.google.longrunning.Operation createCluster( *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.longrunning.Operation updateCluster( @@ -682,7 +682,7 @@ public com.google.longrunning.Operation updateCluster( *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.longrunning.Operation deleteCluster( @@ -723,7 +723,7 @@ public com.google.cloud.dataproc.v1beta2.ListClustersResponse listClusters( *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * After the operation completes,
      * [Operation.response][google.longrunning.Operation.response]
      * contains
@@ -763,7 +763,7 @@ protected ClusterControllerFutureStub build(
      * 
      * Creates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -778,7 +778,7 @@ protected ClusterControllerFutureStub build( *
      * Updates a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -793,7 +793,7 @@ protected ClusterControllerFutureStub build( *
      * Deletes a cluster in a project. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -836,7 +836,7 @@ protected ClusterControllerFutureStub build( *
      * Gets cluster diagnostic information. The returned
      * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
+     * ClusterOperationMetadata.
      * After the operation completes,
      * [Operation.response][google.longrunning.Operation.response]
      * contains
diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java
index e252d9de..6f555c3a 100644
--- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java
+++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java
@@ -460,9 +460,9 @@ public void updateJob(
      * 
      * Starts a job cancellation request. To access the job resource
      * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
+     * regions/{region}/jobs.list
      * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
+     * regions/{region}/jobs.get.
      * 
*/ public void cancelJob( @@ -632,9 +632,9 @@ public void updateJob( *
      * Starts a job cancellation request. To access the job resource
      * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
+     * regions/{region}/jobs.list
      * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
+     * regions/{region}/jobs.get.
      * 
*/ public void cancelJob( @@ -750,9 +750,9 @@ public com.google.cloud.dataproc.v1beta2.Job updateJob( *
      * Starts a job cancellation request. To access the job resource
      * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
+     * regions/{region}/jobs.list
      * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
+     * regions/{region}/jobs.get.
      * 
*/ public com.google.cloud.dataproc.v1beta2.Job cancelJob( @@ -867,9 +867,9 @@ protected JobControllerFutureStub build( *
      * Starts a job cancellation request. To access the job resource
      * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
+     * regions/{region}/jobs.list
      * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
+     * regions/{region}/jobs.get.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java index a1ec46d1..d11291c0 100644 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java @@ -500,7 +500,7 @@ public void getWorkflowTemplate( * This will cause any inflight jobs to be cancelled and workflow-owned * clusters to be deleted. * The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + * WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * On successful completion, @@ -718,7 +718,7 @@ public void getWorkflowTemplate( * This will cause any inflight jobs to be cancelled and workflow-owned * clusters to be deleted. * The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + * WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * On successful completion, @@ -885,7 +885,7 @@ public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getWorkflowTemplate( * This will cause any inflight jobs to be cancelled and workflow-owned * clusters to be deleted. * The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + * WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * On successful completion, @@ -1038,7 +1038,7 @@ protected WorkflowTemplateServiceFutureStub build( * This will cause any inflight jobs to be cancelled and workflow-owned * clusters to be deleted. * The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + * WorkflowMetadata. * Also see [Using * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). * On successful completion, diff --git a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml index fa53d8b6..2803aab7 100644 --- a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml @@ -16,4 +16,13 @@ com/google/cloud/dataproc/v1/*OrBuilder boolean has*(*) + + + 8001 + com/google/cloud/dataproc/v1/ClusterName* + + + 8001 + com/google/cloud/dataproc/v1/ServiceName* + diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java deleted file mode 100644 index 03c92db9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * 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.dataproc.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ClusterName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_CLUSTER = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/clusters/{cluster}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String cluster; - - @Deprecated - protected ClusterName() { - project = null; - location = null; - cluster = null; - } - - private ClusterName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - cluster = Preconditions.checkNotNull(builder.getCluster()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getCluster() { - return cluster; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ClusterName of(String project, String location, String cluster) { - return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); - } - - public static String format(String project, String location, String cluster) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setCluster(cluster) - .build() - .toString(); - } - - public static ClusterName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_CLUSTER.validatedMatch( - formattedString, "ClusterName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); - } - - 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 (ClusterName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_CLUSTER.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 (cluster != null) { - fieldMapBuilder.put("cluster", cluster); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_CLUSTER.instantiate( - "project", project, "location", location, "cluster", cluster); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ClusterName that = ((ClusterName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.cluster, that.cluster); - } - 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(cluster); - return h; - } - - /** Builder for projects/{project}/locations/{location}/clusters/{cluster}. */ - public static class Builder { - private String project; - private String location; - private String cluster; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getCluster() { - return cluster; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setCluster(String cluster) { - this.cluster = cluster; - return this; - } - - private Builder(ClusterName clusterName) { - this.project = clusterName.project; - this.location = clusterName.location; - this.cluster = clusterName.cluster; - } - - public ClusterName build() { - return new ClusterName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java deleted file mode 100644 index 4d878f85..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * 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.dataproc.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ServiceName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_SERVICE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/services/{service}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String service; - - @Deprecated - protected ServiceName() { - project = null; - location = null; - service = null; - } - - private ServiceName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - service = Preconditions.checkNotNull(builder.getService()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getService() { - return service; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ServiceName of(String project, String location, String service) { - return newBuilder().setProject(project).setLocation(location).setService(service).build(); - } - - public static String format(String project, String location, String service) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setService(service) - .build() - .toString(); - } - - public static ServiceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_SERVICE.validatedMatch( - formattedString, "ServiceName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("service")); - } - - 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 (ServiceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_SERVICE.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 (service != null) { - fieldMapBuilder.put("service", service); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_SERVICE.instantiate( - "project", project, "location", location, "service", service); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ServiceName that = ((ServiceName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.service, that.service); - } - 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(service); - return h; - } - - /** Builder for projects/{project}/locations/{location}/services/{service}. */ - public static class Builder { - private String project; - private String location; - private String service; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getService() { - return service; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setService(String service) { - this.service = service; - return this; - } - - private Builder(ServiceName serviceName) { - this.project = serviceName.project; - this.location = serviceName.location; - this.service = serviceName.service; - } - - public ServiceName build() { - return new ServiceName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml index afdef514..33cf4b6d 100644 --- a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml @@ -16,4 +16,9 @@ com/google/cloud/dataproc/v1beta2/*OrBuilder boolean has*(*) + + + 8001 + com/google/cloud/dataproc/v1beta2/ClusterName* + diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java deleted file mode 100644 index 5fc405cc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 ClusterName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_CLUSTER = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/clusters/{cluster}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String cluster; - - @Deprecated - protected ClusterName() { - project = null; - location = null; - cluster = null; - } - - private ClusterName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - cluster = Preconditions.checkNotNull(builder.getCluster()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getCluster() { - return cluster; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ClusterName of(String project, String location, String cluster) { - return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); - } - - public static String format(String project, String location, String cluster) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setCluster(cluster) - .build() - .toString(); - } - - public static ClusterName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_CLUSTER.validatedMatch( - formattedString, "ClusterName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); - } - - 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 (ClusterName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_CLUSTER.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 (cluster != null) { - fieldMapBuilder.put("cluster", cluster); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_CLUSTER.instantiate( - "project", project, "location", location, "cluster", cluster); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ClusterName that = ((ClusterName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.cluster, that.cluster); - } - 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(cluster); - return h; - } - - /** Builder for projects/{project}/locations/{location}/clusters/{cluster}. */ - public static class Builder { - private String project; - private String location; - private String cluster; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getCluster() { - return cluster; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setCluster(String cluster) { - this.cluster = cluster; - return this; - } - - private Builder(ClusterName clusterName) { - this.project = clusterName.project; - this.location = clusterName.location; - this.cluster = clusterName.cluster; - } - - public ClusterName build() { - return new ClusterName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto index 8af436e0..51c9234a 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto @@ -48,7 +48,7 @@ service ClusterController { // Creates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + // ClusterOperationMetadata. rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -64,7 +64,7 @@ service ClusterController { // Updates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + // ClusterOperationMetadata. rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -81,7 +81,7 @@ service ClusterController { // Deletes a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + // ClusterOperationMetadata. rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -113,7 +113,7 @@ service ClusterController { // Gets cluster diagnostic information. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata). + // ClusterOperationMetadata. // After the operation completes, // [Operation.response][google.longrunning.Operation.response] // contains diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto index c99f6791..cd3cc1f7 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto @@ -83,9 +83,9 @@ service JobController { // Starts a job cancellation request. To access the job resource // after cancellation, call - // [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list) + // regions/{region}/jobs.list // or - // [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get). + // regions/{region}/jobs.get. rpc CancelJob(CancelJobRequest) returns (Job) { option (google.api.http) = { post: "/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel" diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto index 48f2f719..829bb644 100644 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto +++ b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto @@ -81,7 +81,7 @@ service WorkflowTemplateService { // clusters to be deleted. // // The [Operation.metadata][google.longrunning.Operation.metadata] will be - // [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata). + // WorkflowMetadata. // Also see [Using // WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). // From 3aac071037213fdff33004721420f13180264180 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 20:56:16 +0000 Subject: [PATCH 246/519] chore: release 2.0.0 (#631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release \*beep\* \*boop\* --- ## [2.0.0](https://www.github.com/googleapis/java-dataproc/compare/v1.5.4...v2.0.0) (2021-08-09) ### ⚠ BREAKING CHANGES * release gapic-generator-java v2.0.0 ### Features * release gapic-generator-java v2.0.0 ([ff1784f](https://www.github.com/googleapis/java-dataproc/commit/ff1784fd5e2997fcf3cbbb69fcfd49cc29bcbd44)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 11 +++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 39 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fc9dac3..63723ff8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [2.0.0](https://www.github.com/googleapis/java-dataproc/compare/v1.5.4...v2.0.0) (2021-08-09) + + +### ⚠ BREAKING CHANGES + +* release gapic-generator-java v2.0.0 + +### Features + +* release gapic-generator-java v2.0.0 ([ff1784f](https://www.github.com/googleapis/java-dataproc/commit/ff1784fd5e2997fcf3cbbb69fcfd49cc29bcbd44)) + ### [1.5.4](https://www.github.com/googleapis/java-dataproc/compare/v1.5.3...v1.5.4) (2021-08-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 1d9375b6..17dff57c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 1.5.5-SNAPSHOT + 2.0.0 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 1.5.5-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 9a5717ec..21de85d1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 1.5.5-SNAPSHOT + 2.0.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 1.5.5-SNAPSHOT + 2.0.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 594e1a9c..4869e185 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 3b3d29c8..455933bf 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/pom.xml b/pom.xml index 5430028b..92ee82ce 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 1.5.5-SNAPSHOT + 2.0.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 com.google.cloud google-cloud-dataproc - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 438e621e..a7dad196 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 1.5.5-SNAPSHOT + 2.0.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index ca08912c..b7d58716 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.93.5-SNAPSHOT + 0.94.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2fbed031..c0d5ec54 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 1.5.5-SNAPSHOT + 2.0.0 diff --git a/versions.txt b/versions.txt index 7feee841..6f0092bc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:1.5.4:1.5.5-SNAPSHOT -grpc-google-cloud-dataproc-v1:1.5.4:1.5.5-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.93.4:0.93.5-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.93.4:0.93.5-SNAPSHOT -proto-google-cloud-dataproc-v1:1.5.4:1.5.5-SNAPSHOT +google-cloud-dataproc:2.0.0:2.0.0 +grpc-google-cloud-dataproc-v1:2.0.0:2.0.0 +grpc-google-cloud-dataproc-v1beta2:0.94.0:0.94.0 +proto-google-cloud-dataproc-v1beta2:0.94.0:0.94.0 +proto-google-cloud-dataproc-v1:2.0.0:2.0.0 From bc5162a46c5bef3829c18e32c93f7fc08c59c4da Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 02:42:14 +0200 Subject: [PATCH 247/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 (#635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.0.0` -> `2.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare200v201-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.0.0...v2.0.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60dae441..cf64a2c8 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ compile 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:1.5.3' +compile 'com.google.cloud:google-cloud-dataproc:2.0.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "1.5.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.0" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 92ee82ce..6144362a 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.0 + 2.0.1 pom import From f61c27656e48edcf9561ef121b0fa97f04d345fe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 18:50:14 -0400 Subject: [PATCH 248/519] chore: release 2.0.1-SNAPSHOT (#632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: release 2.0.1-SNAPSHOT * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ .../clirr-ignored-differences.xml | 9 --------- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- .../clirr-ignored-differences.xml | 5 ----- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 11 files changed, 28 insertions(+), 42 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 17dff57c..337c7326 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.0 + 2.0.1-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 21de85d1..fcfc0a44 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.0 + 2.0.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 4869e185..d7c27120 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 455933bf..02ff70eb 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6144362a..7f739cb7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.0 + 2.0.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml index 2803aab7..fa53d8b6 100644 --- a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml @@ -16,13 +16,4 @@ com/google/cloud/dataproc/v1/*OrBuilder boolean has*(*) - - - 8001 - com/google/cloud/dataproc/v1/ClusterName* - - - 8001 - com/google/cloud/dataproc/v1/ServiceName* - diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index a7dad196..e4c7741d 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.0 + 2.0.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml index 33cf4b6d..afdef514 100644 --- a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml @@ -16,9 +16,4 @@ com/google/cloud/dataproc/v1beta2/*OrBuilder boolean has*(*) - - - 8001 - com/google/cloud/dataproc/v1beta2/ClusterName* - diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index b7d58716..b849e5f7 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.0 + 0.94.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c0d5ec54..eec30974 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6f0092bc..f6d6557f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.0:2.0.0 -grpc-google-cloud-dataproc-v1:2.0.0:2.0.0 -grpc-google-cloud-dataproc-v1beta2:0.94.0:0.94.0 -proto-google-cloud-dataproc-v1beta2:0.94.0:0.94.0 -proto-google-cloud-dataproc-v1:2.0.0:2.0.0 +google-cloud-dataproc:2.0.0:2.0.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.0.0:2.0.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.94.0:0.94.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.94.0:0.94.1-SNAPSHOT +proto-google-cloud-dataproc-v1:2.0.0:2.0.1-SNAPSHOT From d53c63cd5ebbfe64e488bea5b1c92cb101a2a22a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 13 Aug 2021 00:51:29 +0200 Subject: [PATCH 249/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2 (#634) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf64a2c8..150b7fd4 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 1.5.3 + 2.0.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7d6a9980..989b4ab9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 1.5.3 + 2.0.0 From 12c182bae21b2a4a5ef38c09df729559380cc369 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 13 Aug 2021 01:02:18 +0200 Subject: [PATCH 250/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.0.1 (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.0.0` -> `2.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.1/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.1/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.0.1`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​201-httpswwwgithubcomgoogleapisjava-storagecomparev200v201-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.0.0...v2.0.1) ##### Features - generate storage v2 gapic client ([#​960](https://www.github.com/googleapis/java-storage/issues/960)) ([fb2f9d4](https://www.github.com/googleapis/java-storage/commit/fb2f9d489e42b57f61642ce9e0c1a65fe91c9c45)) ##### Bug Fixes - incorrectly labeled span list(String,Map) ([#​946](https://www.github.com/googleapis/java-storage/issues/946)) ([0c1fdcf](https://www.github.com/googleapis/java-storage/commit/0c1fdcfe89609b10c148f0dc6026084d2f49b1b7)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#​961](https://www.github.com/googleapis/java-storage/issues/961)) ([69543dc](https://www.github.com/googleapis/java-storage/commit/69543dcba2fce1028e5fac25a59e1defe6465f06))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 989b4ab9..97de229d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.0.0 + 2.0.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index eec30974..a4f7a6aa 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.0.0 + 2.0.1 junit From 1e472901921d46f75da896afbe7db06e36dd30c2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 23:12:19 +0000 Subject: [PATCH 251/519] chore: release 2.0.1 (#638) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.1](https://www.github.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1) (2021-08-12) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#635](https://www.github.com/googleapis/java-dataproc/issues/635)) ([bc5162a](https://www.github.com/googleapis/java-dataproc/commit/bc5162a46c5bef3829c18e32c93f7fc08c59c4da)) * update dependency com.google.cloud:google-cloud-storage to v2.0.1 ([#636](https://www.github.com/googleapis/java-dataproc/issues/636)) ([12c182b](https://www.github.com/googleapis/java-dataproc/commit/12c182bae21b2a4a5ef38c09df729559380cc369)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63723ff8..9e353e82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.0.1](https://www.github.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1) (2021-08-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#635](https://www.github.com/googleapis/java-dataproc/issues/635)) ([bc5162a](https://www.github.com/googleapis/java-dataproc/commit/bc5162a46c5bef3829c18e32c93f7fc08c59c4da)) +* update dependency com.google.cloud:google-cloud-storage to v2.0.1 ([#636](https://www.github.com/googleapis/java-dataproc/issues/636)) ([12c182b](https://www.github.com/googleapis/java-dataproc/commit/12c182bae21b2a4a5ef38c09df729559380cc369)) + ## [2.0.0](https://www.github.com/googleapis/java-dataproc/compare/v1.5.4...v2.0.0) (2021-08-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 337c7326..c7ab7310 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.1-SNAPSHOT + 2.0.1 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index fcfc0a44..e266d86f 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.1-SNAPSHOT + 2.0.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.1-SNAPSHOT + 2.0.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index d7c27120..2a8da596 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 02ff70eb..73ddffd7 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/pom.xml b/pom.xml index 7f739cb7..19418dd1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.1-SNAPSHOT + 2.0.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 com.google.cloud google-cloud-dataproc - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e4c7741d..af8449eb 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1-SNAPSHOT + 2.0.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index b849e5f7..6354a301 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1-SNAPSHOT + 0.94.1 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a4f7a6aa..d5d0f227 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/versions.txt b/versions.txt index f6d6557f..0ad5cfed 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.0:2.0.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.0.0:2.0.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.94.0:0.94.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.94.0:0.94.1-SNAPSHOT -proto-google-cloud-dataproc-v1:2.0.0:2.0.1-SNAPSHOT +google-cloud-dataproc:2.0.1:2.0.1 +grpc-google-cloud-dataproc-v1:2.0.1:2.0.1 +grpc-google-cloud-dataproc-v1beta2:0.94.1:0.94.1 +proto-google-cloud-dataproc-v1beta2:0.94.1:0.94.1 +proto-google-cloud-dataproc-v1:2.0.1:2.0.1 From da06cec8968bfd8e64513411c3a307a29c5f1d48 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 23:22:17 +0000 Subject: [PATCH 252/519] chore: release 2.0.2-SNAPSHOT (#639) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index c7ab7310..7fa360e4 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.1 + 2.0.2-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index e266d86f..d55691b0 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.1 + 2.0.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 2a8da596..83c9b24c 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 73ddffd7..8aed7064 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 19418dd1..1f8d76d9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.1 + 2.0.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index af8449eb..28a7de76 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.1 + 2.0.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 6354a301..4fd3da64 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.1 + 0.94.2-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d5d0f227..bc852bda 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 0ad5cfed..13897be0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.1:2.0.1 -grpc-google-cloud-dataproc-v1:2.0.1:2.0.1 -grpc-google-cloud-dataproc-v1beta2:0.94.1:0.94.1 -proto-google-cloud-dataproc-v1beta2:0.94.1:0.94.1 -proto-google-cloud-dataproc-v1:2.0.1:2.0.1 +google-cloud-dataproc:2.0.1:2.0.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.0.1:2.0.2-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.94.1:0.94.2-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.94.1:0.94.2-SNAPSHOT +proto-google-cloud-dataproc-v1:2.0.1:2.0.2-SNAPSHOT From d86cd6bc4c56c9cf5d96aab3bf6ae89b319070a9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 16 Aug 2021 22:18:17 +0000 Subject: [PATCH 253/519] build(java): use ENABLE_FLAKYBOT env variable (#1175) (#637) Kokoro job config now supports both environment variables during this migration period. Source-Link: https://github.com/googleapis/synthtool/commit/ff01716e16d2c6e87eaf87197b753ac9fcbbed5d Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:8e27e5a7297b40eca3ab46ae67f10c575813a85c673839030aa161d0818f3a24 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 2 +- .kokoro/nightly/integration.cfg | 2 +- .kokoro/nightly/samples.cfg | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3f7432a5..1830d09a 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:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 + digest: sha256:8e27e5a7297b40eca3ab46ae67f10c575813a85c673839030aa161d0818f3a24 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 642f0b97..4505701f 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -115,7 +115,7 @@ fi # fix output location of logs bash .kokoro/coerce_logs.sh -if [[ "${ENABLE_BUILD_COP}" == "true" ]] +if [[ "${ENABLE_FLAKYBOT}" == "true" ]] then chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-dataproc diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index 0048c8ec..e51c7b4c 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -22,7 +22,7 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index f2542931..9761fd86 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -33,6 +33,6 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } From 32a16a6684d177353c319fcd418deb5d0c4f2557 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Aug 2021 15:34:15 -0700 Subject: [PATCH 254/519] chore: regenerate README (#642) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-08-16 22:23:58,718 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-16 22:24:00,081 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/0e01e658-e50d-424a-bec2-5c6d5cdf4eec/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 773d4ee9..6af9f50e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7" + "sha": "d86cd6bc4c56c9cf5d96aab3bf6ae89b319070a9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "82fe6d92bf9cf8a042a33234aa02343f73c12492" + "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" } } ] diff --git a/README.md b/README.md index 150b7fd4..c151a1a4 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.9.0') +implementation platform('com.google.cloud:libraries-bom:21.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:2.0.0' +compile 'com.google.cloud:google-cloud-dataproc:2.0.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.1" ``` ## Authentication From a47641d06e3130ffa0f8570f0d0b2b1b18e22e6b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 19:54:15 +0200 Subject: [PATCH 255/519] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#641) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c151a1a4..132590dd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0b51a65e..2a140792 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 695ce2edeefd964280ed0101b9026703f4698b64 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 21:39:39 +0200 Subject: [PATCH 256/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.1 (#644) --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 7fa360e4..02ac0ad5 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 1f8d76d9..6120702a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 From ca43a5b553403c3c2075da67f84733f522b488ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 19:12:52 +0200 Subject: [PATCH 257/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.0.2 (#645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.0.1` -> `2.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.2/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.0.2/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.0.2`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​202-httpswwwgithubcomgoogleapisjava-storagecomparev201v202-2021-08-19) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.0.1...v2.0.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 97de229d..072ae69c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.0.1 + 2.0.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bc852bda..ec536e1f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.0.1 + 2.0.2 junit From f1502094726542302086beb76e3b371da2a36bf4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 19:58:15 +0200 Subject: [PATCH 258/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 (#646) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.0.1` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare201v210-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.0.1...v2.1.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.1.0 ([#​439](https://www.togithub.com/googleapis/java-shared-dependencies/issues/439)) ([ca52bd9](https://www.github.com/googleapis/java-shared-dependencies/commit/ca52bd9c099c96bf7b5a57aa85d39b58a610c875)) - update dependency com.google.cloud:google-cloud-core-bom to v2.1.0 ([#​444](https://www.togithub.com/googleapis/java-shared-dependencies/issues/444)) ([ff914c6](https://www.github.com/googleapis/java-shared-dependencies/commit/ff914c6de9e3e7fa6ba75591d3d5077c5421827d)) - update dependency com.google.code.gson:gson to v2.8.8 ([#​442](https://www.togithub.com/googleapis/java-shared-dependencies/issues/442)) ([79a093f](https://www.github.com/googleapis/java-shared-dependencies/commit/79a093f9ccea4d47cf8b678570a1c9699029a8b2)) - update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#​441](https://www.togithub.com/googleapis/java-shared-dependencies/issues/441)) ([e644a4b](https://www.github.com/googleapis/java-shared-dependencies/commit/e644a4b504ab8aa5771f9be36861d1730ea9bcc9)) - update dependency io.grpc:grpc-bom to v1.40.0 ([#​438](https://www.togithub.com/googleapis/java-shared-dependencies/issues/438)) ([c3f8fb4](https://www.github.com/googleapis/java-shared-dependencies/commit/c3f8fb4408f5dc6c7f7dc0e14f0c24fa755433a5)) - update gax.version to v2.3.0 ([#​437](https://www.togithub.com/googleapis/java-shared-dependencies/issues/437)) ([e59aaad](https://www.github.com/googleapis/java-shared-dependencies/commit/e59aaadd76e40ab5ea31c3e812686a4ba0471a49)) ##### [2.0.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.0.0...v2.0.1) (2021-08-11) ##### Dependencies - update dependency com.google.api:api-common to v2.0.1 ([#​431](https://www.togithub.com/googleapis/java-shared-dependencies/issues/431)) ([b1a52c8](https://www.github.com/googleapis/java-shared-dependencies/commit/b1a52c83e19be7be80086f2010e928171b046f62)) - update gax.version to v2.1.0 ([#​432](https://www.togithub.com/googleapis/java-shared-dependencies/issues/432)) ([7f53006](https://www.github.com/googleapis/java-shared-dependencies/commit/7f53006d021e839f52325a87d7c4715eff88818d)) - update google.core.version to v2.0.4 ([#​430](https://www.togithub.com/googleapis/java-shared-dependencies/issues/430)) ([d0465ad](https://www.github.com/googleapis/java-shared-dependencies/commit/d0465ad3a79993d4e854078ea992e53ab9add07f)) - update google.core.version to v2.0.5 ([#​434](https://www.togithub.com/googleapis/java-shared-dependencies/issues/434)) ([af00753](https://www.github.com/googleapis/java-shared-dependencies/commit/af0075390034cba5cefede8260ab03f728d525a8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6120702a..f3dc8a96 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.1 + 2.1.0 pom import From 36f62d140aabc1460b7e6deb2d1d920d673a2667 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 Aug 2021 18:08:29 +0000 Subject: [PATCH 259/519] chore: release 2.0.2 (#648) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.2](https://www.github.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2) (2021-08-24) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#646](https://www.github.com/googleapis/java-dataproc/issues/646)) ([f150209](https://www.github.com/googleapis/java-dataproc/commit/f1502094726542302086beb76e3b371da2a36bf4)) * update dependency com.google.cloud:google-cloud-storage to v2.0.2 ([#645](https://www.github.com/googleapis/java-dataproc/issues/645)) ([ca43a5b](https://www.github.com/googleapis/java-dataproc/commit/ca43a5b553403c3c2075da67f84733f522b488ae)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e353e82..d94fc789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.0.2](https://www.github.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2) (2021-08-24) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#646](https://www.github.com/googleapis/java-dataproc/issues/646)) ([f150209](https://www.github.com/googleapis/java-dataproc/commit/f1502094726542302086beb76e3b371da2a36bf4)) +* update dependency com.google.cloud:google-cloud-storage to v2.0.2 ([#645](https://www.github.com/googleapis/java-dataproc/issues/645)) ([ca43a5b](https://www.github.com/googleapis/java-dataproc/commit/ca43a5b553403c3c2075da67f84733f522b488ae)) + ### [2.0.1](https://www.github.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1) (2021-08-12) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 02ac0ad5..cde0a3a5 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.2-SNAPSHOT + 2.0.2 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index d55691b0..666c35e0 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.2-SNAPSHOT + 2.0.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.2-SNAPSHOT + 2.0.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 83c9b24c..28dca6cc 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 8aed7064..804545c7 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/pom.xml b/pom.xml index f3dc8a96..2b7e1596 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.2-SNAPSHOT + 2.0.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 com.google.cloud google-cloud-dataproc - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 28a7de76..b71abe5a 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2-SNAPSHOT + 2.0.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 4fd3da64..7cdd5fcd 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2-SNAPSHOT + 0.94.2 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ec536e1f..a812cc37 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/versions.txt b/versions.txt index 13897be0..be3fd28f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.1:2.0.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.0.1:2.0.2-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.94.1:0.94.2-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.94.1:0.94.2-SNAPSHOT -proto-google-cloud-dataproc-v1:2.0.1:2.0.2-SNAPSHOT +google-cloud-dataproc:2.0.2:2.0.2 +grpc-google-cloud-dataproc-v1:2.0.2:2.0.2 +grpc-google-cloud-dataproc-v1beta2:0.94.2:0.94.2 +proto-google-cloud-dataproc-v1beta2:0.94.2:0.94.2 +proto-google-cloud-dataproc-v1:2.0.2:2.0.2 From c6f79fcef77633012ebca68592f17af2bfdcc176 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 Aug 2021 18:18:33 +0000 Subject: [PATCH 260/519] chore: release 2.0.3-SNAPSHOT (#649) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index cde0a3a5..3dfcd715 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.2 + 2.0.3-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 666c35e0..37d919b4 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.2 + 2.0.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.2 + 2.0.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 28dca6cc..e1412557 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 804545c7..5743b4c9 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2b7e1596..ad732f1c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.2 + 2.0.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index b71abe5a..24392bde 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.2 + 2.0.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 7cdd5fcd..593c914e 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.2 + 0.94.3-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a812cc37..231d2ac2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index be3fd28f..129200d8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.2:2.0.2 -grpc-google-cloud-dataproc-v1:2.0.2:2.0.2 -grpc-google-cloud-dataproc-v1beta2:0.94.2:0.94.2 -proto-google-cloud-dataproc-v1beta2:0.94.2:0.94.2 -proto-google-cloud-dataproc-v1:2.0.2:2.0.2 +google-cloud-dataproc:2.0.2:2.0.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.0.2:2.0.3-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.94.2:0.94.3-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.94.2:0.94.3-SNAPSHOT +proto-google-cloud-dataproc-v1:2.0.2:2.0.3-SNAPSHOT From 869cdb26e0b6c716fe390d07b0e93582f1aa2c93 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 24 Aug 2021 14:42:22 -0400 Subject: [PATCH 261/519] ci: removing linkage-monitor from the required checks (#647) Linkage Monitor is no longer needed, because the Libraries BOM synchronizes with Google Cloud BOM and the shared dependencies BOM https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/2137 --- .github/sync-repo-settings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index ffd39f6f..32e0ea5a 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -10,7 +10,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (8) @@ -26,7 +25,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (7) From 8c955f30d039a08e794fdda1db094b067c370d2d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 25 Aug 2021 23:26:29 +0000 Subject: [PATCH 262/519] chore: enable release-trigger bot (#1192) (#650) --- .github/.OwlBot.lock.yaml | 2 +- .github/release-trigger.yml | 1 + README.md | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .github/release-trigger.yml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1830d09a..34f691d3 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:8e27e5a7297b40eca3ab46ae67f10c575813a85c673839030aa161d0818f3a24 + digest: sha256:677e79291a12251a7c7e9c24db87f50ae0428bbb79c2bebc50e4fc5e9ed1ee32 diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml new file mode 100644 index 00000000..d4ca9418 --- /dev/null +++ b/.github/release-trigger.yml @@ -0,0 +1 @@ +enabled: true diff --git a/README.md b/README.md index 132590dd..9636db4b 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ compile 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:2.0.1' +compile 'com.google.cloud:google-cloud-dataproc:2.0.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.2" ``` ## Authentication From a601549021c9fa36140f2c29a00d0bcb19c63737 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 18:16:11 +0200 Subject: [PATCH 263/519] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9636db4b..559872f7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:21.0.0') +implementation platform('com.google.cloud:libraries-bom:22.0.0') compile 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2a140792..f9e65563 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From abd29beeb85a2e2bf9063c54d51f7339fbfb1c42 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 19:16:32 +0000 Subject: [PATCH 264/519] feat: Remove use of deprecated gradle command in java README (#1196) (#655) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 13 ------------- README.md | 4 ++-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 34f691d3..33207c57 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:677e79291a12251a7c7e9c24db87f50ae0428bbb79c2bebc50e4fc5e9ed1ee32 + digest: sha256:8a486672c9a4ae5e7d55b9ac252ce1741582b8c2ceeda40efa32376325809928 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65ae6ecd..d510359d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,19 +42,6 @@ jobs: java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh - linkage-monitor: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - name: Install artifacts to local Maven repository - run: .kokoro/build.sh - shell: bash - - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 559872f7..cd9ed9ec 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ If you are using Gradle 5.x or later, add this to your dependencies ```Groovy implementation platform('com.google.cloud:libraries-bom:22.0.0') -compile 'com.google.cloud:google-cloud-dataproc' +implementation 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-dataproc:2.0.2' +implementation 'com.google.cloud:google-cloud-dataproc:2.0.2' ``` If you are using SBT, add this to your dependencies From 313dab9c1f34626ca3c2f97a93891786426b04c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 22:54:39 +0200 Subject: [PATCH 265/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 (#658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.1.0` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare210v220-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.1.0...v2.2.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.5 ([#​456](https://www.togithub.com/googleapis/java-shared-dependencies/issues/456)) ([05b58e8](https://www.github.com/googleapis/java-shared-dependencies/commit/05b58e84ff6617bdcbb1ea644aa6e061bdea0319)) - update dependency com.google.api:api-common to v2.0.2 ([#​450](https://www.togithub.com/googleapis/java-shared-dependencies/issues/450)) ([51caebe](https://www.github.com/googleapis/java-shared-dependencies/commit/51caebe89bfade98866f63952bf82bc663a0179a)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​455](https://www.togithub.com/googleapis/java-shared-dependencies/issues/455)) ([82a5e42](https://www.github.com/googleapis/java-shared-dependencies/commit/82a5e42b06570a2c7c9d53b03161b110a44487a1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.32.1 ([#​447](https://www.togithub.com/googleapis/java-shared-dependencies/issues/447)) ([9d2b895](https://www.github.com/googleapis/java-shared-dependencies/commit/9d2b8958f62daa6a3015a8ac052762fb3d79b35b)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​451](https://www.togithub.com/googleapis/java-shared-dependencies/issues/451)) ([df668ea](https://www.github.com/googleapis/java-shared-dependencies/commit/df668ead8830a40acf9d5605d47f93c465b779c0)) - update gax.version to v2.4.0 ([#​458](https://www.togithub.com/googleapis/java-shared-dependencies/issues/458)) ([a797d9e](https://www.github.com/googleapis/java-shared-dependencies/commit/a797d9eb8a4bcb3025a9511eae61271278a4a5c9)) - update google.common-protos.version to v2.5.0 ([#​457](https://www.togithub.com/googleapis/java-shared-dependencies/issues/457)) ([38c7bb9](https://www.github.com/googleapis/java-shared-dependencies/commit/38c7bb925414d90ff3065650d06589f79bcab9b6)) - update google.core.version to v2.1.1 ([#​449](https://www.togithub.com/googleapis/java-shared-dependencies/issues/449)) ([b28723a](https://www.github.com/googleapis/java-shared-dependencies/commit/b28723ace0c27ebc73f23a2d094e0fe9ba8a9075)) - update google.core.version to v2.1.2 ([#​459](https://www.togithub.com/googleapis/java-shared-dependencies/issues/459)) ([df4d5b7](https://www.github.com/googleapis/java-shared-dependencies/commit/df4d5b7717386f5e0e2cca87bd9afc56b2c7aee8)) - update iam.version to v1.1.0 ([#​448](https://www.togithub.com/googleapis/java-shared-dependencies/issues/448)) ([3967928](https://www.github.com/googleapis/java-shared-dependencies/commit/39679287f3ef8c1cbca5dfc8aca3f69cfee3d4a6))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ad732f1c..399828fa 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.1.0 + 2.2.0 pom import From 11b015dc52fc33e2a699f0d61cc77b0b9c9b92b1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 31 Aug 2021 21:56:12 +0000 Subject: [PATCH 266/519] build(java): update renovate config to mark conformance tests as a test commit type (#1199) (#657) --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 33207c57..fb70e14d 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:8a486672c9a4ae5e7d55b9ac252ce1741582b8c2ceeda40efa32376325809928 + digest: sha256:2595f321d9a9acf34c2d02e4dc5ec214ce07eecdb43978382d8a88476dec0c16 diff --git a/renovate.json b/renovate.json index e82b1c08..083e8f21 100644 --- a/renovate.json +++ b/renovate.json @@ -50,7 +50,8 @@ "^junit:junit", "^com.google.truth:truth", "^org.mockito:mockito-core", - "^org.objenesis:objenesis" + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" ], "semanticCommitType": "test", "semanticCommitScope": "deps" From 3cc8f67b6695411043d01692b1cfcd1031437c1f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:04:38 +0200 Subject: [PATCH 267/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.0 (#652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.0.2` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.0/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.0/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-storagecomparev202v210-2021-08-24) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.0.2...v2.1.0) ##### Features - fix post policy escape bug, update conformance tests ([#​924](https://www.togithub.com/googleapis/java-storage/issues/924)) ([d8329c3](https://www.github.com/googleapis/java-storage/commit/d8329c34fe19fd8c6bba5579aa3c55490c1d4e6f)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#​976](https://www.togithub.com/googleapis/java-storage/issues/976)) ([5cac14d](https://www.github.com/googleapis/java-storage/commit/5cac14d7785ef3798c379d17cd44500958d9cc6a)) - update kms.version to v0.91.2 ([#​977](https://www.togithub.com/googleapis/java-storage/issues/977)) ([1c60e6e](https://www.github.com/googleapis/java-storage/commit/1c60e6e6a34f662478043989b5b0bddea32cc5bf)) ##### [2.0.2](https://www.github.com/googleapis/java-storage/compare/v2.0.1...v2.0.2) (2021-08-19) ##### Dependencies - update kms.version to v0.91.1 ([#​956](https://www.togithub.com/googleapis/java-storage/issues/956)) ([53d24e9](https://www.github.com/googleapis/java-storage/commit/53d24e9d3e27c0319fa3b6837c926484b1bd56a4))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 072ae69c..0f1bc4b3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.0.2 + 2.1.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 231d2ac2..45390344 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.0.2 + 2.1.0 junit From afedd23567b83001830cd01fe85f6a87df078f5e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:06:17 +0200 Subject: [PATCH 268/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.0.1 (#640) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.0.0` -> `2.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.1/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.1/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.0.1`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​201-httpswwwgithubcomgoogleapisjava-dataproccomparev200v201-2021-08-12) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd9ed9ec..beb7f54d 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0f1bc4b3..935bcec1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.0.0 + 2.0.1 From 91f0335f1c23cd5c2927d4e978808463aa589bf3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:20:38 +0200 Subject: [PATCH 269/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.0.2 (#659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.0.1` -> `2.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.2/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.0.2/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.0.2`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​202-httpswwwgithubcomgoogleapisjava-dataproccomparev201v202-2021-08-24) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index beb7f54d..92152dc2 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 935bcec1..0124864b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.0.1 + 2.0.2 From e5c7235a1fd7c16792d5e0b0c641f5c12867e640 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:29:07 +0000 Subject: [PATCH 270/519] chore: release 2.1.0 (#656) :robot: I have created a release \*beep\* \*boop\* --- ## [2.1.0](https://www.github.com/googleapis/java-dataproc/compare/v2.0.2...v2.1.0) (2021-08-31) ### Features * Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-dataproc/issues/1196)) ([#655](https://www.github.com/googleapis/java-dataproc/issues/655)) ([abd29be](https://www.github.com/googleapis/java-dataproc/commit/abd29beeb85a2e2bf9063c54d51f7339fbfb1c42)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#658](https://www.github.com/googleapis/java-dataproc/issues/658)) ([313dab9](https://www.github.com/googleapis/java-dataproc/commit/313dab9c1f34626ca3c2f97a93891786426b04c3)) * update dependency com.google.cloud:google-cloud-storage to v2.1.0 ([#652](https://www.github.com/googleapis/java-dataproc/issues/652)) ([3cc8f67](https://www.github.com/googleapis/java-dataproc/commit/3cc8f67b6695411043d01692b1cfcd1031437c1f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 41 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d94fc789..1b5078de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [2.1.0](https://www.github.com/googleapis/java-dataproc/compare/v2.0.2...v2.1.0) (2021-08-31) + + +### Features + +* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-dataproc/issues/1196)) ([#655](https://www.github.com/googleapis/java-dataproc/issues/655)) ([abd29be](https://www.github.com/googleapis/java-dataproc/commit/abd29beeb85a2e2bf9063c54d51f7339fbfb1c42)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#658](https://www.github.com/googleapis/java-dataproc/issues/658)) ([313dab9](https://www.github.com/googleapis/java-dataproc/commit/313dab9c1f34626ca3c2f97a93891786426b04c3)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.0 ([#652](https://www.github.com/googleapis/java-dataproc/issues/652)) ([3cc8f67](https://www.github.com/googleapis/java-dataproc/commit/3cc8f67b6695411043d01692b1cfcd1031437c1f)) + ### [2.0.2](https://www.github.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2) (2021-08-24) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3dfcd715..9a244499 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.0.3-SNAPSHOT + 2.1.0 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.0.3-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 37d919b4..46248019 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.0.3-SNAPSHOT + 2.1.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.0.3-SNAPSHOT + 2.1.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e1412557..5af8383a 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 5743b4c9..2fbd0f73 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/pom.xml b/pom.xml index 399828fa..ef3554da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.0.3-SNAPSHOT + 2.1.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 com.google.cloud google-cloud-dataproc - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 24392bde..257c6894 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.0.3-SNAPSHOT + 2.1.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 593c914e..cc82b439 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.94.3-SNAPSHOT + 0.95.0 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 45390344..cd6d9109 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.0.3-SNAPSHOT + 2.1.0 diff --git a/versions.txt b/versions.txt index 129200d8..6f31f2ac 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.0.2:2.0.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.0.2:2.0.3-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.94.2:0.94.3-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.94.2:0.94.3-SNAPSHOT -proto-google-cloud-dataproc-v1:2.0.2:2.0.3-SNAPSHOT +google-cloud-dataproc:2.1.0:2.1.0 +grpc-google-cloud-dataproc-v1:2.1.0:2.1.0 +grpc-google-cloud-dataproc-v1beta2:0.95.0:0.95.0 +proto-google-cloud-dataproc-v1beta2:0.95.0:0.95.0 +proto-google-cloud-dataproc-v1:2.1.0:2.1.0 From 1b0b6bc409b20880d5994407c740f3503424a7fa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:40:31 +0000 Subject: [PATCH 271/519] chore: release 2.1.1-SNAPSHOT (#660) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 9a244499..818c1747 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.0 + 2.1.1-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 46248019..fe76b2df 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.0 + 2.1.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 5af8383a..e5e3e524 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 2fbd0f73..b5ae5c3b 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index ef3554da..0a36cf3c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.0 + 2.1.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 257c6894..553b5b25 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.0 + 2.1.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index cc82b439..6a38d82b 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.0 + 0.95.1-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cd6d9109..31b5fc81 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6f31f2ac..84e691e8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.0:2.1.0 -grpc-google-cloud-dataproc-v1:2.1.0:2.1.0 -grpc-google-cloud-dataproc-v1beta2:0.95.0:0.95.0 -proto-google-cloud-dataproc-v1beta2:0.95.0:0.95.0 -proto-google-cloud-dataproc-v1:2.1.0:2.1.0 +google-cloud-dataproc:2.1.0:2.1.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.1.0:2.1.1-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.95.0:0.95.1-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.95.0:0.95.1-SNAPSHOT +proto-google-cloud-dataproc-v1:2.1.0:2.1.1-SNAPSHOT From eb87d2b1674a5eb94e08a3d37f2e6c34ac9e19d3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 2 Sep 2021 17:58:31 +0200 Subject: [PATCH 272/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.1.0 (#661) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.0.2` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.0/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.0/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.1.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-dataproccomparev202v210-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.0.2...v2.1.0) ##### Features - Remove use of deprecated gradle command in java README ([#​1196](https://www.togithub.com/googleapis/java-dataproc/issues/1196)) ([#​655](https://www.togithub.com/googleapis/java-dataproc/issues/655)) ([abd29be](https://www.github.com/googleapis/java-dataproc/commit/abd29beeb85a2e2bf9063c54d51f7339fbfb1c42)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#​658](https://www.togithub.com/googleapis/java-dataproc/issues/658)) ([313dab9](https://www.github.com/googleapis/java-dataproc/commit/313dab9c1f34626ca3c2f97a93891786426b04c3)) - update dependency com.google.cloud:google-cloud-storage to v2.1.0 ([#​652](https://www.togithub.com/googleapis/java-dataproc/issues/652)) ([3cc8f67](https://www.github.com/googleapis/java-dataproc/commit/3cc8f67b6695411043d01692b1cfcd1031437c1f)) ##### [2.0.2](https://www.github.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2) (2021-08-24) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#​646](https://www.togithub.com/googleapis/java-dataproc/issues/646)) ([f150209](https://www.github.com/googleapis/java-dataproc/commit/f1502094726542302086beb76e3b371da2a36bf4)) - update dependency com.google.cloud:google-cloud-storage to v2.0.2 ([#​645](https://www.togithub.com/googleapis/java-dataproc/issues/645)) ([ca43a5b](https://www.github.com/googleapis/java-dataproc/commit/ca43a5b553403c3c2075da67f84733f522b488ae)) ##### [2.0.1](https://www.github.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1) (2021-08-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#​635](https://www.togithub.com/googleapis/java-dataproc/issues/635)) ([bc5162a](https://www.github.com/googleapis/java-dataproc/commit/bc5162a46c5bef3829c18e32c93f7fc08c59c4da)) - update dependency com.google.cloud:google-cloud-storage to v2.0.1 ([#​636](https://www.togithub.com/googleapis/java-dataproc/issues/636)) ([12c182b](https://www.github.com/googleapis/java-dataproc/commit/12c182bae21b2a4a5ef38c09df729559380cc369))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 92152dc2..c7e1ed7d 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.0.2 + 2.1.0 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.0.2' +implementation 'com.google.cloud:google-cloud-dataproc:2.1.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.0.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0124864b..a2ee1c99 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.0.2 + 2.1.0 From 567a8547c914ae6280de9f935b60b3fe0b3e6f56 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Sep 2021 20:28:45 +0000 Subject: [PATCH 273/519] chore(java): install maven 3.8.1 at runtime (#1202) (#662) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index fb70e14d..91c0ea20 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:2595f321d9a9acf34c2d02e4dc5ec214ce07eecdb43978382d8a88476dec0c16 + digest: sha256:4837f2a7fdff2985b4f7432f8a6d6a87beacebf3ac071746532c0ce2e3f24b9b diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d510359d..e23d923e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,9 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} @@ -37,6 +40,9 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} @@ -46,6 +52,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 with: java-version: 8 @@ -57,10 +66,13 @@ 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 with: java-version: 8 - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr + JOB_TYPE: clirr \ No newline at end of file From 461cb9504957d3a6a11f53c019ed230bd1d8fac0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 4 Sep 2021 00:04:26 +0200 Subject: [PATCH 274/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.1 (#663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.0` -> `2.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.1/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.1/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.1`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​211-httpswwwgithubcomgoogleapisjava-storagecomparev210v211-2021-09-03) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.0...v2.1.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a2ee1c99..2ce892e3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.0 + 2.1.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 31b5fc81..dd18fd2a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.0 + 2.1.1 junit From a9d876e9e805f9a2f4e1483df2add3a3b70937d9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Sep 2021 22:16:17 +0000 Subject: [PATCH 275/519] chore: release 2.1.1 (#664) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.1](https://www.github.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1) (2021-09-03) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.1.1 ([#663](https://www.github.com/googleapis/java-dataproc/issues/663)) ([461cb95](https://www.github.com/googleapis/java-dataproc/commit/461cb9504957d3a6a11f53c019ed230bd1d8fac0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b5078de..f871010b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.1](https://www.github.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1) (2021-09-03) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.1.1 ([#663](https://www.github.com/googleapis/java-dataproc/issues/663)) ([461cb95](https://www.github.com/googleapis/java-dataproc/commit/461cb9504957d3a6a11f53c019ed230bd1d8fac0)) + ## [2.1.0](https://www.github.com/googleapis/java-dataproc/compare/v2.0.2...v2.1.0) (2021-08-31) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 818c1747..1c5ce5ac 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.1-SNAPSHOT + 2.1.1 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index fe76b2df..f8580b0a 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.1-SNAPSHOT + 2.1.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.1-SNAPSHOT + 2.1.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e5e3e524..35f04433 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index b5ae5c3b..619a9d43 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/pom.xml b/pom.xml index 0a36cf3c..a775d9b3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.1-SNAPSHOT + 2.1.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 com.google.cloud google-cloud-dataproc - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 553b5b25..e73575b6 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1-SNAPSHOT + 2.1.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 6a38d82b..a2e7832a 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1-SNAPSHOT + 0.95.1 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dd18fd2a..94a00ecb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/versions.txt b/versions.txt index 84e691e8..5bffe7cc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.0:2.1.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.1.0:2.1.1-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.95.0:0.95.1-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.95.0:0.95.1-SNAPSHOT -proto-google-cloud-dataproc-v1:2.1.0:2.1.1-SNAPSHOT +google-cloud-dataproc:2.1.1:2.1.1 +grpc-google-cloud-dataproc-v1:2.1.1:2.1.1 +grpc-google-cloud-dataproc-v1beta2:0.95.1:0.95.1 +proto-google-cloud-dataproc-v1beta2:0.95.1:0.95.1 +proto-google-cloud-dataproc-v1:2.1.1:2.1.1 From c31f4995e83a931f415be6ffd82cf4dcda24009e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Sep 2021 22:26:17 +0000 Subject: [PATCH 276/519] chore: release 2.1.2-SNAPSHOT (#665) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 1c5ce5ac..b273e553 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.1 + 2.1.2-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index f8580b0a..162920c1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.1 + 2.1.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 35f04433..d9646a3e 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 619a9d43..426cf3c8 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index a775d9b3..92b66120 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.1 + 2.1.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e73575b6..2272cef9 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.1 + 2.1.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index a2e7832a..d94676af 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.1 + 0.95.2-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 94a00ecb..945fa43e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5bffe7cc..2738aa21 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.1:2.1.1 -grpc-google-cloud-dataproc-v1:2.1.1:2.1.1 -grpc-google-cloud-dataproc-v1beta2:0.95.1:0.95.1 -proto-google-cloud-dataproc-v1beta2:0.95.1:0.95.1 -proto-google-cloud-dataproc-v1:2.1.1:2.1.1 +google-cloud-dataproc:2.1.1:2.1.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.1.1:2.1.2-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.95.1:0.95.2-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.95.1:0.95.2-SNAPSHOT +proto-google-cloud-dataproc-v1:2.1.1:2.1.2-SNAPSHOT From 75923855cd9b83b9278613e3444102ad735bc0eb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Sep 2021 16:28:29 +0000 Subject: [PATCH 277/519] chore(java): update windows build (#1205) (#667) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 5 ++++- README.md | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 91c0ea20..a173685b 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:4837f2a7fdff2985b4f7432f8a6d6a87beacebf3ac071746532c0ce2e3f24b9b + digest: sha256:a9e9c43309df91d0051ccfcea4860a95bbe9a85eeb3c1822fa1a617a06b649de diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e23d923e..3becb5c0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,6 +26,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 with: java-version: 8 @@ -75,4 +78,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/README.md b/README.md index c7e1ed7d..c7ecf1fc 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.1.0' +implementation 'com.google.cloud:google-cloud-dataproc:2.1.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.1" ``` ## Authentication From 107d25bc35b2466d59d74d9be178fca5519a5d79 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 8 Sep 2021 09:42:19 -0700 Subject: [PATCH 278/519] chore: regenerate README (#670) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-09-08 16:30:39,883 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-dataproc/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-09-08 16:30:41,390 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/34cb7468-cd0a-4c77-84ea-747a9ff3e4f2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 6af9f50e..5c2be03f 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "d86cd6bc4c56c9cf5d96aab3bf6ae89b319070a9" + "sha": "75923855cd9b83b9278613e3444102ad735bc0eb" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" + "sha": "17ee6e5c08f2eb47029beee4776ce990e56b3925" } } ] diff --git a/README.md b/README.md index c7ecf1fc..b30a3571 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:22.0.0') +implementation platform('com.google.cloud:libraries-bom:23.0.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` From 51a7b06de48e0c35158c4b3032ceac1f1ec0fc94 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Sep 2021 21:10:11 +0000 Subject: [PATCH 279/519] chore: add gcf-owl-bot to list of trusted contributors (#1208) (#672) --- .github/.OwlBot.lock.yaml | 2 +- .github/trusted-contribution.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a173685b..46b63e03 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:a9e9c43309df91d0051ccfcea4860a95bbe9a85eeb3c1822fa1a617a06b649de + digest: sha256:78ad73bf327217e14460c3a3adbba3e1d9a4b5f35fe85103421ba784fd27529f diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml index f247d5c7..a0ba1f7d 100644 --- a/.github/trusted-contribution.yml +++ b/.github/trusted-contribution.yml @@ -1,2 +1,3 @@ trustedContributors: -- renovate-bot \ No newline at end of file +- renovate-bot +- gcf-owl-bot[bot] From ea4abf7ebb9408256d4914620d321f3073b2d00a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 8 Sep 2021 23:14:37 +0200 Subject: [PATCH 280/519] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b30a3571..653b79cc 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f9e65563..531101a8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 64b74b4fdd6ceb8aa9a0ee462703b7dc77d569e1 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 8 Sep 2021 15:11:12 -0700 Subject: [PATCH 281/519] chore: remove readme autosynth config (#674) --- .github/readme/synth.metadata/synth.metadata | 18 ------- .github/readme/synth.py | 19 ------- .kokoro/continuous/readme.cfg | 55 -------------------- 3 files changed, 92 deletions(-) delete mode 100644 .github/readme/synth.metadata/synth.metadata delete mode 100644 .github/readme/synth.py delete mode 100644 .kokoro/continuous/readme.cfg diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata deleted file mode 100644 index 5c2be03f..00000000 --- a/.github/readme/synth.metadata/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "75923855cd9b83b9278613e3444102ad735bc0eb" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "17ee6e5c08f2eb47029beee4776ce990e56b3925" - } - } - ] -} \ No newline at end of file diff --git a/.github/readme/synth.py b/.github/readme/synth.py deleted file mode 100644 index 7b48cc28..00000000 --- a/.github/readme/synth.py +++ /dev/null @@ -1,19 +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. - -"""This script is used to synthesize generated the README for this library.""" - -from synthtool.languages import java - -java.custom_templates(["java_library/README.md"]) diff --git a/.kokoro/continuous/readme.cfg b/.kokoro/continuous/readme.cfg deleted file mode 100644 index 771dba28..00000000 --- a/.kokoro/continuous/readme.cfg +++ /dev/null @@ -1,55 +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. - -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/python-multi" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/readme.sh" -} - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.log" - } -} - -# The github token is stored here. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "yoshi-automation-github-key" - # TODO(theacodes): remove this after secrets have globally propagated - backend_type: FASTCONFIGPUSH - } - } -} - -# Common env vars for all repositories and builds. -env_vars: { - key: "GITHUB_USER" - value: "yoshi-automation" -} -env_vars: { - key: "GITHUB_EMAIL" - value: "yoshi-automation@google.com" -} From 4f0a4147d186def631657a128b6e2fb42c635234 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 10 Sep 2021 16:30:18 +0000 Subject: [PATCH 282/519] chore(java): update shared-config and shared-dependencies version in pom template (#1182) (#673) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/common.sh | 2 +- .kokoro/release/drop.sh | 2 +- .kokoro/release/promote.sh | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 2 +- .kokoro/trampoline.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 46b63e03..b6721276 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:78ad73bf327217e14460c3a3adbba3e1d9a4b5f35fe85103421ba784fd27529f + digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh index 6e3f6599..7f78ee41 100755 --- a/.kokoro/release/common.sh +++ b/.kokoro/release/common.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh index 5c4551ef..742ec1a8 100755 --- a/.kokoro/release/drop.sh +++ b/.kokoro/release/drop.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh index 1fa95fa5..3cac3d8a 100755 --- a/.kokoro/release/promote.sh +++ b/.kokoro/release/promote.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index dbcc2268..e8ab72fe 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019 Google Inc. +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 00f2471b..fafa4b7a 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2021 Google Inc. +# 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. diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 8a103384..77dc4e8f 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh index 9da0f839..8b69b793 100644 --- a/.kokoro/trampoline.sh +++ b/.kokoro/trampoline.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 085e5dd64fdaaaf63685f5571282bd41a52099c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 22:04:57 +0200 Subject: [PATCH 283/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.1.1 (#666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.1.0` -> `2.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.1/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.1/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.1.1`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​211-httpswwwgithubcomgoogleapisjava-dataproccomparev210v211-2021-09-03) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 653b79cc..a53cf8a7 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2ce892e3..abd323a0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.1.0 + 2.1.1 From 25e7ef6d037f42a66b127fe4095c6db6f8847a4e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 03:56:28 +0200 Subject: [PATCH 284/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.2 (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.1` -> `1.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/compatibility-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/confidence-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​102-httpswwwgithubcomgoogleapisjava-shared-configcomparev101v102-2021-09-13) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b273e553..8fbf45ca 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 92b66120..03a2b632 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 From 31ab3b91450f0f6a8993182bda17e535abd3b1d6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 04:24:24 +0200 Subject: [PATCH 285/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 (#679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.2.0` -> `2.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.2.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​221-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare220v221-2021-09-13) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.2.0...v2.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 03a2b632..099fa6cf 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.0 + 2.2.1 pom import From f0d4b2ca319c65619ae3ef2482d2019b881ef49c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 02:36:20 +0000 Subject: [PATCH 286/519] chore: release 2.1.2 (#681) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.2](https://www.github.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2) (2021-09-14) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#679](https://www.github.com/googleapis/java-dataproc/issues/679)) ([31ab3b9](https://www.github.com/googleapis/java-dataproc/commit/31ab3b91450f0f6a8993182bda17e535abd3b1d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f871010b..fae3c421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.2](https://www.github.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2) (2021-09-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#679](https://www.github.com/googleapis/java-dataproc/issues/679)) ([31ab3b9](https://www.github.com/googleapis/java-dataproc/commit/31ab3b91450f0f6a8993182bda17e535abd3b1d6)) + ### [2.1.1](https://www.github.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1) (2021-09-03) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8fbf45ca..86999ab9 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.2-SNAPSHOT + 2.1.2 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 162920c1..a48cd7ba 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.2-SNAPSHOT + 2.1.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.2-SNAPSHOT + 2.1.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index d9646a3e..9f92edf5 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 426cf3c8..c9abfc64 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/pom.xml b/pom.xml index 099fa6cf..b3f7358e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.2-SNAPSHOT + 2.1.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 com.google.cloud google-cloud-dataproc - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 2272cef9..0fef1cc0 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2-SNAPSHOT + 2.1.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index d94676af..e4ae6ed6 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2-SNAPSHOT + 0.95.2 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 945fa43e..21fa02c3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/versions.txt b/versions.txt index 2738aa21..11f8e448 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.1:2.1.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.1.1:2.1.2-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.95.1:0.95.2-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.95.1:0.95.2-SNAPSHOT -proto-google-cloud-dataproc-v1:2.1.1:2.1.2-SNAPSHOT +google-cloud-dataproc:2.1.2:2.1.2 +grpc-google-cloud-dataproc-v1:2.1.2:2.1.2 +grpc-google-cloud-dataproc-v1beta2:0.95.2:0.95.2 +proto-google-cloud-dataproc-v1beta2:0.95.2:0.95.2 +proto-google-cloud-dataproc-v1:2.1.2:2.1.2 From 4ca24fefb5cc41a7d39ce52be9ca440bf49a8339 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 02:46:20 +0000 Subject: [PATCH 287/519] chore: release 2.1.3-SNAPSHOT (#682) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 86999ab9..09163a87 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.2 + 2.1.3-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index a48cd7ba..0d6fe281 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.2 + 2.1.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 9f92edf5..5b701418 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index c9abfc64..dc0b0f3a 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index b3f7358e..93fd0c86 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.2 + 2.1.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 0fef1cc0..db8b8de6 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.2 + 2.1.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index e4ae6ed6..2ae9f0c7 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.2 + 0.95.3-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 21fa02c3..9ee36c93 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 11f8e448..f23de595 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.2:2.1.2 -grpc-google-cloud-dataproc-v1:2.1.2:2.1.2 -grpc-google-cloud-dataproc-v1beta2:0.95.2:0.95.2 -proto-google-cloud-dataproc-v1beta2:0.95.2:0.95.2 -proto-google-cloud-dataproc-v1:2.1.2:2.1.2 +google-cloud-dataproc:2.1.2:2.1.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.1.2:2.1.3-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.95.2:0.95.3-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.95.2:0.95.3-SNAPSHOT +proto-google-cloud-dataproc-v1:2.1.2:2.1.3-SNAPSHOT From 75390d1ada45101c679bbd271e98ac7070b22c20 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 20:28:43 +0200 Subject: [PATCH 288/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.2 (#684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.1` -> `2.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.2`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​212-httpswwwgithubcomgoogleapisjava-storagecomparev211v212-2021-09-14) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.1...v2.1.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a53cf8a7..1c606f7c 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.1.1' +implementation 'com.google.cloud:google-cloud-dataproc:2.1.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.2" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index abd323a0..6f995af7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.1 + 2.1.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9ee36c93..62dc625d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.1 + 2.1.2 junit From 8a98d40338523919a9b23578f4afb66a025c2de5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 18:38:25 +0000 Subject: [PATCH 289/519] chore: release 2.1.3 (#685) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.3](https://www.github.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3) (2021-09-14) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.1.2 ([#684](https://www.github.com/googleapis/java-dataproc/issues/684)) ([75390d1](https://www.github.com/googleapis/java-dataproc/commit/75390d1ada45101c679bbd271e98ac7070b22c20)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fae3c421..a624d18b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.3](https://www.github.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3) (2021-09-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.1.2 ([#684](https://www.github.com/googleapis/java-dataproc/issues/684)) ([75390d1](https://www.github.com/googleapis/java-dataproc/commit/75390d1ada45101c679bbd271e98ac7070b22c20)) + ### [2.1.2](https://www.github.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2) (2021-09-14) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 09163a87..18d2bb3c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.3-SNAPSHOT + 2.1.3 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 0d6fe281..19e2ea86 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.3-SNAPSHOT + 2.1.3 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.3-SNAPSHOT + 2.1.3 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 5b701418..e2f9f12c 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index dc0b0f3a..8454a1c3 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/pom.xml b/pom.xml index 93fd0c86..7cc48997 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.3-SNAPSHOT + 2.1.3 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 com.google.cloud google-cloud-dataproc - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index db8b8de6..ed61b911 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3-SNAPSHOT + 2.1.3 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 2ae9f0c7..70176595 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3-SNAPSHOT + 0.95.3 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 62dc625d..f79e3c11 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/versions.txt b/versions.txt index f23de595..fbe2e62f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.2:2.1.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.1.2:2.1.3-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.95.2:0.95.3-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.95.2:0.95.3-SNAPSHOT -proto-google-cloud-dataproc-v1:2.1.2:2.1.3-SNAPSHOT +google-cloud-dataproc:2.1.3:2.1.3 +grpc-google-cloud-dataproc-v1:2.1.3:2.1.3 +grpc-google-cloud-dataproc-v1beta2:0.95.3:0.95.3 +proto-google-cloud-dataproc-v1beta2:0.95.3:0.95.3 +proto-google-cloud-dataproc-v1:2.1.3:2.1.3 From 91eb8a503784e04d692f712f094b1de2fac93887 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 20:44:57 +0200 Subject: [PATCH 290/519] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.1 (#668) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.3.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.1/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.1/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7cc48997..79e36812 100644 --- a/pom.xml +++ b/pom.xml @@ -159,7 +159,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.0 + 3.3.1 html From 146660da73c89505bc79caca0180c49ddae9771f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 18:48:28 +0000 Subject: [PATCH 291/519] chore: release 2.1.4-SNAPSHOT (#686) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 18d2bb3c..941c01c4 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.3 + 2.1.4-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 19e2ea86..3b0d2e41 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.3 + 2.1.4-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e2f9f12c..5ddbbe1f 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 8454a1c3..5ba5eccf 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 79e36812..beeb2fc6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.3 + 2.1.4-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index ed61b911..6ac83b86 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.3 + 2.1.4-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 70176595..1c152475 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.3 + 0.95.4-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f79e3c11..e32c452c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index fbe2e62f..0cc56543 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.3:2.1.3 -grpc-google-cloud-dataproc-v1:2.1.3:2.1.3 -grpc-google-cloud-dataproc-v1beta2:0.95.3:0.95.3 -proto-google-cloud-dataproc-v1beta2:0.95.3:0.95.3 -proto-google-cloud-dataproc-v1:2.1.3:2.1.3 +google-cloud-dataproc:2.1.3:2.1.4-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.1.3:2.1.4-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.95.3:0.95.4-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.95.3:0.95.4-SNAPSHOT +proto-google-cloud-dataproc-v1:2.1.3:2.1.4-SNAPSHOT From d385214b43fa6bfab790b04cfd47b4fb83095938 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 23:42:45 +0200 Subject: [PATCH 292/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.1.2 (#683) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.1.1` -> `2.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.1.2`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​212-httpswwwgithubcomgoogleapisjava-dataproccomparev211v212-2021-09-14) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c606f7c..0b5a47ab 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.1.2' +implementation 'com.google.cloud:google-cloud-dataproc:2.1.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.3" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6f995af7..f4f7034e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.1.1 + 2.1.2 From 690055932bf54fd7172bdc486e06ed790edc7fd6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Sep 2021 19:32:09 +0200 Subject: [PATCH 293/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.1.3 (#687) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.1.2` -> `2.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.3/compatibility-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.3/confidence-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.1.3`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​213-httpswwwgithubcomgoogleapisjava-dataproccomparev212v213-2021-09-14) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b5a47ab..931838ec 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f4f7034e..da7130ac 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.1.2 + 2.1.3 From 35f38a3b3ad8de2c6ef4c0804c0b6f29f75c020c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 00:06:27 +0200 Subject: [PATCH 294/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.3 (#688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.2` -> `2.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.3/compatibility-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.3/confidence-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.3`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​213-httpswwwgithubcomgoogleapisjava-storagecomparev212v213-2021-09-15) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.2...v2.1.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index da7130ac..67a0b85f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.2 + 2.1.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e32c452c..d948846d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.2 + 2.1.3 junit From d881085852f8c155e4f806806e97a255edf785ca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 Sep 2021 22:16:16 +0000 Subject: [PATCH 295/519] chore: release 2.1.4 (#689) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.4](https://www.github.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4) (2021-09-16) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.1.3 ([#688](https://www.github.com/googleapis/java-dataproc/issues/688)) ([35f38a3](https://www.github.com/googleapis/java-dataproc/commit/35f38a3b3ad8de2c6ef4c0804c0b6f29f75c020c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a624d18b..76dca5e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.4](https://www.github.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4) (2021-09-16) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.1.3 ([#688](https://www.github.com/googleapis/java-dataproc/issues/688)) ([35f38a3](https://www.github.com/googleapis/java-dataproc/commit/35f38a3b3ad8de2c6ef4c0804c0b6f29f75c020c)) + ### [2.1.3](https://www.github.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3) (2021-09-14) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 941c01c4..ca6e84f2 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.4-SNAPSHOT + 2.1.4 pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 3b0d2e41..0bdb6680 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.4-SNAPSHOT + 2.1.4 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.4-SNAPSHOT + 2.1.4 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 5ddbbe1f..03ef556e 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 5ba5eccf..38e5ed90 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/pom.xml b/pom.xml index beeb2fc6..a137f376 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.4-SNAPSHOT + 2.1.4 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 com.google.cloud google-cloud-dataproc - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 6ac83b86..e7c93587 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4-SNAPSHOT + 2.1.4 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 1c152475..5e5d0c6b 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4-SNAPSHOT + 0.95.4 proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d948846d..0c9842e3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/versions.txt b/versions.txt index 0cc56543..87868c02 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.3:2.1.4-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.1.3:2.1.4-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.95.3:0.95.4-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.95.3:0.95.4-SNAPSHOT -proto-google-cloud-dataproc-v1:2.1.3:2.1.4-SNAPSHOT +google-cloud-dataproc:2.1.4:2.1.4 +grpc-google-cloud-dataproc-v1:2.1.4:2.1.4 +grpc-google-cloud-dataproc-v1beta2:0.95.4:0.95.4 +proto-google-cloud-dataproc-v1beta2:0.95.4:0.95.4 +proto-google-cloud-dataproc-v1:2.1.4:2.1.4 From fccb80fce0475858db70df90388d4fc1f6c92b73 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 Sep 2021 22:26:13 +0000 Subject: [PATCH 296/519] chore: release 2.1.5-SNAPSHOT (#690) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 12 ++++++------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- proto-google-cloud-dataproc-v1beta2/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ca6e84f2..deecb4d6 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.4 + 2.1.5-SNAPSHOT pom com.google.cloud @@ -52,27 +52,27 @@ com.google.cloud google-cloud-dataproc - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 0bdb6680..00058c30 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.4 + 2.1.5-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.4 + 2.1.5-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 03ef556e..050cdd96 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml index 38e5ed90..6cda72cc 100644 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ b/grpc-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT grpc-google-cloud-dataproc-v1beta2 GRPC library for grpc-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index a137f376..d67b6a72 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.4 + 2.1.5-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,27 +61,27 @@ com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e7c93587..6d44ed2f 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.4 + 2.1.5-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml index 5e5d0c6b..9afebcc7 100644 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ b/proto-google-cloud-dataproc-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 - 0.95.4 + 0.95.5-SNAPSHOT proto-google-cloud-dataproc-v1beta2 PROTO library for proto-google-cloud-dataproc-v1beta2 com.google.cloud google-cloud-dataproc-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0c9842e3..2a354070 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 87868c02..d0b52377 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.4:2.1.4 -grpc-google-cloud-dataproc-v1:2.1.4:2.1.4 -grpc-google-cloud-dataproc-v1beta2:0.95.4:0.95.4 -proto-google-cloud-dataproc-v1beta2:0.95.4:0.95.4 -proto-google-cloud-dataproc-v1:2.1.4:2.1.4 +google-cloud-dataproc:2.1.4:2.1.5-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT +grpc-google-cloud-dataproc-v1beta2:0.95.4:0.95.5-SNAPSHOT +proto-google-cloud-dataproc-v1beta2:0.95.4:0.95.5-SNAPSHOT +proto-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT From 1415252bc06133dfa2db43feccfcbc448e60672a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 17 Sep 2021 16:44:11 +0000 Subject: [PATCH 297/519] feat: delete deprecated Dataproc v1beta2 API client (#651) - [x] Regenerate this pull request now. Committer: @medb PiperOrigin-RevId: 392723737 Source-Link: https://github.com/googleapis/googleapis/commit/8bf048db6962fffc98b3930de2b4044aa1d54957 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f45e49bb22b39098ca73b18228b2014ab931d38a --- README.md | 4 +- google-cloud-dataproc-bom/pom.xml | 10 - .../clirr-ignored-differences.xml | 12 + google-cloud-dataproc/pom.xml | 9 - .../AutoscalingPolicyServiceStubSettings.java | 4 +- .../stub/ClusterControllerStubSettings.java | 4 +- .../v1/stub/JobControllerStubSettings.java | 4 +- .../WorkflowTemplateServiceStubSettings.java | 4 +- .../AutoscalingPolicyServiceClient.java | 1018 --- .../AutoscalingPolicyServiceSettings.java | 250 - .../v1beta2/ClusterControllerClient.java | 1042 --- .../v1beta2/ClusterControllerSettings.java | 289 - .../dataproc/v1beta2/JobControllerClient.java | 901 --- .../v1beta2/JobControllerSettings.java | 261 - .../WorkflowTemplateServiceClient.java | 1748 ----- .../WorkflowTemplateServiceSettings.java | 304 - .../dataproc/v1beta2/gapic_metadata.json | 120 - .../cloud/dataproc/v1beta2/package-info.java | 87 - .../stub/AutoscalingPolicyServiceStub.java | 76 - .../AutoscalingPolicyServiceStubSettings.java | 498 -- .../v1beta2/stub/ClusterControllerStub.java | 103 - .../stub/ClusterControllerStubSettings.java | 671 -- ...toscalingPolicyServiceCallableFactory.java | 115 - .../GrpcAutoscalingPolicyServiceStub.java | 335 - .../GrpcClusterControllerCallableFactory.java | 115 - .../stub/GrpcClusterControllerStub.java | 395 - .../GrpcJobControllerCallableFactory.java | 115 - .../v1beta2/stub/GrpcJobControllerStub.java | 372 - ...orkflowTemplateServiceCallableFactory.java | 115 - .../stub/GrpcWorkflowTemplateServiceStub.java | 434 -- .../v1beta2/stub/JobControllerStub.java | 93 - .../stub/JobControllerStubSettings.java | 550 -- .../stub/WorkflowTemplateServiceStub.java | 109 - .../WorkflowTemplateServiceStubSettings.java | 661 -- .../AutoscalingPolicyServiceClientTest.java | 574 -- .../v1beta2/ClusterControllerClientTest.java | 457 -- .../v1beta2/JobControllerClientTest.java | 520 -- .../v1beta2/MockAutoscalingPolicyService.java | 59 - .../MockAutoscalingPolicyServiceImpl.java | 167 - .../v1beta2/MockClusterController.java | 59 - .../v1beta2/MockClusterControllerImpl.java | 186 - .../dataproc/v1beta2/MockJobController.java | 59 - .../v1beta2/MockJobControllerImpl.java | 203 - .../v1beta2/MockWorkflowTemplateService.java | 59 - .../MockWorkflowTemplateServiceImpl.java | 211 - .../WorkflowTemplateServiceClientTest.java | 941 --- .../dataproc/v1beta2/it/ITSystemTest.java | 139 - grpc-google-cloud-dataproc-v1beta2/pom.xml | 69 - .../v1beta2/AutoscalingPolicyServiceGrpc.java | 899 --- .../v1beta2/ClusterControllerGrpc.java | 985 --- .../dataproc/v1beta2/JobControllerGrpc.java | 1038 --- .../v1beta2/WorkflowTemplateServiceGrpc.java | 1278 --- pom.xml | 12 - .../clirr-ignored-differences.xml | 19 - proto-google-cloud-dataproc-v1beta2/pom.xml | 42 - .../dataproc/v1beta2/AcceleratorConfig.java | 814 -- .../v1beta2/AcceleratorConfigOrBuilder.java | 87 - .../dataproc/v1beta2/AutoscalingConfig.java | 671 -- .../v1beta2/AutoscalingConfigOrBuilder.java | 60 - .../v1beta2/AutoscalingPoliciesProto.java | 294 - .../dataproc/v1beta2/AutoscalingPolicy.java | 1839 ----- .../v1beta2/AutoscalingPolicyName.java | 364 - .../v1beta2/AutoscalingPolicyOrBuilder.java | 196 - .../v1beta2/BasicAutoscalingAlgorithm.java | 1087 --- .../BasicAutoscalingAlgorithmOrBuilder.java | 110 - .../v1beta2/BasicYarnAutoscalingConfig.java | 1300 ---- .../BasicYarnAutoscalingConfigOrBuilder.java | 157 - .../dataproc/v1beta2/CancelJobRequest.java | 1001 --- .../v1beta2/CancelJobRequestOrBuilder.java | 102 - .../cloud/dataproc/v1beta2/Cluster.java | 2887 ------- .../cloud/dataproc/v1beta2/ClusterConfig.java | 5181 ------------- .../v1beta2/ClusterConfigOrBuilder.java | 698 -- .../dataproc/v1beta2/ClusterMetrics.java | 1082 --- .../v1beta2/ClusterMetricsOrBuilder.java | 133 - .../dataproc/v1beta2/ClusterOperation.java | 905 --- .../v1beta2/ClusterOperationMetadata.java | 2589 ------- .../ClusterOperationMetadataOrBuilder.java | 323 - .../v1beta2/ClusterOperationOrBuilder.java | 88 - .../v1beta2/ClusterOperationStatus.java | 1429 ---- .../ClusterOperationStatusOrBuilder.java | 135 - .../dataproc/v1beta2/ClusterOrBuilder.java | 382 - .../dataproc/v1beta2/ClusterSelector.java | 1002 --- .../v1beta2/ClusterSelectorOrBuilder.java | 115 - .../cloud/dataproc/v1beta2/ClusterStatus.java | 1748 ----- .../v1beta2/ClusterStatusOrBuilder.java | 154 - .../cloud/dataproc/v1beta2/ClustersProto.java | 787 -- .../cloud/dataproc/v1beta2/Component.java | 374 - .../CreateAutoscalingPolicyRequest.java | 1011 --- ...eateAutoscalingPolicyRequestOrBuilder.java | 109 - .../v1beta2/CreateClusterRequest.java | 1366 ---- .../CreateClusterRequestOrBuilder.java | 161 - .../CreateWorkflowTemplateRequest.java | 1010 --- ...reateWorkflowTemplateRequestOrBuilder.java | 109 - .../DeleteAutoscalingPolicyRequest.java | 710 -- ...leteAutoscalingPolicyRequestOrBuilder.java | 68 - .../v1beta2/DeleteClusterRequest.java | 1430 ---- .../DeleteClusterRequestOrBuilder.java | 172 - .../dataproc/v1beta2/DeleteJobRequest.java | 1001 --- .../v1beta2/DeleteJobRequestOrBuilder.java | 102 - .../DeleteWorkflowTemplateRequest.java | 807 -- ...eleteWorkflowTemplateRequestOrBuilder.java | 83 - .../v1beta2/DiagnoseClusterRequest.java | 1002 --- .../DiagnoseClusterRequestOrBuilder.java | 102 - .../v1beta2/DiagnoseClusterResults.java | 651 -- .../DiagnoseClusterResultsOrBuilder.java | 54 - .../cloud/dataproc/v1beta2/DiskConfig.java | 848 -- .../dataproc/v1beta2/DiskConfigOrBuilder.java | 85 - .../dataproc/v1beta2/EncryptionConfig.java | 643 -- .../v1beta2/EncryptionConfigOrBuilder.java | 52 - .../dataproc/v1beta2/EndpointConfig.java | 900 --- .../v1beta2/EndpointConfigOrBuilder.java | 103 - .../dataproc/v1beta2/GceClusterConfig.java | 2870 ------- .../v1beta2/GceClusterConfigOrBuilder.java | 460 -- .../v1beta2/GetAutoscalingPolicyRequest.java | 704 -- .../GetAutoscalingPolicyRequestOrBuilder.java | 68 - .../dataproc/v1beta2/GetClusterRequest.java | 1001 --- .../v1beta2/GetClusterRequestOrBuilder.java | 102 - .../cloud/dataproc/v1beta2/GetJobRequest.java | 1000 --- .../v1beta2/GetJobRequestOrBuilder.java | 102 - .../v1beta2/GetWorkflowTemplateRequest.java | 801 -- .../GetWorkflowTemplateRequestOrBuilder.java | 83 - .../dataproc/v1beta2/GkeClusterConfig.java | 1708 ---- .../v1beta2/GkeClusterConfigOrBuilder.java | 68 - .../cloud/dataproc/v1beta2/HadoopJob.java | 2939 ------- .../dataproc/v1beta2/HadoopJobOrBuilder.java | 467 -- .../cloud/dataproc/v1beta2/HiveJob.java | 2182 ------ .../dataproc/v1beta2/HiveJobOrBuilder.java | 311 - .../InstanceGroupAutoscalingPolicyConfig.java | 827 -- ...GroupAutoscalingPolicyConfigOrBuilder.java | 85 - .../dataproc/v1beta2/InstanceGroupConfig.java | 3212 -------- .../v1beta2/InstanceGroupConfigOrBuilder.java | 419 - ...tantiateInlineWorkflowTemplateRequest.java | 1429 ---- ...nlineWorkflowTemplateRequestOrBuilder.java | 171 - .../InstantiateWorkflowTemplateRequest.java | 1566 ---- ...tiateWorkflowTemplateRequestOrBuilder.java | 208 - .../google/cloud/dataproc/v1beta2/Job.java | 6842 ----------------- .../cloud/dataproc/v1beta2/JobMetadata.java | 1394 ---- .../v1beta2/JobMetadataOrBuilder.java | 154 - .../cloud/dataproc/v1beta2/JobOrBuilder.java | 886 --- .../cloud/dataproc/v1beta2/JobPlacement.java | 820 -- .../v1beta2/JobPlacementOrBuilder.java | 77 - .../cloud/dataproc/v1beta2/JobReference.java | 841 -- .../v1beta2/JobReferenceOrBuilder.java | 83 - .../cloud/dataproc/v1beta2/JobScheduling.java | 565 -- .../v1beta2/JobSchedulingOrBuilder.java | 43 - .../cloud/dataproc/v1beta2/JobStatus.java | 1794 ----- .../dataproc/v1beta2/JobStatusOrBuilder.java | 153 - .../cloud/dataproc/v1beta2/JobsProto.java | 825 -- .../dataproc/v1beta2/KerberosConfig.java | 3142 -------- .../v1beta2/KerberosConfigOrBuilder.java | 423 - .../dataproc/v1beta2/LifecycleConfig.java | 1913 ----- .../v1beta2/LifecycleConfigOrBuilder.java | 221 - .../ListAutoscalingPoliciesRequest.java | 988 --- ...stAutoscalingPoliciesRequestOrBuilder.java | 109 - .../ListAutoscalingPoliciesResponse.java | 1203 --- ...tAutoscalingPoliciesResponseOrBuilder.java | 114 - .../dataproc/v1beta2/ListClustersRequest.java | 1369 ---- .../v1beta2/ListClustersRequestOrBuilder.java | 168 - .../v1beta2/ListClustersResponse.java | 1189 --- .../ListClustersResponseOrBuilder.java | 116 - .../dataproc/v1beta2/ListJobsRequest.java | 1875 ----- .../v1beta2/ListJobsRequestOrBuilder.java | 220 - .../dataproc/v1beta2/ListJobsResponse.java | 1187 --- .../v1beta2/ListJobsResponseOrBuilder.java | 115 - .../v1beta2/ListWorkflowTemplatesRequest.java | 982 --- ...ListWorkflowTemplatesRequestOrBuilder.java | 108 - .../ListWorkflowTemplatesResponse.java | 1207 --- ...istWorkflowTemplatesResponseOrBuilder.java | 116 - .../cloud/dataproc/v1beta2/LocationName.java | 192 - .../cloud/dataproc/v1beta2/LoggingConfig.java | 1360 ---- .../v1beta2/LoggingConfigOrBuilder.java | 156 - .../dataproc/v1beta2/ManagedCluster.java | 1331 ---- .../v1beta2/ManagedClusterOrBuilder.java | 177 - .../dataproc/v1beta2/ManagedGroupConfig.java | 830 -- .../v1beta2/ManagedGroupConfigOrBuilder.java | 79 - .../v1beta2/NodeInitializationAction.java | 999 --- .../NodeInitializationActionOrBuilder.java | 106 - .../dataproc/v1beta2/OperationsProto.java | 121 - .../cloud/dataproc/v1beta2/OrderedJob.java | 4395 ----------- .../dataproc/v1beta2/OrderedJobOrBuilder.java | 580 -- .../dataproc/v1beta2/ParameterValidation.java | 1152 --- .../v1beta2/ParameterValidationOrBuilder.java | 98 - .../google/cloud/dataproc/v1beta2/PigJob.java | 2470 ------ .../dataproc/v1beta2/PigJobOrBuilder.java | 348 - .../cloud/dataproc/v1beta2/PrestoJob.java | 2304 ------ .../dataproc/v1beta2/PrestoJobOrBuilder.java | 302 - .../cloud/dataproc/v1beta2/PySparkJob.java | 2794 ------- .../dataproc/v1beta2/PySparkJobOrBuilder.java | 450 -- .../cloud/dataproc/v1beta2/QueryList.java | 891 --- .../dataproc/v1beta2/QueryListOrBuilder.java | 124 - .../dataproc/v1beta2/RegexValidation.java | 763 -- .../v1beta2/RegexValidationOrBuilder.java | 84 - .../cloud/dataproc/v1beta2/RegionName.java | 191 - .../dataproc/v1beta2/ReservationAffinity.java | 1258 --- .../v1beta2/ReservationAffinityOrBuilder.java | 130 - .../dataproc/v1beta2/SecurityConfig.java | 733 -- .../v1beta2/SecurityConfigOrBuilder.java | 60 - .../cloud/dataproc/v1beta2/SharedProto.java | 60 - .../dataproc/v1beta2/SoftwareConfig.java | 1565 ---- .../v1beta2/SoftwareConfigOrBuilder.java | 254 - .../cloud/dataproc/v1beta2/SparkJob.java | 2881 ------- .../dataproc/v1beta2/SparkJobOrBuilder.java | 447 -- .../cloud/dataproc/v1beta2/SparkRJob.java | 2214 ------ .../dataproc/v1beta2/SparkRJobOrBuilder.java | 340 - .../cloud/dataproc/v1beta2/SparkSqlJob.java | 2349 ------ .../v1beta2/SparkSqlJobOrBuilder.java | 324 - .../dataproc/v1beta2/SubmitJobRequest.java | 1340 ---- .../v1beta2/SubmitJobRequestOrBuilder.java | 156 - .../dataproc/v1beta2/TemplateParameter.java | 1894 ----- .../v1beta2/TemplateParameterOrBuilder.java | 315 - .../UpdateAutoscalingPolicyRequest.java | 768 -- ...dateAutoscalingPolicyRequestOrBuilder.java | 66 - .../v1beta2/UpdateClusterRequest.java | 2877 ------- .../UpdateClusterRequestOrBuilder.java | 451 -- .../dataproc/v1beta2/UpdateJobRequest.java | 1628 ---- .../v1beta2/UpdateJobRequestOrBuilder.java | 193 - .../UpdateWorkflowTemplateRequest.java | 779 -- ...pdateWorkflowTemplateRequestOrBuilder.java | 69 - .../dataproc/v1beta2/ValueValidation.java | 737 -- .../v1beta2/ValueValidationOrBuilder.java | 76 - .../cloud/dataproc/v1beta2/WorkflowGraph.java | 995 --- .../v1beta2/WorkflowGraphOrBuilder.java | 87 - .../dataproc/v1beta2/WorkflowMetadata.java | 4269 ---------- .../v1beta2/WorkflowMetadataOrBuilder.java | 554 -- .../cloud/dataproc/v1beta2/WorkflowNode.java | 1682 ---- .../v1beta2/WorkflowNodeOrBuilder.java | 184 - .../dataproc/v1beta2/WorkflowTemplate.java | 3750 --------- .../v1beta2/WorkflowTemplateName.java | 361 - .../v1beta2/WorkflowTemplateOrBuilder.java | 508 -- .../v1beta2/WorkflowTemplatePlacement.java | 1175 --- .../WorkflowTemplatePlacementOrBuilder.java | 104 - .../v1beta2/WorkflowTemplatesProto.java | 651 -- .../dataproc/v1beta2/YarnApplication.java | 1395 ---- .../v1beta2/YarnApplicationOrBuilder.java | 123 - .../v1beta2/autoscaling_policies.proto | 369 - .../cloud/dataproc/v1beta2/clusters.proto | 1082 --- .../google/cloud/dataproc/v1beta2/jobs.proto | 903 --- .../cloud/dataproc/v1beta2/operations.proto | 82 - .../cloud/dataproc/v1beta2/shared.proto | 63 - .../dataproc/v1beta2/workflow_templates.proto | 848 -- versions.txt | 2 - 241 files changed, 26 insertions(+), 178924 deletions(-) create mode 100644 google-cloud-dataproc/clirr-ignored-differences.xml delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/it/ITSystemTest.java delete mode 100644 grpc-google-cloud-dataproc-v1beta2/pom.xml delete mode 100644 grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-dataproc-v1beta2/pom.xml delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicy.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Cluster.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatus.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelector.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelectorOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatus.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResults.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResultsOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacement.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacementOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobScheduling.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobSchedulingOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatus.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponse.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponse.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponse.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedCluster.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedClusterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationAction.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationActionOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OperationsProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidation.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryList.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryListOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidation.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidation.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraph.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraphOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNode.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNodeOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacementOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplication.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplicationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto delete mode 100644 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto diff --git a/README.md b/README.md index 931838ec..a7211127 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.1.3' +implementation 'com.google.cloud:google-cloud-dataproc:2.1.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.4" ``` ## Authentication diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index deecb4d6..4de43d8d 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -59,16 +59,6 @@ grpc-google-cloud-dataproc-v1 2.1.5-SNAPSHOT - - com.google.api.grpc - grpc-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - com.google.api.grpc proto-google-cloud-dataproc-v1 diff --git a/google-cloud-dataproc/clirr-ignored-differences.xml b/google-cloud-dataproc/clirr-ignored-differences.xml new file mode 100644 index 00000000..e7ed09a8 --- /dev/null +++ b/google-cloud-dataproc/clirr-ignored-differences.xml @@ -0,0 +1,12 @@ + + + + + 8001 + com/google/cloud/dataproc/v1beta2/* + + + 8001 + com/google/cloud/dataproc/v1beta2/stub/* + + \ No newline at end of file diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 00058c30..01650e7f 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -42,10 +42,6 @@ proto-google-common-protos - - com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - com.google.api.grpc proto-google-cloud-dataproc-v1 @@ -84,11 +80,6 @@ grpc-google-cloud-dataproc-v1 test - - com.google.api.grpc - grpc-google-cloud-dataproc-v1beta2 - test - com.google.api diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java index 22099087..d32c58ce 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java @@ -250,7 +250,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java index 3784a683..48194eb4 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java @@ -295,7 +295,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index 89eb6870..cf723d6c 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -241,7 +241,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java index 05a433b8..cc3a5f7e 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java @@ -283,7 +283,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java deleted file mode 100644 index 60d39599..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java +++ /dev/null @@ -1,1018 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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.dataproc.v1beta2.stub.AutoscalingPolicyServiceStub; -import com.google.cloud.dataproc.v1beta2.stub.AutoscalingPolicyServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The API interface for managing autoscaling policies in the Cloud Dataproc - * API. - * - *

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 (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
- *     AutoscalingPolicyServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response =
- *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * }
- * - *

Note: close() needs to be called on the AutoscalingPolicyServiceClient 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 - * AutoscalingPolicyServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

{@code
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
- *     AutoscalingPolicyServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
- *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
- *     AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
- *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
- * }
- * - *

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

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy( - LocationName parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicy(policy) - .build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy( - RegionName parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicy(policy) - .build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name has the - * following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy(String parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder().setParent(parent).setPolicy(policy).build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   CreateAutoscalingPolicyRequest request =
-   *       CreateAutoscalingPolicyRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRequest request) { - return createAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   CreateAutoscalingPolicyRequest request =
-   *       CreateAutoscalingPolicyRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createAutoscalingPolicyCallable() { - return stub.createAutoscalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) autoscaling policy. - * - *

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
-   * }
-   * }
- * - * @param policy Required. The updated autoscaling policy. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) { - UpdateAutoscalingPolicyRequest request = - UpdateAutoscalingPolicyRequest.newBuilder().setPolicy(policy).build(); - return updateAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) autoscaling policy. - * - *

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   UpdateAutoscalingPolicyRequest request =
-   *       UpdateAutoscalingPolicyRequest.newBuilder()
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request) { - return updateAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) autoscaling policy. - * - *

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   UpdateAutoscalingPolicyRequest request =
-   *       UpdateAutoscalingPolicyRequest.newBuilder()
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateAutoscalingPolicyCallable() { - return stub.updateAutoscalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy getAutoscalingPolicy(String name) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder().setName(name).build(); - return getAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   GetAutoscalingPolicyRequest request =
-   *       GetAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest request) { - return getAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   GetAutoscalingPolicyRequest request =
-   *       GetAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getAutoscalingPolicyCallable() { - return stub.getAutoscalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder().setParent(parent).build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   ListAutoscalingPoliciesRequest request =
-   *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(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 ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( - ListAutoscalingPoliciesRequest request) { - return listAutoscalingPoliciesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   ListAutoscalingPoliciesRequest request =
-   *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (AutoscalingPolicy element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return stub.listAutoscalingPoliciesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   ListAutoscalingPoliciesRequest request =
-   *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAutoscalingPoliciesResponse response =
-   *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
-   *     for (AutoscalingPolicy element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAutoscalingPoliciesCallable() { - return stub.listAutoscalingPoliciesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(String name) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder().setName(name).build(); - deleteAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   DeleteAutoscalingPolicyRequest request =
-   *       DeleteAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) { - deleteAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   DeleteAutoscalingPolicyRequest request =
-   *       DeleteAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteAutoscalingPolicyCallable() { - return stub.deleteAutoscalingPolicyCallable(); - } - - @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 ListAutoscalingPoliciesPagedResponse - extends AbstractPagedListResponse< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage, - ListAutoscalingPoliciesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAutoscalingPoliciesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAutoscalingPoliciesPagedResponse(ListAutoscalingPoliciesPage page) { - super(page, ListAutoscalingPoliciesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAutoscalingPoliciesPage - extends AbstractPage< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage> { - - private ListAutoscalingPoliciesPage( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ListAutoscalingPoliciesResponse response) { - super(context, response); - } - - private static ListAutoscalingPoliciesPage createEmptyPage() { - return new ListAutoscalingPoliciesPage(null, null); - } - - @Override - protected ListAutoscalingPoliciesPage createPage( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ListAutoscalingPoliciesResponse response) { - return new ListAutoscalingPoliciesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAutoscalingPoliciesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage, - ListAutoscalingPoliciesFixedSizeCollection> { - - private ListAutoscalingPoliciesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAutoscalingPoliciesFixedSizeCollection createEmptyCollection() { - return new ListAutoscalingPoliciesFixedSizeCollection(null, 0); - } - - @Override - protected ListAutoscalingPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutoscalingPoliciesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java deleted file mode 100644 index 4a416299..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.dataproc.v1beta2.stub.AutoscalingPolicyServiceStubSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}. - * - *

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

    - *
  • The default service address (dataproc.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 createAutoscalingPolicy to 30 seconds: - * - *

{@code
- * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
- *     AutoscalingPolicyServiceSettings.newBuilder();
- * autoscalingPolicyServiceSettingsBuilder
- *     .createAutoscalingPolicySettings()
- *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder
- *             .createAutoscalingPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
- *     autoscalingPolicyServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ - public UnaryCallSettings - createAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .createAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings - updateAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .updateAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings - getAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .getAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .listAutoscalingPoliciesSettings(); - } - - /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings - deleteAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .deleteAutoscalingPolicySettings(); - } - - public static final AutoscalingPolicyServiceSettings create( - AutoscalingPolicyServiceStubSettings stub) throws IOException { - return new AutoscalingPolicyServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AutoscalingPolicyServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AutoscalingPolicyServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AutoscalingPolicyServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.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 AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AutoscalingPolicyServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(AutoscalingPolicyServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); - } - - public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { - return ((AutoscalingPolicyServiceStubSettings.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 createAutoscalingPolicy. */ - public UnaryCallSettings.Builder - createAutoscalingPolicySettings() { - return getStubSettingsBuilder().createAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings.Builder - updateAutoscalingPolicySettings() { - return getStubSettingsBuilder().updateAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings.Builder - getAutoscalingPolicySettings() { - return getStubSettingsBuilder().getAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return getStubSettingsBuilder().listAutoscalingPoliciesSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings.Builder - deleteAutoscalingPolicySettings() { - return getStubSettingsBuilder().deleteAutoscalingPolicySettings(); - } - - @Override - public AutoscalingPolicyServiceSettings build() throws IOException { - return new AutoscalingPolicyServiceSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java deleted file mode 100644 index 39f3b627..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ /dev/null @@ -1,1042 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.stub.ClusterControllerStub; -import com.google.cloud.dataproc.v1beta2.stub.ClusterControllerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The ClusterControllerService provides methods to manage clusters of Compute - * Engine instances. - * - *

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 (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   String clusterName = "clusterName-1141738587";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * }
- * - *

Note: close() needs to be called on the ClusterControllerClient 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 ClusterControllerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * ClusterControllerSettings clusterControllerSettings =
- *     ClusterControllerSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ClusterControllerClient clusterControllerClient =
- *     ClusterControllerClient.create(clusterControllerSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * ClusterControllerSettings clusterControllerSettings =
- *     ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ClusterControllerClient clusterControllerClient =
- *     ClusterControllerClient.create(clusterControllerSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class ClusterControllerClient implements BackgroundResource { - private final ClusterControllerSettings settings; - private final ClusterControllerStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of ClusterControllerClient with default settings. */ - public static final ClusterControllerClient create() throws IOException { - return create(ClusterControllerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ClusterControllerClient, 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 ClusterControllerClient create(ClusterControllerSettings settings) - throws IOException { - return new ClusterControllerClient(settings); - } - - /** - * Constructs an instance of ClusterControllerClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(ClusterControllerSettings). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final ClusterControllerClient create(ClusterControllerStub stub) { - return new ClusterControllerClient(stub); - } - - /** - * Constructs an instance of ClusterControllerClient, 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 ClusterControllerClient(ClusterControllerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ClusterControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected ClusterControllerClient(ClusterControllerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final ClusterControllerSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ClusterControllerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Cluster response =
-   *       clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param cluster Required. The cluster to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createClusterAsync( - String projectId, String region, Cluster cluster) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setCluster(cluster) - .build(); - return createClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(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 createClusterAsync( - CreateClusterRequest request) { - return createClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.createClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createClusterOperationCallable() { - return stub.createClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.createClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createClusterCallable() { - return stub.createClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Cluster response =
-   *       clusterControllerClient
-   *           .updateClusterAsync(projectId, region, clusterName, cluster, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @param cluster Required. The changes to the cluster. - * @param updateMask Required. Specifies the path, relative to `Cluster`, of the field to update. - * For example, to change the number of workers in a cluster to 5, the `update_mask` parameter - * would be specified as `config.worker_config.num_instances`, and the `PATCH` request body - * would specify the new value, as follows: - *

{ "config":{ "workerConfig":{ "numInstances":"5" } } } - *

Similarly, to change the number of preemptible workers in a cluster to 5, the - * `update_mask` parameter would be `config.secondary_worker_config.num_instances`, and the - * `PATCH` request body would be set as follows: - *

{ "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } - * <strong>Note:</strong> currently only the following fields can be updated: - *

<table> <tr> - * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td> - * </tr> <tr> <td>labels</td><td>Updates labels</td> - * </tr> <tr> - * <td>config.worker_config.num_instances</td><td>Resize primary worker - * group</td> </tr> <tr> - * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary - * worker group</td> </tr> <tr> - * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL - * duration</td> </tr> <tr> - * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL - * deletion timestamp</td> </tr> <tr> - * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL - * duration</td> </tr> <tr> - * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or - * change autoscaling policies</td> </tr> </table> - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateClusterAsync( - String projectId, String region, String clusterName, Cluster cluster, FieldMask updateMask) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .setCluster(cluster) - .setUpdateMask(updateMask) - .build(); - return updateClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(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 updateClusterAsync( - UpdateClusterRequest request) { - return updateClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.updateClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateClusterOperationCallable() { - return stub.updateClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.updateClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateClusterCallable() { - return stub.updateClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteClusterAsync( - String projectId, String region, String clusterName) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return deleteClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   clusterControllerClient.deleteClusterAsync(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 deleteClusterAsync( - DeleteClusterRequest request) { - return deleteClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteClusterOperationCallable() { - return stub.deleteClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.deleteClusterCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Cluster getCluster(String projectId, String region, String clusterName) { - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return getCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   Cluster response = clusterControllerClient.getCluster(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 Cluster getCluster(GetClusterRequest request) { - return getClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersPagedResponse listClusters(String projectId, String region) { - ListClustersRequest request = - ListClustersRequest.newBuilder().setProjectId(projectId).setRegion(region).build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String filter = "filter-1274492040";
-   *   for (Cluster element :
-   *       clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param filter Optional. A filter constraining the clusters to list. Filters are case-sensitive - * and have the following syntax: - *

field = value [AND [field = value]] ... - *

where **field** is one of `status.state`, `clusterName`, or - * `labels.[KEY]`, and `[KEY]` is a label key. **value** can be `*` to - * match all values. `status.state` can be one of the following: `ACTIVE`, `INACTIVE`, - * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE` contains the - * `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE` contains the `DELETING` and - * `ERROR` states. `clusterName` is the name of the cluster provided at creation time. Only - * the logical `AND` operator is supported; space-separated items are treated as having an - * implicit `AND` operator. - *

Example filter: - *

status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND - * labels.starred = * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersPagedResponse listClusters( - String projectId, String region, String filter) { - ListClustersRequest request = - ListClustersRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setFilter(filter) - .build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Cluster element : clusterControllerClient.listClusters(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 ListClustersPagedResponse listClusters(ListClustersRequest request) { - return listClustersPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.listClustersPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Cluster element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listClustersPagedCallable() { - return stub.listClustersPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListClustersResponse response =
-   *         clusterControllerClient.listClustersCallable().call(request);
-   *     for (Cluster element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listClustersCallable() { - return stub.listClustersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture diagnoseClusterAsync( - String projectId, String region, String clusterName) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return diagnoseClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   clusterControllerClient.diagnoseClusterAsync(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 diagnoseClusterAsync( - DiagnoseClusterRequest request) { - return diagnoseClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - diagnoseClusterOperationCallable() { - return stub.diagnoseClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be ClusterOperationMetadata. - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.diagnoseClusterCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable diagnoseClusterCallable() { - return stub.diagnoseClusterCallable(); - } - - @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 ListClustersPagedResponse - extends AbstractPagedListResponse< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListClustersPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListClustersPagedResponse(ListClustersPage page) { - super(page, ListClustersFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListClustersPage - extends AbstractPage { - - private ListClustersPage( - PageContext context, - ListClustersResponse response) { - super(context, response); - } - - private static ListClustersPage createEmptyPage() { - return new ListClustersPage(null, null); - } - - @Override - protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { - return new ListClustersPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListClustersFixedSizeCollection - extends AbstractFixedSizeCollection< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { - - private ListClustersFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListClustersFixedSizeCollection createEmptyCollection() { - return new ListClustersFixedSizeCollection(null, 0); - } - - @Override - protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListClustersFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java deleted file mode 100644 index da2fdc1f..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -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.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1beta2.stub.ClusterControllerStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ClusterControllerClient}. - * - *

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

    - *
  • The default service address (dataproc.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 getCluster to 30 seconds: - * - *

{@code
- * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
- *     ClusterControllerSettings.newBuilder();
- * clusterControllerSettingsBuilder
- *     .getClusterSettings()
- *     .setRetrySettings(
- *         clusterControllerSettingsBuilder
- *             .getClusterSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ClusterControllerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createCluster. */ - public UnaryCallSettings createClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).createClusterSettings(); - } - - /** Returns the object with the settings used for calls to createCluster. */ - public OperationCallSettings - createClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).createClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public UnaryCallSettings updateClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).updateClusterSettings(); - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public OperationCallSettings - updateClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).updateClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public UnaryCallSettings deleteClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterSettings(); - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public OperationCallSettings - deleteClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).getClusterSettings(); - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).listClustersSettings(); - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterSettings(); - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public OperationCallSettings - diagnoseClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterOperationSettings(); - } - - public static final ClusterControllerSettings create(ClusterControllerStubSettings stub) - throws IOException { - return new ClusterControllerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ClusterControllerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ClusterControllerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ClusterControllerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ClusterControllerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ClusterControllerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ClusterControllerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ClusterControllerStubSettings.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 ClusterControllerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ClusterControllerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ClusterControllerStubSettings.newBuilder(clientContext)); - } - - protected Builder(ClusterControllerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ClusterControllerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ClusterControllerStubSettings.newBuilder()); - } - - public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { - return ((ClusterControllerStubSettings.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 createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return getStubSettingsBuilder().createClusterSettings(); - } - - /** Returns the builder for the settings used for calls to createCluster. */ - public OperationCallSettings.Builder - createClusterOperationSettings() { - return getStubSettingsBuilder().createClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public UnaryCallSettings.Builder updateClusterSettings() { - return getStubSettingsBuilder().updateClusterSettings(); - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public OperationCallSettings.Builder - updateClusterOperationSettings() { - return getStubSettingsBuilder().updateClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public UnaryCallSettings.Builder deleteClusterSettings() { - return getStubSettingsBuilder().deleteClusterSettings(); - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public OperationCallSettings.Builder - deleteClusterOperationSettings() { - return getStubSettingsBuilder().deleteClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getStubSettingsBuilder().getClusterSettings(); - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return getStubSettingsBuilder().listClustersSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return getStubSettingsBuilder().diagnoseClusterSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public OperationCallSettings.Builder - diagnoseClusterOperationSettings() { - return getStubSettingsBuilder().diagnoseClusterOperationSettings(); - } - - @Override - public ClusterControllerSettings build() throws IOException { - return new ClusterControllerSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java deleted file mode 100644 index a29b868e..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java +++ /dev/null @@ -1,901 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.stub.JobControllerStub; -import com.google.cloud.dataproc.v1beta2.stub.JobControllerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The JobController provides methods to manage jobs. - * - *

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 (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * }
- * - *

Note: close() needs to be called on the JobControllerClient 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 JobControllerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * JobControllerSettings jobControllerSettings =
- *     JobControllerSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * JobControllerSettings jobControllerSettings =
- *     JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class JobControllerClient implements BackgroundResource { - private final JobControllerSettings settings; - private final JobControllerStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of JobControllerClient with default settings. */ - public static final JobControllerClient create() throws IOException { - return create(JobControllerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of JobControllerClient, 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 JobControllerClient create(JobControllerSettings settings) - throws IOException { - return new JobControllerClient(settings); - } - - /** - * Constructs an instance of JobControllerClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(JobControllerSettings). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final JobControllerClient create(JobControllerStub stub) { - return new JobControllerClient(stub); - } - - /** - * Constructs an instance of JobControllerClient, 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 JobControllerClient(JobControllerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((JobControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected JobControllerClient(JobControllerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final JobControllerSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public JobControllerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJob(projectId, region, job);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param job Required. The job resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job submitJob(String projectId, String region, Job job) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder().setProjectId(projectId).setRegion(region).setJob(job).build(); - return submitJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Job response = jobControllerClient.submitJob(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 Job submitJob(SubmitJobRequest request) { - return submitJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable submitJobCallable() { - return stub.submitJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param job Required. The job resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture submitJobAsOperationAsync( - String projectId, String region, Job job) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder().setProjectId(projectId).setRegion(region).setJob(job).build(); - return submitJobAsOperationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 submitJobAsOperationAsync( - SubmitJobRequest request) { - return submitJobAsOperationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - submitJobAsOperationOperationCallable() { - return stub.submitJobAsOperationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       jobControllerClient.submitJobAsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable submitJobAsOperationCallable() { - return stub.submitJobAsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job getJob(String projectId, String region, String jobId) { - GetJobRequest request = - GetJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - return getJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   GetJobRequest request =
-   *       GetJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   Job response = jobControllerClient.getJob(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 Job getJob(GetJobRequest request) { - return getJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   GetJobRequest request =
-   *       GetJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.getJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getJobCallable() { - return stub.getJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobsPagedResponse listJobs(String projectId, String region) { - ListJobsRequest request = - ListJobsRequest.newBuilder().setProjectId(projectId).setRegion(region).build(); - return listJobs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String filter = "filter-1274492040";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and - * have the following syntax: - *

[field = value] AND [field [= value]] ... - *

where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a - * label key. **value** can be `*` to match all values. `status.state` can - * be either `ACTIVE` or `NON_ACTIVE`. Only the logical `AND` operator is supported; - * space-separated items are treated as having an implicit `AND` operator. - *

Example filter: - *

status.state = ACTIVE AND labels.env = staging AND labels.starred = * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobsPagedResponse listJobs(String projectId, String region, String filter) { - ListJobsRequest request = - ListJobsRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setFilter(filter) - .build(); - return listJobs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Job element : jobControllerClient.listJobs(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 ListJobsPagedResponse listJobs(ListJobsRequest request) { - return listJobsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Job element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listJobsPagedCallable() { - return stub.listJobsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
-   *     for (Job element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listJobsCallable() { - return stub.listJobsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a job in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   UpdateJobRequest request =
-   *       UpdateJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .setJob(Job.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Job response = jobControllerClient.updateJob(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 Job updateJob(UpdateJobRequest request) { - return updateJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a job in a project. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   UpdateJobRequest request =
-   *       UpdateJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .setJob(Job.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateJobCallable() { - return stub.updateJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * regions/{region}/jobs.list or regions/{region}/jobs.get. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job cancelJob(String projectId, String region, String jobId) { - CancelJobRequest request = - CancelJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - return cancelJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * regions/{region}/jobs.list or regions/{region}/jobs.get. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   CancelJobRequest request =
-   *       CancelJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   Job response = jobControllerClient.cancelJob(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 Job cancelJob(CancelJobRequest request) { - return cancelJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * regions/{region}/jobs.list or regions/{region}/jobs.get. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   CancelJobRequest request =
-   *       CancelJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable cancelJobCallable() { - return stub.cancelJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   jobControllerClient.deleteJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteJob(String projectId, String region, String jobId) { - DeleteJobRequest request = - DeleteJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - deleteJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   DeleteJobRequest request =
-   *       DeleteJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   jobControllerClient.deleteJob(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteJob(DeleteJobRequest request) { - deleteJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   DeleteJobRequest request =
-   *       DeleteJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteJobCallable() { - return stub.deleteJobCallable(); - } - - @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 ListJobsPagedResponse - extends AbstractPagedListResponse< - ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListJobsPagedResponse(ListJobsPage page) { - super(page, ListJobsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListJobsPage - extends AbstractPage { - - private ListJobsPage( - PageContext context, ListJobsResponse response) { - super(context, response); - } - - private static ListJobsPage createEmptyPage() { - return new ListJobsPage(null, null); - } - - @Override - protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { - return new ListJobsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListJobsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - - private ListJobsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListJobsFixedSizeCollection createEmptyCollection() { - return new ListJobsFixedSizeCollection(null, 0); - } - - @Override - protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListJobsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java deleted file mode 100644 index bdccc85c..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; - -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.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1beta2.stub.JobControllerStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link JobControllerClient}. - * - *

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

    - *
  • The default service address (dataproc.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 submitJob to 30 seconds: - * - *

{@code
- * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
- * jobControllerSettingsBuilder
- *     .submitJobSettings()
- *     .setRetrySettings(
- *         jobControllerSettingsBuilder
- *             .submitJobSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class JobControllerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to submitJob. */ - public UnaryCallSettings submitJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobSettings(); - } - - /** Returns the object with the settings used for calls to submitJobAs. */ - public UnaryCallSettings submitJobAsOperationSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationSettings(); - } - - /** Returns the object with the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings - submitJobAsOperationOperationSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationOperationSettings(); - } - - /** Returns the object with the settings used for calls to getJob. */ - public UnaryCallSettings getJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).getJobSettings(); - } - - /** Returns the object with the settings used for calls to listJobs. */ - public PagedCallSettings - listJobsSettings() { - return ((JobControllerStubSettings) getStubSettings()).listJobsSettings(); - } - - /** Returns the object with the settings used for calls to updateJob. */ - public UnaryCallSettings updateJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).updateJobSettings(); - } - - /** Returns the object with the settings used for calls to cancelJob. */ - public UnaryCallSettings cancelJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).cancelJobSettings(); - } - - /** Returns the object with the settings used for calls to deleteJob. */ - public UnaryCallSettings deleteJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).deleteJobSettings(); - } - - public static final JobControllerSettings create(JobControllerStubSettings stub) - throws IOException { - return new JobControllerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return JobControllerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return JobControllerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return JobControllerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return JobControllerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return JobControllerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return JobControllerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return JobControllerStubSettings.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 JobControllerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for JobControllerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(JobControllerStubSettings.newBuilder(clientContext)); - } - - protected Builder(JobControllerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(JobControllerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(JobControllerStubSettings.newBuilder()); - } - - public JobControllerStubSettings.Builder getStubSettingsBuilder() { - return ((JobControllerStubSettings.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 submitJob. */ - public UnaryCallSettings.Builder submitJobSettings() { - return getStubSettingsBuilder().submitJobSettings(); - } - - /** Returns the builder for the settings used for calls to submitJobAs. */ - public UnaryCallSettings.Builder submitJobAsOperationSettings() { - return getStubSettingsBuilder().submitJobAsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings.Builder - submitJobAsOperationOperationSettings() { - return getStubSettingsBuilder().submitJobAsOperationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getJob. */ - public UnaryCallSettings.Builder getJobSettings() { - return getStubSettingsBuilder().getJobSettings(); - } - - /** Returns the builder for the settings used for calls to listJobs. */ - public PagedCallSettings.Builder - listJobsSettings() { - return getStubSettingsBuilder().listJobsSettings(); - } - - /** Returns the builder for the settings used for calls to updateJob. */ - public UnaryCallSettings.Builder updateJobSettings() { - return getStubSettingsBuilder().updateJobSettings(); - } - - /** Returns the builder for the settings used for calls to cancelJob. */ - public UnaryCallSettings.Builder cancelJobSettings() { - return getStubSettingsBuilder().cancelJobSettings(); - } - - /** Returns the builder for the settings used for calls to deleteJob. */ - public UnaryCallSettings.Builder deleteJobSettings() { - return getStubSettingsBuilder().deleteJobSettings(); - } - - @Override - public JobControllerSettings build() throws IOException { - return new JobControllerSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java deleted file mode 100644 index ee09725a..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ /dev/null @@ -1,1748 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.stub.WorkflowTemplateServiceStub; -import com.google.cloud.dataproc.v1beta2.stub.WorkflowTemplateServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The API interface for managing Workflow Templates in the Dataproc API. - * - *

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 (WorkflowTemplateServiceClient workflowTemplateServiceClient =
- *     WorkflowTemplateServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response =
- *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * }
- * - *

Note: close() needs to be called on the WorkflowTemplateServiceClient 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 - * WorkflowTemplateServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

{@code
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
- *     WorkflowTemplateServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * WorkflowTemplateServiceClient workflowTemplateServiceClient =
- *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
- *     WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * WorkflowTemplateServiceClient workflowTemplateServiceClient =
- *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceClient implements BackgroundResource { - private final WorkflowTemplateServiceSettings settings; - private final WorkflowTemplateServiceStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of WorkflowTemplateServiceClient with default settings. */ - public static final WorkflowTemplateServiceClient create() throws IOException { - return create(WorkflowTemplateServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, 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 WorkflowTemplateServiceClient create(WorkflowTemplateServiceSettings settings) - throws IOException { - return new WorkflowTemplateServiceClient(settings); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer using create(WorkflowTemplateServiceSettings). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final WorkflowTemplateServiceClient create(WorkflowTemplateServiceStub stub) { - return new WorkflowTemplateServiceClient(stub); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, 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 WorkflowTemplateServiceClient(WorkflowTemplateServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((WorkflowTemplateServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected WorkflowTemplateServiceClient(WorkflowTemplateServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final WorkflowTemplateServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public WorkflowTemplateServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - LocationName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - RegionName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   CreateWorkflowTemplateRequest request =
-   *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { - return createWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   CreateWorkflowTemplateRequest request =
-   *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createWorkflowTemplateCallable() { - return stub.createWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(String name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder().setName(name).build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   GetWorkflowTemplateRequest request =
-   *       GetWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { - return getWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   GetWorkflowTemplateRequest request =
-   *       GetWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getWorkflowTemplateCallable() { - return stub.getWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - String name) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder().setName(name).build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Map parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 100 characters. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name, Map parameters) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .putAllParameters(parameters) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   Map parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 100 characters. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - String name, Map parameters) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name) - .putAllParameters(parameters) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 instantiateWorkflowTemplateAsync( - InstantiateWorkflowTemplateRequest request) { - return instantiateWorkflowTemplateOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateWorkflowTemplateOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return stub.instantiateWorkflowTemplateOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be WorkflowMetadata. - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - instantiateWorkflowTemplateCallable() { - return stub.instantiateWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - LocationName parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - RegionName parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - String parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 instantiateInlineWorkflowTemplateAsync( - InstantiateInlineWorkflowTemplateRequest request) { - return instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateInlineWorkflowTemplateOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return stub.instantiateInlineWorkflowTemplateOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setInstanceId("instanceId902024336")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateInlineWorkflowTemplateCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - return stub.instantiateInlineWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
-   * }
-   * }
- * - * @param template Required. The updated workflow template. - *

The `template.version` field must match the current version. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) { - UpdateWorkflowTemplateRequest request = - UpdateWorkflowTemplateRequest.newBuilder().setTemplate(template).build(); - return updateWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   UpdateWorkflowTemplateRequest request =
-   *       UpdateWorkflowTemplateRequest.newBuilder()
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateRequest request) { - return updateWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   UpdateWorkflowTemplateRequest request =
-   *       UpdateWorkflowTemplateRequest.newBuilder()
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateWorkflowTemplateCallable() { - return stub.updateWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder().setParent(parent).build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(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 ListWorkflowTemplatesPagedResponse listWorkflowTemplates( - ListWorkflowTemplatesRequest request) { - return listWorkflowTemplatesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (WorkflowTemplate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowTemplatesPagedCallable() { - return stub.listWorkflowTemplatesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListWorkflowTemplatesResponse response =
-   *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
-   *     for (WorkflowTemplate element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowTemplatesCallable() { - return stub.listWorkflowTemplatesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(WorkflowTemplateName name) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(String name) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder().setName(name).build(); - deleteWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   DeleteWorkflowTemplateRequest request =
-   *       DeleteWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) { - deleteWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   DeleteWorkflowTemplateRequest request =
-   *       DeleteWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteWorkflowTemplateCallable() { - return stub.deleteWorkflowTemplateCallable(); - } - - @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 ListWorkflowTemplatesPagedResponse - extends AbstractPagedListResponse< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage, - ListWorkflowTemplatesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListWorkflowTemplatesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListWorkflowTemplatesPagedResponse(ListWorkflowTemplatesPage page) { - super(page, ListWorkflowTemplatesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListWorkflowTemplatesPage - extends AbstractPage< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage> { - - private ListWorkflowTemplatesPage( - PageContext - context, - ListWorkflowTemplatesResponse response) { - super(context, response); - } - - private static ListWorkflowTemplatesPage createEmptyPage() { - return new ListWorkflowTemplatesPage(null, null); - } - - @Override - protected ListWorkflowTemplatesPage createPage( - PageContext - context, - ListWorkflowTemplatesResponse response) { - return new ListWorkflowTemplatesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListWorkflowTemplatesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage, - ListWorkflowTemplatesFixedSizeCollection> { - - private ListWorkflowTemplatesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListWorkflowTemplatesFixedSizeCollection createEmptyCollection() { - return new ListWorkflowTemplatesFixedSizeCollection(null, 0); - } - - @Override - protected ListWorkflowTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListWorkflowTemplatesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java deleted file mode 100644 index 1c23be0d..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -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.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1beta2.stub.WorkflowTemplateServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link WorkflowTemplateServiceClient}. - * - *

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

    - *
  • The default service address (dataproc.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 createWorkflowTemplate to 30 seconds: - * - *

{@code
- * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
- *     WorkflowTemplateServiceSettings.newBuilder();
- * workflowTemplateServiceSettingsBuilder
- *     .createWorkflowTemplateSettings()
- *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder
- *             .createWorkflowTemplateSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
- *     workflowTemplateServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .createWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings - instantiateWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings - instantiateWorkflowTemplateOperationSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateWorkflowTemplateOperationSettings(); - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings - instantiateInlineWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateInlineWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings - instantiateInlineWorkflowTemplateOperationSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateInlineWorkflowTemplateOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings - updateWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .updateWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .listWorkflowTemplatesSettings(); - } - - /** Returns the object with the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings deleteWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .deleteWorkflowTemplateSettings(); - } - - public static final WorkflowTemplateServiceSettings create( - WorkflowTemplateServiceStubSettings stub) throws IOException { - return new WorkflowTemplateServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return WorkflowTemplateServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return WorkflowTemplateServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return WorkflowTemplateServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return WorkflowTemplateServiceStubSettings.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 WorkflowTemplateServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for WorkflowTemplateServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(WorkflowTemplateServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(WorkflowTemplateServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(WorkflowTemplateServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); - } - - public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { - return ((WorkflowTemplateServiceStubSettings.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 createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return getStubSettingsBuilder().createWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getStubSettingsBuilder().getWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings() { - return getStubSettingsBuilder().instantiateWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings() { - return getStubSettingsBuilder().instantiateWorkflowTemplateOperationSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings() { - return getStubSettingsBuilder().instantiateInlineWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings() { - return getStubSettingsBuilder().instantiateInlineWorkflowTemplateOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings.Builder - updateWorkflowTemplateSettings() { - return getStubSettingsBuilder().updateWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return getStubSettingsBuilder().listWorkflowTemplatesSettings(); - } - - /** Returns the builder for the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings.Builder - deleteWorkflowTemplateSettings() { - return getStubSettingsBuilder().deleteWorkflowTemplateSettings(); - } - - @Override - public WorkflowTemplateServiceSettings build() throws IOException { - return new WorkflowTemplateServiceSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json deleted file mode 100644 index d4fb2a90..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.dataproc.v1beta2", - "libraryPackage": "com.google.cloud.dataproc.v1beta2", - "services": { - "AutoscalingPolicyService": { - "clients": { - "grpc": { - "libraryClient": "AutoscalingPolicyServiceClient", - "rpcs": { - "CreateAutoscalingPolicy": { - "methods": ["createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicyCallable"] - }, - "DeleteAutoscalingPolicy": { - "methods": ["deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicyCallable"] - }, - "GetAutoscalingPolicy": { - "methods": ["getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicyCallable"] - }, - "ListAutoscalingPolicies": { - "methods": ["listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPoliciesPagedCallable", "listAutoscalingPoliciesCallable"] - }, - "UpdateAutoscalingPolicy": { - "methods": ["updateAutoscalingPolicy", "updateAutoscalingPolicy", "updateAutoscalingPolicyCallable"] - } - } - } - } - }, - "ClusterController": { - "clients": { - "grpc": { - "libraryClient": "ClusterControllerClient", - "rpcs": { - "CreateCluster": { - "methods": ["createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] - }, - "DeleteCluster": { - "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] - }, - "DiagnoseCluster": { - "methods": ["diagnoseClusterAsync", "diagnoseClusterAsync", "diagnoseClusterOperationCallable", "diagnoseClusterCallable"] - }, - "GetCluster": { - "methods": ["getCluster", "getCluster", "getClusterCallable"] - }, - "ListClusters": { - "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] - }, - "UpdateCluster": { - "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] - } - } - } - } - }, - "JobController": { - "clients": { - "grpc": { - "libraryClient": "JobControllerClient", - "rpcs": { - "CancelJob": { - "methods": ["cancelJob", "cancelJob", "cancelJobCallable"] - }, - "DeleteJob": { - "methods": ["deleteJob", "deleteJob", "deleteJobCallable"] - }, - "GetJob": { - "methods": ["getJob", "getJob", "getJobCallable"] - }, - "ListJobs": { - "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] - }, - "SubmitJob": { - "methods": ["submitJob", "submitJob", "submitJobCallable"] - }, - "SubmitJobAsOperation": { - "methods": ["submitJobAsOperationAsync", "submitJobAsOperationAsync", "submitJobAsOperationOperationCallable", "submitJobAsOperationCallable"] - }, - "UpdateJob": { - "methods": ["updateJob", "updateJobCallable"] - } - } - } - } - }, - "WorkflowTemplateService": { - "clients": { - "grpc": { - "libraryClient": "WorkflowTemplateServiceClient", - "rpcs": { - "CreateWorkflowTemplate": { - "methods": ["createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplateCallable"] - }, - "DeleteWorkflowTemplate": { - "methods": ["deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplateCallable"] - }, - "GetWorkflowTemplate": { - "methods": ["getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplateCallable"] - }, - "InstantiateInlineWorkflowTemplate": { - "methods": ["instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateOperationCallable", "instantiateInlineWorkflowTemplateCallable"] - }, - "InstantiateWorkflowTemplate": { - "methods": ["instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateOperationCallable", "instantiateWorkflowTemplateCallable"] - }, - "ListWorkflowTemplates": { - "methods": ["listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplatesPagedCallable", "listWorkflowTemplatesCallable"] - }, - "UpdateWorkflowTemplate": { - "methods": ["updateWorkflowTemplate", "updateWorkflowTemplate", "updateWorkflowTemplateCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java deleted file mode 100644 index bfcbb6a1..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= AutoscalingPolicyServiceClient ======================= - * - *

Service Description: The API interface for managing autoscaling policies in the Cloud Dataproc - * API. - * - *

Sample for AutoscalingPolicyServiceClient: - * - *

{@code
- * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
- *     AutoscalingPolicyServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
- *   AutoscalingPolicy response =
- *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
- * }
- * }
- * - *

======================= ClusterControllerClient ======================= - * - *

Service Description: The ClusterControllerService provides methods to manage clusters of - * Compute Engine instances. - * - *

Sample for ClusterControllerClient: - * - *

{@code
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   String clusterName = "clusterName-1141738587";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * }
- * - *

======================= JobControllerClient ======================= - * - *

Service Description: The JobController provides methods to manage jobs. - * - *

Sample for JobControllerClient: - * - *

{@code
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * }
- * - *

======================= WorkflowTemplateServiceClient ======================= - * - *

Service Description: The API interface for managing Workflow Templates in the Dataproc API. - * - *

Sample for WorkflowTemplateServiceClient: - * - *

{@code
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
- *     WorkflowTemplateServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response =
- *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.dataproc.v1beta2; - -import javax.annotation.Generated; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java deleted file mode 100644 index c51aa7c7..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy; -import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { - - public UnaryCallable - createAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: createAutoscalingPolicyCallable()"); - } - - public UnaryCallable - updateAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: updateAutoscalingPolicyCallable()"); - } - - public UnaryCallable - getAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getAutoscalingPolicyCallable()"); - } - - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listAutoscalingPoliciesPagedCallable()"); - } - - public UnaryCallable - listAutoscalingPoliciesCallable() { - throw new UnsupportedOperationException("Not implemented: listAutoscalingPoliciesCallable()"); - } - - public UnaryCallable deleteAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAutoscalingPolicyCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java deleted file mode 100644 index d0ddcff7..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java +++ /dev/null @@ -1,498 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.dataproc.v1beta2.AutoscalingPolicy; -import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -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 AutoscalingPolicyServiceStub}. - * - *

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

    - *
  • The default service address (dataproc.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 createAutoscalingPolicy to 30 seconds: - * - *

{@code
- * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
- *     AutoscalingPolicyServiceStubSettings.newBuilder();
- * autoscalingPolicyServiceSettingsBuilder
- *     .createAutoscalingPolicySettings()
- *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder
- *             .createAutoscalingPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings =
- *     autoscalingPolicyServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings - createAutoscalingPolicySettings; - private final UnaryCallSettings - updateAutoscalingPolicySettings; - private final UnaryCallSettings - getAutoscalingPolicySettings; - private final PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings; - private final UnaryCallSettings - deleteAutoscalingPolicySettings; - - private static final PagedListDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAutoscalingPoliciesRequest injectToken( - ListAutoscalingPoliciesRequest payload, String token) { - return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAutoscalingPoliciesRequest injectPageSize( - ListAutoscalingPoliciesRequest payload, int pageSize) { - return ListAutoscalingPoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAutoscalingPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAutoscalingPoliciesResponse payload) { - return payload.getPoliciesList() == null - ? ImmutableList.of() - : payload.getPoliciesList(); - } - }; - - private static final PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutoscalingPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy> - pageContext = - PageContext.create( - callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); - return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ - public UnaryCallSettings - createAutoscalingPolicySettings() { - return createAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings - updateAutoscalingPolicySettings() { - return updateAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings - getAutoscalingPolicySettings() { - return getAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return listAutoscalingPoliciesSettings; - } - - /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings - deleteAutoscalingPolicySettings() { - return deleteAutoscalingPolicySettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public AutoscalingPolicyServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAutoscalingPolicyServiceStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.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); - } - - /** 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(AutoscalingPolicyServiceStubSettings.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 AutoscalingPolicyServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createAutoscalingPolicySettings = settingsBuilder.createAutoscalingPolicySettings().build(); - updateAutoscalingPolicySettings = settingsBuilder.updateAutoscalingPolicySettings().build(); - getAutoscalingPolicySettings = settingsBuilder.getAutoscalingPolicySettings().build(); - listAutoscalingPoliciesSettings = settingsBuilder.listAutoscalingPoliciesSettings().build(); - deleteAutoscalingPolicySettings = settingsBuilder.deleteAutoscalingPolicySettings().build(); - } - - /** Builder for AutoscalingPolicyServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createAutoscalingPolicySettings; - private final UnaryCallSettings.Builder - updateAutoscalingPolicySettings; - private final UnaryCallSettings.Builder - getAutoscalingPolicySettings; - private final PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings; - private final UnaryCallSettings.Builder - deleteAutoscalingPolicySettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAutoscalingPoliciesSettings = - PagedCallSettings.newBuilder(LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT); - deleteAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - initDefaults(this); - } - - protected Builder(AutoscalingPolicyServiceStubSettings settings) { - super(settings); - - createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); - updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); - getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); - listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); - deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - } - - 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 - .createAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .updateAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listAutoscalingPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 createAutoscalingPolicy. */ - public UnaryCallSettings.Builder - createAutoscalingPolicySettings() { - return createAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings.Builder - updateAutoscalingPolicySettings() { - return updateAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings.Builder - getAutoscalingPolicySettings() { - return getAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return listAutoscalingPoliciesSettings; - } - - /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings.Builder - deleteAutoscalingPolicySettings() { - return deleteAutoscalingPolicySettings; - } - - @Override - public AutoscalingPolicyServiceStubSettings build() throws IOException { - return new AutoscalingPolicyServiceStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java deleted file mode 100644 index 8e879b50..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.Cluster; -import com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1beta2.CreateClusterRequest; -import com.google.cloud.dataproc.v1beta2.DeleteClusterRequest; -import com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1beta2.GetClusterRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersResponse; -import com.google.cloud.dataproc.v1beta2.UpdateClusterRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ClusterController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class ClusterControllerStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public OperationCallable - createClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); - } - - public UnaryCallable createClusterCallable() { - throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); - } - - public OperationCallable - updateClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); - } - - public UnaryCallable updateClusterCallable() { - throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); - } - - public OperationCallable - deleteClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); - } - - public UnaryCallable deleteClusterCallable() { - throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); - } - - public UnaryCallable getClusterCallable() { - throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); - } - - public UnaryCallable listClustersPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listClustersPagedCallable()"); - } - - public UnaryCallable listClustersCallable() { - throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); - } - - public OperationCallable - diagnoseClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); - } - - public UnaryCallable diagnoseClusterCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java deleted file mode 100644 index c7e2d7e1..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java +++ /dev/null @@ -1,671 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.Cluster; -import com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1beta2.CreateClusterRequest; -import com.google.cloud.dataproc.v1beta2.DeleteClusterRequest; -import com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1beta2.GetClusterRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersResponse; -import com.google.cloud.dataproc.v1beta2.UpdateClusterRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ClusterControllerStub}. - * - *

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

    - *
  • The default service address (dataproc.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 getCluster to 30 seconds: - * - *

{@code
- * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
- *     ClusterControllerStubSettings.newBuilder();
- * clusterControllerSettingsBuilder
- *     .getClusterSettings()
- *     .setRetrySettings(
- *         clusterControllerSettingsBuilder
- *             .getClusterSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterControllerStubSettings clusterControllerSettings =
- *     clusterControllerSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ClusterControllerStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings createClusterSettings; - private final OperationCallSettings - createClusterOperationSettings; - private final UnaryCallSettings updateClusterSettings; - private final OperationCallSettings - updateClusterOperationSettings; - private final UnaryCallSettings deleteClusterSettings; - private final OperationCallSettings - deleteClusterOperationSettings; - private final UnaryCallSettings getClusterSettings; - private final PagedCallSettings< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private final UnaryCallSettings diagnoseClusterSettings; - private final OperationCallSettings - diagnoseClusterOperationSettings; - - private static final PagedListDescriptor - LIST_CLUSTERS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListClustersRequest injectToken(ListClustersRequest payload, String token) { - return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { - return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListClustersRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListClustersResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListClustersResponse payload) { - return payload.getClustersList() == null - ? ImmutableList.of() - : payload.getClustersList(); - } - }; - - private static final PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - LIST_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); - return ListClustersPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createCluster. */ - public UnaryCallSettings createClusterSettings() { - return createClusterSettings; - } - - /** Returns the object with the settings used for calls to createCluster. */ - public OperationCallSettings - createClusterOperationSettings() { - return createClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public UnaryCallSettings updateClusterSettings() { - return updateClusterSettings; - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public OperationCallSettings - updateClusterOperationSettings() { - return updateClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public UnaryCallSettings deleteClusterSettings() { - return deleteClusterSettings; - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public OperationCallSettings - deleteClusterOperationSettings() { - return deleteClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return getClusterSettings; - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return listClustersSettings; - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return diagnoseClusterSettings; - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public OperationCallSettings - diagnoseClusterOperationSettings() { - return diagnoseClusterOperationSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ClusterControllerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcClusterControllerStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.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); - } - - /** 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(ClusterControllerStubSettings.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 ClusterControllerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createClusterSettings = settingsBuilder.createClusterSettings().build(); - createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); - updateClusterSettings = settingsBuilder.updateClusterSettings().build(); - updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); - deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); - deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); - getClusterSettings = settingsBuilder.getClusterSettings().build(); - listClustersSettings = settingsBuilder.listClustersSettings().build(); - diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); - diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); - } - - /** Builder for ClusterControllerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createClusterSettings; - private final OperationCallSettings.Builder< - CreateClusterRequest, Cluster, ClusterOperationMetadata> - createClusterOperationSettings; - private final UnaryCallSettings.Builder updateClusterSettings; - private final OperationCallSettings.Builder< - UpdateClusterRequest, Cluster, ClusterOperationMetadata> - updateClusterOperationSettings; - private final UnaryCallSettings.Builder deleteClusterSettings; - private final OperationCallSettings.Builder< - DeleteClusterRequest, Empty, ClusterOperationMetadata> - deleteClusterOperationSettings; - private final UnaryCallSettings.Builder getClusterSettings; - private final PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private final UnaryCallSettings.Builder - diagnoseClusterSettings; - private final OperationCallSettings.Builder< - DiagnoseClusterRequest, Empty, ClusterOperationMetadata> - diagnoseClusterOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createClusterOperationSettings = OperationCallSettings.newBuilder(); - updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateClusterOperationSettings = OperationCallSettings.newBuilder(); - deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteClusterOperationSettings = OperationCallSettings.newBuilder(); - getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); - diagnoseClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - diagnoseClusterOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - deleteClusterSettings, - getClusterSettings, - listClustersSettings, - diagnoseClusterSettings); - initDefaults(this); - } - - protected Builder(ClusterControllerStubSettings settings) { - super(settings); - - createClusterSettings = settings.createClusterSettings.toBuilder(); - createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); - updateClusterSettings = settings.updateClusterSettings.toBuilder(); - updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); - deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); - deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); - getClusterSettings = settings.getClusterSettings.toBuilder(); - listClustersSettings = settings.listClustersSettings.toBuilder(); - diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); - diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - deleteClusterSettings, - getClusterSettings, - listClustersSettings, - diagnoseClusterSettings); - } - - 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 - .createClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .updateClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .deleteClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .getClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .listClustersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .diagnoseClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .createClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .updateClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .deleteClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .diagnoseClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return createClusterSettings; - } - - /** Returns the builder for the settings used for calls to createCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createClusterOperationSettings() { - return createClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public UnaryCallSettings.Builder updateClusterSettings() { - return updateClusterSettings; - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateClusterOperationSettings() { - return updateClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public UnaryCallSettings.Builder deleteClusterSettings() { - return deleteClusterSettings; - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteClusterOperationSettings() { - return deleteClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getClusterSettings; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return listClustersSettings; - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return diagnoseClusterSettings; - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - diagnoseClusterOperationSettings() { - return diagnoseClusterOperationSettings; - } - - @Override - public ClusterControllerStubSettings build() throws IOException { - return new ClusterControllerStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java deleted file mode 100644 index 489b9010..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.dataproc.v1beta2.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 AutoscalingPolicyService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAutoscalingPolicyServiceCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java deleted file mode 100644 index 013c5c3a..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java +++ /dev/null @@ -1,335 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.dataproc.v1beta2.AutoscalingPolicy; -import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { - private static final MethodDescriptor - createAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/CreateAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/UpdateAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/GetAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> - listAutoscalingPoliciesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/ListAutoscalingPolicies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAutoscalingPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAutoscalingPoliciesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/DeleteAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable - createAutoscalingPolicyCallable; - private final UnaryCallable - updateAutoscalingPolicyCallable; - private final UnaryCallable - getAutoscalingPolicyCallable; - private final UnaryCallable - listAutoscalingPoliciesCallable; - private final UnaryCallable - listAutoscalingPoliciesPagedCallable; - private final UnaryCallable - deleteAutoscalingPolicyCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAutoscalingPolicyServiceStub create( - AutoscalingPolicyServiceStubSettings settings) throws IOException { - return new GrpcAutoscalingPolicyServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAutoscalingPolicyServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAutoscalingPolicyServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAutoscalingPolicyServiceStub, 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 GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcAutoscalingPolicyServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcAutoscalingPolicyServiceStub, 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 GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - createAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("policy.name", String.valueOf(request.getPolicy().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listAutoscalingPoliciesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.createAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - createAutoscalingPolicyTransportSettings, - settings.createAutoscalingPolicySettings(), - clientContext); - this.updateAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - updateAutoscalingPolicyTransportSettings, - settings.updateAutoscalingPolicySettings(), - clientContext); - this.getAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - getAutoscalingPolicyTransportSettings, - settings.getAutoscalingPolicySettings(), - clientContext); - this.listAutoscalingPoliciesCallable = - callableFactory.createUnaryCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.listAutoscalingPoliciesPagedCallable = - callableFactory.createPagedCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.deleteAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - deleteAutoscalingPolicyTransportSettings, - settings.deleteAutoscalingPolicySettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - createAutoscalingPolicyCallable() { - return createAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - updateAutoscalingPolicyCallable() { - return updateAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - getAutoscalingPolicyCallable() { - return getAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesCallable() { - return listAutoscalingPoliciesCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return listAutoscalingPoliciesPagedCallable; - } - - @Override - public UnaryCallable deleteAutoscalingPolicyCallable() { - return deleteAutoscalingPolicyCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java deleted file mode 100644 index 4f28cfab..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.dataproc.v1beta2.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 ClusterController service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcClusterControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java deleted file mode 100644 index 9346f9f8..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -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.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.Cluster; -import com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1beta2.CreateClusterRequest; -import com.google.cloud.dataproc.v1beta2.DeleteClusterRequest; -import com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1beta2.GetClusterRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersRequest; -import com.google.cloud.dataproc.v1beta2.ListClustersResponse; -import com.google.cloud.dataproc.v1beta2.UpdateClusterRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the ClusterController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcClusterControllerStub extends ClusterControllerStub { - private static final MethodDescriptor - createClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/CreateCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/UpdateCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/DeleteCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/GetCluster") - .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listClustersMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/ListClusters") - .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - diagnoseClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.ClusterController/DiagnoseCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable createClusterCallable; - private final OperationCallable - createClusterOperationCallable; - private final UnaryCallable updateClusterCallable; - private final OperationCallable - updateClusterOperationCallable; - private final UnaryCallable deleteClusterCallable; - private final OperationCallable - deleteClusterOperationCallable; - private final UnaryCallable getClusterCallable; - private final UnaryCallable listClustersCallable; - private final UnaryCallable - listClustersPagedCallable; - private final UnaryCallable diagnoseClusterCallable; - private final OperationCallable - diagnoseClusterOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings) - throws IOException { - return new GrpcClusterControllerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcClusterControllerStub create(ClientContext clientContext) - throws IOException { - return new GrpcClusterControllerStub( - ClusterControllerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcClusterControllerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcClusterControllerStub( - ClusterControllerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcClusterControllerStub, 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 GrpcClusterControllerStub( - ClusterControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcClusterControllerCallableFactory()); - } - - /** - * Constructs an instance of GrpcClusterControllerStub, 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 GrpcClusterControllerStub( - ClusterControllerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings listClustersTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listClustersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings diagnoseClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(diagnoseClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.createClusterOperationCallable = - callableFactory.createOperationCallable( - createClusterTransportSettings, - settings.createClusterOperationSettings(), - clientContext, - operationsStub); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateClusterOperationCallable = - callableFactory.createOperationCallable( - updateClusterTransportSettings, - settings.updateClusterOperationSettings(), - clientContext, - operationsStub); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.deleteClusterOperationCallable = - callableFactory.createOperationCallable( - deleteClusterTransportSettings, - settings.deleteClusterOperationSettings(), - clientContext, - operationsStub); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.listClustersPagedCallable = - callableFactory.createPagedCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.diagnoseClusterCallable = - callableFactory.createUnaryCallable( - diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); - this.diagnoseClusterOperationCallable = - callableFactory.createOperationCallable( - diagnoseClusterTransportSettings, - settings.diagnoseClusterOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createClusterCallable() { - return createClusterCallable; - } - - @Override - public OperationCallable - createClusterOperationCallable() { - return createClusterOperationCallable; - } - - @Override - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; - } - - @Override - public OperationCallable - updateClusterOperationCallable() { - return updateClusterOperationCallable; - } - - @Override - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @Override - public OperationCallable - deleteClusterOperationCallable() { - return deleteClusterOperationCallable; - } - - @Override - public UnaryCallable getClusterCallable() { - return getClusterCallable; - } - - @Override - public UnaryCallable listClustersCallable() { - return listClustersCallable; - } - - @Override - public UnaryCallable listClustersPagedCallable() { - return listClustersPagedCallable; - } - - @Override - public UnaryCallable diagnoseClusterCallable() { - return diagnoseClusterCallable; - } - - @Override - public OperationCallable - diagnoseClusterOperationCallable() { - return diagnoseClusterOperationCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java deleted file mode 100644 index 16ed3d2d..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.dataproc.v1beta2.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 JobController service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcJobControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java deleted file mode 100644 index 319573f1..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; - -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.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CancelJobRequest; -import com.google.cloud.dataproc.v1beta2.DeleteJobRequest; -import com.google.cloud.dataproc.v1beta2.GetJobRequest; -import com.google.cloud.dataproc.v1beta2.Job; -import com.google.cloud.dataproc.v1beta2.JobMetadata; -import com.google.cloud.dataproc.v1beta2.ListJobsRequest; -import com.google.cloud.dataproc.v1beta2.ListJobsResponse; -import com.google.cloud.dataproc.v1beta2.SubmitJobRequest; -import com.google.cloud.dataproc.v1beta2.UpdateJobRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the JobController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcJobControllerStub extends JobControllerStub { - private static final MethodDescriptor submitJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/SubmitJob") - .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - submitJobAsOperationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/SubmitJobAsOperation") - .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/GetJob") - .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listJobsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/ListJobs") - .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/UpdateJob") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor cancelJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/CancelJob") - .setRequestMarshaller(ProtoUtils.marshaller(CancelJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1beta2.JobController/DeleteJob") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable submitJobCallable; - private final UnaryCallable submitJobAsOperationCallable; - private final OperationCallable - submitJobAsOperationOperationCallable; - private final UnaryCallable getJobCallable; - private final UnaryCallable listJobsCallable; - private final UnaryCallable listJobsPagedCallable; - private final UnaryCallable updateJobCallable; - private final UnaryCallable cancelJobCallable; - private final UnaryCallable deleteJobCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcJobControllerStub create(JobControllerStubSettings settings) - throws IOException { - return new GrpcJobControllerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcJobControllerStub create(ClientContext clientContext) throws IOException { - return new GrpcJobControllerStub(JobControllerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcJobControllerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcJobControllerStub( - JobControllerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcJobControllerStub, 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 GrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcJobControllerCallableFactory()); - } - - /** - * Constructs an instance of GrpcJobControllerStub, 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 GrpcJobControllerStub( - JobControllerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings submitJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(submitJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings submitJobAsOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(submitJobAsOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings getJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings listJobsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listJobsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings updateJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings cancelJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - - this.submitJobCallable = - callableFactory.createUnaryCallable( - submitJobTransportSettings, settings.submitJobSettings(), clientContext); - this.submitJobAsOperationCallable = - callableFactory.createUnaryCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationSettings(), - clientContext); - this.submitJobAsOperationOperationCallable = - callableFactory.createOperationCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationOperationSettings(), - clientContext, - operationsStub); - this.getJobCallable = - callableFactory.createUnaryCallable( - getJobTransportSettings, settings.getJobSettings(), clientContext); - this.listJobsCallable = - callableFactory.createUnaryCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.listJobsPagedCallable = - callableFactory.createPagedCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.updateJobCallable = - callableFactory.createUnaryCallable( - updateJobTransportSettings, settings.updateJobSettings(), clientContext); - this.cancelJobCallable = - callableFactory.createUnaryCallable( - cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); - this.deleteJobCallable = - callableFactory.createUnaryCallable( - deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable submitJobCallable() { - return submitJobCallable; - } - - @Override - public UnaryCallable submitJobAsOperationCallable() { - return submitJobAsOperationCallable; - } - - @Override - public OperationCallable - submitJobAsOperationOperationCallable() { - return submitJobAsOperationOperationCallable; - } - - @Override - public UnaryCallable getJobCallable() { - return getJobCallable; - } - - @Override - public UnaryCallable listJobsCallable() { - return listJobsCallable; - } - - @Override - public UnaryCallable listJobsPagedCallable() { - return listJobsPagedCallable; - } - - @Override - public UnaryCallable updateJobCallable() { - return updateJobCallable; - } - - @Override - public UnaryCallable cancelJobCallable() { - return cancelJobCallable; - } - - @Override - public UnaryCallable deleteJobCallable() { - return deleteJobCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java deleted file mode 100644 index 36506b4a..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.dataproc.v1beta2.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 WorkflowTemplateService service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcWorkflowTemplateServiceCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java deleted file mode 100644 index d019b4d1..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -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.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.WorkflowMetadata; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplate; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the WorkflowTemplateService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { - private static final MethodDescriptor - createWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/CreateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/GetWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - instantiateWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(InstantiateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - instantiateInlineWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/InstantiateInlineWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller( - InstantiateInlineWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/UpdateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listWorkflowTemplatesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/ListWorkflowTemplates") - .setRequestMarshaller( - ProtoUtils.marshaller(ListWorkflowTemplatesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListWorkflowTemplatesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1beta2.WorkflowTemplateService/DeleteWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable - createWorkflowTemplateCallable; - private final UnaryCallable - getWorkflowTemplateCallable; - private final UnaryCallable - instantiateWorkflowTemplateCallable; - private final OperationCallable - instantiateWorkflowTemplateOperationCallable; - private final UnaryCallable - instantiateInlineWorkflowTemplateCallable; - private final OperationCallable - instantiateInlineWorkflowTemplateOperationCallable; - private final UnaryCallable - updateWorkflowTemplateCallable; - private final UnaryCallable - listWorkflowTemplatesCallable; - private final UnaryCallable - listWorkflowTemplatesPagedCallable; - private final UnaryCallable deleteWorkflowTemplateCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcWorkflowTemplateServiceStub create( - WorkflowTemplateServiceStubSettings settings) throws IOException { - return new GrpcWorkflowTemplateServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcWorkflowTemplateServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcWorkflowTemplateServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcWorkflowTemplateServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - createWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - instantiateWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - instantiateInlineWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("template.name", String.valueOf(request.getTemplate().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listWorkflowTemplatesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.createWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - createWorkflowTemplateTransportSettings, - settings.createWorkflowTemplateSettings(), - clientContext); - this.getWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - getWorkflowTemplateTransportSettings, - settings.getWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateOperationSettings(), - clientContext, - operationsStub); - this.instantiateInlineWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateSettings(), - clientContext); - this.instantiateInlineWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateOperationSettings(), - clientContext, - operationsStub); - this.updateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - updateWorkflowTemplateTransportSettings, - settings.updateWorkflowTemplateSettings(), - clientContext); - this.listWorkflowTemplatesCallable = - callableFactory.createUnaryCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.listWorkflowTemplatesPagedCallable = - callableFactory.createPagedCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.deleteWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - deleteWorkflowTemplateTransportSettings, - settings.deleteWorkflowTemplateSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - createWorkflowTemplateCallable() { - return createWorkflowTemplateCallable; - } - - @Override - public UnaryCallable getWorkflowTemplateCallable() { - return getWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - instantiateWorkflowTemplateCallable() { - return instantiateWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return instantiateWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - return instantiateInlineWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return instantiateInlineWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - updateWorkflowTemplateCallable() { - return updateWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesCallable() { - return listWorkflowTemplatesCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - return listWorkflowTemplatesPagedCallable; - } - - @Override - public UnaryCallable deleteWorkflowTemplateCallable() { - return deleteWorkflowTemplateCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java deleted file mode 100644 index 58a13533..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CancelJobRequest; -import com.google.cloud.dataproc.v1beta2.DeleteJobRequest; -import com.google.cloud.dataproc.v1beta2.GetJobRequest; -import com.google.cloud.dataproc.v1beta2.Job; -import com.google.cloud.dataproc.v1beta2.JobMetadata; -import com.google.cloud.dataproc.v1beta2.ListJobsRequest; -import com.google.cloud.dataproc.v1beta2.ListJobsResponse; -import com.google.cloud.dataproc.v1beta2.SubmitJobRequest; -import com.google.cloud.dataproc.v1beta2.UpdateJobRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the JobController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class JobControllerStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable submitJobCallable() { - throw new UnsupportedOperationException("Not implemented: submitJobCallable()"); - } - - public OperationCallable - submitJobAsOperationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: submitJobAsOperationOperationCallable()"); - } - - public UnaryCallable submitJobAsOperationCallable() { - throw new UnsupportedOperationException("Not implemented: submitJobAsOperationCallable()"); - } - - public UnaryCallable getJobCallable() { - throw new UnsupportedOperationException("Not implemented: getJobCallable()"); - } - - public UnaryCallable listJobsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); - } - - public UnaryCallable listJobsCallable() { - throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); - } - - public UnaryCallable updateJobCallable() { - throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); - } - - public UnaryCallable cancelJobCallable() { - throw new UnsupportedOperationException("Not implemented: cancelJobCallable()"); - } - - public UnaryCallable deleteJobCallable() { - throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java deleted file mode 100644 index 4fa4e3fd..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CancelJobRequest; -import com.google.cloud.dataproc.v1beta2.DeleteJobRequest; -import com.google.cloud.dataproc.v1beta2.GetJobRequest; -import com.google.cloud.dataproc.v1beta2.Job; -import com.google.cloud.dataproc.v1beta2.JobMetadata; -import com.google.cloud.dataproc.v1beta2.ListJobsRequest; -import com.google.cloud.dataproc.v1beta2.ListJobsResponse; -import com.google.cloud.dataproc.v1beta2.SubmitJobRequest; -import com.google.cloud.dataproc.v1beta2.UpdateJobRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link JobControllerStub}. - * - *

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

    - *
  • The default service address (dataproc.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 submitJob to 30 seconds: - * - *

{@code
- * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
- *     JobControllerStubSettings.newBuilder();
- * jobControllerSettingsBuilder
- *     .submitJobSettings()
- *     .setRetrySettings(
- *         jobControllerSettingsBuilder
- *             .submitJobSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class JobControllerStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings submitJobSettings; - private final UnaryCallSettings submitJobAsOperationSettings; - private final OperationCallSettings - submitJobAsOperationOperationSettings; - private final UnaryCallSettings getJobSettings; - private final PagedCallSettings - listJobsSettings; - private final UnaryCallSettings updateJobSettings; - private final UnaryCallSettings cancelJobSettings; - private final UnaryCallSettings deleteJobSettings; - - private static final PagedListDescriptor - LIST_JOBS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListJobsRequest injectToken(ListJobsRequest payload, String token) { - return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { - return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListJobsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListJobsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListJobsResponse payload) { - return payload.getJobsList() == null - ? ImmutableList.of() - : payload.getJobsList(); - } - }; - - private static final PagedListResponseFactory< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - LIST_JOBS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListJobsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); - return ListJobsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to submitJob. */ - public UnaryCallSettings submitJobSettings() { - return submitJobSettings; - } - - /** Returns the object with the settings used for calls to submitJobAs. */ - public UnaryCallSettings submitJobAsOperationSettings() { - return submitJobAsOperationSettings; - } - - /** Returns the object with the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings - submitJobAsOperationOperationSettings() { - return submitJobAsOperationOperationSettings; - } - - /** Returns the object with the settings used for calls to getJob. */ - public UnaryCallSettings getJobSettings() { - return getJobSettings; - } - - /** Returns the object with the settings used for calls to listJobs. */ - public PagedCallSettings - listJobsSettings() { - return listJobsSettings; - } - - /** Returns the object with the settings used for calls to updateJob. */ - public UnaryCallSettings updateJobSettings() { - return updateJobSettings; - } - - /** Returns the object with the settings used for calls to cancelJob. */ - public UnaryCallSettings cancelJobSettings() { - return cancelJobSettings; - } - - /** Returns the object with the settings used for calls to deleteJob. */ - public UnaryCallSettings deleteJobSettings() { - return deleteJobSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public JobControllerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcJobControllerStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.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); - } - - /** 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(JobControllerStubSettings.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 JobControllerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - submitJobSettings = settingsBuilder.submitJobSettings().build(); - submitJobAsOperationSettings = settingsBuilder.submitJobAsOperationSettings().build(); - submitJobAsOperationOperationSettings = - settingsBuilder.submitJobAsOperationOperationSettings().build(); - getJobSettings = settingsBuilder.getJobSettings().build(); - listJobsSettings = settingsBuilder.listJobsSettings().build(); - updateJobSettings = settingsBuilder.updateJobSettings().build(); - cancelJobSettings = settingsBuilder.cancelJobSettings().build(); - deleteJobSettings = settingsBuilder.deleteJobSettings().build(); - } - - /** Builder for JobControllerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder submitJobSettings; - private final UnaryCallSettings.Builder - submitJobAsOperationSettings; - private final OperationCallSettings.Builder - submitJobAsOperationOperationSettings; - private final UnaryCallSettings.Builder getJobSettings; - private final PagedCallSettings.Builder< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - listJobsSettings; - private final UnaryCallSettings.Builder updateJobSettings; - private final UnaryCallSettings.Builder cancelJobSettings; - private final UnaryCallSettings.Builder deleteJobSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - 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(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_4_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_5_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - submitJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - submitJobAsOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - submitJobAsOperationOperationSettings = OperationCallSettings.newBuilder(); - getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); - updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - initDefaults(this); - } - - protected Builder(JobControllerStubSettings settings) { - super(settings); - - submitJobSettings = settings.submitJobSettings.toBuilder(); - submitJobAsOperationSettings = settings.submitJobAsOperationSettings.toBuilder(); - submitJobAsOperationOperationSettings = - settings.submitJobAsOperationOperationSettings.toBuilder(); - getJobSettings = settings.getJobSettings.toBuilder(); - listJobsSettings = settings.listJobsSettings.toBuilder(); - updateJobSettings = settings.updateJobSettings.toBuilder(); - cancelJobSettings = settings.cancelJobSettings.toBuilder(); - deleteJobSettings = settings.deleteJobSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - } - - 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 - .submitJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .submitJobAsOperationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .getJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .listJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .updateJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .cancelJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .deleteJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .submitJobAsOperationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) - .build()) - .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Job.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(JobMetadata.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; - } - - /** - * 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 submitJob. */ - public UnaryCallSettings.Builder submitJobSettings() { - return submitJobSettings; - } - - /** Returns the builder for the settings used for calls to submitJobAs. */ - public UnaryCallSettings.Builder submitJobAsOperationSettings() { - return submitJobAsOperationSettings; - } - - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - submitJobAsOperationOperationSettings() { - return submitJobAsOperationOperationSettings; - } - - /** Returns the builder for the settings used for calls to getJob. */ - public UnaryCallSettings.Builder getJobSettings() { - return getJobSettings; - } - - /** Returns the builder for the settings used for calls to listJobs. */ - public PagedCallSettings.Builder - listJobsSettings() { - return listJobsSettings; - } - - /** Returns the builder for the settings used for calls to updateJob. */ - public UnaryCallSettings.Builder updateJobSettings() { - return updateJobSettings; - } - - /** Returns the builder for the settings used for calls to cancelJob. */ - public UnaryCallSettings.Builder cancelJobSettings() { - return cancelJobSettings; - } - - /** Returns the builder for the settings used for calls to deleteJob. */ - public UnaryCallSettings.Builder deleteJobSettings() { - return deleteJobSettings; - } - - @Override - public JobControllerStubSettings build() throws IOException { - return new JobControllerStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java deleted file mode 100644 index bb8047dd..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.WorkflowMetadata; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplate; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the WorkflowTemplateService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class WorkflowTemplateServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - createWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); - } - - public UnaryCallable getWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); - } - - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateWorkflowTemplateOperationCallable()"); - } - - public UnaryCallable - instantiateWorkflowTemplateCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateWorkflowTemplateCallable()"); - } - - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateInlineWorkflowTemplateOperationCallable()"); - } - - public UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateInlineWorkflowTemplateCallable()"); - } - - public UnaryCallable - updateWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: updateWorkflowTemplateCallable()"); - } - - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listWorkflowTemplatesPagedCallable()"); - } - - public UnaryCallable - listWorkflowTemplatesCallable() { - throw new UnsupportedOperationException("Not implemented: listWorkflowTemplatesCallable()"); - } - - public UnaryCallable deleteWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: deleteWorkflowTemplateCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java deleted file mode 100644 index de284cdf..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java +++ /dev/null @@ -1,661 +0,0 @@ -/* - * 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.dataproc.v1beta2.stub; - -import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1beta2.WorkflowMetadata; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplate; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link WorkflowTemplateServiceStub}. - * - *

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

    - *
  • The default service address (dataproc.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 createWorkflowTemplate to 30 seconds: - * - *

{@code
- * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
- *     WorkflowTemplateServiceStubSettings.newBuilder();
- * workflowTemplateServiceSettingsBuilder
- *     .createWorkflowTemplateSettings()
- *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder
- *             .createWorkflowTemplateSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings =
- *     workflowTemplateServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings - createWorkflowTemplateSettings; - private final UnaryCallSettings - getWorkflowTemplateSettings; - private final UnaryCallSettings - instantiateWorkflowTemplateSettings; - private final OperationCallSettings - instantiateWorkflowTemplateOperationSettings; - private final UnaryCallSettings - instantiateInlineWorkflowTemplateSettings; - private final OperationCallSettings< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings - updateWorkflowTemplateSettings; - private final PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings; - private final UnaryCallSettings - deleteWorkflowTemplateSettings; - - private static final PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = - new PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkflowTemplatesRequest injectToken( - ListWorkflowTemplatesRequest payload, String token) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkflowTemplatesRequest injectPageSize( - ListWorkflowTemplatesRequest payload, int pageSize) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkflowTemplatesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListWorkflowTemplatesResponse payload) { - return payload.getTemplatesList() == null - ? ImmutableList.of() - : payload.getTemplatesList(); - } - }; - - private static final PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWorkflowTemplatesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - pageContext = - PageContext.create( - callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); - return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings - instantiateWorkflowTemplateSettings() { - return instantiateWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings - instantiateWorkflowTemplateOperationSettings() { - return instantiateWorkflowTemplateOperationSettings; - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings - instantiateInlineWorkflowTemplateSettings() { - return instantiateInlineWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings - instantiateInlineWorkflowTemplateOperationSettings() { - return instantiateInlineWorkflowTemplateOperationSettings; - } - - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings - updateWorkflowTemplateSettings() { - return updateWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return listWorkflowTemplatesSettings; - } - - /** Returns the object with the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings deleteWorkflowTemplateSettings() { - return deleteWorkflowTemplateSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public WorkflowTemplateServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcWorkflowTemplateServiceStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.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); - } - - /** 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(WorkflowTemplateServiceStubSettings.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 WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); - getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); - instantiateWorkflowTemplateSettings = - settingsBuilder.instantiateWorkflowTemplateSettings().build(); - instantiateWorkflowTemplateOperationSettings = - settingsBuilder.instantiateWorkflowTemplateOperationSettings().build(); - instantiateInlineWorkflowTemplateSettings = - settingsBuilder.instantiateInlineWorkflowTemplateSettings().build(); - instantiateInlineWorkflowTemplateOperationSettings = - settingsBuilder.instantiateInlineWorkflowTemplateOperationSettings().build(); - updateWorkflowTemplateSettings = settingsBuilder.updateWorkflowTemplateSettings().build(); - listWorkflowTemplatesSettings = settingsBuilder.listWorkflowTemplatesSettings().build(); - deleteWorkflowTemplateSettings = settingsBuilder.deleteWorkflowTemplateSettings().build(); - } - - /** Builder for WorkflowTemplateServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - getWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings; - private final OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings; - private final OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - updateWorkflowTemplateSettings; - private final PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings; - private final UnaryCallSettings.Builder - deleteWorkflowTemplateSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_7_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - 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(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_7_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - instantiateInlineWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - updateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWorkflowTemplatesSettings = - PagedCallSettings.newBuilder(LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT); - deleteWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - initDefaults(this); - } - - protected Builder(WorkflowTemplateServiceStubSettings settings) { - super(settings); - - createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); - getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateSettings = - settings.instantiateWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateOperationSettings = - settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); - instantiateInlineWorkflowTemplateSettings = - settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = - settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); - updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); - listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); - deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - } - - 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 - .createWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .getWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .instantiateWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .instantiateInlineWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .updateWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .listWorkflowTemplatesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .deleteWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .instantiateWorkflowTemplateOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(WorkflowMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(43200000L)) - .build())); - - builder - .instantiateInlineWorkflowTemplateOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(WorkflowMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(43200000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings() { - return instantiateWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings() { - return instantiateWorkflowTemplateOperationSettings; - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings() { - return instantiateInlineWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings() { - return instantiateInlineWorkflowTemplateOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings.Builder - updateWorkflowTemplateSettings() { - return updateWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return listWorkflowTemplatesSettings; - } - - /** Returns the builder for the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings.Builder - deleteWorkflowTemplateSettings() { - return deleteWorkflowTemplateSettings; - } - - @Override - public WorkflowTemplateServiceStubSettings build() throws IOException { - return new WorkflowTemplateServiceStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java deleted file mode 100644 index d425e92c..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java +++ /dev/null @@ -1,574 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.Empty; -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 AutoscalingPolicyServiceClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AutoscalingPolicyServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockAutoscalingPolicyService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AutoscalingPolicyServiceSettings settings = - AutoscalingPolicyServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AutoscalingPolicyServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest3() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String parent = "parent-995424086"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.updateAutoscalingPolicy(policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAutoscalingPolicyRequest actualRequest = - ((UpdateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.updateAutoscalingPolicy(policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = - ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String name = "name3373707"; - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = - ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String name = "name3373707"; - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest2() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest3() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAutoscalingPolicyRequest actualRequest = - ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAutoscalingPolicyRequest actualRequest = - ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String name = "name3373707"; - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java deleted file mode 100644 index bf69e016..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java +++ /dev/null @@ -1,457 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ClusterControllerClientTest { - private static MockClusterController mockClusterController; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private ClusterControllerClient client; - - @BeforeClass - public static void startStaticServer() { - mockClusterController = new MockClusterController(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockClusterController)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ClusterControllerSettings settings = - ClusterControllerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ClusterControllerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Cluster cluster = Cluster.newBuilder().build(); - - Cluster actualResponse = client.createClusterAsync(projectId, region, cluster).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Cluster cluster = Cluster.newBuilder().build(); - client.createClusterAsync(projectId, region, cluster).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Cluster actualResponse = - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - client.deleteClusterAsync(projectId, region, clusterName).get(); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.deleteClusterAsync(projectId, region, clusterName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - Cluster actualResponse = client.getCluster(projectId, region, clusterName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.getCluster(projectId, region, clusterName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - client.listClusters(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest2() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - client.listClusters(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void diagnoseClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("diagnoseClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - client.diagnoseClusterAsync(projectId, region, clusterName).get(); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DiagnoseClusterRequest actualRequest = ((DiagnoseClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void diagnoseClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.diagnoseClusterAsync(projectId, region, clusterName).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-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java deleted file mode 100644 index a1012f77..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java +++ /dev/null @@ -1,520 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class JobControllerClientTest { - private static MockJobController mockJobController; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private JobControllerClient client; - - @BeforeClass - public static void startStaticServer() { - mockJobController = new MockJobController(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockJobController)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - JobControllerSettings settings = - JobControllerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = JobControllerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void submitJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setSubmittedBy("submittedBy72490674") - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJob(projectId, region, job); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void submitJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - client.submitJob(projectId, region, job); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void submitJobAsOperationTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setSubmittedBy("submittedBy72490674") - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("submitJobAsOperationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockJobController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void submitJobAsOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setSubmittedBy("submittedBy72490674") - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - Job actualResponse = client.getJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.getJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - client.listJobs(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest2() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - client.listJobs(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setSubmittedBy("submittedBy72490674") - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Job actualResponse = client.updateJob(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateJobRequest actualRequest = ((UpdateJobRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); - Assert.assertEquals(request.getJobId(), actualRequest.getJobId()); - Assert.assertEquals(request.getJob(), actualRequest.getJob()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateJob(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setSubmittedBy("submittedBy72490674") - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - Job actualResponse = client.cancelJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelJobRequest actualRequest = ((CancelJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.cancelJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteJobTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - client.deleteJob(projectId, region, jobId); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.deleteJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java deleted file mode 100644 index ef5d92e4..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 MockAutoscalingPolicyService implements MockGrpcService { - private final MockAutoscalingPolicyServiceImpl serviceImpl; - - public MockAutoscalingPolicyService() { - serviceImpl = new MockAutoscalingPolicyServiceImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java deleted file mode 100644 index 6bb52626..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAutoscalingPolicyServiceImpl extends AutoscalingPolicyServiceImplBase { - private List requests; - private Queue responses; - - public MockAutoscalingPolicyServiceImpl() { - 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 createAutoscalingPolicy( - CreateAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 CreateAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAutoscalingPolicy( - UpdateAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 UpdateAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAutoscalingPolicy( - GetAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 GetAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAutoscalingPolicies( - ListAutoscalingPoliciesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAutoscalingPoliciesResponse) { - requests.add(request); - responseObserver.onNext(((ListAutoscalingPoliciesResponse) 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 ListAutoscalingPolicies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAutoscalingPoliciesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteAutoscalingPolicy( - DeleteAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java deleted file mode 100644 index da78be2e..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 MockClusterController implements MockGrpcService { - private final MockClusterControllerImpl serviceImpl; - - public MockClusterController() { - serviceImpl = new MockClusterControllerImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java deleted file mode 100644 index 399780a5..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1beta2.ClusterControllerGrpc.ClusterControllerImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockClusterControllerImpl extends ClusterControllerImplBase { - private List requests; - private Queue responses; - - public MockClusterControllerImpl() { - 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 createCluster( - CreateClusterRequest 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 CreateCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCluster( - UpdateClusterRequest 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 UpdateCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteCluster( - DeleteClusterRequest 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 DeleteCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Cluster) { - requests.add(request); - responseObserver.onNext(((Cluster) 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 GetCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Cluster.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listClusters( - ListClustersRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListClustersResponse) { - requests.add(request); - responseObserver.onNext(((ListClustersResponse) 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 ListClusters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListClustersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void diagnoseCluster( - DiagnoseClusterRequest 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 DiagnoseCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java deleted file mode 100644 index e3272336..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 MockJobController implements MockGrpcService { - private final MockJobControllerImpl serviceImpl; - - public MockJobController() { - serviceImpl = new MockJobControllerImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java deleted file mode 100644 index 9be75346..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1beta2.JobControllerGrpc.JobControllerImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockJobControllerImpl extends JobControllerImplBase { - private List requests; - private Queue responses; - - public MockJobControllerImpl() { - 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 submitJob(SubmitJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 SubmitJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void submitJobAsOperation( - SubmitJobRequest 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 SubmitJobAsOperation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getJob(GetJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 GetJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListJobsResponse) { - requests.add(request); - responseObserver.onNext(((ListJobsResponse) 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 ListJobs, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListJobsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 UpdateJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void cancelJob(CancelJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 CancelJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java deleted file mode 100644 index dfb8a3b0..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 MockWorkflowTemplateService implements MockGrpcService { - private final MockWorkflowTemplateServiceImpl serviceImpl; - - public MockWorkflowTemplateService() { - serviceImpl = new MockWorkflowTemplateServiceImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java deleted file mode 100644 index bc2fdada..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceGrpc.WorkflowTemplateServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockWorkflowTemplateServiceImpl extends WorkflowTemplateServiceImplBase { - private List requests; - private Queue responses; - - public MockWorkflowTemplateServiceImpl() { - 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 createWorkflowTemplate( - CreateWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 CreateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getWorkflowTemplate( - GetWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 GetWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void instantiateWorkflowTemplate( - InstantiateWorkflowTemplateRequest 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 InstantiateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void instantiateInlineWorkflowTemplate( - InstantiateInlineWorkflowTemplateRequest 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 InstantiateInlineWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateWorkflowTemplate( - UpdateWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 UpdateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWorkflowTemplates( - ListWorkflowTemplatesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWorkflowTemplatesResponse) { - requests.add(request); - responseObserver.onNext(((ListWorkflowTemplatesResponse) 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 ListWorkflowTemplates, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWorkflowTemplatesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteWorkflowTemplate( - DeleteWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java deleted file mode 100644 index f8357586..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java +++ /dev/null @@ -1,941 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import static com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private LocalChannelProvider channelProvider; - private WorkflowTemplateServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockWorkflowTemplateService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - WorkflowTemplateServiceSettings settings = - WorkflowTemplateServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = WorkflowTemplateServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest3() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String name = "name3373707"; - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void instantiateWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String name = "name3373707"; - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(parameters, actualRequest.getParametersMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest4() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String name = "name3373707"; - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(parameters, actualRequest.getParametersMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.updateWorkflowTemplate(template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateWorkflowTemplateRequest actualRequest = - ((UpdateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.updateWorkflowTemplate(template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest2() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest3() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowTemplateRequest actualRequest = - ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowTemplateRequest actualRequest = - ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/it/ITSystemTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/it/ITSystemTest.java deleted file mode 100644 index 41d167f7..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/it/ITSystemTest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.dataproc.v1beta2.it; - -import static org.junit.Assert.assertEquals; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.dataproc.v1beta2.Cluster; -import com.google.cloud.dataproc.v1beta2.ClusterConfig; -import com.google.cloud.dataproc.v1beta2.ClusterControllerClient; -import com.google.cloud.dataproc.v1beta2.ClusterControllerSettings; -import com.google.cloud.dataproc.v1beta2.CreateClusterRequest; -import com.google.cloud.dataproc.v1beta2.EndpointConfig; -import com.google.cloud.dataproc.v1beta2.RegionName; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplate; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplateName; -import com.google.cloud.dataproc.v1beta2.WorkflowTemplateServiceClient; -import com.google.common.collect.Lists; -import java.util.Iterator; -import java.util.List; -import java.util.UUID; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ITSystemTest { - private static ClusterControllerClient clusterClient; - private static WorkflowTemplateServiceClient workflowClient; - - private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final String REGION = "global"; - private static final String ID = UUID.randomUUID().toString(); - private static final int VERSION = 1; - private static final String CLUSTER_NAME = - "test-cluster-" + UUID.randomUUID().toString().substring(0, 8); - private static final String CLUSTER_REGION = "us-central1"; - private static final ClusterControllerSettings.Builder CLUSTER_CONTROLLER_SETTINGS = - ClusterControllerSettings.newBuilder().setEndpoint("us-central1-dataproc.googleapis.com:443"); - private static final ClusterConfig CLUSTER_CONFIG = - ClusterConfig.newBuilder().setEndpointConfig(EndpointConfig.getDefaultInstance()).build(); - private static final Cluster CLUSTER = - Cluster.newBuilder() - .setProjectId(PROJECT_ID) - .setClusterName(CLUSTER_NAME) - .setClusterUuid(ID) - .setConfig(CLUSTER_CONFIG) - .build(); - private static final CreateClusterRequest CREATE_CLUSTER_REQUEST = - CreateClusterRequest.newBuilder() - .setProjectId(PROJECT_ID) - .setRegion(CLUSTER_REGION) - .setCluster(CLUSTER) - .build(); - private static final WorkflowTemplateName WORKFLOW_TEMPLATE_NAME = - WorkflowTemplateName.of(PROJECT_ID, REGION, ID); - private static final RegionName PARENT = RegionName.of(PROJECT_ID, REGION); - private static final WorkflowTemplate WORKFLOW_TEMPLATE = - WorkflowTemplate.newBuilder() - .setId(ID) - .setName(WORKFLOW_TEMPLATE_NAME.toString()) - .setVersion(VERSION) - .build(); - - @BeforeClass - public static void beforeClass() throws Exception { - /** create cluster */ - clusterClient = ClusterControllerClient.create(CLUSTER_CONTROLLER_SETTINGS.build()); - clusterClient.createClusterAsync(CREATE_CLUSTER_REQUEST).get(); - - /** create workflow */ - workflowClient = WorkflowTemplateServiceClient.create(); - workflowClient.createWorkflowTemplate(PARENT, WORKFLOW_TEMPLATE); - } - - @AfterClass - public static void afterClass() { - /** delete cluster */ - clusterClient.deleteClusterAsync(PROJECT_ID, CLUSTER_REGION, CLUSTER_NAME); - clusterClient.close(); - - /** delete workflow */ - workflowClient.deleteWorkflowTemplate(WORKFLOW_TEMPLATE_NAME); - workflowClient.close(); - } - - @Test - public void getClusterTest() { - Cluster cluster = clusterClient.getCluster(PROJECT_ID, CLUSTER_REGION, CLUSTER_NAME); - assertEquals(PROJECT_ID, cluster.getProjectId()); - assertEquals(CLUSTER_NAME, cluster.getClusterName()); - } - - @Test - public void listClustersTest() { - ClusterControllerClient.ListClustersPagedResponse pagedListResponse = - clusterClient.listClusters(PROJECT_ID, CLUSTER_REGION); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - int count = 0, cluster = 0; - while (cluster < resources.size()) { - count++; - cluster++; - } - assertEquals(count, resources.size()); - } - - @Test - public void getWorkflowTemplateTest() { - WorkflowTemplate response = workflowClient.getWorkflowTemplate(WORKFLOW_TEMPLATE_NAME); - assertEquals(ID, response.getId()); - assertEquals(WORKFLOW_TEMPLATE_NAME.toString(), response.getName()); - assertEquals(VERSION, response.getVersion()); - } - - @Test - public void listWorkflowTemplateTest() { - WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse response = - workflowClient.listWorkflowTemplates(PARENT); - Iterator templateIterator = response.iterateAll().iterator(); - int count = 0; - while (templateIterator.hasNext()) { - templateIterator.next(); - count++; - } - assertEquals(1, count); - } -} diff --git a/grpc-google-cloud-dataproc-v1beta2/pom.xml b/grpc-google-cloud-dataproc-v1beta2/pom.xml deleted file mode 100644 index 6cda72cc..00000000 --- a/grpc-google-cloud-dataproc-v1beta2/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - grpc-google-cloud-dataproc-v1beta2 - GRPC library for grpc-google-cloud-dataproc-v1beta2 - - com.google.cloud - google-cloud-dataproc-parent - 2.1.5-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-common-protos - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java deleted file mode 100644 index e9d5038f..00000000 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java +++ /dev/null @@ -1,899 +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.dataproc.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API interface for managing autoscaling policies in the
- * Cloud Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto") -public final class AutoscalingPolicyServiceGrpc { - - private AutoscalingPolicyServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.dataproc.v1beta2.AutoscalingPolicyService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = - getCreateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "CreateAutoscalingPolicy")) - .build(); - } - } - } - return getCreateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = - getUpdateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "UpdateAutoscalingPolicy")) - .build(); - } - } - } - return getUpdateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getGetAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getGetAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = - getGetAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "GetAutoscalingPolicy")) - .build(); - } - } - } - return getGetAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", - requestType = com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = - getListAutoscalingPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "ListAutoscalingPolicies")) - .build(); - } - } - } - return getListAutoscalingPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = - getDeleteAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "DeleteAutoscalingPolicy")) - .build(); - } - } - } - return getDeleteAutoscalingPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoscalingPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AutoscalingPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Cloud Dataproc API.
-   * 
- */ - public abstract static class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutoscalingPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAutoscalingPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( - this, METHODID_CREATE_AUTOSCALING_POLICY))) - .addMethod( - getUpdateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( - this, METHODID_UPDATE_AUTOSCALING_POLICY))) - .addMethod( - getGetAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy>( - this, METHODID_GET_AUTOSCALING_POLICY))) - .addMethod( - getListAutoscalingPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse>( - this, METHODID_LIST_AUTOSCALING_POLICIES))) - .addMethod( - getDeleteAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Cloud Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AutoscalingPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Cloud Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AutoscalingPolicyServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - listAutoscalingPolicies( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.protobuf.Empty deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Cloud Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AutoscalingPolicyServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - createAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - updateAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> - getAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> - listAutoscalingPolicies( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; - private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; - private static final int METHODID_GET_AUTOSCALING_POLICY = 2; - private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; - private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoscalingPolicyServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoscalingPolicyServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_AUTOSCALING_POLICY: - serviceImpl.createAutoscalingPolicy( - (com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_AUTOSCALING_POLICY: - serviceImpl.updateAutoscalingPolicy( - (com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_AUTOSCALING_POLICY: - serviceImpl.getAutoscalingPolicy( - (com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_AUTOSCALING_POLICIES: - serviceImpl.listAutoscalingPolicies( - (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse>) - responseObserver); - break; - case METHODID_DELETE_AUTOSCALING_POLICY: - serviceImpl.deleteAutoscalingPolicy( - (com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoscalingPolicyServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); - } - } - - private static final class AutoscalingPolicyServiceFileDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier { - AutoscalingPolicyServiceFileDescriptorSupplier() {} - } - - private static final class AutoscalingPolicyServiceMethodDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) - .addMethod(getCreateAutoscalingPolicyMethod()) - .addMethod(getUpdateAutoscalingPolicyMethod()) - .addMethod(getGetAutoscalingPolicyMethod()) - .addMethod(getListAutoscalingPoliciesMethod()) - .addMethod(getDeleteAutoscalingPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java deleted file mode 100644 index 5a4c86a1..00000000 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java +++ /dev/null @@ -1,985 +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.dataproc.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The ClusterControllerService provides methods to manage clusters
- * of Compute Engine instances.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1beta2/clusters.proto") -public final class ClusterControllerGrpc { - - private ClusterControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1beta2.ClusterController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCluster", - requestType = com.google.cloud.dataproc.v1beta2.CreateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateClusterRequest, - com.google.longrunning.Operation> - getCreateClusterMethod; - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - ClusterControllerGrpc.getCreateClusterMethod = - getCreateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("CreateCluster")) - .build(); - } - } - } - return getCreateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", - requestType = com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest, - com.google.longrunning.Operation> - getUpdateClusterMethod; - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - ClusterControllerGrpc.getUpdateClusterMethod = - getUpdateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("UpdateCluster")) - .build(); - } - } - } - return getUpdateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", - requestType = com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest, - com.google.longrunning.Operation> - getDeleteClusterMethod; - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - ClusterControllerGrpc.getDeleteClusterMethod = - getDeleteClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DeleteCluster")) - .build(); - } - } - } - return getDeleteClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetClusterRequest, - com.google.cloud.dataproc.v1beta2.Cluster> - getGetClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCluster", - requestType = com.google.cloud.dataproc.v1beta2.GetClusterRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.Cluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetClusterRequest, - com.google.cloud.dataproc.v1beta2.Cluster> - getGetClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetClusterRequest, - com.google.cloud.dataproc.v1beta2.Cluster> - getGetClusterMethod; - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - ClusterControllerGrpc.getGetClusterMethod = - getGetClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.GetClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("GetCluster")) - .build(); - } - } - } - return getGetClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListClustersRequest, - com.google.cloud.dataproc.v1beta2.ListClustersResponse> - getListClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClusters", - requestType = com.google.cloud.dataproc.v1beta2.ListClustersRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.ListClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListClustersRequest, - com.google.cloud.dataproc.v1beta2.ListClustersResponse> - getListClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListClustersRequest, - com.google.cloud.dataproc.v1beta2.ListClustersResponse> - getListClustersMethod; - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - ClusterControllerGrpc.getListClustersMethod = - getListClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("ListClusters")) - .build(); - } - } - } - return getListClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest, - com.google.longrunning.Operation> - getDiagnoseClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiagnoseCluster", - requestType = com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest, - com.google.longrunning.Operation> - getDiagnoseClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest, - com.google.longrunning.Operation> - getDiagnoseClusterMethod; - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - ClusterControllerGrpc.getDiagnoseClusterMethod = - getDiagnoseClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster")) - .build(); - } - } - } - return getDiagnoseClusterMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ClusterControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - }; - return ClusterControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ClusterControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - }; - return ClusterControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ClusterControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - }; - return ClusterControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public abstract static class ClusterControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1beta2.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1beta2.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDiagnoseClusterMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.CreateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.GetClusterRequest, - com.google.cloud.dataproc.v1beta2.Cluster>(this, METHODID_GET_CLUSTER))) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.ListClustersRequest, - com.google.cloud.dataproc.v1beta2.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) - .addMethod( - getDiagnoseClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) - .build(); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private ClusterControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1beta2.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1beta2.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ClusterControllerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.longrunning.Operation createCluster( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.longrunning.Operation updateCluster( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.longrunning.Operation deleteCluster( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.Cluster getCluster( - com.google.cloud.dataproc.v1beta2.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.ListClustersResponse listClusters( - com.google.cloud.dataproc.v1beta2.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.longrunning.Operation diagnoseCluster( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ClusterControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCluster(com.google.cloud.dataproc.v1beta2.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.cloud.dataproc.v1beta2.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCluster(com.google.cloud.dataproc.v1beta2.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.Cluster> - getCluster(com.google.cloud.dataproc.v1beta2.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.ListClustersResponse> - listClusters(com.google.cloud.dataproc.v1beta2.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * ClusterOperationMetadata.
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - diagnoseCluster(com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CLUSTER = 0; - private static final int METHODID_UPDATE_CLUSTER = 1; - private static final int METHODID_DELETE_CLUSTER = 2; - private static final int METHODID_GET_CLUSTER = 3; - private static final int METHODID_LIST_CLUSTERS = 4; - private static final int METHODID_DIAGNOSE_CLUSTER = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ClusterControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterControllerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CLUSTER: - serviceImpl.createCluster( - (com.google.cloud.dataproc.v1beta2.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster( - (com.google.cloud.dataproc.v1beta2.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster( - (com.google.cloud.dataproc.v1beta2.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster( - (com.google.cloud.dataproc.v1beta2.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters( - (com.google.cloud.dataproc.v1beta2.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DIAGNOSE_CLUSTER: - serviceImpl.diagnoseCluster( - (com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) 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 ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ClusterController"); - } - } - - private static final class ClusterControllerFileDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier { - ClusterControllerFileDescriptorSupplier() {} - } - - private static final class ClusterControllerMethodDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ClusterControllerMethodDescriptorSupplier(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 (ClusterControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getListClustersMethod()) - .addMethod(getDiagnoseClusterMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java deleted file mode 100644 index 6f555c3a..00000000 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java +++ /dev/null @@ -1,1038 +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.dataproc.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The JobController provides methods to manage jobs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1beta2/jobs.proto") -public final class JobControllerGrpc { - - private JobControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1beta2.JobController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getSubmitJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJob", - requestType = com.google.cloud.dataproc.v1beta2.SubmitJobRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getSubmitJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, - com.google.cloud.dataproc.v1beta2.Job> - getSubmitJobMethod; - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - JobControllerGrpc.getSubmitJobMethod = - getSubmitJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) - .build(); - } - } - } - return getSubmitJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", - requestType = com.google.cloud.dataproc.v1beta2.SubmitJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) - == null) { - JobControllerGrpc.getSubmitJobAsOperationMethod = - getSubmitJobAsOperationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) - .build(); - } - } - } - return getSubmitJobAsOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.dataproc.v1beta2.GetJobRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getGetJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getGetJobMethod; - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - JobControllerGrpc.getGetJobMethod = - getGetJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListJobsRequest, - com.google.cloud.dataproc.v1beta2.ListJobsResponse> - getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.dataproc.v1beta2.ListJobsRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListJobsRequest, - com.google.cloud.dataproc.v1beta2.ListJobsResponse> - getListJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListJobsRequest, - com.google.cloud.dataproc.v1beta2.ListJobsResponse> - getListJobsMethod; - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - JobControllerGrpc.getListJobsMethod = - getListJobsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListJobsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListJobsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getUpdateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateJob", - requestType = com.google.cloud.dataproc.v1beta2.UpdateJobRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getUpdateJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateJobRequest, - com.google.cloud.dataproc.v1beta2.Job> - getUpdateJobMethod; - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - JobControllerGrpc.getUpdateJobMethod = - getUpdateJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) - .build(); - } - } - } - return getUpdateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CancelJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getCancelJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelJob", - requestType = com.google.cloud.dataproc.v1beta2.CancelJobRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CancelJobRequest, com.google.cloud.dataproc.v1beta2.Job> - getCancelJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CancelJobRequest, - com.google.cloud.dataproc.v1beta2.Job> - getCancelJobMethod; - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - JobControllerGrpc.getCancelJobMethod = - getCancelJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.CancelJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) - .build(); - } - } - } - return getCancelJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.dataproc.v1beta2.DeleteJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - JobControllerGrpc.getDeleteJobMethod = - getDeleteJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static JobControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - }; - return JobControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static JobControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - }; - return JobControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static JobControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - }; - return JobControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public abstract static class JobControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSubmitJobAsOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1beta2.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1beta2.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * regions/{region}/jobs.list
-     * or
-     * regions/{region}/jobs.get.
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1beta2.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, - com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_SUBMIT_JOB))) - .addMethod( - getSubmitJobAsOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.SubmitJobRequest, - com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.GetJobRequest, - com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_GET_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.ListJobsRequest, - com.google.cloud.dataproc.v1beta2.ListJobsResponse>( - this, METHODID_LIST_JOBS))) - .addMethod( - getUpdateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.UpdateJobRequest, - com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_UPDATE_JOB))) - .addMethod( - getCancelJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.CancelJobRequest, - com.google.cloud.dataproc.v1beta2.Job>(this, METHODID_CANCEL_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.DeleteJobRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_JOB))) - .build(); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private JobControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1beta2.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1beta2.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * regions/{region}/jobs.list
-     * or
-     * regions/{region}/jobs.get.
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1beta2.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private JobControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.Job submitJob( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.longrunning.Operation submitJobAsOperation( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.Job getJob( - com.google.cloud.dataproc.v1beta2.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.ListJobsResponse listJobs( - com.google.cloud.dataproc.v1beta2.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.Job updateJob( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * regions/{region}/jobs.list
-     * or
-     * regions/{region}/jobs.get.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.Job cancelJob( - com.google.cloud.dataproc.v1beta2.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteJob( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private JobControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJob(com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJobAsOperation(com.google.cloud.dataproc.v1beta2.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getJob(com.google.cloud.dataproc.v1beta2.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.ListJobsResponse> - listJobs(com.google.cloud.dataproc.v1beta2.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateJob(com.google.cloud.dataproc.v1beta2.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * regions/{region}/jobs.list
-     * or
-     * regions/{region}/jobs.get.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelJob(com.google.cloud.dataproc.v1beta2.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteJob( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_JOB = 0; - private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; - private static final int METHODID_GET_JOB = 2; - private static final int METHODID_LIST_JOBS = 3; - private static final int METHODID_UPDATE_JOB = 4; - private static final int METHODID_CANCEL_JOB = 5; - private static final int METHODID_DELETE_JOB = 6; - - 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 JobControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: - serviceImpl.submitJob( - (com.google.cloud.dataproc.v1beta2.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SUBMIT_JOB_AS_OPERATION: - serviceImpl.submitJobAsOperation( - (com.google.cloud.dataproc.v1beta2.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob( - (com.google.cloud.dataproc.v1beta2.GetJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs( - (com.google.cloud.dataproc.v1beta2.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_JOB: - serviceImpl.updateJob( - (com.google.cloud.dataproc.v1beta2.UpdateJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CANCEL_JOB: - serviceImpl.cancelJob( - (com.google.cloud.dataproc.v1beta2.CancelJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob( - (com.google.cloud.dataproc.v1beta2.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - JobControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("JobController"); - } - } - - private static final class JobControllerFileDescriptorSupplier - extends JobControllerBaseDescriptorSupplier { - JobControllerFileDescriptorSupplier() {} - } - - private static final class JobControllerMethodDescriptorSupplier - extends JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) - .addMethod(getSubmitJobMethod()) - .addMethod(getSubmitJobAsOperationMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getUpdateJobMethod()) - .addMethod(getCancelJobMethod()) - .addMethod(getDeleteJobMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java deleted file mode 100644 index d11291c0..00000000 --- a/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java +++ /dev/null @@ -1,1278 +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.dataproc.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API interface for managing Workflow Templates in the
- * Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1beta2/workflow_templates.proto") -public final class WorkflowTemplateServiceGrpc { - - private WorkflowTemplateServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1beta2.WorkflowTemplateService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getCreateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getCreateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getCreateWorkflowTemplateMethod; - if ((getCreateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getCreateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod = - getCreateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "CreateWorkflowTemplate")) - .build(); - } - } - } - return getCreateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getGetWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getGetWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getGetWorkflowTemplateMethod; - if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getGetWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod = - getGetWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "GetWorkflowTemplate")) - .build(); - } - } - } - return getGetWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InstantiateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod; - if ((getInstantiateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getInstantiateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod = - getInstantiateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "InstantiateWorkflowTemplate")) - .build(); - } - } - } - return getInstantiateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InstantiateInlineWorkflowTemplate", - requestType = - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod; - if ((getInstantiateInlineWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getInstantiateInlineWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod = - getInstantiateInlineWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2 - .InstantiateInlineWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "InstantiateInlineWorkflowTemplate")) - .build(); - } - } - } - return getInstantiateInlineWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getUpdateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getUpdateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getUpdateWorkflowTemplateMethod; - if ((getUpdateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getUpdateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod = - getUpdateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "UpdateWorkflowTemplate")) - .build(); - } - } - } - return getUpdateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkflowTemplates", - requestType = com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.class, - responseType = com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod; - if ((getListWorkflowTemplatesMethod = - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getListWorkflowTemplatesMethod = - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) - == null) { - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod = - getListWorkflowTemplatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "ListWorkflowTemplates")) - .build(); - } - } - } - return getListWorkflowTemplatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod; - if ((getDeleteWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getDeleteWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod = - getDeleteWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "DeleteWorkflowTemplate")) - .build(); - } - } - } - return getDeleteWorkflowTemplateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WorkflowTemplateServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkflowTemplateServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceBlockingStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WorkflowTemplateServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceFutureStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public abstract static class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * WorkflowMetadata.
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateInlineWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowTemplatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowTemplateMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( - this, METHODID_CREATE_WORKFLOW_TEMPLATE))) - .addMethod( - getGetWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( - this, METHODID_GET_WORKFLOW_TEMPLATE))) - .addMethod( - getInstantiateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) - .addMethod( - getInstantiateInlineWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) - .addMethod( - getUpdateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate>( - this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) - .addMethod( - getListWorkflowTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse>( - this, METHODID_LIST_WORKFLOW_TEMPLATES))) - .addMethod( - getDeleteWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) - .build(); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkflowTemplateServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * WorkflowMetadata.
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkflowTemplateServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate createWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * WorkflowMetadata.
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.longrunning.Operation instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate updateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse listWorkflowTemplates( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkflowTemplateServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - createWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - getWorkflowTemplate(com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * WorkflowMetadata.
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate> - updateWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse> - listWorkflowTemplates( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflowTemplate( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKFLOW_TEMPLATE = 0; - private static final int METHODID_GET_WORKFLOW_TEMPLATE = 1; - private static final int METHODID_INSTANTIATE_WORKFLOW_TEMPLATE = 2; - private static final int METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE = 3; - private static final int METHODID_UPDATE_WORKFLOW_TEMPLATE = 4; - private static final int METHODID_LIST_WORKFLOW_TEMPLATES = 5; - private static final int METHODID_DELETE_WORKFLOW_TEMPLATE = 6; - - 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 WorkflowTemplateServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WorkflowTemplateServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WORKFLOW_TEMPLATE: - serviceImpl.createWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_WORKFLOW_TEMPLATE: - serviceImpl.getWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_INSTANTIATE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateInlineWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKFLOW_TEMPLATE: - serviceImpl.updateWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKFLOW_TEMPLATES: - serviceImpl.listWorkflowTemplates( - (com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse>) - responseObserver); - break; - case METHODID_DELETE_WORKFLOW_TEMPLATE: - serviceImpl.deleteWorkflowTemplate( - (com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) 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 WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkflowTemplateServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WorkflowTemplateService"); - } - } - - private static final class WorkflowTemplateServiceFileDescriptorSupplier - extends WorkflowTemplateServiceBaseDescriptorSupplier { - WorkflowTemplateServiceFileDescriptorSupplier() {} - } - - private static final class WorkflowTemplateServiceMethodDescriptorSupplier - extends WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WorkflowTemplateServiceMethodDescriptorSupplier(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 (WorkflowTemplateServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkflowTemplateMethod()) - .addMethod(getGetWorkflowTemplateMethod()) - .addMethod(getInstantiateWorkflowTemplateMethod()) - .addMethod(getInstantiateInlineWorkflowTemplateMethod()) - .addMethod(getUpdateWorkflowTemplateMethod()) - .addMethod(getListWorkflowTemplatesMethod()) - .addMethod(getDeleteWorkflowTemplateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/pom.xml b/pom.xml index d67b6a72..7fbb691c 100644 --- a/pom.xml +++ b/pom.xml @@ -58,11 +58,6 @@ - - com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - com.google.api.grpc proto-google-cloud-dataproc-v1 @@ -73,11 +68,6 @@ grpc-google-cloud-dataproc-v1 2.1.5-SNAPSHOT - - com.google.api.grpc - grpc-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - com.google.cloud google-cloud-dataproc @@ -121,8 +111,6 @@ google-cloud-dataproc grpc-google-cloud-dataproc-v1 - grpc-google-cloud-dataproc-v1beta2 - proto-google-cloud-dataproc-v1beta2 proto-google-cloud-dataproc-v1 google-cloud-dataproc-bom diff --git a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml deleted file mode 100644 index afdef514..00000000 --- a/proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/dataproc/v1beta2/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/dataproc/v1beta2/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/dataproc/v1beta2/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-dataproc-v1beta2/pom.xml b/proto-google-cloud-dataproc-v1beta2/pom.xml deleted file mode 100644 index 9afebcc7..00000000 --- a/proto-google-cloud-dataproc-v1beta2/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-dataproc-v1beta2 - 0.95.5-SNAPSHOT - proto-google-cloud-dataproc-v1beta2 - PROTO library for proto-google-cloud-dataproc-v1beta2 - - com.google.cloud - google-cloud-dataproc-parent - 2.1.5-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java deleted file mode 100644 index 43e8f023..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java +++ /dev/null @@ -1,814 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies the type and number of accelerator cards attached to the instances
- * of an instance group (see [GPUs on Compute
- * Engine](https://cloud.google.com/compute/docs/gpus/)).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AcceleratorConfig} - */ -public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.AcceleratorConfig) - AcceleratorConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AcceleratorConfig.newBuilder() to construct. - private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AcceleratorConfig() { - acceleratorTypeUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcceleratorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AcceleratorConfig( - 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(); - - acceleratorTypeUri_ = s; - break; - } - case 16: - { - acceleratorCount_ = input.readInt32(); - 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.class, - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder.class); - } - - public static final int ACCELERATOR_TYPE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object acceleratorTypeUri_; - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-   * Examples
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - @java.lang.Override - public java.lang.String getAcceleratorTypeUri() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorTypeUri_ = s; - return s; - } - } - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-   * Examples
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 2; - private int acceleratorCount_; - /** - * - * - *
-   * The number of the accelerator cards of this type exposed to this instance.
-   * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public int getAcceleratorCount() { - return acceleratorCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAcceleratorTypeUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acceleratorTypeUri_); - } - if (acceleratorCount_ != 0) { - output.writeInt32(2, acceleratorCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAcceleratorTypeUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acceleratorTypeUri_); - } - if (acceleratorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_); - } - 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.dataproc.v1beta2.AcceleratorConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.AcceleratorConfig other = - (com.google.cloud.dataproc.v1beta2.AcceleratorConfig) obj; - - if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false; - if (getAcceleratorCount() != other.getAcceleratorCount()) 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) + ACCELERATOR_TYPE_URI_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorTypeUri().hashCode(); - hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig 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.dataproc.v1beta2.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig 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.dataproc.v1beta2.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig 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.dataproc.v1beta2.AcceleratorConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the type and number of accelerator cards attached to the instances
-   * of an instance group (see [GPUs on Compute
-   * Engine](https://cloud.google.com/compute/docs/gpus/)).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AcceleratorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.AcceleratorConfig) - com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.class, - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.AcceleratorConfig.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(); - acceleratorTypeUri_ = ""; - - acceleratorCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.AcceleratorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig build() { - com.google.cloud.dataproc.v1beta2.AcceleratorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.AcceleratorConfig result = - new com.google.cloud.dataproc.v1beta2.AcceleratorConfig(this); - result.acceleratorTypeUri_ = acceleratorTypeUri_; - result.acceleratorCount_ = acceleratorCount_; - 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.dataproc.v1beta2.AcceleratorConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.AcceleratorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.AcceleratorConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.AcceleratorConfig.getDefaultInstance()) - return this; - if (!other.getAcceleratorTypeUri().isEmpty()) { - acceleratorTypeUri_ = other.acceleratorTypeUri_; - onChanged(); - } - if (other.getAcceleratorCount() != 0) { - setAcceleratorCount(other.getAcceleratorCount()); - } - 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.dataproc.v1beta2.AcceleratorConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.AcceleratorConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object acceleratorTypeUri_ = ""; - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-     * Examples
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - public java.lang.String getAcceleratorTypeUri() { - java.lang.Object ref = acceleratorTypeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorTypeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-     * Examples
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-     * Examples
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @param value The acceleratorTypeUri to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acceleratorTypeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-     * Examples
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorTypeUri() { - - acceleratorTypeUri_ = getDefaultInstance().getAcceleratorTypeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-     * Examples
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @param value The bytes for acceleratorTypeUri to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acceleratorTypeUri_ = value; - onChanged(); - return this; - } - - private int acceleratorCount_; - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public int getAcceleratorCount() { - return acceleratorCount_; - } - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @param value The acceleratorCount to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorCount(int value) { - - acceleratorCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorCount() { - - acceleratorCount_ = 0; - 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.dataproc.v1beta2.AcceleratorConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AcceleratorConfig) - private static final com.google.cloud.dataproc.v1beta2.AcceleratorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.AcceleratorConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.AcceleratorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcceleratorConfig(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.dataproc.v1beta2.AcceleratorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java deleted file mode 100644 index bac648d0..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,87 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface AcceleratorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.AcceleratorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-   * Examples
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - java.lang.String getAcceleratorTypeUri(); - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes)
-   * Examples
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - com.google.protobuf.ByteString getAcceleratorTypeUriBytes(); - - /** - * - * - *
-   * The number of the accelerator cards of this type exposed to this instance.
-   * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - int getAcceleratorCount(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java deleted file mode 100644 index 9c631151..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java +++ /dev/null @@ -1,671 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Autoscaling Policy config associated with the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingConfig} - */ -public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.AutoscalingConfig) - AutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscalingConfig.newBuilder() to construct. - private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscalingConfig() { - policyUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoscalingConfig( - 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(); - - policyUri_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.class, - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder.class); - } - - public static final int POLICY_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object policyUri_; - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - @java.lang.Override - public java.lang.String getPolicyUri() { - java.lang.Object ref = policyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyUriBytes() { - java.lang.Object ref = policyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPolicyUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPolicyUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_); - } - 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.dataproc.v1beta2.AutoscalingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.AutoscalingConfig other = - (com.google.cloud.dataproc.v1beta2.AutoscalingConfig) obj; - - if (!getPolicyUri().equals(other.getPolicyUri())) 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) + POLICY_URI_FIELD_NUMBER; - hash = (53 * hash) + getPolicyUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig 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.dataproc.v1beta2.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig 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.dataproc.v1beta2.AutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig 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.dataproc.v1beta2.AutoscalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Autoscaling Policy config associated with the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.AutoscalingConfig) - com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.class, - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.AutoscalingConfig.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(); - policyUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig build() { - com.google.cloud.dataproc.v1beta2.AutoscalingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.AutoscalingConfig result = - new com.google.cloud.dataproc.v1beta2.AutoscalingConfig(this); - result.policyUri_ = policyUri_; - 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.dataproc.v1beta2.AutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.AutoscalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.AutoscalingConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance()) - return this; - if (!other.getPolicyUri().isEmpty()) { - policyUri_ = other.policyUri_; - 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.dataproc.v1beta2.AutoscalingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.AutoscalingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object policyUri_ = ""; - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - public java.lang.String getPolicyUri() { - java.lang.Object ref = policyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - public com.google.protobuf.ByteString getPolicyUriBytes() { - java.lang.Object ref = policyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The policyUri to set. - * @return This builder for chaining. - */ - public Builder setPolicyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - policyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyUri() { - - policyUri_ = getDefaultInstance().getPolicyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for policyUri to set. - * @return This builder for chaining. - */ - public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - policyUri_ = 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.dataproc.v1beta2.AutoscalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AutoscalingConfig) - private static final com.google.cloud.dataproc.v1beta2.AutoscalingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.AutoscalingConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoscalingConfig(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.dataproc.v1beta2.AutoscalingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java deleted file mode 100644 index 03a5f9bd..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java +++ /dev/null @@ -1,60 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface AutoscalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.AutoscalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - java.lang.String getPolicyUri(); - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - com.google.protobuf.ByteString getPolicyUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java deleted file mode 100644 index 096b7f2e..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java +++ /dev/null @@ -1,294 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class AutoscalingPoliciesProto { - private AutoscalingPoliciesProto() {} - - 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_dataproc_v1beta2_AutoscalingPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/dataproc/v1beta2/autoscal" - + "ing_policies.proto\022\035google.cloud.datapro" - + "c.v1beta2\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\036google/protobuf/duration.proto\032\033go" - + "ogle/protobuf/empty.proto\"\271\004\n\021Autoscalin" - + "gPolicy\022\017\n\002id\030\001 \001(\tB\003\340A\002\022\021\n\004name\030\002 \001(\tB\003" - + "\340A\003\022S\n\017basic_algorithm\030\003 \001(\01328.google.cl" - + "oud.dataproc.v1beta2.BasicAutoscalingAlg" - + "orithmH\000\022_\n\rworker_config\030\004 \001(\0132C.google" - + ".cloud.dataproc.v1beta2.InstanceGroupAut" - + "oscalingPolicyConfigB\003\340A\002\022i\n\027secondary_w" - + "orker_config\030\005 \001(\0132C.google.cloud.datapr" - + "oc.v1beta2.InstanceGroupAutoscalingPolic" - + "yConfigB\003\340A\001:\321\001\352A\315\001\n)dataproc.googleapis" - + ".com/AutoscalingPolicy\022Pprojects/{projec" - + "t}/locations/{location}/autoscalingPolic" - + "ies/{autoscaling_policy}\022Lprojects/{proj" - + "ect}/regions/{region}/autoscalingPolicie" - + "s/{autoscaling_policy} \001B\013\n\talgorithm\"\251\001" - + "\n\031BasicAutoscalingAlgorithm\022S\n\013yarn_conf" - + "ig\030\001 \001(\01329.google.cloud.dataproc.v1beta2" - + ".BasicYarnAutoscalingConfigB\003\340A\002\0227\n\017cool" - + "down_period\030\002 \001(\0132\031.google.protobuf.Dura" - + "tionB\003\340A\001\"\371\001\n\032BasicYarnAutoscalingConfig" - + "\022E\n\035graceful_decommission_timeout\030\005 \001(\0132" - + "\031.google.protobuf.DurationB\003\340A\002\022\034\n\017scale" - + "_up_factor\030\001 \001(\001B\003\340A\002\022\036\n\021scale_down_fact" - + "or\030\002 \001(\001B\003\340A\002\022)\n\034scale_up_min_worker_fra" - + "ction\030\003 \001(\001B\003\340A\001\022+\n\036scale_down_min_worke" - + "r_fraction\030\004 \001(\001B\003\340A\001\"s\n$InstanceGroupAu" - + "toscalingPolicyConfig\022\032\n\rmin_instances\030\001" - + " \001(\005B\003\340A\001\022\032\n\rmax_instances\030\002 \001(\005B\003\340A\001\022\023\n" - + "\006weight\030\003 \001(\005B\003\340A\001\"\252\001\n\036CreateAutoscaling" - + "PolicyRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)d" - + "ataproc.googleapis.com/AutoscalingPolicy" - + "\022E\n\006policy\030\002 \001(\01320.google.cloud.dataproc" - + ".v1beta2.AutoscalingPolicyB\003\340A\002\"^\n\033GetAu" - + "toscalingPolicyRequest\022?\n\004name\030\001 \001(\tB1\340A" - + "\002\372A+\n)dataproc.googleapis.com/Autoscalin" - + "gPolicy\"g\n\036UpdateAutoscalingPolicyReques" - + "t\022E\n\006policy\030\001 \001(\01320.google.cloud.datapro" - + "c.v1beta2.AutoscalingPolicyB\003\340A\002\"a\n\036Dele" - + "teAutoscalingPolicyRequest\022?\n\004name\030\001 \001(\t" - + "B1\340A\002\372A+\n)dataproc.googleapis.com/Autosc" - + "alingPolicy\"\224\001\n\036ListAutoscalingPoliciesR" - + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc" - + ".googleapis.com/AutoscalingPolicy\022\026\n\tpag" - + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" - + "A\001\"\210\001\n\037ListAutoscalingPoliciesResponse\022G" - + "\n\010policies\030\001 \003(\01320.google.cloud.dataproc" - + ".v1beta2.AutoscalingPolicyB\003\340A\003\022\034\n\017next_" - + "page_token\030\002 \001(\tB\003\340A\0032\217\014\n\030AutoscalingPol" - + "icyService\022\260\002\n\027CreateAutoscalingPolicy\022=" - + ".google.cloud.dataproc.v1beta2.CreateAut" - + "oscalingPolicyRequest\0320.google.cloud.dat" - + "aproc.v1beta2.AutoscalingPolicy\"\243\001\202\323\344\223\002\214" - + "\001\"." - + "google.cloud.dataproc.v1beta2.ListAutosc" - + "alingPoliciesResponse\"\213\001\202\323\344\223\002|\022 - * Describes an autoscaling policy for Dataproc cluster autoscaler. - * - * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingPolicy} - */ -public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.AutoscalingPolicy) - AutoscalingPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscalingPolicy.newBuilder() to construct. - private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscalingPolicy() { - id_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscalingPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoscalingPolicy( - 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(); - - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder subBuilder = null; - if (algorithmCase_ == 3) { - subBuilder = - ((com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_) - .toBuilder(); - } - algorithm_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_); - algorithm_ = subBuilder.buildPartial(); - } - algorithmCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - subBuilder = null; - if (workerConfig_ != null) { - subBuilder = workerConfig_.toBuilder(); - } - workerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerConfig_); - workerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - subBuilder = null; - if (secondaryWorkerConfig_ != null) { - subBuilder = secondaryWorkerConfig_.toBuilder(); - } - secondaryWorkerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryWorkerConfig_); - secondaryWorkerConfig_ = 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder.class); - } - - private int algorithmCase_ = 0; - private java.lang.Object algorithm_; - - public enum AlgorithmCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BASIC_ALGORITHM(3), - ALGORITHM_NOT_SET(0); - private final int value; - - private AlgorithmCase(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 AlgorithmCase valueOf(int value) { - return forNumber(value); - } - - public static AlgorithmCase forNumber(int value) { - switch (value) { - case 3: - return BASIC_ALGORITHM; - case 0: - return ALGORITHM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASIC_ALGORITHM_FIELD_NUMBER = 3; - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return Whether the basicAlgorithm field is set. - */ - @java.lang.Override - public boolean hasBasicAlgorithm() { - return algorithmCase_ == 3; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return The basicAlgorithm. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm() { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - - public static final int WORKER_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig workerConfig_; - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - @java.lang.Override - public boolean hasWorkerConfig() { - return workerConfig_ != null; - } - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : workerConfig_; - } - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { - return getWorkerConfig(); - } - - public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - secondaryWorkerConfig_; - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - @java.lang.Override - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfig_ != null; - } - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : secondaryWorkerConfig_; - } - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - return getSecondaryWorkerConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (algorithmCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_); - } - if (workerConfig_ != null) { - output.writeMessage(4, getWorkerConfig()); - } - if (secondaryWorkerConfig_ != null) { - output.writeMessage(5, getSecondaryWorkerConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (algorithmCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_); - } - if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkerConfig()); - } - if (secondaryWorkerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecondaryWorkerConfig()); - } - 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.dataproc.v1beta2.AutoscalingPolicy)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy other = - (com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) obj; - - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (hasWorkerConfig() != other.hasWorkerConfig()) return false; - if (hasWorkerConfig()) { - if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; - } - if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; - if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; - } - if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false; - switch (algorithmCase_) { - case 3: - if (!getBasicAlgorithm().equals(other.getBasicAlgorithm())) 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(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasWorkerConfig()) { - hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkerConfig().hashCode(); - } - if (hasSecondaryWorkerConfig()) { - hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryWorkerConfig().hashCode(); - } - switch (algorithmCase_) { - case 3: - hash = (37 * hash) + BASIC_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + getBasicAlgorithm().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy 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.dataproc.v1beta2.AutoscalingPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy 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.dataproc.v1beta2.AutoscalingPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy 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.dataproc.v1beta2.AutoscalingPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Describes an autoscaling policy for Dataproc cluster autoscaler.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.AutoscalingPolicy) - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.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(); - id_ = ""; - - name_ = ""; - - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - algorithmCase_ = 0; - algorithm_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy build() { - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy buildPartial() { - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy result = - new com.google.cloud.dataproc.v1beta2.AutoscalingPolicy(this); - result.id_ = id_; - result.name_ = name_; - if (algorithmCase_ == 3) { - if (basicAlgorithmBuilder_ == null) { - result.algorithm_ = algorithm_; - } else { - result.algorithm_ = basicAlgorithmBuilder_.build(); - } - } - if (workerConfigBuilder_ == null) { - result.workerConfig_ = workerConfig_; - } else { - result.workerConfig_ = workerConfigBuilder_.build(); - } - if (secondaryWorkerConfigBuilder_ == null) { - result.secondaryWorkerConfig_ = secondaryWorkerConfig_; - } else { - result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build(); - } - result.algorithmCase_ = algorithmCase_; - 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.dataproc.v1beta2.AutoscalingPolicy) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy other) { - if (other == com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()) - return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasWorkerConfig()) { - mergeWorkerConfig(other.getWorkerConfig()); - } - if (other.hasSecondaryWorkerConfig()) { - mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); - } - switch (other.getAlgorithmCase()) { - case BASIC_ALGORITHM: - { - mergeBasicAlgorithm(other.getBasicAlgorithm()); - break; - } - case ALGORITHM_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.dataproc.v1beta2.AutoscalingPolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int algorithmCase_ = 0; - private java.lang.Object algorithm_; - - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); - } - - public Builder clearAlgorithm() { - algorithmCase_ = 0; - algorithm_ = null; - onChanged(); - return this; - } - - private java.lang.Object id_ = ""; - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder> - basicAlgorithmBuilder_; - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return Whether the basicAlgorithm field is set. - */ - @java.lang.Override - public boolean hasBasicAlgorithm() { - return algorithmCase_ == 3; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return The basicAlgorithm. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm() { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } else { - if (algorithmCase_ == 3) { - return basicAlgorithmBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - public Builder setBasicAlgorithm( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm value) { - if (basicAlgorithmBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithm_ = value; - onChanged(); - } else { - basicAlgorithmBuilder_.setMessage(value); - } - algorithmCase_ = 3; - return this; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - public Builder setBasicAlgorithm( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder builderForValue) { - if (basicAlgorithmBuilder_ == null) { - algorithm_ = builderForValue.build(); - onChanged(); - } else { - basicAlgorithmBuilder_.setMessage(builderForValue.build()); - } - algorithmCase_ = 3; - return this; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - public Builder mergeBasicAlgorithm( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm value) { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3 - && algorithm_ - != com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm - .getDefaultInstance()) { - algorithm_ = - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.newBuilder( - (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_) - .mergeFrom(value) - .buildPartial(); - } else { - algorithm_ = value; - } - onChanged(); - } else { - if (algorithmCase_ == 3) { - basicAlgorithmBuilder_.mergeFrom(value); - } - basicAlgorithmBuilder_.setMessage(value); - } - algorithmCase_ = 3; - return this; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - public Builder clearBasicAlgorithm() { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3) { - algorithmCase_ = 0; - algorithm_ = null; - onChanged(); - } - } else { - if (algorithmCase_ == 3) { - algorithmCase_ = 0; - algorithm_ = null; - } - basicAlgorithmBuilder_.clear(); - } - return this; - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder - getBasicAlgorithmBuilder() { - return getBasicAlgorithmFieldBuilder().getBuilder(); - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { - if ((algorithmCase_ == 3) && (basicAlgorithmBuilder_ != null)) { - return basicAlgorithmBuilder_.getMessageOrBuilder(); - } else { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - } - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder> - getBasicAlgorithmFieldBuilder() { - if (basicAlgorithmBuilder_ == null) { - if (!(algorithmCase_ == 3)) { - algorithm_ = - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - basicAlgorithmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder>( - (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_, - getParentForChildren(), - isClean()); - algorithm_ = null; - } - algorithmCase_ = 3; - onChanged(); - ; - return basicAlgorithmBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig workerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder> - workerConfigBuilder_; - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - public boolean hasWorkerConfig() { - return workerConfigBuilder_ != null || workerConfig_ != null; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getWorkerConfig() { - if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : workerConfig_; - } else { - return workerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) { - if (workerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerConfig_ = value; - onChanged(); - } else { - workerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - builderForValue) { - if (workerConfigBuilder_ == null) { - workerConfig_ = builderForValue.build(); - onChanged(); - } else { - workerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) { - if (workerConfigBuilder_ == null) { - if (workerConfig_ != null) { - workerConfig_ = - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.newBuilder( - workerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workerConfig_ = value; - } - onChanged(); - } else { - workerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWorkerConfig() { - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - onChanged(); - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - getWorkerConfigBuilder() { - - onChanged(); - return getWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { - if (workerConfigBuilder_ != null) { - return workerConfigBuilder_.getMessageOrBuilder(); - } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : workerConfig_; - } - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder> - getWorkerConfigFieldBuilder() { - if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); - workerConfig_ = null; - } - return workerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - secondaryWorkerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder> - secondaryWorkerConfigBuilder_; - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : secondaryWorkerConfig_; - } else { - return secondaryWorkerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - secondaryWorkerConfig_ = value; - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - builderForValue) { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = builderForValue.build(); - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (secondaryWorkerConfig_ != null) { - secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.newBuilder( - secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - secondaryWorkerConfig_ = value; - } - onChanged(); - } else { - secondaryWorkerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - onChanged(); - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder - getSecondaryWorkerConfigBuilder() { - - onChanged(); - return getSecondaryWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - if (secondaryWorkerConfigBuilder_ != null) { - return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); - } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance() - : secondaryWorkerConfig_; - } - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder> - getSecondaryWorkerConfigFieldBuilder() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); - secondaryWorkerConfig_ = null; - } - return secondaryWorkerConfigBuilder_; - } - - @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.dataproc.v1beta2.AutoscalingPolicy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AutoscalingPolicy) - private static final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.AutoscalingPolicy(); - } - - public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoscalingPolicy(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.dataproc.v1beta2.AutoscalingPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java deleted file mode 100644 index 26b3a3ab..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AutoscalingPolicyName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String location; - private final String autoscalingPolicy; - private final String region; - - @Deprecated - protected AutoscalingPolicyName() { - project = null; - location = null; - autoscalingPolicy = null; - region = null; - } - - private AutoscalingPolicyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy()); - region = null; - pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY; - } - - private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy()); - location = null; - pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY; - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public String getRegion() { - return region; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectLocationAutoscalingPolicyBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectRegionAutoscalingPolicyBuilder newProjectRegionAutoscalingPolicyBuilder() { - return new ProjectRegionAutoscalingPolicyBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AutoscalingPolicyName of( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static AutoscalingPolicyName ofProjectLocationAutoscalingPolicyName( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static AutoscalingPolicyName ofProjectRegionAutoscalingPolicyName( - String project, String region, String autoscalingPolicy) { - return newProjectRegionAutoscalingPolicyBuilder() - .setProject(project) - .setRegion(region) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - public static String format(String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationAutoscalingPolicyName( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectRegionAutoscalingPolicyName( - String project, String region, String autoscalingPolicy) { - return newProjectRegionAutoscalingPolicyBuilder() - .setProject(project) - .setRegion(region) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - public static AutoscalingPolicyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_AUTOSCALING_POLICY.match(formattedString); - return ofProjectLocationAutoscalingPolicyName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("autoscaling_policy")); - } else if (PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString)) { - Map matchMap = PROJECT_REGION_AUTOSCALING_POLICY.match(formattedString); - return ofProjectRegionAutoscalingPolicyName( - matchMap.get("project"), matchMap.get("region"), matchMap.get("autoscaling_policy")); - } - throw new ValidationException( - "AutoscalingPolicyName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AutoscalingPolicyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString) - || PROJECT_REGION_AUTOSCALING_POLICY.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 (autoscalingPolicy != null) { - fieldMapBuilder.put("autoscaling_policy", autoscalingPolicy); - } - if (region != null) { - fieldMapBuilder.put("region", region); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AutoscalingPolicyName that = ((AutoscalingPolicyName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy) - && Objects.equals(this.region, that.region); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(autoscalingPolicy); - h *= 1000003; - h ^= Objects.hashCode(region); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}. - */ - public static class Builder { - private String project; - private String location; - private String autoscalingPolicy; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setAutoscalingPolicy(String autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - private Builder(AutoscalingPolicyName autoscalingPolicyName) { - Preconditions.checkArgument( - Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY), - "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - this.project = autoscalingPolicyName.project; - this.location = autoscalingPolicyName.location; - this.autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; - } - - public AutoscalingPolicyName build() { - return new AutoscalingPolicyName(this); - } - } - - /** Builder for projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectRegionAutoscalingPolicyBuilder { - private String project; - private String region; - private String autoscalingPolicy; - - protected ProjectRegionAutoscalingPolicyBuilder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public ProjectRegionAutoscalingPolicyBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectRegionAutoscalingPolicyBuilder setRegion(String region) { - this.region = region; - return this; - } - - public ProjectRegionAutoscalingPolicyBuilder setAutoscalingPolicy(String autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - public AutoscalingPolicyName build() { - return new AutoscalingPolicyName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java deleted file mode 100644 index 11a1efb9..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java +++ /dev/null @@ -1,196 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface AutoscalingPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.AutoscalingPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return Whether the basicAlgorithm field is set. - */ - boolean hasBasicAlgorithm(); - /** - * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; - * - * @return The basicAlgorithm. - */ - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm(); - /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */ - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder(); - - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - boolean hasWorkerConfig(); - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getWorkerConfig(); - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - boolean hasSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.AlgorithmCase getAlgorithmCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java deleted file mode 100644 index 86617fd6..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java +++ /dev/null @@ -1,1087 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Basic algorithm for autoscaling.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm} - */ -public final class BasicAutoscalingAlgorithm extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) - BasicAutoscalingAlgorithmOrBuilder { - private static final long serialVersionUID = 0L; - // Use BasicAutoscalingAlgorithm.newBuilder() to construct. - private BasicAutoscalingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BasicAutoscalingAlgorithm() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BasicAutoscalingAlgorithm(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BasicAutoscalingAlgorithm( - 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.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder subBuilder = - null; - if (yarnConfig_ != null) { - subBuilder = yarnConfig_.toBuilder(); - } - yarnConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(yarnConfig_); - yarnConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (cooldownPeriod_ != null) { - subBuilder = cooldownPeriod_.toBuilder(); - } - cooldownPeriod_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cooldownPeriod_); - cooldownPeriod_ = 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder.class); - } - - public static final int YARN_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarnConfig_; - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - @java.lang.Override - public boolean hasYarnConfig() { - return yarnConfig_ != null; - } - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig() { - return yarnConfig_ == null - ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance() - : yarnConfig_; - } - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder - getYarnConfigOrBuilder() { - return getYarnConfig(); - } - - public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2; - private com.google.protobuf.Duration cooldownPeriod_; - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - @java.lang.Override - public boolean hasCooldownPeriod() { - return cooldownPeriod_ != null; - } - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - @java.lang.Override - public com.google.protobuf.Duration getCooldownPeriod() { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { - return getCooldownPeriod(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (yarnConfig_ != null) { - output.writeMessage(1, getYarnConfig()); - } - if (cooldownPeriod_ != null) { - output.writeMessage(2, getCooldownPeriod()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (yarnConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getYarnConfig()); - } - if (cooldownPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod()); - } - 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.dataproc.v1beta2.BasicAutoscalingAlgorithm)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm other = - (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) obj; - - if (hasYarnConfig() != other.hasYarnConfig()) return false; - if (hasYarnConfig()) { - if (!getYarnConfig().equals(other.getYarnConfig())) return false; - } - if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false; - if (hasCooldownPeriod()) { - if (!getCooldownPeriod().equals(other.getCooldownPeriod())) 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 (hasYarnConfig()) { - hash = (37 * hash) + YARN_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getYarnConfig().hashCode(); - } - if (hasCooldownPeriod()) { - hash = (37 * hash) + COOLDOWN_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getCooldownPeriod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm 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.dataproc.v1beta2.BasicAutoscalingAlgorithm parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm 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.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm 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.dataproc.v1beta2.BasicAutoscalingAlgorithm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Basic algorithm for autoscaling.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.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 (yarnConfigBuilder_ == null) { - yarnConfig_ = null; - } else { - yarnConfig_ = null; - yarnConfigBuilder_ = null; - } - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = null; - } else { - cooldownPeriod_ = null; - cooldownPeriodBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm build() { - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm buildPartial() { - com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm result = - new com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm(this); - if (yarnConfigBuilder_ == null) { - result.yarnConfig_ = yarnConfig_; - } else { - result.yarnConfig_ = yarnConfigBuilder_.build(); - } - if (cooldownPeriodBuilder_ == null) { - result.cooldownPeriod_ = cooldownPeriod_; - } else { - result.cooldownPeriod_ = cooldownPeriodBuilder_.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.dataproc.v1beta2.BasicAutoscalingAlgorithm) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm other) { - if (other == com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance()) - return this; - if (other.hasYarnConfig()) { - mergeYarnConfig(other.getYarnConfig()); - } - if (other.hasCooldownPeriod()) { - mergeCooldownPeriod(other.getCooldownPeriod()); - } - 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.dataproc.v1beta2.BasicAutoscalingAlgorithm parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarnConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder> - yarnConfigBuilder_; - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - public boolean hasYarnConfig() { - return yarnConfigBuilder_ != null || yarnConfig_ != null; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig() { - if (yarnConfigBuilder_ == null) { - return yarnConfig_ == null - ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance() - : yarnConfig_; - } else { - return yarnConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setYarnConfig( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig value) { - if (yarnConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - yarnConfig_ = value; - onChanged(); - } else { - yarnConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setYarnConfig( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder builderForValue) { - if (yarnConfigBuilder_ == null) { - yarnConfig_ = builderForValue.build(); - onChanged(); - } else { - yarnConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeYarnConfig( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig value) { - if (yarnConfigBuilder_ == null) { - if (yarnConfig_ != null) { - yarnConfig_ = - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.newBuilder(yarnConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - yarnConfig_ = value; - } - onChanged(); - } else { - yarnConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearYarnConfig() { - if (yarnConfigBuilder_ == null) { - yarnConfig_ = null; - onChanged(); - } else { - yarnConfig_ = null; - yarnConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder - getYarnConfigBuilder() { - - onChanged(); - return getYarnConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder - getYarnConfigOrBuilder() { - if (yarnConfigBuilder_ != null) { - return yarnConfigBuilder_.getMessageOrBuilder(); - } else { - return yarnConfig_ == null - ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance() - : yarnConfig_; - } - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder> - getYarnConfigFieldBuilder() { - if (yarnConfigBuilder_ == null) { - yarnConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder>( - getYarnConfig(), getParentForChildren(), isClean()); - yarnConfig_ = null; - } - return yarnConfigBuilder_; - } - - private com.google.protobuf.Duration cooldownPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - cooldownPeriodBuilder_; - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - public boolean hasCooldownPeriod() { - return cooldownPeriodBuilder_ != null || cooldownPeriod_ != null; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - public com.google.protobuf.Duration getCooldownPeriod() { - if (cooldownPeriodBuilder_ == null) { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } else { - return cooldownPeriodBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCooldownPeriod(com.google.protobuf.Duration value) { - if (cooldownPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cooldownPeriod_ = value; - onChanged(); - } else { - cooldownPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderForValue) { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = builderForValue.build(); - onChanged(); - } else { - cooldownPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { - if (cooldownPeriodBuilder_ == null) { - if (cooldownPeriod_ != null) { - cooldownPeriod_ = - com.google.protobuf.Duration.newBuilder(cooldownPeriod_) - .mergeFrom(value) - .buildPartial(); - } else { - cooldownPeriod_ = value; - } - onChanged(); - } else { - cooldownPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearCooldownPeriod() { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = null; - onChanged(); - } else { - cooldownPeriod_ = null; - cooldownPeriodBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getCooldownPeriodBuilder() { - - onChanged(); - return getCooldownPeriodFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { - if (cooldownPeriodBuilder_ != null) { - return cooldownPeriodBuilder_.getMessageOrBuilder(); - } else { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getCooldownPeriodFieldBuilder() { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getCooldownPeriod(), getParentForChildren(), isClean()); - cooldownPeriod_ = null; - } - return cooldownPeriodBuilder_; - } - - @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.dataproc.v1beta2.BasicAutoscalingAlgorithm) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) - private static final com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm(); - } - - public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAutoscalingAlgorithm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicAutoscalingAlgorithm(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.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java deleted file mode 100644 index bb27342e..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java +++ /dev/null @@ -1,110 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface BasicAutoscalingAlgorithmOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - boolean hasYarnConfig(); - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig(); - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - boolean hasCooldownPeriod(); - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - com.google.protobuf.Duration getCooldownPeriod(); - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java deleted file mode 100644 index 6b0f63cc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java +++ /dev/null @@ -1,1300 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Basic autoscaling configurations for YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig} - */ -public final class BasicYarnAutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) - BasicYarnAutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use BasicYarnAutoscalingConfig.newBuilder() to construct. - private BasicYarnAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BasicYarnAutoscalingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BasicYarnAutoscalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BasicYarnAutoscalingConfig( - 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 9: - { - scaleUpFactor_ = input.readDouble(); - break; - } - case 17: - { - scaleDownFactor_ = input.readDouble(); - break; - } - case 25: - { - scaleUpMinWorkerFraction_ = input.readDouble(); - break; - } - case 33: - { - scaleDownMinWorkerFraction_ = input.readDouble(); - break; - } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (gracefulDecommissionTimeout_ != null) { - subBuilder = gracefulDecommissionTimeout_.toBuilder(); - } - gracefulDecommissionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gracefulDecommissionTimeout_); - gracefulDecommissionTimeout_ = 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder.class); - } - - public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 5; - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - @java.lang.Override - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - return getGracefulDecommissionTimeout(); - } - - public static final int SCALE_UP_FACTOR_FIELD_NUMBER = 1; - private double scaleUpFactor_; - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown
-   * period for which to add workers. A scale-up factor of 1.0 will result in
-   * scaling up so that there is no pending memory remaining after the update
-   * (more aggressive scaling). A scale-up factor closer to 0 will result in a
-   * smaller magnitude of scaling up (less aggressive scaling). See [How
-   * autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - @java.lang.Override - public double getScaleUpFactor() { - return scaleUpFactor_; - } - - public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER = 2; - private double scaleDownFactor_; - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown
-   * period for which to remove workers. A scale-down factor of 1 will result in
-   * scaling down so that there is no available memory remaining after the
-   * update (more aggressive scaling). A scale-down factor of 0 disables
-   * removing workers, which can be beneficial for autoscaling a single job.
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - @java.lang.Override - public double getScaleDownFactor() { - return scaleDownFactor_; - } - - public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER = 3; - private double scaleUpMinWorkerFraction_; - /** - * - * - *
-   * Optional. Minimum scale-up threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scaleUpMinWorkerFraction. - */ - @java.lang.Override - public double getScaleUpMinWorkerFraction() { - return scaleUpMinWorkerFraction_; - } - - public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER = 4; - private double scaleDownMinWorkerFraction_; - /** - * - * - *
-   * Optional. Minimum scale-down threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - @java.lang.Override - public double getScaleDownMinWorkerFraction() { - return scaleDownMinWorkerFraction_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scaleUpFactor_ != 0D) { - output.writeDouble(1, scaleUpFactor_); - } - if (scaleDownFactor_ != 0D) { - output.writeDouble(2, scaleDownFactor_); - } - if (scaleUpMinWorkerFraction_ != 0D) { - output.writeDouble(3, scaleUpMinWorkerFraction_); - } - if (scaleDownMinWorkerFraction_ != 0D) { - output.writeDouble(4, scaleDownMinWorkerFraction_); - } - if (gracefulDecommissionTimeout_ != null) { - output.writeMessage(5, getGracefulDecommissionTimeout()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scaleUpFactor_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_); - } - if (scaleDownFactor_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_); - } - if (scaleUpMinWorkerFraction_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_); - } - if (scaleDownMinWorkerFraction_ != 0D) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_); - } - if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getGracefulDecommissionTimeout()); - } - 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.dataproc.v1beta2.BasicYarnAutoscalingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig other = - (com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) obj; - - if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; - if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; - } - if (java.lang.Double.doubleToLongBits(getScaleUpFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleUpFactor())) return false; - if (java.lang.Double.doubleToLongBits(getScaleDownFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleDownFactor())) return false; - if (java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false; - if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) 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 (hasGracefulDecommissionTimeout()) { - hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); - } - hash = (37 * hash) + SCALE_UP_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpFactor())); - hash = (37 * hash) + SCALE_DOWN_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownFactor())); - hash = (37 * hash) + SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); - hash = (37 * hash) + SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig 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.dataproc.v1beta2.BasicYarnAutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig 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.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig 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.dataproc.v1beta2.BasicYarnAutoscalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Basic autoscaling configurations for YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.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 (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - scaleUpFactor_ = 0D; - - scaleDownFactor_ = 0D; - - scaleUpMinWorkerFraction_ = 0D; - - scaleDownMinWorkerFraction_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig build() { - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig result = - new com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig(this); - if (gracefulDecommissionTimeoutBuilder_ == null) { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; - } else { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build(); - } - result.scaleUpFactor_ = scaleUpFactor_; - result.scaleDownFactor_ = scaleDownFactor_; - result.scaleUpMinWorkerFraction_ = scaleUpMinWorkerFraction_; - result.scaleDownMinWorkerFraction_ = scaleDownMinWorkerFraction_; - 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.dataproc.v1beta2.BasicYarnAutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig other) { - if (other - == com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance()) - return this; - if (other.hasGracefulDecommissionTimeout()) { - mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); - } - if (other.getScaleUpFactor() != 0D) { - setScaleUpFactor(other.getScaleUpFactor()); - } - if (other.getScaleDownFactor() != 0D) { - setScaleDownFactor(other.getScaleDownFactor()); - } - if (other.getScaleUpMinWorkerFraction() != 0D) { - setScaleUpMinWorkerFraction(other.getScaleUpMinWorkerFraction()); - } - if (other.getScaleDownMinWorkerFraction() != 0D) { - setScaleDownMinWorkerFraction(other.getScaleDownMinWorkerFraction()); - } - 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.dataproc.v1beta2.BasicYarnAutoscalingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } else { - return gracefulDecommissionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gracefulDecommissionTimeout_ = value; - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGracefulDecommissionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = builderForValue.build(); - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (gracefulDecommissionTimeout_ != null) { - gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - gracefulDecommissionTimeout_ = value; - } - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - onChanged(); - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - - onChanged(); - return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - if (gracefulDecommissionTimeoutBuilder_ != null) { - return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getGracefulDecommissionTimeoutFieldBuilder() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); - gracefulDecommissionTimeout_ = null; - } - return gracefulDecommissionTimeoutBuilder_; - } - - private double scaleUpFactor_; - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to add workers. A scale-up factor of 1.0 will result in
-     * scaling up so that there is no pending memory remaining after the update
-     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
-     * smaller magnitude of scaling up (less aggressive scaling). See [How
-     * autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - @java.lang.Override - public double getScaleUpFactor() { - return scaleUpFactor_; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to add workers. A scale-up factor of 1.0 will result in
-     * scaling up so that there is no pending memory remaining after the update
-     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
-     * smaller magnitude of scaling up (less aggressive scaling). See [How
-     * autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The scaleUpFactor to set. - * @return This builder for chaining. - */ - public Builder setScaleUpFactor(double value) { - - scaleUpFactor_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to add workers. A scale-up factor of 1.0 will result in
-     * scaling up so that there is no pending memory remaining after the update
-     * (more aggressive scaling). A scale-up factor closer to 0 will result in a
-     * smaller magnitude of scaling up (less aggressive scaling). See [How
-     * autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearScaleUpFactor() { - - scaleUpFactor_ = 0D; - onChanged(); - return this; - } - - private double scaleDownFactor_; - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - @java.lang.Override - public double getScaleDownFactor() { - return scaleDownFactor_; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The scaleDownFactor to set. - * @return This builder for chaining. - */ - public Builder setScaleDownFactor(double value) { - - scaleDownFactor_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown
-     * period for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearScaleDownFactor() { - - scaleDownFactor_ = 0D; - onChanged(); - return this; - } - - private double scaleUpMinWorkerFraction_; - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleUpMinWorkerFraction. - */ - @java.lang.Override - public double getScaleUpMinWorkerFraction() { - return scaleUpMinWorkerFraction_; - } - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The scaleUpMinWorkerFraction to set. - * @return This builder for chaining. - */ - public Builder setScaleUpMinWorkerFraction(double value) { - - scaleUpMinWorkerFraction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearScaleUpMinWorkerFraction() { - - scaleUpMinWorkerFraction_ = 0D; - onChanged(); - return this; - } - - private double scaleDownMinWorkerFraction_; - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - @java.lang.Override - public double getScaleDownMinWorkerFraction() { - return scaleDownMinWorkerFraction_; - } - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The scaleDownMinWorkerFraction to set. - * @return This builder for chaining. - */ - public Builder setScaleDownMinWorkerFraction(double value) { - - scaleDownMinWorkerFraction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearScaleDownMinWorkerFraction() { - - scaleDownMinWorkerFraction_ = 0D; - 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.dataproc.v1beta2.BasicYarnAutoscalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) - private static final com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicYarnAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicYarnAutoscalingConfig(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.dataproc.v1beta2.BasicYarnAutoscalingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java deleted file mode 100644 index 53b3d8bd..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java +++ /dev/null @@ -1,157 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface BasicYarnAutoscalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - boolean hasGracefulDecommissionTimeout(); - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - com.google.protobuf.Duration getGracefulDecommissionTimeout(); - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); - - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown
-   * period for which to add workers. A scale-up factor of 1.0 will result in
-   * scaling up so that there is no pending memory remaining after the update
-   * (more aggressive scaling). A scale-up factor closer to 0 will result in a
-   * smaller magnitude of scaling up (less aggressive scaling). See [How
-   * autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - double getScaleUpFactor(); - - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown
-   * period for which to remove workers. A scale-down factor of 1 will result in
-   * scaling down so that there is no available memory remaining after the
-   * update (more aggressive scaling). A scale-down factor of 0 disables
-   * removing workers, which can be beneficial for autoscaling a single job.
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - double getScaleDownFactor(); - - /** - * - * - *
-   * Optional. Minimum scale-up threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scaleUpMinWorkerFraction. - */ - double getScaleUpMinWorkerFraction(); - - /** - * - * - *
-   * Optional. Minimum scale-down threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - double getScaleDownMinWorkerFraction(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequest.java deleted file mode 100644 index 9743d2a1..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequest.java +++ /dev/null @@ -1,1001 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to cancel a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CancelJobRequest} - */ -public final class CancelJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.CancelJobRequest) - CancelJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CancelJobRequest.newBuilder() to construct. - private CancelJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CancelJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CancelJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CancelJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CancelJobRequest.class, - com.google.cloud.dataproc.v1beta2.CancelJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - 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.dataproc.v1beta2.CancelJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.CancelJobRequest other = - (com.google.cloud.dataproc.v1beta2.CancelJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest 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.dataproc.v1beta2.CancelJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest 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.dataproc.v1beta2.CancelJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest 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.dataproc.v1beta2.CancelJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to cancel a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CancelJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.CancelJobRequest) - com.google.cloud.dataproc.v1beta2.CancelJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CancelJobRequest.class, - com.google.cloud.dataproc.v1beta2.CancelJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.CancelJobRequest.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(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CancelJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.CancelJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CancelJobRequest build() { - com.google.cloud.dataproc.v1beta2.CancelJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CancelJobRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.CancelJobRequest result = - new com.google.cloud.dataproc.v1beta2.CancelJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1beta2.CancelJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.CancelJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.CancelJobRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.CancelJobRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - 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.dataproc.v1beta2.CancelJobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.CancelJobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1beta2.CancelJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CancelJobRequest) - private static final com.google.cloud.dataproc.v1beta2.CancelJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.CancelJobRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.CancelJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelJobRequest(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.dataproc.v1beta2.CancelJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequestOrBuilder.java deleted file mode 100644 index 85b39ae8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface CancelJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.CancelJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Cluster.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Cluster.java deleted file mode 100644 index e3ad6756..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Cluster.java +++ /dev/null @@ -1,2887 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Describes the identifying information, config, and status of
- * a cluster of Compute Engine instances.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.Cluster} - */ -public final class Cluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.Cluster) - ClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Cluster.newBuilder() to construct. - private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Cluster() { - projectId_ = ""; - clusterName_ = ""; - statusHistory_ = java.util.Collections.emptyList(); - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Cluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Cluster( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - statusHistory_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterStatus.parser(), extensionRegistry)); - break; - } - case 66: - { - 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 74: - { - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder subBuilder = null; - if (metrics_ != null) { - subBuilder = metrics_.toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metrics_); - metrics_ = 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.Cluster.class, - com.google.cloud.dataproc.v1beta2.Cluster.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1beta2.ClusterConfig config_; - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 8; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 STATUS_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1beta2.ClusterStatus status_; - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 7; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - return statusHistory_.get(index); - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 6; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRICS_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1beta2.ClusterMetrics metrics_; - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - @java.lang.Override - public boolean hasMetrics() { - return metrics_ != null; - } - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterMetrics getMetrics() { - return metrics_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterMetrics.getDefaultInstance() - : metrics_; - } - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder getMetricsOrBuilder() { - return getMetrics(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (config_ != null) { - output.writeMessage(3, getConfig()); - } - if (status_ != null) { - output.writeMessage(4, getStatus()); - } - if (!getClusterUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterUuid_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(7, statusHistory_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (metrics_ != null) { - output.writeMessage(9, getMetrics()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatus()); - } - if (!getClusterUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterUuid_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, statusHistory_.get(i)); - } - 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(8, labels__); - } - if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetrics()); - } - 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.dataproc.v1beta2.Cluster)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.Cluster other = - (com.google.cloud.dataproc.v1beta2.Cluster) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasMetrics() != other.hasMetrics()) return false; - if (hasMetrics()) { - if (!getMetrics().equals(other.getMetrics())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasMetrics()) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetrics().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster 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.dataproc.v1beta2.Cluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster 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.dataproc.v1beta2.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster 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.dataproc.v1beta2.Cluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Describes the identifying information, config, and status of
-   * a cluster of Compute Engine instances.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.Cluster) - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.Cluster.class, - com.google.cloud.dataproc.v1beta2.Cluster.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - clusterName_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - statusHistoryBuilder_.clear(); - } - clusterUuid_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; - metricsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster build() { - com.google.cloud.dataproc.v1beta2.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster buildPartial() { - com.google.cloud.dataproc.v1beta2.Cluster result = - new com.google.cloud.dataproc.v1beta2.Cluster(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.clusterName_ = clusterName_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - result.clusterUuid_ = clusterUuid_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.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.dataproc.v1beta2.Cluster) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.Cluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Cluster other) { - if (other == com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasMetrics()) { - mergeMetrics(other.getMetrics()); - } - 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.dataproc.v1beta2.Cluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.Cluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1beta2.ClusterConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setConfig( - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeConfig(com.google.cloud.dataproc.v1beta2.ClusterConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dataproc.v1beta2.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } - } - /** - * - * - *
-     * Required. The cluster config. Note that Dataproc may set
-     * default values, and values may change when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.ClusterStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus( - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1beta2.ClusterStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1beta2.ClusterStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = - new java.util.ArrayList( - statusHistory_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(com.google.cloud.dataproc.v1beta2.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder getStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder addStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterStatus, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterMetrics metrics_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterMetrics, - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder> - metricsBuilder_; - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - public com.google.cloud.dataproc.v1beta2.ClusterMetrics getMetrics() { - if (metricsBuilder_ == null) { - return metrics_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterMetrics.getDefaultInstance() - : metrics_; - } else { - return metricsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setMetrics(com.google.cloud.dataproc.v1beta2.ClusterMetrics value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metrics_ = value; - onChanged(); - } else { - metricsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setMetrics( - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder builderForValue) { - if (metricsBuilder_ == null) { - metrics_ = builderForValue.build(); - onChanged(); - } else { - metricsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeMetrics(com.google.cloud.dataproc.v1beta2.ClusterMetrics value) { - if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = - com.google.cloud.dataproc.v1beta2.ClusterMetrics.newBuilder(metrics_) - .mergeFrom(value) - .buildPartial(); - } else { - metrics_ = value; - } - onChanged(); - } else { - metricsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; - metricsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder getMetricsBuilder() { - - onChanged(); - return getMetricsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder getMetricsOrBuilder() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilder(); - } else { - return metrics_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterMetrics.getDefaultInstance() - : metrics_; - } - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterMetrics, - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterMetrics, - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder>( - getMetrics(), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - @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.dataproc.v1beta2.Cluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Cluster) - private static final com.google.cloud.dataproc.v1beta2.Cluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.Cluster(); - } - - public static com.google.cloud.dataproc.v1beta2.Cluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cluster(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.dataproc.v1beta2.Cluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java deleted file mode 100644 index 4c00d031..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java +++ /dev/null @@ -1,5181 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The cluster config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterConfig} - */ -public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterConfig) - ClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterConfig.newBuilder() to construct. - private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterConfig() { - configBucket_ = ""; - tempBucket_ = ""; - initializationActions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterConfig( - 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(); - - configBucket_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tempBucket_ = s; - break; - } - case 66: - { - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder subBuilder = null; - if (gceClusterConfig_ != null) { - subBuilder = gceClusterConfig_.toBuilder(); - } - gceClusterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.GceClusterConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gceClusterConfig_); - gceClusterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder subBuilder = null; - if (masterConfig_ != null) { - subBuilder = masterConfig_.toBuilder(); - } - masterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterConfig_); - masterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder subBuilder = null; - if (workerConfig_ != null) { - subBuilder = workerConfig_.toBuilder(); - } - workerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerConfig_); - workerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - initializationActions_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1beta2.NodeInitializationAction>(); - mutable_bitField0_ |= 0x00000001; - } - initializationActions_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.parser(), - extensionRegistry)); - break; - } - case 98: - { - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder subBuilder = null; - if (secondaryWorkerConfig_ != null) { - subBuilder = secondaryWorkerConfig_.toBuilder(); - } - secondaryWorkerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryWorkerConfig_); - secondaryWorkerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder subBuilder = null; - if (softwareConfig_ != null) { - subBuilder = softwareConfig_.toBuilder(); - } - softwareConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SoftwareConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(softwareConfig_); - softwareConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder subBuilder = null; - if (lifecycleConfig_ != null) { - subBuilder = lifecycleConfig_.toBuilder(); - } - lifecycleConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LifecycleConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifecycleConfig_); - lifecycleConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder subBuilder = null; - if (encryptionConfig_ != null) { - subBuilder = encryptionConfig_.toBuilder(); - } - encryptionConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.EncryptionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptionConfig_); - encryptionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder subBuilder = null; - if (autoscalingConfig_ != null) { - subBuilder = autoscalingConfig_.toBuilder(); - } - autoscalingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscalingConfig_); - autoscalingConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 138: - { - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder subBuilder = null; - if (endpointConfig_ != null) { - subBuilder = endpointConfig_.toBuilder(); - } - endpointConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.EndpointConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endpointConfig_); - endpointConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 146: - { - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder subBuilder = null; - if (securityConfig_ != null) { - subBuilder = securityConfig_.toBuilder(); - } - securityConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SecurityConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityConfig_); - securityConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 154: - { - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder subBuilder = null; - if (gkeClusterConfig_ != null) { - subBuilder = gkeClusterConfig_.toBuilder(); - } - gkeClusterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gkeClusterConfig_); - gkeClusterConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterConfig.class, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder.class); - } - - public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; - private volatile java.lang.Object configBucket_; - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging
-   * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - @java.lang.Override - public java.lang.String getConfigBucket() { - java.lang.Object ref = configBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging
-   * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConfigBucketBytes() { - java.lang.Object ref = configBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEMP_BUCKET_FIELD_NUMBER = 2; - private volatile java.lang.Object tempBucket_; - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-   * data, such as Spark and MapReduce history files. If you do not specify a
-   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-   * EU) for your cluster's temp bucket according to the Compute Engine zone
-   * where your cluster is deployed, and then create and manage this
-   * project-level, per-location bucket. The default bucket has a TTL of 90
-   * days, but you can use any TTL (or none) if you specify a bucket.
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - @java.lang.Override - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-   * data, such as Spark and MapReduce history files. If you do not specify a
-   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-   * EU) for your cluster's temp bucket according to the Compute Engine zone
-   * where your cluster is deployed, and then create and manage this
-   * project-level, per-location bucket. The default bucket has a TTL of 90
-   * days, but you can use any TTL (or none) if you specify a bucket.
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1beta2.GceClusterConfig gceClusterConfig_; - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGceClusterConfig() { - return gceClusterConfig_ != null; - } - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GceClusterConfig getGceClusterConfig() { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder - getGceClusterConfigOrBuilder() { - return getGceClusterConfig(); - } - - public static final int MASTER_CONFIG_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig masterConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - @java.lang.Override - public boolean hasMasterConfig() { - return masterConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getMasterConfig() { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { - return getMasterConfig(); - } - - public static final int WORKER_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig workerConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - @java.lang.Override - public boolean hasWorkerConfig() { - return workerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { - return getWorkerConfig(); - } - - public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig secondaryWorkerConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - @java.lang.Override - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - return getSecondaryWorkerConfig(); - } - - public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 13; - private com.google.cloud.dataproc.v1beta2.SoftwareConfig softwareConfig_; - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - @java.lang.Override - public boolean hasSoftwareConfig() { - return softwareConfig_ != null; - } - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SoftwareConfig getSoftwareConfig() { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { - return getSoftwareConfig(); - } - - public static final int LIFECYCLE_CONFIG_FIELD_NUMBER = 14; - private com.google.cloud.dataproc.v1beta2.LifecycleConfig lifecycleConfig_; - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - @java.lang.Override - public boolean hasLifecycleConfig() { - return lifecycleConfig_ != null; - } - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LifecycleConfig getLifecycleConfig() { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { - return getLifecycleConfig(); - } - - public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER = 11; - private java.util.List - initializationActions_; - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getInitializationActionsList() { - return initializationActions_; - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder> - getInitializationActionsOrBuilderList() { - return initializationActions_; - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getInitializationActionsCount() { - return initializationActions_.size(); - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction getInitializationActions( - int index) { - return initializationActions_.get(index); - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { - return initializationActions_.get(index); - } - - public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.dataproc.v1beta2.EncryptionConfig encryptionConfig_; - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - @java.lang.Override - public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; - } - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { - return getEncryptionConfig(); - } - - public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 16; - private com.google.cloud.dataproc.v1beta2.AutoscalingConfig autoscalingConfig_; - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - @java.lang.Override - public boolean hasAutoscalingConfig() { - return autoscalingConfig_ != null; - } - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig() { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder - getAutoscalingConfigOrBuilder() { - return getAutoscalingConfig(); - } - - public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 17; - private com.google.cloud.dataproc.v1beta2.EndpointConfig endpointConfig_; - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - @java.lang.Override - public boolean hasEndpointConfig() { - return endpointConfig_ != null; - } - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig() { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { - return getEndpointConfig(); - } - - public static final int SECURITY_CONFIG_FIELD_NUMBER = 18; - private com.google.cloud.dataproc.v1beta2.SecurityConfig securityConfig_; - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - @java.lang.Override - public boolean hasSecurityConfig() { - return securityConfig_ != null; - } - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig() { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance() - : securityConfig_; - } - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { - return getSecurityConfig(); - } - - public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 19; - private com.google.cloud.dataproc.v1beta2.GkeClusterConfig gkeClusterConfig_; - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGkeClusterConfig() { - return gkeClusterConfig_ != null; - } - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig getGkeClusterConfig() { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder - getGkeClusterConfigOrBuilder() { - return getGkeClusterConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConfigBucketBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); - } - if (!getTempBucketBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); - } - if (gceClusterConfig_ != null) { - output.writeMessage(8, getGceClusterConfig()); - } - if (masterConfig_ != null) { - output.writeMessage(9, getMasterConfig()); - } - if (workerConfig_ != null) { - output.writeMessage(10, getWorkerConfig()); - } - for (int i = 0; i < initializationActions_.size(); i++) { - output.writeMessage(11, initializationActions_.get(i)); - } - if (secondaryWorkerConfig_ != null) { - output.writeMessage(12, getSecondaryWorkerConfig()); - } - if (softwareConfig_ != null) { - output.writeMessage(13, getSoftwareConfig()); - } - if (lifecycleConfig_ != null) { - output.writeMessage(14, getLifecycleConfig()); - } - if (encryptionConfig_ != null) { - output.writeMessage(15, getEncryptionConfig()); - } - if (autoscalingConfig_ != null) { - output.writeMessage(16, getAutoscalingConfig()); - } - if (endpointConfig_ != null) { - output.writeMessage(17, getEndpointConfig()); - } - if (securityConfig_ != null) { - output.writeMessage(18, getSecurityConfig()); - } - if (gkeClusterConfig_ != null) { - output.writeMessage(19, getGkeClusterConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConfigBucketBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configBucket_); - } - if (!getTempBucketBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); - } - if (gceClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig()); - } - if (masterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMasterConfig()); - } - if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWorkerConfig()); - } - for (int i = 0; i < initializationActions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, initializationActions_.get(i)); - } - if (secondaryWorkerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecondaryWorkerConfig()); - } - if (softwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSoftwareConfig()); - } - if (lifecycleConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLifecycleConfig()); - } - if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig()); - } - if (autoscalingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getAutoscalingConfig()); - } - if (endpointConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEndpointConfig()); - } - if (securityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSecurityConfig()); - } - if (gkeClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getGkeClusterConfig()); - } - 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.dataproc.v1beta2.ClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterConfig other = - (com.google.cloud.dataproc.v1beta2.ClusterConfig) obj; - - if (!getConfigBucket().equals(other.getConfigBucket())) return false; - if (!getTempBucket().equals(other.getTempBucket())) return false; - if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; - if (hasGceClusterConfig()) { - if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false; - } - if (hasMasterConfig() != other.hasMasterConfig()) return false; - if (hasMasterConfig()) { - if (!getMasterConfig().equals(other.getMasterConfig())) return false; - } - if (hasWorkerConfig() != other.hasWorkerConfig()) return false; - if (hasWorkerConfig()) { - if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; - } - if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; - if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; - } - if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false; - if (hasSoftwareConfig()) { - if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false; - } - if (hasLifecycleConfig() != other.hasLifecycleConfig()) return false; - if (hasLifecycleConfig()) { - if (!getLifecycleConfig().equals(other.getLifecycleConfig())) return false; - } - if (!getInitializationActionsList().equals(other.getInitializationActionsList())) return false; - if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; - if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; - } - if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; - if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; - } - if (hasEndpointConfig() != other.hasEndpointConfig()) return false; - if (hasEndpointConfig()) { - if (!getEndpointConfig().equals(other.getEndpointConfig())) return false; - } - if (hasSecurityConfig() != other.hasSecurityConfig()) return false; - if (hasSecurityConfig()) { - if (!getSecurityConfig().equals(other.getSecurityConfig())) return false; - } - if (hasGkeClusterConfig() != other.hasGkeClusterConfig()) return false; - if (hasGkeClusterConfig()) { - if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) 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) + CONFIG_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getConfigBucket().hashCode(); - hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getTempBucket().hashCode(); - if (hasGceClusterConfig()) { - hash = (37 * hash) + GCE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGceClusterConfig().hashCode(); - } - if (hasMasterConfig()) { - hash = (37 * hash) + MASTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMasterConfig().hashCode(); - } - if (hasWorkerConfig()) { - hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkerConfig().hashCode(); - } - if (hasSecondaryWorkerConfig()) { - hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryWorkerConfig().hashCode(); - } - if (hasSoftwareConfig()) { - hash = (37 * hash) + SOFTWARE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSoftwareConfig().hashCode(); - } - if (hasLifecycleConfig()) { - hash = (37 * hash) + LIFECYCLE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLifecycleConfig().hashCode(); - } - if (getInitializationActionsCount() > 0) { - hash = (37 * hash) + INITIALIZATION_ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getInitializationActionsList().hashCode(); - } - if (hasEncryptionConfig()) { - hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEncryptionConfig().hashCode(); - } - if (hasAutoscalingConfig()) { - hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAutoscalingConfig().hashCode(); - } - if (hasEndpointConfig()) { - hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEndpointConfig().hashCode(); - } - if (hasSecurityConfig()) { - hash = (37 * hash) + SECURITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecurityConfig().hashCode(); - } - if (hasGkeClusterConfig()) { - hash = (37 * hash) + GKE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGkeClusterConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig 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.dataproc.v1beta2.ClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig 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.dataproc.v1beta2.ClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig 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.dataproc.v1beta2.ClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 cluster config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterConfig) - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterConfig.class, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInitializationActionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - configBucket_ = ""; - - tempBucket_ = ""; - - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = null; - } else { - gceClusterConfig_ = null; - gceClusterConfigBuilder_ = null; - } - if (masterConfigBuilder_ == null) { - masterConfig_ = null; - } else { - masterConfig_ = null; - masterConfigBuilder_ = null; - } - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - if (softwareConfigBuilder_ == null) { - softwareConfig_ = null; - } else { - softwareConfig_ = null; - softwareConfigBuilder_ = null; - } - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = null; - } else { - lifecycleConfig_ = null; - lifecycleConfigBuilder_ = null; - } - if (initializationActionsBuilder_ == null) { - initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - initializationActionsBuilder_.clear(); - } - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = null; - } else { - encryptionConfig_ = null; - encryptionConfigBuilder_ = null; - } - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = null; - } else { - autoscalingConfig_ = null; - autoscalingConfigBuilder_ = null; - } - if (endpointConfigBuilder_ == null) { - endpointConfig_ = null; - } else { - endpointConfig_ = null; - endpointConfigBuilder_ = null; - } - if (securityConfigBuilder_ == null) { - securityConfig_ = null; - } else { - securityConfig_ = null; - securityConfigBuilder_ = null; - } - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = null; - } else { - gkeClusterConfig_ = null; - gkeClusterConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfig build() { - com.google.cloud.dataproc.v1beta2.ClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterConfig result = - new com.google.cloud.dataproc.v1beta2.ClusterConfig(this); - int from_bitField0_ = bitField0_; - result.configBucket_ = configBucket_; - result.tempBucket_ = tempBucket_; - if (gceClusterConfigBuilder_ == null) { - result.gceClusterConfig_ = gceClusterConfig_; - } else { - result.gceClusterConfig_ = gceClusterConfigBuilder_.build(); - } - if (masterConfigBuilder_ == null) { - result.masterConfig_ = masterConfig_; - } else { - result.masterConfig_ = masterConfigBuilder_.build(); - } - if (workerConfigBuilder_ == null) { - result.workerConfig_ = workerConfig_; - } else { - result.workerConfig_ = workerConfigBuilder_.build(); - } - if (secondaryWorkerConfigBuilder_ == null) { - result.secondaryWorkerConfig_ = secondaryWorkerConfig_; - } else { - result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build(); - } - if (softwareConfigBuilder_ == null) { - result.softwareConfig_ = softwareConfig_; - } else { - result.softwareConfig_ = softwareConfigBuilder_.build(); - } - if (lifecycleConfigBuilder_ == null) { - result.lifecycleConfig_ = lifecycleConfig_; - } else { - result.lifecycleConfig_ = lifecycleConfigBuilder_.build(); - } - if (initializationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.initializationActions_ = initializationActions_; - } else { - result.initializationActions_ = initializationActionsBuilder_.build(); - } - if (encryptionConfigBuilder_ == null) { - result.encryptionConfig_ = encryptionConfig_; - } else { - result.encryptionConfig_ = encryptionConfigBuilder_.build(); - } - if (autoscalingConfigBuilder_ == null) { - result.autoscalingConfig_ = autoscalingConfig_; - } else { - result.autoscalingConfig_ = autoscalingConfigBuilder_.build(); - } - if (endpointConfigBuilder_ == null) { - result.endpointConfig_ = endpointConfig_; - } else { - result.endpointConfig_ = endpointConfigBuilder_.build(); - } - if (securityConfigBuilder_ == null) { - result.securityConfig_ = securityConfig_; - } else { - result.securityConfig_ = securityConfigBuilder_.build(); - } - if (gkeClusterConfigBuilder_ == null) { - result.gkeClusterConfig_ = gkeClusterConfig_; - } else { - result.gkeClusterConfig_ = gkeClusterConfigBuilder_.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.dataproc.v1beta2.ClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance()) - return this; - if (!other.getConfigBucket().isEmpty()) { - configBucket_ = other.configBucket_; - onChanged(); - } - if (!other.getTempBucket().isEmpty()) { - tempBucket_ = other.tempBucket_; - onChanged(); - } - if (other.hasGceClusterConfig()) { - mergeGceClusterConfig(other.getGceClusterConfig()); - } - if (other.hasMasterConfig()) { - mergeMasterConfig(other.getMasterConfig()); - } - if (other.hasWorkerConfig()) { - mergeWorkerConfig(other.getWorkerConfig()); - } - if (other.hasSecondaryWorkerConfig()) { - mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); - } - if (other.hasSoftwareConfig()) { - mergeSoftwareConfig(other.getSoftwareConfig()); - } - if (other.hasLifecycleConfig()) { - mergeLifecycleConfig(other.getLifecycleConfig()); - } - if (initializationActionsBuilder_ == null) { - if (!other.initializationActions_.isEmpty()) { - if (initializationActions_.isEmpty()) { - initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInitializationActionsIsMutable(); - initializationActions_.addAll(other.initializationActions_); - } - onChanged(); - } - } else { - if (!other.initializationActions_.isEmpty()) { - if (initializationActionsBuilder_.isEmpty()) { - initializationActionsBuilder_.dispose(); - initializationActionsBuilder_ = null; - initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - initializationActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInitializationActionsFieldBuilder() - : null; - } else { - initializationActionsBuilder_.addAllMessages(other.initializationActions_); - } - } - } - if (other.hasEncryptionConfig()) { - mergeEncryptionConfig(other.getEncryptionConfig()); - } - if (other.hasAutoscalingConfig()) { - mergeAutoscalingConfig(other.getAutoscalingConfig()); - } - if (other.hasEndpointConfig()) { - mergeEndpointConfig(other.getEndpointConfig()); - } - if (other.hasSecurityConfig()) { - mergeSecurityConfig(other.getSecurityConfig()); - } - if (other.hasGkeClusterConfig()) { - mergeGkeClusterConfig(other.getGkeClusterConfig()); - } - 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.dataproc.v1beta2.ClusterConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.ClusterConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object configBucket_ = ""; - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging
-     * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - public java.lang.String getConfigBucket() { - java.lang.Object ref = configBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging
-     * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - public com.google.protobuf.ByteString getConfigBucketBytes() { - java.lang.Object ref = configBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging
-     * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The configBucket to set. - * @return This builder for chaining. - */ - public Builder setConfigBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - configBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging
-     * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearConfigBucket() { - - configBucket_ = getDefaultInstance().getConfigBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging
-     * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for configBucket to set. - * @return This builder for chaining. - */ - public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - configBucket_ = value; - onChanged(); - return this; - } - - private java.lang.Object tempBucket_ = ""; - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-     * data, such as Spark and MapReduce history files. If you do not specify a
-     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-     * EU) for your cluster's temp bucket according to the Compute Engine zone
-     * where your cluster is deployed, and then create and manage this
-     * project-level, per-location bucket. The default bucket has a TTL of 90
-     * days, but you can use any TTL (or none) if you specify a bucket.
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-     * data, such as Spark and MapReduce history files. If you do not specify a
-     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-     * EU) for your cluster's temp bucket according to the Compute Engine zone
-     * where your cluster is deployed, and then create and manage this
-     * project-level, per-location bucket. The default bucket has a TTL of 90
-     * days, but you can use any TTL (or none) if you specify a bucket.
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-     * data, such as Spark and MapReduce history files. If you do not specify a
-     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-     * EU) for your cluster's temp bucket according to the Compute Engine zone
-     * where your cluster is deployed, and then create and manage this
-     * project-level, per-location bucket. The default bucket has a TTL of 90
-     * days, but you can use any TTL (or none) if you specify a bucket.
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tempBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-     * data, such as Spark and MapReduce history files. If you do not specify a
-     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-     * EU) for your cluster's temp bucket according to the Compute Engine zone
-     * where your cluster is deployed, and then create and manage this
-     * project-level, per-location bucket. The default bucket has a TTL of 90
-     * days, but you can use any TTL (or none) if you specify a bucket.
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTempBucket() { - - tempBucket_ = getDefaultInstance().getTempBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-     * data, such as Spark and MapReduce history files. If you do not specify a
-     * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-     * EU) for your cluster's temp bucket according to the Compute Engine zone
-     * where your cluster is deployed, and then create and manage this
-     * project-level, per-location bucket. The default bucket has a TTL of 90
-     * days, but you can use any TTL (or none) if you specify a bucket.
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tempBucket_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.GceClusterConfig gceClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GceClusterConfig, - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder> - gceClusterConfigBuilder_; - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - public boolean hasGceClusterConfig() { - return gceClusterConfigBuilder_ != null || gceClusterConfig_ != null; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - public com.google.cloud.dataproc.v1beta2.GceClusterConfig getGceClusterConfig() { - if (gceClusterConfigBuilder_ == null) { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } else { - return gceClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGceClusterConfig(com.google.cloud.dataproc.v1beta2.GceClusterConfig value) { - if (gceClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gceClusterConfig_ = value; - onChanged(); - } else { - gceClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGceClusterConfig( - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder builderForValue) { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - gceClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1beta2.GceClusterConfig value) { - if (gceClusterConfigBuilder_ == null) { - if (gceClusterConfig_ != null) { - gceClusterConfig_ = - com.google.cloud.dataproc.v1beta2.GceClusterConfig.newBuilder(gceClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - gceClusterConfig_ = value; - } - onChanged(); - } else { - gceClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGceClusterConfig() { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = null; - onChanged(); - } else { - gceClusterConfig_ = null; - gceClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder getGceClusterConfigBuilder() { - - onChanged(); - return getGceClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder - getGceClusterConfigOrBuilder() { - if (gceClusterConfigBuilder_ != null) { - return gceClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GceClusterConfig, - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder> - getGceClusterConfigFieldBuilder() { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GceClusterConfig, - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder>( - getGceClusterConfig(), getParentForChildren(), isClean()); - gceClusterConfig_ = null; - } - return gceClusterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig masterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - masterConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - public boolean hasMasterConfig() { - return masterConfigBuilder_ != null || masterConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getMasterConfig() { - if (masterConfigBuilder_ == null) { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } else { - return masterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMasterConfig(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (masterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterConfig_ = value; - onChanged(); - } else { - masterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMasterConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder builderForValue) { - if (masterConfigBuilder_ == null) { - masterConfig_ = builderForValue.build(); - onChanged(); - } else { - masterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeMasterConfig(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (masterConfigBuilder_ == null) { - if (masterConfig_ != null) { - masterConfig_ = - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.newBuilder(masterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - masterConfig_ = value; - } - onChanged(); - } else { - masterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearMasterConfig() { - if (masterConfigBuilder_ == null) { - masterConfig_ = null; - onChanged(); - } else { - masterConfig_ = null; - masterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder getMasterConfigBuilder() { - - onChanged(); - return getMasterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder - getMasterConfigOrBuilder() { - if (masterConfigBuilder_ != null) { - return masterConfigBuilder_.getMessageOrBuilder(); - } else { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - getMasterConfigFieldBuilder() { - if (masterConfigBuilder_ == null) { - masterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder>( - getMasterConfig(), getParentForChildren(), isClean()); - masterConfig_ = null; - } - return masterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig workerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - workerConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - public boolean hasWorkerConfig() { - return workerConfigBuilder_ != null || workerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getWorkerConfig() { - if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } else { - return workerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWorkerConfig(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (workerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerConfig_ = value; - onChanged(); - } else { - workerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder builderForValue) { - if (workerConfigBuilder_ == null) { - workerConfig_ = builderForValue.build(); - onChanged(); - } else { - workerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (workerConfigBuilder_ == null) { - if (workerConfig_ != null) { - workerConfig_ = - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.newBuilder(workerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workerConfig_ = value; - } - onChanged(); - } else { - workerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearWorkerConfig() { - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - onChanged(); - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - - onChanged(); - return getWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder - getWorkerConfigOrBuilder() { - if (workerConfigBuilder_ != null) { - return workerConfigBuilder_.getMessageOrBuilder(); - } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - getWorkerConfigFieldBuilder() { - if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); - workerConfig_ = null; - } - return workerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.InstanceGroupConfig secondaryWorkerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - secondaryWorkerConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } else { - return secondaryWorkerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - secondaryWorkerConfig_ = value; - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder builderForValue) { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = builderForValue.build(); - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (secondaryWorkerConfig_ != null) { - secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.newBuilder( - secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - secondaryWorkerConfig_ = value; - } - onChanged(); - } else { - secondaryWorkerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - onChanged(); - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder - getSecondaryWorkerConfigBuilder() { - - onChanged(); - return getSecondaryWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - if (secondaryWorkerConfigBuilder_ != null) { - return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); - } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder> - getSecondaryWorkerConfigFieldBuilder() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); - secondaryWorkerConfig_ = null; - } - return secondaryWorkerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.SoftwareConfig softwareConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SoftwareConfig, - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder> - softwareConfigBuilder_; - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - public boolean hasSoftwareConfig() { - return softwareConfigBuilder_ != null || softwareConfig_ != null; - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - public com.google.cloud.dataproc.v1beta2.SoftwareConfig getSoftwareConfig() { - if (softwareConfigBuilder_ == null) { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } else { - return softwareConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSoftwareConfig(com.google.cloud.dataproc.v1beta2.SoftwareConfig value) { - if (softwareConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - softwareConfig_ = value; - onChanged(); - } else { - softwareConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSoftwareConfig( - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder builderForValue) { - if (softwareConfigBuilder_ == null) { - softwareConfig_ = builderForValue.build(); - onChanged(); - } else { - softwareConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1beta2.SoftwareConfig value) { - if (softwareConfigBuilder_ == null) { - if (softwareConfig_ != null) { - softwareConfig_ = - com.google.cloud.dataproc.v1beta2.SoftwareConfig.newBuilder(softwareConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - softwareConfig_ = value; - } - onChanged(); - } else { - softwareConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSoftwareConfig() { - if (softwareConfigBuilder_ == null) { - softwareConfig_ = null; - onChanged(); - } else { - softwareConfig_ = null; - softwareConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder getSoftwareConfigBuilder() { - - onChanged(); - return getSoftwareConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { - if (softwareConfigBuilder_ != null) { - return softwareConfigBuilder_.getMessageOrBuilder(); - } else { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } - } - /** - * - * - *
-     * Optional. The config settings for software inside the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SoftwareConfig, - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder> - getSoftwareConfigFieldBuilder() { - if (softwareConfigBuilder_ == null) { - softwareConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SoftwareConfig, - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder>( - getSoftwareConfig(), getParentForChildren(), isClean()); - softwareConfig_ = null; - } - return softwareConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.LifecycleConfig lifecycleConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LifecycleConfig, - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder> - lifecycleConfigBuilder_; - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - public boolean hasLifecycleConfig() { - return lifecycleConfigBuilder_ != null || lifecycleConfig_ != null; - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - public com.google.cloud.dataproc.v1beta2.LifecycleConfig getLifecycleConfig() { - if (lifecycleConfigBuilder_ == null) { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } else { - return lifecycleConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLifecycleConfig(com.google.cloud.dataproc.v1beta2.LifecycleConfig value) { - if (lifecycleConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lifecycleConfig_ = value; - onChanged(); - } else { - lifecycleConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLifecycleConfig( - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder builderForValue) { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = builderForValue.build(); - onChanged(); - } else { - lifecycleConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1beta2.LifecycleConfig value) { - if (lifecycleConfigBuilder_ == null) { - if (lifecycleConfig_ != null) { - lifecycleConfig_ = - com.google.cloud.dataproc.v1beta2.LifecycleConfig.newBuilder(lifecycleConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - lifecycleConfig_ = value; - } - onChanged(); - } else { - lifecycleConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLifecycleConfig() { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = null; - onChanged(); - } else { - lifecycleConfig_ = null; - lifecycleConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder getLifecycleConfigBuilder() { - - onChanged(); - return getLifecycleConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder - getLifecycleConfigOrBuilder() { - if (lifecycleConfigBuilder_ != null) { - return lifecycleConfigBuilder_.getMessageOrBuilder(); - } else { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } - } - /** - * - * - *
-     * Optional. The config setting for auto delete cluster schedule.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LifecycleConfig, - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder> - getLifecycleConfigFieldBuilder() { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LifecycleConfig, - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder>( - getLifecycleConfig(), getParentForChildren(), isClean()); - lifecycleConfig_ = null; - } - return lifecycleConfigBuilder_; - } - - private java.util.List - initializationActions_ = java.util.Collections.emptyList(); - - private void ensureInitializationActionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = - new java.util.ArrayList( - initializationActions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.NodeInitializationAction, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder> - initializationActionsBuilder_; - - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getInitializationActionsList() { - if (initializationActionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(initializationActions_); - } else { - return initializationActionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getInitializationActionsCount() { - if (initializationActionsBuilder_ == null) { - return initializationActions_.size(); - } else { - return initializationActionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction getInitializationActions( - int index) { - if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); - } else { - return initializationActionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInitializationActions( - int index, com.google.cloud.dataproc.v1beta2.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.set(index, value); - onChanged(); - } else { - initializationActionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInitializationActions( - int index, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.set(index, builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.add(value); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - int index, com.google.cloud.dataproc.v1beta2.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.add(index, value); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - int index, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(index, builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllInitializationActions( - java.lang.Iterable - values) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initializationActions_); - onChanged(); - } else { - initializationActionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearInitializationActions() { - if (initializationActionsBuilder_ == null) { - initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - initializationActionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeInitializationActions(int index) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.remove(index); - onChanged(); - } else { - initializationActionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder - getInitializationActionsBuilder(int index) { - return getInitializationActionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { - if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); - } else { - return initializationActionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder> - getInitializationActionsOrBuilderList() { - if (initializationActionsBuilder_ != null) { - return initializationActionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(initializationActions_); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder - addInitializationActionsBuilder() { - return getInitializationActionsFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder - addInitializationActionsBuilder(int index) { - return getInitializationActionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's <code>role</code> metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getInitializationActionsBuilderList() { - return getInitializationActionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.NodeInitializationAction, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder> - getInitializationActionsFieldBuilder() { - if (initializationActionsBuilder_ == null) { - initializationActionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.NodeInitializationAction, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder>( - initializationActions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - initializationActions_ = null; - } - return initializationActionsBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.EncryptionConfig encryptionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EncryptionConfig, - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder> - encryptionConfigBuilder_; - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - public boolean hasEncryptionConfig() { - return encryptionConfigBuilder_ != null || encryptionConfig_ != null; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - public com.google.cloud.dataproc.v1beta2.EncryptionConfig getEncryptionConfig() { - if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } else { - return encryptionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEncryptionConfig(com.google.cloud.dataproc.v1beta2.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - encryptionConfig_ = value; - onChanged(); - } else { - encryptionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEncryptionConfig( - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder builderForValue) { - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = builderForValue.build(); - onChanged(); - } else { - encryptionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1beta2.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { - if (encryptionConfig_ != null) { - encryptionConfig_ = - com.google.cloud.dataproc.v1beta2.EncryptionConfig.newBuilder(encryptionConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - encryptionConfig_ = value; - } - onChanged(); - } else { - encryptionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEncryptionConfig() { - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = null; - onChanged(); - } else { - encryptionConfig_ = null; - encryptionConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder getEncryptionConfigBuilder() { - - onChanged(); - return getEncryptionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder - getEncryptionConfigOrBuilder() { - if (encryptionConfigBuilder_ != null) { - return encryptionConfigBuilder_.getMessageOrBuilder(); - } else { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EncryptionConfig, - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder> - getEncryptionConfigFieldBuilder() { - if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EncryptionConfig, - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); - encryptionConfig_ = null; - } - return encryptionConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.AutoscalingConfig autoscalingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingConfig, - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder> - autoscalingConfigBuilder_; - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - public boolean hasAutoscalingConfig() { - return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig() { - if (autoscalingConfigBuilder_ == null) { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } else { - return autoscalingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1beta2.AutoscalingConfig value) { - if (autoscalingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscalingConfig_ = value; - onChanged(); - } else { - autoscalingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscalingConfig( - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder builderForValue) { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = builderForValue.build(); - onChanged(); - } else { - autoscalingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoscalingConfig( - com.google.cloud.dataproc.v1beta2.AutoscalingConfig value) { - if (autoscalingConfigBuilder_ == null) { - if (autoscalingConfig_ != null) { - autoscalingConfig_ = - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.newBuilder(autoscalingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscalingConfig_ = value; - } - onChanged(); - } else { - autoscalingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoscalingConfig() { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = null; - onChanged(); - } else { - autoscalingConfig_ = null; - autoscalingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder - getAutoscalingConfigBuilder() { - - onChanged(); - return getAutoscalingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder - getAutoscalingConfigOrBuilder() { - if (autoscalingConfigBuilder_ != null) { - return autoscalingConfigBuilder_.getMessageOrBuilder(); - } else { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingConfig, - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder> - getAutoscalingConfigFieldBuilder() { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingConfig, - com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder>( - getAutoscalingConfig(), getParentForChildren(), isClean()); - autoscalingConfig_ = null; - } - return autoscalingConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.EndpointConfig endpointConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EndpointConfig, - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder, - com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder> - endpointConfigBuilder_; - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - public boolean hasEndpointConfig() { - return endpointConfigBuilder_ != null || endpointConfig_ != null; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - public com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig() { - if (endpointConfigBuilder_ == null) { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } else { - return endpointConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEndpointConfig(com.google.cloud.dataproc.v1beta2.EndpointConfig value) { - if (endpointConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endpointConfig_ = value; - onChanged(); - } else { - endpointConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEndpointConfig( - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder builderForValue) { - if (endpointConfigBuilder_ == null) { - endpointConfig_ = builderForValue.build(); - onChanged(); - } else { - endpointConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1beta2.EndpointConfig value) { - if (endpointConfigBuilder_ == null) { - if (endpointConfig_ != null) { - endpointConfig_ = - com.google.cloud.dataproc.v1beta2.EndpointConfig.newBuilder(endpointConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - endpointConfig_ = value; - } - onChanged(); - } else { - endpointConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEndpointConfig() { - if (endpointConfigBuilder_ == null) { - endpointConfig_ = null; - onChanged(); - } else { - endpointConfig_ = null; - endpointConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder getEndpointConfigBuilder() { - - onChanged(); - return getEndpointConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { - if (endpointConfigBuilder_ != null) { - return endpointConfigBuilder_.getMessageOrBuilder(); - } else { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EndpointConfig, - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder, - com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder> - getEndpointConfigFieldBuilder() { - if (endpointConfigBuilder_ == null) { - endpointConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.EndpointConfig, - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder, - com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder>( - getEndpointConfig(), getParentForChildren(), isClean()); - endpointConfig_ = null; - } - return endpointConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.SecurityConfig securityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SecurityConfig, - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder, - com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder> - securityConfigBuilder_; - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - public boolean hasSecurityConfig() { - return securityConfigBuilder_ != null || securityConfig_ != null; - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - public com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig() { - if (securityConfigBuilder_ == null) { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance() - : securityConfig_; - } else { - return securityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecurityConfig(com.google.cloud.dataproc.v1beta2.SecurityConfig value) { - if (securityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityConfig_ = value; - onChanged(); - } else { - securityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecurityConfig( - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder builderForValue) { - if (securityConfigBuilder_ == null) { - securityConfig_ = builderForValue.build(); - onChanged(); - } else { - securityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1beta2.SecurityConfig value) { - if (securityConfigBuilder_ == null) { - if (securityConfig_ != null) { - securityConfig_ = - com.google.cloud.dataproc.v1beta2.SecurityConfig.newBuilder(securityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - securityConfig_ = value; - } - onChanged(); - } else { - securityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecurityConfig() { - if (securityConfigBuilder_ == null) { - securityConfig_ = null; - onChanged(); - } else { - securityConfig_ = null; - securityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder getSecurityConfigBuilder() { - - onChanged(); - return getSecurityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { - if (securityConfigBuilder_ != null) { - return securityConfigBuilder_.getMessageOrBuilder(); - } else { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance() - : securityConfig_; - } - } - /** - * - * - *
-     * Optional. Security related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SecurityConfig, - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder, - com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder> - getSecurityConfigFieldBuilder() { - if (securityConfigBuilder_ == null) { - securityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SecurityConfig, - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder, - com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder>( - getSecurityConfig(), getParentForChildren(), isClean()); - securityConfig_ = null; - } - return securityConfigBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.GkeClusterConfig gkeClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder> - gkeClusterConfigBuilder_; - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - public boolean hasGkeClusterConfig() { - return gkeClusterConfigBuilder_ != null || gkeClusterConfig_ != null; - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig getGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } else { - return gkeClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1beta2.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeClusterConfig_ = value; - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeClusterConfig( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder builderForValue) { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1beta2.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (gkeClusterConfig_ != null) { - gkeClusterConfig_ = - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.newBuilder(gkeClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - gkeClusterConfig_ = value; - } - onChanged(); - } else { - gkeClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = null; - onChanged(); - } else { - gkeClusterConfig_ = null; - gkeClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { - - onChanged(); - return getGkeClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder - getGkeClusterConfigOrBuilder() { - if (gkeClusterConfigBuilder_ != null) { - return gkeClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } - } - /** - * - * - *
-     * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder> - getGkeClusterConfigFieldBuilder() { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder>( - getGkeClusterConfig(), getParentForChildren(), isClean()); - gkeClusterConfig_ = null; - } - return gkeClusterConfigBuilder_; - } - - @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.dataproc.v1beta2.ClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterConfig) - private static final com.google.cloud.dataproc.v1beta2.ClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterConfig(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.dataproc.v1beta2.ClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java deleted file mode 100644 index a4f0e6a9..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java +++ /dev/null @@ -1,698 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging
-   * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - java.lang.String getConfigBucket(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging
-   * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - com.google.protobuf.ByteString getConfigBucketBytes(); - - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-   * data, such as Spark and MapReduce history files. If you do not specify a
-   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-   * EU) for your cluster's temp bucket according to the Compute Engine zone
-   * where your cluster is deployed, and then create and manage this
-   * project-level, per-location bucket. The default bucket has a TTL of 90
-   * days, but you can use any TTL (or none) if you specify a bucket.
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - java.lang.String getTempBucket(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs
-   * data, such as Spark and MapReduce history files. If you do not specify a
-   * temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or
-   * EU) for your cluster's temp bucket according to the Compute Engine zone
-   * where your cluster is deployed, and then create and manage this
-   * project-level, per-location bucket. The default bucket has a TTL of 90
-   * days, but you can use any TTL (or none) if you specify a bucket.
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - com.google.protobuf.ByteString getTempBucketBytes(); - - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - boolean hasGceClusterConfig(); - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - com.google.cloud.dataproc.v1beta2.GceClusterConfig getGceClusterConfig(); - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - boolean hasMasterConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getMasterConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - boolean hasWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - boolean hasSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - boolean hasSoftwareConfig(); - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - com.google.cloud.dataproc.v1beta2.SoftwareConfig getSoftwareConfig(); - /** - * - * - *
-   * Optional. The config settings for software inside the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - boolean hasLifecycleConfig(); - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - com.google.cloud.dataproc.v1beta2.LifecycleConfig getLifecycleConfig(); - /** - * - * - *
-   * Optional. The config setting for auto delete cluster schedule.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LifecycleConfig lifecycle_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getInitializationActionsList(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.NodeInitializationAction getInitializationActions(int index); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getInitializationActionsCount(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getInitializationActionsOrBuilderList(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's <code>role</code> metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index); - - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - boolean hasEncryptionConfig(); - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - com.google.cloud.dataproc.v1beta2.EncryptionConfig getEncryptionConfig(); - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - boolean hasAutoscalingConfig(); - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig(); - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - boolean hasEndpointConfig(); - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig(); - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - boolean hasSecurityConfig(); - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig(); - /** - * - * - *
-   * Optional. Security related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - boolean hasGkeClusterConfig(); - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - com.google.cloud.dataproc.v1beta2.GkeClusterConfig getGkeClusterConfig(); - /** - * - * - *
-   * Optional. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig gke_cluster_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java deleted file mode 100644 index 6dac9a09..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java +++ /dev/null @@ -1,1082 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Contains cluster daemon metrics, such as HDFS and YARN stats.
- * **Beta Feature**: This report is available for testing purposes only. It may
- * be changed before final release.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterMetrics} - */ -public final class ClusterMetrics extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterMetrics) - ClusterMetricsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterMetrics.newBuilder() to construct. - private ClusterMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterMetrics() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterMetrics(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterMetrics( - 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)) { - hdfsMetrics_ = - com.google.protobuf.MapField.newMapField( - HdfsMetricsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry hdfsMetrics__ = - input.readMessage( - HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - hdfsMetrics_.getMutableMap().put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue()); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - yarnMetrics_ = - com.google.protobuf.MapField.newMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry yarnMetrics__ = - input.readMessage( - YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - yarnMetrics_.getMutableMap().put(yarnMetrics__.getKey(), yarnMetrics__.getValue()); - 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHdfsMetrics(); - case 2: - return internalGetYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterMetrics.class, - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder.class); - } - - public static final int HDFS_METRICS_FIELD_NUMBER = 1; - - private static final class HdfsMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - - private com.google.protobuf.MapField hdfsMetrics_; - - private com.google.protobuf.MapField internalGetHdfsMetrics() { - if (hdfsMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField(HdfsMetricsDefaultEntryHolder.defaultEntry); - } - return hdfsMetrics_; - } - - public int getHdfsMetricsCount() { - return internalGetHdfsMetrics().getMap().size(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetHdfsMetrics().getMap().containsKey(key); - } - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHdfsMetrics() { - return getHdfsMetricsMap(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public java.util.Map getHdfsMetricsMap() { - return internalGetHdfsMetrics().getMap(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int YARN_METRICS_FIELD_NUMBER = 2; - - private static final class YarnMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - - private com.google.protobuf.MapField yarnMetrics_; - - private com.google.protobuf.MapField internalGetYarnMetrics() { - if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField(YarnMetricsDefaultEntryHolder.defaultEntry); - } - return yarnMetrics_; - } - - public int getYarnMetricsCount() { - return internalGetYarnMetrics().getMap().size(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetYarnMetrics().getMap().containsKey(key); - } - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getYarnMetrics() { - return getYarnMetricsMap(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public java.util.Map getYarnMetricsMap() { - return internalGetYarnMetrics().getMap(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHdfsMetrics(), HdfsMetricsDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetYarnMetrics(), YarnMetricsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetHdfsMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry hdfsMetrics__ = - HdfsMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hdfsMetrics__); - } - for (java.util.Map.Entry entry : - internalGetYarnMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry yarnMetrics__ = - YarnMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, yarnMetrics__); - } - 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.dataproc.v1beta2.ClusterMetrics)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterMetrics other = - (com.google.cloud.dataproc.v1beta2.ClusterMetrics) obj; - - if (!internalGetHdfsMetrics().equals(other.internalGetHdfsMetrics())) return false; - if (!internalGetYarnMetrics().equals(other.internalGetYarnMetrics())) 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 (!internalGetHdfsMetrics().getMap().isEmpty()) { - hash = (37 * hash) + HDFS_METRICS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHdfsMetrics().hashCode(); - } - if (!internalGetYarnMetrics().getMap().isEmpty()) { - hash = (37 * hash) + YARN_METRICS_FIELD_NUMBER; - hash = (53 * hash) + internalGetYarnMetrics().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics 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.dataproc.v1beta2.ClusterMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics 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.dataproc.v1beta2.ClusterMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics 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.dataproc.v1beta2.ClusterMetrics prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Contains cluster daemon metrics, such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It may
-   * be changed before final release.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterMetrics} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterMetrics) - com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHdfsMetrics(); - case 2: - return internalGetYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableHdfsMetrics(); - case 2: - return internalGetMutableYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterMetrics.class, - com.google.cloud.dataproc.v1beta2.ClusterMetrics.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterMetrics.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(); - internalGetMutableHdfsMetrics().clear(); - internalGetMutableYarnMetrics().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterMetrics getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterMetrics.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterMetrics build() { - com.google.cloud.dataproc.v1beta2.ClusterMetrics result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterMetrics buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterMetrics result = - new com.google.cloud.dataproc.v1beta2.ClusterMetrics(this); - int from_bitField0_ = bitField0_; - result.hdfsMetrics_ = internalGetHdfsMetrics(); - result.hdfsMetrics_.makeImmutable(); - result.yarnMetrics_ = internalGetYarnMetrics(); - result.yarnMetrics_.makeImmutable(); - 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.dataproc.v1beta2.ClusterMetrics) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterMetrics) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterMetrics other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterMetrics.getDefaultInstance()) - return this; - internalGetMutableHdfsMetrics().mergeFrom(other.internalGetHdfsMetrics()); - internalGetMutableYarnMetrics().mergeFrom(other.internalGetYarnMetrics()); - 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.dataproc.v1beta2.ClusterMetrics parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.ClusterMetrics) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField hdfsMetrics_; - - private com.google.protobuf.MapField - internalGetHdfsMetrics() { - if (hdfsMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HdfsMetricsDefaultEntryHolder.defaultEntry); - } - return hdfsMetrics_; - } - - private com.google.protobuf.MapField - internalGetMutableHdfsMetrics() { - onChanged(); - ; - if (hdfsMetrics_ == null) { - hdfsMetrics_ = - com.google.protobuf.MapField.newMapField(HdfsMetricsDefaultEntryHolder.defaultEntry); - } - if (!hdfsMetrics_.isMutable()) { - hdfsMetrics_ = hdfsMetrics_.copy(); - } - return hdfsMetrics_; - } - - public int getHdfsMetricsCount() { - return internalGetHdfsMetrics().getMap().size(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetHdfsMetrics().getMap().containsKey(key); - } - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHdfsMetrics() { - return getHdfsMetricsMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public java.util.Map getHdfsMetricsMap() { - return internalGetHdfsMetrics().getMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHdfsMetrics() { - internalGetMutableHdfsMetrics().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder removeHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableHdfsMetrics().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHdfsMetrics() { - return internalGetMutableHdfsMetrics().getMutableMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder putHdfsMetrics(java.lang.String key, long value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - - internalGetMutableHdfsMetrics().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder putAllHdfsMetrics(java.util.Map values) { - internalGetMutableHdfsMetrics().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField yarnMetrics_; - - private com.google.protobuf.MapField - internalGetYarnMetrics() { - if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); - } - return yarnMetrics_; - } - - private com.google.protobuf.MapField - internalGetMutableYarnMetrics() { - onChanged(); - ; - if (yarnMetrics_ == null) { - yarnMetrics_ = - com.google.protobuf.MapField.newMapField(YarnMetricsDefaultEntryHolder.defaultEntry); - } - if (!yarnMetrics_.isMutable()) { - yarnMetrics_ = yarnMetrics_.copy(); - } - return yarnMetrics_; - } - - public int getYarnMetricsCount() { - return internalGetYarnMetrics().getMap().size(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetYarnMetrics().getMap().containsKey(key); - } - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getYarnMetrics() { - return getYarnMetricsMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public java.util.Map getYarnMetricsMap() { - return internalGetYarnMetrics().getMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearYarnMetrics() { - internalGetMutableYarnMetrics().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder removeYarnMetrics(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableYarnMetrics().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableYarnMetrics() { - return internalGetMutableYarnMetrics().getMutableMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder putYarnMetrics(java.lang.String key, long value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - - internalGetMutableYarnMetrics().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder putAllYarnMetrics(java.util.Map values) { - internalGetMutableYarnMetrics().getMutableMap().putAll(values); - 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.dataproc.v1beta2.ClusterMetrics) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterMetrics) - private static final com.google.cloud.dataproc.v1beta2.ClusterMetrics DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterMetrics(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterMetrics getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterMetrics(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.dataproc.v1beta2.ClusterMetrics getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java deleted file mode 100644 index 61fd070b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java +++ /dev/null @@ -1,133 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterMetricsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterMetrics) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - int getHdfsMetricsCount(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - boolean containsHdfsMetrics(java.lang.String key); - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHdfsMetrics(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - java.util.Map getHdfsMetricsMap(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - long getHdfsMetricsOrThrow(java.lang.String key); - - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - int getYarnMetricsCount(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - boolean containsYarnMetrics(java.lang.String key); - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getYarnMetrics(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - java.util.Map getYarnMetricsMap(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - long getYarnMetricsOrDefault(java.lang.String key, long defaultValue); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - long getYarnMetricsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java deleted file mode 100644 index 921753bf..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java +++ /dev/null @@ -1,905 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The cluster operation triggered by a workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperation} - */ -public final class ClusterOperation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterOperation) - ClusterOperationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperation.newBuilder() to construct. - private ClusterOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperation() { - operationId_ = ""; - error_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterOperation( - 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(); - - operationId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - case 24: - { - done_ = 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperation.class, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder.class); - } - - public static final int OPERATION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object operationId_; - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - @java.lang.Override - public java.lang.String getOperationId() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - private volatile java.lang.Object error_; - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - @java.lang.Override - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DONE_FIELD_NUMBER = 3; - private boolean done_; - /** - * - * - *
-   * Output only. Indicates the operation is done.
-   * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOperationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); - } - if (done_ != false) { - output.writeBool(3, done_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOperationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); - } - if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_); - } - 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.dataproc.v1beta2.ClusterOperation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterOperation other = - (com.google.cloud.dataproc.v1beta2.ClusterOperation) obj; - - if (!getOperationId().equals(other.getOperationId())) return false; - if (!getError().equals(other.getError())) return false; - if (getDone() != other.getDone()) 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) + OPERATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperationId().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation 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.dataproc.v1beta2.ClusterOperation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation 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.dataproc.v1beta2.ClusterOperation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation 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.dataproc.v1beta2.ClusterOperation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 cluster operation triggered by a workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterOperation) - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperation.class, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterOperation.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(); - operationId_ = ""; - - error_ = ""; - - done_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperation build() { - com.google.cloud.dataproc.v1beta2.ClusterOperation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperation buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterOperation result = - new com.google.cloud.dataproc.v1beta2.ClusterOperation(this); - result.operationId_ = operationId_; - result.error_ = error_; - result.done_ = done_; - 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.dataproc.v1beta2.ClusterOperation) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterOperation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterOperation other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance()) - return this; - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - if (other.getDone() != false) { - setDone(other.getDone()); - } - 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.dataproc.v1beta2.ClusterOperation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ClusterOperation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - public java.lang.String getOperationId() { - java.lang.Object ref = operationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - public com.google.protobuf.ByteString getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operationId to set. - * @return This builder for chaining. - */ - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The error to set. - * @return This builder for chaining. - */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for error to set. - * @return This builder for chaining. - */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - - private boolean done_; - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The done to set. - * @return This builder for chaining. - */ - public Builder setDone(boolean value) { - - done_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDone() { - - done_ = false; - 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.dataproc.v1beta2.ClusterOperation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperation) - private static final com.google.cloud.dataproc.v1beta2.ClusterOperation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterOperation(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperation(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.dataproc.v1beta2.ClusterOperation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java deleted file mode 100644 index d8746ae7..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java +++ /dev/null @@ -1,2589 +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/dataproc/v1beta2/operations.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Metadata describing the operation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperationMetadata} - */ -public final class ClusterOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) - ClusterOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperationMetadata.newBuilder() to construct. - private ClusterOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperationMetadata() { - clusterName_ = ""; - clusterUuid_ = ""; - statusHistory_ = java.util.Collections.emptyList(); - operationType_ = ""; - description_ = ""; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterOperationMetadata( - 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 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 74: - { - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus>(); - mutable_bitField0_ |= 0x00000001; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.parser(), - extensionRegistry)); - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationType_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - warnings_.add(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)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 8; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1beta2.ClusterOperationStatus status_; - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 10; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder - getStatusHistoryOrBuilder(int index) { - return statusHistory_.get(index); - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 11; - private volatile java.lang.Object operationType_; - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11; - * - * @return The operationType. - */ - @java.lang.Override - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11; - * - * @return The bytes for operationType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 12; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 13; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_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(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - @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(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - @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; - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - @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 WARNINGS_FIELD_NUMBER = 14; - private com.google.protobuf.LazyStringList warnings_; - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); - } - if (!getClusterUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clusterUuid_); - } - if (status_ != null) { - output.writeMessage(9, getStatus()); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(10, statusHistory_.get(i)); - } - if (!getOperationTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, operationType_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); - for (int i = 0; i < warnings_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warnings_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); - } - if (!getClusterUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clusterUuid_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, statusHistory_.get(i)); - } - if (!getOperationTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, operationType_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); - } - 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(13, labels__); - } - { - int dataSize = 0; - for (int i = 0; i < warnings_.size(); i++) { - dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); - } - size += dataSize; - size += 1 * getWarningsList().size(); - } - 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.dataproc.v1beta2.ClusterOperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata other = - (com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getOperationType().equals(other.getOperationType())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getWarningsList().equals(other.getWarningsList())) 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) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getOperationType().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata 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.dataproc.v1beta2.ClusterOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata 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.dataproc.v1beta2.ClusterOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata 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.dataproc.v1beta2.ClusterOperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 describing the operation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - clusterName_ = ""; - - clusterUuid_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - statusHistoryBuilder_.clear(); - } - operationType_ = ""; - - description_ = ""; - - internalGetMutableLabels().clear(); - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata build() { - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata result = - new com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata(this); - int from_bitField0_ = bitField0_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - result.operationType_ = operationType_; - result.description_ = description_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.warnings_ = warnings_; - 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.dataproc.v1beta2.ClusterOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata.getDefaultInstance()) - return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (!other.getOperationType().isEmpty()) { - operationType_ = other.operationType_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - 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.dataproc.v1beta2.ClusterOperationMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterOperationStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return The status. - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.ClusterOperationStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public Builder setStatus( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1beta2.ClusterOperationStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List - statusHistory_ = java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList( - statusHistory_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public java.util.List - getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder setStatusHistory( - int index, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder addStatusHistory( - int index, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable - values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder getStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder - getStatusHistoryOrBuilder(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public java.util.List< - ? extends com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder> - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder - addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder addStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.lang.Object operationType_ = ""; - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11; - * - * @return The operationType. - */ - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11; - * - * @return The bytes for operationType. - */ - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = getDefaultInstance().getOperationType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11; - * - * @param value The bytes for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationType_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - 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(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - @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(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - @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; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - @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; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - 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(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - 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; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param index The index to set the value at. - * @param value The warnings to set. - * @return This builder for chaining. - */ - public Builder setWarnings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param value The warnings to add. - * @return This builder for chaining. - */ - public Builder addWarnings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param values The warnings to add. - * @return This builder for chaining. - */ - public Builder addAllWarnings(java.lang.Iterable values) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @return This builder for chaining. - */ - public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14; - * - * @param value The bytes of the warnings to add. - * @return This builder for chaining. - */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWarningsIsMutable(); - warnings_.add(value); - 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.dataproc.v1beta2.ClusterOperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) - private static final com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperationMetadata(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.dataproc.v1beta2.ClusterOperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java deleted file mode 100644 index 1be49556..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java +++ /dev/null @@ -1,323 +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/dataproc/v1beta2/operations.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterOperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - * - * @return The status. - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatus(); - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus status = 9; - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.ClusterOperationStatus status_history = 10; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( - int index); - - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11; - * - * @return The operationType. - */ - java.lang.String getOperationType(); - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11; - * - * @return The bytes for operationType. - */ - com.google.protobuf.ByteString getOperationTypeBytes(); - - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - int getLabelsCount(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @return A list containing the warnings. - */ - java.util.List getWarningsList(); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @return The count of warnings. - */ - int getWarningsCount(); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - java.lang.String getWarnings(int index); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - com.google.protobuf.ByteString getWarningsBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationOrBuilder.java deleted file mode 100644 index 89f8858a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationOrBuilder.java +++ /dev/null @@ -1,88 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterOperationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterOperation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - java.lang.String getOperationId(); - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - com.google.protobuf.ByteString getOperationIdBytes(); - - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - java.lang.String getError(); - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - com.google.protobuf.ByteString getErrorBytes(); - - /** - * - * - *
-   * Output only. Indicates the operation is done.
-   * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - boolean getDone(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatus.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatus.java deleted file mode 100644 index f184c029..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatus.java +++ /dev/null @@ -1,1429 +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/dataproc/v1beta2/operations.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The status of the operation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperationStatus} - */ -public final class ClusterOperationStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterOperationStatus) - ClusterOperationStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperationStatus.newBuilder() to construct. - private ClusterOperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperationStatus() { - state_ = 0; - innerState_ = ""; - details_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperationStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterOperationStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - innerState_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = 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.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder.class); - } - - /** - * - * - *
-   * The operation state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.ClusterOperationStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - DONE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - public static final int DONE_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 UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - 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.dataproc.v1beta2.ClusterOperationStatus.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.dataproc.v1beta2.ClusterOperationStatus.State) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.UNRECOGNIZED - : result; - } - - public static final int INNER_STATE_FIELD_NUMBER = 2; - private volatile java.lang.Object innerState_; - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2; - * - * @return The innerState. - */ - @java.lang.Override - public java.lang.String getInnerState() { - java.lang.Object ref = innerState_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - innerState_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2; - * - * @return The bytes for innerState. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInnerStateBytes() { - java.lang.Object ref = innerState_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - innerState_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DETAILS_FIELD_NUMBER = 3; - private volatile java.lang.Object details_; - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3; - * - * @return The details. - */ - @java.lang.Override - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3; - * - * @return The bytes for details. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - output.writeEnum(1, state_); - } - if (!getInnerStateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, innerState_); - } - if (!getDetailsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); - } - if (stateStartTime_ != null) { - output.writeMessage(4, getStateStartTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ - != com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!getInnerStateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, innerState_); - } - if (!getDetailsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateStartTime()); - } - 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.dataproc.v1beta2.ClusterOperationStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus other = - (com.google.cloud.dataproc.v1beta2.ClusterOperationStatus) obj; - - if (state_ != other.state_) return false; - if (!getInnerState().equals(other.getInnerState())) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + INNER_STATE_FIELD_NUMBER; - hash = (53 * hash) + getInnerState().hashCode(); - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetails().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus 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.dataproc.v1beta2.ClusterOperationStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus 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.dataproc.v1beta2.ClusterOperationStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus 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.dataproc.v1beta2.ClusterOperationStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 status of the operation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterOperationStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterOperationStatus) - com.google.cloud.dataproc.v1beta2.ClusterOperationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.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(); - state_ = 0; - - innerState_ = ""; - - details_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.OperationsProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus build() { - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus result = - new com.google.cloud.dataproc.v1beta2.ClusterOperationStatus(this); - result.state_ = state_; - result.innerState_ = innerState_; - result.details_ = details_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.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.dataproc.v1beta2.ClusterOperationStatus) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterOperationStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterOperationStatus other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getInnerState().isEmpty()) { - innerState_ = other.innerState_; - onChanged(); - } - if (!other.getDetails().isEmpty()) { - details_ = other.details_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - 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.dataproc.v1beta2.ClusterOperationStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ClusterOperationStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @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; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object innerState_ = ""; - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2; - * - * @return The innerState. - */ - public java.lang.String getInnerState() { - java.lang.Object ref = innerState_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - innerState_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2; - * - * @return The bytes for innerState. - */ - public com.google.protobuf.ByteString getInnerStateBytes() { - java.lang.Object ref = innerState_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - innerState_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2; - * - * @param value The innerState to set. - * @return This builder for chaining. - */ - public Builder setInnerState(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - innerState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2; - * - * @return This builder for chaining. - */ - public Builder clearInnerState() { - - innerState_ = getDefaultInstance().getInnerState(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2; - * - * @param value The bytes for innerState to set. - * @return This builder for chaining. - */ - public Builder setInnerStateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - innerState_ = value; - onChanged(); - return this; - } - - private java.lang.Object details_ = ""; - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3; - * - * @return The details. - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3; - * - * @return The bytes for details. - */ - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3; - * - * @param value The details to set. - * @return This builder for chaining. - */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - details_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3; - * - * @return This builder for chaining. - */ - public Builder clearDetails() { - - details_ = getDefaultInstance().getDetails(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3; - * - * @param value The bytes for details to set. - * @return This builder for chaining. - */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - details_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - @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.dataproc.v1beta2.ClusterOperationStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterOperationStatus) - private static final com.google.cloud.dataproc.v1beta2.ClusterOperationStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterOperationStatus(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterOperationStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperationStatus(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.dataproc.v1beta2.ClusterOperationStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatusOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatusOrBuilder.java deleted file mode 100644 index 30387950..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatusOrBuilder.java +++ /dev/null @@ -1,135 +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/dataproc/v1beta2/operations.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterOperationStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterOperationStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterOperationStatus.State state = 1; - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationStatus.State getState(); - - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2; - * - * @return The innerState. - */ - java.lang.String getInnerState(); - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2; - * - * @return The bytes for innerState. - */ - com.google.protobuf.ByteString getInnerStateBytes(); - - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3; - * - * @return The details. - */ - java.lang.String getDetails(); - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3; - * - * @return The bytes for details. - */ - com.google.protobuf.ByteString getDetailsBytes(); - - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * .google.protobuf.Timestamp state_start_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOrBuilder.java deleted file mode 100644 index 6a4f0aa2..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOrBuilder.java +++ /dev/null @@ -1,382 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.Cluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig(); - /** - * - * - *
-   * Required. The cluster config. Note that Dataproc may set
-   * default values, and values may change when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1beta2.ClusterStatus getStatus(); - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index); - - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - boolean hasMetrics(); - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - com.google.cloud.dataproc.v1beta2.ClusterMetrics getMetrics(); - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterMetricsOrBuilder getMetricsOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelector.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelector.java deleted file mode 100644 index 64d59998..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelector.java +++ /dev/null @@ -1,1002 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A selector that chooses target cluster for jobs based on metadata.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterSelector} - */ -public final class ClusterSelector extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterSelector) - ClusterSelectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterSelector.newBuilder() to construct. - private ClusterSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterSelector() { - zone_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterSelector(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterSelector( - 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(); - - zone_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - clusterLabels_ - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterSelector.class, - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder.class); - } - - public static final int ZONE_FIELD_NUMBER = 1; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1; - * - * @return The zone. - */ - @java.lang.Override - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1; - * - * @return The bytes for zone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_LABELS_FIELD_NUMBER = 2; - - private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); - } - for (java.util.Map.Entry entry : - internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry clusterLabels__ = - ClusterLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, clusterLabels__); - } - 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.dataproc.v1beta2.ClusterSelector)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterSelector other = - (com.google.cloud.dataproc.v1beta2.ClusterSelector) obj; - - if (!getZone().equals(other.getZone())) return false; - if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - if (!internalGetClusterLabels().getMap().isEmpty()) { - hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetClusterLabels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector 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.dataproc.v1beta2.ClusterSelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector 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.dataproc.v1beta2.ClusterSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector 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.dataproc.v1beta2.ClusterSelector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 selector that chooses target cluster for jobs based on metadata.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterSelector} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterSelector) - com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterSelector.class, - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterSelector.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(); - zone_ = ""; - - internalGetMutableClusterLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelector getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelector build() { - com.google.cloud.dataproc.v1beta2.ClusterSelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelector buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterSelector result = - new com.google.cloud.dataproc.v1beta2.ClusterSelector(this); - int from_bitField0_ = bitField0_; - result.zone_ = zone_; - result.clusterLabels_ = internalGetClusterLabels(); - result.clusterLabels_.makeImmutable(); - 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.dataproc.v1beta2.ClusterSelector) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterSelector) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterSelector other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance()) - return this; - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); - 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.dataproc.v1beta2.ClusterSelector parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ClusterSelector) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1; - * - * @return The zone. - */ - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1; - * - * @return The bytes for zone. - */ - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1; - * - * @return This builder for chaining. - */ - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged(); - ; - if (clusterLabels_ == null) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); - } - if (!clusterLabels_.isMutable()) { - clusterLabels_ = clusterLabels_.copy(); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - public Builder removeClusterLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableClusterLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableClusterLabels() { - return internalGetMutableClusterLabels().getMutableMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - public Builder putClusterLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableClusterLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2; - */ - public Builder putAllClusterLabels(java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap().putAll(values); - 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.dataproc.v1beta2.ClusterSelector) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterSelector) - private static final com.google.cloud.dataproc.v1beta2.ClusterSelector DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterSelector(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterSelector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterSelector(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.dataproc.v1beta2.ClusterSelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelectorOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelectorOrBuilder.java deleted file mode 100644 index eabce738..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelectorOrBuilder.java +++ /dev/null @@ -1,115 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterSelectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterSelector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1; - * - * @return The zone. - */ - java.lang.String getZone(); - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1; - * - * @return The bytes for zone. - */ - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - int getClusterLabelsCount(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - boolean containsClusterLabels(java.lang.String key); - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getClusterLabels(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - java.util.Map getClusterLabelsMap(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - java.lang.String getClusterLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2; - */ - java.lang.String getClusterLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatus.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatus.java deleted file mode 100644 index 83c4be4b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatus.java +++ /dev/null @@ -1,1748 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The status of a cluster and its instances.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterStatus} - */ -public final class ClusterStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ClusterStatus) - ClusterStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterStatus.newBuilder() to construct. - private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterStatus() { - state_ = 0; - detail_ = ""; - substate_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - detail_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); - - substate_ = rawValue; - 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterStatus.class, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder.class); - } - - /** - * - * - *
-   * The cluster state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.ClusterStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The cluster state is unknown.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The cluster is being created and set up. It is not ready for use.
-     * 
- * - * CREATING = 1; - */ - CREATING(1), - /** - * - * - *
-     * The cluster is currently running and healthy. It is ready for use.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The cluster encountered an error. It is not ready for use.
-     * 
- * - * ERROR = 3; - */ - ERROR(3), - /** - * - * - *
-     * The cluster is being deleted. It cannot be used.
-     * 
- * - * DELETING = 4; - */ - DELETING(4), - /** - * - * - *
-     * The cluster is being updated. It continues to accept and process jobs.
-     * 
- * - * UPDATING = 5; - */ - UPDATING(5), - /** - * - * - *
-     * The cluster is being stopped. It cannot be used.
-     * 
- * - * STOPPING = 6; - */ - STOPPING(6), - /** - * - * - *
-     * The cluster is currently stopped. It is not ready for use.
-     * 
- * - * STOPPED = 7; - */ - STOPPED(7), - /** - * - * - *
-     * The cluster is being started. It is not ready for use.
-     * 
- * - * STARTING = 8; - */ - STARTING(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The cluster state is unknown.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The cluster is being created and set up. It is not ready for use.
-     * 
- * - * CREATING = 1; - */ - public static final int CREATING_VALUE = 1; - /** - * - * - *
-     * The cluster is currently running and healthy. It is ready for use.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The cluster encountered an error. It is not ready for use.
-     * 
- * - * ERROR = 3; - */ - public static final int ERROR_VALUE = 3; - /** - * - * - *
-     * The cluster is being deleted. It cannot be used.
-     * 
- * - * DELETING = 4; - */ - public static final int DELETING_VALUE = 4; - /** - * - * - *
-     * The cluster is being updated. It continues to accept and process jobs.
-     * 
- * - * UPDATING = 5; - */ - public static final int UPDATING_VALUE = 5; - /** - * - * - *
-     * The cluster is being stopped. It cannot be used.
-     * 
- * - * STOPPING = 6; - */ - public static final int STOPPING_VALUE = 6; - /** - * - * - *
-     * The cluster is currently stopped. It is not ready for use.
-     * 
- * - * STOPPED = 7; - */ - public static final int STOPPED_VALUE = 7; - /** - * - * - *
-     * The cluster is being started. It is not ready for use.
-     * 
- * - * STARTING = 8; - */ - public static final int STARTING_VALUE = 8; - - 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 UNKNOWN; - case 1: - return CREATING; - case 2: - return RUNNING; - case 3: - return ERROR; - case 4: - return DELETING; - case 5: - return UPDATING; - case 6: - return STOPPING; - case 7: - return STOPPED; - case 8: - return STARTING; - 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.dataproc.v1beta2.ClusterStatus.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.dataproc.v1beta2.ClusterStatus.State) - } - - /** - * - * - *
-   * The cluster substate.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.ClusterStatus.Substate} - */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The cluster substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * The cluster is known to be in an unhealthy state
-     * (for example, critical daemons are not running or HDFS capacity is
-     * exhausted).
-     * Applies to RUNNING state.
-     * 
- * - * UNHEALTHY = 1; - */ - UNHEALTHY(1), - /** - * - * - *
-     * The agent-reported status is out of date (may occur if
-     * Dataproc loses communication with Agent).
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 2; - */ - STALE_STATUS(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The cluster substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The cluster is known to be in an unhealthy state
-     * (for example, critical daemons are not running or HDFS capacity is
-     * exhausted).
-     * Applies to RUNNING state.
-     * 
- * - * UNHEALTHY = 1; - */ - public static final int UNHEALTHY_VALUE = 1; - /** - * - * - *
-     * The agent-reported status is out of date (may occur if
-     * Dataproc loses communication with Agent).
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 2; - */ - public static final int STALE_STATUS_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Substate 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 Substate forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return UNHEALTHY; - case 2: - return STALE_STATUS; - 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 Substate findValueByNumber(int number) { - return Substate.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.dataproc.v1beta2.ClusterStatus.getDescriptor().getEnumTypes().get(1); - } - - private static final Substate[] VALUES = values(); - - public static Substate 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 Substate(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.ClusterStatus.Substate) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterStatus.State result = - com.google.cloud.dataproc.v1beta2.ClusterStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.State.UNRECOGNIZED - : result; - } - - public static final int DETAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object detail_; - /** - * - * - *
-   * Output only. Optional details of cluster's state.
-   * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Optional details of cluster's state.
-   * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - public static final int SUBSTATE_FIELD_NUMBER = 4; - private int substate_; - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1beta2.ClusterStatus.State.UNKNOWN.getNumber()) { - output.writeEnum(1, state_); - } - if (!getDetailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_); - } - if (stateStartTime_ != null) { - output.writeMessage(3, getStateStartTime()); - } - if (substate_ - != com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - output.writeEnum(4, substate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1beta2.ClusterStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!getDetailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); - } - if (substate_ - != com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, substate_); - } - 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.dataproc.v1beta2.ClusterStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ClusterStatus other = - (com.google.cloud.dataproc.v1beta2.ClusterStatus) obj; - - if (state_ != other.state_) return false; - if (!getDetail().equals(other.getDetail())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (substate_ != other.substate_) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; - hash = (53 * hash) + substate_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus 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.dataproc.v1beta2.ClusterStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus 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.dataproc.v1beta2.ClusterStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus 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.dataproc.v1beta2.ClusterStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 status of a cluster and its instances.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ClusterStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ClusterStatus) - com.google.cloud.dataproc.v1beta2.ClusterStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ClusterStatus.class, - com.google.cloud.dataproc.v1beta2.ClusterStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ClusterStatus.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(); - state_ = 0; - - detail_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - substate_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus build() { - com.google.cloud.dataproc.v1beta2.ClusterStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus buildPartial() { - com.google.cloud.dataproc.v1beta2.ClusterStatus result = - new com.google.cloud.dataproc.v1beta2.ClusterStatus(this); - result.state_ = state_; - result.detail_ = detail_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.build(); - } - result.substate_ = substate_; - 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.dataproc.v1beta2.ClusterStatus) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ClusterStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterStatus other) { - if (other == com.google.cloud.dataproc.v1beta2.ClusterStatus.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - if (other.substate_ != 0) { - setSubstateValue(other.getSubstateValue()); - } - 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.dataproc.v1beta2.ClusterStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.ClusterStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterStatus.State result = - com.google.cloud.dataproc.v1beta2.ClusterStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.ClusterStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - * - * - *
-     * Output only. Optional details of cluster's state.
-     * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Optional details of cluster's state.
-     * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Optional details of cluster's state.
-     * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - detail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Optional details of cluster's state.
-     * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDetail() { - - detail_ = getDefaultInstance().getDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Optional details of cluster's state.
-     * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - detail_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - private int substate_ = 0; - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for substate to set. - * @return This builder for chaining. - */ - public Builder setSubstateValue(int value) { - - substate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The substate to set. - * @return This builder for chaining. - */ - public Builder setSubstate(com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate value) { - if (value == null) { - throw new NullPointerException(); - } - - substate_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSubstate() { - - substate_ = 0; - 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.dataproc.v1beta2.ClusterStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ClusterStatus) - private static final com.google.cloud.dataproc.v1beta2.ClusterStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ClusterStatus(); - } - - public static com.google.cloud.dataproc.v1beta2.ClusterStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterStatus(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.dataproc.v1beta2.ClusterStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatusOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatusOrBuilder.java deleted file mode 100644 index f0024925..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatusOrBuilder.java +++ /dev/null @@ -1,154 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ClusterStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ClusterStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.ClusterStatus.State getState(); - - /** - * - * - *
-   * Output only. Optional details of cluster's state.
-   * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The detail. - */ - java.lang.String getDetail(); - /** - * - * - *
-   * Output only. Optional details of cluster's state.
-   * 
- * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for detail. - */ - com.google.protobuf.ByteString getDetailBytes(); - - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - int getSubstateValue(); - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - com.google.cloud.dataproc.v1beta2.ClusterStatus.Substate getSubstate(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java deleted file mode 100644 index ecaed7cf..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java +++ /dev/null @@ -1,787 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class ClustersProto { - private ClustersProto() {} - - 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_dataproc_v1beta2_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_Cluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_Cluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DiskConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_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/dataproc/v1beta2/clusters" - + ".proto\022\035google.cloud.dataproc.v1beta2\032\034g" - + "oogle/api/annotations.proto\032\027google/api/" - + "client.proto\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032*google" - + "/cloud/dataproc/v1beta2/shared.proto\032#go" - + "ogle/longrunning/operations.proto\032\036googl" - + "e/protobuf/duration.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\"\346\003\n\007Cluster\022\027\n\nproject_id\030\001" - + " \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022A\n\006" - + "config\030\003 \001(\0132,.google.cloud.dataproc.v1b" - + "eta2.ClusterConfigB\003\340A\002\022G\n\006labels\030\010 \003(\0132" - + "2.google.cloud.dataproc.v1beta2.Cluster." - + "LabelsEntryB\003\340A\001\022A\n\006status\030\004 \001(\0132,.googl" - + "e.cloud.dataproc.v1beta2.ClusterStatusB\003" - + "\340A\003\022I\n\016status_history\030\007 \003(\0132,.google.clo" - + "ud.dataproc.v1beta2.ClusterStatusB\003\340A\003\022\031" - + "\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022C\n\007metrics\030\t \001" - + "(\0132-.google.cloud.dataproc.v1beta2.Clust" - + "erMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\010\n\rClusterConfig\022" - + "\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_buck" - + "et\030\002 \001(\tB\003\340A\001\022P\n\022gce_cluster_config\030\010 \001(" - + "\0132/.google.cloud.dataproc.v1beta2.GceClu" - + "sterConfigB\003\340A\001\022N\n\rmaster_config\030\t \001(\01322" - + ".google.cloud.dataproc.v1beta2.InstanceG" - + "roupConfigB\003\340A\001\022N\n\rworker_config\030\n \001(\01322" - + ".google.cloud.dataproc.v1beta2.InstanceG" - + "roupConfigB\003\340A\001\022X\n\027secondary_worker_conf" - + "ig\030\014 \001(\01322.google.cloud.dataproc.v1beta2" - + ".InstanceGroupConfigB\003\340A\001\022K\n\017software_co" - + "nfig\030\r \001(\0132-.google.cloud.dataproc.v1bet" - + "a2.SoftwareConfigB\003\340A\001\022M\n\020lifecycle_conf" - + "ig\030\016 \001(\0132..google.cloud.dataproc.v1beta2" - + ".LifecycleConfigB\003\340A\001\022\\\n\026initialization_" - + "actions\030\013 \003(\01327.google.cloud.dataproc.v1" - + "beta2.NodeInitializationActionB\003\340A\001\022O\n\021e" - + "ncryption_config\030\017 \001(\0132/.google.cloud.da" - + "taproc.v1beta2.EncryptionConfigB\003\340A\001\022Q\n\022" - + "autoscaling_config\030\020 \001(\01320.google.cloud." - + "dataproc.v1beta2.AutoscalingConfigB\003\340A\001\022" - + "K\n\017endpoint_config\030\021 \001(\0132-.google.cloud." - + "dataproc.v1beta2.EndpointConfigB\003\340A\001\022K\n\017" - + "security_config\030\022 \001(\0132-.google.cloud.dat" - + "aproc.v1beta2.SecurityConfigB\003\340A\001\022P\n\022gke" - + "_cluster_config\030\023 \001(\0132/.google.cloud.dat" - + "aproc.v1beta2.GkeClusterConfigB\003\340A\001\"\230\002\n\020" - + "GkeClusterConfig\022|\n namespaced_gke_deplo" - + "yment_target\030\001 \001(\0132M.google.cloud.datapr" - + "oc.v1beta2.GkeClusterConfig.NamespacedGk" - + "eDeploymentTargetB\003\340A\001\032\205\001\n\035NamespacedGke" - + "DeploymentTarget\022D\n\022target_gke_cluster\030\001" - + " \001(\tB(\340A\001\372A\"\n container.googleapis.com/C" - + "luster\022\036\n\021cluster_namespace\030\002 \001(\tB\003\340A\001\"\277" - + "\001\n\016EndpointConfig\022U\n\nhttp_ports\030\001 \003(\0132<." - + "google.cloud.dataproc.v1beta2.EndpointCo" - + "nfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_" - + "port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Auto" - + "scalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4" - + "\n\020EncryptionConfig\022 \n\023gce_pd_kms_key_nam" - + "e\030\001 \001(\tB\003\340A\001\"\251\003\n\020GceClusterConfig\022\025\n\010zon" - + "e_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340" - + "A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020inter" - + "nal_ip_only\030\007 \001(\010B\003\340A\001\022\034\n\017service_accoun" - + "t\030\010 \001(\tB\003\340A\001\022#\n\026service_account_scopes\030\003" - + " \003(\tB\003\340A\001\022\014\n\004tags\030\004 \003(\t\022O\n\010metadata\030\005 \003(" - + "\0132=.google.cloud.dataproc.v1beta2.GceClu" - + "sterConfig.MetadataEntry\022U\n\024reservation_" - + "affinity\030\013 \001(\01322.google.cloud.dataproc.v" - + "1beta2.ReservationAffinityB\003\340A\001\032/\n\rMetad" - + "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"\334\004\n\023InstanceGroupConfig\022\032\n\rnum_instance" - + "s\030\001 \001(\005B\003\340A\001\022\033\n\016instance_names\030\002 \003(\tB\003\340A" - + "\003\022\026\n\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machine_typ" - + "e_uri\030\004 \001(\tB\003\340A\001\022C\n\013disk_config\030\005 \001(\0132)." - + "google.cloud.dataproc.v1beta2.DiskConfig" - + "B\003\340A\001\022\033\n\016is_preemptible\030\006 \001(\010B\003\340A\003\022^\n\016pr" - + "eemptibility\030\n \001(\0162A.google.cloud.datapr" - + "oc.v1beta2.InstanceGroupConfig.Preemptib" - + "ilityB\003\340A\001\022T\n\024managed_group_config\030\007 \001(\013" - + "21.google.cloud.dataproc.v1beta2.Managed" - + "GroupConfigB\003\340A\003\022K\n\014accelerators\030\010 \003(\01320" - + ".google.cloud.dataproc.v1beta2.Accelerat" - + "orConfigB\003\340A\001\022\030\n\020min_cpu_platform\030\t \001(\t\"" - + "V\n\016Preemptibility\022\036\n\032PREEMPTIBILITY_UNSP" - + "ECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013PREEMP" - + "TIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026instanc" - + "e_template_name\030\001 \001(\tB\003\340A\003\022(\n\033instance_g" - + "roup_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021Accelera" - + "torConfig\022\034\n\024accelerator_type_uri\030\001 \001(\t\022" - + "\031\n\021accelerator_count\030\002 \001(\005\"a\n\nDiskConfig" - + "\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_di" - + "sk_size_gb\030\001 \001(\005B\003\340A\001\022\026\n\016num_local_ssds\030" - + "\002 \001(\005\"\203\002\n\017LifecycleConfig\0227\n\017idle_delete" - + "_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\022;\n\020auto_delete_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\001H\000\0229\n\017auto_delete_t" - + "tl\030\003 \001(\0132\031.google.protobuf.DurationB\003\340A\001" - + "H\000\0228\n\017idle_start_time\030\004 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003B\005\n\003ttl\"X\n\016SecurityC" - + "onfig\022F\n\017kerberos_config\030\001 \001(\0132-.google." - + "cloud.dataproc.v1beta2.KerberosConfig\"\220\004" - + "\n\016KerberosConfig\022\034\n\017enable_kerberos\030\001 \001(" - + "\010B\003\340A\001\022(\n\033root_principal_password_uri\030\002 " - + "\001(\tB\003\340A\002\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\002\022\031\n\014ke" - + "ystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030" - + "\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(" - + "\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n" - + "\027truststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027c" - + "ross_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cro" - + "ss_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_r" - + "ealm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cr" - + "oss_realm_trust_shared_password_uri\030\014 \001(" - + "\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022t" - + "gt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 " - + "\001(\tB\003\340A\001\"s\n\030NodeInitializationAction\022\034\n\017" - + "executable_file\030\001 \001(\tB\003\340A\002\0229\n\021execution_" - + "timeout\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\"\264\003\n\rClusterStatus\022F\n\005state\030\001 \001(\01622" - + ".google.cloud.dataproc.v1beta2.ClusterSt" - + "atus.StateB\003\340A\003\022\023\n\006detail\030\002 \001(\tB\003\340A\003\0229\n\020" - + "state_start_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022L\n\010substate\030\004 \001(\01625.goog" - + "le.cloud.dataproc.v1beta2.ClusterStatus." - + "SubstateB\003\340A\003\"\177\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010C" - + "REATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010DEL" - + "ETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007S" - + "TOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UN" - + "SPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STAT" - + "US\020\002\"\376\001\n\016SoftwareConfig\022\032\n\rimage_version" - + "\030\001 \001(\tB\003\340A\001\022V\n\nproperties\030\002 \003(\0132=.google" - + ".cloud.dataproc.v1beta2.SoftwareConfig.P" - + "ropertiesEntryB\003\340A\001\022E\n\023optional_componen" - + "ts\030\003 \003(\0162(.google.cloud.dataproc.v1beta2" - + ".Component\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\002\n\016ClusterMetrics" - + "\022T\n\014hdfs_metrics\030\001 \003(\0132>.google.cloud.da" - + "taproc.v1beta2.ClusterMetrics.HdfsMetric" - + "sEntry\022T\n\014yarn_metrics\030\002 \003(\0132>.google.cl" - + "oud.dataproc.v1beta2.ClusterMetrics.Yarn" - + "MetricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\233\001\n" - + "\024CreateClusterRequest\022\027\n\nproject_id\030\001 \001(" - + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022<\n\007cluster\030\002" - + " \001(\0132&.google.cloud.dataproc.v1beta2.Clu" - + "sterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\263\002\n\024U" - + "pdateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB" - + "\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_nam" - + "e\030\002 \001(\tB\003\340A\002\022<\n\007cluster\030\003 \001(\0132&.google.c" - + "loud.dataproc.v1beta2.ClusterB\003\340A\002\022E\n\035gr" - + "aceful_decommission_timeout\030\006 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\0224\n\013update_mask" - + "\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022" - + "\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\223\001\n\024DeleteClust" - + "erRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" - + "gion\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340" - + "A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest" - + "_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\np" - + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" - + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClu" - + "stersRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022" - + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " - + "\001(\tB\003\340A\001\"s\n\024ListClustersResponse\022=\n\010clus" - + "ters\030\001 \003(\0132&.google.cloud.dataproc.v1bet" - + "a2.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\t" - + "B\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\nproje" - + "ct_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n" - + "\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClus" - + "terResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\375\001\n\023" - + "ReservationAffinity\022^\n\030consume_reservati" - + "on_type\030\001 \001(\01627.google.cloud.dataproc.v1" - + "beta2.ReservationAffinity.TypeB\003\340A\001\022\020\n\003k" - + "ey\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Ty" - + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATI" - + "ON\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RE" - + "SERVATION\020\0032\347\r\n\021ClusterController\022\221\002\n\rCr" - + "eateCluster\0223.google.cloud.dataproc.v1be" - + "ta2.CreateClusterRequest\032\035.google.longru" - + "nning.Operation\"\253\001\202\323\344\223\002C\"8/v1beta2/proje" - + "cts/{project_id}/regions/{region}/cluste" - + "rs:\007cluster\332A\033project_id, region, cluste" - + "r\312AA\n\007Cluster\0226google.cloud.dataproc.v1b" - + "eta2.ClusterOperationMetadata\022\273\002\n\rUpdate" - + "Cluster\0223.google.cloud.dataproc.v1beta2." - + "UpdateClusterRequest\032\035.google.longrunnin" - + "g.Operation\"\325\001\202\323\344\223\002R2G/v1beta2/projects/" - + "{project_id}/regions/{region}/clusters/{" - + "cluster_name}:\007cluster\332A6project_id, reg" - + "ion, cluster_name, cluster, update_mask\312" - + "AA\n\007Cluster\0226google.cloud.dataproc.v1bet" - + "a2.ClusterOperationMetadata\022\252\002\n\rDeleteCl" - + "uster\0223.google.cloud.dataproc.v1beta2.De" - + "leteClusterRequest\032\035.google.longrunning." - + "Operation\"\304\001\202\323\344\223\002I*G/v1beta2/projects/{p" - + "roject_id}/regions/{region}/clusters/{cl" - + "uster_name}\332A project_id, region, cluste" - + "r_name\312AO\n\025google.protobuf.Empty\0226google" - + ".cloud.dataproc.v1beta2.ClusterOperation" - + "Metadata\022\332\001\n\nGetCluster\0220.google.cloud.d" - + "ataproc.v1beta2.GetClusterRequest\032&.goog" - + "le.cloud.dataproc.v1beta2.Cluster\"r\202\323\344\223\002" - + "I\022G/v1beta2/projects/{project_id}/region" - + "s/{region}/clusters/{cluster_name}\332A pro" - + "ject_id, region, cluster_name\022\353\001\n\014ListCl" - + "usters\0222.google.cloud.dataproc.v1beta2.L" - + "istClustersRequest\0323.google.cloud.datapr" - + "oc.v1beta2.ListClustersResponse\"r\202\323\344\223\002:\022" - + "8/v1beta2/projects/{project_id}/regions/" - + "{region}/clusters\332A\022project_id, region\332A" - + "\032project_id, region, filter\022\272\002\n\017Diagnose" - + "Cluster\0225.google.cloud.dataproc.v1beta2." - + "DiagnoseClusterRequest\032\035.google.longrunn" - + "ing.Operation\"\320\001\202\323\344\223\002U\"P/v1beta2/project" - + "s/{project_id}/regions/{region}/clusters" - + "/{cluster_name}:diagnose:\001*\332A project_id" - + ", region, cluster_name\312AO\n\025google.protob" - + "uf.Empty\0226google.cloud.dataproc.v1beta2." - + "ClusterOperationMetadata\032K\312A\027dataproc.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\275\002\n!com.google.clo" - + "ud.dataproc.v1beta2B\rClustersProtoP\001ZEgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/dataproc/v1beta2;dataproc\352A^\n containe" - + "r.googleapis.com/Cluster\022:projects/{proj" - + "ect}/locations/{location}/clusters/{clus" - + "ter}\352A^\n metastore.googleapis.com/Servic" - + "e\022:projects/{project}/locations/{locatio" - + "n}/services/{service}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.dataproc.v1beta2.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_Cluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor, - new java.lang.String[] { - "ProjectId", - "ClusterName", - "Config", - "Labels", - "Status", - "StatusHistory", - "ClusterUuid", - "Metrics", - }); - internal_static_google_cloud_dataproc_v1beta2_Cluster_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_Cluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_Cluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_Cluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor, - new java.lang.String[] { - "ConfigBucket", - "TempBucket", - "GceClusterConfig", - "MasterConfig", - "WorkerConfig", - "SecondaryWorkerConfig", - "SoftwareConfig", - "LifecycleConfig", - "InitializationActions", - "EncryptionConfig", - "AutoscalingConfig", - "EndpointConfig", - "SecurityConfig", - "GkeClusterConfig", - }); - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor, - new java.lang.String[] { - "NamespacedGkeDeploymentTarget", - }); - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor = - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor, - new java.lang.String[] { - "TargetGkeCluster", "ClusterNamespace", - }); - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor, - new java.lang.String[] { - "HttpPorts", "EnableHttpPortAccess", - }); - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor, - new java.lang.String[] { - "PolicyUri", - }); - internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor, - new java.lang.String[] { - "GcePdKmsKeyName", - }); - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor, - new java.lang.String[] { - "ZoneUri", - "NetworkUri", - "SubnetworkUri", - "InternalIpOnly", - "ServiceAccount", - "ServiceAccountScopes", - "Tags", - "Metadata", - "ReservationAffinity", - }); - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor, - new java.lang.String[] { - "NumInstances", - "InstanceNames", - "ImageUri", - "MachineTypeUri", - "DiskConfig", - "IsPreemptible", - "Preemptibility", - "ManagedGroupConfig", - "Accelerators", - "MinCpuPlatform", - }); - internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor, - new java.lang.String[] { - "InstanceTemplateName", "InstanceGroupManagerName", - }); - internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor, - new java.lang.String[] { - "AcceleratorTypeUri", "AcceleratorCount", - }); - internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1beta2_DiskConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor, - new java.lang.String[] { - "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", - }); - internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor, - new java.lang.String[] { - "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", - }); - internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor, - new java.lang.String[] { - "KerberosConfig", - }); - internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor, - new java.lang.String[] { - "EnableKerberos", - "RootPrincipalPasswordUri", - "KmsKeyUri", - "KeystoreUri", - "TruststoreUri", - "KeystorePasswordUri", - "KeyPasswordUri", - "TruststorePasswordUri", - "CrossRealmTrustRealm", - "CrossRealmTrustKdc", - "CrossRealmTrustAdminServer", - "CrossRealmTrustSharedPasswordUri", - "KdcDbKeyUri", - "TgtLifetimeHours", - "Realm", - }); - internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor, - new java.lang.String[] { - "ExecutableFile", "ExecutionTimeout", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor, - new java.lang.String[] { - "State", "Detail", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor, - new java.lang.String[] { - "ImageVersion", "Properties", "OptionalComponents", - }); - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor, - new java.lang.String[] { - "HdfsMetrics", "YarnMetrics", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_HdfsMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_YarnMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Cluster", "RequestId", - }); - internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "ClusterName", - "Cluster", - "GracefulDecommissionTimeout", - "UpdateMask", - "RequestId", - }); - internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor, - new java.lang.String[] { - "Clusters", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor, - new java.lang.String[] { - "OutputUri", - }); - internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor, - new java.lang.String[] { - "ConsumeReservationType", "Key", "Values", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1beta2.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java deleted file mode 100644 index 25c00c02..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java +++ /dev/null @@ -1,374 +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/dataproc/v1beta2/shared.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Cluster components that can be activated.
- * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.Component} - */ -public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified component. Specifying this will cause Cluster creation to fail.
-   * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-   * The Anaconda python distribution.
-   * 
- * - * ANACONDA = 5; - */ - ANACONDA(5), - /** - * - * - *
-   * The Druid query engine.
-   * 
- * - * DRUID = 9; - */ - DRUID(9), - /** - * - * - *
-   * HBase.
-   * 
- * - * HBASE = 11; - */ - HBASE(11), - /** - * - * - *
-   * The Hive Web HCatalog (the REST service for accessing HCatalog).
-   * 
- * - * HIVE_WEBHCAT = 3; - */ - HIVE_WEBHCAT(3), - /** - * - * - *
-   * The Jupyter Notebook.
-   * 
- * - * JUPYTER = 1; - */ - JUPYTER(1), - /** - * - * - *
-   * The Kerberos security feature.
-   * 
- * - * KERBEROS = 7; - */ - KERBEROS(7), - /** - * - * - *
-   * The Presto query engine.
-   * 
- * - * PRESTO = 6; - */ - PRESTO(6), - /** - * - * - *
-   * The Ranger service.
-   * 
- * - * RANGER = 12; - */ - RANGER(12), - /** - * - * - *
-   * The Solr service.
-   * 
- * - * SOLR = 10; - */ - SOLR(10), - /** - * - * - *
-   * The Zeppelin notebook.
-   * 
- * - * ZEPPELIN = 4; - */ - ZEPPELIN(4), - /** - * - * - *
-   * The Zookeeper service.
-   * 
- * - * ZOOKEEPER = 8; - */ - ZOOKEEPER(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified component. Specifying this will cause Cluster creation to fail.
-   * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The Anaconda python distribution.
-   * 
- * - * ANACONDA = 5; - */ - public static final int ANACONDA_VALUE = 5; - /** - * - * - *
-   * The Druid query engine.
-   * 
- * - * DRUID = 9; - */ - public static final int DRUID_VALUE = 9; - /** - * - * - *
-   * HBase.
-   * 
- * - * HBASE = 11; - */ - public static final int HBASE_VALUE = 11; - /** - * - * - *
-   * The Hive Web HCatalog (the REST service for accessing HCatalog).
-   * 
- * - * HIVE_WEBHCAT = 3; - */ - public static final int HIVE_WEBHCAT_VALUE = 3; - /** - * - * - *
-   * The Jupyter Notebook.
-   * 
- * - * JUPYTER = 1; - */ - public static final int JUPYTER_VALUE = 1; - /** - * - * - *
-   * The Kerberos security feature.
-   * 
- * - * KERBEROS = 7; - */ - public static final int KERBEROS_VALUE = 7; - /** - * - * - *
-   * The Presto query engine.
-   * 
- * - * PRESTO = 6; - */ - public static final int PRESTO_VALUE = 6; - /** - * - * - *
-   * The Ranger service.
-   * 
- * - * RANGER = 12; - */ - public static final int RANGER_VALUE = 12; - /** - * - * - *
-   * The Solr service.
-   * 
- * - * SOLR = 10; - */ - public static final int SOLR_VALUE = 10; - /** - * - * - *
-   * The Zeppelin notebook.
-   * 
- * - * ZEPPELIN = 4; - */ - public static final int ZEPPELIN_VALUE = 4; - /** - * - * - *
-   * The Zookeeper service.
-   * 
- * - * ZOOKEEPER = 8; - */ - public static final int ZOOKEEPER_VALUE = 8; - - 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 Component 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 Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 5: - return ANACONDA; - case 9: - return DRUID; - case 11: - return HBASE; - case 3: - return HIVE_WEBHCAT; - case 1: - return JUPYTER; - case 7: - return KERBEROS; - case 6: - return PRESTO; - case 12: - return RANGER; - case 10: - return SOLR; - case 4: - return ZEPPELIN; - case 8: - return ZOOKEEPER; - 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 Component findValueByNumber(int number) { - return Component.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.dataproc.v1beta2.SharedProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Component[] VALUES = values(); - - public static Component 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 Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.Component) -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java deleted file mode 100644 index 47798a97..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java +++ /dev/null @@ -1,1011 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to create an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest} - */ -public final class CreateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - CreateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateAutoscalingPolicyRequest.newBuilder() to construct. - private CreateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateAutoscalingPolicyRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateAutoscalingPolicyRequest( - 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: - { - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 POLICY_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_; - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - @java.lang.Override - public boolean hasPolicy() { - return policy_ != null; - } - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (policy_ != null) { - output.writeMessage(2, getPolicy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); - } - 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.dataproc.v1beta2.CreateAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasPolicy() != other.hasPolicy()) return false; - if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) 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(); - if (hasPolicy()) { - hash = (37 * hash) + POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPolicy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest 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.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest 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.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest 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.dataproc.v1beta2.CreateAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.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_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; - policyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest(this); - result.parent_ = parent_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.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.dataproc.v1beta2.CreateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasPolicy()) { - mergePolicy(other.getPolicy()); - } - 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.dataproc.v1beta2.CreateAutoscalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - policyBuilder_; - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() { - if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } else { - return policyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - policyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) { - if (policyBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - policyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - policyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; - policyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPolicyBuilder() { - - onChanged(); - return getPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - if (policyBuilder_ != null) { - return policyBuilder_.getMessageOrBuilder(); - } else { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - getPolicyFieldBuilder() { - if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); - policy_ = null; - } - return policyBuilder_; - } - - @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.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAutoscalingPolicyRequest(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.dataproc.v1beta2.CreateAutoscalingPolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index 6bbdaea6..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface CreateAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy(); - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java deleted file mode 100644 index d02fb356..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java +++ /dev/null @@ -1,1366 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to create a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateClusterRequest} - */ -public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.CreateClusterRequest) - CreateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateClusterRequest.newBuilder() to construct. - private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateClusterRequest() { - projectId_ = ""; - region_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest.class, - com.google.cloud.dataproc.v1beta2.CreateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.Cluster cluster_; - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return cluster_ != null; - } - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster getCluster() { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (cluster_ != null) { - output.writeMessage(2, getCluster()); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - 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.dataproc.v1beta2.CreateClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.CreateClusterRequest other = - (com.google.cloud.dataproc.v1beta2.CreateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; - } - if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - if (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest 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.dataproc.v1beta2.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest 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.dataproc.v1beta2.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest 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.dataproc.v1beta2.CreateClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.CreateClusterRequest) - com.google.cloud.dataproc.v1beta2.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateClusterRequest.class, - com.google.cloud.dataproc.v1beta2.CreateClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.CreateClusterRequest.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(); - projectId_ = ""; - - region_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.CreateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateClusterRequest build() { - com.google.cloud.dataproc.v1beta2.CreateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.CreateClusterRequest result = - new com.google.cloud.dataproc.v1beta2.CreateClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1beta2.CreateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.CreateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.CreateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.CreateClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - 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.dataproc.v1beta2.CreateClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.CreateClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.cloud.dataproc.v1beta2.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1beta2.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.cloud.dataproc.v1beta2.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1beta2.CreateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateClusterRequest) - private static final com.google.cloud.dataproc.v1beta2.CreateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.CreateClusterRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.CreateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateClusterRequest(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.dataproc.v1beta2.CreateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java deleted file mode 100644 index a800b629..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,161 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface CreateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.CreateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - boolean hasCluster(); - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.cloud.dataproc.v1beta2.Cluster getCluster(); - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequest.java deleted file mode 100644 index 846ca5f0..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequest.java +++ /dev/null @@ -1,1010 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to create a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest} - */ -public final class CreateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - CreateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateWorkflowTemplateRequest.newBuilder() to construct. - private CreateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateWorkflowTemplateRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateWorkflowTemplateRequest( - 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: - { - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (template_ != null) { - output.writeMessage(2, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); - } - 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.dataproc.v1beta2.CreateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) 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(); - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest 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.dataproc.v1beta2.CreateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest 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.dataproc.v1beta2.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest 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.dataproc.v1beta2.CreateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.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_ = ""; - - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest(this); - result.parent_ = parent_; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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.dataproc.v1beta2.CreateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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.dataproc.v1beta2.CreateWorkflowTemplateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - @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.dataproc.v1beta2.CreateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkflowTemplateRequest(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.dataproc.v1beta2.CreateWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 4ba974f3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface CreateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java deleted file mode 100644 index e811f0f0..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java +++ /dev/null @@ -1,710 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to delete an autoscaling policy.
- * Autoscaling policies in use by one or more clusters will not be deleted.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest} - */ -public final class DeleteAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - DeleteAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteAutoscalingPolicyRequest.newBuilder() to construct. - private DeleteAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteAutoscalingPolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteAutoscalingPolicyRequest( - 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) 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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest 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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest 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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest 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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete an autoscaling policy.
-   * Autoscaling policies in use by one or more clusters will not be deleted.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest(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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAutoscalingPolicyRequest(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.dataproc.v1beta2.DeleteAutoscalingPolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index ae1d39b8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DeleteAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java deleted file mode 100644 index 6e510efc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java +++ /dev/null @@ -1,1430 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to delete a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteClusterRequest} - */ -public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DeleteClusterRequest) - DeleteClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteClusterRequest.newBuilder() to construct. - private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - clusterUuid_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!getClusterUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!getClusterUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - 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.dataproc.v1beta2.DeleteClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest other = - (com.google.cloud.dataproc.v1beta2.DeleteClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest 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.dataproc.v1beta2.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest 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.dataproc.v1beta2.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest 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.dataproc.v1beta2.DeleteClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DeleteClusterRequest) - com.google.cloud.dataproc.v1beta2.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.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(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - clusterUuid_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteClusterRequest build() { - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteClusterRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.DeleteClusterRequest result = - new com.google.cloud.dataproc.v1beta2.DeleteClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - result.requestId_ = requestId_; - 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.dataproc.v1beta2.DeleteClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DeleteClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.DeleteClusterRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.DeleteClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - 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.dataproc.v1beta2.DeleteClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DeleteClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1beta2.DeleteClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteClusterRequest) - private static final com.google.cloud.dataproc.v1beta2.DeleteClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DeleteClusterRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteClusterRequest(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.dataproc.v1beta2.DeleteClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java deleted file mode 100644 index 2653cb7b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,172 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DeleteClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DeleteClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequest.java deleted file mode 100644 index 45646356..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequest.java +++ /dev/null @@ -1,1001 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to delete a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteJobRequest} - */ -public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DeleteJobRequest) - DeleteJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteJobRequest.newBuilder() to construct. - private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - 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.dataproc.v1beta2.DeleteJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DeleteJobRequest other = - (com.google.cloud.dataproc.v1beta2.DeleteJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest 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.dataproc.v1beta2.DeleteJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest 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.dataproc.v1beta2.DeleteJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest 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.dataproc.v1beta2.DeleteJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DeleteJobRequest) - com.google.cloud.dataproc.v1beta2.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteJobRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DeleteJobRequest.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(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DeleteJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteJobRequest build() { - com.google.cloud.dataproc.v1beta2.DeleteJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteJobRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.DeleteJobRequest result = - new com.google.cloud.dataproc.v1beta2.DeleteJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1beta2.DeleteJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DeleteJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.DeleteJobRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.DeleteJobRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - 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.dataproc.v1beta2.DeleteJobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DeleteJobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1beta2.DeleteJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteJobRequest) - private static final com.google.cloud.dataproc.v1beta2.DeleteJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DeleteJobRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteJobRequest(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.dataproc.v1beta2.DeleteJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequestOrBuilder.java deleted file mode 100644 index 2f77f5b1..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DeleteJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DeleteJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequest.java deleted file mode 100644 index 76294192..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequest.java +++ /dev/null @@ -1,807 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to delete a workflow template.
- * Currently started workflows will remain running.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest} - */ -public final class DeleteWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - DeleteWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteWorkflowTemplateRequest.newBuilder() to construct. - private DeleteWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteWorkflowTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to delete. If specified,
-   * will only delete the template if the current server version matches
-   * specified version.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) 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) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a workflow template.
-   * Currently started workflows will remain running.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.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_ = ""; - - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest(this); - result.name_ = name_; - result.version_ = version_; - 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkflowTemplateRequest(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.dataproc.v1beta2.DeleteWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 004ab668..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DeleteWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to delete. If specified,
-   * will only delete the template if the current server version matches
-   * specified version.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - int getVersion(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequest.java deleted file mode 100644 index af189027..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequest.java +++ /dev/null @@ -1,1002 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to collect cluster diagnostic information.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiagnoseClusterRequest} - */ -public final class DiagnoseClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) - DiagnoseClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiagnoseClusterRequest.newBuilder() to construct. - private DiagnoseClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiagnoseClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiagnoseClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DiagnoseClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - 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.dataproc.v1beta2.DiagnoseClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest other = - (com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest 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.dataproc.v1beta2.DiagnoseClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest 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.dataproc.v1beta2.DiagnoseClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest 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.dataproc.v1beta2.DiagnoseClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to collect cluster diagnostic information.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiagnoseClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.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(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest build() { - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest result = - new com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - 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.dataproc.v1beta2.DiagnoseClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - 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.dataproc.v1beta2.DiagnoseClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = 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.dataproc.v1beta2.DiagnoseClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) - private static final com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DiagnoseClusterRequest(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.dataproc.v1beta2.DiagnoseClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequestOrBuilder.java deleted file mode 100644 index 05f7f69a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DiagnoseClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DiagnoseClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResults.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResults.java deleted file mode 100644 index cfa973b3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResults.java +++ /dev/null @@ -1,651 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The location of diagnostic output.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiagnoseClusterResults} - */ -public final class DiagnoseClusterResults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) - DiagnoseClusterResultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiagnoseClusterResults.newBuilder() to construct. - private DiagnoseClusterResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiagnoseClusterResults() { - outputUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiagnoseClusterResults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DiagnoseClusterResults( - 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(); - - outputUri_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.Builder.class); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - @java.lang.Override - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOutputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOutputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); - } - 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.dataproc.v1beta2.DiagnoseClusterResults)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults other = - (com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults) obj; - - if (!getOutputUri().equals(other.getOutputUri())) 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) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults 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.dataproc.v1beta2.DiagnoseClusterResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults 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.dataproc.v1beta2.DiagnoseClusterResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults 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.dataproc.v1beta2.DiagnoseClusterResults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 location of diagnostic output.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiagnoseClusterResults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.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(); - outputUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults build() { - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults buildPartial() { - com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults result = - new com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults(this); - result.outputUri_ = outputUri_; - 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.dataproc.v1beta2.DiagnoseClusterResults) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults other) { - if (other == com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults.getDefaultInstance()) - return this; - if (!other.getOutputUri().isEmpty()) { - outputUri_ = other.outputUri_; - 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.dataproc.v1beta2.DiagnoseClusterResults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object outputUri_ = ""; - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOutputUri() { - - outputUri_ = getDefaultInstance().getOutputUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputUri_ = 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.dataproc.v1beta2.DiagnoseClusterResults) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) - private static final com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults(); - } - - public static com.google.cloud.dataproc.v1beta2.DiagnoseClusterResults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DiagnoseClusterResults(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.dataproc.v1beta2.DiagnoseClusterResults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResultsOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResultsOrBuilder.java deleted file mode 100644 index 4bc19a2a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResultsOrBuilder.java +++ /dev/null @@ -1,54 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DiagnoseClusterResultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DiagnoseClusterResults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - java.lang.String getOutputUri(); - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - com.google.protobuf.ByteString getOutputUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfig.java deleted file mode 100644 index 34e5e157..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfig.java +++ /dev/null @@ -1,848 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies the config of disk options for a group of VM instances.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiskConfig} - */ -public final class DiskConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DiskConfig) - DiskConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiskConfig.newBuilder() to construct. - private DiskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiskConfig() { - bootDiskType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiskConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DiskConfig( - 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 8: - { - bootDiskSizeGb_ = input.readInt32(); - break; - } - case 16: - { - numLocalSsds_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - bootDiskType_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiskConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiskConfig.class, - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder.class); - } - - public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object bootDiskType_; - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - @java.lang.Override - public java.lang.String getBootDiskType() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskType_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBootDiskTypeBytes() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 1; - private int bootDiskSizeGb_; - /** - * - * - *
-   * Optional. Size in GB of the boot disk (default is 500GB).
-   * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - @java.lang.Override - public int getBootDiskSizeGb() { - return bootDiskSizeGb_; - } - - public static final int NUM_LOCAL_SSDS_FIELD_NUMBER = 2; - private int numLocalSsds_; - /** - * - * - *
-   * Number of attached SSDs, from 0 to 4 (default is 0).
-   * If SSDs are not attached, the boot disk is used to store runtime logs and
-   * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-   * If one or more SSDs are attached, this runtime bulk
-   * data is spread across them, and the boot disk contains only basic
-   * config and installed binaries.
-   * 
- * - * int32 num_local_ssds = 2; - * - * @return The numLocalSsds. - */ - @java.lang.Override - public int getNumLocalSsds() { - return numLocalSsds_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (bootDiskSizeGb_ != 0) { - output.writeInt32(1, bootDiskSizeGb_); - } - if (numLocalSsds_ != 0) { - output.writeInt32(2, numLocalSsds_); - } - if (!getBootDiskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bootDiskType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, bootDiskSizeGb_); - } - if (numLocalSsds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numLocalSsds_); - } - if (!getBootDiskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); - } - 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.dataproc.v1beta2.DiskConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.DiskConfig other = - (com.google.cloud.dataproc.v1beta2.DiskConfig) obj; - - if (!getBootDiskType().equals(other.getBootDiskType())) return false; - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; - if (getNumLocalSsds() != other.getNumLocalSsds()) 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) + BOOT_DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskType().hashCode(); - hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskSizeGb(); - hash = (37 * hash) + NUM_LOCAL_SSDS_FIELD_NUMBER; - hash = (53 * hash) + getNumLocalSsds(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig 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.dataproc.v1beta2.DiskConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig 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.dataproc.v1beta2.DiskConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig 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.dataproc.v1beta2.DiskConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the config of disk options for a group of VM instances.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.DiskConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DiskConfig) - com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiskConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.DiskConfig.class, - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.DiskConfig.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(); - bootDiskType_ = ""; - - bootDiskSizeGb_ = 0; - - numLocalSsds_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiskConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.DiskConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiskConfig build() { - com.google.cloud.dataproc.v1beta2.DiskConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiskConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.DiskConfig result = - new com.google.cloud.dataproc.v1beta2.DiskConfig(this); - result.bootDiskType_ = bootDiskType_; - result.bootDiskSizeGb_ = bootDiskSizeGb_; - result.numLocalSsds_ = numLocalSsds_; - 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.dataproc.v1beta2.DiskConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.DiskConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.DiskConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.DiskConfig.getDefaultInstance()) return this; - if (!other.getBootDiskType().isEmpty()) { - bootDiskType_ = other.bootDiskType_; - onChanged(); - } - if (other.getBootDiskSizeGb() != 0) { - setBootDiskSizeGb(other.getBootDiskSizeGb()); - } - if (other.getNumLocalSsds() != 0) { - setNumLocalSsds(other.getNumLocalSsds()); - } - 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.dataproc.v1beta2.DiskConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.DiskConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object bootDiskType_ = ""; - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - public java.lang.String getBootDiskType() { - java.lang.Object ref = bootDiskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - public com.google.protobuf.ByteString getBootDiskTypeBytes() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bootDiskType to set. - * @return This builder for chaining. - */ - public Builder setBootDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskType() { - - bootDiskType_ = getDefaultInstance().getBootDiskType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-     * "pd-standard" (Persistent Disk Hard Disk Drive).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for bootDiskType to set. - * @return This builder for chaining. - */ - public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskType_ = value; - onChanged(); - return this; - } - - private int bootDiskSizeGb_; - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - @java.lang.Override - public int getBootDiskSizeGb() { - return bootDiskSizeGb_; - } - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bootDiskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setBootDiskSizeGb(int value) { - - bootDiskSizeGb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskSizeGb() { - - bootDiskSizeGb_ = 0; - onChanged(); - return this; - } - - private int numLocalSsds_; - /** - * - * - *
-     * Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2; - * - * @return The numLocalSsds. - */ - @java.lang.Override - public int getNumLocalSsds() { - return numLocalSsds_; - } - /** - * - * - *
-     * Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2; - * - * @param value The numLocalSsds to set. - * @return This builder for chaining. - */ - public Builder setNumLocalSsds(int value) { - - numLocalSsds_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2; - * - * @return This builder for chaining. - */ - public Builder clearNumLocalSsds() { - - numLocalSsds_ = 0; - 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.dataproc.v1beta2.DiskConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DiskConfig) - private static final com.google.cloud.dataproc.v1beta2.DiskConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DiskConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.DiskConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiskConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DiskConfig(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.dataproc.v1beta2.DiskConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfigOrBuilder.java deleted file mode 100644 index af2644cc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfigOrBuilder.java +++ /dev/null @@ -1,85 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface DiskConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DiskConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - java.lang.String getBootDiskType(); - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or
-   * "pd-standard" (Persistent Disk Hard Disk Drive).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - com.google.protobuf.ByteString getBootDiskTypeBytes(); - - /** - * - * - *
-   * Optional. Size in GB of the boot disk (default is 500GB).
-   * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - int getBootDiskSizeGb(); - - /** - * - * - *
-   * Number of attached SSDs, from 0 to 4 (default is 0).
-   * If SSDs are not attached, the boot disk is used to store runtime logs and
-   * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-   * If one or more SSDs are attached, this runtime bulk
-   * data is spread across them, and the boot disk contains only basic
-   * config and installed binaries.
-   * 
- * - * int32 num_local_ssds = 2; - * - * @return The numLocalSsds. - */ - int getNumLocalSsds(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfig.java deleted file mode 100644 index 4eb50911..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfig.java +++ /dev/null @@ -1,643 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Encryption settings for the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.EncryptionConfig} - */ -public final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.EncryptionConfig) - EncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EncryptionConfig.newBuilder() to construct. - private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EncryptionConfig() { - gcePdKmsKeyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EncryptionConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EncryptionConfig( - 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(); - - gcePdKmsKeyName_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.EncryptionConfig.class, - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder.class); - } - - public static final int GCE_PD_KMS_KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gcePdKmsKeyName_; - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - @java.lang.Override - public java.lang.String getGcePdKmsKeyName() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcePdKmsKeyName_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcePdKmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGcePdKmsKeyNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGcePdKmsKeyNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcePdKmsKeyName_); - } - 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.dataproc.v1beta2.EncryptionConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.EncryptionConfig other = - (com.google.cloud.dataproc.v1beta2.EncryptionConfig) obj; - - if (!getGcePdKmsKeyName().equals(other.getGcePdKmsKeyName())) 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) + GCE_PD_KMS_KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGcePdKmsKeyName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig 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.dataproc.v1beta2.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig 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.dataproc.v1beta2.EncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig 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.dataproc.v1beta2.EncryptionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Encryption settings for the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.EncryptionConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.EncryptionConfig) - com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.EncryptionConfig.class, - com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.EncryptionConfig.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(); - gcePdKmsKeyName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EncryptionConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.EncryptionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EncryptionConfig build() { - com.google.cloud.dataproc.v1beta2.EncryptionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EncryptionConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.EncryptionConfig result = - new com.google.cloud.dataproc.v1beta2.EncryptionConfig(this); - result.gcePdKmsKeyName_ = gcePdKmsKeyName_; - 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.dataproc.v1beta2.EncryptionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.EncryptionConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.EncryptionConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.EncryptionConfig.getDefaultInstance()) - return this; - if (!other.getGcePdKmsKeyName().isEmpty()) { - gcePdKmsKeyName_ = other.gcePdKmsKeyName_; - 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.dataproc.v1beta2.EncryptionConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.EncryptionConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object gcePdKmsKeyName_ = ""; - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - public java.lang.String getGcePdKmsKeyName() { - java.lang.Object ref = gcePdKmsKeyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcePdKmsKeyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcePdKmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The gcePdKmsKeyName to set. - * @return This builder for chaining. - */ - public Builder setGcePdKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gcePdKmsKeyName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearGcePdKmsKeyName() { - - gcePdKmsKeyName_ = getDefaultInstance().getGcePdKmsKeyName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for gcePdKmsKeyName to set. - * @return This builder for chaining. - */ - public Builder setGcePdKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gcePdKmsKeyName_ = 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.dataproc.v1beta2.EncryptionConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.EncryptionConfig) - private static final com.google.cloud.dataproc.v1beta2.EncryptionConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.EncryptionConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.EncryptionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionConfig(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.dataproc.v1beta2.EncryptionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfigOrBuilder.java deleted file mode 100644 index 03b5be82..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfigOrBuilder.java +++ /dev/null @@ -1,52 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface EncryptionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.EncryptionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - java.lang.String getGcePdKmsKeyName(); - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - com.google.protobuf.ByteString getGcePdKmsKeyNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java deleted file mode 100644 index bcc478ee..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java +++ /dev/null @@ -1,900 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Endpoint config for this cluster
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.EndpointConfig} - */ -public final class EndpointConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.EndpointConfig) - EndpointConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EndpointConfig.newBuilder() to construct. - private EndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EndpointConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EndpointConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EndpointConfig( - 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)) { - httpPorts_ = - com.google.protobuf.MapField.newMapField( - HttpPortsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry httpPorts__ = - input.readMessage( - HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - httpPorts_.getMutableMap().put(httpPorts__.getKey(), httpPorts__.getValue()); - break; - } - case 16: - { - enableHttpPortAccess_ = 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.EndpointConfig.class, - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder.class); - } - - public static final int HTTP_PORTS_FIELD_NUMBER = 1; - - private static final class HttpPortsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField httpPorts_; - - private com.google.protobuf.MapField internalGetHttpPorts() { - if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - return httpPorts_; - } - - public int getHttpPortsCount() { - return internalGetHttpPorts().getMap().size(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetHttpPorts().getMap().containsKey(key); - } - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHttpPorts() { - return getHttpPortsMap(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getHttpPortsMap() { - return internalGetHttpPorts().getMap(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHttpPorts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHttpPorts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER = 2; - private boolean enableHttpPortAccess_; - /** - * - * - *
-   * Optional. If true, enable http access to specific ports on the cluster
-   * from external sources. Defaults to false.
-   * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - @java.lang.Override - public boolean getEnableHttpPortAccess() { - return enableHttpPortAccess_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHttpPorts(), HttpPortsDefaultEntryHolder.defaultEntry, 1); - if (enableHttpPortAccess_ != false) { - output.writeBool(2, enableHttpPortAccess_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetHttpPorts().getMap().entrySet()) { - com.google.protobuf.MapEntry httpPorts__ = - HttpPortsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, httpPorts__); - } - if (enableHttpPortAccess_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_); - } - 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.dataproc.v1beta2.EndpointConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.EndpointConfig other = - (com.google.cloud.dataproc.v1beta2.EndpointConfig) obj; - - if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false; - if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) 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 (!internalGetHttpPorts().getMap().isEmpty()) { - hash = (37 * hash) + HTTP_PORTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHttpPorts().hashCode(); - } - hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig 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.dataproc.v1beta2.EndpointConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig 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.dataproc.v1beta2.EndpointConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig 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.dataproc.v1beta2.EndpointConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Endpoint config for this cluster
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.EndpointConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.EndpointConfig) - com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.EndpointConfig.class, - com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.EndpointConfig.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(); - internalGetMutableHttpPorts().clear(); - enableHttpPortAccess_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EndpointConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EndpointConfig build() { - com.google.cloud.dataproc.v1beta2.EndpointConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.EndpointConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.EndpointConfig result = - new com.google.cloud.dataproc.v1beta2.EndpointConfig(this); - int from_bitField0_ = bitField0_; - result.httpPorts_ = internalGetHttpPorts(); - result.httpPorts_.makeImmutable(); - result.enableHttpPortAccess_ = enableHttpPortAccess_; - 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.dataproc.v1beta2.EndpointConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.EndpointConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.EndpointConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance()) - return this; - internalGetMutableHttpPorts().mergeFrom(other.internalGetHttpPorts()); - if (other.getEnableHttpPortAccess() != false) { - setEnableHttpPortAccess(other.getEnableHttpPortAccess()); - } - 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.dataproc.v1beta2.EndpointConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.EndpointConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField httpPorts_; - - private com.google.protobuf.MapField - internalGetHttpPorts() { - if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - return httpPorts_; - } - - private com.google.protobuf.MapField - internalGetMutableHttpPorts() { - onChanged(); - ; - if (httpPorts_ == null) { - httpPorts_ = - com.google.protobuf.MapField.newMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - if (!httpPorts_.isMutable()) { - httpPorts_ = httpPorts_.copy(); - } - return httpPorts_; - } - - public int getHttpPortsCount() { - return internalGetHttpPorts().getMap().size(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetHttpPorts().getMap().containsKey(key); - } - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHttpPorts() { - return getHttpPortsMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getHttpPortsMap() { - return internalGetHttpPorts().getMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHttpPorts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetHttpPorts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHttpPorts() { - internalGetMutableHttpPorts().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeHttpPorts(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableHttpPorts().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHttpPorts() { - return internalGetMutableHttpPorts().getMutableMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putHttpPorts(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableHttpPorts().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllHttpPorts(java.util.Map values) { - internalGetMutableHttpPorts().getMutableMap().putAll(values); - return this; - } - - private boolean enableHttpPortAccess_; - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - @java.lang.Override - public boolean getEnableHttpPortAccess() { - return enableHttpPortAccess_; - } - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableHttpPortAccess to set. - * @return This builder for chaining. - */ - public Builder setEnableHttpPortAccess(boolean value) { - - enableHttpPortAccess_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableHttpPortAccess() { - - enableHttpPortAccess_ = false; - 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.dataproc.v1beta2.EndpointConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.EndpointConfig) - private static final com.google.cloud.dataproc.v1beta2.EndpointConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.EndpointConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.EndpointConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndpointConfig(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.dataproc.v1beta2.EndpointConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java deleted file mode 100644 index 3beb1ad2..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java +++ /dev/null @@ -1,103 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface EndpointConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.EndpointConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getHttpPortsCount(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsHttpPorts(java.lang.String key); - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHttpPorts(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map getHttpPortsMap(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.lang.String getHttpPortsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.lang.String getHttpPortsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. If true, enable http access to specific ports on the cluster
-   * from external sources. Defaults to false.
-   * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - boolean getEnableHttpPortAccess(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java deleted file mode 100644 index 510036eb..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java +++ /dev/null @@ -1,2870 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Common config settings for resources of Compute Engine cluster
- * instances, applicable to all instances in the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GceClusterConfig} - */ -public final class GceClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GceClusterConfig) - GceClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GceClusterConfig.newBuilder() to construct. - private GceClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GceClusterConfig() { - zoneUri_ = ""; - networkUri_ = ""; - subnetworkUri_ = ""; - serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GceClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GceClusterConfig( - 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(); - - zoneUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - networkUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - serviceAccountScopes_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tags_.add(s); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnetworkUri_ = s; - break; - } - case 56: - { - internalIpOnly_ = input.readBool(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 90: - { - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder subBuilder = null; - if (reservationAffinity_ != null) { - subBuilder = reservationAffinity_.toBuilder(); - } - reservationAffinity_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ReservationAffinity.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationAffinity_); - reservationAffinity_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GceClusterConfig.class, - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder.class); - } - - public static final int ZONE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object zoneUri_; - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will always be
-   * present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - @java.lang.Override - public java.lang.String getZoneUri() { - java.lang.Object ref = zoneUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zoneUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will always be
-   * present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getZoneUriBytes() { - java.lang.Object ref = zoneUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zoneUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object networkUri_; - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - @java.lang.Override - public java.lang.String getNetworkUri() { - java.lang.Object ref = networkUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = networkUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - networkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBNETWORK_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object subnetworkUri_; - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - @java.lang.Override - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 7; - private boolean internalIpOnly_; - /** - * - * - *
-   * Optional. If true, all instances in the cluster will only have internal IP
-   * addresses. By default, clusters are not restricted to internal IP
-   * addresses, and will have ephemeral external IP addresses assigned to each
-   * instance. This `internal_ip_only` restriction can only be enabled for
-   * subnetwork enabled networks, and all off-cluster dependencies must be
-   * configured to be accessible without external IP addresses.
-   * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - @java.lang.Override - public boolean getInternalIpOnly() { - return internalIpOnly_; - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; - private volatile java.lang.Object serviceAccount_; - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList serviceAccountScopes_; - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { - return serviceAccountScopes_; - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - public int getServiceAccountScopesCount() { - return serviceAccountScopes_.size(); - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - public java.lang.String getServiceAccountScopes(int index) { - return serviceAccountScopes_.get(index); - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { - return serviceAccountScopes_.getByteString(index); - } - - public static final int TAGS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList tags_; - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int METADATA_FIELD_NUMBER = 5; - - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetMetadata().getMap().containsKey(key); - } - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 11; - private com.google.cloud.dataproc.v1beta2.ReservationAffinity reservationAffinity_; - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return reservationAffinity_ != null; - } - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { - return getReservationAffinity(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getZoneUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneUri_); - } - if (!getNetworkUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkUri_); - } - for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, serviceAccountScopes_.getRaw(i)); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); - if (!getSubnetworkUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetworkUri_); - } - if (internalIpOnly_ != false) { - output.writeBool(7, internalIpOnly_); - } - if (!getServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_); - } - if (reservationAffinity_ != null) { - output.writeMessage(11, getReservationAffinity()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getZoneUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zoneUri_); - } - if (!getNetworkUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkUri_); - } - { - int dataSize = 0; - for (int i = 0; i < serviceAccountScopes_.size(); i++) { - dataSize += computeStringSizeNoTag(serviceAccountScopes_.getRaw(i)); - } - size += dataSize; - size += 1 * getServiceAccountScopesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); - } - if (!getSubnetworkUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetworkUri_); - } - if (internalIpOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); - } - if (!getServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); - } - if (reservationAffinity_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); - } - 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.dataproc.v1beta2.GceClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GceClusterConfig other = - (com.google.cloud.dataproc.v1beta2.GceClusterConfig) obj; - - if (!getZoneUri().equals(other.getZoneUri())) return false; - if (!getNetworkUri().equals(other.getNetworkUri())) return false; - if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; - if (getInternalIpOnly() != other.getInternalIpOnly()) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (hasReservationAffinity() != other.hasReservationAffinity()) return false; - if (hasReservationAffinity()) { - if (!getReservationAffinity().equals(other.getReservationAffinity())) 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) + ZONE_URI_FIELD_NUMBER; - hash = (53 * hash) + getZoneUri().hashCode(); - hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getNetworkUri().hashCode(); - hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getSubnetworkUri().hashCode(); - hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - if (getServiceAccountScopesCount() > 0) { - hash = (37 * hash) + SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountScopesList().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - if (hasReservationAffinity()) { - hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; - hash = (53 * hash) + getReservationAffinity().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Common config settings for resources of Compute Engine cluster
-   * instances, applicable to all instances in the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GceClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GceClusterConfig) - com.google.cloud.dataproc.v1beta2.GceClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 5: - return internalGetMutableMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GceClusterConfig.class, - com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GceClusterConfig.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(); - zoneUri_ = ""; - - networkUri_ = ""; - - subnetworkUri_ = ""; - - internalIpOnly_ = false; - - serviceAccount_ = ""; - - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableMetadata().clear(); - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GceClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GceClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GceClusterConfig build() { - com.google.cloud.dataproc.v1beta2.GceClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GceClusterConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.GceClusterConfig result = - new com.google.cloud.dataproc.v1beta2.GceClusterConfig(this); - int from_bitField0_ = bitField0_; - result.zoneUri_ = zoneUri_; - result.networkUri_ = networkUri_; - result.subnetworkUri_ = subnetworkUri_; - result.internalIpOnly_ = internalIpOnly_; - result.serviceAccount_ = serviceAccount_; - if (((bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.serviceAccountScopes_ = serviceAccountScopes_; - if (((bitField0_ & 0x00000002) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tags_ = tags_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - if (reservationAffinityBuilder_ == null) { - result.reservationAffinity_ = reservationAffinity_; - } else { - result.reservationAffinity_ = reservationAffinityBuilder_.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.dataproc.v1beta2.GceClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GceClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GceClusterConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.GceClusterConfig.getDefaultInstance()) - return this; - if (!other.getZoneUri().isEmpty()) { - zoneUri_ = other.zoneUri_; - onChanged(); - } - if (!other.getNetworkUri().isEmpty()) { - networkUri_ = other.networkUri_; - onChanged(); - } - if (!other.getSubnetworkUri().isEmpty()) { - subnetworkUri_ = other.subnetworkUri_; - onChanged(); - } - if (other.getInternalIpOnly() != false) { - setInternalIpOnly(other.getInternalIpOnly()); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.serviceAccountScopes_.isEmpty()) { - if (serviceAccountScopes_.isEmpty()) { - serviceAccountScopes_ = other.serviceAccountScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.addAll(other.serviceAccountScopes_); - } - onChanged(); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - 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.dataproc.v1beta2.GceClusterConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GceClusterConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object zoneUri_ = ""; - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will always be
-     * present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - public java.lang.String getZoneUri() { - java.lang.Object ref = zoneUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zoneUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will always be
-     * present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - public com.google.protobuf.ByteString getZoneUriBytes() { - java.lang.Object ref = zoneUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zoneUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will always be
-     * present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The zoneUri to set. - * @return This builder for chaining. - */ - public Builder setZoneUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zoneUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will always be
-     * present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearZoneUri() { - - zoneUri_ = getDefaultInstance().getZoneUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will always be
-     * present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for zoneUri to set. - * @return This builder for chaining. - */ - public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zoneUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object networkUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - public java.lang.String getNetworkUri() { - java.lang.Object ref = networkUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = networkUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - networkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - networkUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNetworkUri() { - - networkUri_ = getDefaultInstance().getNetworkUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - networkUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object subnetworkUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = subnetworkUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetworkUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSubnetworkUri() { - - subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetworkUri_ = value; - onChanged(); - return this; - } - - private boolean internalIpOnly_; - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - @java.lang.Override - public boolean getInternalIpOnly() { - return internalIpOnly_; - } - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The internalIpOnly to set. - * @return This builder for chaining. - */ - public Builder setInternalIpOnly(boolean value) { - - internalIpOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearInternalIpOnly() { - - internalIpOnly_ = false; - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureServiceAccountScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { - return serviceAccountScopes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - public int getServiceAccountScopesCount() { - return serviceAccountScopes_.size(); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - public java.lang.String getServiceAccountScopes(int index) { - return serviceAccountScopes_.get(index); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { - return serviceAccountScopes_.getByteString(index); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The serviceAccountScopes to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addServiceAccountScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addAllServiceAccountScopes(java.lang.Iterable values) { - ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; - if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetMetadata().getMap().containsKey(key); - } - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableMetadata() { - return internalGetMutableMetadata().getMutableMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ReservationAffinity, - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder> - reservationAffinityBuilder_; - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return reservationAffinityBuilder_ != null || reservationAffinity_ != null; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - public com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReservationAffinity( - com.google.cloud.dataproc.v1beta2.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReservationAffinity( - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReservationAffinity( - com.google.cloud.dataproc.v1beta2.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (reservationAffinity_ != null) { - reservationAffinity_ = - com.google.cloud.dataproc.v1beta2.ReservationAffinity.newBuilder(reservationAffinity_) - .mergeFrom(value) - .buildPartial(); - } else { - reservationAffinity_ = value; - } - onChanged(); - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - onChanged(); - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder - getReservationAffinityBuilder() { - - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ReservationAffinity, - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ReservationAffinity, - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder>( - getReservationAffinity(), getParentForChildren(), isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - @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.dataproc.v1beta2.GceClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GceClusterConfig) - private static final com.google.cloud.dataproc.v1beta2.GceClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GceClusterConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.GceClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GceClusterConfig(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.dataproc.v1beta2.GceClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java deleted file mode 100644 index 8867f189..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java +++ /dev/null @@ -1,460 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GceClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GceClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will always be
-   * present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - java.lang.String getZoneUri(); - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will always be
-   * present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - com.google.protobuf.ByteString getZoneUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - java.lang.String getNetworkUri(); - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - com.google.protobuf.ByteString getNetworkUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - java.lang.String getSubnetworkUri(); - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - com.google.protobuf.ByteString getSubnetworkUriBytes(); - - /** - * - * - *
-   * Optional. If true, all instances in the cluster will only have internal IP
-   * addresses. By default, clusters are not restricted to internal IP
-   * addresses, and will have ephemeral external IP addresses assigned to each
-   * instance. This `internal_ip_only` restriction can only be enabled for
-   * subnetwork enabled networks, and all off-cluster dependencies must be
-   * configured to be accessible without external IP addresses.
-   * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - boolean getInternalIpOnly(); - - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - java.util.List getServiceAccountScopesList(); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - int getServiceAccountScopesCount(); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - java.lang.String getServiceAccountScopes(int index); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); - - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - int getMetadataCount(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Deprecated - java.util.Map getMetadata(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - java.util.Map getMetadataMap(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - java.lang.String getMetadataOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - boolean hasReservationAffinity(); - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity(); - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java deleted file mode 100644 index 370d3849..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java +++ /dev/null @@ -1,704 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to fetch an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest} - */ -public final class GetAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) - GetAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAutoscalingPolicyRequest.newBuilder() to construct. - private GetAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetAutoscalingPolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetAutoscalingPolicyRequest( - 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) 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.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest 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.dataproc.v1beta2.GetAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest 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.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest 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.dataproc.v1beta2.GetAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to fetch an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest(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.dataproc.v1beta2.GetAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.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.dataproc.v1beta2.GetAutoscalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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.dataproc.v1beta2.GetAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAutoscalingPolicyRequest(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.dataproc.v1beta2.GetAutoscalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index c9158e47..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GetAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequest.java deleted file mode 100644 index 17ac01fd..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequest.java +++ /dev/null @@ -1,1001 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Request to get the resource representation for a cluster in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetClusterRequest} - */ -public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GetClusterRequest) - GetClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetClusterRequest.newBuilder() to construct. - private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetClusterRequest.class, - com.google.cloud.dataproc.v1beta2.GetClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - 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.dataproc.v1beta2.GetClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GetClusterRequest other = - (com.google.cloud.dataproc.v1beta2.GetClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest 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.dataproc.v1beta2.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest 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.dataproc.v1beta2.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest 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.dataproc.v1beta2.GetClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Request to get the resource representation for a cluster in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GetClusterRequest) - com.google.cloud.dataproc.v1beta2.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetClusterRequest.class, - com.google.cloud.dataproc.v1beta2.GetClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GetClusterRequest.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(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GetClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetClusterRequest build() { - com.google.cloud.dataproc.v1beta2.GetClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetClusterRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.GetClusterRequest result = - new com.google.cloud.dataproc.v1beta2.GetClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - 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.dataproc.v1beta2.GetClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GetClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GetClusterRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.GetClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - 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.dataproc.v1beta2.GetClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GetClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = 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.dataproc.v1beta2.GetClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetClusterRequest) - private static final com.google.cloud.dataproc.v1beta2.GetClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GetClusterRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.GetClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClusterRequest(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.dataproc.v1beta2.GetClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequestOrBuilder.java deleted file mode 100644 index 3fef2a79..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GetClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GetClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequest.java deleted file mode 100644 index 80877273..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequest.java +++ /dev/null @@ -1,1000 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to get the resource representation for a job in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetJobRequest} - */ -public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GetJobRequest) - GetJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJobRequest.newBuilder() to construct. - private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetJobRequest.class, - com.google.cloud.dataproc.v1beta2.GetJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - 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.dataproc.v1beta2.GetJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GetJobRequest other = - (com.google.cloud.dataproc.v1beta2.GetJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest 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.dataproc.v1beta2.GetJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest 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.dataproc.v1beta2.GetJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest 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.dataproc.v1beta2.GetJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to get the resource representation for a job in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GetJobRequest) - com.google.cloud.dataproc.v1beta2.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetJobRequest.class, - com.google.cloud.dataproc.v1beta2.GetJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GetJobRequest.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(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GetJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetJobRequest build() { - com.google.cloud.dataproc.v1beta2.GetJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetJobRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.GetJobRequest result = - new com.google.cloud.dataproc.v1beta2.GetJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1beta2.GetJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GetJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GetJobRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.GetJobRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - 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.dataproc.v1beta2.GetJobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.GetJobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1beta2.GetJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetJobRequest) - private static final com.google.cloud.dataproc.v1beta2.GetJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GetJobRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.GetJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJobRequest(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.dataproc.v1beta2.GetJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequestOrBuilder.java deleted file mode 100644 index 09dd9cff..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GetJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GetJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequest.java deleted file mode 100644 index c13e7abc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequest.java +++ /dev/null @@ -1,801 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to fetch a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest} - */ -public final class GetWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) - GetWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWorkflowTemplateRequest.newBuilder() to construct. - private GetWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetWorkflowTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to retrieve. Only previously
-   * instantiated versions can be retrieved.
-   * If unspecified, retrieves the current version.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - 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.dataproc.v1beta2.GetWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) 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) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest 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.dataproc.v1beta2.GetWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest 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.dataproc.v1beta2.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest 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.dataproc.v1beta2.GetWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to fetch a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.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_ = ""; - - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest(this); - result.name_ = name_; - result.version_ = version_; - 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.dataproc.v1beta2.GetWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - 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.dataproc.v1beta2.GetWorkflowTemplateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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.dataproc.v1beta2.GetWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkflowTemplateRequest(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.dataproc.v1beta2.GetWorkflowTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 35d5e25b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GetWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to retrieve. Only previously
-   * instantiated versions can be retrieved.
-   * If unspecified, retrieves the current version.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - int getVersion(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfig.java deleted file mode 100644 index a1536c09..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfig.java +++ /dev/null @@ -1,1708 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The GKE config for this cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GkeClusterConfig} - */ -public final class GkeClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GkeClusterConfig) - GkeClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeClusterConfig.newBuilder() to construct. - private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeClusterConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GkeClusterConfig( - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder - subBuilder = null; - if (namespacedGkeDeploymentTarget_ != null) { - subBuilder = namespacedGkeDeploymentTarget_.toBuilder(); - } - namespacedGkeDeploymentTarget_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig - .NamespacedGkeDeploymentTarget.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(namespacedGkeDeploymentTarget_); - namespacedGkeDeploymentTarget_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.class, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder.class); - } - - public interface NamespacedGkeDeploymentTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - java.lang.String getTargetGkeCluster(); - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - com.google.protobuf.ByteString getTargetGkeClusterBytes(); - - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - java.lang.String getClusterNamespace(); - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - com.google.protobuf.ByteString getClusterNamespaceBytes(); - } - /** - * - * - *
-   * A full, namespace-isolated deployment target for an existing GKE cluster.
-   * 
- * - * Protobuf type {@code - * google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget} - */ - public static final class NamespacedGkeDeploymentTarget - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - NamespacedGkeDeploymentTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamespacedGkeDeploymentTarget.newBuilder() to construct. - private NamespacedGkeDeploymentTarget( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NamespacedGkeDeploymentTarget() { - targetGkeCluster_ = ""; - clusterNamespace_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NamespacedGkeDeploymentTarget(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NamespacedGkeDeploymentTarget( - 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(); - - targetGkeCluster_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterNamespace_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .class, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder.class); - } - - public static final int TARGET_GKE_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object targetGkeCluster_; - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - @java.lang.Override - public java.lang.String getTargetGkeCluster() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetGkeCluster_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetGkeClusterBytes() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetGkeCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAMESPACE_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterNamespace_; - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - @java.lang.Override - public java.lang.String getClusterNamespace() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterNamespace_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNamespaceBytes() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTargetGkeClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGkeCluster_); - } - if (!getClusterNamespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterNamespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTargetGkeClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGkeCluster_); - } - if (!getClusterNamespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterNamespace_); - } - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget other = - (com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) obj; - - if (!getTargetGkeCluster().equals(other.getTargetGkeCluster())) return false; - if (!getClusterNamespace().equals(other.getClusterNamespace())) 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) + TARGET_GKE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getTargetGkeCluster().hashCode(); - hash = (37 * hash) + CLUSTER_NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getClusterNamespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 full, namespace-isolated deployment target for an existing GKE cluster.
-     * 
- * - * Protobuf type {@code - * google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .class, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget.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(); - targetGkeCluster_ = ""; - - clusterNamespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - build() { - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - buildPartial() { - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget result = - new com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget( - this); - result.targetGkeCluster_ = targetGkeCluster_; - result.clusterNamespace_ = clusterNamespace_; - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) { - return mergeFrom( - (com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget other) { - if (other - == com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance()) return this; - if (!other.getTargetGkeCluster().isEmpty()) { - targetGkeCluster_ = other.targetGkeCluster_; - onChanged(); - } - if (!other.getClusterNamespace().isEmpty()) { - clusterNamespace_ = other.clusterNamespace_; - 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object targetGkeCluster_ = ""; - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - public java.lang.String getTargetGkeCluster() { - java.lang.Object ref = targetGkeCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetGkeCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - public com.google.protobuf.ByteString getTargetGkeClusterBytes() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetGkeCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @param value The targetGkeCluster to set. - * @return This builder for chaining. - */ - public Builder setTargetGkeCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetGkeCluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTargetGkeCluster() { - - targetGkeCluster_ = getDefaultInstance().getTargetGkeCluster(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for targetGkeCluster to set. - * @return This builder for chaining. - */ - public Builder setTargetGkeClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetGkeCluster_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterNamespace_ = ""; - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - public java.lang.String getClusterNamespace() { - java.lang.Object ref = clusterNamespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterNamespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - public com.google.protobuf.ByteString getClusterNamespaceBytes() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterNamespace to set. - * @return This builder for chaining. - */ - public Builder setClusterNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterNamespace_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterNamespace() { - - clusterNamespace_ = getDefaultInstance().getClusterNamespace(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterNamespace to set. - * @return This builder for chaining. - */ - public Builder setClusterNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterNamespace_ = 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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget) - private static final com.google.cloud.dataproc.v1beta2.GkeClusterConfig - .NamespacedGkeDeploymentTarget - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget(); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedGkeDeploymentTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedGkeDeploymentTarget(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.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - namespacedGkeDeploymentTarget_; - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the namespacedGkeDeploymentTarget field is set. - */ - @java.lang.Override - public boolean hasNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTarget_ != null; - } - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The namespacedGkeDeploymentTarget. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; - } - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder() { - return getNamespacedGkeDeploymentTarget(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (namespacedGkeDeploymentTarget_ != null) { - output.writeMessage(1, getNamespacedGkeDeploymentTarget()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (namespacedGkeDeploymentTarget_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getNamespacedGkeDeploymentTarget()); - } - 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.dataproc.v1beta2.GkeClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.GkeClusterConfig other = - (com.google.cloud.dataproc.v1beta2.GkeClusterConfig) obj; - - if (hasNamespacedGkeDeploymentTarget() != other.hasNamespacedGkeDeploymentTarget()) - return false; - if (hasNamespacedGkeDeploymentTarget()) { - if (!getNamespacedGkeDeploymentTarget().equals(other.getNamespacedGkeDeploymentTarget())) - 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 (hasNamespacedGkeDeploymentTarget()) { - hash = (37 * hash) + NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getNamespacedGkeDeploymentTarget().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig 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.dataproc.v1beta2.GkeClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig 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.dataproc.v1beta2.GkeClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig 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.dataproc.v1beta2.GkeClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 GKE config for this cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.GkeClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GkeClusterConfig) - com.google.cloud.dataproc.v1beta2.GkeClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.class, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.GkeClusterConfig.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 (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = null; - } else { - namespacedGkeDeploymentTarget_ = null; - namespacedGkeDeploymentTargetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_GkeClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.GkeClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig build() { - com.google.cloud.dataproc.v1beta2.GkeClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.GkeClusterConfig result = - new com.google.cloud.dataproc.v1beta2.GkeClusterConfig(this); - if (namespacedGkeDeploymentTargetBuilder_ == null) { - result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTarget_; - } else { - result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTargetBuilder_.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.dataproc.v1beta2.GkeClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.GkeClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GkeClusterConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.GkeClusterConfig.getDefaultInstance()) - return this; - if (other.hasNamespacedGkeDeploymentTarget()) { - mergeNamespacedGkeDeploymentTarget(other.getNamespacedGkeDeploymentTarget()); - } - 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.dataproc.v1beta2.GkeClusterConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.GkeClusterConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - namespacedGkeDeploymentTarget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig - .NamespacedGkeDeploymentTargetOrBuilder> - namespacedGkeDeploymentTargetBuilder_; - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the namespacedGkeDeploymentTarget field is set. - */ - public boolean hasNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTargetBuilder_ != null - || namespacedGkeDeploymentTarget_ != null; - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The namespacedGkeDeploymentTarget. - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; - } else { - return namespacedGkeDeploymentTargetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespacedGkeDeploymentTarget_ = value; - onChanged(); - } else { - namespacedGkeDeploymentTargetBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - builderForValue) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = builderForValue.build(); - onChanged(); - } else { - namespacedGkeDeploymentTargetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - if (namespacedGkeDeploymentTarget_ != null) { - namespacedGkeDeploymentTarget_ = - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .newBuilder(namespacedGkeDeploymentTarget_) - .mergeFrom(value) - .buildPartial(); - } else { - namespacedGkeDeploymentTarget_ = value; - } - onChanged(); - } else { - namespacedGkeDeploymentTargetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNamespacedGkeDeploymentTarget() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = null; - onChanged(); - } else { - namespacedGkeDeploymentTarget_ = null; - namespacedGkeDeploymentTargetBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - getNamespacedGkeDeploymentTargetBuilder() { - - onChanged(); - return getNamespacedGkeDeploymentTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder() { - if (namespacedGkeDeploymentTargetBuilder_ != null) { - return namespacedGkeDeploymentTargetBuilder_.getMessageOrBuilder(); - } else { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; - } - } - /** - * - * - *
-     * Optional. A target for the deployment.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig - .NamespacedGkeDeploymentTargetOrBuilder> - getNamespacedGkeDeploymentTargetFieldBuilder() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - .Builder, - com.google.cloud.dataproc.v1beta2.GkeClusterConfig - .NamespacedGkeDeploymentTargetOrBuilder>( - getNamespacedGkeDeploymentTarget(), getParentForChildren(), isClean()); - namespacedGkeDeploymentTarget_ = null; - } - return namespacedGkeDeploymentTargetBuilder_; - } - - @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.dataproc.v1beta2.GkeClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GkeClusterConfig) - private static final com.google.cloud.dataproc.v1beta2.GkeClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GkeClusterConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.GkeClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeClusterConfig(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.dataproc.v1beta2.GkeClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfigOrBuilder.java deleted file mode 100644 index 231d5731..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfigOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface GkeClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GkeClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the namespacedGkeDeploymentTarget field is set. - */ - boolean hasNamespacedGkeDeploymentTarget(); - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The namespacedGkeDeploymentTarget. - */ - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget(); - /** - * - * - *
-   * Optional. A target for the deployment.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java deleted file mode 100644 index 268c5a3e..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java +++ /dev/null @@ -1,2939 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache Hadoop
- * MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html)
- * jobs on [Apache Hadoop
- * YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.HadoopJob} - */ -public final class HadoopJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.HadoopJob) - HadoopJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HadoopJob.newBuilder() to construct. - private HadoopJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HadoopJob() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HadoopJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private HadoopJob( - 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(); - driverCase_ = 1; - driver_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.HadoopJob.class, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder.class); - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAIN_JAR_FILE_URI(1), - MAIN_CLASS(2), - DRIVER_NOT_SET(0); - private final int value; - - private DriverCase(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 DriverCase valueOf(int value) { - return forNumber(value); - } - - public static DriverCase forNumber(int value) { - switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 1) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAIN_CLASS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 2) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (driverCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (driverCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (driverCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (driverCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - 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.dataproc.v1beta2.HadoopJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.HadoopJob other = - (com.google.cloud.dataproc.v1beta2.HadoopJob) obj; - - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getDriverCase().equals(other.getDriverCase())) return false; - switch (driverCase_) { - case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; - break; - case 2: - if (!getMainClass().equals(other.getMainClass())) 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(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (driverCase_) { - case 1: - hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainJarFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob 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.dataproc.v1beta2.HadoopJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob 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.dataproc.v1beta2.HadoopJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob 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.dataproc.v1beta2.HadoopJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache Hadoop
-   * MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html)
-   * jobs on [Apache Hadoop
-   * YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.HadoopJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.HadoopJob) - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.HadoopJob.class, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.HadoopJob.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(); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - driverCase_ = 0; - driver_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob build() { - com.google.cloud.dataproc.v1beta2.HadoopJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob buildPartial() { - com.google.cloud.dataproc.v1beta2.HadoopJob result = - new com.google.cloud.dataproc.v1beta2.HadoopJob(this); - int from_bitField0_ = bitField0_; - if (driverCase_ == 1) { - result.driver_ = driver_; - } - if (driverCase_ == 2) { - result.driver_ = driver_; - } - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.driverCase_ = driverCase_; - 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.dataproc.v1beta2.HadoopJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.HadoopJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.HadoopJob other) { - if (other == com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance()) return this; - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_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.dataproc.v1beta2.HadoopJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.HadoopJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public Builder clearDriver() { - driverCase_ = 0; - driver_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - @java.lang.Override - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - @java.lang.Override - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 1) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearMainJarFileUri() { - if (driverCase_ == 1) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The bytes for mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - @java.lang.Override - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - @java.lang.Override - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 2) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return This builder for chaining. - */ - public Builder clearMainClass() { - if (driverCase_ == 2) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The bytes for mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.HadoopJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HadoopJob) - private static final com.google.cloud.dataproc.v1beta2.HadoopJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.HadoopJob(); - } - - public static com.google.cloud.dataproc.v1beta2.HadoopJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HadoopJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HadoopJob(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.dataproc.v1beta2.HadoopJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java deleted file mode 100644 index d22ea544..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java +++ /dev/null @@ -1,467 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface HadoopJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.HadoopJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - boolean hasMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - java.lang.String getMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); - - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - boolean hasMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - java.lang.String getMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - com.google.protobuf.ByteString getMainClassBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.HadoopJob.DriverCase getDriverCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java deleted file mode 100644 index 51d57127..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java +++ /dev/null @@ -1,2182 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
- * queries on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.HiveJob} - */ -public final class HiveJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.HiveJob) - HiveJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveJob.newBuilder() to construct. - private HiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HiveJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HiveJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private HiveJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(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_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.HiveJob.class, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - 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.dataproc.v1beta2.HiveJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.HiveJob other = - (com.google.cloud.dataproc.v1beta2.HiveJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) 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(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob 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.dataproc.v1beta2.HiveJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob 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.dataproc.v1beta2.HiveJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob 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.dataproc.v1beta2.HiveJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Hive](https://hive.apache.org/)
-   * queries on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.HiveJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.HiveJob) - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableScriptVariables(); - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.HiveJob.class, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.HiveJob.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(); - continueOnFailure_ = false; - - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob build() { - com.google.cloud.dataproc.v1beta2.HiveJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob buildPartial() { - com.google.cloud.dataproc.v1beta2.HiveJob result = - new com.google.cloud.dataproc.v1beta2.HiveJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - result.queriesCase_ = queriesCase_; - 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.dataproc.v1beta2.HiveJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.HiveJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.HiveJob other) { - if (other == com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_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.dataproc.v1beta2.HiveJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.HiveJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList( - com.google.cloud.dataproc.v1beta2.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1beta2.QueryList.newBuilder( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1beta2.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(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.dataproc.v1beta2.HiveJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.HiveJob) - private static final com.google.cloud.dataproc.v1beta2.HiveJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.HiveJob(); - } - - public static com.google.cloud.dataproc.v1beta2.HiveJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveJob(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.dataproc.v1beta2.HiveJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java deleted file mode 100644 index 31690abb..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java +++ /dev/null @@ -1,311 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface HiveJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.HiveJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1beta2.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - public com.google.cloud.dataproc.v1beta2.HiveJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java deleted file mode 100644 index d5cee3bf..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java +++ /dev/null @@ -1,827 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Configuration for the size bounds of an instance group, including its
- * proportional size to other groups.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig} - */ -public final class InstanceGroupAutoscalingPolicyConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - InstanceGroupAutoscalingPolicyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstanceGroupAutoscalingPolicyConfig.newBuilder() to construct. - private InstanceGroupAutoscalingPolicyConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstanceGroupAutoscalingPolicyConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstanceGroupAutoscalingPolicyConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InstanceGroupAutoscalingPolicyConfig( - 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 8: - { - minInstances_ = input.readInt32(); - break; - } - case 16: - { - maxInstances_ = input.readInt32(); - break; - } - case 24: - { - weight_ = input.readInt32(); - 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.class, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder.class); - } - - public static final int MIN_INSTANCES_FIELD_NUMBER = 1; - private int minInstances_; - /** - * - * - *
-   * Optional. Minimum number of instances for this group.
-   * Primary workers - Bounds: [2, max_instances]. Default: 2.
-   * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-   * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - @java.lang.Override - public int getMinInstances() { - return minInstances_; - } - - public static final int MAX_INSTANCES_FIELD_NUMBER = 2; - private int maxInstances_; - /** - * - * - *
-   * Optional. Maximum number of instances for this group. Required for primary
-   * workers. Note that by default, clusters will not use secondary workers.
-   * Required for secondary workers if the minimum secondary instances is set.
-   * Primary workers - Bounds: [min_instances, ). Required.
-   * Secondary workers - Bounds: [min_instances, ). Default: 0.
-   * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxInstances. - */ - @java.lang.Override - public int getMaxInstances() { - return maxInstances_; - } - - public static final int WEIGHT_FIELD_NUMBER = 3; - private int weight_; - /** - * - * - *
-   * Optional. Weight for the instance group, which is used to determine the
-   * fraction of total workers in the cluster from this instance group.
-   * For example, if primary workers have weight 2, and secondary workers have
-   * weight 1, the cluster will have approximately 2 primary workers for each
-   * secondary worker.
-   * The cluster may not reach the specified balance if constrained
-   * by min/max bounds or other autoscaling settings. For example, if
-   * `max_instances` for secondary workers is 0, then only primary workers will
-   * be added. The cluster can also be out of balance when created.
-   * If weight is not set on any instance group, the cluster will default to
-   * equal weight for all groups: the cluster will attempt to maintain an equal
-   * number of workers in each group within the configured size bounds for each
-   * group. If weight is set for one group only, the cluster will default to
-   * zero weight on the unset group. For example if weight is set only on
-   * primary workers, the cluster will use primary workers only and no
-   * secondary workers.
-   * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minInstances_ != 0) { - output.writeInt32(1, minInstances_); - } - if (maxInstances_ != 0) { - output.writeInt32(2, maxInstances_); - } - if (weight_ != 0) { - output.writeInt32(3, weight_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstances_); - } - if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstances_); - } - if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_); - } - 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig other = - (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) obj; - - if (getMinInstances() != other.getMinInstances()) return false; - if (getMaxInstances() != other.getMaxInstances()) return false; - if (getWeight() != other.getWeight()) 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) + MIN_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getMinInstances(); - hash = (37 * hash) + MAX_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getMaxInstances(); - hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getWeight(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Configuration for the size bounds of an instance group, including its
-   * proportional size to other groups.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.class, - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.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(); - minInstances_ = 0; - - maxInstances_ = 0; - - weight_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig build() { - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig result = - new com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig(this); - result.minInstances_ = minInstances_; - result.maxInstances_ = maxInstances_; - result.weight_ = weight_; - 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) { - return mergeFrom( - (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig other) { - if (other - == com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - .getDefaultInstance()) return this; - if (other.getMinInstances() != 0) { - setMinInstances(other.getMinInstances()); - } - if (other.getMaxInstances() != 0) { - setMaxInstances(other.getMaxInstances()); - } - if (other.getWeight() != 0) { - setWeight(other.getWeight()); - } - 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int minInstances_; - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - @java.lang.Override - public int getMinInstances() { - return minInstances_; - } - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The minInstances to set. - * @return This builder for chaining. - */ - public Builder setMinInstances(int value) { - - minInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMinInstances() { - - minInstances_ = 0; - onChanged(); - return this; - } - - private int maxInstances_; - /** - * - * - *
-     * Optional. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ). Required.
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxInstances. - */ - @java.lang.Override - public int getMaxInstances() { - return maxInstances_; - } - /** - * - * - *
-     * Optional. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ). Required.
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The maxInstances to set. - * @return This builder for chaining. - */ - public Builder setMaxInstances(int value) { - - maxInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ). Required.
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMaxInstances() { - - maxInstances_ = 0; - onChanged(); - return this; - } - - private int weight_; - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The weight to set. - * @return This builder for chaining. - */ - public Builder setWeight(int value) { - - weight_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearWeight() { - - weight_ = 0; - 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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - private static final com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceGroupAutoscalingPolicyConfig(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.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java deleted file mode 100644 index da8490b3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java +++ /dev/null @@ -1,85 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface InstanceGroupAutoscalingPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Minimum number of instances for this group.
-   * Primary workers - Bounds: [2, max_instances]. Default: 2.
-   * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-   * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - int getMinInstances(); - - /** - * - * - *
-   * Optional. Maximum number of instances for this group. Required for primary
-   * workers. Note that by default, clusters will not use secondary workers.
-   * Required for secondary workers if the minimum secondary instances is set.
-   * Primary workers - Bounds: [min_instances, ). Required.
-   * Secondary workers - Bounds: [min_instances, ). Default: 0.
-   * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxInstances. - */ - int getMaxInstances(); - - /** - * - * - *
-   * Optional. Weight for the instance group, which is used to determine the
-   * fraction of total workers in the cluster from this instance group.
-   * For example, if primary workers have weight 2, and secondary workers have
-   * weight 1, the cluster will have approximately 2 primary workers for each
-   * secondary worker.
-   * The cluster may not reach the specified balance if constrained
-   * by min/max bounds or other autoscaling settings. For example, if
-   * `max_instances` for secondary workers is 0, then only primary workers will
-   * be added. The cluster can also be out of balance when created.
-   * If weight is not set on any instance group, the cluster will default to
-   * equal weight for all groups: the cluster will attempt to maintain an equal
-   * number of workers in each group within the configured size bounds for each
-   * group. If weight is set for one group only, the cluster will default to
-   * zero weight on the unset group. For example if weight is set only on
-   * primary workers, the cluster will use primary workers only and no
-   * secondary workers.
-   * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - int getWeight(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java deleted file mode 100644 index 827fe6e9..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java +++ /dev/null @@ -1,3212 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The config settings for Compute Engine resources in
- * an instance group, such as a master or worker group.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupConfig} - */ -public final class InstanceGroupConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.InstanceGroupConfig) - InstanceGroupConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstanceGroupConfig.newBuilder() to construct. - private InstanceGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstanceGroupConfig() { - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - imageUri_ = ""; - machineTypeUri_ = ""; - preemptibility_ = 0; - accelerators_ = java.util.Collections.emptyList(); - minCpuPlatform_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstanceGroupConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InstanceGroupConfig( - 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 8: - { - numInstances_ = input.readInt32(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instanceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instanceNames_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - imageUri_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineTypeUri_ = s; - break; - } - case 42: - { - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder subBuilder = null; - if (diskConfig_ != null) { - subBuilder = diskConfig_.toBuilder(); - } - diskConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.DiskConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(diskConfig_); - diskConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - isPreemptible_ = input.readBool(); - break; - } - case 58: - { - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder subBuilder = null; - if (managedGroupConfig_ != null) { - subBuilder = managedGroupConfig_.toBuilder(); - } - managedGroupConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(managedGroupConfig_); - managedGroupConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - accelerators_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - accelerators_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.parser(), - extensionRegistry)); - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - minCpuPlatform_ = s; - break; - } - case 80: - { - int rawValue = input.readEnum(); - - preemptibility_ = rawValue; - 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)) { - instanceNames_ = instanceNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.class, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder.class); - } - - /** - * - * - *
-   * Controls the use of
-   * [preemptible instances]
-   * (https://cloud.google.com/compute/docs/instances/preemptible)
-   * within the group.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility} - */ - public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Preemptibility is unspecified, the system will choose the
-     * appropriate setting for each instance group.
-     * 
- * - * PREEMPTIBILITY_UNSPECIFIED = 0; - */ - PREEMPTIBILITY_UNSPECIFIED(0), - /** - * - * - *
-     * Instances are non-preemptible.
-     * This option is allowed for all instance groups and is the only valid
-     * value for Master and Worker instance groups.
-     * 
- * - * NON_PREEMPTIBLE = 1; - */ - NON_PREEMPTIBLE(1), - /** - * - * - *
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
-     * 
- * - * PREEMPTIBLE = 2; - */ - PREEMPTIBLE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Preemptibility is unspecified, the system will choose the
-     * appropriate setting for each instance group.
-     * 
- * - * PREEMPTIBILITY_UNSPECIFIED = 0; - */ - public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Instances are non-preemptible.
-     * This option is allowed for all instance groups and is the only valid
-     * value for Master and Worker instance groups.
-     * 
- * - * NON_PREEMPTIBLE = 1; - */ - public static final int NON_PREEMPTIBLE_VALUE = 1; - /** - * - * - *
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
-     * 
- * - * PREEMPTIBLE = 2; - */ - public static final int PREEMPTIBLE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Preemptibility 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 Preemptibility forNumber(int value) { - switch (value) { - case 0: - return PREEMPTIBILITY_UNSPECIFIED; - case 1: - return NON_PREEMPTIBLE; - case 2: - return PREEMPTIBLE; - 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 Preemptibility findValueByNumber(int number) { - return Preemptibility.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.dataproc.v1beta2.InstanceGroupConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Preemptibility[] VALUES = values(); - - public static Preemptibility 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 Preemptibility(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility) - } - - public static final int NUM_INSTANCES_FIELD_NUMBER = 1; - private int numInstances_; - /** - * - * - *
-   * Optional. The number of VM instances in the instance group.
-   * For master instance groups, must be set to 1.
-   * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - @java.lang.Override - public int getNumInstances() { - return numInstances_; - } - - public static final int INSTANCE_NAMES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList instanceNames_; - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { - return instanceNames_; - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - public int getInstanceNamesCount() { - return instanceNames_.size(); - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - public java.lang.String getInstanceNames(int index) { - return instanceNames_.get(index); - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { - return instanceNames_.getByteString(index); - } - - public static final int IMAGE_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object imageUri_; - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - @java.lang.Override - public java.lang.String getImageUri() { - java.lang.Object ref = imageUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { - java.lang.Object ref = imageUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MACHINE_TYPE_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object machineTypeUri_; - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - @java.lang.Override - public java.lang.String getMachineTypeUri() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineTypeUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeUriBytes() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISK_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1beta2.DiskConfig diskConfig_; - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - @java.lang.Override - public boolean hasDiskConfig() { - return diskConfig_ != null; - } - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiskConfig getDiskConfig() { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1beta2.DiskConfig.getDefaultInstance() - : diskConfig_; - } - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder getDiskConfigOrBuilder() { - return getDiskConfig(); - } - - public static final int IS_PREEMPTIBLE_FIELD_NUMBER = 6; - private boolean isPreemptible_; - /** - * - * - *
-   * Output only. Specifies that this instance group contains preemptible
-   * instances.
-   * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - @java.lang.Override - public boolean getIsPreemptible() { - return isPreemptible_; - } - - public static final int PREEMPTIBILITY_FIELD_NUMBER = 10; - private int preemptibility_; - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - @java.lang.Override - public int getPreemptibilityValue() { - return preemptibility_; - } - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility getPreemptibility() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.valueOf( - preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; - } - - public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1beta2.ManagedGroupConfig managedGroupConfig_; - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - @java.lang.Override - public boolean hasManagedGroupConfig() { - return managedGroupConfig_ != null; - } - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig getManagedGroupConfig() { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder - getManagedGroupConfigOrBuilder() { - return getManagedGroupConfig(); - } - - public static final int ACCELERATORS_FIELD_NUMBER = 8; - private java.util.List accelerators_; - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getAcceleratorsList() { - return accelerators_; - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getAcceleratorsOrBuilderList() { - return accelerators_; - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getAcceleratorsCount() { - return accelerators_.size(); - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig getAccelerators(int index) { - return accelerators_.get(index); - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - return accelerators_.get(index); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 9; - private volatile java.lang.Object minCpuPlatform_; - /** - * - * - *
-   * Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9; - * - * @return The minCpuPlatform. - */ - @java.lang.Override - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } - } - /** - * - * - *
-   * Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9; - * - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (numInstances_ != 0) { - output.writeInt32(1, numInstances_); - } - for (int i = 0; i < instanceNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceNames_.getRaw(i)); - } - if (!getImageUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); - } - if (!getMachineTypeUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineTypeUri_); - } - if (diskConfig_ != null) { - output.writeMessage(5, getDiskConfig()); - } - if (isPreemptible_ != false) { - output.writeBool(6, isPreemptible_); - } - if (managedGroupConfig_ != null) { - output.writeMessage(7, getManagedGroupConfig()); - } - for (int i = 0; i < accelerators_.size(); i++) { - output.writeMessage(8, accelerators_.get(i)); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); - } - if (preemptibility_ - != com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(10, preemptibility_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); - } - { - int dataSize = 0; - for (int i = 0; i < instanceNames_.size(); i++) { - dataSize += computeStringSizeNoTag(instanceNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getInstanceNamesList().size(); - } - if (!getImageUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); - } - if (!getMachineTypeUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineTypeUri_); - } - if (diskConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskConfig()); - } - if (isPreemptible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isPreemptible_); - } - if (managedGroupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getManagedGroupConfig()); - } - for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, accelerators_.get(i)); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); - } - if (preemptibility_ - != com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); - } - 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.dataproc.v1beta2.InstanceGroupConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig other = - (com.google.cloud.dataproc.v1beta2.InstanceGroupConfig) obj; - - if (getNumInstances() != other.getNumInstances()) return false; - if (!getInstanceNamesList().equals(other.getInstanceNamesList())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getMachineTypeUri().equals(other.getMachineTypeUri())) return false; - if (hasDiskConfig() != other.hasDiskConfig()) return false; - if (hasDiskConfig()) { - if (!getDiskConfig().equals(other.getDiskConfig())) return false; - } - if (getIsPreemptible() != other.getIsPreemptible()) return false; - if (preemptibility_ != other.preemptibility_) return false; - if (hasManagedGroupConfig() != other.hasManagedGroupConfig()) return false; - if (hasManagedGroupConfig()) { - if (!getManagedGroupConfig().equals(other.getManagedGroupConfig())) return false; - } - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) 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) + NUM_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getNumInstances(); - if (getInstanceNamesCount() > 0) { - hash = (37 * hash) + INSTANCE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getInstanceNamesList().hashCode(); - } - hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; - hash = (53 * hash) + getImageUri().hashCode(); - hash = (37 * hash) + MACHINE_TYPE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMachineTypeUri().hashCode(); - if (hasDiskConfig()) { - hash = (37 * hash) + DISK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDiskConfig().hashCode(); - } - hash = (37 * hash) + IS_PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreemptible()); - hash = (37 * hash) + PREEMPTIBILITY_FIELD_NUMBER; - hash = (53 * hash) + preemptibility_; - if (hasManagedGroupConfig()) { - hash = (37 * hash) + MANAGED_GROUP_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getManagedGroupConfig().hashCode(); - } - if (getAcceleratorsCount() > 0) { - hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorsList().hashCode(); - } - hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig 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.dataproc.v1beta2.InstanceGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig 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.dataproc.v1beta2.InstanceGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig 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.dataproc.v1beta2.InstanceGroupConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 config settings for Compute Engine resources in
-   * an instance group, such as a master or worker group.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.InstanceGroupConfig) - com.google.cloud.dataproc.v1beta2.InstanceGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.class, - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAcceleratorsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - numInstances_ = 0; - - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - imageUri_ = ""; - - machineTypeUri_ = ""; - - if (diskConfigBuilder_ == null) { - diskConfig_ = null; - } else { - diskConfig_ = null; - diskConfigBuilder_ = null; - } - isPreemptible_ = false; - - preemptibility_ = 0; - - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = null; - } else { - managedGroupConfig_ = null; - managedGroupConfigBuilder_ = null; - } - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - acceleratorsBuilder_.clear(); - } - minCpuPlatform_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig build() { - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig result = - new com.google.cloud.dataproc.v1beta2.InstanceGroupConfig(this); - int from_bitField0_ = bitField0_; - result.numInstances_ = numInstances_; - if (((bitField0_ & 0x00000001) != 0)) { - instanceNames_ = instanceNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.instanceNames_ = instanceNames_; - result.imageUri_ = imageUri_; - result.machineTypeUri_ = machineTypeUri_; - if (diskConfigBuilder_ == null) { - result.diskConfig_ = diskConfig_; - } else { - result.diskConfig_ = diskConfigBuilder_.build(); - } - result.isPreemptible_ = isPreemptible_; - result.preemptibility_ = preemptibility_; - if (managedGroupConfigBuilder_ == null) { - result.managedGroupConfig_ = managedGroupConfig_; - } else { - result.managedGroupConfig_ = managedGroupConfigBuilder_.build(); - } - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - 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.dataproc.v1beta2.InstanceGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.InstanceGroupConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.InstanceGroupConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.getDefaultInstance()) - return this; - if (other.getNumInstances() != 0) { - setNumInstances(other.getNumInstances()); - } - if (!other.instanceNames_.isEmpty()) { - if (instanceNames_.isEmpty()) { - instanceNames_ = other.instanceNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInstanceNamesIsMutable(); - instanceNames_.addAll(other.instanceNames_); - } - onChanged(); - } - if (!other.getImageUri().isEmpty()) { - imageUri_ = other.imageUri_; - onChanged(); - } - if (!other.getMachineTypeUri().isEmpty()) { - machineTypeUri_ = other.machineTypeUri_; - onChanged(); - } - if (other.hasDiskConfig()) { - mergeDiskConfig(other.getDiskConfig()); - } - if (other.getIsPreemptible() != false) { - setIsPreemptible(other.getIsPreemptible()); - } - if (other.preemptibility_ != 0) { - setPreemptibilityValue(other.getPreemptibilityValue()); - } - if (other.hasManagedGroupConfig()) { - mergeManagedGroupConfig(other.getManagedGroupConfig()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000002); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - 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.dataproc.v1beta2.InstanceGroupConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.InstanceGroupConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int numInstances_; - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - @java.lang.Override - public int getNumInstances() { - return numInstances_; - } - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The numInstances to set. - * @return This builder for chaining. - */ - public Builder setNumInstances(int value) { - - numInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For master instance groups, must be set to 1.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNumInstances() { - - numInstances_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - instanceNames_ = new com.google.protobuf.LazyStringArrayList(instanceNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { - return instanceNames_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - public int getInstanceNamesCount() { - return instanceNames_.size(); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - public java.lang.String getInstanceNames(int index) { - return instanceNames_.get(index); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { - return instanceNames_.getByteString(index); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The instanceNames to set. - * @return This builder for chaining. - */ - public Builder setInstanceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); - instanceNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The instanceNames to add. - * @return This builder for chaining. - */ - public Builder addInstanceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); - instanceNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The instanceNames to add. - * @return This builder for chaining. - */ - public Builder addAllInstanceNames(java.lang.Iterable values) { - ensureInstanceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceNames_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearInstanceNames() { - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the instanceNames to add. - * @return This builder for chaining. - */ - public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceNamesIsMutable(); - instanceNames_.add(value); - onChanged(); - return this; - } - - private java.lang.Object imageUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - public java.lang.String getImageUri() { - java.lang.Object ref = imageUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - public com.google.protobuf.ByteString getImageUriBytes() { - java.lang.Object ref = imageUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The imageUri to set. - * @return This builder for chaining. - */ - public Builder setImageUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearImageUri() { - - imageUri_ = getDefaultInstance().getImageUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for imageUri to set. - * @return This builder for chaining. - */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object machineTypeUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - public java.lang.String getMachineTypeUri() { - java.lang.Object ref = machineTypeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineTypeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - public com.google.protobuf.ByteString getMachineTypeUriBytes() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The machineTypeUri to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineTypeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMachineTypeUri() { - - machineTypeUri_ = getDefaultInstance().getMachineTypeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for machineTypeUri to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineTypeUri_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.DiskConfig diskConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.DiskConfig, - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder, - com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder> - diskConfigBuilder_; - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - public boolean hasDiskConfig() { - return diskConfigBuilder_ != null || diskConfig_ != null; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - public com.google.cloud.dataproc.v1beta2.DiskConfig getDiskConfig() { - if (diskConfigBuilder_ == null) { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1beta2.DiskConfig.getDefaultInstance() - : diskConfig_; - } else { - return diskConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDiskConfig(com.google.cloud.dataproc.v1beta2.DiskConfig value) { - if (diskConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - diskConfig_ = value; - onChanged(); - } else { - diskConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDiskConfig( - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder builderForValue) { - if (diskConfigBuilder_ == null) { - diskConfig_ = builderForValue.build(); - onChanged(); - } else { - diskConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeDiskConfig(com.google.cloud.dataproc.v1beta2.DiskConfig value) { - if (diskConfigBuilder_ == null) { - if (diskConfig_ != null) { - diskConfig_ = - com.google.cloud.dataproc.v1beta2.DiskConfig.newBuilder(diskConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - diskConfig_ = value; - } - onChanged(); - } else { - diskConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearDiskConfig() { - if (diskConfigBuilder_ == null) { - diskConfig_ = null; - onChanged(); - } else { - diskConfig_ = null; - diskConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.DiskConfig.Builder getDiskConfigBuilder() { - - onChanged(); - return getDiskConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder getDiskConfigOrBuilder() { - if (diskConfigBuilder_ != null) { - return diskConfigBuilder_.getMessageOrBuilder(); - } else { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1beta2.DiskConfig.getDefaultInstance() - : diskConfig_; - } - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.DiskConfig, - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder, - com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder> - getDiskConfigFieldBuilder() { - if (diskConfigBuilder_ == null) { - diskConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.DiskConfig, - com.google.cloud.dataproc.v1beta2.DiskConfig.Builder, - com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder>( - getDiskConfig(), getParentForChildren(), isClean()); - diskConfig_ = null; - } - return diskConfigBuilder_; - } - - private boolean isPreemptible_; - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - @java.lang.Override - public boolean getIsPreemptible() { - return isPreemptible_; - } - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The isPreemptible to set. - * @return This builder for chaining. - */ - public Builder setIsPreemptible(boolean value) { - - isPreemptible_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearIsPreemptible() { - - isPreemptible_ = false; - onChanged(); - return this; - } - - private int preemptibility_ = 0; - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - @java.lang.Override - public int getPreemptibilityValue() { - return preemptibility_; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for preemptibility to set. - * @return This builder for chaining. - */ - public Builder setPreemptibilityValue(int value) { - - preemptibility_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility - getPreemptibility() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.valueOf( - preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The preemptibility to set. - * @return This builder for chaining. - */ - public Builder setPreemptibility( - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility value) { - if (value == null) { - throw new NullPointerException(); - } - - preemptibility_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearPreemptibility() { - - preemptibility_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ManagedGroupConfig managedGroupConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder> - managedGroupConfigBuilder_; - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - public boolean hasManagedGroupConfig() { - return managedGroupConfigBuilder_ != null || managedGroupConfig_ != null; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig getManagedGroupConfig() { - if (managedGroupConfigBuilder_ == null) { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } else { - return managedGroupConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setManagedGroupConfig( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig value) { - if (managedGroupConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managedGroupConfig_ = value; - onChanged(); - } else { - managedGroupConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setManagedGroupConfig( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder builderForValue) { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = builderForValue.build(); - onChanged(); - } else { - managedGroupConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeManagedGroupConfig( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig value) { - if (managedGroupConfigBuilder_ == null) { - if (managedGroupConfig_ != null) { - managedGroupConfig_ = - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.newBuilder(managedGroupConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - managedGroupConfig_ = value; - } - onChanged(); - } else { - managedGroupConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearManagedGroupConfig() { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = null; - onChanged(); - } else { - managedGroupConfig_ = null; - managedGroupConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder - getManagedGroupConfigBuilder() { - - onChanged(); - return getManagedGroupConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder - getManagedGroupConfigOrBuilder() { - if (managedGroupConfigBuilder_ != null) { - return managedGroupConfigBuilder_.getMessageOrBuilder(); - } else { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder> - getManagedGroupConfigFieldBuilder() { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder>( - getManagedGroupConfig(), getParentForChildren(), isClean()); - managedGroupConfig_ = null; - } - return managedGroupConfigBuilder_; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - accelerators_ = - new java.util.ArrayList( - accelerators_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AcceleratorConfig, - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder> - acceleratorsBuilder_; - - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1beta2.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.set(index, value); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators(com.google.cloud.dataproc.v1beta2.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1beta2.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(index, value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllAccelerators( - java.lang.Iterable values) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); - onChanged(); - } else { - acceleratorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder getAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AcceleratorConfig, - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AcceleratorConfig, - com.google.cloud.dataproc.v1beta2.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-     * Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9; - * - * @return The minCpuPlatform. - */ - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9; - * - * @return The bytes for minCpuPlatform. - */ - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9; - * - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCpuPlatform_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9; - * - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9; - * - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCpuPlatform_ = 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.dataproc.v1beta2.InstanceGroupConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupConfig) - private static final com.google.cloud.dataproc.v1beta2.InstanceGroupConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.InstanceGroupConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.InstanceGroupConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceGroupConfig(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.dataproc.v1beta2.InstanceGroupConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java deleted file mode 100644 index ddc45b5c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java +++ /dev/null @@ -1,419 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface InstanceGroupConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.InstanceGroupConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The number of VM instances in the instance group.
-   * For master instance groups, must be set to 1.
-   * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - int getNumInstances(); - - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - java.util.List getInstanceNamesList(); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - int getInstanceNamesCount(); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - java.lang.String getInstanceNames(int index); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - com.google.protobuf.ByteString getInstanceNamesBytes(int index); - - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - java.lang.String getImageUri(); - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - com.google.protobuf.ByteString getImageUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - java.lang.String getMachineTypeUri(); - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - com.google.protobuf.ByteString getMachineTypeUriBytes(); - - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - boolean hasDiskConfig(); - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - com.google.cloud.dataproc.v1beta2.DiskConfig getDiskConfig(); - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.DiskConfigOrBuilder getDiskConfigOrBuilder(); - - /** - * - * - *
-   * Output only. Specifies that this instance group contains preemptible
-   * instances.
-   * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - boolean getIsPreemptible(); - - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - int getPreemptibilityValue(); - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - com.google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility getPreemptibility(); - - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - boolean hasManagedGroupConfig(); - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig getManagedGroupConfig(); - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getAcceleratorsList(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.AcceleratorConfig getAccelerators(int index); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getAcceleratorsCount(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAcceleratorsOrBuilderList(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); - - /** - * - * - *
-   * Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9; - * - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9; - * - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequest.java deleted file mode 100644 index a87398be..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequest.java +++ /dev/null @@ -1,1429 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to instantiate an inline workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest} - */ -public final class InstantiateInlineWorkflowTemplateRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - InstantiateInlineWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstantiateInlineWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateInlineWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstantiateInlineWorkflowTemplateRequest() { - parent_ = ""; - instanceId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstantiateInlineWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InstantiateInlineWorkflowTemplateRequest( - 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: - { - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.Builder - .class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int INSTANCE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object instanceId_; - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3; - * - * @return The instanceId. - */ - @java.lang.Override - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3; - * - * @return The bytes for instanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (template_ != null) { - output.writeMessage(2, getTemplate()); - } - if (!getInstanceIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); - } - if (!getInstanceIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; - } - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getRequestId().equals(other.getRequestId())) 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(); - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to instantiate an inline workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest.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_ = ""; - - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - instanceId_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - buildPartial() { - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest(this); - result.parent_ = parent_; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - result.instanceId_ = instanceId_; - result.requestId_ = requestId_; - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) { - return mergeFrom( - (com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.lang.Object instanceId_ = ""; - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3; - * - * @return The instanceId. - */ - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3; - * - * @return The bytes for instanceId. - */ - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3; - * - * @param value The instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3; - * - * @return This builder for chaining. - */ - public Builder clearInstanceId() { - - instanceId_ = getDefaultInstance().getInstanceId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3; - * - * @param value The bytes for instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceId_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstantiateInlineWorkflowTemplateRequest(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.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index c93f5632..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,171 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface InstantiateInlineWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3; - * - * @return The instanceId. - */ - java.lang.String getInstanceId(); - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3; - * - * @return The bytes for instanceId. - */ - com.google.protobuf.ByteString getInstanceIdBytes(); - - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequest.java deleted file mode 100644 index 3bd53060..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequest.java +++ /dev/null @@ -1,1566 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to instantiate a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest} - */ -public final class InstantiateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - InstantiateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstantiateWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstantiateWorkflowTemplateRequest() { - name_ = ""; - instanceId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstantiateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private InstantiateWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceId_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = - com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to instantiate. If specified,
-   * the workflow will be instantiated only if the current version of
-   * the workflow template has the supplied version.
-   * This option cannot be used to instantiate a previous version of
-   * workflow template.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int INSTANCE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object instanceId_; - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The instanceId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The bytes for instanceId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETERS_FIELD_NUMBER = 4; - - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - if (!getInstanceIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 4); - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - if (!getInstanceIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_); - } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, parameters__); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) 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) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to instantiate a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest.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_ = ""; - - version_ = 0; - - instanceId_ = ""; - - requestId_ = ""; - - internalGetMutableParameters().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.version_ = version_; - result.instanceId_ = instanceId_; - result.requestId_ = requestId_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) { - return mergeFrom( - (com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); - 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.lang.Object instanceId_ = ""; - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The instanceId. - */ - @java.lang.Deprecated - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The bytes for instanceId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @param value The instanceId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInstanceId() { - - instanceId_ = getDefaultInstance().getInstanceId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Please use `request_id` field instead.
-     * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @param value The bytes for instanceId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceId_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; - if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableParameters().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableParameters().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 100 characters.
-     * 
- * - * map<string, string> parameters = 4; - */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); - 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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstantiateWorkflowTemplateRequest(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.dataproc.v1beta2.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 06d7e3c7..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,208 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface InstantiateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to instantiate. If specified,
-   * the workflow will be instantiated only if the current version of
-   * the workflow template has the supplied version.
-   * This option cannot be used to instantiate a previous version of
-   * workflow template.
-   * 
- * - * int32 version = 2; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The instanceId. - */ - @java.lang.Deprecated - java.lang.String getInstanceId(); - /** - * - * - *
-   * Deprecated. Please use `request_id` field instead.
-   * 
- * - * string instance_id = 3 [deprecated = true]; - * - * @return The bytes for instanceId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getInstanceIdBytes(); - - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); - - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - int getParametersCount(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getParameters(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - java.util.Map getParametersMap(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - java.lang.String getParametersOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 100 characters.
-   * 
- * - * map<string, string> parameters = 4; - */ - java.lang.String getParametersOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java deleted file mode 100644 index aeaa2acb..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java +++ /dev/null @@ -1,6842 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.Job} - */ -public final class Job extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.Job) - JobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Job.newBuilder() to construct. - private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Job() { - statusHistory_ = java.util.Collections.emptyList(); - yarnApplications_ = java.util.Collections.emptyList(); - submittedBy_ = ""; - driverOutputResourceUri_ = ""; - driverControlFilesUri_ = ""; - jobUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Job(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Job( - 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: - { - com.google.cloud.dataproc.v1beta2.JobReference.Builder subBuilder = null; - if (reference_ != null) { - subBuilder = reference_.toBuilder(); - } - reference_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reference_); - reference_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder subBuilder = null; - if (placement_ != null) { - subBuilder = placement_.toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobPlacement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(placement_); - placement_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder subBuilder = null; - if (typeJobCase_ == 3) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.HadoopJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.SparkJob.Builder subBuilder = null; - if (typeJobCase_ == 4) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 4; - break; - } - case 42: - { - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder subBuilder = null; - if (typeJobCase_ == 5) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PySparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 5; - break; - } - case 50: - { - com.google.cloud.dataproc.v1beta2.HiveJob.Builder subBuilder = null; - if (typeJobCase_ == 6) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.HiveJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1beta2.PigJob.Builder subBuilder = null; - if (typeJobCase_ == 7) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PigJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PigJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PigJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 7; - break; - } - case 66: - { - com.google.cloud.dataproc.v1beta2.JobStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - yarnApplications_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.YarnApplication.parser(), - extensionRegistry)); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - submittedBy_ = s; - break; - } - case 98: - { - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder subBuilder = null; - if (typeJobCase_ == 12) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 12; - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobStatus.parser(), extensionRegistry)); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - driverControlFilesUri_ = s; - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - - driverOutputResourceUri_ = s; - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 162: - { - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder subBuilder = null; - if (scheduling_ != null) { - subBuilder = scheduling_.toBuilder(); - } - scheduling_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobScheduling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduling_); - scheduling_ = subBuilder.buildPartial(); - } - - break; - } - case 170: - { - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder subBuilder = null; - if (typeJobCase_ == 21) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkRJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 21; - break; - } - case 178: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobUuid_ = s; - break; - } - case 186: - { - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder subBuilder = null; - if (typeJobCase_ == 23) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PrestoJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 23; - break; - } - case 192: - { - done_ = 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_ & 0x00000002) != 0)) { - yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 18: - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.Job.class, - com.google.cloud.dataproc.v1beta2.Job.Builder.class); - } - - private int typeJobCase_ = 0; - private java.lang.Object typeJob_; - - public enum TypeJobCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - HADOOP_JOB(3), - SPARK_JOB(4), - PYSPARK_JOB(5), - HIVE_JOB(6), - PIG_JOB(7), - SPARK_R_JOB(21), - SPARK_SQL_JOB(12), - PRESTO_JOB(23), - TYPEJOB_NOT_SET(0); - private final int value; - - private TypeJobCase(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 TypeJobCase valueOf(int value) { - return forNumber(value); - } - - public static TypeJobCase forNumber(int value) { - switch (value) { - case 3: - return HADOOP_JOB; - case 4: - return SPARK_JOB; - case 5: - return PYSPARK_JOB; - case 6: - return HIVE_JOB; - case 7: - return PIG_JOB; - case 21: - return SPARK_R_JOB; - case 12: - return SPARK_SQL_JOB; - case 23: - return PRESTO_JOB; - case 0: - return TYPEJOB_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); - } - - public static final int REFERENCE_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.JobReference reference_; - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - @java.lang.Override - public boolean hasReference() { - return reference_ != null; - } - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobReference getReference() { - return reference_ == null - ? com.google.cloud.dataproc.v1beta2.JobReference.getDefaultInstance() - : reference_; - } - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder getReferenceOrBuilder() { - return getReference(); - } - - public static final int PLACEMENT_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.JobPlacement placement_; - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - @java.lang.Override - public boolean hasPlacement() { - return placement_ != null; - } - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobPlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.JobPlacement.getDefaultInstance() - : placement_; - } - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder getPlacementOrBuilder() { - return getPlacement(); - } - - public static final int HADOOP_JOB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return typeJobCase_ == 3; - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - - public static final int SPARK_JOB_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return typeJobCase_ == 4; - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - - public static final int PYSPARK_JOB_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return typeJobCase_ == 5; - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - - public static final int HIVE_JOB_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return typeJobCase_ == 6; - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - - public static final int PIG_JOB_FIELD_NUMBER = 7; - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return typeJobCase_ == 7; - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - - public static final int SPARK_R_JOB_FIELD_NUMBER = 21; - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return typeJobCase_ == 21; - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - - public static final int SPARK_SQL_JOB_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return typeJobCase_ == 12; - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - - public static final int PRESTO_JOB_FIELD_NUMBER = 23; - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return typeJobCase_ == 23; - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1beta2.JobStatus status_; - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 13; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { - return statusHistory_.get(index); - } - - public static final int YARN_APPLICATIONS_FIELD_NUMBER = 9; - private java.util.List yarnApplications_; - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getYarnApplicationsList() { - return yarnApplications_; - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getYarnApplicationsOrBuilderList() { - return yarnApplications_; - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getYarnApplicationsCount() { - return yarnApplications_.size(); - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication getYarnApplications(int index) { - return yarnApplications_.get(index); - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index) { - return yarnApplications_.get(index); - } - - public static final int SUBMITTED_BY_FIELD_NUMBER = 10; - private volatile java.lang.Object submittedBy_; - /** - * - * - *
-   * Output only. The email address of the user submitting the job. For jobs
-   * submitted on the cluster, the address is <code>username@hostname</code>.
-   * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The submittedBy. - */ - @java.lang.Override - public java.lang.String getSubmittedBy() { - java.lang.Object ref = submittedBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submittedBy_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The email address of the user submitting the job. For jobs
-   * submitted on the cluster, the address is <code>username@hostname</code>.
-   * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for submittedBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubmittedByBytes() { - java.lang.Object ref = submittedBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - submittedBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER = 17; - private volatile java.lang.Object driverOutputResourceUri_; - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - @java.lang.Override - public java.lang.String getDriverOutputResourceUri() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverOutputResourceUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverOutputResourceUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DRIVER_CONTROL_FILES_URI_FIELD_NUMBER = 15; - private volatile java.lang.Object driverControlFilesUri_; - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The driverControlFilesUri. - */ - @java.lang.Override - public java.lang.String getDriverControlFilesUri() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverControlFilesUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for driverControlFilesUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverControlFilesUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 18; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 SCHEDULING_FIELD_NUMBER = 20; - private com.google.cloud.dataproc.v1beta2.JobScheduling scheduling_; - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - @java.lang.Override - public boolean hasScheduling() { - return scheduling_ != null; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); - } - - public static final int JOB_UUID_FIELD_NUMBER = 22; - private volatile java.lang.Object jobUuid_; - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - @java.lang.Override - public java.lang.String getJobUuid() { - java.lang.Object ref = jobUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobUuidBytes() { - java.lang.Object ref = jobUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DONE_FIELD_NUMBER = 24; - private boolean done_; - /** - * - * - *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
-   * `status.state` field will indicate if it was successful, failed,
-   * or cancelled.
-   * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reference_ != null) { - output.writeMessage(1, getReference()); - } - if (placement_ != null) { - output.writeMessage(2, getPlacement()); - } - if (typeJobCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_); - } - if (typeJobCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_); - } - if (typeJobCase_ == 5) { - output.writeMessage(5, (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_); - } - if (typeJobCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_); - } - if (typeJobCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_); - } - if (status_ != null) { - output.writeMessage(8, getStatus()); - } - for (int i = 0; i < yarnApplications_.size(); i++) { - output.writeMessage(9, yarnApplications_.get(i)); - } - if (!getSubmittedByBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, submittedBy_); - } - if (typeJobCase_ == 12) { - output.writeMessage(12, (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(13, statusHistory_.get(i)); - } - if (!getDriverControlFilesUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, driverControlFilesUri_); - } - if (!getDriverOutputResourceUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, driverOutputResourceUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); - if (scheduling_ != null) { - output.writeMessage(20, getScheduling()); - } - if (typeJobCase_ == 21) { - output.writeMessage(21, (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_); - } - if (!getJobUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, jobUuid_); - } - if (typeJobCase_ == 23) { - output.writeMessage(23, (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_); - } - if (done_ != false) { - output.writeBool(24, done_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReference()); - } - if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlacement()); - } - if (typeJobCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_); - } - if (typeJobCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_); - } - if (typeJobCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_); - } - if (typeJobCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_); - } - if (typeJobCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStatus()); - } - for (int i = 0; i < yarnApplications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, yarnApplications_.get(i)); - } - if (!getSubmittedByBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, submittedBy_); - } - if (typeJobCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, statusHistory_.get(i)); - } - if (!getDriverControlFilesUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, driverControlFilesUri_); - } - if (!getDriverOutputResourceUriBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); - } - 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(18, labels__); - } - if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScheduling()); - } - if (typeJobCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_); - } - if (!getJobUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_); - } - if (typeJobCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_); - } - if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, done_); - } - 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.dataproc.v1beta2.Job)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.Job other = (com.google.cloud.dataproc.v1beta2.Job) obj; - - if (hasReference() != other.hasReference()) return false; - if (hasReference()) { - if (!getReference().equals(other.getReference())) return false; - } - if (hasPlacement() != other.hasPlacement()) return false; - if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getYarnApplicationsList().equals(other.getYarnApplicationsList())) return false; - if (!getSubmittedBy().equals(other.getSubmittedBy())) return false; - if (!getDriverOutputResourceUri().equals(other.getDriverOutputResourceUri())) return false; - if (!getDriverControlFilesUri().equals(other.getDriverControlFilesUri())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasScheduling() != other.hasScheduling()) return false; - if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; - } - if (!getJobUuid().equals(other.getJobUuid())) return false; - if (getDone() != other.getDone()) return false; - if (!getTypeJobCase().equals(other.getTypeJobCase())) return false; - switch (typeJobCase_) { - case 3: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; - break; - case 4: - if (!getSparkJob().equals(other.getSparkJob())) return false; - break; - case 5: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; - break; - case 6: - if (!getHiveJob().equals(other.getHiveJob())) return false; - break; - case 7: - if (!getPigJob().equals(other.getPigJob())) return false; - break; - case 21: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; - break; - case 12: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; - break; - case 23: - if (!getPrestoJob().equals(other.getPrestoJob())) 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(); - if (hasReference()) { - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - } - if (hasPlacement()) { - hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; - hash = (53 * hash) + getPlacement().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - if (getYarnApplicationsCount() > 0) { - hash = (37 * hash) + YARN_APPLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getYarnApplicationsList().hashCode(); - } - hash = (37 * hash) + SUBMITTED_BY_FIELD_NUMBER; - hash = (53 * hash) + getSubmittedBy().hashCode(); - hash = (37 * hash) + DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER; - hash = (53 * hash) + getDriverOutputResourceUri().hashCode(); - hash = (37 * hash) + DRIVER_CONTROL_FILES_URI_FIELD_NUMBER; - hash = (53 * hash) + getDriverControlFilesUri().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasScheduling()) { - hash = (37 * hash) + SCHEDULING_FIELD_NUMBER; - hash = (53 * hash) + getScheduling().hashCode(); - } - hash = (37 * hash) + JOB_UUID_FIELD_NUMBER; - hash = (53 * hash) + getJobUuid().hashCode(); - hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - switch (typeJobCase_) { - case 3: - hash = (37 * hash) + HADOOP_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHadoopJob().hashCode(); - break; - case 4: - hash = (37 * hash) + SPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkJob().hashCode(); - break; - case 5: - hash = (37 * hash) + PYSPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPysparkJob().hashCode(); - break; - case 6: - hash = (37 * hash) + HIVE_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHiveJob().hashCode(); - break; - case 7: - hash = (37 * hash) + PIG_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPigJob().hashCode(); - break; - case 21: - hash = (37 * hash) + SPARK_R_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkRJob().hashCode(); - break; - case 12: - hash = (37 * hash) + SPARK_SQL_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkSqlJob().hashCode(); - break; - case 23: - hash = (37 * hash) + PRESTO_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPrestoJob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.Job parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Job 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.dataproc.v1beta2.Job parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Job 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.dataproc.v1beta2.Job parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.Job 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.dataproc.v1beta2.Job prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.Job} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.Job) - com.google.cloud.dataproc.v1beta2.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 18: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 18: - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.Job.class, - com.google.cloud.dataproc.v1beta2.Job.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.Job.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - getYarnApplicationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (referenceBuilder_ == null) { - reference_ = null; - } else { - reference_ = null; - referenceBuilder_ = null; - } - if (placementBuilder_ == null) { - placement_ = null; - } else { - placement_ = null; - placementBuilder_ = null; - } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - statusHistoryBuilder_.clear(); - } - if (yarnApplicationsBuilder_ == null) { - yarnApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - yarnApplicationsBuilder_.clear(); - } - submittedBy_ = ""; - - driverOutputResourceUri_ = ""; - - driverControlFilesUri_ = ""; - - internalGetMutableLabels().clear(); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - jobUuid_ = ""; - - done_ = false; - - typeJobCase_ = 0; - typeJob_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_Job_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job build() { - com.google.cloud.dataproc.v1beta2.Job result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job buildPartial() { - com.google.cloud.dataproc.v1beta2.Job result = - new com.google.cloud.dataproc.v1beta2.Job(this); - int from_bitField0_ = bitField0_; - if (referenceBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = referenceBuilder_.build(); - } - if (placementBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = placementBuilder_.build(); - } - if (typeJobCase_ == 3) { - if (hadoopJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = hadoopJobBuilder_.build(); - } - } - if (typeJobCase_ == 4) { - if (sparkJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkJobBuilder_.build(); - } - } - if (typeJobCase_ == 5) { - if (pysparkJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = pysparkJobBuilder_.build(); - } - } - if (typeJobCase_ == 6) { - if (hiveJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = hiveJobBuilder_.build(); - } - } - if (typeJobCase_ == 7) { - if (pigJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = pigJobBuilder_.build(); - } - } - if (typeJobCase_ == 21) { - if (sparkRJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkRJobBuilder_.build(); - } - } - if (typeJobCase_ == 12) { - if (sparkSqlJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkSqlJobBuilder_.build(); - } - } - if (typeJobCase_ == 23) { - if (prestoJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = prestoJobBuilder_.build(); - } - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - if (yarnApplicationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.yarnApplications_ = yarnApplications_; - } else { - result.yarnApplications_ = yarnApplicationsBuilder_.build(); - } - result.submittedBy_ = submittedBy_; - result.driverOutputResourceUri_ = driverOutputResourceUri_; - result.driverControlFilesUri_ = driverControlFilesUri_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - result.jobUuid_ = jobUuid_; - result.done_ = done_; - result.typeJobCase_ = typeJobCase_; - 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.dataproc.v1beta2.Job) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.Job) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) { - if (other == com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance()) return this; - if (other.hasReference()) { - mergeReference(other.getReference()); - } - if (other.hasPlacement()) { - mergePlacement(other.getPlacement()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (yarnApplicationsBuilder_ == null) { - if (!other.yarnApplications_.isEmpty()) { - if (yarnApplications_.isEmpty()) { - yarnApplications_ = other.yarnApplications_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureYarnApplicationsIsMutable(); - yarnApplications_.addAll(other.yarnApplications_); - } - onChanged(); - } - } else { - if (!other.yarnApplications_.isEmpty()) { - if (yarnApplicationsBuilder_.isEmpty()) { - yarnApplicationsBuilder_.dispose(); - yarnApplicationsBuilder_ = null; - yarnApplications_ = other.yarnApplications_; - bitField0_ = (bitField0_ & ~0x00000002); - yarnApplicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getYarnApplicationsFieldBuilder() - : null; - } else { - yarnApplicationsBuilder_.addAllMessages(other.yarnApplications_); - } - } - } - if (!other.getSubmittedBy().isEmpty()) { - submittedBy_ = other.submittedBy_; - onChanged(); - } - if (!other.getDriverOutputResourceUri().isEmpty()) { - driverOutputResourceUri_ = other.driverOutputResourceUri_; - onChanged(); - } - if (!other.getDriverControlFilesUri().isEmpty()) { - driverControlFilesUri_ = other.driverControlFilesUri_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasScheduling()) { - mergeScheduling(other.getScheduling()); - } - if (!other.getJobUuid().isEmpty()) { - jobUuid_ = other.jobUuid_; - onChanged(); - } - if (other.getDone() != false) { - setDone(other.getDone()); - } - switch (other.getTypeJobCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case TYPEJOB_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.dataproc.v1beta2.Job parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.Job) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int typeJobCase_ = 0; - private java.lang.Object typeJob_; - - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); - } - - public Builder clearTypeJob() { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.cloud.dataproc.v1beta2.JobReference reference_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobReference, - com.google.cloud.dataproc.v1beta2.JobReference.Builder, - com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder> - referenceBuilder_; - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - public boolean hasReference() { - return referenceBuilder_ != null || reference_ != null; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - public com.google.cloud.dataproc.v1beta2.JobReference getReference() { - if (referenceBuilder_ == null) { - return reference_ == null - ? com.google.cloud.dataproc.v1beta2.JobReference.getDefaultInstance() - : reference_; - } else { - return referenceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReference(com.google.cloud.dataproc.v1beta2.JobReference value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - referenceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReference( - com.google.cloud.dataproc.v1beta2.JobReference.Builder builderForValue) { - if (referenceBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - referenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReference(com.google.cloud.dataproc.v1beta2.JobReference value) { - if (referenceBuilder_ == null) { - if (reference_ != null) { - reference_ = - com.google.cloud.dataproc.v1beta2.JobReference.newBuilder(reference_) - .mergeFrom(value) - .buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - referenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReference() { - if (referenceBuilder_ == null) { - reference_ = null; - onChanged(); - } else { - reference_ = null; - referenceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobReference.Builder getReferenceBuilder() { - - onChanged(); - return getReferenceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder getReferenceOrBuilder() { - if (referenceBuilder_ != null) { - return referenceBuilder_.getMessageOrBuilder(); - } else { - return reference_ == null - ? com.google.cloud.dataproc.v1beta2.JobReference.getDefaultInstance() - : reference_; - } - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobReference, - com.google.cloud.dataproc.v1beta2.JobReference.Builder, - com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder> - getReferenceFieldBuilder() { - if (referenceBuilder_ == null) { - referenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobReference, - com.google.cloud.dataproc.v1beta2.JobReference.Builder, - com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder>( - getReference(), getParentForChildren(), isClean()); - reference_ = null; - } - return referenceBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.JobPlacement placement_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobPlacement, - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder, - com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder> - placementBuilder_; - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - public boolean hasPlacement() { - return placementBuilder_ != null || placement_ != null; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - public com.google.cloud.dataproc.v1beta2.JobPlacement getPlacement() { - if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.JobPlacement.getDefaultInstance() - : placement_; - } else { - return placementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement(com.google.cloud.dataproc.v1beta2.JobPlacement value) { - if (placementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - placementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement( - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder builderForValue) { - if (placementBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - placementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePlacement(com.google.cloud.dataproc.v1beta2.JobPlacement value) { - if (placementBuilder_ == null) { - if (placement_ != null) { - placement_ = - com.google.cloud.dataproc.v1beta2.JobPlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - placementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPlacement() { - if (placementBuilder_ == null) { - placement_ = null; - onChanged(); - } else { - placement_ = null; - placementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobPlacement.Builder getPlacementBuilder() { - - onChanged(); - return getPlacementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder getPlacementOrBuilder() { - if (placementBuilder_ != null) { - return placementBuilder_.getMessageOrBuilder(); - } else { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.JobPlacement.getDefaultInstance() - : placement_; - } - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobPlacement, - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder, - com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder> - getPlacementFieldBuilder() { - if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobPlacement, - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder, - com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); - placement_ = null; - } - return placementBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder> - hadoopJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return typeJobCase_ == 3; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 3) { - return hadoopJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - hadoopJobBuilder_.setMessage(value); - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob( - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder builderForValue) { - if (hadoopJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - hadoopJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3 - && typeJob_ != com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 3) { - hadoopJobBuilder_.mergeFrom(value); - } - hadoopJobBuilder_.setMessage(value); - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 3) { - typeJobCase_ = 0; - typeJob_ = null; - } - hadoopJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.HadoopJob.Builder getHadoopJobBuilder() { - return getHadoopJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if ((typeJobCase_ == 3) && (hadoopJobBuilder_ != null)) { - return hadoopJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder> - getHadoopJobFieldBuilder() { - if (hadoopJobBuilder_ == null) { - if (!(typeJobCase_ == 3)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.HadoopJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 3; - onChanged(); - ; - return hadoopJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder> - sparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return typeJobCase_ == 4; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 4) { - return sparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob.Builder builderForValue) { - if (sparkJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4 - && typeJob_ != com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 4) { - sparkJobBuilder_.mergeFrom(value); - } - sparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkJob() { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 4) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkJob.Builder getSparkJobBuilder() { - return getSparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { - if ((typeJobCase_ == 4) && (sparkJobBuilder_ != null)) { - return sparkJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder> - getSparkJobFieldBuilder() { - if (sparkJobBuilder_ == null) { - if (!(typeJobCase_ == 4)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 4; - onChanged(); - ; - return sparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder> - pysparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return typeJobCase_ == 5; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 5) { - return pysparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - pysparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob( - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder builderForValue) { - if (pysparkJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - pysparkJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5 - && typeJob_ != com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 5) { - pysparkJobBuilder_.mergeFrom(value); - } - pysparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 5) { - typeJobCase_ = 0; - typeJob_ = null; - } - pysparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PySparkJob.Builder getPysparkJobBuilder() { - return getPysparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if ((typeJobCase_ == 5) && (pysparkJobBuilder_ != null)) { - return pysparkJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder> - getPysparkJobFieldBuilder() { - if (pysparkJobBuilder_ == null) { - if (!(typeJobCase_ == 5)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PySparkJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 5; - onChanged(); - ; - return pysparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder> - hiveJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return typeJobCase_ == 6; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 6) { - return hiveJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - hiveJobBuilder_.setMessage(value); - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob.Builder builderForValue) { - if (hiveJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - hiveJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6 - && typeJob_ != com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 6) { - hiveJobBuilder_.mergeFrom(value); - } - hiveJobBuilder_.setMessage(value); - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHiveJob() { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 6) { - typeJobCase_ = 0; - typeJob_ = null; - } - hiveJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.HiveJob.Builder getHiveJobBuilder() { - return getHiveJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { - if ((typeJobCase_ == 6) && (hiveJobBuilder_ != null)) { - return hiveJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder> - getHiveJobFieldBuilder() { - if (hiveJobBuilder_ == null) { - if (!(typeJobCase_ == 6)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.HiveJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 6; - onChanged(); - ; - return hiveJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder> - pigJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return typeJobCase_ == 7; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 7) { - return pigJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { - if (pigJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - pigJobBuilder_.setMessage(value); - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob.Builder builderForValue) { - if (pigJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - pigJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7 - && typeJob_ != com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.PigJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 7) { - pigJobBuilder_.mergeFrom(value); - } - pigJobBuilder_.setMessage(value); - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPigJob() { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 7) { - typeJobCase_ = 0; - typeJob_ = null; - } - pigJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PigJob.Builder getPigJobBuilder() { - return getPigJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { - if ((typeJobCase_ == 7) && (pigJobBuilder_ != null)) { - return pigJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder> - getPigJobFieldBuilder() { - if (pigJobBuilder_ == null) { - if (!(typeJobCase_ == 7)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PigJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 7; - onChanged(); - ; - return pigJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder> - sparkRJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return typeJobCase_ == 21; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 21) { - return sparkRJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkRJobBuilder_.setMessage(value); - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob( - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder builderForValue) { - if (sparkRJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkRJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21 - && typeJob_ != com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 21) { - sparkRJobBuilder_.mergeFrom(value); - } - sparkRJobBuilder_.setMessage(value); - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 21) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkRJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkRJob.Builder getSparkRJobBuilder() { - return getSparkRJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if ((typeJobCase_ == 21) && (sparkRJobBuilder_ != null)) { - return sparkRJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder> - getSparkRJobFieldBuilder() { - if (sparkRJobBuilder_ == null) { - if (!(typeJobCase_ == 21)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 21; - onChanged(); - ; - return sparkRJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return typeJobCase_ == 12; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 12) { - return sparkSqlJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder builderForValue) { - if (sparkSqlJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12 - && typeJob_ != com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 12) { - sparkSqlJobBuilder_.mergeFrom(value); - } - sparkSqlJobBuilder_.setMessage(value); - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 12) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkSqlJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder getSparkSqlJobBuilder() { - return getSparkSqlJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if ((typeJobCase_ == 12) && (sparkSqlJobBuilder_ != null)) { - return sparkSqlJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder> - getSparkSqlJobFieldBuilder() { - if (sparkSqlJobBuilder_ == null) { - if (!(typeJobCase_ == 12)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkSqlJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 12; - onChanged(); - ; - return sparkSqlJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder> - prestoJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return typeJobCase_ == 23; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 23) { - return prestoJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - prestoJobBuilder_.setMessage(value); - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob( - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder builderForValue) { - if (prestoJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - prestoJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23 - && typeJob_ != com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1beta2.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 23) { - prestoJobBuilder_.mergeFrom(value); - } - prestoJobBuilder_.setMessage(value); - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPrestoJob() { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 23) { - typeJobCase_ = 0; - typeJob_ = null; - } - prestoJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PrestoJob.Builder getPrestoJobBuilder() { - return getPrestoJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if ((typeJobCase_ == 23) && (prestoJobBuilder_ != null)) { - return prestoJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder> - getPrestoJobFieldBuilder() { - if (prestoJobBuilder_ == null) { - if (!(typeJobCase_ == 23)) { - typeJob_ = com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PrestoJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 23; - onChanged(); - ; - return prestoJobBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.JobStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1beta2.JobStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.JobStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1beta2.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList(statusHistory_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1beta2.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1beta2.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus.Builder getStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus.Builder addStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.util.List yarnApplications_ = - java.util.Collections.emptyList(); - - private void ensureYarnApplicationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = - new java.util.ArrayList( - yarnApplications_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.YarnApplication, - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder, - com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder> - yarnApplicationsBuilder_; - - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getYarnApplicationsList() { - if (yarnApplicationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(yarnApplications_); - } else { - return yarnApplicationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getYarnApplicationsCount() { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.size(); - } else { - return yarnApplicationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.YarnApplication getYarnApplications(int index) { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); - } else { - return yarnApplicationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setYarnApplications( - int index, com.google.cloud.dataproc.v1beta2.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.set(index, value); - onChanged(); - } else { - yarnApplicationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setYarnApplications( - int index, com.google.cloud.dataproc.v1beta2.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.set(index, builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications(com.google.cloud.dataproc.v1beta2.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(value); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - int index, com.google.cloud.dataproc.v1beta2.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(index, value); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - int index, com.google.cloud.dataproc.v1beta2.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(index, builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllYarnApplications( - java.lang.Iterable values) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, yarnApplications_); - onChanged(); - } else { - yarnApplicationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearYarnApplications() { - if (yarnApplicationsBuilder_ == null) { - yarnApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - yarnApplicationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeYarnApplications(int index) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.remove(index); - onChanged(); - } else { - yarnApplicationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.YarnApplication.Builder getYarnApplicationsBuilder( - int index) { - return getYarnApplicationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index) { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); - } else { - return yarnApplicationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getYarnApplicationsOrBuilderList() { - if (yarnApplicationsBuilder_ != null) { - return yarnApplicationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(yarnApplications_); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.YarnApplication.Builder addYarnApplicationsBuilder() { - return getYarnApplicationsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.YarnApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.YarnApplication.Builder addYarnApplicationsBuilder( - int index) { - return getYarnApplicationsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.YarnApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getYarnApplicationsBuilderList() { - return getYarnApplicationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.YarnApplication, - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder, - com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder> - getYarnApplicationsFieldBuilder() { - if (yarnApplicationsBuilder_ == null) { - yarnApplicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.YarnApplication, - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder, - com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder>( - yarnApplications_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - yarnApplications_ = null; - } - return yarnApplicationsBuilder_; - } - - private java.lang.Object submittedBy_ = ""; - /** - * - * - *
-     * Output only. The email address of the user submitting the job. For jobs
-     * submitted on the cluster, the address is <code>username@hostname</code>.
-     * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The submittedBy. - */ - public java.lang.String getSubmittedBy() { - java.lang.Object ref = submittedBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - submittedBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The email address of the user submitting the job. For jobs
-     * submitted on the cluster, the address is <code>username@hostname</code>.
-     * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for submittedBy. - */ - public com.google.protobuf.ByteString getSubmittedByBytes() { - java.lang.Object ref = submittedBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - submittedBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The email address of the user submitting the job. For jobs
-     * submitted on the cluster, the address is <code>username@hostname</code>.
-     * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The submittedBy to set. - * @return This builder for chaining. - */ - public Builder setSubmittedBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - submittedBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The email address of the user submitting the job. For jobs
-     * submitted on the cluster, the address is <code>username@hostname</code>.
-     * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSubmittedBy() { - - submittedBy_ = getDefaultInstance().getSubmittedBy(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The email address of the user submitting the job. For jobs
-     * submitted on the cluster, the address is <code>username@hostname</code>.
-     * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for submittedBy to set. - * @return This builder for chaining. - */ - public Builder setSubmittedByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - submittedBy_ = value; - onChanged(); - return this; - } - - private java.lang.Object driverOutputResourceUri_ = ""; - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - public java.lang.String getDriverOutputResourceUri() { - java.lang.Object ref = driverOutputResourceUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverOutputResourceUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverOutputResourceUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The driverOutputResourceUri to set. - * @return This builder for chaining. - */ - public Builder setDriverOutputResourceUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driverOutputResourceUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDriverOutputResourceUri() { - - driverOutputResourceUri_ = getDefaultInstance().getDriverOutputResourceUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for driverOutputResourceUri to set. - * @return This builder for chaining. - */ - public Builder setDriverOutputResourceUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driverOutputResourceUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object driverControlFilesUri_ = ""; - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverControlFilesUri. - */ - public java.lang.String getDriverControlFilesUri() { - java.lang.Object ref = driverControlFilesUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverControlFilesUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverControlFilesUri. - */ - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverControlFilesUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The driverControlFilesUri to set. - * @return This builder for chaining. - */ - public Builder setDriverControlFilesUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driverControlFilesUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDriverControlFilesUri() { - - driverControlFilesUri_ = getDefaultInstance().getDriverControlFilesUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for driverControlFilesUri to set. - * @return This builder for chaining. - */ - public Builder setDriverControlFilesUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driverControlFilesUri_ = 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.JobScheduling scheduling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder> - schedulingBuilder_; - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - public com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling() { - if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } else { - return schedulingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling(com.google.cloud.dataproc.v1beta2.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduling_ = value; - onChanged(); - } else { - schedulingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling( - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder builderForValue) { - if (schedulingBuilder_ == null) { - scheduling_ = builderForValue.build(); - onChanged(); - } else { - schedulingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeScheduling(com.google.cloud.dataproc.v1beta2.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.dataproc.v1beta2.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduling_ = value; - } - onChanged(); - } else { - schedulingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobScheduling.Builder getSchedulingBuilder() { - - onChanged(); - return getSchedulingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder() { - if (schedulingBuilder_ != null) { - return schedulingBuilder_.getMessageOrBuilder(); - } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder> - getSchedulingFieldBuilder() { - if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); - scheduling_ = null; - } - return schedulingBuilder_; - } - - private java.lang.Object jobUuid_ = ""; - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - public java.lang.String getJobUuid() { - java.lang.Object ref = jobUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - public com.google.protobuf.ByteString getJobUuidBytes() { - java.lang.Object ref = jobUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobUuid to set. - * @return This builder for chaining. - */ - public Builder setJobUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobUuid() { - - jobUuid_ = getDefaultInstance().getJobUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobUuid to set. - * @return This builder for chaining. - */ - public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobUuid_ = value; - onChanged(); - return this; - } - - private boolean done_; - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The done to set. - * @return This builder for chaining. - */ - public Builder setDone(boolean value) { - - done_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDone() { - - done_ = false; - 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.dataproc.v1beta2.Job) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.Job) - private static final com.google.cloud.dataproc.v1beta2.Job DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.Job(); - } - - public static com.google.cloud.dataproc.v1beta2.Job getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Job(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.dataproc.v1beta2.Job getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadata.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadata.java deleted file mode 100644 index 243e68f2..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadata.java +++ /dev/null @@ -1,1394 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Job Operation metadata.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobMetadata} - */ -public final class JobMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.JobMetadata) - JobMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobMetadata.newBuilder() to construct. - private JobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobMetadata() { - jobId_ = ""; - operationType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobMetadata( - 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(); - - jobId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.JobStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationType_ = s; - break; - } - case 34: - { - 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; - } - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobMetadata.class, - com.google.cloud.dataproc.v1beta2.JobMetadata.Builder.class); - } - - public static final int JOB_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.JobStatus status_; - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object operationType_; - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - @java.lang.Override - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); - } - if (status_ != null) { - output.writeMessage(2, getStatus()); - } - if (!getOperationTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationType_); - } - if (startTime_ != null) { - output.writeMessage(4, getStartTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); - } - if (!getOperationTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationType_); - } - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); - } - 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.dataproc.v1beta2.JobMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.JobMetadata other = - (com.google.cloud.dataproc.v1beta2.JobMetadata) obj; - - if (!getJobId().equals(other.getJobId())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getOperationType().equals(other.getOperationType())) return false; - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) 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) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getOperationType().hashCode(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata 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.dataproc.v1beta2.JobMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata 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.dataproc.v1beta2.JobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata 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.dataproc.v1beta2.JobMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Job Operation metadata.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.JobMetadata) - com.google.cloud.dataproc.v1beta2.JobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobMetadata.class, - com.google.cloud.dataproc.v1beta2.JobMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.JobMetadata.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(); - jobId_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - operationType_ = ""; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.JobMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobMetadata build() { - com.google.cloud.dataproc.v1beta2.JobMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobMetadata buildPartial() { - com.google.cloud.dataproc.v1beta2.JobMetadata result = - new com.google.cloud.dataproc.v1beta2.JobMetadata(this); - result.jobId_ = jobId_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - result.operationType_ = operationType_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.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.dataproc.v1beta2.JobMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.JobMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.JobMetadata other) { - if (other == com.google.cloud.dataproc.v1beta2.JobMetadata.getDefaultInstance()) return this; - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (!other.getOperationType().isEmpty()) { - operationType_ = other.operationType_; - onChanged(); - } - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - 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.dataproc.v1beta2.JobMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.JobMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.JobStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1beta2.JobStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1beta2.JobStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1beta2.JobStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1beta2.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobStatus, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder, - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.lang.Object operationType_ = ""; - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = getDefaultInstance().getOperationType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationType_ = value; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - 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_; - } - - @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.dataproc.v1beta2.JobMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobMetadata) - private static final com.google.cloud.dataproc.v1beta2.JobMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.JobMetadata(); - } - - public static com.google.cloud.dataproc.v1beta2.JobMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobMetadata(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.dataproc.v1beta2.JobMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadataOrBuilder.java deleted file mode 100644 index f5183d06..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadataOrBuilder.java +++ /dev/null @@ -1,154 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.JobMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1beta2.JobStatus getStatus(); - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - java.lang.String getOperationType(); - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - com.google.protobuf.ByteString getOperationTypeBytes(); - - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java deleted file mode 100644 index 302177cc..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java +++ /dev/null @@ -1,886 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.Job) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - boolean hasReference(); - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - com.google.cloud.dataproc.v1beta2.JobReference getReference(); - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder getReferenceOrBuilder(); - - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - boolean hasPlacement(); - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - com.google.cloud.dataproc.v1beta2.JobPlacement getPlacement(); - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder getPlacementOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - boolean hasHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - boolean hasSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - boolean hasPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - boolean hasHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - boolean hasPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - com.google.cloud.dataproc.v1beta2.PigJob getPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - boolean hasSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - boolean hasSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - boolean hasPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder(); - - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1beta2.JobStatus getStatus(); - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.JobStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusHistoryOrBuilder(int index); - - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getYarnApplicationsList(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.YarnApplication getYarnApplications(int index); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getYarnApplicationsCount(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getYarnApplicationsOrBuilderList(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index); - - /** - * - * - *
-   * Output only. The email address of the user submitting the job. For jobs
-   * submitted on the cluster, the address is <code>username@hostname</code>.
-   * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The submittedBy. - */ - java.lang.String getSubmittedBy(); - /** - * - * - *
-   * Output only. The email address of the user submitting the job. For jobs
-   * submitted on the cluster, the address is <code>username@hostname</code>.
-   * 
- * - * string submitted_by = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for submittedBy. - */ - com.google.protobuf.ByteString getSubmittedByBytes(); - - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - java.lang.String getDriverOutputResourceUri(); - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - com.google.protobuf.ByteString getDriverOutputResourceUriBytes(); - - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The driverControlFilesUri. - */ - java.lang.String getDriverControlFilesUri(); - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for driverControlFilesUri. - */ - com.google.protobuf.ByteString getDriverControlFilesUriBytes(); - - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - boolean hasScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder(); - - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - java.lang.String getJobUuid(); - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - com.google.protobuf.ByteString getJobUuidBytes(); - - /** - * - * - *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
-   * `status.state` field will indicate if it was successful, failed,
-   * or cancelled.
-   * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - boolean getDone(); - - public com.google.cloud.dataproc.v1beta2.Job.TypeJobCase getTypeJobCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacement.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacement.java deleted file mode 100644 index 41bfae5f..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacement.java +++ /dev/null @@ -1,820 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Dataproc job config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobPlacement} - */ -public final class JobPlacement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.JobPlacement) - JobPlacementOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobPlacement.newBuilder() to construct. - private JobPlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobPlacement() { - clusterName_ = ""; - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobPlacement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobPlacement( - 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(); - - clusterName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobPlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobPlacement.class, - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); - } - if (!getClusterUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); - } - if (!getClusterUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); - } - 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.dataproc.v1beta2.JobPlacement)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.JobPlacement other = - (com.google.cloud.dataproc.v1beta2.JobPlacement) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) 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) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement 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.dataproc.v1beta2.JobPlacement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement 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.dataproc.v1beta2.JobPlacement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement 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.dataproc.v1beta2.JobPlacement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc job config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobPlacement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.JobPlacement) - com.google.cloud.dataproc.v1beta2.JobPlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobPlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobPlacement.class, - com.google.cloud.dataproc.v1beta2.JobPlacement.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.JobPlacement.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(); - clusterName_ = ""; - - clusterUuid_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobPlacement getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.JobPlacement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobPlacement build() { - com.google.cloud.dataproc.v1beta2.JobPlacement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobPlacement buildPartial() { - com.google.cloud.dataproc.v1beta2.JobPlacement result = - new com.google.cloud.dataproc.v1beta2.JobPlacement(this); - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - 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.dataproc.v1beta2.JobPlacement) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.JobPlacement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.JobPlacement other) { - if (other == com.google.cloud.dataproc.v1beta2.JobPlacement.getDefaultInstance()) return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - 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.dataproc.v1beta2.JobPlacement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.JobPlacement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = 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.dataproc.v1beta2.JobPlacement) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobPlacement) - private static final com.google.cloud.dataproc.v1beta2.JobPlacement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.JobPlacement(); - } - - public static com.google.cloud.dataproc.v1beta2.JobPlacement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobPlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobPlacement(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.dataproc.v1beta2.JobPlacement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacementOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacementOrBuilder.java deleted file mode 100644 index 5c49ecaa..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacementOrBuilder.java +++ /dev/null @@ -1,77 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobPlacementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.JobPlacement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java deleted file mode 100644 index 7aeb0ea3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java +++ /dev/null @@ -1,841 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Encapsulates the full scoping used to reference a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobReference} - */ -public final class JobReference extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.JobReference) - JobReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobReference.newBuilder() to construct. - private JobReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobReference() { - projectId_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobReference(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobReference( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobReference.class, - com.google.cloud.dataproc.v1beta2.JobReference.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - 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.dataproc.v1beta2.JobReference)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.JobReference other = - (com.google.cloud.dataproc.v1beta2.JobReference) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getJobId().equals(other.getJobId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference 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.dataproc.v1beta2.JobReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference 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.dataproc.v1beta2.JobReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference 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.dataproc.v1beta2.JobReference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Encapsulates the full scoping used to reference a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobReference} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.JobReference) - com.google.cloud.dataproc.v1beta2.JobReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobReference.class, - com.google.cloud.dataproc.v1beta2.JobReference.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.JobReference.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(); - projectId_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobReference getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.JobReference.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobReference build() { - com.google.cloud.dataproc.v1beta2.JobReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobReference buildPartial() { - com.google.cloud.dataproc.v1beta2.JobReference result = - new com.google.cloud.dataproc.v1beta2.JobReference(this); - result.projectId_ = projectId_; - result.jobId_ = jobId_; - 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.dataproc.v1beta2.JobReference) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.JobReference) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.JobReference other) { - if (other == com.google.cloud.dataproc.v1beta2.JobReference.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - 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.dataproc.v1beta2.JobReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.JobReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1beta2.JobReference) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobReference) - private static final com.google.cloud.dataproc.v1beta2.JobReference DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.JobReference(); - } - - public static com.google.cloud.dataproc.v1beta2.JobReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobReference(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.dataproc.v1beta2.JobReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java deleted file mode 100644 index 2bc8b9f8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobReferenceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.JobReference) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobScheduling.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobScheduling.java deleted file mode 100644 index 77c1a9ea..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobScheduling.java +++ /dev/null @@ -1,565 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Job scheduling options.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobScheduling} - */ -public final class JobScheduling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.JobScheduling) - JobSchedulingOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobScheduling.newBuilder() to construct. - private JobScheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobScheduling() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobScheduling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobScheduling( - 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 8: - { - maxFailuresPerHour_ = input.readInt32(); - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobScheduling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobScheduling.class, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder.class); - } - - public static final int MAX_FAILURES_PER_HOUR_FIELD_NUMBER = 1; - private int maxFailuresPerHour_; - /** - * - * - *
-   * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver terminating with non-zero code before job is
-   * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
-   * Maximum value is 10.
-   * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - @java.lang.Override - public int getMaxFailuresPerHour() { - return maxFailuresPerHour_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxFailuresPerHour_ != 0) { - output.writeInt32(1, maxFailuresPerHour_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxFailuresPerHour_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxFailuresPerHour_); - } - 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.dataproc.v1beta2.JobScheduling)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.JobScheduling other = - (com.google.cloud.dataproc.v1beta2.JobScheduling) obj; - - if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) 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) + MAX_FAILURES_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getMaxFailuresPerHour(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling 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.dataproc.v1beta2.JobScheduling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling 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.dataproc.v1beta2.JobScheduling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling 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.dataproc.v1beta2.JobScheduling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Job scheduling options.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobScheduling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.JobScheduling) - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobScheduling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobScheduling.class, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.JobScheduling.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(); - maxFailuresPerHour_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobScheduling getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobScheduling build() { - com.google.cloud.dataproc.v1beta2.JobScheduling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobScheduling buildPartial() { - com.google.cloud.dataproc.v1beta2.JobScheduling result = - new com.google.cloud.dataproc.v1beta2.JobScheduling(this); - result.maxFailuresPerHour_ = maxFailuresPerHour_; - 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.dataproc.v1beta2.JobScheduling) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.JobScheduling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.JobScheduling other) { - if (other == com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance()) - return this; - if (other.getMaxFailuresPerHour() != 0) { - setMaxFailuresPerHour(other.getMaxFailuresPerHour()); - } - 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.dataproc.v1beta2.JobScheduling parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.JobScheduling) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int maxFailuresPerHour_; - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - @java.lang.Override - public int getMaxFailuresPerHour() { - return maxFailuresPerHour_; - } - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The maxFailuresPerHour to set. - * @return This builder for chaining. - */ - public Builder setMaxFailuresPerHour(int value) { - - maxFailuresPerHour_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver terminating with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMaxFailuresPerHour() { - - maxFailuresPerHour_ = 0; - 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.dataproc.v1beta2.JobScheduling) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobScheduling) - private static final com.google.cloud.dataproc.v1beta2.JobScheduling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.JobScheduling(); - } - - public static com.google.cloud.dataproc.v1beta2.JobScheduling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobScheduling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobScheduling(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.dataproc.v1beta2.JobScheduling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobSchedulingOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobSchedulingOrBuilder.java deleted file mode 100644 index 2ee8fbcf..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobSchedulingOrBuilder.java +++ /dev/null @@ -1,43 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobSchedulingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.JobScheduling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver terminating with non-zero code before job is
-   * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
-   * Maximum value is 10.
-   * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - int getMaxFailuresPerHour(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatus.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatus.java deleted file mode 100644 index 8bdc763c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatus.java +++ /dev/null @@ -1,1794 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Dataproc job status.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobStatus} - */ -public final class JobStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.JobStatus) - JobStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobStatus.newBuilder() to construct. - private JobStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobStatus() { - state_ = 0; - details_ = ""; - substate_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - substate_ = rawValue; - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobStatus.class, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder.class); - } - - /** - * - * - *
-   * The job state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.JobStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The job state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The job is pending; it has been submitted, but is not yet running.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * Job has been received by the service and completed initial setup;
-     * it will soon be submitted to the cluster.
-     * 
- * - * SETUP_DONE = 8; - */ - SETUP_DONE(8), - /** - * - * - *
-     * The job is running on the cluster.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * A CancelJob request has been received, but is pending.
-     * 
- * - * CANCEL_PENDING = 3; - */ - CANCEL_PENDING(3), - /** - * - * - *
-     * Transient in-flight resources have been canceled, and the request to
-     * cancel the running job has been issued to the cluster.
-     * 
- * - * CANCEL_STARTED = 7; - */ - CANCEL_STARTED(7), - /** - * - * - *
-     * The job cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - CANCELLED(4), - /** - * - * - *
-     * The job has completed successfully.
-     * 
- * - * DONE = 5; - */ - DONE(5), - /** - * - * - *
-     * The job has completed, but encountered an error.
-     * 
- * - * ERROR = 6; - */ - ERROR(6), - /** - * - * - *
-     * Job attempt has failed. The detail field contains failure details for
-     * this attempt.
-     * Applies to restartable jobs only.
-     * 
- * - * ATTEMPT_FAILURE = 9; - */ - ATTEMPT_FAILURE(9), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The job state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The job is pending; it has been submitted, but is not yet running.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * Job has been received by the service and completed initial setup;
-     * it will soon be submitted to the cluster.
-     * 
- * - * SETUP_DONE = 8; - */ - public static final int SETUP_DONE_VALUE = 8; - /** - * - * - *
-     * The job is running on the cluster.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * A CancelJob request has been received, but is pending.
-     * 
- * - * CANCEL_PENDING = 3; - */ - public static final int CANCEL_PENDING_VALUE = 3; - /** - * - * - *
-     * Transient in-flight resources have been canceled, and the request to
-     * cancel the running job has been issued to the cluster.
-     * 
- * - * CANCEL_STARTED = 7; - */ - public static final int CANCEL_STARTED_VALUE = 7; - /** - * - * - *
-     * The job cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - public static final int CANCELLED_VALUE = 4; - /** - * - * - *
-     * The job has completed successfully.
-     * 
- * - * DONE = 5; - */ - public static final int DONE_VALUE = 5; - /** - * - * - *
-     * The job has completed, but encountered an error.
-     * 
- * - * ERROR = 6; - */ - public static final int ERROR_VALUE = 6; - /** - * - * - *
-     * Job attempt has failed. The detail field contains failure details for
-     * this attempt.
-     * Applies to restartable jobs only.
-     * 
- * - * ATTEMPT_FAILURE = 9; - */ - public static final int ATTEMPT_FAILURE_VALUE = 9; - - 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 PENDING; - case 8: - return SETUP_DONE; - case 2: - return RUNNING; - case 3: - return CANCEL_PENDING; - case 7: - return CANCEL_STARTED; - case 4: - return CANCELLED; - case 5: - return DONE; - case 6: - return ERROR; - case 9: - return ATTEMPT_FAILURE; - 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.dataproc.v1beta2.JobStatus.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.dataproc.v1beta2.JobStatus.State) - } - - /** - * - * - *
-   * The job substate.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.JobStatus.Substate} - */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The job substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * The Job is submitted to the agent.
-     * Applies to RUNNING state.
-     * 
- * - * SUBMITTED = 1; - */ - SUBMITTED(1), - /** - * - * - *
-     * The Job has been received and is awaiting execution (it may be waiting
-     * for a condition to be met). See the "details" field for the reason for
-     * the delay.
-     * Applies to RUNNING state.
-     * 
- * - * QUEUED = 2; - */ - QUEUED(2), - /** - * - * - *
-     * The agent-reported status is out of date, which may be caused by a
-     * loss of communication between the agent and Dataproc. If the
-     * agent does not send a timely update, the job will fail.
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 3; - */ - STALE_STATUS(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The job substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The Job is submitted to the agent.
-     * Applies to RUNNING state.
-     * 
- * - * SUBMITTED = 1; - */ - public static final int SUBMITTED_VALUE = 1; - /** - * - * - *
-     * The Job has been received and is awaiting execution (it may be waiting
-     * for a condition to be met). See the "details" field for the reason for
-     * the delay.
-     * Applies to RUNNING state.
-     * 
- * - * QUEUED = 2; - */ - public static final int QUEUED_VALUE = 2; - /** - * - * - *
-     * The agent-reported status is out of date, which may be caused by a
-     * loss of communication between the agent and Dataproc. If the
-     * agent does not send a timely update, the job will fail.
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 3; - */ - public static final int STALE_STATUS_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 Substate 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 Substate forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return SUBMITTED; - case 2: - return QUEUED; - case 3: - return STALE_STATUS; - 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 Substate findValueByNumber(int number) { - return Substate.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.dataproc.v1beta2.JobStatus.getDescriptor().getEnumTypes().get(1); - } - - private static final Substate[] VALUES = values(); - - public static Substate 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 Substate(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.JobStatus.Substate) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.JobStatus.State result = - com.google.cloud.dataproc.v1beta2.JobStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1beta2.JobStatus.State.UNRECOGNIZED : result; - } - - public static final int DETAILS_FIELD_NUMBER = 2; - private volatile java.lang.Object details_; - /** - * - * - *
-   * Output only. Optional Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - @java.lang.Override - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Optional Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - public static final int SUBSTATE_FIELD_NUMBER = 7; - private int substate_; - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.JobStatus.Substate result = - com.google.cloud.dataproc.v1beta2.JobStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.Substate.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1beta2.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, state_); - } - if (!getDetailsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); - } - if (stateStartTime_ != null) { - output.writeMessage(6, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1beta2.JobStatus.Substate.UNSPECIFIED.getNumber()) { - output.writeEnum(7, substate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1beta2.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!getDetailsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1beta2.JobStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, substate_); - } - 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.dataproc.v1beta2.JobStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.JobStatus other = - (com.google.cloud.dataproc.v1beta2.JobStatus) obj; - - if (state_ != other.state_) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (substate_ != other.substate_) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetails().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; - hash = (53 * hash) + substate_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus 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.dataproc.v1beta2.JobStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus 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.dataproc.v1beta2.JobStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus 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.dataproc.v1beta2.JobStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc job status.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.JobStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.JobStatus) - com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.JobStatus.class, - com.google.cloud.dataproc.v1beta2.JobStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.JobStatus.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(); - state_ = 0; - - details_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - substate_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus build() { - com.google.cloud.dataproc.v1beta2.JobStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus buildPartial() { - com.google.cloud.dataproc.v1beta2.JobStatus result = - new com.google.cloud.dataproc.v1beta2.JobStatus(this); - result.state_ = state_; - result.details_ = details_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.build(); - } - result.substate_ = substate_; - 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.dataproc.v1beta2.JobStatus) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.JobStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.JobStatus other) { - if (other == com.google.cloud.dataproc.v1beta2.JobStatus.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getDetails().isEmpty()) { - details_ = other.details_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - if (other.substate_ != 0) { - setSubstateValue(other.getSubstateValue()); - } - 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.dataproc.v1beta2.JobStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.JobStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.JobStatus.State result = - com.google.cloud.dataproc.v1beta2.JobStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.JobStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object details_ = ""; - /** - * - * - *
-     * Output only. Optional Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Optional Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Optional Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The details to set. - * @return This builder for chaining. - */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - details_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Optional Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDetails() { - - details_ = getDefaultInstance().getDetails(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Optional Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for details to set. - * @return This builder for chaining. - */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - details_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - private int substate_ = 0; - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for substate to set. - * @return This builder for chaining. - */ - public Builder setSubstateValue(int value) { - - substate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.JobStatus.Substate result = - com.google.cloud.dataproc.v1beta2.JobStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1beta2.JobStatus.Substate.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The substate to set. - * @return This builder for chaining. - */ - public Builder setSubstate(com.google.cloud.dataproc.v1beta2.JobStatus.Substate value) { - if (value == null) { - throw new NullPointerException(); - } - - substate_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSubstate() { - - substate_ = 0; - 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.dataproc.v1beta2.JobStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.JobStatus) - private static final com.google.cloud.dataproc.v1beta2.JobStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.JobStatus(); - } - - public static com.google.cloud.dataproc.v1beta2.JobStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobStatus(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.dataproc.v1beta2.JobStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatusOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatusOrBuilder.java deleted file mode 100644 index 34fef0e5..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatusOrBuilder.java +++ /dev/null @@ -1,153 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface JobStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.JobStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.JobStatus.State getState(); - - /** - * - * - *
-   * Output only. Optional Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - java.lang.String getDetails(); - /** - * - * - *
-   * Output only. Optional Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - com.google.protobuf.ByteString getDetailsBytes(); - - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - int getSubstateValue(); - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - com.google.cloud.dataproc.v1beta2.JobStatus.Substate getSubstate(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java deleted file mode 100644 index 08562a06..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java +++ /dev/null @@ -1,825 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class JobsProto { - private JobsProto() {} - - 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_dataproc_v1beta2_LoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_QueryList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_HiveJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PigJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_JobPlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_JobReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_YarnApplication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_Job_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_Job_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_JobScheduling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_JobMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_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/dataproc/v1beta2/jobs.pro" - + "to\022\035google.cloud.dataproc.v1beta2\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032#google/longrunning/operations.proto\032\033" - + "google/protobuf/empty.proto\032 google/prot" - + "obuf/field_mask.proto\032\037google/protobuf/t" - + "imestamp.proto\"\313\002\n\rLoggingConfig\022\\\n\021driv" - + "er_log_levels\030\002 \003(\0132A.google.cloud.datap" - + "roc.v1beta2.LoggingConfig.DriverLogLevel" - + "sEntry\032j\n\024DriverLogLevelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022A\n\005value\030\002 \001(\01622.google.cloud.datapr" - + "oc.v1beta2.LoggingConfig.Level:\0028\001\"p\n\005Le" - + "vel\022\025\n\021LEVEL_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022\t\n\005T" - + "RACE\020\002\022\t\n\005DEBUG\020\003\022\010\n\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n" - + "\005ERROR\020\006\022\t\n\005FATAL\020\007\022\007\n\003OFF\020\010\"\373\002\n\tHadoopJ" - + "ob\022\033\n\021main_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_" - + "class\030\002 \001(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_" - + "file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB" - + "\003\340A\001\022\031\n\014archive_uris\030\006 \003(\tB\003\340A\001\022Q\n\nprope" - + "rties\030\007 \003(\01328.google.cloud.dataproc.v1be" - + "ta2.HadoopJob.PropertiesEntryB\003\340A\001\022I\n\016lo" - + "gging_config\030\010 \001(\0132,.google.cloud.datapr" - + "oc.v1beta2.LoggingConfigB\003\340A\001\0321\n\017Propert" - + "iesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "B\010\n\006driver\"\371\002\n\010SparkJob\022\033\n\021main_jar_file" - + "_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004ar" - + "gs\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A" - + "\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uri" - + "s\030\006 \003(\tB\003\340A\001\022P\n\nproperties\030\007 \003(\01327.googl" - + "e.cloud.dataproc.v1beta2.SparkJob.Proper" - + "tiesEntryB\003\340A\001\022I\n\016logging_config\030\010 \001(\0132," - + ".google.cloud.dataproc.v1beta2.LoggingCo" - + "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\202\003\n\nPySpa" - + "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" - + "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" - + "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" - + "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" - + " \003(\tB\003\340A\001\022R\n\nproperties\030\007 \003(\01329.google.c" - + "loud.dataproc.v1beta2.PySparkJob.Propert" - + "iesEntryB\003\340A\001\022I\n\016logging_config\030\010 \001(\0132,." - + "google.cloud.dataproc.v1beta2.LoggingCon" - + "figB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007quer" - + "ies\030\001 \003(\tB\003\340A\002\"\304\003\n\007HiveJob\022\030\n\016query_file" - + "_uri\030\001 \001(\tH\000\022>\n\nquery_list\030\002 \001(\0132(.googl" - + "e.cloud.dataproc.v1beta2.QueryListH\000\022 \n\023" - + "continue_on_failure\030\003 \001(\010B\003\340A\001\022Z\n\020script" - + "_variables\030\004 \003(\0132;.google.cloud.dataproc" - + ".v1beta2.HiveJob.ScriptVariablesEntryB\003\340" - + "A\001\022O\n\nproperties\030\005 \003(\01326.google.cloud.da" - + "taproc.v1beta2.HiveJob.PropertiesEntryB\003" - + "\340A\001\022\032\n\rjar_file_uris\030\006 \003(\tB\003\340A\001\0326\n\024Scrip" - + "tVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\371\003\n\013SparkS" - + "qlJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\022>\n\nquery" - + "_list\030\002 \001(\0132(.google.cloud.dataproc.v1be" - + "ta2.QueryListH\000\022^\n\020script_variables\030\003 \003(" - + "\0132?.google.cloud.dataproc.v1beta2.SparkS" - + "qlJob.ScriptVariablesEntryB\003\340A\001\022S\n\nprope" - + "rties\030\004 \003(\0132:.google.cloud.dataproc.v1be" - + "ta2.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" - + "jar_file_uris\0308 \003(\tB\003\340A\001\022I\n\016logging_conf" - + "ig\030\006 \001(\0132,.google.cloud.dataproc.v1beta2" - + ".LoggingConfigB\003\340A\001\0326\n\024ScriptVariablesEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017P" - + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\t\n\007queries\"\214\004\n\006PigJob\022\030\n\016query_fi" - + "le_uri\030\001 \001(\tH\000\022>\n\nquery_list\030\002 \001(\0132(.goo" - + "gle.cloud.dataproc.v1beta2.QueryListH\000\022 " - + "\n\023continue_on_failure\030\003 \001(\010B\003\340A\001\022Y\n\020scri" - + "pt_variables\030\004 \003(\0132:.google.cloud.datapr" - + "oc.v1beta2.PigJob.ScriptVariablesEntryB\003" - + "\340A\001\022N\n\nproperties\030\005 \003(\01325.google.cloud.d" - + "ataproc.v1beta2.PigJob.PropertiesEntryB\003" - + "\340A\001\022\032\n\rjar_file_uris\030\006 \003(\tB\003\340A\001\022I\n\016loggi" - + "ng_config\030\007 \001(\0132,.google.cloud.dataproc." - + "v1beta2.LoggingConfigB\003\340A\001\0326\n\024ScriptVari" - + "ablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001B\t\n\007queries\"\300\002\n\tSparkRJob\022\034" - + "\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004args\030\002 \003" - + "(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n\014archi" - + "ve_uris\030\004 \003(\tB\003\340A\001\022Q\n\nproperties\030\005 \003(\01328" - + ".google.cloud.dataproc.v1beta2.SparkRJob" - + ".PropertiesEntryB\003\340A\001\022I\n\016logging_config\030" - + "\006 \001(\0132,.google.cloud.dataproc.v1beta2.Lo" - + "ggingConfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\003\n\tPrestoJo" - + "b\022\030\n\016query_file_uri\030\001 \001(\tH\000\022>\n\nquery_lis" - + "t\030\002 \001(\0132(.google.cloud.dataproc.v1beta2." - + "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" - + "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" - + "ent_tags\030\005 \003(\tB\003\340A\001\022Q\n\nproperties\030\006 \003(\0132" - + "8.google.cloud.dataproc.v1beta2.PrestoJo" - + "b.PropertiesEntryB\003\340A\001\022I\n\016logging_config" - + "\030\007 \001(\0132,.google.cloud.dataproc.v1beta2.L" - + "oggingConfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" - + "D\n\014JobPlacement\022\031\n\014cluster_name\030\001 \001(\tB\003\340" - + "A\002\022\031\n\014cluster_uuid\030\002 \001(\tB\003\340A\003\"\340\003\n\tJobSta" - + "tus\022B\n\005state\030\001 \001(\0162..google.cloud.datapr" - + "oc.v1beta2.JobStatus.StateB\003\340A\003\022\024\n\007detai" - + "ls\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\006 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022H\n\010subs" - + "tate\030\007 \001(\01621.google.cloud.dataproc.v1bet" - + "a2.JobStatus.SubstateB\003\340A\003\"\251\001\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016\n\nSETU" - + "P_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PENDING\020" - + "\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED\020\004\022\010\n\004" - + "DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILURE\020\t\"H" - + "\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUBMITTED" - + "\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<\n\014JobR" - + "eference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022\023\n\006job" - + "_id\030\002 \001(\tB\003\340A\001\"\252\002\n\017YarnApplication\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022H\n\005state\030\002 \001(\01624.google.cl" - + "oud.dataproc.v1beta2.YarnApplication.Sta" - + "teB\003\340A\003\022\025\n\010progress\030\003 \001(\002B\003\340A\003\022\031\n\014tracki" - + "ng_url\030\004 \001(\tB\003\340A\003\"\207\001\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\tS" - + "UBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014\n" - + "\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\345\t\n\003" - + "Job\022C\n\treference\030\001 \001(\0132+.google.cloud.da" - + "taproc.v1beta2.JobReferenceB\003\340A\001\022C\n\tplac" - + "ement\030\002 \001(\0132+.google.cloud.dataproc.v1be" - + "ta2.JobPlacementB\003\340A\002\022C\n\nhadoop_job\030\003 \001(" - + "\0132(.google.cloud.dataproc.v1beta2.Hadoop" - + "JobB\003\340A\001H\000\022A\n\tspark_job\030\004 \001(\0132\'.google.c" - + "loud.dataproc.v1beta2.SparkJobB\003\340A\001H\000\022E\n" - + "\013pyspark_job\030\005 \001(\0132).google.cloud.datapr" - + "oc.v1beta2.PySparkJobB\003\340A\001H\000\022?\n\010hive_job" - + "\030\006 \001(\0132&.google.cloud.dataproc.v1beta2.H" - + "iveJobB\003\340A\001H\000\022=\n\007pig_job\030\007 \001(\0132%.google." - + "cloud.dataproc.v1beta2.PigJobB\003\340A\001H\000\022D\n\013" - + "spark_r_job\030\025 \001(\0132(.google.cloud.datapro" - + "c.v1beta2.SparkRJobB\003\340A\001H\000\022H\n\rspark_sql_" - + "job\030\014 \001(\0132*.google.cloud.dataproc.v1beta" - + "2.SparkSqlJobB\003\340A\001H\000\022C\n\npresto_job\030\027 \001(\013" - + "2(.google.cloud.dataproc.v1beta2.PrestoJ" - + "obB\003\340A\001H\000\022=\n\006status\030\010 \001(\0132(.google.cloud" - + ".dataproc.v1beta2.JobStatusB\003\340A\003\022E\n\016stat" - + "us_history\030\r \003(\0132(.google.cloud.dataproc" - + ".v1beta2.JobStatusB\003\340A\003\022N\n\021yarn_applicat" - + "ions\030\t \003(\0132..google.cloud.dataproc.v1bet" - + "a2.YarnApplicationB\003\340A\003\022\031\n\014submitted_by\030" - + "\n \001(\tB\003\340A\003\022\'\n\032driver_output_resource_uri" - + "\030\021 \001(\tB\003\340A\003\022%\n\030driver_control_files_uri\030" - + "\017 \001(\tB\003\340A\003\022C\n\006labels\030\022 \003(\0132..google.clou" - + "d.dataproc.v1beta2.Job.LabelsEntryB\003\340A\001\022" - + "E\n\nscheduling\030\024 \001(\0132,.google.cloud.datap" - + "roc.v1beta2.JobSchedulingB\003\340A\001\022\025\n\010job_uu" - + "id\030\026 \001(\tB\003\340A\003\022\021\n\004done\030\030 \001(\010B\003\340A\003\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B" - + "\n\n\010type_job\"3\n\rJobScheduling\022\"\n\025max_fail" - + "ures_per_hour\030\001 \001(\005B\003\340A\001\"\263\001\n\013JobMetadata" - + "\022\023\n\006job_id\030\001 \001(\tB\003\340A\003\022=\n\006status\030\002 \001(\0132(." - + "google.cloud.dataproc.v1beta2.JobStatusB" - + "\003\340A\003\022\033\n\016operation_type\030\003 \001(\tB\003\340A\003\0223\n\nsta" - + "rt_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\"\217\001\n\020SubmitJobRequest\022\027\n\nproject_i" - + "d\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0224\n\003job" - + "\030\002 \001(\0132\".google.cloud.dataproc.v1beta2.J" - + "obB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"R\n\rGetJ" - + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" - + "gion\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\270\002\n" - + "\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A" - + "\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clust" - + "er_name\030\004 \001(\tB\003\340A\001\022^\n\021job_state_matcher\030" - + "\005 \001(\0162>.google.cloud.dataproc.v1beta2.Li" - + "stJobsRequest.JobStateMatcherB\003\340A\001\022\023\n\006fi" - + "lter\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003AL" - + "L\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\301\001\n\020Upda" - + "teJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022" - + "4\n\003job\030\004 \001(\0132\".google.cloud.dataproc.v1b" - + "eta2.JobB\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\002\"g\n\020ListJobsR" - + "esponse\0225\n\004jobs\030\001 \003(\0132\".google.cloud.dat" - + "aproc.v1beta2.JobB\003\340A\003\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"U\n\020CancelJobRequest\022\027\n\nproj" - + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023" - + "\n\006job_id\030\002 \001(\tB\003\340A\002\"U\n\020DeleteJobRequest\022" - + "\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\t" - + "B\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\0022\347\013\n\rJobContro" - + "ller\022\302\001\n\tSubmitJob\022/.google.cloud.datapr" - + "oc.v1beta2.SubmitJobRequest\032\".google.clo" - + "ud.dataproc.v1beta2.Job\"`\202\323\344\223\002@\";/v1beta" - + "2/projects/{project_id}/regions/{region}" - + "/jobs:submit:\001*\332A\027project_id, region, jo" - + "b\022\351\001\n\024SubmitJobAsOperation\022/.google.clou" - + "d.dataproc.v1beta2.SubmitJobRequest\032\035.go" - + "ogle.longrunning.Operation\"\200\001\202\323\344\223\002K\"F/v1" - + "beta2/projects/{project_id}/regions/{reg" - + "ion}/jobs:submitAsOperation:\001*\332A\027project" - + "_id, region, job\312A\022\n\003Job\022\013JobMetadata\022\276\001" - + "\n\006GetJob\022,.google.cloud.dataproc.v1beta2" - + ".GetJobRequest\032\".google.cloud.dataproc.v" - + "1beta2.Job\"b\202\323\344\223\002?\022=/v1beta2/projects/{p" - + "roject_id}/regions/{region}/jobs/{job_id" - + "}\332A\032project_id, region, job_id\022\333\001\n\010ListJ" - + "obs\022..google.cloud.dataproc.v1beta2.List" - + "JobsRequest\032/.google.cloud.dataproc.v1be" - + "ta2.ListJobsResponse\"n\202\323\344\223\0026\0224/v1beta2/p" - + "rojects/{project_id}/regions/{region}/jo" - + "bs\332A\022project_id, region\332A\032project_id, re" - + "gion, filter\022\254\001\n\tUpdateJob\022/.google.clou" - + "d.dataproc.v1beta2.UpdateJobRequest\032\".go" - + "ogle.cloud.dataproc.v1beta2.Job\"J\202\323\344\223\002D2" - + "=/v1beta2/projects/{project_id}/regions/" - + "{region}/jobs/{job_id}:\003job\022\316\001\n\tCancelJo" - + "b\022/.google.cloud.dataproc.v1beta2.Cancel" - + "JobRequest\032\".google.cloud.dataproc.v1bet" - + "a2.Job\"l\202\323\344\223\002I\"D/v1beta2/projects/{proje" - + "ct_id}/regions/{region}/jobs/{job_id}:ca" - + "ncel:\001*\332A\032project_id, region, job_id\022\270\001\n" - + "\tDeleteJob\022/.google.cloud.dataproc.v1bet" - + "a2.DeleteJobRequest\032\026.google.protobuf.Em" - + "pty\"b\202\323\344\223\002?*=/v1beta2/projects/{project_" - + "id}/regions/{region}/jobs/{job_id}\332A\032pro" - + "ject_id, region, job_id\032K\312A\027dataproc.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformBw\n!com.google.cloud" - + ".dataproc.v1beta2B\tJobsProtoP\001ZEgoogle.g" - + "olang.org/genproto/googleapis/cloud/data" - + "proc/v1beta2;dataprocb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor, - new java.lang.String[] { - "DriverLogLevels", - }); - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_HadoopJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1beta2_SparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor, - new java.lang.String[] { - "MainPythonFileUri", - "Args", - "PythonFileUris", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1beta2_QueryList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor, - new java.lang.String[] { - "Queries", - }); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "Queries", - }); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_HiveJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_HiveJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_HiveJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1beta2_PigJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor, - new java.lang.String[] { - "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "OutputFormat", - "ClientTags", - "Properties", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1beta2_JobPlacement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor, - new java.lang.String[] { - "ClusterName", "ClusterUuid", - }); - internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1beta2_JobStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor, - new java.lang.String[] { - "State", "Details", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1beta2_JobReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor, - new java.lang.String[] { - "ProjectId", "JobId", - }); - internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1beta2_YarnApplication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor, - new java.lang.String[] { - "Name", "State", "Progress", "TrackingUrl", - }); - internal_static_google_cloud_dataproc_v1beta2_Job_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1beta2_Job_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_Job_descriptor, - new java.lang.String[] { - "Reference", - "Placement", - "HadoopJob", - "SparkJob", - "PysparkJob", - "HiveJob", - "PigJob", - "SparkRJob", - "SparkSqlJob", - "PrestoJob", - "Status", - "StatusHistory", - "YarnApplications", - "SubmittedBy", - "DriverOutputResourceUri", - "DriverControlFilesUri", - "Labels", - "Scheduling", - "JobUuid", - "Done", - "TypeJob", - }); - internal_static_google_cloud_dataproc_v1beta2_Job_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_Job_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_Job_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1beta2_JobScheduling_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor, - new java.lang.String[] { - "MaxFailuresPerHour", - }); - internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1beta2_JobMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_JobMetadata_descriptor, - new java.lang.String[] { - "JobId", "Status", "OperationType", "StartTime", - }); - internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Job", "RequestId", - }); - internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "PageSize", - "PageToken", - "ClusterName", - "JobStateMatcher", - "Filter", - }); - internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", "Job", "UpdateMask", - }); - internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor, - new java.lang.String[] { - "Jobs", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.longrunning.OperationsProto.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-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java deleted file mode 100644 index bf98f046..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java +++ /dev/null @@ -1,3142 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies Kerberos related configuration.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.KerberosConfig} - */ -public final class KerberosConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.KerberosConfig) - KerberosConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use KerberosConfig.newBuilder() to construct. - private KerberosConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private KerberosConfig() { - rootPrincipalPasswordUri_ = ""; - kmsKeyUri_ = ""; - keystoreUri_ = ""; - truststoreUri_ = ""; - keystorePasswordUri_ = ""; - keyPasswordUri_ = ""; - truststorePasswordUri_ = ""; - crossRealmTrustRealm_ = ""; - crossRealmTrustKdc_ = ""; - crossRealmTrustAdminServer_ = ""; - crossRealmTrustSharedPasswordUri_ = ""; - kdcDbKeyUri_ = ""; - realm_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new KerberosConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private KerberosConfig( - 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 8: - { - enableKerberos_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - rootPrincipalPasswordUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKeyUri_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - keystoreUri_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - truststoreUri_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - keystorePasswordUri_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - keyPasswordUri_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - truststorePasswordUri_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustRealm_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustKdc_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustAdminServer_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustSharedPasswordUri_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - kdcDbKeyUri_ = s; - break; - } - case 112: - { - tgtLifetimeHours_ = input.readInt32(); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - realm_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.KerberosConfig.class, - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder.class); - } - - public static final int ENABLE_KERBEROS_FIELD_NUMBER = 1; - private boolean enableKerberos_; - /** - * - * - *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default:
-   * false). Set this field to true to enable Kerberos on a cluster.
-   * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - @java.lang.Override - public boolean getEnableKerberos() { - return enableKerberos_; - } - - public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object rootPrincipalPasswordUri_; - /** - * - * - *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The rootPrincipalPasswordUri. - */ - @java.lang.Override - public java.lang.String getRootPrincipalPasswordUri() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rootPrincipalPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for rootPrincipalPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootPrincipalPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KMS_KEY_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object kmsKeyUri_; - /** - * - * - *
-   * Required. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The kmsKeyUri. - */ - @java.lang.Override - public java.lang.String getKmsKeyUri() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for kmsKeyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyUriBytes() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEYSTORE_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object keystoreUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - @java.lang.Override - public java.lang.String getKeystoreUri() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystoreUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeystoreUriBytes() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRUSTSTORE_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object truststoreUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - @java.lang.Override - public java.lang.String getTruststoreUri() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststoreUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTruststoreUriBytes() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object keystorePasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - @java.lang.Override - public java.lang.String getKeystorePasswordUri() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystorePasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_PASSWORD_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object keyPasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - @java.lang.Override - public java.lang.String getKeyPasswordUri() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER = 8; - private volatile java.lang.Object truststorePasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - @java.lang.Override - public java.lang.String getTruststorePasswordUri() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststorePasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER = 9; - private volatile java.lang.Object crossRealmTrustRealm_; - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustRealm() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustRealm_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustRealm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER = 10; - private volatile java.lang.Object crossRealmTrustKdc_; - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustKdc() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustKdc_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustKdc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER = 11; - private volatile java.lang.Object crossRealmTrustAdminServer_; - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustAdminServer() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustAdminServer_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustAdminServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER = 12; - private volatile java.lang.Object crossRealmTrustSharedPasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustSharedPasswordUri() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustSharedPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustSharedPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KDC_DB_KEY_URI_FIELD_NUMBER = 13; - private volatile java.lang.Object kdcDbKeyUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - @java.lang.Override - public java.lang.String getKdcDbKeyUri() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kdcDbKeyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kdcDbKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER = 14; - private int tgtLifetimeHours_; - /** - * - * - *
-   * Optional. The lifetime of the ticket granting ticket, in hours.
-   * If not specified, or user specifies 0, then default value 10
-   * will be used.
-   * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - @java.lang.Override - public int getTgtLifetimeHours() { - return tgtLifetimeHours_; - } - - public static final int REALM_FIELD_NUMBER = 15; - private volatile java.lang.Object realm_; - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - @java.lang.Override - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realm_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableKerberos_ != false) { - output.writeBool(1, enableKerberos_); - } - if (!getRootPrincipalPasswordUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootPrincipalPasswordUri_); - } - if (!getKmsKeyUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyUri_); - } - if (!getKeystoreUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keystoreUri_); - } - if (!getTruststoreUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, truststoreUri_); - } - if (!getKeystorePasswordUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keystorePasswordUri_); - } - if (!getKeyPasswordUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, keyPasswordUri_); - } - if (!getTruststorePasswordUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, truststorePasswordUri_); - } - if (!getCrossRealmTrustRealmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crossRealmTrustRealm_); - } - if (!getCrossRealmTrustKdcBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, crossRealmTrustKdc_); - } - if (!getCrossRealmTrustAdminServerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_); - } - if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 12, crossRealmTrustSharedPasswordUri_); - } - if (!getKdcDbKeyUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_); - } - if (tgtLifetimeHours_ != 0) { - output.writeInt32(14, tgtLifetimeHours_); - } - if (!getRealmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, realm_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableKerberos_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_); - } - if (!getRootPrincipalPasswordUriBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); - } - if (!getKmsKeyUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_); - } - if (!getKeystoreUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keystoreUri_); - } - if (!getTruststoreUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, truststoreUri_); - } - if (!getKeystorePasswordUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keystorePasswordUri_); - } - if (!getKeyPasswordUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, keyPasswordUri_); - } - if (!getTruststorePasswordUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, truststorePasswordUri_); - } - if (!getCrossRealmTrustRealmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crossRealmTrustRealm_); - } - if (!getCrossRealmTrustKdcBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_); - } - if (!getCrossRealmTrustAdminServerBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); - } - if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 12, crossRealmTrustSharedPasswordUri_); - } - if (!getKdcDbKeyUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_); - } - if (tgtLifetimeHours_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_); - } - if (!getRealmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); - } - 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.dataproc.v1beta2.KerberosConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.KerberosConfig other = - (com.google.cloud.dataproc.v1beta2.KerberosConfig) obj; - - if (getEnableKerberos() != other.getEnableKerberos()) return false; - if (!getRootPrincipalPasswordUri().equals(other.getRootPrincipalPasswordUri())) return false; - if (!getKmsKeyUri().equals(other.getKmsKeyUri())) return false; - if (!getKeystoreUri().equals(other.getKeystoreUri())) return false; - if (!getTruststoreUri().equals(other.getTruststoreUri())) return false; - if (!getKeystorePasswordUri().equals(other.getKeystorePasswordUri())) return false; - if (!getKeyPasswordUri().equals(other.getKeyPasswordUri())) return false; - if (!getTruststorePasswordUri().equals(other.getTruststorePasswordUri())) return false; - if (!getCrossRealmTrustRealm().equals(other.getCrossRealmTrustRealm())) return false; - if (!getCrossRealmTrustKdc().equals(other.getCrossRealmTrustKdc())) return false; - if (!getCrossRealmTrustAdminServer().equals(other.getCrossRealmTrustAdminServer())) - return false; - if (!getCrossRealmTrustSharedPasswordUri().equals(other.getCrossRealmTrustSharedPasswordUri())) - return false; - if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false; - if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false; - if (!getRealm().equals(other.getRealm())) 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) + ENABLE_KERBEROS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKerberos()); - hash = (37 * hash) + ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getRootPrincipalPasswordUri().hashCode(); - hash = (37 * hash) + KMS_KEY_URI_FIELD_NUMBER; - hash = (53 * hash) + getKmsKeyUri().hashCode(); - hash = (37 * hash) + KEYSTORE_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeystoreUri().hashCode(); - hash = (37 * hash) + TRUSTSTORE_URI_FIELD_NUMBER; - hash = (53 * hash) + getTruststoreUri().hashCode(); - hash = (37 * hash) + KEYSTORE_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeystorePasswordUri().hashCode(); - hash = (37 * hash) + KEY_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeyPasswordUri().hashCode(); - hash = (37 * hash) + TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getTruststorePasswordUri().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_REALM_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustRealm().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_KDC_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustKdc().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustAdminServer().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustSharedPasswordUri().hashCode(); - hash = (37 * hash) + KDC_DB_KEY_URI_FIELD_NUMBER; - hash = (53 * hash) + getKdcDbKeyUri().hashCode(); - hash = (37 * hash) + TGT_LIFETIME_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getTgtLifetimeHours(); - hash = (37 * hash) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig 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.dataproc.v1beta2.KerberosConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig 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.dataproc.v1beta2.KerberosConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig 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.dataproc.v1beta2.KerberosConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies Kerberos related configuration.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.KerberosConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.KerberosConfig) - com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.KerberosConfig.class, - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.KerberosConfig.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(); - enableKerberos_ = false; - - rootPrincipalPasswordUri_ = ""; - - kmsKeyUri_ = ""; - - keystoreUri_ = ""; - - truststoreUri_ = ""; - - keystorePasswordUri_ = ""; - - keyPasswordUri_ = ""; - - truststorePasswordUri_ = ""; - - crossRealmTrustRealm_ = ""; - - crossRealmTrustKdc_ = ""; - - crossRealmTrustAdminServer_ = ""; - - crossRealmTrustSharedPasswordUri_ = ""; - - kdcDbKeyUri_ = ""; - - tgtLifetimeHours_ = 0; - - realm_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.KerberosConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.KerberosConfig build() { - com.google.cloud.dataproc.v1beta2.KerberosConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.KerberosConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.KerberosConfig result = - new com.google.cloud.dataproc.v1beta2.KerberosConfig(this); - result.enableKerberos_ = enableKerberos_; - result.rootPrincipalPasswordUri_ = rootPrincipalPasswordUri_; - result.kmsKeyUri_ = kmsKeyUri_; - result.keystoreUri_ = keystoreUri_; - result.truststoreUri_ = truststoreUri_; - result.keystorePasswordUri_ = keystorePasswordUri_; - result.keyPasswordUri_ = keyPasswordUri_; - result.truststorePasswordUri_ = truststorePasswordUri_; - result.crossRealmTrustRealm_ = crossRealmTrustRealm_; - result.crossRealmTrustKdc_ = crossRealmTrustKdc_; - result.crossRealmTrustAdminServer_ = crossRealmTrustAdminServer_; - result.crossRealmTrustSharedPasswordUri_ = crossRealmTrustSharedPasswordUri_; - result.kdcDbKeyUri_ = kdcDbKeyUri_; - result.tgtLifetimeHours_ = tgtLifetimeHours_; - result.realm_ = realm_; - 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.dataproc.v1beta2.KerberosConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.KerberosConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.KerberosConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance()) - return this; - if (other.getEnableKerberos() != false) { - setEnableKerberos(other.getEnableKerberos()); - } - if (!other.getRootPrincipalPasswordUri().isEmpty()) { - rootPrincipalPasswordUri_ = other.rootPrincipalPasswordUri_; - onChanged(); - } - if (!other.getKmsKeyUri().isEmpty()) { - kmsKeyUri_ = other.kmsKeyUri_; - onChanged(); - } - if (!other.getKeystoreUri().isEmpty()) { - keystoreUri_ = other.keystoreUri_; - onChanged(); - } - if (!other.getTruststoreUri().isEmpty()) { - truststoreUri_ = other.truststoreUri_; - onChanged(); - } - if (!other.getKeystorePasswordUri().isEmpty()) { - keystorePasswordUri_ = other.keystorePasswordUri_; - onChanged(); - } - if (!other.getKeyPasswordUri().isEmpty()) { - keyPasswordUri_ = other.keyPasswordUri_; - onChanged(); - } - if (!other.getTruststorePasswordUri().isEmpty()) { - truststorePasswordUri_ = other.truststorePasswordUri_; - onChanged(); - } - if (!other.getCrossRealmTrustRealm().isEmpty()) { - crossRealmTrustRealm_ = other.crossRealmTrustRealm_; - onChanged(); - } - if (!other.getCrossRealmTrustKdc().isEmpty()) { - crossRealmTrustKdc_ = other.crossRealmTrustKdc_; - onChanged(); - } - if (!other.getCrossRealmTrustAdminServer().isEmpty()) { - crossRealmTrustAdminServer_ = other.crossRealmTrustAdminServer_; - onChanged(); - } - if (!other.getCrossRealmTrustSharedPasswordUri().isEmpty()) { - crossRealmTrustSharedPasswordUri_ = other.crossRealmTrustSharedPasswordUri_; - onChanged(); - } - if (!other.getKdcDbKeyUri().isEmpty()) { - kdcDbKeyUri_ = other.kdcDbKeyUri_; - onChanged(); - } - if (other.getTgtLifetimeHours() != 0) { - setTgtLifetimeHours(other.getTgtLifetimeHours()); - } - if (!other.getRealm().isEmpty()) { - realm_ = other.realm_; - 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.dataproc.v1beta2.KerberosConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.KerberosConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enableKerberos_; - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default:
-     * false). Set this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - @java.lang.Override - public boolean getEnableKerberos() { - return enableKerberos_; - } - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default:
-     * false). Set this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableKerberos to set. - * @return This builder for chaining. - */ - public Builder setEnableKerberos(boolean value) { - - enableKerberos_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default:
-     * false). Set this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableKerberos() { - - enableKerberos_ = false; - onChanged(); - return this; - } - - private java.lang.Object rootPrincipalPasswordUri_ = ""; - /** - * - * - *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The rootPrincipalPasswordUri. - */ - public java.lang.String getRootPrincipalPasswordUri() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rootPrincipalPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for rootPrincipalPasswordUri. - */ - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootPrincipalPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The rootPrincipalPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setRootPrincipalPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rootPrincipalPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearRootPrincipalPasswordUri() { - - rootPrincipalPasswordUri_ = getDefaultInstance().getRootPrincipalPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for rootPrincipalPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rootPrincipalPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object kmsKeyUri_ = ""; - /** - * - * - *
-     * Required. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The kmsKeyUri. - */ - public java.lang.String getKmsKeyUri() { - java.lang.Object ref = kmsKeyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for kmsKeyUri. - */ - public com.google.protobuf.ByteString getKmsKeyUriBytes() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The kmsKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKmsKeyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kmsKeyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearKmsKeyUri() { - - kmsKeyUri_ = getDefaultInstance().getKmsKeyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for kmsKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kmsKeyUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keystoreUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - public java.lang.String getKeystoreUri() { - java.lang.Object ref = keystoreUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystoreUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - public com.google.protobuf.ByteString getKeystoreUriBytes() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keystoreUri to set. - * @return This builder for chaining. - */ - public Builder setKeystoreUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keystoreUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeystoreUri() { - - keystoreUri_ = getDefaultInstance().getKeystoreUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keystoreUri to set. - * @return This builder for chaining. - */ - public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keystoreUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object truststoreUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - public java.lang.String getTruststoreUri() { - java.lang.Object ref = truststoreUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststoreUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - public com.google.protobuf.ByteString getTruststoreUriBytes() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The truststoreUri to set. - * @return This builder for chaining. - */ - public Builder setTruststoreUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - truststoreUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTruststoreUri() { - - truststoreUri_ = getDefaultInstance().getTruststoreUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for truststoreUri to set. - * @return This builder for chaining. - */ - public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - truststoreUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keystorePasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - public java.lang.String getKeystorePasswordUri() { - java.lang.Object ref = keystorePasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystorePasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keystorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeystorePasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keystorePasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeystorePasswordUri() { - - keystorePasswordUri_ = getDefaultInstance().getKeystorePasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keystorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keystorePasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keyPasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - public java.lang.String getKeyPasswordUri() { - java.lang.Object ref = keyPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keyPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeyPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeyPasswordUri() { - - keyPasswordUri_ = getDefaultInstance().getKeyPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keyPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object truststorePasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - public java.lang.String getTruststorePasswordUri() { - java.lang.Object ref = truststorePasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststorePasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The truststorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setTruststorePasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - truststorePasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTruststorePasswordUri() { - - truststorePasswordUri_ = getDefaultInstance().getTruststorePasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for truststorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - truststorePasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustRealm_ = ""; - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - public java.lang.String getCrossRealmTrustRealm() { - java.lang.Object ref = crossRealmTrustRealm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustRealm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustRealm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The crossRealmTrustRealm to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustRealm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustRealm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustRealm() { - - crossRealmTrustRealm_ = getDefaultInstance().getCrossRealmTrustRealm(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for crossRealmTrustRealm to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustRealm_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustKdc_ = ""; - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - public java.lang.String getCrossRealmTrustKdc() { - java.lang.Object ref = crossRealmTrustKdc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustKdc_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustKdc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The crossRealmTrustKdc to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustKdc(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustKdc_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustKdc() { - - crossRealmTrustKdc_ = getDefaultInstance().getCrossRealmTrustKdc(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for crossRealmTrustKdc to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustKdc_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustAdminServer_ = ""; - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - public java.lang.String getCrossRealmTrustAdminServer() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustAdminServer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustAdminServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The crossRealmTrustAdminServer to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustAdminServer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustAdminServer_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustAdminServer() { - - crossRealmTrustAdminServer_ = getDefaultInstance().getCrossRealmTrustAdminServer(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for crossRealmTrustAdminServer to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustAdminServer_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustSharedPasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - public java.lang.String getCrossRealmTrustSharedPasswordUri() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustSharedPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustSharedPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The crossRealmTrustSharedPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustSharedPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustSharedPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustSharedPasswordUri() { - - crossRealmTrustSharedPasswordUri_ = - getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for crossRealmTrustSharedPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustSharedPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object kdcDbKeyUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - public java.lang.String getKdcDbKeyUri() { - java.lang.Object ref = kdcDbKeyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kdcDbKeyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kdcDbKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The kdcDbKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKdcDbKeyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kdcDbKeyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKdcDbKeyUri() { - - kdcDbKeyUri_ = getDefaultInstance().getKdcDbKeyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for kdcDbKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kdcDbKeyUri_ = value; - onChanged(); - return this; - } - - private int tgtLifetimeHours_; - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - @java.lang.Override - public int getTgtLifetimeHours() { - return tgtLifetimeHours_; - } - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tgtLifetimeHours to set. - * @return This builder for chaining. - */ - public Builder setTgtLifetimeHours(int value) { - - tgtLifetimeHours_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTgtLifetimeHours() { - - tgtLifetimeHours_ = 0; - onChanged(); - return this; - } - - private java.lang.Object realm_ = ""; - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The realm to set. - * @return This builder for chaining. - */ - public Builder setRealm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - realm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRealm() { - - realm_ = getDefaultInstance().getRealm(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for realm to set. - * @return This builder for chaining. - */ - public Builder setRealmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - realm_ = 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.dataproc.v1beta2.KerberosConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.KerberosConfig) - private static final com.google.cloud.dataproc.v1beta2.KerberosConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.KerberosConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.KerberosConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KerberosConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KerberosConfig(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.dataproc.v1beta2.KerberosConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java deleted file mode 100644 index 4f30a890..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java +++ /dev/null @@ -1,423 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface KerberosConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.KerberosConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default:
-   * false). Set this field to true to enable Kerberos on a cluster.
-   * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - boolean getEnableKerberos(); - - /** - * - * - *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The rootPrincipalPasswordUri. - */ - java.lang.String getRootPrincipalPasswordUri(); - /** - * - * - *
-   * Required. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for rootPrincipalPasswordUri. - */ - com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes(); - - /** - * - * - *
-   * Required. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The kmsKeyUri. - */ - java.lang.String getKmsKeyUri(); - /** - * - * - *
-   * Required. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for kmsKeyUri. - */ - com.google.protobuf.ByteString getKmsKeyUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - java.lang.String getKeystoreUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - com.google.protobuf.ByteString getKeystoreUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - java.lang.String getTruststoreUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - com.google.protobuf.ByteString getTruststoreUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - java.lang.String getKeystorePasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - com.google.protobuf.ByteString getKeystorePasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - java.lang.String getKeyPasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - com.google.protobuf.ByteString getKeyPasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - java.lang.String getTruststorePasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - com.google.protobuf.ByteString getTruststorePasswordUriBytes(); - - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - java.lang.String getCrossRealmTrustRealm(); - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - com.google.protobuf.ByteString getCrossRealmTrustRealmBytes(); - - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - java.lang.String getCrossRealmTrustKdc(); - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - com.google.protobuf.ByteString getCrossRealmTrustKdcBytes(); - - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - java.lang.String getCrossRealmTrustAdminServer(); - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - java.lang.String getCrossRealmTrustSharedPasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - java.lang.String getKdcDbKeyUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - com.google.protobuf.ByteString getKdcDbKeyUriBytes(); - - /** - * - * - *
-   * Optional. The lifetime of the ticket granting ticket, in hours.
-   * If not specified, or user specifies 0, then default value 10
-   * will be used.
-   * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - int getTgtLifetimeHours(); - - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - java.lang.String getRealm(); - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - com.google.protobuf.ByteString getRealmBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java deleted file mode 100644 index bbef5c86..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java +++ /dev/null @@ -1,1913 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies the cluster auto-delete schedule configuration.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.LifecycleConfig} - */ -public final class LifecycleConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.LifecycleConfig) - LifecycleConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LifecycleConfig.newBuilder() to construct. - private LifecycleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LifecycleConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LifecycleConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LifecycleConfig( - 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.protobuf.Duration.Builder subBuilder = null; - if (idleDeleteTtl_ != null) { - subBuilder = idleDeleteTtl_.toBuilder(); - } - idleDeleteTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(idleDeleteTtl_); - idleDeleteTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (ttlCase_ == 2) { - subBuilder = ((com.google.protobuf.Timestamp) ttl_).toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) ttl_); - ttl_ = subBuilder.buildPartial(); - } - ttlCase_ = 2; - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ttlCase_ == 3) { - subBuilder = ((com.google.protobuf.Duration) ttl_).toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) ttl_); - ttl_ = subBuilder.buildPartial(); - } - ttlCase_ = 3; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (idleStartTime_ != null) { - subBuilder = idleStartTime_.toBuilder(); - } - idleStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(idleStartTime_); - idleStartTime_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.LifecycleConfig.class, - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder.class); - } - - private int ttlCase_ = 0; - private java.lang.Object ttl_; - - public enum TtlCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AUTO_DELETE_TIME(2), - AUTO_DELETE_TTL(3), - TTL_NOT_SET(0); - private final int value; - - private TtlCase(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 TtlCase valueOf(int value) { - return forNumber(value); - } - - public static TtlCase forNumber(int value) { - switch (value) { - case 2: - return AUTO_DELETE_TIME; - case 3: - return AUTO_DELETE_TTL; - case 0: - return TTL_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); - } - - public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration idleDeleteTtl_; - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasIdleDeleteTtl() { - return idleDeleteTtl_ != null; - } - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getIdleDeleteTtl() { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { - return getIdleDeleteTtl(); - } - - public static final int AUTO_DELETE_TIME_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTime() { - return ttlCase_ == 2; - } - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getAutoDeleteTime() { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int AUTO_DELETE_TTL_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTtl() { - return ttlCase_ == 3; - } - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getAutoDeleteTtl() { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int IDLE_START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp idleStartTime_; - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - @java.lang.Override - public boolean hasIdleStartTime() { - return idleStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getIdleStartTime() { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { - return getIdleStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (idleDeleteTtl_ != null) { - output.writeMessage(1, getIdleDeleteTtl()); - } - if (ttlCase_ == 2) { - output.writeMessage(2, (com.google.protobuf.Timestamp) ttl_); - } - if (ttlCase_ == 3) { - output.writeMessage(3, (com.google.protobuf.Duration) ttl_); - } - if (idleStartTime_ != null) { - output.writeMessage(4, getIdleStartTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (idleDeleteTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdleDeleteTtl()); - } - if (ttlCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) ttl_); - } - if (ttlCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.protobuf.Duration) ttl_); - } - if (idleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); - } - 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.dataproc.v1beta2.LifecycleConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.LifecycleConfig other = - (com.google.cloud.dataproc.v1beta2.LifecycleConfig) obj; - - if (hasIdleDeleteTtl() != other.hasIdleDeleteTtl()) return false; - if (hasIdleDeleteTtl()) { - if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; - } - if (hasIdleStartTime() != other.hasIdleStartTime()) return false; - if (hasIdleStartTime()) { - if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; - } - if (!getTtlCase().equals(other.getTtlCase())) return false; - switch (ttlCase_) { - case 2: - if (!getAutoDeleteTime().equals(other.getAutoDeleteTime())) return false; - break; - case 3: - if (!getAutoDeleteTtl().equals(other.getAutoDeleteTtl())) 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(); - if (hasIdleDeleteTtl()) { - hash = (37 * hash) + IDLE_DELETE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getIdleDeleteTtl().hashCode(); - } - if (hasIdleStartTime()) { - hash = (37 * hash) + IDLE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getIdleStartTime().hashCode(); - } - switch (ttlCase_) { - case 2: - hash = (37 * hash) + AUTO_DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getAutoDeleteTime().hashCode(); - break; - case 3: - hash = (37 * hash) + AUTO_DELETE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getAutoDeleteTtl().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig 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.dataproc.v1beta2.LifecycleConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig 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.dataproc.v1beta2.LifecycleConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig 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.dataproc.v1beta2.LifecycleConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the cluster auto-delete schedule configuration.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.LifecycleConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.LifecycleConfig) - com.google.cloud.dataproc.v1beta2.LifecycleConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.LifecycleConfig.class, - com.google.cloud.dataproc.v1beta2.LifecycleConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.LifecycleConfig.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 (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = null; - } else { - idleDeleteTtl_ = null; - idleDeleteTtlBuilder_ = null; - } - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = null; - } else { - idleStartTime_ = null; - idleStartTimeBuilder_ = null; - } - ttlCase_ = 0; - ttl_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LifecycleConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.LifecycleConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LifecycleConfig build() { - com.google.cloud.dataproc.v1beta2.LifecycleConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LifecycleConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.LifecycleConfig result = - new com.google.cloud.dataproc.v1beta2.LifecycleConfig(this); - if (idleDeleteTtlBuilder_ == null) { - result.idleDeleteTtl_ = idleDeleteTtl_; - } else { - result.idleDeleteTtl_ = idleDeleteTtlBuilder_.build(); - } - if (ttlCase_ == 2) { - if (autoDeleteTimeBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = autoDeleteTimeBuilder_.build(); - } - } - if (ttlCase_ == 3) { - if (autoDeleteTtlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = autoDeleteTtlBuilder_.build(); - } - } - if (idleStartTimeBuilder_ == null) { - result.idleStartTime_ = idleStartTime_; - } else { - result.idleStartTime_ = idleStartTimeBuilder_.build(); - } - result.ttlCase_ = ttlCase_; - 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.dataproc.v1beta2.LifecycleConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.LifecycleConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.LifecycleConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.LifecycleConfig.getDefaultInstance()) - return this; - if (other.hasIdleDeleteTtl()) { - mergeIdleDeleteTtl(other.getIdleDeleteTtl()); - } - if (other.hasIdleStartTime()) { - mergeIdleStartTime(other.getIdleStartTime()); - } - switch (other.getTtlCase()) { - case AUTO_DELETE_TIME: - { - mergeAutoDeleteTime(other.getAutoDeleteTime()); - break; - } - case AUTO_DELETE_TTL: - { - mergeAutoDeleteTtl(other.getAutoDeleteTtl()); - break; - } - case TTL_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.dataproc.v1beta2.LifecycleConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.LifecycleConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int ttlCase_ = 0; - private java.lang.Object ttl_; - - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); - } - - public Builder clearTtl() { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.Duration idleDeleteTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleDeleteTtlBuilder_; - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - public boolean hasIdleDeleteTtl() { - return idleDeleteTtlBuilder_ != null || idleDeleteTtl_ != null; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - public com.google.protobuf.Duration getIdleDeleteTtl() { - if (idleDeleteTtlBuilder_ == null) { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } else { - return idleDeleteTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { - if (idleDeleteTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - idleDeleteTtl_ = value; - onChanged(); - } else { - idleDeleteTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = builderForValue.build(); - onChanged(); - } else { - idleDeleteTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { - if (idleDeleteTtlBuilder_ == null) { - if (idleDeleteTtl_ != null) { - idleDeleteTtl_ = - com.google.protobuf.Duration.newBuilder(idleDeleteTtl_) - .mergeFrom(value) - .buildPartial(); - } else { - idleDeleteTtl_ = value; - } - onChanged(); - } else { - idleDeleteTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearIdleDeleteTtl() { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = null; - onChanged(); - } else { - idleDeleteTtl_ = null; - idleDeleteTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { - - onChanged(); - return getIdleDeleteTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { - if (idleDeleteTtlBuilder_ != null) { - return idleDeleteTtlBuilder_.getMessageOrBuilder(); - } else { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getIdleDeleteTtlFieldBuilder() { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getIdleDeleteTtl(), getParentForChildren(), isClean()); - idleDeleteTtl_ = null; - } - return idleDeleteTtlBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - autoDeleteTimeBuilder_; - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTime() { - return ttlCase_ == 2; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getAutoDeleteTime() { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (ttlCase_ == 2) { - return autoDeleteTimeBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { - if (autoDeleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - autoDeleteTimeBuilder_.setMessage(value); - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (autoDeleteTimeBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - autoDeleteTimeBuilder_.setMessage(builderForValue.build()); - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2 && ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) - .mergeFrom(value) - .buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - if (ttlCase_ == 2) { - autoDeleteTimeBuilder_.mergeFrom(value); - } - autoDeleteTimeBuilder_.setMessage(value); - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoDeleteTime() { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2) { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - } - } else { - if (ttlCase_ == 2) { - ttlCase_ = 0; - ttl_ = null; - } - autoDeleteTimeBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { - return getAutoDeleteTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { - if ((ttlCase_ == 2) && (autoDeleteTimeBuilder_ != null)) { - return autoDeleteTimeBuilder_.getMessageOrBuilder(); - } else { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted. (see JSON
-     * representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getAutoDeleteTimeFieldBuilder() { - if (autoDeleteTimeBuilder_ == null) { - if (!(ttlCase_ == 2)) { - ttl_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - autoDeleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) ttl_, getParentForChildren(), isClean()); - ttl_ = null; - } - ttlCase_ = 2; - onChanged(); - ; - return autoDeleteTimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - autoDeleteTtlBuilder_; - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTtl() { - return ttlCase_ == 3; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getAutoDeleteTtl() { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (ttlCase_ == 3) { - return autoDeleteTtlBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { - if (autoDeleteTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - autoDeleteTtlBuilder_.setMessage(value); - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (autoDeleteTtlBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - autoDeleteTtlBuilder_.setMessage(builderForValue.build()); - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3 && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) - .mergeFrom(value) - .buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - if (ttlCase_ == 3) { - autoDeleteTtlBuilder_.mergeFrom(value); - } - autoDeleteTtlBuilder_.setMessage(value); - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoDeleteTtl() { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3) { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - } - } else { - if (ttlCase_ == 3) { - ttlCase_ = 0; - ttl_ = null; - } - autoDeleteTtlBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() { - return getAutoDeleteTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { - if ((ttlCase_ == 3) && (autoDeleteTtlBuilder_ != null)) { - return autoDeleteTtlBuilder_.getMessageOrBuilder(); - } else { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getAutoDeleteTtlFieldBuilder() { - if (autoDeleteTtlBuilder_ == null) { - if (!(ttlCase_ == 3)) { - ttl_ = com.google.protobuf.Duration.getDefaultInstance(); - } - autoDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) ttl_, getParentForChildren(), isClean()); - ttl_ = null; - } - ttlCase_ = 3; - onChanged(); - ; - return autoDeleteTtlBuilder_; - } - - private com.google.protobuf.Timestamp idleStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - idleStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - public boolean hasIdleStartTime() { - return idleStartTimeBuilder_ != null || idleStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - public com.google.protobuf.Timestamp getIdleStartTime() { - if (idleStartTimeBuilder_ == null) { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } else { - return idleStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { - if (idleStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - idleStartTime_ = value; - onChanged(); - } else { - idleStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = builderForValue.build(); - onChanged(); - } else { - idleStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { - if (idleStartTimeBuilder_ == null) { - if (idleStartTime_ != null) { - idleStartTime_ = - com.google.protobuf.Timestamp.newBuilder(idleStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - idleStartTime_ = value; - } - onChanged(); - } else { - idleStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearIdleStartTime() { - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = null; - onChanged(); - } else { - idleStartTime_ = null; - idleStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { - - onChanged(); - return getIdleStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { - if (idleStartTimeBuilder_ != null) { - return idleStartTimeBuilder_.getMessageOrBuilder(); - } else { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getIdleStartTimeFieldBuilder() { - if (idleStartTimeBuilder_ == null) { - idleStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIdleStartTime(), getParentForChildren(), isClean()); - idleStartTime_ = null; - } - return idleStartTimeBuilder_; - } - - @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.dataproc.v1beta2.LifecycleConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LifecycleConfig) - private static final com.google.cloud.dataproc.v1beta2.LifecycleConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.LifecycleConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.LifecycleConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LifecycleConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LifecycleConfig(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.dataproc.v1beta2.LifecycleConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java deleted file mode 100644 index 65d5a5b5..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java +++ /dev/null @@ -1,221 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface LifecycleConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.LifecycleConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - boolean hasIdleDeleteTtl(); - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - com.google.protobuf.Duration getIdleDeleteTtl(); - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder(); - - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - boolean hasAutoDeleteTime(); - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - com.google.protobuf.Timestamp getAutoDeleteTime(); - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted. (see JSON
-   * representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder(); - - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - boolean hasAutoDeleteTtl(); - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - com.google.protobuf.Duration getAutoDeleteTtl(); - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder(); - - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - boolean hasIdleStartTime(); - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - com.google.protobuf.Timestamp getIdleStartTime(); - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.LifecycleConfig.TtlCase getTtlCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java deleted file mode 100644 index 81a47aaf..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java +++ /dev/null @@ -1,988 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to list autoscaling policies in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest} - */ -public final class ListAutoscalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - ListAutoscalingPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAutoscalingPoliciesRequest.newBuilder() to construct. - private ListAutoscalingPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAutoscalingPoliciesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAutoscalingPoliciesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListAutoscalingPoliciesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * Must be less than or equal to 1000. Defaults to 100.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest other = - (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) obj; - - 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; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list autoscaling policies in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.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_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest build() { - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest result = - new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest(this); - result.parent_ = parent_; - 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 int pageSize_; - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - private static final com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAutoscalingPoliciesRequest(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.dataproc.v1beta2.ListAutoscalingPoliciesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java deleted file mode 100644 index b150cec2..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListAutoscalingPoliciesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * Must be less than or equal to 1000. Defaults to 100.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java deleted file mode 100644 index d1c863f6..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java +++ /dev/null @@ -1,1203 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A response to a request to list autoscaling policies in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse} - */ -public final class ListAutoscalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - ListAutoscalingPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAutoscalingPoliciesResponse.newBuilder() to construct. - private ListAutoscalingPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAutoscalingPoliciesResponse() { - policies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAutoscalingPoliciesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListAutoscalingPoliciesResponse( - 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)) { - policies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - policies_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.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)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.Builder.class); - } - - public static final int POLICIES_FIELD_NUMBER = 1; - private java.util.List policies_; - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getPoliciesList() { - return policies_; - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPoliciesOrBuilderList() { - return policies_; - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPoliciesCount() { - return policies_.size(); - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index) { - return policies_.get(index); - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( - int index) { - return policies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < policies_.size(); i++) { - output.writeMessage(1, policies_.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 < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.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.dataproc.v1beta2.ListAutoscalingPoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse other = - (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) obj; - - if (!getPoliciesList().equals(other.getPoliciesList())) 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 (getPoliciesCount() > 0) { - hash = (37 * hash) + POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getPoliciesList().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.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse 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.dataproc.v1beta2.ListAutoscalingPoliciesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - 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.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse 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.dataproc.v1beta2.ListAutoscalingPoliciesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 response to a request to list autoscaling policies in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPoliciesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - policiesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse build() { - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse buildPartial() { - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse result = - new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse(this); - int from_bitField0_ = bitField0_; - if (policiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policies_ = policies_; - } else { - result.policies_ = policiesBuilder_.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.dataproc.v1beta2.ListAutoscalingPoliciesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse other) { - if (other - == com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.getDefaultInstance()) - return this; - if (policiesBuilder_ == null) { - if (!other.policies_.isEmpty()) { - if (policies_.isEmpty()) { - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePoliciesIsMutable(); - policies_.addAll(other.policies_); - } - onChanged(); - } - } else { - if (!other.policies_.isEmpty()) { - if (policiesBuilder_.isEmpty()) { - policiesBuilder_.dispose(); - policiesBuilder_ = null; - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; - } else { - policiesBuilder_.addAllMessages(other.policies_); - } - } - } - 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.dataproc.v1beta2.ListAutoscalingPoliciesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List policies_ = - java.util.Collections.emptyList(); - - private void ensurePoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList(policies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - policiesBuilder_; - - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getPoliciesList() { - if (policiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policies_); - } else { - return policiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getPoliciesCount() { - if (policiesBuilder_ == null) { - return policies_.size(); - } else { - return policiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPolicies( - int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.set(index, value); - onChanged(); - } else { - policiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPolicies( - int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.set(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(value); - onChanged(); - } else { - policiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies( - int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(index, value); - onChanged(); - } else { - policiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies( - int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllPolicies( - java.lang.Iterable values) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); - onChanged(); - } else { - policiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPolicies() { - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removePolicies(int index) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.remove(index); - onChanged(); - } else { - policiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder( - int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPoliciesOrBuilderList() { - if (policiesBuilder_ != null) { - return policiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policies_); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPoliciesBuilderList() { - return getPoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - getPoliciesFieldBuilder() { - if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - policies_ = null; - } - return policiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - private static final com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse(); - } - - public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAutoscalingPoliciesResponse(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.dataproc.v1beta2.ListAutoscalingPoliciesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java deleted file mode 100644 index 9cdac1f0..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java +++ /dev/null @@ -1,114 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListAutoscalingPoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getPoliciesList(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getPoliciesCount(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getPoliciesOrBuilderList(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequest.java deleted file mode 100644 index 75d71d1d..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequest.java +++ /dev/null @@ -1,1369 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to list the clusters in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListClustersRequest} - */ -public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListClustersRequest) - ListClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListClustersRequest.newBuilder() to construct. - private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListClustersRequest() { - projectId_ = ""; - region_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListClustersRequest( - 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(); - - projectId_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListClustersRequest.class, - com.google.cloud.dataproc.v1beta2.ListClustersRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 4; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional.  A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.  A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The standard List page size.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); - } - 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.dataproc.v1beta2.ListClustersRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListClustersRequest other = - (com.google.cloud.dataproc.v1beta2.ListClustersRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().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.dataproc.v1beta2.ListClustersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest 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.dataproc.v1beta2.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest 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.dataproc.v1beta2.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest 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.dataproc.v1beta2.ListClustersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list the clusters in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListClustersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListClustersRequest) - com.google.cloud.dataproc.v1beta2.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListClustersRequest.class, - com.google.cloud.dataproc.v1beta2.ListClustersRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListClustersRequest.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(); - projectId_ = ""; - - region_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersRequest build() { - com.google.cloud.dataproc.v1beta2.ListClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.ListClustersRequest result = - new com.google.cloud.dataproc.v1beta2.ListClustersRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - 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.dataproc.v1beta2.ListClustersRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListClustersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ListClustersRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.ListClustersRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - 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.dataproc.v1beta2.ListClustersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListClustersRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional.  A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.  A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.  A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.  A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.  A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1beta2.ListClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersRequest) - private static final com.google.cloud.dataproc.v1beta2.ListClustersRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListClustersRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClustersRequest(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.dataproc.v1beta2.ListClustersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequestOrBuilder.java deleted file mode 100644 index 8ed7527e..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,168 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListClustersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Optional.  A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional.  A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. The standard List page size.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponse.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponse.java deleted file mode 100644 index c7e75802..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponse.java +++ /dev/null @@ -1,1189 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The list of all clusters in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListClustersResponse} - */ -public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListClustersResponse) - ListClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListClustersResponse.newBuilder() to construct. - private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListClustersResponse() { - clusters_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListClustersResponse( - 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)) { - clusters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clusters_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.Cluster.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)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListClustersResponse.class, - com.google.cloud.dataproc.v1beta2.ListClustersResponse.Builder.class); - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - private java.util.List clusters_; - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getClustersList() { - return clusters_; - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getClustersOrBuilderList() { - return clusters_; - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getClustersCount() { - return clusters_.size(); - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster getClusters(int index) { - return clusters_.get(index); - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClustersOrBuilder(int index) { - return clusters_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListClustersRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListClustersRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < clusters_.size(); i++) { - output.writeMessage(1, clusters_.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 < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.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.dataproc.v1beta2.ListClustersResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListClustersResponse other = - (com.google.cloud.dataproc.v1beta2.ListClustersResponse) obj; - - if (!getClustersList().equals(other.getClustersList())) 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 (getClustersCount() > 0) { - hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; - hash = (53 * hash) + getClustersList().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.dataproc.v1beta2.ListClustersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse 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.dataproc.v1beta2.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse 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.dataproc.v1beta2.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse 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.dataproc.v1beta2.ListClustersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of all clusters in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListClustersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListClustersResponse) - com.google.cloud.dataproc.v1beta2.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListClustersResponse.class, - com.google.cloud.dataproc.v1beta2.ListClustersResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListClustersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClustersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clustersBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersResponse build() { - com.google.cloud.dataproc.v1beta2.ListClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListClustersResponse buildPartial() { - com.google.cloud.dataproc.v1beta2.ListClustersResponse result = - new com.google.cloud.dataproc.v1beta2.ListClustersResponse(this); - int from_bitField0_ = bitField0_; - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.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.dataproc.v1beta2.ListClustersResponse) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListClustersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ListClustersResponse other) { - if (other == com.google.cloud.dataproc.v1beta2.ListClustersResponse.getDefaultInstance()) - return this; - if (clustersBuilder_ == null) { - if (!other.clusters_.isEmpty()) { - if (clusters_.isEmpty()) { - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClustersIsMutable(); - clusters_.addAll(other.clusters_); - } - onChanged(); - } - } else { - if (!other.clusters_.isEmpty()) { - if (clustersBuilder_.isEmpty()) { - clustersBuilder_.dispose(); - clustersBuilder_ = null; - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClustersFieldBuilder() - : null; - } else { - clustersBuilder_.addAllMessages(other.clusters_); - } - } - } - 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.dataproc.v1beta2.ListClustersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListClustersResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List clusters_ = - java.util.Collections.emptyList(); - - private void ensureClustersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusters_ = new java.util.ArrayList(clusters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - clustersBuilder_; - - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getClustersList() { - if (clustersBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusters_); - } else { - return clustersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getClustersCount() { - if (clustersBuilder_ == null) { - return clusters_.size(); - } else { - return clustersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster getClusters(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setClusters(int index, com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.set(index, value); - onChanged(); - } else { - clustersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setClusters( - int index, com.google.cloud.dataproc.v1beta2.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.set(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(value); - onChanged(); - } else { - clustersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(int index, com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(index, value); - onChanged(); - } else { - clustersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(com.google.cloud.dataproc.v1beta2.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters( - int index, com.google.cloud.dataproc.v1beta2.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllClusters( - java.lang.Iterable values) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); - onChanged(); - } else { - clustersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearClusters() { - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clustersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeClusters(int index) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.remove(index); - onChanged(); - } else { - clustersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster.Builder getClustersBuilder(int index) { - return getClustersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClustersOrBuilder(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getClustersOrBuilderList() { - if (clustersBuilder_ != null) { - return clustersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusters_); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster.Builder addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getClustersBuilderList() { - return getClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - getClustersFieldBuilder() { - if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - clusters_ = null; - } - return clustersBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListClustersRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListClustersRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListClustersRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListClustersRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListClustersRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1beta2.ListClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListClustersResponse) - private static final com.google.cloud.dataproc.v1beta2.ListClustersResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListClustersResponse(); - } - - public static com.google.cloud.dataproc.v1beta2.ListClustersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClustersResponse(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.dataproc.v1beta2.ListClustersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponseOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponseOrBuilder.java deleted file mode 100644 index f2f2af0f..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,116 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListClustersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getClustersList(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.Cluster getClusters(int index); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getClustersCount(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getClustersOrBuilderList(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClustersOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListClustersRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListClustersRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequest.java deleted file mode 100644 index bff2ff49..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequest.java +++ /dev/null @@ -1,1875 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to list jobs in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListJobsRequest} - */ -public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListJobsRequest) - ListJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListJobsRequest.newBuilder() to construct. - private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListJobsRequest() { - projectId_ = ""; - region_ = ""; - pageToken_ = ""; - clusterName_ = ""; - jobStateMatcher_ = 0; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListJobsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListJobsRequest( - 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(); - - projectId_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - jobStateMatcher_ = rawValue; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListJobsRequest.class, - com.google.cloud.dataproc.v1beta2.ListJobsRequest.Builder.class); - } - - /** - * - * - *
-   * A matcher that specifies categories of job states.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher} - */ - public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Match all jobs, regardless of state.
-     * 
- * - * ALL = 0; - */ - ALL(0), - /** - * - * - *
-     * Only match jobs in non-terminal states: PENDING, RUNNING, or
-     * CANCEL_PENDING.
-     * 
- * - * ACTIVE = 1; - */ - ACTIVE(1), - /** - * - * - *
-     * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
-     * 
- * - * NON_ACTIVE = 2; - */ - NON_ACTIVE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Match all jobs, regardless of state.
-     * 
- * - * ALL = 0; - */ - public static final int ALL_VALUE = 0; - /** - * - * - *
-     * Only match jobs in non-terminal states: PENDING, RUNNING, or
-     * CANCEL_PENDING.
-     * 
- * - * ACTIVE = 1; - */ - public static final int ACTIVE_VALUE = 1; - /** - * - * - *
-     * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
-     * 
- * - * NON_ACTIVE = 2; - */ - public static final int NON_ACTIVE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static JobStateMatcher 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 JobStateMatcher forNumber(int value) { - switch (value) { - case 0: - return ALL; - case 1: - return ACTIVE; - case 2: - return NON_ACTIVE; - 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 JobStateMatcher findValueByNumber(int number) { - return JobStateMatcher.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.dataproc.v1beta2.ListJobsRequest.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final JobStateMatcher[] VALUES = values(); - - public static JobStateMatcher 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 JobStateMatcher(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher) - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 6; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_STATE_MATCHER_FIELD_NUMBER = 5; - private int jobStateMatcher_; - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - @java.lang.Override - public int getJobStateMatcherValue() { - return jobStateMatcher_; - } - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher getJobStateMatcher() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; - } - - public static final int FILTER_FIELD_NUMBER = 7; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterName_); - } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - output.writeEnum(5, jobStateMatcher_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterName_); - } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobStateMatcher_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); - } - 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.dataproc.v1beta2.ListJobsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListJobsRequest other = - (com.google.cloud.dataproc.v1beta2.ListJobsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (jobStateMatcher_ != other.jobStateMatcher_) return false; - if (!getFilter().equals(other.getFilter())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + JOB_STATE_MATCHER_FIELD_NUMBER; - hash = (53 * hash) + jobStateMatcher_; - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest 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.dataproc.v1beta2.ListJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest 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.dataproc.v1beta2.ListJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest 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.dataproc.v1beta2.ListJobsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list jobs in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListJobsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListJobsRequest) - com.google.cloud.dataproc.v1beta2.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListJobsRequest.class, - com.google.cloud.dataproc.v1beta2.ListJobsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListJobsRequest.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(); - projectId_ = ""; - - region_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - clusterName_ = ""; - - jobStateMatcher_ = 0; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListJobsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsRequest build() { - com.google.cloud.dataproc.v1beta2.ListJobsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.ListJobsRequest result = - new com.google.cloud.dataproc.v1beta2.ListJobsRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.clusterName_ = clusterName_; - result.jobStateMatcher_ = jobStateMatcher_; - result.filter_ = filter_; - 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.dataproc.v1beta2.ListJobsRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListJobsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ListJobsRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.ListJobsRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.jobStateMatcher_ != 0) { - setJobStateMatcherValue(other.getJobStateMatcherValue()); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - 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.dataproc.v1beta2.ListJobsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListJobsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private int jobStateMatcher_ = 0; - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - @java.lang.Override - public int getJobStateMatcherValue() { - return jobStateMatcher_; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for jobStateMatcher to set. - * @return This builder for chaining. - */ - public Builder setJobStateMatcherValue(int value) { - - jobStateMatcher_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher getJobStateMatcher() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.valueOf( - jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The jobStateMatcher to set. - * @return This builder for chaining. - */ - public Builder setJobStateMatcher( - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher value) { - if (value == null) { - throw new NullPointerException(); - } - - jobStateMatcher_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearJobStateMatcher() { - - jobStateMatcher_ = 0; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - 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.dataproc.v1beta2.ListJobsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsRequest) - private static final com.google.cloud.dataproc.v1beta2.ListJobsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListJobsRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobsRequest(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.dataproc.v1beta2.ListJobsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequestOrBuilder.java deleted file mode 100644 index 26f74cf4..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequestOrBuilder.java +++ /dev/null @@ -1,220 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListJobsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListJobsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Optional. The number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - int getJobStateMatcherValue(); - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - com.google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher getJobStateMatcher(); - - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponse.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponse.java deleted file mode 100644 index 86754c14..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponse.java +++ /dev/null @@ -1,1187 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A list of jobs in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListJobsResponse} - */ -public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListJobsResponse) - ListJobsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListJobsResponse.newBuilder() to construct. - private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListJobsResponse() { - jobs_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListJobsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListJobsResponse( - 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)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - jobs_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.Job.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)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListJobsResponse.class, - com.google.cloud.dataproc.v1beta2.ListJobsResponse.Builder.class); - } - - public static final int JOBS_FIELD_NUMBER = 1; - private java.util.List jobs_; - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getJobsList() { - return jobs_; - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getJobsOrBuilderList() { - return jobs_; - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobsOrBuilder(int index) { - return jobs_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 < jobs_.size(); i++) { - output.writeMessage(1, jobs_.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 < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.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.dataproc.v1beta2.ListJobsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListJobsResponse other = - (com.google.cloud.dataproc.v1beta2.ListJobsResponse) obj; - - if (!getJobsList().equals(other.getJobsList())) 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 (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().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.dataproc.v1beta2.ListJobsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse 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.dataproc.v1beta2.ListJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse 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.dataproc.v1beta2.ListJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse 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.dataproc.v1beta2.ListJobsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of jobs in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListJobsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListJobsResponse) - com.google.cloud.dataproc.v1beta2.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListJobsResponse.class, - com.google.cloud.dataproc.v1beta2.ListJobsResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListJobsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getJobsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - jobsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListJobsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsResponse build() { - com.google.cloud.dataproc.v1beta2.ListJobsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListJobsResponse buildPartial() { - com.google.cloud.dataproc.v1beta2.ListJobsResponse result = - new com.google.cloud.dataproc.v1beta2.ListJobsResponse(this); - int from_bitField0_ = bitField0_; - if (jobsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.jobs_ = jobs_; - } else { - result.jobs_ = jobsBuilder_.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.dataproc.v1beta2.ListJobsResponse) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListJobsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ListJobsResponse other) { - if (other == com.google.cloud.dataproc.v1beta2.ListJobsResponse.getDefaultInstance()) - return this; - if (jobsBuilder_ == null) { - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - } else { - if (!other.jobs_.isEmpty()) { - if (jobsBuilder_.isEmpty()) { - jobsBuilder_.dispose(); - jobsBuilder_ = null; - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobsFieldBuilder() - : null; - } else { - jobsBuilder_.addAllMessages(other.jobs_); - } - } - } - 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.dataproc.v1beta2.ListJobsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListJobsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List jobs_ = - java.util.Collections.emptyList(); - - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - jobs_ = new java.util.ArrayList(jobs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - jobsBuilder_; - - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getJobsList() { - if (jobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobs_); - } else { - return jobsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getJobsCount() { - if (jobsBuilder_ == null) { - return jobs_.size(); - } else { - return jobsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job getJobs(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1beta2.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - } else { - jobsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1beta2.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.set(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1beta2.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - } else { - jobsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1beta2.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(index, value); - onChanged(); - } else { - jobsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1beta2.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1beta2.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllJobs( - java.lang.Iterable values) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - onChanged(); - } else { - jobsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearJobs() { - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - jobsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeJobs(int index) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.remove(index); - onChanged(); - } else { - jobsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job.Builder getJobsBuilder(int index) { - return getJobsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobsOrBuilder(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getJobsOrBuilderList() { - if (jobsBuilder_ != null) { - return jobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobs_); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getJobsBuilderList() { - return getJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - getJobsFieldBuilder() { - if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder>( - jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - jobs_ = null; - } - return jobsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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.dataproc.v1beta2.ListJobsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListJobsResponse) - private static final com.google.cloud.dataproc.v1beta2.ListJobsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListJobsResponse(); - } - - public static com.google.cloud.dataproc.v1beta2.ListJobsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobsResponse(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.dataproc.v1beta2.ListJobsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponseOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponseOrBuilder.java deleted file mode 100644 index 2577420f..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponseOrBuilder.java +++ /dev/null @@ -1,115 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListJobsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListJobsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getJobsList(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.Job getJobs(int index); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getJobsCount(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getJobsOrBuilderList(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobsOrBuilder(int index); - - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequest.java deleted file mode 100644 index b4215cc6..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequest.java +++ /dev/null @@ -1,982 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to list workflow templates in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest} - */ -public final class ListWorkflowTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - ListWorkflowTemplatesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowTemplatesRequest.newBuilder() to construct. - private ListWorkflowTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowTemplatesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkflowTemplatesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListWorkflowTemplatesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.dataproc.v1beta2.ListWorkflowTemplatesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest other = - (com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) obj; - - 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; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest 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.dataproc.v1beta2.ListWorkflowTemplatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest 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.dataproc.v1beta2.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest 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.dataproc.v1beta2.ListWorkflowTemplatesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list workflow templates in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.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_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest build() { - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest result = - new com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest(this); - result.parent_ = parent_; - 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.dataproc.v1beta2.ListWorkflowTemplatesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.dataproc.v1beta2.ListWorkflowTemplatesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 int pageSize_; - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1beta2.ListWorkflowTemplatesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - private static final com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkflowTemplatesRequest(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.dataproc.v1beta2.ListWorkflowTemplatesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequestOrBuilder.java deleted file mode 100644 index 20cfa728..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequestOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListWorkflowTemplatesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponse.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponse.java deleted file mode 100644 index f1268001..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponse.java +++ /dev/null @@ -1,1207 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A response to a request to list workflow templates in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse} - */ -public final class ListWorkflowTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - ListWorkflowTemplatesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowTemplatesResponse.newBuilder() to construct. - private ListWorkflowTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowTemplatesResponse() { - templates_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkflowTemplatesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListWorkflowTemplatesResponse( - 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)) { - templates_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - templates_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.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)) { - templates_ = java.util.Collections.unmodifiableList(templates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.Builder.class); - } - - public static final int TEMPLATES_FIELD_NUMBER = 1; - private java.util.List templates_; - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getTemplatesList() { - return templates_; - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getTemplatesOrBuilderList() { - return templates_; - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getTemplatesCount() { - return templates_.size(); - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplates(int index) { - return templates_.get(index); - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplatesOrBuilder( - int index) { - return templates_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < templates_.size(); i++) { - output.writeMessage(1, templates_.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 < templates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, templates_.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.dataproc.v1beta2.ListWorkflowTemplatesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse other = - (com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) obj; - - if (!getTemplatesList().equals(other.getTemplatesList())) 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 (getTemplatesCount() > 0) { - hash = (37 * hash) + TEMPLATES_FIELD_NUMBER; - hash = (53 * hash) + getTemplatesList().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.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse 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.dataproc.v1beta2.ListWorkflowTemplatesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse 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.dataproc.v1beta2.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse 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.dataproc.v1beta2.ListWorkflowTemplatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 response to a request to list workflow templates in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTemplatesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (templatesBuilder_ == null) { - templates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - templatesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse build() { - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse buildPartial() { - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse result = - new com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse(this); - int from_bitField0_ = bitField0_; - if (templatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - templates_ = java.util.Collections.unmodifiableList(templates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.templates_ = templates_; - } else { - result.templates_ = templatesBuilder_.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.dataproc.v1beta2.ListWorkflowTemplatesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse other) { - if (other - == com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse.getDefaultInstance()) - return this; - if (templatesBuilder_ == null) { - if (!other.templates_.isEmpty()) { - if (templates_.isEmpty()) { - templates_ = other.templates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTemplatesIsMutable(); - templates_.addAll(other.templates_); - } - onChanged(); - } - } else { - if (!other.templates_.isEmpty()) { - if (templatesBuilder_.isEmpty()) { - templatesBuilder_.dispose(); - templatesBuilder_ = null; - templates_ = other.templates_; - bitField0_ = (bitField0_ & ~0x00000001); - templatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTemplatesFieldBuilder() - : null; - } else { - templatesBuilder_.addAllMessages(other.templates_); - } - } - } - 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.dataproc.v1beta2.ListWorkflowTemplatesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List templates_ = - java.util.Collections.emptyList(); - - private void ensureTemplatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - templates_ = - new java.util.ArrayList(templates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - templatesBuilder_; - - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getTemplatesList() { - if (templatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(templates_); - } else { - return templatesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getTemplatesCount() { - if (templatesBuilder_ == null) { - return templates_.size(); - } else { - return templatesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplates(int index) { - if (templatesBuilder_ == null) { - return templates_.get(index); - } else { - return templatesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTemplates( - int index, com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.set(index, value); - onChanged(); - } else { - templatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTemplates( - int index, com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.set(index, builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.add(value); - onChanged(); - } else { - templatesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates( - int index, com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.add(index, value); - onChanged(); - } else { - templatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates( - int index, com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(index, builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllTemplates( - java.lang.Iterable values) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, templates_); - onChanged(); - } else { - templatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTemplates() { - if (templatesBuilder_ == null) { - templates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - templatesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeTemplates(int index) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.remove(index); - onChanged(); - } else { - templatesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder getTemplatesBuilder( - int index) { - return getTemplatesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplatesOrBuilder( - int index) { - if (templatesBuilder_ == null) { - return templates_.get(index); - } else { - return templatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getTemplatesOrBuilderList() { - if (templatesBuilder_ != null) { - return templatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(templates_); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder addTemplatesBuilder() { - return getTemplatesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder addTemplatesBuilder( - int index) { - return getTemplatesFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getTemplatesBuilderList() { - return getTemplatesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - getTemplatesFieldBuilder() { - if (templatesBuilder_ == null) { - templatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder>( - templates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - templates_ = null; - } - return templatesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1beta2.ListWorkflowTemplatesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - private static final com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse(); - } - - public static com.google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkflowTemplatesResponse(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.dataproc.v1beta2.ListWorkflowTemplatesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponseOrBuilder.java deleted file mode 100644 index 507f5e0b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponseOrBuilder.java +++ /dev/null @@ -1,116 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ListWorkflowTemplatesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getTemplatesList(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplates(int index); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getTemplatesCount(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getTemplatesOrBuilderList(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java deleted file mode 100644 index 76109225..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfig.java deleted file mode 100644 index b2c112e9..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfig.java +++ /dev/null @@ -1,1360 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The runtime logging config of the job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.LoggingConfig} - */ -public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.LoggingConfig) - LoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingConfig.newBuilder() to construct. - private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LoggingConfig( - 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 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - driverLogLevels_ = - com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry driverLogLevels__ = - input.readMessage( - DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - driverLogLevels_ - .getMutableMap() - .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); - 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.LoggingConfig.class, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder.class); - } - - /** - * - * - *
-   * The Log4j level for job execution. When running an
-   * [Apache Hive](http://hive.apache.org/) job, Cloud
-   * Dataproc configures the Hive client to an equivalent verbosity level.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.LoggingConfig.Level} - */ - public enum Level implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Level is unspecified. Use default level for log4j.
-     * 
- * - * LEVEL_UNSPECIFIED = 0; - */ - LEVEL_UNSPECIFIED(0), - /** - * - * - *
-     * Use ALL level for log4j.
-     * 
- * - * ALL = 1; - */ - ALL(1), - /** - * - * - *
-     * Use TRACE level for log4j.
-     * 
- * - * TRACE = 2; - */ - TRACE(2), - /** - * - * - *
-     * Use DEBUG level for log4j.
-     * 
- * - * DEBUG = 3; - */ - DEBUG(3), - /** - * - * - *
-     * Use INFO level for log4j.
-     * 
- * - * INFO = 4; - */ - INFO(4), - /** - * - * - *
-     * Use WARN level for log4j.
-     * 
- * - * WARN = 5; - */ - WARN(5), - /** - * - * - *
-     * Use ERROR level for log4j.
-     * 
- * - * ERROR = 6; - */ - ERROR(6), - /** - * - * - *
-     * Use FATAL level for log4j.
-     * 
- * - * FATAL = 7; - */ - FATAL(7), - /** - * - * - *
-     * Turn off log4j.
-     * 
- * - * OFF = 8; - */ - OFF(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Level is unspecified. Use default level for log4j.
-     * 
- * - * LEVEL_UNSPECIFIED = 0; - */ - public static final int LEVEL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Use ALL level for log4j.
-     * 
- * - * ALL = 1; - */ - public static final int ALL_VALUE = 1; - /** - * - * - *
-     * Use TRACE level for log4j.
-     * 
- * - * TRACE = 2; - */ - public static final int TRACE_VALUE = 2; - /** - * - * - *
-     * Use DEBUG level for log4j.
-     * 
- * - * DEBUG = 3; - */ - public static final int DEBUG_VALUE = 3; - /** - * - * - *
-     * Use INFO level for log4j.
-     * 
- * - * INFO = 4; - */ - public static final int INFO_VALUE = 4; - /** - * - * - *
-     * Use WARN level for log4j.
-     * 
- * - * WARN = 5; - */ - public static final int WARN_VALUE = 5; - /** - * - * - *
-     * Use ERROR level for log4j.
-     * 
- * - * ERROR = 6; - */ - public static final int ERROR_VALUE = 6; - /** - * - * - *
-     * Use FATAL level for log4j.
-     * 
- * - * FATAL = 7; - */ - public static final int FATAL_VALUE = 7; - /** - * - * - *
-     * Turn off log4j.
-     * 
- * - * OFF = 8; - */ - public static final int OFF_VALUE = 8; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Level valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Level forNumber(int value) { - switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return ALL; - case 2: - return TRACE; - case 3: - return DEBUG; - case 4: - return INFO; - case 5: - return WARN; - case 6: - return ERROR; - case 7: - return FATAL; - case 8: - return OFF; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.LoggingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Level[] VALUES = values(); - - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Level(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.LoggingConfig.Level) - } - - public static final int DRIVER_LOG_LEVELS_FIELD_NUMBER = 2; - - private static final class DriverLogLevelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_DriverLogLevelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); - } - - private com.google.protobuf.MapField driverLogLevels_; - - private com.google.protobuf.MapField - internalGetDriverLogLevels() { - if (driverLogLevels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - return driverLogLevels_; - } - - private static final com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level> - driverLogLevelsValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Level.internalGetValueMap(), - com.google.cloud.dataproc.v1beta2.LoggingConfig.Level.UNRECOGNIZED); - - private static final java.util.Map< - java.lang.String, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level> - internalGetAdaptedDriverLogLevelsMap(java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level, java.lang.Integer>( - map, driverLogLevelsValueConverter); - } - - public int getDriverLogLevelsCount() { - return internalGetDriverLogLevels().getMap().size(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetDriverLogLevels().getMap().containsKey(key); - } - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getDriverLogLevels() { - return getDriverLogLevelsMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return driverLogLevelsValueConverter.doForward(map.get(key)); - } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { - return getDriverLogLevelsValueMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { - return internalGetDriverLogLevels().getMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDriverLogLevels(), DriverLogLevelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetDriverLogLevels().getMap().entrySet()) { - com.google.protobuf.MapEntry driverLogLevels__ = - DriverLogLevelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, driverLogLevels__); - } - 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.dataproc.v1beta2.LoggingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.LoggingConfig other = - (com.google.cloud.dataproc.v1beta2.LoggingConfig) obj; - - if (!internalGetDriverLogLevels().equals(other.internalGetDriverLogLevels())) 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 (!internalGetDriverLogLevels().getMap().isEmpty()) { - hash = (37 * hash) + DRIVER_LOG_LEVELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDriverLogLevels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig 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.dataproc.v1beta2.LoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig 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.dataproc.v1beta2.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig 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.dataproc.v1beta2.LoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 runtime logging config of the job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.LoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.LoggingConfig) - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.LoggingConfig.class, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.LoggingConfig.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(); - internalGetMutableDriverLogLevels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_LoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig build() { - com.google.cloud.dataproc.v1beta2.LoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.LoggingConfig result = - new com.google.cloud.dataproc.v1beta2.LoggingConfig(this); - int from_bitField0_ = bitField0_; - result.driverLogLevels_ = internalGetDriverLogLevels(); - result.driverLogLevels_.makeImmutable(); - 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.dataproc.v1beta2.LoggingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.LoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.LoggingConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance()) - return this; - internalGetMutableDriverLogLevels().mergeFrom(other.internalGetDriverLogLevels()); - 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.dataproc.v1beta2.LoggingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.LoggingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField driverLogLevels_; - - private com.google.protobuf.MapField - internalGetDriverLogLevels() { - if (driverLogLevels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - return driverLogLevels_; - } - - private com.google.protobuf.MapField - internalGetMutableDriverLogLevels() { - onChanged(); - ; - if (driverLogLevels_ == null) { - driverLogLevels_ = - com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - if (!driverLogLevels_.isMutable()) { - driverLogLevels_ = driverLogLevels_.copy(); - } - return driverLogLevels_; - } - - public int getDriverLogLevelsCount() { - return internalGetDriverLogLevels().getMap().size(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetDriverLogLevels().getMap().containsKey(key); - } - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getDriverLogLevels() { - return getDriverLogLevelsMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return driverLogLevelsValueConverter.doForward(map.get(key)); - } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { - return getDriverLogLevelsValueMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { - return internalGetDriverLogLevels().getMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDriverLogLevels() { - internalGetMutableDriverLogLevels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder removeDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableDriverLogLevels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableDriverLogLevels() { - return internalGetAdaptedDriverLogLevelsMap( - internalGetMutableDriverLogLevels().getMutableMap()); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putDriverLogLevels( - java.lang.String key, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableDriverLogLevels() - .getMutableMap() - .put(key, driverLogLevelsValueConverter.doBackward(value)); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putAllDriverLogLevels( - java.util.Map - values) { - internalGetAdaptedDriverLogLevelsMap(internalGetMutableDriverLogLevels().getMutableMap()) - .putAll(values); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableDriverLogLevelsValue() { - return internalGetMutableDriverLogLevels().getMutableMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putDriverLogLevelsValue(java.lang.String key, int value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableDriverLogLevels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putAllDriverLogLevelsValue( - java.util.Map values) { - internalGetMutableDriverLogLevels().getMutableMap().putAll(values); - 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.dataproc.v1beta2.LoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.LoggingConfig) - private static final com.google.cloud.dataproc.v1beta2.LoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.LoggingConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.LoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoggingConfig(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.dataproc.v1beta2.LoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfigOrBuilder.java deleted file mode 100644 index 80b906f8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfigOrBuilder.java +++ /dev/null @@ -1,156 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface LoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.LoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsCount(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - boolean containsDriverLogLevels(java.lang.String key); - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getDriverLogLevels(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - java.util.Map - getDriverLogLevelsMap(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, com.google.cloud.dataproc.v1beta2.LoggingConfig.Level defaultValue); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key); - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Deprecated - java.util.Map getDriverLogLevelsValue(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - java.util.Map getDriverLogLevelsValueMap(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * - * map<string, .google.cloud.dataproc.v1beta2.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsValueOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedCluster.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedCluster.java deleted file mode 100644 index 7db14357..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedCluster.java +++ /dev/null @@ -1,1331 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Cluster that is managed by the workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ManagedCluster} - */ -public final class ManagedCluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ManagedCluster) - ManagedClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedCluster.newBuilder() to construct. - private ManagedCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedCluster() { - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedCluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ManagedCluster( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - 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; - } - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ManagedCluster.class, - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1beta2.ClusterConfig config_; - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return The config. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - @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; - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - @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); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (config_ != null) { - output.writeMessage(3, getConfig()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); - } - 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(4, labels__); - } - 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.dataproc.v1beta2.ManagedCluster)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ManagedCluster other = - (com.google.cloud.dataproc.v1beta2.ManagedCluster) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) 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) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster 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.dataproc.v1beta2.ManagedCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster 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.dataproc.v1beta2.ManagedCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster 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.dataproc.v1beta2.ManagedCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Cluster that is managed by the workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ManagedCluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ManagedCluster) - com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ManagedCluster.class, - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ManagedCluster.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(); - clusterName_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedCluster getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedCluster build() { - com.google.cloud.dataproc.v1beta2.ManagedCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedCluster buildPartial() { - com.google.cloud.dataproc.v1beta2.ManagedCluster result = - new com.google.cloud.dataproc.v1beta2.ManagedCluster(this); - int from_bitField0_ = bitField0_; - result.clusterName_ = clusterName_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - 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.dataproc.v1beta2.ManagedCluster) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ManagedCluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ManagedCluster other) { - if (other == com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance()) - return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - 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.dataproc.v1beta2.ManagedCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.ManagedCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return The config. - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public Builder setConfig(com.google.cloud.dataproc.v1beta2.ClusterConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public Builder setConfig( - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public Builder mergeConfig(com.google.cloud.dataproc.v1beta2.ClusterConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dataproc.v1beta2.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - public com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterConfig.getDefaultInstance() - : config_; - } - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterConfig, - com.google.cloud.dataproc.v1beta2.ClusterConfig.Builder, - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - 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; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - 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.dataproc.v1beta2.ManagedCluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedCluster) - private static final com.google.cloud.dataproc.v1beta2.ManagedCluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ManagedCluster(); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedCluster(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.dataproc.v1beta2.ManagedCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedClusterOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedClusterOrBuilder.java deleted file mode 100644 index 33c11754..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedClusterOrBuilder.java +++ /dev/null @@ -1,177 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ManagedClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ManagedCluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - * - * @return The config. - */ - com.google.cloud.dataproc.v1beta2.ClusterConfig getConfig(); - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterConfig config = 3; - */ - com.google.cloud.dataproc.v1beta2.ClusterConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfig.java deleted file mode 100644 index 4440c003..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfig.java +++ /dev/null @@ -1,830 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies the resources used to actively manage an instance group.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ManagedGroupConfig} - */ -public final class ManagedGroupConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ManagedGroupConfig) - ManagedGroupConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedGroupConfig.newBuilder() to construct. - private ManagedGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedGroupConfig() { - instanceTemplateName_ = ""; - instanceGroupManagerName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedGroupConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ManagedGroupConfig( - 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(); - - instanceTemplateName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceGroupManagerName_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder.class); - } - - public static final int INSTANCE_TEMPLATE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceTemplateName_; - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - @java.lang.Override - public java.lang.String getInstanceTemplateName() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceTemplateName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceGroupManagerName_; - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - @java.lang.Override - public java.lang.String getInstanceGroupManagerName() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceGroupManagerName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceGroupManagerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInstanceTemplateNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceTemplateName_); - } - if (!getInstanceGroupManagerNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupManagerName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getInstanceTemplateNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceTemplateName_); - } - if (!getInstanceGroupManagerNameBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); - } - 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.dataproc.v1beta2.ManagedGroupConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig other = - (com.google.cloud.dataproc.v1beta2.ManagedGroupConfig) obj; - - if (!getInstanceTemplateName().equals(other.getInstanceTemplateName())) return false; - if (!getInstanceGroupManagerName().equals(other.getInstanceGroupManagerName())) 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) + INSTANCE_TEMPLATE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInstanceTemplateName().hashCode(); - hash = (37 * hash) + INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInstanceGroupManagerName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig 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.dataproc.v1beta2.ManagedGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig 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.dataproc.v1beta2.ManagedGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig 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.dataproc.v1beta2.ManagedGroupConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the resources used to actively manage an instance group.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ManagedGroupConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ManagedGroupConfig) - com.google.cloud.dataproc.v1beta2.ManagedGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.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(); - instanceTemplateName_ = ""; - - instanceGroupManagerName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig build() { - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedGroupConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.ManagedGroupConfig result = - new com.google.cloud.dataproc.v1beta2.ManagedGroupConfig(this); - result.instanceTemplateName_ = instanceTemplateName_; - result.instanceGroupManagerName_ = instanceGroupManagerName_; - 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.dataproc.v1beta2.ManagedGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ManagedGroupConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ManagedGroupConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.ManagedGroupConfig.getDefaultInstance()) - return this; - if (!other.getInstanceTemplateName().isEmpty()) { - instanceTemplateName_ = other.instanceTemplateName_; - onChanged(); - } - if (!other.getInstanceGroupManagerName().isEmpty()) { - instanceGroupManagerName_ = other.instanceGroupManagerName_; - 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.dataproc.v1beta2.ManagedGroupConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ManagedGroupConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object instanceTemplateName_ = ""; - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - public java.lang.String getInstanceTemplateName() { - java.lang.Object ref = instanceTemplateName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceTemplateName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The instanceTemplateName to set. - * @return This builder for chaining. - */ - public Builder setInstanceTemplateName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceTemplateName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearInstanceTemplateName() { - - instanceTemplateName_ = getDefaultInstance().getInstanceTemplateName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for instanceTemplateName to set. - * @return This builder for chaining. - */ - public Builder setInstanceTemplateNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceTemplateName_ = value; - onChanged(); - return this; - } - - private java.lang.Object instanceGroupManagerName_ = ""; - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - public java.lang.String getInstanceGroupManagerName() { - java.lang.Object ref = instanceGroupManagerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceGroupManagerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceGroupManagerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The instanceGroupManagerName to set. - * @return This builder for chaining. - */ - public Builder setInstanceGroupManagerName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceGroupManagerName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearInstanceGroupManagerName() { - - instanceGroupManagerName_ = getDefaultInstance().getInstanceGroupManagerName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for instanceGroupManagerName to set. - * @return This builder for chaining. - */ - public Builder setInstanceGroupManagerNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceGroupManagerName_ = 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.dataproc.v1beta2.ManagedGroupConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ManagedGroupConfig) - private static final com.google.cloud.dataproc.v1beta2.ManagedGroupConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ManagedGroupConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.ManagedGroupConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedGroupConfig(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.dataproc.v1beta2.ManagedGroupConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfigOrBuilder.java deleted file mode 100644 index ec296064..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfigOrBuilder.java +++ /dev/null @@ -1,79 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ManagedGroupConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ManagedGroupConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - java.lang.String getInstanceTemplateName(); - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - com.google.protobuf.ByteString getInstanceTemplateNameBytes(); - - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - java.lang.String getInstanceGroupManagerName(); - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - com.google.protobuf.ByteString getInstanceGroupManagerNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationAction.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationAction.java deleted file mode 100644 index b93af6ac..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationAction.java +++ /dev/null @@ -1,999 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies an executable to run on a fully configured node and a
- * timeout period for executable completion.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.NodeInitializationAction} - */ -public final class NodeInitializationAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.NodeInitializationAction) - NodeInitializationActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeInitializationAction.newBuilder() to construct. - private NodeInitializationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeInitializationAction() { - executableFile_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeInitializationAction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodeInitializationAction( - 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(); - - executableFile_ = s; - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (executionTimeout_ != null) { - subBuilder = executionTimeout_.toBuilder(); - } - executionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTimeout_); - executionTimeout_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.class, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder.class); - } - - public static final int EXECUTABLE_FILE_FIELD_NUMBER = 1; - private volatile java.lang.Object executableFile_; - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - @java.lang.Override - public java.lang.String getExecutableFile() { - java.lang.Object ref = executableFile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executableFile_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExecutableFileBytes() { - java.lang.Object ref = executableFile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - executableFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; - private com.google.protobuf.Duration executionTimeout_; - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - @java.lang.Override - public boolean hasExecutionTimeout() { - return executionTimeout_ != null; - } - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - return getExecutionTimeout(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getExecutableFileBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executableFile_); - } - if (executionTimeout_ != null) { - output.writeMessage(2, getExecutionTimeout()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecutableFileBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executableFile_); - } - if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); - } - 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.dataproc.v1beta2.NodeInitializationAction)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.NodeInitializationAction other = - (com.google.cloud.dataproc.v1beta2.NodeInitializationAction) obj; - - if (!getExecutableFile().equals(other.getExecutableFile())) return false; - if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; - if (hasExecutionTimeout()) { - if (!getExecutionTimeout().equals(other.getExecutionTimeout())) 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) + EXECUTABLE_FILE_FIELD_NUMBER; - hash = (53 * hash) + getExecutableFile().hashCode(); - if (hasExecutionTimeout()) { - hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getExecutionTimeout().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction 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.dataproc.v1beta2.NodeInitializationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction 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.dataproc.v1beta2.NodeInitializationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction 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.dataproc.v1beta2.NodeInitializationAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies an executable to run on a fully configured node and a
-   * timeout period for executable completion.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.NodeInitializationAction} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.NodeInitializationAction) - com.google.cloud.dataproc.v1beta2.NodeInitializationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.class, - com.google.cloud.dataproc.v1beta2.NodeInitializationAction.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.NodeInitializationAction.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(); - executableFile_ = ""; - - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.NodeInitializationAction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction build() { - com.google.cloud.dataproc.v1beta2.NodeInitializationAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.NodeInitializationAction buildPartial() { - com.google.cloud.dataproc.v1beta2.NodeInitializationAction result = - new com.google.cloud.dataproc.v1beta2.NodeInitializationAction(this); - result.executableFile_ = executableFile_; - if (executionTimeoutBuilder_ == null) { - result.executionTimeout_ = executionTimeout_; - } else { - result.executionTimeout_ = executionTimeoutBuilder_.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.dataproc.v1beta2.NodeInitializationAction) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.NodeInitializationAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.NodeInitializationAction other) { - if (other == com.google.cloud.dataproc.v1beta2.NodeInitializationAction.getDefaultInstance()) - return this; - if (!other.getExecutableFile().isEmpty()) { - executableFile_ = other.executableFile_; - onChanged(); - } - if (other.hasExecutionTimeout()) { - mergeExecutionTimeout(other.getExecutionTimeout()); - } - 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.dataproc.v1beta2.NodeInitializationAction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.NodeInitializationAction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object executableFile_ = ""; - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - public java.lang.String getExecutableFile() { - java.lang.Object ref = executableFile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executableFile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - public com.google.protobuf.ByteString getExecutableFileBytes() { - java.lang.Object ref = executableFile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - executableFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The executableFile to set. - * @return This builder for chaining. - */ - public Builder setExecutableFile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executableFile_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearExecutableFile() { - - executableFile_ = getDefaultInstance().getExecutableFile(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for executableFile to set. - * @return This builder for chaining. - */ - public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executableFile_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration executionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - executionTimeoutBuilder_; - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - public boolean hasExecutionTimeout() { - return executionTimeoutBuilder_ != null || executionTimeout_ != null; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - public com.google.protobuf.Duration getExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } else { - return executionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionTimeout_ = value; - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = builderForValue.build(); - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (executionTimeout_ != null) { - executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - executionTimeout_ = value; - } - onChanged(); - } else { - executionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - onChanged(); - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - - onChanged(); - return getExecutionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - if (executionTimeoutBuilder_ != null) { - return executionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getExecutionTimeoutFieldBuilder() { - if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), getParentForChildren(), isClean()); - executionTimeout_ = null; - } - return executionTimeoutBuilder_; - } - - @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.dataproc.v1beta2.NodeInitializationAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.NodeInitializationAction) - private static final com.google.cloud.dataproc.v1beta2.NodeInitializationAction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.NodeInitializationAction(); - } - - public static com.google.cloud.dataproc.v1beta2.NodeInitializationAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInitializationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInitializationAction(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.dataproc.v1beta2.NodeInitializationAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationActionOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationActionOrBuilder.java deleted file mode 100644 index cd091b75..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationActionOrBuilder.java +++ /dev/null @@ -1,106 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface NodeInitializationActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.NodeInitializationAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - java.lang.String getExecutableFile(); - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - com.google.protobuf.ByteString getExecutableFileBytes(); - - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - boolean hasExecutionTimeout(); - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - com.google.protobuf.Duration getExecutionTimeout(); - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OperationsProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OperationsProto.java deleted file mode 100644 index 027f4e79..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OperationsProto.java +++ /dev/null @@ -1,121 +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/dataproc/v1beta2/operations.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class OperationsProto { - private OperationsProto() {} - - 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_dataproc_v1beta2_ClusterOperationStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_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/dataproc/v1beta2/operatio" - + "ns.proto\022\035google.cloud.dataproc.v1beta2\032" - + "\037google/protobuf/timestamp.proto\032\034google" - + "/api/annotations.proto\"\372\001\n\026ClusterOperat" - + "ionStatus\022J\n\005state\030\001 \001(\0162;.google.cloud." - + "dataproc.v1beta2.ClusterOperationStatus." - + "State\022\023\n\013inner_state\030\002 \001(\t\022\017\n\007details\030\003 " - + "\001(\t\0224\n\020state_start_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"8\n\005State\022\013\n\007UNKNOWN\020\000\022" - + "\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\"\237\003\n\030" - + "ClusterOperationMetadata\022\024\n\014cluster_name" - + "\030\007 \001(\t\022\024\n\014cluster_uuid\030\010 \001(\t\022E\n\006status\030\t" - + " \001(\01325.google.cloud.dataproc.v1beta2.Clu" - + "sterOperationStatus\022M\n\016status_history\030\n " - + "\003(\01325.google.cloud.dataproc.v1beta2.Clus" - + "terOperationStatus\022\026\n\016operation_type\030\013 \001" - + "(\t\022\023\n\013description\030\014 \001(\t\022S\n\006labels\030\r \003(\0132" - + "C.google.cloud.dataproc.v1beta2.ClusterO" - + "perationMetadata.LabelsEntry\022\020\n\010warnings" - + "\030\016 \003(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001B}\n!com.google.cloud.datapr" - + "oc.v1beta2B\017OperationsProtoP\001ZEgoogle.go" - + "lang.org/genproto/googleapis/cloud/datap" - + "roc/v1beta2;dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationStatus_descriptor, - new java.lang.String[] { - "State", "InnerState", "Details", "StateStartTime", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor, - new java.lang.String[] { - "ClusterName", - "ClusterUuid", - "Status", - "StatusHistory", - "OperationType", - "Description", - "Labels", - "Warnings", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java deleted file mode 100644 index 2ee2783a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java +++ /dev/null @@ -1,4395 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A job executed by the workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.OrderedJob} - */ -public final class OrderedJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.OrderedJob) - OrderedJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderedJob.newBuilder() to construct. - private OrderedJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OrderedJob() { - stepId_ = ""; - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OrderedJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OrderedJob( - 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(); - - stepId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder subBuilder = null; - if (jobTypeCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.HadoopJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 2; - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.SparkJob.Builder subBuilder = null; - if (jobTypeCase_ == 3) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder subBuilder = null; - if (jobTypeCase_ == 4) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PySparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 4; - break; - } - case 42: - { - com.google.cloud.dataproc.v1beta2.HiveJob.Builder subBuilder = null; - if (jobTypeCase_ == 5) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.HiveJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.HiveJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.HiveJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 5; - break; - } - case 50: - { - com.google.cloud.dataproc.v1beta2.PigJob.Builder subBuilder = null; - if (jobTypeCase_ == 6) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PigJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PigJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PigJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder subBuilder = null; - if (jobTypeCase_ == 7) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 7; - break; - } - case 66: - { - 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 74: - { - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder subBuilder = null; - if (scheduling_ != null) { - subBuilder = scheduling_.toBuilder(); - } - scheduling_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.JobScheduling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduling_); - scheduling_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - prerequisiteStepIds_.add(s); - break; - } - case 90: - { - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder subBuilder = null; - if (jobTypeCase_ == 11) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.SparkRJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 11; - break; - } - case 98: - { - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder subBuilder = null; - if (jobTypeCase_ == 12) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.PrestoJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 12; - 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_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.OrderedJob.class, - com.google.cloud.dataproc.v1beta2.OrderedJob.Builder.class); - } - - private int jobTypeCase_ = 0; - private java.lang.Object jobType_; - - public enum JobTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - HADOOP_JOB(2), - SPARK_JOB(3), - PYSPARK_JOB(4), - HIVE_JOB(5), - PIG_JOB(6), - SPARK_R_JOB(11), - SPARK_SQL_JOB(7), - PRESTO_JOB(12), - JOBTYPE_NOT_SET(0); - private final int value; - - private JobTypeCase(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 JobTypeCase valueOf(int value) { - return forNumber(value); - } - - public static JobTypeCase forNumber(int value) { - switch (value) { - case 2: - return HADOOP_JOB; - case 3: - return SPARK_JOB; - case 4: - return PYSPARK_JOB; - case 5: - return HIVE_JOB; - case 6: - return PIG_JOB; - case 11: - return SPARK_R_JOB; - case 7: - return SPARK_SQL_JOB; - case 12: - return PRESTO_JOB; - case 0: - return JOBTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object stepId_; - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-   * field from other steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - @java.lang.Override - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-   * field from other steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HADOOP_JOB_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return jobTypeCase_ == 2; - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - - public static final int SPARK_JOB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return jobTypeCase_ == 3; - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - - public static final int PYSPARK_JOB_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return jobTypeCase_ == 4; - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - - public static final int HIVE_JOB_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return jobTypeCase_ == 5; - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - - public static final int PIG_JOB_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return jobTypeCase_ == 6; - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - - public static final int SPARK_R_JOB_FIELD_NUMBER = 11; - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return jobTypeCase_ == 11; - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - - public static final int SPARK_SQL_JOB_FIELD_NUMBER = 7; - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return jobTypeCase_ == 7; - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - - public static final int PRESTO_JOB_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return jobTypeCase_ == 12; - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - - public static final int LABELS_FIELD_NUMBER = 8; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 SCHEDULING_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1beta2.JobScheduling scheduling_; - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - @java.lang.Override - public boolean hasScheduling() { - return scheduling_ != null; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); - } - - public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList prerequisiteStepIds_; - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_; - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); - } - if (jobTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_); - } - if (jobTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_); - } - if (jobTypeCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_); - } - if (jobTypeCase_ == 5) { - output.writeMessage(5, (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_); - } - if (jobTypeCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1beta2.PigJob) jobType_); - } - if (jobTypeCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (scheduling_ != null) { - output.writeMessage(9, getScheduling()); - } - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, prerequisiteStepIds_.getRaw(i)); - } - if (jobTypeCase_ == 11) { - output.writeMessage(11, (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_); - } - if (jobTypeCase_ == 12) { - output.writeMessage(12, (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStepIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); - } - if (jobTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_); - } - if (jobTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_); - } - if (jobTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_); - } - if (jobTypeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_); - } - if (jobTypeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1beta2.PigJob) jobType_); - } - if (jobTypeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_); - } - 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(8, labels__); - } - if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getScheduling()); - } - { - int dataSize = 0; - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - dataSize += computeStringSizeNoTag(prerequisiteStepIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrerequisiteStepIdsList().size(); - } - if (jobTypeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_); - } - if (jobTypeCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_); - } - 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.dataproc.v1beta2.OrderedJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.OrderedJob other = - (com.google.cloud.dataproc.v1beta2.OrderedJob) obj; - - if (!getStepId().equals(other.getStepId())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasScheduling() != other.hasScheduling()) return false; - if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; - } - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobTypeCase().equals(other.getJobTypeCase())) return false; - switch (jobTypeCase_) { - case 2: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; - break; - case 3: - if (!getSparkJob().equals(other.getSparkJob())) return false; - break; - case 4: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; - break; - case 5: - if (!getHiveJob().equals(other.getHiveJob())) return false; - break; - case 6: - if (!getPigJob().equals(other.getPigJob())) return false; - break; - case 11: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; - break; - case 7: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; - break; - case 12: - if (!getPrestoJob().equals(other.getPrestoJob())) 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(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStepId().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasScheduling()) { - hash = (37 * hash) + SCHEDULING_FIELD_NUMBER; - hash = (53 * hash) + getScheduling().hashCode(); - } - if (getPrerequisiteStepIdsCount() > 0) { - hash = (37 * hash) + PREREQUISITE_STEP_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPrerequisiteStepIdsList().hashCode(); - } - switch (jobTypeCase_) { - case 2: - hash = (37 * hash) + HADOOP_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHadoopJob().hashCode(); - break; - case 3: - hash = (37 * hash) + SPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkJob().hashCode(); - break; - case 4: - hash = (37 * hash) + PYSPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPysparkJob().hashCode(); - break; - case 5: - hash = (37 * hash) + HIVE_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHiveJob().hashCode(); - break; - case 6: - hash = (37 * hash) + PIG_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPigJob().hashCode(); - break; - case 11: - hash = (37 * hash) + SPARK_R_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkRJob().hashCode(); - break; - case 7: - hash = (37 * hash) + SPARK_SQL_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkSqlJob().hashCode(); - break; - case 12: - hash = (37 * hash) + PRESTO_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPrestoJob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob 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.dataproc.v1beta2.OrderedJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob 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.dataproc.v1beta2.OrderedJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob 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.dataproc.v1beta2.OrderedJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 job executed by the workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.OrderedJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.OrderedJob) - com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.OrderedJob.class, - com.google.cloud.dataproc.v1beta2.OrderedJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.OrderedJob.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(); - stepId_ = ""; - - internalGetMutableLabels().clear(); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - jobTypeCase_ = 0; - jobType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.OrderedJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.OrderedJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.OrderedJob build() { - com.google.cloud.dataproc.v1beta2.OrderedJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.OrderedJob buildPartial() { - com.google.cloud.dataproc.v1beta2.OrderedJob result = - new com.google.cloud.dataproc.v1beta2.OrderedJob(this); - int from_bitField0_ = bitField0_; - result.stepId_ = stepId_; - if (jobTypeCase_ == 2) { - if (hadoopJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = hadoopJobBuilder_.build(); - } - } - if (jobTypeCase_ == 3) { - if (sparkJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkJobBuilder_.build(); - } - } - if (jobTypeCase_ == 4) { - if (pysparkJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = pysparkJobBuilder_.build(); - } - } - if (jobTypeCase_ == 5) { - if (hiveJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = hiveJobBuilder_.build(); - } - } - if (jobTypeCase_ == 6) { - if (pigJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = pigJobBuilder_.build(); - } - } - if (jobTypeCase_ == 11) { - if (sparkRJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkRJobBuilder_.build(); - } - } - if (jobTypeCase_ == 7) { - if (sparkSqlJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkSqlJobBuilder_.build(); - } - } - if (jobTypeCase_ == 12) { - if (prestoJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = prestoJobBuilder_.build(); - } - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.prerequisiteStepIds_ = prerequisiteStepIds_; - result.jobTypeCase_ = jobTypeCase_; - 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.dataproc.v1beta2.OrderedJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.OrderedJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.OrderedJob other) { - if (other == com.google.cloud.dataproc.v1beta2.OrderedJob.getDefaultInstance()) return this; - if (!other.getStepId().isEmpty()) { - stepId_ = other.stepId_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasScheduling()) { - mergeScheduling(other.getScheduling()); - } - if (!other.prerequisiteStepIds_.isEmpty()) { - if (prerequisiteStepIds_.isEmpty()) { - prerequisiteStepIds_ = other.prerequisiteStepIds_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.addAll(other.prerequisiteStepIds_); - } - onChanged(); - } - switch (other.getJobTypeCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case JOBTYPE_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.dataproc.v1beta2.OrderedJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.OrderedJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int jobTypeCase_ = 0; - private java.lang.Object jobType_; - - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); - } - - public Builder clearJobType() { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object stepId_ = ""; - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-     * field from other steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-     * field from other steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-     * field from other steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The stepId to set. - * @return This builder for chaining. - */ - public Builder setStepId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stepId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-     * field from other steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearStepId() { - - stepId_ = getDefaultInstance().getStepId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-     * field from other steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for stepId to set. - * @return This builder for chaining. - */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stepId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder> - hadoopJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return jobTypeCase_ == 2; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 2) { - return hadoopJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - hadoopJobBuilder_.setMessage(value); - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob( - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder builderForValue) { - if (hadoopJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - hadoopJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHadoopJob(com.google.cloud.dataproc.v1beta2.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2 - && jobType_ != com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 2) { - hadoopJobBuilder_.mergeFrom(value); - } - hadoopJobBuilder_.setMessage(value); - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 2) { - jobTypeCase_ = 0; - jobType_ = null; - } - hadoopJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.HadoopJob.Builder getHadoopJobBuilder() { - return getHadoopJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if ((jobTypeCase_ == 2) && (hadoopJobBuilder_ != null)) { - return hadoopJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder> - getHadoopJobFieldBuilder() { - if (hadoopJobBuilder_ == null) { - if (!(jobTypeCase_ == 2)) { - jobType_ = com.google.cloud.dataproc.v1beta2.HadoopJob.getDefaultInstance(); - } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HadoopJob, - com.google.cloud.dataproc.v1beta2.HadoopJob.Builder, - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.HadoopJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 2; - onChanged(); - ; - return hadoopJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder> - sparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return jobTypeCase_ == 3; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob() { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 3) { - return sparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob.Builder builderForValue) { - if (sparkJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkJob(com.google.cloud.dataproc.v1beta2.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3 - && jobType_ != com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 3) { - sparkJobBuilder_.mergeFrom(value); - } - sparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkJob() { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 3) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkJob.Builder getSparkJobBuilder() { - return getSparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder() { - if ((jobTypeCase_ == 3) && (sparkJobBuilder_ != null)) { - return sparkJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder> - getSparkJobFieldBuilder() { - if (sparkJobBuilder_ == null) { - if (!(jobTypeCase_ == 3)) { - jobType_ = com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkJob, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 3; - onChanged(); - ; - return sparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder> - pysparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return jobTypeCase_ == 4; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 4) { - return pysparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - pysparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob( - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder builderForValue) { - if (pysparkJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - pysparkJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePysparkJob(com.google.cloud.dataproc.v1beta2.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4 - && jobType_ != com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 4) { - pysparkJobBuilder_.mergeFrom(value); - } - pysparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 4) { - jobTypeCase_ = 0; - jobType_ = null; - } - pysparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PySparkJob.Builder getPysparkJobBuilder() { - return getPysparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if ((jobTypeCase_ == 4) && (pysparkJobBuilder_ != null)) { - return pysparkJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder> - getPysparkJobFieldBuilder() { - if (pysparkJobBuilder_ == null) { - if (!(jobTypeCase_ == 4)) { - jobType_ = com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PySparkJob, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder, - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PySparkJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 4; - onChanged(); - ; - return pysparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder> - hiveJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return jobTypeCase_ == 5; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob() { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 5) { - return hiveJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - hiveJobBuilder_.setMessage(value); - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob.Builder builderForValue) { - if (hiveJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - hiveJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHiveJob(com.google.cloud.dataproc.v1beta2.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5 - && jobType_ != com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 5) { - hiveJobBuilder_.mergeFrom(value); - } - hiveJobBuilder_.setMessage(value); - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHiveJob() { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 5) { - jobTypeCase_ = 0; - jobType_ = null; - } - hiveJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.HiveJob.Builder getHiveJobBuilder() { - return getHiveJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder() { - if ((jobTypeCase_ == 5) && (hiveJobBuilder_ != null)) { - return hiveJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder> - getHiveJobFieldBuilder() { - if (hiveJobBuilder_ == null) { - if (!(jobTypeCase_ == 5)) { - jobType_ = com.google.cloud.dataproc.v1beta2.HiveJob.getDefaultInstance(); - } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.HiveJob, - com.google.cloud.dataproc.v1beta2.HiveJob.Builder, - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.HiveJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 5; - onChanged(); - ; - return hiveJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder> - pigJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return jobTypeCase_ == 6; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob getPigJob() { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 6) { - return pigJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { - if (pigJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - pigJobBuilder_.setMessage(value); - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1beta2.PigJob.Builder builderForValue) { - if (pigJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - pigJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePigJob(com.google.cloud.dataproc.v1beta2.PigJob value) { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6 - && jobType_ != com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.PigJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PigJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 6) { - pigJobBuilder_.mergeFrom(value); - } - pigJobBuilder_.setMessage(value); - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPigJob() { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 6) { - jobTypeCase_ = 0; - jobType_ = null; - } - pigJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PigJob.Builder getPigJobBuilder() { - return getPigJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() { - if ((jobTypeCase_ == 6) && (pigJobBuilder_ != null)) { - return pigJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1beta2.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder> - getPigJobFieldBuilder() { - if (pigJobBuilder_ == null) { - if (!(jobTypeCase_ == 6)) { - jobType_ = com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PigJob, - com.google.cloud.dataproc.v1beta2.PigJob.Builder, - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PigJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 6; - onChanged(); - ; - return pigJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder> - sparkRJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return jobTypeCase_ == 11; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 11) { - return sparkRJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkRJobBuilder_.setMessage(value); - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob( - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder builderForValue) { - if (sparkRJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkRJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11 - && jobType_ != com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 11) { - sparkRJobBuilder_.mergeFrom(value); - } - sparkRJobBuilder_.setMessage(value); - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 11) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkRJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkRJob.Builder getSparkRJobBuilder() { - return getSparkRJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if ((jobTypeCase_ == 11) && (sparkRJobBuilder_ != null)) { - return sparkRJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder> - getSparkRJobFieldBuilder() { - if (sparkRJobBuilder_ == null) { - if (!(jobTypeCase_ == 11)) { - jobType_ = com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkRJob, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkRJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 11; - onChanged(); - ; - return sparkRJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return jobTypeCase_ == 7; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 7) { - return sparkSqlJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder builderForValue) { - if (sparkSqlJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1beta2.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7 - && jobType_ != com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 7) { - sparkSqlJobBuilder_.mergeFrom(value); - } - sparkSqlJobBuilder_.setMessage(value); - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 7) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkSqlJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder getSparkSqlJobBuilder() { - return getSparkSqlJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if ((jobTypeCase_ == 7) && (sparkSqlJobBuilder_ != null)) { - return sparkSqlJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder> - getSparkSqlJobFieldBuilder() { - if (sparkSqlJobBuilder_ == null) { - if (!(jobTypeCase_ == 7)) { - jobType_ = com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.SparkSqlJob, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.SparkSqlJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 7; - onChanged(); - ; - return sparkSqlJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder> - prestoJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return jobTypeCase_ == 12; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob() { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 12) { - return prestoJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - prestoJobBuilder_.setMessage(value); - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob( - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder builderForValue) { - if (prestoJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - prestoJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePrestoJob(com.google.cloud.dataproc.v1beta2.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12 - && jobType_ != com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1beta2.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 12) { - prestoJobBuilder_.mergeFrom(value); - } - prestoJobBuilder_.setMessage(value); - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPrestoJob() { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 12) { - jobTypeCase_ = 0; - jobType_ = null; - } - prestoJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.PrestoJob.Builder getPrestoJobBuilder() { - return getPrestoJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if ((jobTypeCase_ == 12) && (prestoJobBuilder_ != null)) { - return prestoJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder> - getPrestoJobFieldBuilder() { - if (prestoJobBuilder_ == null) { - if (!(jobTypeCase_ == 12)) { - jobType_ = com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.PrestoJob, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder, - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder>( - (com.google.cloud.dataproc.v1beta2.PrestoJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 12; - onChanged(); - ; - return prestoJobBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.JobScheduling scheduling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder> - schedulingBuilder_; - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - public com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling() { - if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } else { - return schedulingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling(com.google.cloud.dataproc.v1beta2.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduling_ = value; - onChanged(); - } else { - schedulingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling( - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder builderForValue) { - if (schedulingBuilder_ == null) { - scheduling_ = builderForValue.build(); - onChanged(); - } else { - schedulingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeScheduling(com.google.cloud.dataproc.v1beta2.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.dataproc.v1beta2.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduling_ = value; - } - onChanged(); - } else { - schedulingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobScheduling.Builder getSchedulingBuilder() { - - onChanged(); - return getSchedulingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder() { - if (schedulingBuilder_ != null) { - return schedulingBuilder_.getMessageOrBuilder(); - } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1beta2.JobScheduling.getDefaultInstance() - : scheduling_; - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder> - getSchedulingFieldBuilder() { - if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.JobScheduling, - com.google.cloud.dataproc.v1beta2.JobScheduling.Builder, - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); - scheduling_ = null; - } - return schedulingBuilder_; - } - - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrerequisiteStepIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The prerequisiteStepIds to set. - * @return This builder for chaining. - */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { - ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrerequisiteStepIds() { - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(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.dataproc.v1beta2.OrderedJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.OrderedJob) - private static final com.google.cloud.dataproc.v1beta2.OrderedJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.OrderedJob(); - } - - public static com.google.cloud.dataproc.v1beta2.OrderedJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderedJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderedJob(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.dataproc.v1beta2.OrderedJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java deleted file mode 100644 index 12c88a63..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java +++ /dev/null @@ -1,580 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface OrderedJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.OrderedJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-   * field from other steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - java.lang.String getStepId(); - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
-   * field from other steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - com.google.protobuf.ByteString getStepIdBytes(); - - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - boolean hasHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - com.google.cloud.dataproc.v1beta2.HadoopJob getHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.HadoopJobOrBuilder getHadoopJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - boolean hasSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - com.google.cloud.dataproc.v1beta2.SparkJob getSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder getSparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - boolean hasPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - com.google.cloud.dataproc.v1beta2.PySparkJob getPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder getPysparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - boolean hasHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - com.google.cloud.dataproc.v1beta2.HiveJob getHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.HiveJobOrBuilder getHiveJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - boolean hasPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - com.google.cloud.dataproc.v1beta2.PigJob getPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - boolean hasSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - boolean hasSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - com.google.cloud.dataproc.v1beta2.SparkSqlJob getSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - boolean hasPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - com.google.cloud.dataproc.v1beta2.PrestoJob getPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder getPrestoJobOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - boolean hasScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - com.google.cloud.dataproc.v1beta2.JobScheduling getScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.JobSchedulingOrBuilder getSchedulingOrBuilder(); - - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - java.util.List getPrerequisiteStepIdsList(); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - int getPrerequisiteStepIdsCount(); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - java.lang.String getPrerequisiteStepIds(int index); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); - - public com.google.cloud.dataproc.v1beta2.OrderedJob.JobTypeCase getJobTypeCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidation.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidation.java deleted file mode 100644 index ff7bc92e..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidation.java +++ /dev/null @@ -1,1152 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Configuration for parameter validation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ParameterValidation} - */ -public final class ParameterValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ParameterValidation) - ParameterValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterValidation.newBuilder() to construct. - private ParameterValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ParameterValidation() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ParameterValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ParameterValidation( - 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.dataproc.v1beta2.RegexValidation.Builder subBuilder = null; - if (validationTypeCase_ == 1) { - subBuilder = - ((com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_) - .toBuilder(); - } - validationType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.RegexValidation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_); - validationType_ = subBuilder.buildPartial(); - } - validationTypeCase_ = 1; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder subBuilder = null; - if (validationTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_) - .toBuilder(); - } - validationType_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ValueValidation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_); - validationType_ = subBuilder.buildPartial(); - } - validationTypeCase_ = 2; - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ParameterValidation.class, - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder.class); - } - - private int validationTypeCase_ = 0; - private java.lang.Object validationType_; - - public enum ValidationTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - REGEX(1), - VALUES(2), - VALIDATIONTYPE_NOT_SET(0); - private final int value; - - private ValidationTypeCase(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 ValidationTypeCase valueOf(int value) { - return forNumber(value); - } - - public static ValidationTypeCase forNumber(int value) { - switch (value) { - case 1: - return REGEX; - case 2: - return VALUES; - case 0: - return VALIDATIONTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); - } - - public static final int REGEX_FIELD_NUMBER = 1; - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - @java.lang.Override - public boolean hasRegex() { - return validationTypeCase_ == 1; - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return The regex. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidation getRegex() { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder getRegexOrBuilder() { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - - public static final int VALUES_FIELD_NUMBER = 2; - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return validationTypeCase_ == 2; - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return The values. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidation getValues() { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder getValuesOrBuilder() { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (validationTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_); - } - if (validationTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validationTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_); - } - if (validationTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_); - } - 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.dataproc.v1beta2.ParameterValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ParameterValidation other = - (com.google.cloud.dataproc.v1beta2.ParameterValidation) obj; - - if (!getValidationTypeCase().equals(other.getValidationTypeCase())) return false; - switch (validationTypeCase_) { - case 1: - if (!getRegex().equals(other.getRegex())) return false; - break; - case 2: - if (!getValues().equals(other.getValues())) 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 (validationTypeCase_) { - case 1: - hash = (37 * hash) + REGEX_FIELD_NUMBER; - hash = (53 * hash) + getRegex().hashCode(); - break; - case 2: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation 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.dataproc.v1beta2.ParameterValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation 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.dataproc.v1beta2.ParameterValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation 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.dataproc.v1beta2.ParameterValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Configuration for parameter validation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ParameterValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ParameterValidation) - com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ParameterValidation.class, - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ParameterValidation.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(); - validationTypeCase_ = 0; - validationType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ParameterValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ParameterValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ParameterValidation build() { - com.google.cloud.dataproc.v1beta2.ParameterValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ParameterValidation buildPartial() { - com.google.cloud.dataproc.v1beta2.ParameterValidation result = - new com.google.cloud.dataproc.v1beta2.ParameterValidation(this); - if (validationTypeCase_ == 1) { - if (regexBuilder_ == null) { - result.validationType_ = validationType_; - } else { - result.validationType_ = regexBuilder_.build(); - } - } - if (validationTypeCase_ == 2) { - if (valuesBuilder_ == null) { - result.validationType_ = validationType_; - } else { - result.validationType_ = valuesBuilder_.build(); - } - } - result.validationTypeCase_ = validationTypeCase_; - 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.dataproc.v1beta2.ParameterValidation) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ParameterValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ParameterValidation other) { - if (other == com.google.cloud.dataproc.v1beta2.ParameterValidation.getDefaultInstance()) - return this; - switch (other.getValidationTypeCase()) { - case REGEX: - { - mergeRegex(other.getRegex()); - break; - } - case VALUES: - { - mergeValues(other.getValues()); - break; - } - case VALIDATIONTYPE_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.dataproc.v1beta2.ParameterValidation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ParameterValidation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int validationTypeCase_ = 0; - private java.lang.Object validationType_; - - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); - } - - public Builder clearValidationType() { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.RegexValidation, - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder, - com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder> - regexBuilder_; - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - @java.lang.Override - public boolean hasRegex() { - return validationTypeCase_ == 1; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return The regex. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidation getRegex() { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } else { - if (validationTypeCase_ == 1) { - return regexBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - public Builder setRegex(com.google.cloud.dataproc.v1beta2.RegexValidation value) { - if (regexBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validationType_ = value; - onChanged(); - } else { - regexBuilder_.setMessage(value); - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - public Builder setRegex( - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder builderForValue) { - if (regexBuilder_ == null) { - validationType_ = builderForValue.build(); - onChanged(); - } else { - regexBuilder_.setMessage(builderForValue.build()); - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - public Builder mergeRegex(com.google.cloud.dataproc.v1beta2.RegexValidation value) { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1 - && validationType_ - != com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1beta2.RegexValidation.newBuilder( - (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_) - .mergeFrom(value) - .buildPartial(); - } else { - validationType_ = value; - } - onChanged(); - } else { - if (validationTypeCase_ == 1) { - regexBuilder_.mergeFrom(value); - } - regexBuilder_.setMessage(value); - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - public Builder clearRegex() { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1) { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - } - } else { - if (validationTypeCase_ == 1) { - validationTypeCase_ = 0; - validationType_ = null; - } - regexBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - public com.google.cloud.dataproc.v1beta2.RegexValidation.Builder getRegexBuilder() { - return getRegexFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder getRegexOrBuilder() { - if ((validationTypeCase_ == 1) && (regexBuilder_ != null)) { - return regexBuilder_.getMessageOrBuilder(); - } else { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.RegexValidation, - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder, - com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder> - getRegexFieldBuilder() { - if (regexBuilder_ == null) { - if (!(validationTypeCase_ == 1)) { - validationType_ = com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - regexBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.RegexValidation, - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder, - com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder>( - (com.google.cloud.dataproc.v1beta2.RegexValidation) validationType_, - getParentForChildren(), - isClean()); - validationType_ = null; - } - validationTypeCase_ = 1; - onChanged(); - ; - return regexBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ValueValidation, - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder, - com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder> - valuesBuilder_; - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return validationTypeCase_ == 2; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return The values. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidation getValues() { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } else { - if (validationTypeCase_ == 2) { - return valuesBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - public Builder setValues(com.google.cloud.dataproc.v1beta2.ValueValidation value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validationType_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - public Builder setValues( - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder builderForValue) { - if (valuesBuilder_ == null) { - validationType_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - public Builder mergeValues(com.google.cloud.dataproc.v1beta2.ValueValidation value) { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2 - && validationType_ - != com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1beta2.ValueValidation.newBuilder( - (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_) - .mergeFrom(value) - .buildPartial(); - } else { - validationType_ = value; - } - onChanged(); - } else { - if (validationTypeCase_ == 2) { - valuesBuilder_.mergeFrom(value); - } - valuesBuilder_.setMessage(value); - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2) { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - } - } else { - if (validationTypeCase_ == 2) { - validationTypeCase_ = 0; - validationType_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - public com.google.cloud.dataproc.v1beta2.ValueValidation.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder getValuesOrBuilder() { - if ((validationTypeCase_ == 2) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ValueValidation, - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder, - com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(validationTypeCase_ == 2)) { - validationType_ = com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - valuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ValueValidation, - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder, - com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder>( - (com.google.cloud.dataproc.v1beta2.ValueValidation) validationType_, - getParentForChildren(), - isClean()); - validationType_ = null; - } - validationTypeCase_ = 2; - onChanged(); - ; - return valuesBuilder_; - } - - @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.dataproc.v1beta2.ParameterValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ParameterValidation) - private static final com.google.cloud.dataproc.v1beta2.ParameterValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ParameterValidation(); - } - - public static com.google.cloud.dataproc.v1beta2.ParameterValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterValidation(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.dataproc.v1beta2.ParameterValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidationOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidationOrBuilder.java deleted file mode 100644 index ce7b6719..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidationOrBuilder.java +++ /dev/null @@ -1,98 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ParameterValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ParameterValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - boolean hasRegex(); - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - * - * @return The regex. - */ - com.google.cloud.dataproc.v1beta2.RegexValidation getRegex(); - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1beta2.RegexValidation regex = 1; - */ - com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder getRegexOrBuilder(); - - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - boolean hasValues(); - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - * - * @return The values. - */ - com.google.cloud.dataproc.v1beta2.ValueValidation getValues(); - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ValueValidation values = 2; - */ - com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder getValuesOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.ParameterValidation.ValidationTypeCase - getValidationTypeCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java deleted file mode 100644 index 5099c20a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java +++ /dev/null @@ -1,2470 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running [Apache Pig](https://pig.apache.org/)
- * queries on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PigJob} - */ -public final class PigJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.PigJob) - PigJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PigJob.newBuilder() to construct. - private PigJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PigJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PigJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PigJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - case 58: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PigJob.class, - com.google.cloud.dataproc.v1beta2.PigJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); - } - if (loggingConfig_ != null) { - output.writeMessage(7, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); - } - 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.dataproc.v1beta2.PigJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.PigJob other = (com.google.cloud.dataproc.v1beta2.PigJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) 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(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob 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.dataproc.v1beta2.PigJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob 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.dataproc.v1beta2.PigJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob 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.dataproc.v1beta2.PigJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Pig](https://pig.apache.org/)
-   * queries on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PigJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.PigJob) - com.google.cloud.dataproc.v1beta2.PigJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableScriptVariables(); - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PigJob.class, - com.google.cloud.dataproc.v1beta2.PigJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.PigJob.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(); - continueOnFailure_ = false; - - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PigJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob build() { - com.google.cloud.dataproc.v1beta2.PigJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PigJob buildPartial() { - com.google.cloud.dataproc.v1beta2.PigJob result = - new com.google.cloud.dataproc.v1beta2.PigJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1beta2.PigJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.PigJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.PigJob other) { - if (other == com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_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.dataproc.v1beta2.PigJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.PigJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList( - com.google.cloud.dataproc.v1beta2.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1beta2.QueryList.newBuilder( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1beta2.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.PigJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PigJob) - private static final com.google.cloud.dataproc.v1beta2.PigJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.PigJob(); - } - - public static com.google.cloud.dataproc.v1beta2.PigJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PigJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PigJob(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.dataproc.v1beta2.PigJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java deleted file mode 100644 index 43638323..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java +++ /dev/null @@ -1,348 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface PigJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.PigJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1beta2.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.PigJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java deleted file mode 100644 index 5177b78b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java +++ /dev/null @@ -1,2304 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running [Presto](https://prestosql.io/) queries.
- * **IMPORTANT**: The [Dataproc Presto Optional
- * Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
- * must be enabled when the cluster is created to submit a Presto job to the
- * cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PrestoJob} - */ -public final class PrestoJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.PrestoJob) - PrestoJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrestoJob.newBuilder() to construct. - private PrestoJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrestoJob() { - outputFormat_ = ""; - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrestoJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PrestoJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputFormat_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clientTags_.add(s); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 58: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clientTags_ = clientTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PrestoJob.class, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int OUTPUT_FORMAT_FIELD_NUMBER = 4; - private volatile java.lang.Object outputFormat_; - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - @java.lang.Override - public java.lang.String getOutputFormat() { - java.lang.Object ref = outputFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputFormat_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutputFormatBytes() { - java.lang.Object ref = outputFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_TAGS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList clientTags_; - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { - return clientTags_; - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - public int getClientTagsCount() { - return clientTags_.size(); - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - public java.lang.String getClientTags(int index) { - return clientTags_.get(index); - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { - return clientTags_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 6; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - if (!getOutputFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputFormat_); - } - for (int i = 0; i < clientTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientTags_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 6); - if (loggingConfig_ != null) { - output.writeMessage(7, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - if (!getOutputFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputFormat_); - } - { - int dataSize = 0; - for (int i = 0; i < clientTags_.size(); i++) { - dataSize += computeStringSizeNoTag(clientTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getClientTagsList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); - } - 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.dataproc.v1beta2.PrestoJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.PrestoJob other = - (com.google.cloud.dataproc.v1beta2.PrestoJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!getOutputFormat().equals(other.getOutputFormat())) return false; - if (!getClientTagsList().equals(other.getClientTagsList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) 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(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getOutputFormat().hashCode(); - if (getClientTagsCount() > 0) { - hash = (37 * hash) + CLIENT_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getClientTagsList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob 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.dataproc.v1beta2.PrestoJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob 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.dataproc.v1beta2.PrestoJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob 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.dataproc.v1beta2.PrestoJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Presto](https://prestosql.io/) queries.
-   * **IMPORTANT**: The [Dataproc Presto Optional
-   * Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
-   * must be enabled when the cluster is created to submit a Presto job to the
-   * cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PrestoJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.PrestoJob) - com.google.cloud.dataproc.v1beta2.PrestoJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PrestoJob.class, - com.google.cloud.dataproc.v1beta2.PrestoJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.PrestoJob.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(); - continueOnFailure_ = false; - - outputFormat_ = ""; - - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PrestoJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob build() { - com.google.cloud.dataproc.v1beta2.PrestoJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PrestoJob buildPartial() { - com.google.cloud.dataproc.v1beta2.PrestoJob result = - new com.google.cloud.dataproc.v1beta2.PrestoJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.outputFormat_ = outputFormat_; - if (((bitField0_ & 0x00000001) != 0)) { - clientTags_ = clientTags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clientTags_ = clientTags_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1beta2.PrestoJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.PrestoJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.PrestoJob other) { - if (other == com.google.cloud.dataproc.v1beta2.PrestoJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - if (!other.getOutputFormat().isEmpty()) { - outputFormat_ = other.outputFormat_; - onChanged(); - } - if (!other.clientTags_.isEmpty()) { - if (clientTags_.isEmpty()) { - clientTags_ = other.clientTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClientTagsIsMutable(); - clientTags_.addAll(other.clientTags_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_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.dataproc.v1beta2.PrestoJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.PrestoJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList( - com.google.cloud.dataproc.v1beta2.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1beta2.QueryList.newBuilder( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1beta2.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private java.lang.Object outputFormat_ = ""; - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - public java.lang.String getOutputFormat() { - java.lang.Object ref = outputFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - public com.google.protobuf.ByteString getOutputFormatBytes() { - java.lang.Object ref = outputFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The outputFormat to set. - * @return This builder for chaining. - */ - public Builder setOutputFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputFormat_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOutputFormat() { - - outputFormat_ = getDefaultInstance().getOutputFormat(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for outputFormat to set. - * @return This builder for chaining. - */ - public Builder setOutputFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputFormat_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList clientTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureClientTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clientTags_ = new com.google.protobuf.LazyStringArrayList(clientTags_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { - return clientTags_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - public int getClientTagsCount() { - return clientTags_.size(); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - public java.lang.String getClientTags(int index) { - return clientTags_.get(index); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { - return clientTags_.getByteString(index); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The clientTags to set. - * @return This builder for chaining. - */ - public Builder setClientTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); - clientTags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clientTags to add. - * @return This builder for chaining. - */ - public Builder addClientTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); - clientTags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The clientTags to add. - * @return This builder for chaining. - */ - public Builder addAllClientTags(java.lang.Iterable values) { - ensureClientTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTags_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClientTags() { - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the clientTags to add. - * @return This builder for chaining. - */ - public Builder addClientTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClientTagsIsMutable(); - clientTags_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.PrestoJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PrestoJob) - private static final com.google.cloud.dataproc.v1beta2.PrestoJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.PrestoJob(); - } - - public static com.google.cloud.dataproc.v1beta2.PrestoJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrestoJob(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.dataproc.v1beta2.PrestoJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java deleted file mode 100644 index 629e2308..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java +++ /dev/null @@ -1,302 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface PrestoJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.PrestoJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1beta2.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - java.lang.String getOutputFormat(); - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - com.google.protobuf.ByteString getOutputFormatBytes(); - - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - java.util.List getClientTagsList(); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - int getClientTagsCount(); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - java.lang.String getClientTags(int index); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - com.google.protobuf.ByteString getClientTagsBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.PrestoJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java deleted file mode 100644 index 51182ae3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java +++ /dev/null @@ -1,2794 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache
- * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html)
- * applications on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PySparkJob} - */ -public final class PySparkJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.PySparkJob) - PySparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PySparkJob.newBuilder() to construct. - private PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PySparkJob() { - mainPythonFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PySparkJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PySparkJob( - 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(); - - mainPythonFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - pythonFileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PySparkJob.class, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder.class); - } - - public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainPythonFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - @java.lang.Override - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList pythonFileUris_; - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_; - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMainPythonFileUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < pythonFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonFileUris_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMainPythonFileUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < pythonFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(pythonFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getPythonFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - 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.dataproc.v1beta2.PySparkJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.PySparkJob other = - (com.google.cloud.dataproc.v1beta2.PySparkJob) obj; - - if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) 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) + MAIN_PYTHON_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainPythonFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getPythonFileUrisCount() > 0) { - hash = (37 * hash) + PYTHON_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getPythonFileUrisList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob 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.dataproc.v1beta2.PySparkJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob 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.dataproc.v1beta2.PySparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob 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.dataproc.v1beta2.PySparkJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache
-   * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html)
-   * applications on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.PySparkJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.PySparkJob) - com.google.cloud.dataproc.v1beta2.PySparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.PySparkJob.class, - com.google.cloud.dataproc.v1beta2.PySparkJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.PySparkJob.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(); - mainPythonFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_PySparkJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob build() { - com.google.cloud.dataproc.v1beta2.PySparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.PySparkJob buildPartial() { - com.google.cloud.dataproc.v1beta2.PySparkJob result = - new com.google.cloud.dataproc.v1beta2.PySparkJob(this); - int from_bitField0_ = bitField0_; - result.mainPythonFileUri_ = mainPythonFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.pythonFileUris_ = pythonFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.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.dataproc.v1beta2.PySparkJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.PySparkJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.PySparkJob other) { - if (other == com.google.cloud.dataproc.v1beta2.PySparkJob.getDefaultInstance()) return this; - if (!other.getMainPythonFileUri().isEmpty()) { - mainPythonFileUri_ = other.mainPythonFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.pythonFileUris_.isEmpty()) { - if (pythonFileUris_.isEmpty()) { - pythonFileUris_ = other.pythonFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePythonFileUrisIsMutable(); - pythonFileUris_.addAll(other.pythonFileUris_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - 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.dataproc.v1beta2.PySparkJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.PySparkJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object mainPythonFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainPythonFileUri() { - - mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pythonFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePythonFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The pythonFileUris to set. - * @return This builder for chaining. - */ - public Builder setPythonFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllPythonFileUris(java.lang.Iterable values) { - ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPythonFileUris() { - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000010; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.PySparkJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.PySparkJob) - private static final com.google.cloud.dataproc.v1beta2.PySparkJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.PySparkJob(); - } - - public static com.google.cloud.dataproc.v1beta2.PySparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PySparkJob(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.dataproc.v1beta2.PySparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java deleted file mode 100644 index 61921ac5..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java +++ /dev/null @@ -1,450 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface PySparkJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.PySparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - java.lang.String getMainPythonFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - com.google.protobuf.ByteString getMainPythonFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - java.util.List getPythonFileUrisList(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - int getPythonFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - java.lang.String getPythonFileUris(int index); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - com.google.protobuf.ByteString getPythonFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryList.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryList.java deleted file mode 100644 index d4b709c6..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryList.java +++ /dev/null @@ -1,891 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A list of queries to run on a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.QueryList} - */ -public final class QueryList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.QueryList) - QueryListOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryList.newBuilder() to construct. - private QueryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryList() { - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private QueryList( - 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)) { - queries_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queries_.add(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)) { - queries_ = queries_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_QueryList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.QueryList.class, - com.google.cloud.dataproc.v1beta2.QueryList.Builder.class); - } - - public static final int QUERIES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList queries_; - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - return queries_; - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queries_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_.getRaw(i)); - } - 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 < queries_.size(); i++) { - dataSize += computeStringSizeNoTag(queries_.getRaw(i)); - } - size += dataSize; - size += 1 * getQueriesList().size(); - } - 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.dataproc.v1beta2.QueryList)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.QueryList other = - (com.google.cloud.dataproc.v1beta2.QueryList) obj; - - if (!getQueriesList().equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList 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.dataproc.v1beta2.QueryList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList 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.dataproc.v1beta2.QueryList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList 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.dataproc.v1beta2.QueryList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of queries to run on a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.QueryList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.QueryList) - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_QueryList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.QueryList.class, - com.google.cloud.dataproc.v1beta2.QueryList.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.QueryList.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(); - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_QueryList_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList build() { - com.google.cloud.dataproc.v1beta2.QueryList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList buildPartial() { - com.google.cloud.dataproc.v1beta2.QueryList result = - new com.google.cloud.dataproc.v1beta2.QueryList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - queries_ = queries_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queries_ = queries_; - 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.dataproc.v1beta2.QueryList) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.QueryList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.QueryList other) { - if (other == com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance()) return this; - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - 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.dataproc.v1beta2.QueryList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.QueryList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList queries_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queries_ = new com.google.protobuf.LazyStringArrayList(queries_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - return queries_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The queries to set. - * @return This builder for chaining. - */ - public Builder setQueries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The queries to add. - * @return This builder for chaining. - */ - public Builder addQueries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The queries to add. - * @return This builder for chaining. - */ - public Builder addAllQueries(java.lang.Iterable values) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQueries() { - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to terminate a query
-     * with a semicolon. Multiple queries can be specified in one string
-     * by separating each with a semicolon. Here is an example of an Cloud
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the queries to add. - * @return This builder for chaining. - */ - public Builder addQueriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureQueriesIsMutable(); - queries_.add(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.dataproc.v1beta2.QueryList) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.QueryList) - private static final com.google.cloud.dataproc.v1beta2.QueryList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.QueryList(); - } - - public static com.google.cloud.dataproc.v1beta2.QueryList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryList(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.dataproc.v1beta2.QueryList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryListOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryListOrBuilder.java deleted file mode 100644 index 2292b755..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryListOrBuilder.java +++ /dev/null @@ -1,124 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface QueryListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.QueryList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - java.util.List getQueriesList(); - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - int getQueriesCount(); - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - java.lang.String getQueries(int index); - /** - * - * - *
-   * Required. The queries to execute. You do not need to terminate a query
-   * with a semicolon. Multiple queries can be specified in one string
-   * by separating each with a semicolon. Here is an example of an Cloud
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - com.google.protobuf.ByteString getQueriesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidation.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidation.java deleted file mode 100644 index 014fc678..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidation.java +++ /dev/null @@ -1,763 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Validation based on regular expressions.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.RegexValidation} - */ -public final class RegexValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.RegexValidation) - RegexValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegexValidation.newBuilder() to construct. - private RegexValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegexValidation() { - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegexValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RegexValidation( - 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)) { - regexes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - regexes_.add(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)) { - regexes_ = regexes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_RegexValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.RegexValidation.class, - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder.class); - } - - public static final int REGEXES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList regexes_; - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @return A list containing the regexes. - */ - public com.google.protobuf.ProtocolStringList getRegexesList() { - return regexes_; - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @return The count of regexes. - */ - public int getRegexesCount() { - return regexes_.size(); - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - public java.lang.String getRegexes(int index) { - return regexes_.get(index); - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { - return regexes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < regexes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regexes_.getRaw(i)); - } - 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 < regexes_.size(); i++) { - dataSize += computeStringSizeNoTag(regexes_.getRaw(i)); - } - size += dataSize; - size += 1 * getRegexesList().size(); - } - 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.dataproc.v1beta2.RegexValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.RegexValidation other = - (com.google.cloud.dataproc.v1beta2.RegexValidation) obj; - - if (!getRegexesList().equals(other.getRegexesList())) 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 (getRegexesCount() > 0) { - hash = (37 * hash) + REGEXES_FIELD_NUMBER; - hash = (53 * hash) + getRegexesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation 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.dataproc.v1beta2.RegexValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation 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.dataproc.v1beta2.RegexValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation 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.dataproc.v1beta2.RegexValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.RegexValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.RegexValidation) - com.google.cloud.dataproc.v1beta2.RegexValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_RegexValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.RegexValidation.class, - com.google.cloud.dataproc.v1beta2.RegexValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.RegexValidation.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(); - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidation build() { - com.google.cloud.dataproc.v1beta2.RegexValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.RegexValidation buildPartial() { - com.google.cloud.dataproc.v1beta2.RegexValidation result = - new com.google.cloud.dataproc.v1beta2.RegexValidation(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - regexes_ = regexes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.regexes_ = regexes_; - 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.dataproc.v1beta2.RegexValidation) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.RegexValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.RegexValidation other) { - if (other == com.google.cloud.dataproc.v1beta2.RegexValidation.getDefaultInstance()) - return this; - if (!other.regexes_.isEmpty()) { - if (regexes_.isEmpty()) { - regexes_ = other.regexes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegexesIsMutable(); - regexes_.addAll(other.regexes_); - } - 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.dataproc.v1beta2.RegexValidation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.RegexValidation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList regexes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureRegexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - regexes_ = new com.google.protobuf.LazyStringArrayList(regexes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @return A list containing the regexes. - */ - public com.google.protobuf.ProtocolStringList getRegexesList() { - return regexes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @return The count of regexes. - */ - public int getRegexesCount() { - return regexes_.size(); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - public java.lang.String getRegexes(int index) { - return regexes_.get(index); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { - return regexes_.getByteString(index); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param index The index to set the value at. - * @param value The regexes to set. - * @return This builder for chaining. - */ - public Builder setRegexes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); - regexes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param value The regexes to add. - * @return This builder for chaining. - */ - public Builder addRegexes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); - regexes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param values The regexes to add. - * @return This builder for chaining. - */ - public Builder addAllRegexes(java.lang.Iterable values) { - ensureRegexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regexes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @return This builder for chaining. - */ - public Builder clearRegexes() { - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1; - * - * @param value The bytes of the regexes to add. - * @return This builder for chaining. - */ - public Builder addRegexesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRegexesIsMutable(); - regexes_.add(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.dataproc.v1beta2.RegexValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.RegexValidation) - private static final com.google.cloud.dataproc.v1beta2.RegexValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.RegexValidation(); - } - - public static com.google.cloud.dataproc.v1beta2.RegexValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegexValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegexValidation(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.dataproc.v1beta2.RegexValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidationOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidationOrBuilder.java deleted file mode 100644 index 723d9744..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidationOrBuilder.java +++ /dev/null @@ -1,84 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface RegexValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.RegexValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @return A list containing the regexes. - */ - java.util.List getRegexesList(); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @return The count of regexes. - */ - int getRegexesCount(); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - java.lang.String getRegexes(int index); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - com.google.protobuf.ByteString getRegexesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java deleted file mode 100644 index 902c0aa5..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -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 RegionName implements ResourceName { - private static final PathTemplate PROJECT_REGION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/regions/{region}"); - private volatile Map fieldValuesMap; - private final String project; - private final String region; - - @Deprecated - protected RegionName() { - project = null; - region = null; - } - - private RegionName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - } - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RegionName of(String project, String region) { - return newBuilder().setProject(project).setRegion(region).build(); - } - - public static String format(String project, String region) { - return newBuilder().setProject(project).setRegion(region).build().toString(); - } - - public static RegionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_REGION.validatedMatch( - formattedString, "RegionName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("region")); - } - - 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 (RegionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_REGION.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 (region != null) { - fieldMapBuilder.put("region", region); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_REGION.instantiate("project", project, "region", region); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RegionName that = ((RegionName) o); - return Objects.equals(this.project, that.project) && Objects.equals(this.region, that.region); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(region); - return h; - } - - /** Builder for projects/{project}/regions/{region}. */ - public static class Builder { - private String project; - private String region; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setRegion(String region) { - this.region = region; - return this; - } - - private Builder(RegionName regionName) { - this.project = regionName.project; - this.region = regionName.region; - } - - public RegionName build() { - return new RegionName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java deleted file mode 100644 index dc05e6e1..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java +++ /dev/null @@ -1,1258 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Reservation Affinity for consuming Zonal reservation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ReservationAffinity} - */ -public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ReservationAffinity) - ReservationAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservationAffinity.newBuilder() to construct. - private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReservationAffinity() { - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ReservationAffinity( - 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 8: - { - int rawValue = input.readEnum(); - - consumeReservationType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(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)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ReservationAffinity.class, - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder.class); - } - - /** - * - * - *
-   * Indicates whether to consume capacity from an reservation or not.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.ReservationAffinity.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** TYPE_UNSPECIFIED = 0; */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Do not consume from any allocated capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - NO_RESERVATION(1), - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - ANY_RESERVATION(2), - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - SPECIFIC_RESERVATION(3), - UNRECOGNIZED(-1), - ; - - /** TYPE_UNSPECIFIED = 0; */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Do not consume from any allocated capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - public static final int NO_RESERVATION_VALUE = 1; - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - public static final int ANY_RESERVATION_VALUE = 2; - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - public static final int SPECIFIC_RESERVATION_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 Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return NO_RESERVATION; - case 2: - return ANY_RESERVATION; - case 3: - return SPECIFIC_RESERVATION; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.ReservationAffinity.Type) - } - - public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; - private int consumeReservationType_; - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumeReservationType_ - != com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, consumeReservationType_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumeReservationType_ - != com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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.dataproc.v1beta2.ReservationAffinity)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ReservationAffinity other = - (com.google.cloud.dataproc.v1beta2.ReservationAffinity) obj; - - if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) 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) + CONSUME_RESERVATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + consumeReservationType_; - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity 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.dataproc.v1beta2.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity 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.dataproc.v1beta2.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity 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.dataproc.v1beta2.ReservationAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ReservationAffinity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ReservationAffinity) - com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ReservationAffinity.class, - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ReservationAffinity.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(); - consumeReservationType_ = 0; - - key_ = ""; - - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity build() { - com.google.cloud.dataproc.v1beta2.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity buildPartial() { - com.google.cloud.dataproc.v1beta2.ReservationAffinity result = - new com.google.cloud.dataproc.v1beta2.ReservationAffinity(this); - int from_bitField0_ = bitField0_; - result.consumeReservationType_ = consumeReservationType_; - result.key_ = key_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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.dataproc.v1beta2.ReservationAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ReservationAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ReservationAffinity other) { - if (other == com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance()) - return this; - if (other.consumeReservationType_ != 0) { - setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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.dataproc.v1beta2.ReservationAffinity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ReservationAffinity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int consumeReservationType_ = 0; - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationTypeValue(int value) { - - consumeReservationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.valueOf( - consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType( - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - - consumeReservationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - 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.dataproc.v1beta2.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ReservationAffinity) - private static final com.google.cloud.dataproc.v1beta2.ReservationAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ReservationAffinity(); - } - - public static com.google.cloud.dataproc.v1beta2.ReservationAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservationAffinity(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.dataproc.v1beta2.ReservationAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java deleted file mode 100644 index b48c85cd..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,130 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ReservationAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType(); - - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java deleted file mode 100644 index 193496c9..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java +++ /dev/null @@ -1,733 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Security related configuration, including encryption, Kerberos, etc.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SecurityConfig} - */ -public final class SecurityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SecurityConfig) - SecurityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityConfig.newBuilder() to construct. - private SecurityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SecurityConfig( - 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.dataproc.v1beta2.KerberosConfig.Builder subBuilder = null; - if (kerberosConfig_ != null) { - subBuilder = kerberosConfig_.toBuilder(); - } - kerberosConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.KerberosConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kerberosConfig_); - kerberosConfig_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SecurityConfig.class, - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder.class); - } - - public static final int KERBEROS_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.KerberosConfig kerberosConfig_; - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return Whether the kerberosConfig field is set. - */ - @java.lang.Override - public boolean hasKerberosConfig() { - return kerberosConfig_ != null; - } - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return The kerberosConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig() { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { - return getKerberosConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (kerberosConfig_ != null) { - output.writeMessage(1, getKerberosConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kerberosConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig()); - } - 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.dataproc.v1beta2.SecurityConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SecurityConfig other = - (com.google.cloud.dataproc.v1beta2.SecurityConfig) obj; - - if (hasKerberosConfig() != other.hasKerberosConfig()) return false; - if (hasKerberosConfig()) { - if (!getKerberosConfig().equals(other.getKerberosConfig())) 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 (hasKerberosConfig()) { - hash = (37 * hash) + KERBEROS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getKerberosConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig 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.dataproc.v1beta2.SecurityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig 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.dataproc.v1beta2.SecurityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig 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.dataproc.v1beta2.SecurityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Security related configuration, including encryption, Kerberos, etc.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SecurityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SecurityConfig) - com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SecurityConfig.class, - com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SecurityConfig.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 (kerberosConfigBuilder_ == null) { - kerberosConfig_ = null; - } else { - kerberosConfig_ = null; - kerberosConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SecurityConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SecurityConfig build() { - com.google.cloud.dataproc.v1beta2.SecurityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SecurityConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.SecurityConfig result = - new com.google.cloud.dataproc.v1beta2.SecurityConfig(this); - if (kerberosConfigBuilder_ == null) { - result.kerberosConfig_ = kerberosConfig_; - } else { - result.kerberosConfig_ = kerberosConfigBuilder_.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.dataproc.v1beta2.SecurityConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SecurityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SecurityConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance()) - return this; - if (other.hasKerberosConfig()) { - mergeKerberosConfig(other.getKerberosConfig()); - } - 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.dataproc.v1beta2.SecurityConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.SecurityConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.dataproc.v1beta2.KerberosConfig kerberosConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.KerberosConfig, - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder, - com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder> - kerberosConfigBuilder_; - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return Whether the kerberosConfig field is set. - */ - public boolean hasKerberosConfig() { - return kerberosConfigBuilder_ != null || kerberosConfig_ != null; - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return The kerberosConfig. - */ - public com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig() { - if (kerberosConfigBuilder_ == null) { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } else { - return kerberosConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public Builder setKerberosConfig(com.google.cloud.dataproc.v1beta2.KerberosConfig value) { - if (kerberosConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kerberosConfig_ = value; - onChanged(); - } else { - kerberosConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public Builder setKerberosConfig( - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder builderForValue) { - if (kerberosConfigBuilder_ == null) { - kerberosConfig_ = builderForValue.build(); - onChanged(); - } else { - kerberosConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1beta2.KerberosConfig value) { - if (kerberosConfigBuilder_ == null) { - if (kerberosConfig_ != null) { - kerberosConfig_ = - com.google.cloud.dataproc.v1beta2.KerberosConfig.newBuilder(kerberosConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - kerberosConfig_ = value; - } - onChanged(); - } else { - kerberosConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public Builder clearKerberosConfig() { - if (kerberosConfigBuilder_ == null) { - kerberosConfig_ = null; - onChanged(); - } else { - kerberosConfig_ = null; - kerberosConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder getKerberosConfigBuilder() { - - onChanged(); - return getKerberosConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - public com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { - if (kerberosConfigBuilder_ != null) { - return kerberosConfigBuilder_.getMessageOrBuilder(); - } else { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } - } - /** - * - * - *
-     * Kerberos related configuration.
-     * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.KerberosConfig, - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder, - com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder> - getKerberosConfigFieldBuilder() { - if (kerberosConfigBuilder_ == null) { - kerberosConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.KerberosConfig, - com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder, - com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder>( - getKerberosConfig(), getParentForChildren(), isClean()); - kerberosConfig_ = null; - } - return kerberosConfigBuilder_; - } - - @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.dataproc.v1beta2.SecurityConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SecurityConfig) - private static final com.google.cloud.dataproc.v1beta2.SecurityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SecurityConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.SecurityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityConfig(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.dataproc.v1beta2.SecurityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java deleted file mode 100644 index a3864ea4..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java +++ /dev/null @@ -1,60 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SecurityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SecurityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return Whether the kerberosConfig field is set. - */ - boolean hasKerberosConfig(); - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - * - * @return The kerberosConfig. - */ - com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig(); - /** - * - * - *
-   * Kerberos related configuration.
-   * 
- * - * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1; - */ - com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java deleted file mode 100644 index af1211ff..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java +++ /dev/null @@ -1,60 +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/dataproc/v1beta2/shared.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class SharedProto { - private SharedProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/dataproc/v1beta2/shared.p" - + "roto\022\035google.cloud.dataproc.v1beta2\032\034goo" - + "gle/api/annotations.proto*\266\001\n\tComponent\022" - + "\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005" - + "\022\t\n\005DRUID\020\t\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003" - + "\022\013\n\007JUPYTER\020\001\022\014\n\010KERBEROS\020\007\022\n\n\006PRESTO\020\006\022" - + "\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZ" - + "OOKEEPER\020\010By\n!com.google.cloud.dataproc." - + "v1beta2B\013SharedProtoP\001ZEgoogle.golang.or" - + "g/genproto/googleapis/cloud/dataproc/v1b" - + "eta2;dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java deleted file mode 100644 index 78d40dd8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java +++ /dev/null @@ -1,1565 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies the selection and config of software inside the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SoftwareConfig} - */ -public final class SoftwareConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SoftwareConfig) - SoftwareConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SoftwareConfig.newBuilder() to construct. - private SoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SoftwareConfig() { - imageVersion_ = ""; - optionalComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SoftwareConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SoftwareConfig( - 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(); - - imageVersion_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 24: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - optionalComponents_.add(rawValue); - break; - } - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - optionalComponents_.add(rawValue); - } - input.popLimit(oldLimit); - 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_ & 0x00000002) != 0)) { - optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SoftwareConfig.class, - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder.class); - } - - public static final int IMAGE_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object imageVersion_; - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - @java.lang.Override - public java.lang.String getImageVersion() { - java.lang.Object ref = imageVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageVersionBytes() { - java.lang.Object ref = imageVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 2; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER = 3; - private java.util.List optionalComponents_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component> - optionalComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>() { - public com.google.cloud.dataproc.v1beta2.Component convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.Component result = - com.google.cloud.dataproc.v1beta2.Component.valueOf(from); - return result == null - ? com.google.cloud.dataproc.v1beta2.Component.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the optionalComponents. - */ - @java.lang.Override - public java.util.List getOptionalComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>( - optionalComponents_, optionalComponents_converter_); - } - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return The count of optionalComponents. - */ - @java.lang.Override - public int getOptionalComponentsCount() { - return optionalComponents_.size(); - } - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index) { - return optionalComponents_converter_.convert(optionalComponents_.get(index)); - } - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - @java.lang.Override - public java.util.List getOptionalComponentsValueList() { - return optionalComponents_; - } - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - @java.lang.Override - public int getOptionalComponentsValue(int index) { - return optionalComponents_.get(index); - } - - private int optionalComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!getImageVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); - if (getOptionalComponentsList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(optionalComponentsMemoizedSerializedSize); - } - for (int i = 0; i < optionalComponents_.size(); i++) { - output.writeEnumNoTag(optionalComponents_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getImageVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < optionalComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(optionalComponents_.get(i)); - } - size += dataSize; - if (!getOptionalComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - optionalComponentsMemoizedSerializedSize = dataSize; - } - 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.dataproc.v1beta2.SoftwareConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SoftwareConfig other = - (com.google.cloud.dataproc.v1beta2.SoftwareConfig) obj; - - if (!getImageVersion().equals(other.getImageVersion())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!optionalComponents_.equals(other.optionalComponents_)) 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) + IMAGE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getImageVersion().hashCode(); - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getOptionalComponentsCount() > 0) { - hash = (37 * hash) + OPTIONAL_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + optionalComponents_.hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig 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.dataproc.v1beta2.SoftwareConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig 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.dataproc.v1beta2.SoftwareConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig 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.dataproc.v1beta2.SoftwareConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the selection and config of software inside the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SoftwareConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SoftwareConfig) - com.google.cloud.dataproc.v1beta2.SoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SoftwareConfig.class, - com.google.cloud.dataproc.v1beta2.SoftwareConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SoftwareConfig.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(); - imageVersion_ = ""; - - internalGetMutableProperties().clear(); - optionalComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SoftwareConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SoftwareConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SoftwareConfig build() { - com.google.cloud.dataproc.v1beta2.SoftwareConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1beta2.SoftwareConfig result = - new com.google.cloud.dataproc.v1beta2.SoftwareConfig(this); - int from_bitField0_ = bitField0_; - result.imageVersion_ = imageVersion_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.optionalComponents_ = optionalComponents_; - 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.dataproc.v1beta2.SoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SoftwareConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SoftwareConfig other) { - if (other == com.google.cloud.dataproc.v1beta2.SoftwareConfig.getDefaultInstance()) - return this; - if (!other.getImageVersion().isEmpty()) { - imageVersion_ = other.imageVersion_; - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.optionalComponents_.isEmpty()) { - if (optionalComponents_.isEmpty()) { - optionalComponents_ = other.optionalComponents_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOptionalComponentsIsMutable(); - optionalComponents_.addAll(other.optionalComponents_); - } - 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.dataproc.v1beta2.SoftwareConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.SoftwareConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object imageVersion_ = ""; - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - public java.lang.String getImageVersion() { - java.lang.Object ref = imageVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - public com.google.protobuf.ByteString getImageVersionBytes() { - java.lang.Object ref = imageVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The imageVersion to set. - * @return This builder for chaining. - */ - public Builder setImageVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearImageVersion() { - - imageVersion_ = getDefaultInstance().getImageVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for imageVersion to set. - * @return This builder for chaining. - */ - public Builder setImageVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private java.util.List optionalComponents_ = - java.util.Collections.emptyList(); - - private void ensureOptionalComponentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(optionalComponents_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the optionalComponents. - */ - public java.util.List getOptionalComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>( - optionalComponents_, optionalComponents_converter_); - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return The count of optionalComponents. - */ - public int getOptionalComponentsCount() { - return optionalComponents_.size(); - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - public com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index) { - return optionalComponents_converter_.convert(optionalComponents_.get(index)); - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index to set the value at. - * @param value The optionalComponents to set. - * @return This builder for chaining. - */ - public Builder setOptionalComponents( - int index, com.google.cloud.dataproc.v1beta2.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalComponentsIsMutable(); - optionalComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param value The optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addOptionalComponents(com.google.cloud.dataproc.v1beta2.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param values The optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addAllOptionalComponents( - java.lang.Iterable values) { - ensureOptionalComponentsIsMutable(); - for (com.google.cloud.dataproc.v1beta2.Component value : values) { - optionalComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return This builder for chaining. - */ - public Builder clearOptionalComponents() { - optionalComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - public java.util.List getOptionalComponentsValueList() { - return java.util.Collections.unmodifiableList(optionalComponents_); - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - public int getOptionalComponentsValue(int index) { - return optionalComponents_.get(index); - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - * @return This builder for chaining. - */ - public Builder setOptionalComponentsValue(int index, int value) { - ensureOptionalComponentsIsMutable(); - optionalComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param value The enum numeric value on the wire for optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addOptionalComponentsValue(int value) { - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of optional components to activate on the cluster.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param values The enum numeric values on the wire for optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addAllOptionalComponentsValue(java.lang.Iterable values) { - ensureOptionalComponentsIsMutable(); - for (int value : values) { - optionalComponents_.add(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.dataproc.v1beta2.SoftwareConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SoftwareConfig) - private static final com.google.cloud.dataproc.v1beta2.SoftwareConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SoftwareConfig(); - } - - public static com.google.cloud.dataproc.v1beta2.SoftwareConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SoftwareConfig(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.dataproc.v1beta2.SoftwareConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java deleted file mode 100644 index 29b851ca..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java +++ /dev/null @@ -1,254 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SoftwareConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SoftwareConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - java.lang.String getImageVersion(); - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - com.google.protobuf.ByteString getImageVersionBytes(); - - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the optionalComponents. - */ - java.util.List getOptionalComponentsList(); - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return The count of optionalComponents. - */ - int getOptionalComponentsCount(); - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index); - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - java.util.List getOptionalComponentsValueList(); - /** - * - * - *
-   * The set of optional components to activate on the cluster.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - int getOptionalComponentsValue(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java deleted file mode 100644 index 61953199..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java +++ /dev/null @@ -1,2881 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running [Apache Spark](http://spark.apache.org/)
- * applications on YARN.
- * The specification of the main method to call to drive the job.
- * Specify either the jar file that contains the main class or the main class
- * name. To pass both a main jar and a main class in that jar, add the jar to
- * `CommonJob.jar_file_uris`, and then specify the main class name in
- * `main_class`.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkJob} - */ -public final class SparkJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SparkJob) - SparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkJob.newBuilder() to construct. - private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkJob() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SparkJob( - 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(); - driverCase_ = 1; - driver_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkJob.class, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder.class); - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAIN_JAR_FILE_URI(1), - MAIN_CLASS(2), - DRIVER_NOT_SET(0); - private final int value; - - private DriverCase(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 DriverCase valueOf(int value) { - return forNumber(value); - } - - public static DriverCase forNumber(int value) { - switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 1) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAIN_CLASS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 2) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (driverCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (driverCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (driverCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (driverCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - 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.dataproc.v1beta2.SparkJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SparkJob other = - (com.google.cloud.dataproc.v1beta2.SparkJob) obj; - - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getDriverCase().equals(other.getDriverCase())) return false; - switch (driverCase_) { - case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; - break; - case 2: - if (!getMainClass().equals(other.getMainClass())) 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(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (driverCase_) { - case 1: - hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainJarFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob 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.dataproc.v1beta2.SparkJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob 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.dataproc.v1beta2.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob 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.dataproc.v1beta2.SparkJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Spark](http://spark.apache.org/)
-   * applications on YARN.
-   * The specification of the main method to call to drive the job.
-   * Specify either the jar file that contains the main class or the main class
-   * name. To pass both a main jar and a main class in that jar, add the jar to
-   * `CommonJob.jar_file_uris`, and then specify the main class name in
-   * `main_class`.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SparkJob) - com.google.cloud.dataproc.v1beta2.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkJob.class, - com.google.cloud.dataproc.v1beta2.SparkJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SparkJob.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(); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - driverCase_ = 0; - driver_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob build() { - com.google.cloud.dataproc.v1beta2.SparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkJob buildPartial() { - com.google.cloud.dataproc.v1beta2.SparkJob result = - new com.google.cloud.dataproc.v1beta2.SparkJob(this); - int from_bitField0_ = bitField0_; - if (driverCase_ == 1) { - result.driver_ = driver_; - } - if (driverCase_ == 2) { - result.driver_ = driver_; - } - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.driverCase_ = driverCase_; - 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.dataproc.v1beta2.SparkJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SparkJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SparkJob other) { - if (other == com.google.cloud.dataproc.v1beta2.SparkJob.getDefaultInstance()) return this; - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_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.dataproc.v1beta2.SparkJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.SparkJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public Builder clearDriver() { - driverCase_ = 0; - driver_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - @java.lang.Override - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - @java.lang.Override - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 1) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearMainJarFileUri() { - if (driverCase_ == 1) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The bytes for mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - @java.lang.Override - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - @java.lang.Override - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 2) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return This builder for chaining. - */ - public Builder clearMainClass() { - if (driverCase_ == 2) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The bytes for mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.SparkJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkJob) - private static final com.google.cloud.dataproc.v1beta2.SparkJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SparkJob(); - } - - public static com.google.cloud.dataproc.v1beta2.SparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkJob(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.dataproc.v1beta2.SparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java deleted file mode 100644 index a2803a3b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java +++ /dev/null @@ -1,447 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SparkJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - boolean hasMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - java.lang.String getMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); - - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - boolean hasMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - java.lang.String getMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - com.google.protobuf.ByteString getMainClassBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.SparkJob.DriverCase getDriverCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java deleted file mode 100644 index 197e281b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java +++ /dev/null @@ -1,2214 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
- * applications on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkRJob} - */ -public final class SparkRJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SparkRJob) - SparkRJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkRJob.newBuilder() to construct. - private SparkRJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkRJob() { - mainRFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkRJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SparkRJob( - 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(); - - mainRFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - archiveUris_.add(s); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkRJob.class, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder.class); - } - - public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainRFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - @java.lang.Override - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMainRFileUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - if (loggingConfig_ != null) { - output.writeMessage(6, getLoggingConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMainRFileUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); - } - 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.dataproc.v1beta2.SparkRJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SparkRJob other = - (com.google.cloud.dataproc.v1beta2.SparkRJob) obj; - - if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) 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) + MAIN_R_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainRFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob 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.dataproc.v1beta2.SparkRJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob 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.dataproc.v1beta2.SparkRJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob 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.dataproc.v1beta2.SparkRJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
-   * applications on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkRJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SparkRJob) - com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkRJob.class, - com.google.cloud.dataproc.v1beta2.SparkRJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SparkRJob.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(); - mainRFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob build() { - com.google.cloud.dataproc.v1beta2.SparkRJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkRJob buildPartial() { - com.google.cloud.dataproc.v1beta2.SparkRJob result = - new com.google.cloud.dataproc.v1beta2.SparkRJob(this); - int from_bitField0_ = bitField0_; - result.mainRFileUri_ = mainRFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.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.dataproc.v1beta2.SparkRJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SparkRJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SparkRJob other) { - if (other == com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance()) return this; - if (!other.getMainRFileUri().isEmpty()) { - mainRFileUri_ = other.mainRFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - 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.dataproc.v1beta2.SparkRJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.SparkRJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object mainRFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainRFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainRFileUri() { - - mainRFileUri_ = getDefaultInstance().getMainRFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainRFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.SparkRJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkRJob) - private static final com.google.cloud.dataproc.v1beta2.SparkRJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SparkRJob(); - } - - public static com.google.cloud.dataproc.v1beta2.SparkRJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkRJob(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.dataproc.v1beta2.SparkRJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java deleted file mode 100644 index 574e79f3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java +++ /dev/null @@ -1,340 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SparkRJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkRJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - java.lang.String getMainRFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - com.google.protobuf.ByteString getMainRFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java deleted file mode 100644 index 8de6cf6c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java +++ /dev/null @@ -1,2349 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc job for running [Apache Spark
- * SQL](http://spark.apache.org/sql/) queries.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkSqlJob} - */ -public final class SparkSqlJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SparkSqlJob) - SparkSqlJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkSqlJob.newBuilder() to construct. - private SparkSqlJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkSqlJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkSqlJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SparkSqlJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1beta2.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 450: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(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_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetScriptVariables(); - case 4: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.class, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 3; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 4; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 56; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4); - if (loggingConfig_ != null) { - output.writeMessage(6, getLoggingConfig()); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 56, jarFileUris_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.QueryList) queries_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 2 * getJarFileUrisList().size(); - } - 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.dataproc.v1beta2.SparkSqlJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SparkSqlJob other = - (com.google.cloud.dataproc.v1beta2.SparkSqlJob) obj; - - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) 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(); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob 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.dataproc.v1beta2.SparkSqlJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob 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.dataproc.v1beta2.SparkSqlJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob 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.dataproc.v1beta2.SparkSqlJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Spark
-   * SQL](http://spark.apache.org/sql/) queries.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkSqlJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SparkSqlJob) - com.google.cloud.dataproc.v1beta2.SparkSqlJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetScriptVariables(); - case 4: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableScriptVariables(); - case 4: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SparkSqlJob.class, - com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SparkSqlJob.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(); - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SparkSqlJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob build() { - com.google.cloud.dataproc.v1beta2.SparkSqlJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SparkSqlJob buildPartial() { - com.google.cloud.dataproc.v1beta2.SparkSqlJob result = - new com.google.cloud.dataproc.v1beta2.SparkSqlJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1beta2.SparkSqlJob) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SparkSqlJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SparkSqlJob other) { - if (other == com.google.cloud.dataproc.v1beta2.SparkSqlJob.getDefaultInstance()) return this; - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_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.dataproc.v1beta2.SparkSqlJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.SparkSqlJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder setQueryList( - com.google.cloud.dataproc.v1beta2.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1beta2.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1beta2.QueryList.newBuilder( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1beta2.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.QueryList) queries_; - } - return com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1beta2.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.QueryList, - com.google.cloud.dataproc.v1beta2.QueryList.Builder, - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1beta2.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.LoggingConfig, - com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder, - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1beta2.SparkSqlJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkSqlJob) - private static final com.google.cloud.dataproc.v1beta2.SparkSqlJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SparkSqlJob(); - } - - public static com.google.cloud.dataproc.v1beta2.SparkSqlJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkSqlJob(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.dataproc.v1beta2.SparkSqlJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java deleted file mode 100644 index cecb1f2d..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java +++ /dev/null @@ -1,324 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SparkSqlJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkSqlJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1beta2.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1beta2.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1beta2.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.SparkSqlJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java deleted file mode 100644 index 67ae1c9c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java +++ /dev/null @@ -1,1340 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to submit a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SubmitJobRequest} - */ -public final class SubmitJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SubmitJobRequest) - SubmitJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SubmitJobRequest.newBuilder() to construct. - private SubmitJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SubmitJobRequest() { - projectId_ = ""; - region_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SubmitJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SubmitJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest.class, - com.google.cloud.dataproc.v1beta2.SubmitJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1beta2.Job job_; - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - @java.lang.Override - public boolean hasJob() { - return job_ != null; - } - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job getJob() { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() { - return getJob(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (job_ != null) { - output.writeMessage(2, getJob()); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - 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.dataproc.v1beta2.SubmitJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.SubmitJobRequest other = - (com.google.cloud.dataproc.v1beta2.SubmitJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (hasJob() != other.hasJob()) return false; - if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; - } - if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - if (hasJob()) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest 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.dataproc.v1beta2.SubmitJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest 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.dataproc.v1beta2.SubmitJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest 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.dataproc.v1beta2.SubmitJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to submit a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.SubmitJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SubmitJobRequest) - com.google.cloud.dataproc.v1beta2.SubmitJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.SubmitJobRequest.class, - com.google.cloud.dataproc.v1beta2.SubmitJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.SubmitJobRequest.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(); - projectId_ = ""; - - region_ = ""; - - if (jobBuilder_ == null) { - job_ = null; - } else { - job_ = null; - jobBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SubmitJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.SubmitJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SubmitJobRequest build() { - com.google.cloud.dataproc.v1beta2.SubmitJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.SubmitJobRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.SubmitJobRequest result = - new com.google.cloud.dataproc.v1beta2.SubmitJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - if (jobBuilder_ == null) { - result.job_ = job_; - } else { - result.job_ = jobBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1beta2.SubmitJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.SubmitJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SubmitJobRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.SubmitJobRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.hasJob()) { - mergeJob(other.getJob()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - 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.dataproc.v1beta2.SubmitJobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.SubmitJobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.Job job_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - jobBuilder_; - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - public boolean hasJob() { - return jobBuilder_ != null || job_ != null; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - public com.google.cloud.dataproc.v1beta2.Job getJob() { - if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } else { - return jobBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJob(com.google.cloud.dataproc.v1beta2.Job value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - job_ = value; - onChanged(); - } else { - jobBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJob(com.google.cloud.dataproc.v1beta2.Job.Builder builderForValue) { - if (jobBuilder_ == null) { - job_ = builderForValue.build(); - onChanged(); - } else { - jobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeJob(com.google.cloud.dataproc.v1beta2.Job value) { - if (jobBuilder_ == null) { - if (job_ != null) { - job_ = - com.google.cloud.dataproc.v1beta2.Job.newBuilder(job_) - .mergeFrom(value) - .buildPartial(); - } else { - job_ = value; - } - onChanged(); - } else { - jobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = null; - onChanged(); - } else { - job_ = null; - jobBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job.Builder getJobBuilder() { - - onChanged(); - return getJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilder(); - } else { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); - job_ = null; - } - return jobBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-     * id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1beta2.SubmitJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SubmitJobRequest) - private static final com.google.cloud.dataproc.v1beta2.SubmitJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SubmitJobRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.SubmitJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubmitJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitJobRequest(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.dataproc.v1beta2.SubmitJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java deleted file mode 100644 index 3ec50474..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java +++ /dev/null @@ -1,156 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface SubmitJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SubmitJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - com.google.cloud.dataproc.v1beta2.Job getJob(); - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder(); - - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests  with the same
-   * id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java deleted file mode 100644 index c933d772..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java +++ /dev/null @@ -1,1894 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A configurable parameter that replaces one or more fields in the template.
- * Parameterizable fields:
- * - Labels
- * - File uris
- * - Job properties
- * - Job arguments
- * - Script variables
- * - Main class (in HadoopJob and SparkJob)
- * - Zone (in ClusterSelector)
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.TemplateParameter} - */ -public final class TemplateParameter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.TemplateParameter) - TemplateParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use TemplateParameter.newBuilder() to construct. - private TemplateParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TemplateParameter() { - name_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TemplateParameter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TemplateParameter( - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder subBuilder = null; - if (validation_ != null) { - subBuilder = validation_.toBuilder(); - } - validation_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ParameterValidation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validation_); - validation_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.TemplateParameter.class, - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * 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 FIELDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList fields_; - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @return A list containing the fields. - */ - public com.google.protobuf.ProtocolStringList getFieldsList() { - return fields_; - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @return The count of fields. - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATION_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1beta2.ParameterValidation validation_; - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return Whether the validation field is set. - */ - @java.lang.Override - public boolean hasValidation() { - return validation_ != null; - } - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return The validation. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ParameterValidation getValidation() { - return validation_ == null - ? com.google.cloud.dataproc.v1beta2.ParameterValidation.getDefaultInstance() - : validation_; - } - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder getValidationOrBuilder() { - return getValidation(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (validation_ != null) { - output.writeMessage(4, getValidation()); - } - 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_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (validation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getValidation()); - } - 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.dataproc.v1beta2.TemplateParameter)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.TemplateParameter other = - (com.google.cloud.dataproc.v1beta2.TemplateParameter) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasValidation() != other.hasValidation()) return false; - if (hasValidation()) { - if (!getValidation().equals(other.getValidation())) 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(); - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasValidation()) { - hash = (37 * hash) + VALIDATION_FIELD_NUMBER; - hash = (53 * hash) + getValidation().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter 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.dataproc.v1beta2.TemplateParameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter 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.dataproc.v1beta2.TemplateParameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter 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.dataproc.v1beta2.TemplateParameter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configurable parameter that replaces one or more fields in the template.
-   * Parameterizable fields:
-   * - Labels
-   * - File uris
-   * - Job properties
-   * - Job arguments
-   * - Script variables
-   * - Main class (in HadoopJob and SparkJob)
-   * - Zone (in ClusterSelector)
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.TemplateParameter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.TemplateParameter) - com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.TemplateParameter.class, - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.TemplateParameter.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_ = ""; - - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - - if (validationBuilder_ == null) { - validation_ = null; - } else { - validation_ = null; - validationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.TemplateParameter getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.TemplateParameter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.TemplateParameter build() { - com.google.cloud.dataproc.v1beta2.TemplateParameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.TemplateParameter buildPartial() { - com.google.cloud.dataproc.v1beta2.TemplateParameter result = - new com.google.cloud.dataproc.v1beta2.TemplateParameter(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fields_ = fields_; - result.description_ = description_; - if (validationBuilder_ == null) { - result.validation_ = validation_; - } else { - result.validation_ = validationBuilder_.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.dataproc.v1beta2.TemplateParameter) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.TemplateParameter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.TemplateParameter other) { - if (other == com.google.cloud.dataproc.v1beta2.TemplateParameter.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasValidation()) { - mergeValidation(other.getValidation()); - } - 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.dataproc.v1beta2.TemplateParameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.TemplateParameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * 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; - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * 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 com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @return A list containing the fields. - */ - public com.google.protobuf.ProtocolStringList getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @return The count of fields. - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param index The index to set the value at. - * @param value The fields to set. - * @return This builder for chaining. - */ - public Builder setFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param value The fields to add. - * @return This builder for chaining. - */ - public Builder addFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param values The fields to add. - * @return This builder for chaining. - */ - public Builder addAllFields(java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @return This builder for chaining. - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a
-     * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-     * field path that references the zone field of a workflow template's cluster
-     * selector would be specified as `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2; - * - * @param value The bytes of the fields to add. - * @return This builder for chaining. - */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ParameterValidation validation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ParameterValidation, - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder, - com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder> - validationBuilder_; - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return Whether the validation field is set. - */ - public boolean hasValidation() { - return validationBuilder_ != null || validation_ != null; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return The validation. - */ - public com.google.cloud.dataproc.v1beta2.ParameterValidation getValidation() { - if (validationBuilder_ == null) { - return validation_ == null - ? com.google.cloud.dataproc.v1beta2.ParameterValidation.getDefaultInstance() - : validation_; - } else { - return validationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public Builder setValidation(com.google.cloud.dataproc.v1beta2.ParameterValidation value) { - if (validationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validation_ = value; - onChanged(); - } else { - validationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public Builder setValidation( - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder builderForValue) { - if (validationBuilder_ == null) { - validation_ = builderForValue.build(); - onChanged(); - } else { - validationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public Builder mergeValidation(com.google.cloud.dataproc.v1beta2.ParameterValidation value) { - if (validationBuilder_ == null) { - if (validation_ != null) { - validation_ = - com.google.cloud.dataproc.v1beta2.ParameterValidation.newBuilder(validation_) - .mergeFrom(value) - .buildPartial(); - } else { - validation_ = value; - } - onChanged(); - } else { - validationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public Builder clearValidation() { - if (validationBuilder_ == null) { - validation_ = null; - onChanged(); - } else { - validation_ = null; - validationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder getValidationBuilder() { - - onChanged(); - return getValidationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - public com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder getValidationOrBuilder() { - if (validationBuilder_ != null) { - return validationBuilder_.getMessageOrBuilder(); - } else { - return validation_ == null - ? com.google.cloud.dataproc.v1beta2.ParameterValidation.getDefaultInstance() - : validation_; - } - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ParameterValidation, - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder, - com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder> - getValidationFieldBuilder() { - if (validationBuilder_ == null) { - validationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ParameterValidation, - com.google.cloud.dataproc.v1beta2.ParameterValidation.Builder, - com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder>( - getValidation(), getParentForChildren(), isClean()); - validation_ = null; - } - return validationBuilder_; - } - - @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.dataproc.v1beta2.TemplateParameter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.TemplateParameter) - private static final com.google.cloud.dataproc.v1beta2.TemplateParameter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.TemplateParameter(); - } - - public static com.google.cloud.dataproc.v1beta2.TemplateParameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemplateParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TemplateParameter(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.dataproc.v1beta2.TemplateParameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java deleted file mode 100644 index 580307f3..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java +++ /dev/null @@ -1,315 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface TemplateParameterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.TemplateParameter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @return A list containing the fields. - */ - java.util.List getFieldsList(); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @return The count of fields. - */ - int getFieldsCount(); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - java.lang.String getFields(int index); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a
-   * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
-   * field path that references the zone field of a workflow template's cluster
-   * selector would be specified as `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - com.google.protobuf.ByteString getFieldsBytes(int index); - - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return Whether the validation field is set. - */ - boolean hasValidation(); - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - * - * @return The validation. - */ - com.google.cloud.dataproc.v1beta2.ParameterValidation getValidation(); - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ParameterValidation validation = 4; - */ - com.google.cloud.dataproc.v1beta2.ParameterValidationOrBuilder getValidationOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java deleted file mode 100644 index e916172d..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java +++ /dev/null @@ -1,768 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to update an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest} - */ -public final class UpdateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - UpdateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateAutoscalingPolicyRequest.newBuilder() to construct. - private UpdateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateAutoscalingPolicyRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateAutoscalingPolicyRequest( - 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.dataproc.v1beta2.AutoscalingPolicy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = 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.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.Builder.class); - } - - public static final int POLICY_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_; - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - @java.lang.Override - public boolean hasPolicy() { - return policy_ != null; - } - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { - output.writeMessage(1, getPolicy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); - } - 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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) obj; - - if (hasPolicy() != other.hasPolicy()) return false; - if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) 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 (hasPolicy()) { - hash = (37 * hash) + POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPolicy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest 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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest 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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest 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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.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 (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; - policyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest(this); - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (other.hasPolicy()) { - mergePolicy(other.getPolicy()); - } - 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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - policyBuilder_; - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() { - if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } else { - return policyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - policyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy( - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) { - if (policyBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - policyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - policyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; - policyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPolicyBuilder() { - - onChanged(); - return getPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - if (policyBuilder_ != null) { - return policyBuilder_.getMessageOrBuilder(); - } else { - return policy_ == null - ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder> - getPolicyFieldBuilder() { - if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); - policy_ = null; - } - return policyBuilder_; - } - - @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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAutoscalingPolicyRequest(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.dataproc.v1beta2.UpdateAutoscalingPolicyRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index 81514211..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,66 +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/dataproc/v1beta2/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface UpdateAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java deleted file mode 100644 index ad919a25..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java +++ /dev/null @@ -1,2877 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to update a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateClusterRequest} - */ -public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.UpdateClusterRequest) - UpdateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateClusterRequest.newBuilder() to construct. - private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (gracefulDecommissionTimeout_ != null) { - subBuilder = gracefulDecommissionTimeout_.toBuilder(); - } - gracefulDecommissionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gracefulDecommissionTimeout_); - gracefulDecommissionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = 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.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 5; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1beta2.Cluster cluster_; - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return cluster_ != null; - } - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Cluster getCluster() { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 6; - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - @java.lang.Override - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - return getGracefulDecommissionTimeout(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (cluster_ != null) { - output.writeMessage(3, getCluster()); - } - if (updateMask_ != null) { - output.writeMessage(4, getUpdateMask()); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); - } - if (gracefulDecommissionTimeout_ != null) { - output.writeMessage(6, getGracefulDecommissionTimeout()); - } - if (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); - } - if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getGracefulDecommissionTimeout()); - } - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); - } - 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.dataproc.v1beta2.UpdateClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest other = - (com.google.cloud.dataproc.v1beta2.UpdateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; - } - if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; - if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getRequestId().equals(other.getRequestId())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - if (hasGracefulDecommissionTimeout()) { - hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest 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.dataproc.v1beta2.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest 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.dataproc.v1beta2.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest 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.dataproc.v1beta2.UpdateClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.UpdateClusterRequest) - com.google.cloud.dataproc.v1beta2.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.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(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.ClustersProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateClusterRequest build() { - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.UpdateClusterRequest result = - new com.google.cloud.dataproc.v1beta2.UpdateClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - if (gracefulDecommissionTimeoutBuilder_ == null) { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; - } else { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1beta2.UpdateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.UpdateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.UpdateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.UpdateClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (other.hasGracefulDecommissionTimeout()) { - mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - 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.dataproc.v1beta2.UpdateClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.UpdateClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.cloud.dataproc.v1beta2.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1beta2.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.cloud.dataproc.v1beta2.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.cloud.dataproc.v1beta2.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1beta2.Cluster.getDefaultInstance() - : cluster_; - } - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Cluster, - com.google.cloud.dataproc.v1beta2.Cluster.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } else { - return gracefulDecommissionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gracefulDecommissionTimeout_ = value; - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGracefulDecommissionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = builderForValue.build(); - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (gracefulDecommissionTimeout_ != null) { - gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - gracefulDecommissionTimeout_ = value; - } - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - onChanged(); - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - - onChanged(); - return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - if (gracefulDecommissionTimeoutBuilder_ != null) { - return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getGracefulDecommissionTimeoutFieldBuilder() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); - gracefulDecommissionTimeout_ = null; - } - return gracefulDecommissionTimeoutBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> currently only the following fields can be updated:
-     * <table>
-     * <tr>
-     * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-     * </tr>
-     * <tr>
-     * <td>labels</td><td>Updates labels</td>
-     * </tr>
-     * <tr>
-     * <td>config.worker_config.num_instances</td><td>Resize primary worker
-     * group</td>
-     * </tr>
-     * <tr>
-     * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-     * worker group</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-     * deletion timestamp</td>
-     * </tr>
-     * <tr>
-     * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-     * duration</td>
-     * </tr>
-     * <tr>
-     * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-     * autoscaling policies</td>
-     * </tr>
-     * </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-     * requests  with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created
-     * and stored in the backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1beta2.UpdateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateClusterRequest) - private static final com.google.cloud.dataproc.v1beta2.UpdateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.UpdateClusterRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateClusterRequest(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.dataproc.v1beta2.UpdateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java deleted file mode 100644 index b3df24ce..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,451 +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/dataproc/v1beta2/clusters.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface UpdateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.UpdateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - boolean hasCluster(); - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.cloud.dataproc.v1beta2.Cluster getCluster(); - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - boolean hasGracefulDecommissionTimeout(); - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - com.google.protobuf.Duration getGracefulDecommissionTimeout(); - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); - - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> currently only the following fields can be updated:
-   * <table>
-   * <tr>
-   * <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
-   * </tr>
-   * <tr>
-   * <td>labels</td><td>Updates labels</td>
-   * </tr>
-   * <tr>
-   * <td>config.worker_config.num_instances</td><td>Resize primary worker
-   * group</td>
-   * </tr>
-   * <tr>
-   * <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
-   * worker group</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
-   * deletion timestamp</td>
-   * </tr>
-   * <tr>
-   * <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
-   * duration</td>
-   * </tr>
-   * <tr>
-   * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
-   * autoscaling policies</td>
-   * </tr>
-   * </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
-   * requests  with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created
-   * and stored in the backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequest.java deleted file mode 100644 index c0e7a258..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequest.java +++ /dev/null @@ -1,1628 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to update a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateJobRequest} - */ -public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.UpdateJobRequest) - UpdateJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateJobRequest.newBuilder() to construct. - private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 2; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1beta2.Job job_; - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - @java.lang.Override - public boolean hasJob() { - return job_ != null; - } - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.Job getJob() { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() { - return getJob(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 5; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getRegionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); - } - if (job_ != null) { - output.writeMessage(4, getJob()); - } - if (updateMask_ != null) { - output.writeMessage(5, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getRegionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); - } - if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJob()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); - } - 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.dataproc.v1beta2.UpdateJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.UpdateJobRequest other = - (com.google.cloud.dataproc.v1beta2.UpdateJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (hasJob() != other.hasJob()) return false; - if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - if (hasJob()) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest 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.dataproc.v1beta2.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest 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.dataproc.v1beta2.UpdateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest 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.dataproc.v1beta2.UpdateJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.UpdateJobRequest) - com.google.cloud.dataproc.v1beta2.UpdateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateJobRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.UpdateJobRequest.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(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - if (jobBuilder_ == null) { - job_ = null; - } else { - job_ = null; - jobBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.UpdateJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateJobRequest build() { - com.google.cloud.dataproc.v1beta2.UpdateJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateJobRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.UpdateJobRequest result = - new com.google.cloud.dataproc.v1beta2.UpdateJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - if (jobBuilder_ == null) { - result.job_ = job_; - } else { - result.job_ = jobBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.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.dataproc.v1beta2.UpdateJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.UpdateJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.UpdateJobRequest other) { - if (other == com.google.cloud.dataproc.v1beta2.UpdateJobRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.hasJob()) { - mergeJob(other.getJob()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - 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.dataproc.v1beta2.UpdateJobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.UpdateJobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.Job job_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - jobBuilder_; - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - public boolean hasJob() { - return jobBuilder_ != null || job_ != null; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - public com.google.cloud.dataproc.v1beta2.Job getJob() { - if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } else { - return jobBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJob(com.google.cloud.dataproc.v1beta2.Job value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - job_ = value; - onChanged(); - } else { - jobBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJob(com.google.cloud.dataproc.v1beta2.Job.Builder builderForValue) { - if (jobBuilder_ == null) { - job_ = builderForValue.build(); - onChanged(); - } else { - jobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeJob(com.google.cloud.dataproc.v1beta2.Job value) { - if (jobBuilder_ == null) { - if (job_ != null) { - job_ = - com.google.cloud.dataproc.v1beta2.Job.newBuilder(job_) - .mergeFrom(value) - .buildPartial(); - } else { - job_ = value; - } - onChanged(); - } else { - jobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = null; - onChanged(); - } else { - job_ = null; - jobBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.Job.Builder getJobBuilder() { - - onChanged(); - return getJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilder(); - } else { - return job_ == null ? com.google.cloud.dataproc.v1beta2.Job.getDefaultInstance() : job_; - } - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.Job, - com.google.cloud.dataproc.v1beta2.Job.Builder, - com.google.cloud.dataproc.v1beta2.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); - job_ = null; - } - return jobBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @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.dataproc.v1beta2.UpdateJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateJobRequest) - private static final com.google.cloud.dataproc.v1beta2.UpdateJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.UpdateJobRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateJobRequest(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.dataproc.v1beta2.UpdateJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequestOrBuilder.java deleted file mode 100644 index 6c10ce4c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequestOrBuilder.java +++ /dev/null @@ -1,193 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface UpdateJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.UpdateJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - com.google.cloud.dataproc.v1beta2.Job getJob(); - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1beta2.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder(); - - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequest.java deleted file mode 100644 index 9594613b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequest.java +++ /dev/null @@ -1,779 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A request to update a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest} - */ -public final class UpdateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - UpdateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateWorkflowTemplateRequest.newBuilder() to construct. - private UpdateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateWorkflowTemplateRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateWorkflowTemplateRequest( - 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.dataproc.v1beta2.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemplate()); - } - 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.dataproc.v1beta2.UpdateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest 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.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest 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.dataproc.v1beta2.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest 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.dataproc.v1beta2.UpdateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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.dataproc.v1beta2.UpdateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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.dataproc.v1beta2.UpdateWorkflowTemplateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.dataproc.v1beta2.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1beta2.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplate, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - @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.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkflowTemplateRequest(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.dataproc.v1beta2.UpdateWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index b3982e8f..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,69 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface UpdateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidation.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidation.java deleted file mode 100644 index b69a81ef..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidation.java +++ /dev/null @@ -1,737 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Validation based on a list of allowed values.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ValueValidation} - */ -public final class ValueValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ValueValidation) - ValueValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ValueValidation.newBuilder() to construct. - private ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ValueValidation() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValueValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ValueValidation( - 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)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(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)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ValueValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ValueValidation.class, - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - 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 < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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.dataproc.v1beta2.ValueValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.ValueValidation other = - (com.google.cloud.dataproc.v1beta2.ValueValidation) obj; - - if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation 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.dataproc.v1beta2.ValueValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation 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.dataproc.v1beta2.ValueValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation 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.dataproc.v1beta2.ValueValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.ValueValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ValueValidation) - com.google.cloud.dataproc.v1beta2.ValueValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ValueValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.ValueValidation.class, - com.google.cloud.dataproc.v1beta2.ValueValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.ValueValidation.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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidation build() { - com.google.cloud.dataproc.v1beta2.ValueValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ValueValidation buildPartial() { - com.google.cloud.dataproc.v1beta2.ValueValidation result = - new com.google.cloud.dataproc.v1beta2.ValueValidation(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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.dataproc.v1beta2.ValueValidation) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.ValueValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ValueValidation other) { - if (other == com.google.cloud.dataproc.v1beta2.ValueValidation.getDefaultInstance()) - return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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.dataproc.v1beta2.ValueValidation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.ValueValidation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - 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.dataproc.v1beta2.ValueValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ValueValidation) - private static final com.google.cloud.dataproc.v1beta2.ValueValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ValueValidation(); - } - - public static com.google.cloud.dataproc.v1beta2.ValueValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValueValidation(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.dataproc.v1beta2.ValueValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidationOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidationOrBuilder.java deleted file mode 100644 index 929c9555..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidationOrBuilder.java +++ /dev/null @@ -1,76 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface ValueValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ValueValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraph.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraph.java deleted file mode 100644 index f415a5d1..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraph.java +++ /dev/null @@ -1,995 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The workflow graph.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowGraph} - */ -public final class WorkflowGraph extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowGraph) - WorkflowGraphOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowGraph.newBuilder() to construct. - private WorkflowGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowGraph() { - nodes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowGraph(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkflowGraph( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowNode.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)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowGraph.class, - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder.class); - } - - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getNodesList() { - return nodes_; - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getNodesCount() { - return nodes_.size(); - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode getNodes(int index) { - return nodes_.get(index); - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { - return nodes_.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 < nodes_.size(); i++) { - output.writeMessage(1, nodes_.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 < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.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.dataproc.v1beta2.WorkflowGraph)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.WorkflowGraph other = - (com.google.cloud.dataproc.v1beta2.WorkflowGraph) obj; - - if (!getNodesList().equals(other.getNodesList())) 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph 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.dataproc.v1beta2.WorkflowGraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph 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.dataproc.v1beta2.WorkflowGraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph 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.dataproc.v1beta2.WorkflowGraph prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 workflow graph.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowGraph} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowGraph) - com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowGraph.class, - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.WorkflowGraph.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowGraph getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowGraph.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowGraph build() { - com.google.cloud.dataproc.v1beta2.WorkflowGraph result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowGraph buildPartial() { - com.google.cloud.dataproc.v1beta2.WorkflowGraph result = - new com.google.cloud.dataproc.v1beta2.WorkflowGraph(this); - int from_bitField0_ = bitField0_; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.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.dataproc.v1beta2.WorkflowGraph) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowGraph) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowGraph other) { - if (other == com.google.cloud.dataproc.v1beta2.WorkflowGraph.getDefaultInstance()) - return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - 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.dataproc.v1beta2.WorkflowGraph parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.WorkflowGraph) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowNode, - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder> - nodesBuilder_; - - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowNode getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setNodes(int index, com.google.cloud.dataproc.v1beta2.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setNodes( - int index, com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes(com.google.cloud.dataproc.v1beta2.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes(int index, com.google.cloud.dataproc.v1beta2.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes( - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes( - int index, com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder getNodesBuilder(int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.WorkflowNode.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.WorkflowNode.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowNode, - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowNode, - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder>( - nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - @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.dataproc.v1beta2.WorkflowGraph) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowGraph) - private static final com.google.cloud.dataproc.v1beta2.WorkflowGraph DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowGraph(); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowGraph getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowGraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowGraph(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.dataproc.v1beta2.WorkflowGraph getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraphOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraphOrBuilder.java deleted file mode 100644 index c064f028..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraphOrBuilder.java +++ /dev/null @@ -1,87 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface WorkflowGraphOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.WorkflowGraph) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getNodesList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowNode getNodes(int index); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getNodesCount(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getNodesOrBuilderList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder getNodesOrBuilder(int index); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java deleted file mode 100644 index 0505db7d..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java +++ /dev/null @@ -1,4269 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc workflow template resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowMetadata} - */ -public final class WorkflowMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowMetadata) - WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadata.newBuilder() to construct. - private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowMetadata() { - template_ = ""; - state_ = 0; - clusterName_ = ""; - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkflowMetadata( - 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(); - - template_ = s; - break; - } - case 16: - { - version_ = input.readInt32(); - break; - } - case 26: - { - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder subBuilder = null; - if (createCluster_ != null) { - subBuilder = createCluster_.toBuilder(); - } - createCluster_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterOperation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createCluster_); - createCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder subBuilder = null; - if (graph_ != null) { - subBuilder = graph_.toBuilder(); - } - graph_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowGraph.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(graph_); - graph_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder subBuilder = null; - if (deleteCluster_ != null) { - subBuilder = deleteCluster_.toBuilder(); - } - deleteCluster_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterOperation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteCluster_); - deleteCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = - com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); - break; - } - case 74: - { - 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 82: - { - 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; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 98: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dagTimeout_ != null) { - subBuilder = dagTimeout_.toBuilder(); - } - dagTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagTimeout_); - dagTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dagStartTime_ != null) { - subBuilder = dagStartTime_.toBuilder(); - } - dagStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagStartTime_); - dagStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dagEndTime_ != null) { - subBuilder = dagEndTime_.toBuilder(); - } - dagEndTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagEndTime_); - dagEndTime_ = 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.class, - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.Builder.class); - } - - /** - * - * - *
-   * The operation state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.WorkflowMetadata.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - DONE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - public static final int DONE_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 UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - 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.dataproc.v1beta2.WorkflowMetadata.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.dataproc.v1beta2.WorkflowMetadata.State) - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private volatile java.lang.Object template_; - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - @java.lang.Override - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Output only. The version of template at the time of
-   * workflow instantiation.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int CREATE_CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1beta2.ClusterOperation createCluster_; - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - @java.lang.Override - public boolean hasCreateCluster() { - return createCluster_ != null; - } - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperation getCreateCluster() { - return createCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : createCluster_; - } - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getCreateClusterOrBuilder() { - return getCreateCluster(); - } - - public static final int GRAPH_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1beta2.WorkflowGraph graph_; - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - @java.lang.Override - public boolean hasGraph() { - return graph_ != null; - } - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowGraph getGraph() { - return graph_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowGraph.getDefaultInstance() - : graph_; - } - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder getGraphOrBuilder() { - return getGraph(); - } - - public static final int DELETE_CLUSTER_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1beta2.ClusterOperation deleteCluster_; - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - @java.lang.Override - public boolean hasDeleteCluster() { - return deleteCluster_ != null; - } - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperation getDeleteCluster() { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { - return getDeleteCluster(); - } - - public static final int STATE_FIELD_NUMBER = 6; - private int state_; - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.UNRECOGNIZED - : result; - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETERS_FIELD_NUMBER = 8; - - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int START_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 10; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 11; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DAG_TIMEOUT_FIELD_NUMBER = 12; - private com.google.protobuf.Duration dagTimeout_; - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - @java.lang.Override - public boolean hasDagTimeout() { - return dagTimeout_ != null; - } - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getDagTimeout() { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; - } - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - return getDagTimeout(); - } - - public static final int DAG_START_TIME_FIELD_NUMBER = 13; - private com.google.protobuf.Timestamp dagStartTime_; - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - @java.lang.Override - public boolean hasDagStartTime() { - return dagStartTime_ != null; - } - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDagStartTime() { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { - return getDagStartTime(); - } - - public static final int DAG_END_TIME_FIELD_NUMBER = 14; - private com.google.protobuf.Timestamp dagEndTime_; - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - @java.lang.Override - public boolean hasDagEndTime() { - return dagEndTime_ != null; - } - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDagEndTime() { - return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; - } - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { - return getDagEndTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTemplateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - if (createCluster_ != null) { - output.writeMessage(3, getCreateCluster()); - } - if (graph_ != null) { - output.writeMessage(4, getGraph()); - } - if (deleteCluster_ != null) { - output.writeMessage(5, getDeleteCluster()); - } - if (state_ != com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.UNKNOWN.getNumber()) { - output.writeEnum(6, state_); - } - if (!getClusterNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 8); - if (startTime_ != null) { - output.writeMessage(9, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(10, getEndTime()); - } - if (!getClusterUuidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_); - } - if (dagTimeout_ != null) { - output.writeMessage(12, getDagTimeout()); - } - if (dagStartTime_ != null) { - output.writeMessage(13, getDagStartTime()); - } - if (dagEndTime_ != null) { - output.writeMessage(14, getDagEndTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTemplateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - if (createCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateCluster()); - } - if (graph_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraph()); - } - if (deleteCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteCluster()); - } - if (state_ != com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); - } - if (!getClusterNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); - } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters__); - } - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime()); - } - if (!getClusterUuidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); - } - if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); - } - if (dagStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); - } - if (dagEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); - } - 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.dataproc.v1beta2.WorkflowMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.WorkflowMetadata other = - (com.google.cloud.dataproc.v1beta2.WorkflowMetadata) obj; - - if (!getTemplate().equals(other.getTemplate())) return false; - if (getVersion() != other.getVersion()) return false; - if (hasCreateCluster() != other.hasCreateCluster()) return false; - if (hasCreateCluster()) { - if (!getCreateCluster().equals(other.getCreateCluster())) return false; - } - if (hasGraph() != other.hasGraph()) return false; - if (hasGraph()) { - if (!getGraph().equals(other.getGraph())) return false; - } - if (hasDeleteCluster() != other.hasDeleteCluster()) return false; - if (hasDeleteCluster()) { - if (!getDeleteCluster().equals(other.getDeleteCluster())) return false; - } - if (state_ != other.state_) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) 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 (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasDagTimeout() != other.hasDagTimeout()) return false; - if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) return false; - } - if (hasDagStartTime() != other.hasDagStartTime()) return false; - if (hasDagStartTime()) { - if (!getDagStartTime().equals(other.getDagStartTime())) return false; - } - if (hasDagEndTime() != other.hasDagEndTime()) return false; - if (hasDagEndTime()) { - if (!getDagEndTime().equals(other.getDagEndTime())) 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) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (hasCreateCluster()) { - hash = (37 * hash) + CREATE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCreateCluster().hashCode(); - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasDeleteCluster()) { - hash = (37 * hash) + DELETE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getDeleteCluster().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().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 = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasDagTimeout()) { - hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getDagTimeout().hashCode(); - } - if (hasDagStartTime()) { - hash = (37 * hash) + DAG_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDagStartTime().hashCode(); - } - if (hasDagEndTime()) { - hash = (37 * hash) + DAG_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDagEndTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata 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.dataproc.v1beta2.WorkflowMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata 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.dataproc.v1beta2.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata 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.dataproc.v1beta2.WorkflowMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc workflow template resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowMetadata) - com.google.cloud.dataproc.v1beta2.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - return internalGetMutableParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.class, - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.WorkflowMetadata.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(); - template_ = ""; - - version_ = 0; - - if (createClusterBuilder_ == null) { - createCluster_ = null; - } else { - createCluster_ = null; - createClusterBuilder_ = null; - } - if (graphBuilder_ == null) { - graph_ = null; - } else { - graph_ = null; - graphBuilder_ = null; - } - if (deleteClusterBuilder_ == null) { - deleteCluster_ = null; - } else { - deleteCluster_ = null; - deleteClusterBuilder_ = null; - } - state_ = 0; - - clusterName_ = ""; - - internalGetMutableParameters().clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - clusterUuid_ = ""; - - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = null; - } else { - dagStartTime_ = null; - dagStartTimeBuilder_ = null; - } - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = null; - } else { - dagEndTime_ = null; - dagEndTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowMetadata build() { - com.google.cloud.dataproc.v1beta2.WorkflowMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowMetadata buildPartial() { - com.google.cloud.dataproc.v1beta2.WorkflowMetadata result = - new com.google.cloud.dataproc.v1beta2.WorkflowMetadata(this); - int from_bitField0_ = bitField0_; - result.template_ = template_; - result.version_ = version_; - if (createClusterBuilder_ == null) { - result.createCluster_ = createCluster_; - } else { - result.createCluster_ = createClusterBuilder_.build(); - } - if (graphBuilder_ == null) { - result.graph_ = graph_; - } else { - result.graph_ = graphBuilder_.build(); - } - if (deleteClusterBuilder_ == null) { - result.deleteCluster_ = deleteCluster_; - } else { - result.deleteCluster_ = deleteClusterBuilder_.build(); - } - result.state_ = state_; - result.clusterName_ = clusterName_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.clusterUuid_ = clusterUuid_; - if (dagTimeoutBuilder_ == null) { - result.dagTimeout_ = dagTimeout_; - } else { - result.dagTimeout_ = dagTimeoutBuilder_.build(); - } - if (dagStartTimeBuilder_ == null) { - result.dagStartTime_ = dagStartTime_; - } else { - result.dagStartTime_ = dagStartTimeBuilder_.build(); - } - if (dagEndTimeBuilder_ == null) { - result.dagEndTime_ = dagEndTime_; - } else { - result.dagEndTime_ = dagEndTimeBuilder_.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.dataproc.v1beta2.WorkflowMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowMetadata other) { - if (other == com.google.cloud.dataproc.v1beta2.WorkflowMetadata.getDefaultInstance()) - return this; - if (!other.getTemplate().isEmpty()) { - template_ = other.template_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.hasCreateCluster()) { - mergeCreateCluster(other.getCreateCluster()); - } - if (other.hasGraph()) { - mergeGraph(other.getGraph()); - } - if (other.hasDeleteCluster()) { - mergeDeleteCluster(other.getDeleteCluster()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasDagTimeout()) { - mergeDagTimeout(other.getDagTimeout()); - } - if (other.hasDagStartTime()) { - mergeDagStartTime(other.getDagStartTime()); - } - if (other.hasDagEndTime()) { - mergeDagEndTime(other.getDagEndTime()); - } - 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.dataproc.v1beta2.WorkflowMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.WorkflowMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object template_ = ""; - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The template to set. - * @return This builder for chaining. - */ - public Builder setTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - template_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTemplate() { - - template_ = getDefaultInstance().getTemplate(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for template to set. - * @return This builder for chaining. - */ - public Builder setTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - template_ = value; - onChanged(); - return this; - } - - private int version_; - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1beta2.ClusterOperation createCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder> - createClusterBuilder_; - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - public boolean hasCreateCluster() { - return createClusterBuilder_ != null || createCluster_ != null; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperation getCreateCluster() { - if (createClusterBuilder_ == null) { - return createCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : createCluster_; - } else { - return createClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateCluster(com.google.cloud.dataproc.v1beta2.ClusterOperation value) { - if (createClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createCluster_ = value; - onChanged(); - } else { - createClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateCluster( - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder builderForValue) { - if (createClusterBuilder_ == null) { - createCluster_ = builderForValue.build(); - onChanged(); - } else { - createClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateCluster(com.google.cloud.dataproc.v1beta2.ClusterOperation value) { - if (createClusterBuilder_ == null) { - if (createCluster_ != null) { - createCluster_ = - com.google.cloud.dataproc.v1beta2.ClusterOperation.newBuilder(createCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - createCluster_ = value; - } - onChanged(); - } else { - createClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateCluster() { - if (createClusterBuilder_ == null) { - createCluster_ = null; - onChanged(); - } else { - createCluster_ = null; - createClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder getCreateClusterBuilder() { - - onChanged(); - return getCreateClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getCreateClusterOrBuilder() { - if (createClusterBuilder_ != null) { - return createClusterBuilder_.getMessageOrBuilder(); - } else { - return createCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : createCluster_; - } - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder> - getCreateClusterFieldBuilder() { - if (createClusterBuilder_ == null) { - createClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder>( - getCreateCluster(), getParentForChildren(), isClean()); - createCluster_ = null; - } - return createClusterBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.WorkflowGraph graph_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowGraph, - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder> - graphBuilder_; - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - public boolean hasGraph() { - return graphBuilder_ != null || graph_ != null; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - public com.google.cloud.dataproc.v1beta2.WorkflowGraph getGraph() { - if (graphBuilder_ == null) { - return graph_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowGraph.getDefaultInstance() - : graph_; - } else { - return graphBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGraph(com.google.cloud.dataproc.v1beta2.WorkflowGraph value) { - if (graphBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - graph_ = value; - onChanged(); - } else { - graphBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGraph( - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder builderForValue) { - if (graphBuilder_ == null) { - graph_ = builderForValue.build(); - onChanged(); - } else { - graphBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeGraph(com.google.cloud.dataproc.v1beta2.WorkflowGraph value) { - if (graphBuilder_ == null) { - if (graph_ != null) { - graph_ = - com.google.cloud.dataproc.v1beta2.WorkflowGraph.newBuilder(graph_) - .mergeFrom(value) - .buildPartial(); - } else { - graph_ = value; - } - onChanged(); - } else { - graphBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearGraph() { - if (graphBuilder_ == null) { - graph_ = null; - onChanged(); - } else { - graph_ = null; - graphBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder getGraphBuilder() { - - onChanged(); - return getGraphFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder getGraphOrBuilder() { - if (graphBuilder_ != null) { - return graphBuilder_.getMessageOrBuilder(); - } else { - return graph_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowGraph.getDefaultInstance() - : graph_; - } - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowGraph, - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder> - getGraphFieldBuilder() { - if (graphBuilder_ == null) { - graphBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowGraph, - com.google.cloud.dataproc.v1beta2.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder>( - getGraph(), getParentForChildren(), isClean()); - graph_ = null; - } - return graphBuilder_; - } - - private com.google.cloud.dataproc.v1beta2.ClusterOperation deleteCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder> - deleteClusterBuilder_; - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - public boolean hasDeleteCluster() { - return deleteClusterBuilder_ != null || deleteCluster_ != null; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperation getDeleteCluster() { - if (deleteClusterBuilder_ == null) { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } else { - return deleteClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDeleteCluster(com.google.cloud.dataproc.v1beta2.ClusterOperation value) { - if (deleteClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteCluster_ = value; - onChanged(); - } else { - deleteClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDeleteCluster( - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder builderForValue) { - if (deleteClusterBuilder_ == null) { - deleteCluster_ = builderForValue.build(); - onChanged(); - } else { - deleteClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1beta2.ClusterOperation value) { - if (deleteClusterBuilder_ == null) { - if (deleteCluster_ != null) { - deleteCluster_ = - com.google.cloud.dataproc.v1beta2.ClusterOperation.newBuilder(deleteCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - deleteCluster_ = value; - } - onChanged(); - } else { - deleteClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDeleteCluster() { - if (deleteClusterBuilder_ == null) { - deleteCluster_ = null; - onChanged(); - } else { - deleteCluster_ = null; - deleteClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder getDeleteClusterBuilder() { - - onChanged(); - return getDeleteClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { - if (deleteClusterBuilder_ != null) { - return deleteClusterBuilder_.getMessageOrBuilder(); - } else { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1beta2.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder> - getDeleteClusterFieldBuilder() { - if (deleteClusterBuilder_ == null) { - deleteClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterOperation, - com.google.cloud.dataproc.v1beta2.ClusterOperation.Builder, - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder>( - getDeleteCluster(), getParentForChildren(), isClean()); - deleteCluster_ = null; - } - return deleteClusterBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; - if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableParameters().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableParameters().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); - return this; - } - - 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_; - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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_; - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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_; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration dagTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - public boolean hasDagTimeout() { - return dagTimeoutBuilder_ != null || dagTimeout_ != null; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - public com.google.protobuf.Duration getDagTimeout() { - if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } else { - return dagTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagTimeout_ = value; - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = builderForValue.build(); - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (dagTimeout_ != null) { - dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); - } else { - dagTimeout_ = value; - } - onChanged(); - } else { - dagTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagTimeout() { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - onChanged(); - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - - onChanged(); - return getDagTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - if (dagTimeoutBuilder_ != null) { - return dagTimeoutBuilder_.getMessageOrBuilder(); - } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs.
-     * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-     * as a
-     * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-     * For example, "1800" = 1800 seconds/30 minutes duration.
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDagTimeoutFieldBuilder() { - if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); - dagTimeout_ = null; - } - return dagTimeoutBuilder_; - } - - private com.google.protobuf.Timestamp dagStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagStartTimeBuilder_; - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - public boolean hasDagStartTime() { - return dagStartTimeBuilder_ != null || dagStartTime_ != null; - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - public com.google.protobuf.Timestamp getDagStartTime() { - if (dagStartTimeBuilder_ == null) { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } else { - return dagStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagStartTime(com.google.protobuf.Timestamp value) { - if (dagStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagStartTime_ = value; - onChanged(); - } else { - dagStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = builderForValue.build(); - onChanged(); - } else { - dagStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { - if (dagStartTimeBuilder_ == null) { - if (dagStartTime_ != null) { - dagStartTime_ = - com.google.protobuf.Timestamp.newBuilder(dagStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - dagStartTime_ = value; - } - onChanged(); - } else { - dagStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagStartTime() { - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = null; - onChanged(); - } else { - dagStartTime_ = null; - dagStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { - - onChanged(); - return getDagStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { - if (dagStartTimeBuilder_ != null) { - return dagStartTimeBuilder_.getMessageOrBuilder(); - } else { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } - } - /** - * - * - *
-     * Output only. DAG start time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDagStartTimeFieldBuilder() { - if (dagStartTimeBuilder_ == null) { - dagStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagStartTime(), getParentForChildren(), isClean()); - dagStartTime_ = null; - } - return dagStartTimeBuilder_; - } - - private com.google.protobuf.Timestamp dagEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagEndTimeBuilder_; - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - public boolean hasDagEndTime() { - return dagEndTimeBuilder_ != null || dagEndTime_ != null; - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - public com.google.protobuf.Timestamp getDagEndTime() { - if (dagEndTimeBuilder_ == null) { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; - } else { - return dagEndTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagEndTime(com.google.protobuf.Timestamp value) { - if (dagEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagEndTime_ = value; - onChanged(); - } else { - dagEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = builderForValue.build(); - onChanged(); - } else { - dagEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { - if (dagEndTimeBuilder_ == null) { - if (dagEndTime_ != null) { - dagEndTime_ = - com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); - } else { - dagEndTime_ = value; - } - onChanged(); - } else { - dagEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagEndTime() { - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = null; - onChanged(); - } else { - dagEndTime_ = null; - dagEndTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { - - onChanged(); - return getDagEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { - if (dagEndTimeBuilder_ != null) { - return dagEndTimeBuilder_.getMessageOrBuilder(); - } else { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; - } - } - /** - * - * - *
-     * Output only. DAG end time, which is only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-     * when the DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDagEndTimeFieldBuilder() { - if (dagEndTimeBuilder_ == null) { - dagEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagEndTime(), getParentForChildren(), isClean()); - dagEndTime_ = null; - } - return dagEndTimeBuilder_; - } - - @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.dataproc.v1beta2.WorkflowMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowMetadata) - private static final com.google.cloud.dataproc.v1beta2.WorkflowMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowMetadata(); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadata(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.dataproc.v1beta2.WorkflowMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java deleted file mode 100644 index 9630991a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java +++ /dev/null @@ -1,554 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface WorkflowMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.WorkflowMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - java.lang.String getTemplate(); - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - com.google.protobuf.ByteString getTemplateBytes(); - - /** - * - * - *
-   * Output only. The version of template at the time of
-   * workflow instantiation.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - boolean hasCreateCluster(); - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - com.google.cloud.dataproc.v1beta2.ClusterOperation getCreateCluster(); - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getCreateClusterOrBuilder(); - - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - boolean hasGraph(); - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - com.google.cloud.dataproc.v1beta2.WorkflowGraph getGraph(); - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.WorkflowGraphOrBuilder getGraphOrBuilder(); - - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - boolean hasDeleteCluster(); - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - com.google.cloud.dataproc.v1beta2.ClusterOperation getDeleteCluster(); - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1beta2.ClusterOperationOrBuilder getDeleteClusterOrBuilder(); - - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.WorkflowMetadata.State getState(); - - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - int getParametersCount(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getParameters(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - java.util.Map getParametersMap(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - java.lang.String getParametersOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - java.lang.String getParametersOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - boolean hasDagTimeout(); - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - com.google.protobuf.Duration getDagTimeout(); - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs.
-   * Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
-   * as a
-   * [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
-   * For example, "1800" = 1800 seconds/30 minutes duration.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); - - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - boolean hasDagStartTime(); - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - com.google.protobuf.Timestamp getDagStartTime(); - /** - * - * - *
-   * Output only. DAG start time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - boolean hasDagEndTime(); - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - com.google.protobuf.Timestamp getDagEndTime(); - /** - * - * - *
-   * Output only. DAG end time, which is only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout]
-   * when the DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNode.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNode.java deleted file mode 100644 index e5cba5e4..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNode.java +++ /dev/null @@ -1,1682 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * The workflow node.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowNode} - */ -public final class WorkflowNode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowNode) - WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNode.newBuilder() to construct. - private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowNode() { - stepId_ = ""; - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jobId_ = ""; - state_ = 0; - error_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowNode(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkflowNode( - 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(); - - stepId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - prerequisiteStepIds_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = 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)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowNode.class, - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder.class); - } - - /** - * - * - *
-   * The workflow node state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.WorkflowNode.NodeState} - */ - public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * State is unspecified.
-     * 
- * - * NODE_STATUS_UNSPECIFIED = 0; - */ - NODE_STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * The node is awaiting prerequisite node to finish.
-     * 
- * - * BLOCKED = 1; - */ - BLOCKED(1), - /** - * - * - *
-     * The node is runnable but not running.
-     * 
- * - * RUNNABLE = 2; - */ - RUNNABLE(2), - /** - * - * - *
-     * The node is running.
-     * 
- * - * RUNNING = 3; - */ - RUNNING(3), - /** - * - * - *
-     * The node completed successfully.
-     * 
- * - * COMPLETED = 4; - */ - COMPLETED(4), - /** - * - * - *
-     * The node failed. A node can be marked FAILED because
-     * its ancestor or peer failed.
-     * 
- * - * FAILED = 5; - */ - FAILED(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * State is unspecified.
-     * 
- * - * NODE_STATUS_UNSPECIFIED = 0; - */ - public static final int NODE_STATUS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The node is awaiting prerequisite node to finish.
-     * 
- * - * BLOCKED = 1; - */ - public static final int BLOCKED_VALUE = 1; - /** - * - * - *
-     * The node is runnable but not running.
-     * 
- * - * RUNNABLE = 2; - */ - public static final int RUNNABLE_VALUE = 2; - /** - * - * - *
-     * The node is running.
-     * 
- * - * RUNNING = 3; - */ - public static final int RUNNING_VALUE = 3; - /** - * - * - *
-     * The node completed successfully.
-     * 
- * - * COMPLETED = 4; - */ - public static final int COMPLETED_VALUE = 4; - /** - * - * - *
-     * The node failed. A node can be marked FAILED because
-     * its ancestor or peer failed.
-     * 
- * - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NodeState 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 NodeState forNumber(int value) { - switch (value) { - case 0: - return NODE_STATUS_UNSPECIFIED; - case 1: - return BLOCKED; - case 2: - return RUNNABLE; - case 3: - return RUNNING; - case 4: - return COMPLETED; - case 5: - return FAILED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NodeState findValueByNumber(int number) { - return NodeState.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.dataproc.v1beta2.WorkflowNode.getDescriptor().getEnumTypes().get(0); - } - - private static final NodeState[] VALUES = values(); - - public static NodeState 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 NodeState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.WorkflowNode.NodeState) - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object stepId_; - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - @java.lang.Override - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList prerequisiteStepIds_; - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_; - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - - public static final int JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 5; - private int state_; - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.UNRECOGNIZED - : result; - } - - public static final int ERROR_FIELD_NUMBER = 6; - private volatile java.lang.Object error_; - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - @java.lang.Override - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); - } - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prerequisiteStepIds_.getRaw(i)); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); - } - if (state_ - != com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.NODE_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, state_); - } - if (!getErrorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStepIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); - } - { - int dataSize = 0; - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - dataSize += computeStringSizeNoTag(prerequisiteStepIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrerequisiteStepIdsList().size(); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); - } - if (state_ - != com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.NODE_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (!getErrorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); - } - 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.dataproc.v1beta2.WorkflowNode)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.WorkflowNode other = - (com.google.cloud.dataproc.v1beta2.WorkflowNode) obj; - - if (!getStepId().equals(other.getStepId())) return false; - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (state_ != other.state_) return false; - if (!getError().equals(other.getError())) 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) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStepId().hashCode(); - if (getPrerequisiteStepIdsCount() > 0) { - hash = (37 * hash) + PREREQUISITE_STEP_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPrerequisiteStepIdsList().hashCode(); - } - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode 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.dataproc.v1beta2.WorkflowNode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode 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.dataproc.v1beta2.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode 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.dataproc.v1beta2.WorkflowNode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 workflow node.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowNode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowNode) - com.google.cloud.dataproc.v1beta2.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowNode.class, - com.google.cloud.dataproc.v1beta2.WorkflowNode.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.WorkflowNode.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(); - stepId_ = ""; - - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jobId_ = ""; - - state_ = 0; - - error_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowNode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode build() { - com.google.cloud.dataproc.v1beta2.WorkflowNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode buildPartial() { - com.google.cloud.dataproc.v1beta2.WorkflowNode result = - new com.google.cloud.dataproc.v1beta2.WorkflowNode(this); - int from_bitField0_ = bitField0_; - result.stepId_ = stepId_; - if (((bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.prerequisiteStepIds_ = prerequisiteStepIds_; - result.jobId_ = jobId_; - result.state_ = state_; - result.error_ = error_; - 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.dataproc.v1beta2.WorkflowNode) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowNode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowNode other) { - if (other == com.google.cloud.dataproc.v1beta2.WorkflowNode.getDefaultInstance()) return this; - if (!other.getStepId().isEmpty()) { - stepId_ = other.stepId_; - onChanged(); - } - if (!other.prerequisiteStepIds_.isEmpty()) { - if (prerequisiteStepIds_.isEmpty()) { - prerequisiteStepIds_ = other.prerequisiteStepIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.addAll(other.prerequisiteStepIds_); - } - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - 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.dataproc.v1beta2.WorkflowNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1beta2.WorkflowNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object stepId_ = ""; - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The stepId to set. - * @return This builder for chaining. - */ - public Builder setStepId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stepId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStepId() { - - stepId_ = getDefaultInstance().getStepId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for stepId to set. - * @return This builder for chaining. - */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stepId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrerequisiteStepIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The prerequisiteStepIds to set. - * @return This builder for chaining. - */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { - ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrerequisiteStepIds() { - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes of the prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The error to set. - * @return This builder for chaining. - */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for error to set. - * @return This builder for chaining. - */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = 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.dataproc.v1beta2.WorkflowNode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowNode) - private static final com.google.cloud.dataproc.v1beta2.WorkflowNode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowNode(); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNode(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.dataproc.v1beta2.WorkflowNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNodeOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNodeOrBuilder.java deleted file mode 100644 index 551d299f..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNodeOrBuilder.java +++ /dev/null @@ -1,184 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface WorkflowNodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.WorkflowNode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - java.lang.String getStepId(); - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - com.google.protobuf.ByteString getStepIdBytes(); - - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - java.util.List getPrerequisiteStepIdsList(); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - int getPrerequisiteStepIdsCount(); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - java.lang.String getPrerequisiteStepIds(int index); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); - - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.WorkflowNode.NodeState getState(); - - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - java.lang.String getError(); - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - com.google.protobuf.ByteString getErrorBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java deleted file mode 100644 index 4907f90b..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java +++ /dev/null @@ -1,3750 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A Dataproc workflow template resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplate} - */ -public final class WorkflowTemplate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowTemplate) - WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplate.newBuilder() to construct. - private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowTemplate() { - id_ = ""; - name_ = ""; - jobs_ = java.util.Collections.emptyList(); - parameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowTemplate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkflowTemplate( - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 24: - { - version_ = input.readInt32(); - 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 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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 58: - { - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder subBuilder = null; - if (placement_ != null) { - subBuilder = placement_.toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(placement_); - placement_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jobs_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.OrderedJob.parser(), extensionRegistry)); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - parameters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - parameters_.add( - input.readMessage( - com.google.cloud.dataproc.v1beta2.TemplateParameter.parser(), - extensionRegistry)); - break; - } - case 82: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dagTimeout_ != null) { - subBuilder = dagTimeout_.toBuilder(); - } - dagTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagTimeout_); - dagTimeout_ = 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.class, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 2; - private volatile java.lang.Object id_; - /** - * - * - *
-   * Required. The template id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * .
-   * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The template id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * .
-   * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 3; - private int version_; - /** - * - * - *
-   * Optional. Used to perform a consistent read-modify-write.
-   * This field should be left blank for a `CreateWorkflowTemplate` request. It
-   * is required for an `UpdateWorkflowTemplate` request, and must match the
-   * current server version. A typical update template flow would fetch the
-   * current template with a `GetWorkflowTemplate` request, which will return
-   * the current template with the `version` field filled in with the
-   * current server version. The user updates other fields in the template,
-   * then returns it as part of the `UpdateWorkflowTemplate` request.
-   * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 6; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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 PLACEMENT_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement_; - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return Whether the placement field is set. - */ - @java.lang.Override - public boolean hasPlacement() { - return placement_ != null; - } - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return The placement. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder - getPlacementOrBuilder() { - return getPlacement(); - } - - public static final int JOBS_FIELD_NUMBER = 8; - private java.util.List jobs_; - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - @java.lang.Override - public java.util.List getJobsList() { - return jobs_; - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - @java.lang.Override - public java.util.List - getJobsOrBuilderList() { - return jobs_; - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - @java.lang.Override - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.OrderedJob getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder getJobsOrBuilder(int index) { - return jobs_.get(index); - } - - public static final int PARAMETERS_FIELD_NUMBER = 9; - private java.util.List parameters_; - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getParametersList() { - return parameters_; - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getParametersOrBuilderList() { - return parameters_; - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getParametersCount() { - return parameters_.size(); - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.TemplateParameter getParameters(int index) { - return parameters_.get(index); - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder getParametersOrBuilder( - int index) { - return parameters_.get(index); - } - - public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; - private com.google.protobuf.Duration dagTimeout_; - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - @java.lang.Override - public boolean hasDagTimeout() { - return dagTimeout_ != null; - } - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getDagTimeout() { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; - } - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - return getDagTimeout(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); - } - if (version_ != 0) { - output.writeInt32(3, version_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - if (placement_ != null) { - output.writeMessage(7, getPlacement()); - } - for (int i = 0; i < jobs_.size(); i++) { - output.writeMessage(8, jobs_.get(i)); - } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(9, parameters_.get(i)); - } - if (dagTimeout_ != null) { - output.writeMessage(10, getDagTimeout()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, version_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); - } - if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPlacement()); - } - for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, jobs_.get(i)); - } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); - } - if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); - } - 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.dataproc.v1beta2.WorkflowTemplate)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.WorkflowTemplate other = - (com.google.cloud.dataproc.v1beta2.WorkflowTemplate) obj; - - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasPlacement() != other.hasPlacement()) return false; - if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; - } - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getParametersList().equals(other.getParametersList())) return false; - if (hasDagTimeout() != other.hasDagTimeout()) return false; - if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasPlacement()) { - hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; - hash = (53 * hash) + getPlacement().hashCode(); - } - if (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().hashCode(); - } - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); - } - if (hasDagTimeout()) { - hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getDagTimeout().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate 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.dataproc.v1beta2.WorkflowTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate 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.dataproc.v1beta2.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate 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.dataproc.v1beta2.WorkflowTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc workflow template resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowTemplate) - com.google.cloud.dataproc.v1beta2.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.class, - com.google.cloud.dataproc.v1beta2.WorkflowTemplate.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.WorkflowTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getJobsFieldBuilder(); - getParametersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - version_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (placementBuilder_ == null) { - placement_ = null; - } else { - placement_ = null; - placementBuilder_ = null; - } - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - jobsBuilder_.clear(); - } - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - parametersBuilder_.clear(); - } - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate build() { - com.google.cloud.dataproc.v1beta2.WorkflowTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplate buildPartial() { - com.google.cloud.dataproc.v1beta2.WorkflowTemplate result = - new com.google.cloud.dataproc.v1beta2.WorkflowTemplate(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.name_ = name_; - result.version_ = version_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (placementBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = placementBuilder_.build(); - } - if (jobsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jobs_ = jobs_; - } else { - result.jobs_ = jobsBuilder_.build(); - } - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (dagTimeoutBuilder_ == null) { - result.dagTimeout_ = dagTimeout_; - } else { - result.dagTimeout_ = dagTimeoutBuilder_.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.dataproc.v1beta2.WorkflowTemplate) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowTemplate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowTemplate other) { - if (other == com.google.cloud.dataproc.v1beta2.WorkflowTemplate.getDefaultInstance()) - return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasPlacement()) { - mergePlacement(other.getPlacement()); - } - if (jobsBuilder_ == null) { - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - } else { - if (!other.jobs_.isEmpty()) { - if (jobsBuilder_.isEmpty()) { - jobsBuilder_.dispose(); - jobsBuilder_ = null; - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000002); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobsFieldBuilder() - : null; - } else { - jobsBuilder_.addAllMessages(other.jobs_); - } - } - } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000004); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } - } - if (other.hasDagTimeout()) { - mergeDagTimeout(other.getDagTimeout()); - } - 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.dataproc.v1beta2.WorkflowTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.WorkflowTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * - * - *
-     * Required. The template id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * .
-     * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The template id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * .
-     * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The template id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * .
-     * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The template id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * .
-     * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The template id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * .
-     * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int version_; - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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_; - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - 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_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @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; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - 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; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder> - placementBuilder_; - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return Whether the placement field is set. - */ - public boolean hasPlacement() { - return placementBuilder_ != null || placement_ != null; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return The placement. - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getPlacement() { - if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } else { - return placementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public Builder setPlacement(com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement value) { - if (placementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - placementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public Builder setPlacement( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder builderForValue) { - if (placementBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - placementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public Builder mergePlacement( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement value) { - if (placementBuilder_ == null) { - if (placement_ != null) { - placement_ = - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - placementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public Builder clearPlacement() { - if (placementBuilder_ == null) { - placement_ = null; - onChanged(); - } else { - placement_ = null; - placementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder - getPlacementBuilder() { - - onChanged(); - return getPlacementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder - getPlacementOrBuilder() { - if (placementBuilder_ != null) { - return placementBuilder_.getMessageOrBuilder(); - } else { - return placement_ == null - ? com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder> - getPlacementFieldBuilder() { - if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); - placement_ = null; - } - return placementBuilder_; - } - - private java.util.List jobs_ = - java.util.Collections.emptyList(); - - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jobs_ = new java.util.ArrayList(jobs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.OrderedJob, - com.google.cloud.dataproc.v1beta2.OrderedJob.Builder, - com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder> - jobsBuilder_; - - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public java.util.List getJobsList() { - if (jobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobs_); - } else { - return jobsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public int getJobsCount() { - if (jobsBuilder_ == null) { - return jobs_.size(); - } else { - return jobsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public com.google.cloud.dataproc.v1beta2.OrderedJob getJobs(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1beta2.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - } else { - jobsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1beta2.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.set(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder addJobs(com.google.cloud.dataproc.v1beta2.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - } else { - jobsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1beta2.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(index, value); - onChanged(); - } else { - jobsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder addJobs(com.google.cloud.dataproc.v1beta2.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1beta2.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder addAllJobs( - java.lang.Iterable values) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - onChanged(); - } else { - jobsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder clearJobs() { - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - jobsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public Builder removeJobs(int index) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.remove(index); - onChanged(); - } else { - jobsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public com.google.cloud.dataproc.v1beta2.OrderedJob.Builder getJobsBuilder(int index) { - return getJobsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder getJobsOrBuilder(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public java.util.List - getJobsOrBuilderList() { - if (jobsBuilder_ != null) { - return jobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobs_); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public com.google.cloud.dataproc.v1beta2.OrderedJob.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.OrderedJob.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public com.google.cloud.dataproc.v1beta2.OrderedJob.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1beta2.OrderedJob.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - public java.util.List - getJobsBuilderList() { - return getJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.OrderedJob, - com.google.cloud.dataproc.v1beta2.OrderedJob.Builder, - com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder> - getJobsFieldBuilder() { - if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.OrderedJob, - com.google.cloud.dataproc.v1beta2.OrderedJob.Builder, - com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder>( - jobs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - jobs_ = null; - } - return jobsBuilder_; - } - - private java.util.List parameters_ = - java.util.Collections.emptyList(); - - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - parameters_ = - new java.util.ArrayList( - parameters_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.TemplateParameter, - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder, - com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder> - parametersBuilder_; - - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.TemplateParameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParameters( - int index, com.google.cloud.dataproc.v1beta2.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParameters( - int index, com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters(com.google.cloud.dataproc.v1beta2.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); - } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - int index, com.google.cloud.dataproc.v1beta2.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - int index, com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllParameters( - java.lang.Iterable values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); - onChanged(); - } else { - parametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - parametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder getParametersBuilder( - int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parameters_); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1beta2.TemplateParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1beta2.TemplateParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.TemplateParameter, - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder, - com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.TemplateParameter, - com.google.cloud.dataproc.v1beta2.TemplateParameter.Builder, - com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - parameters_ = null; - } - return parametersBuilder_; - } - - private com.google.protobuf.Duration dagTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - public boolean hasDagTimeout() { - return dagTimeoutBuilder_ != null || dagTimeout_ != null; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - public com.google.protobuf.Duration getDagTimeout() { - if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } else { - return dagTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagTimeout_ = value; - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = builderForValue.build(); - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (dagTimeout_ != null) { - dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); - } else { - dagTimeout_ = value; - } - onChanged(); - } else { - dagTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearDagTimeout() { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - onChanged(); - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - - onChanged(); - return getDagTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - if (dagTimeoutBuilder_ != null) { - return dagTimeoutBuilder_.getMessageOrBuilder(); - } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-     * and "d" suffixes for second, minute, hour, and day duration values,
-     * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-     * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-     * the workflow is running at the end of the timeout period, any remaining
-     * jobs are cancelled, the workflow is terminated, and if the workflow was
-     * running on a [managed
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDagTimeoutFieldBuilder() { - if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); - dagTimeout_ = null; - } - return dagTimeoutBuilder_; - } - - @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.dataproc.v1beta2.WorkflowTemplate) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplate) - private static final com.google.cloud.dataproc.v1beta2.WorkflowTemplate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowTemplate(); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplate(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.dataproc.v1beta2.WorkflowTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java deleted file mode 100644 index 85a19f71..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java +++ /dev/null @@ -1,361 +0,0 @@ -/* - * 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.dataproc.v1beta2; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class WorkflowTemplateName implements ResourceName { - private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String region; - private final String workflowTemplate; - private final String location; - - @Deprecated - protected WorkflowTemplateName() { - project = null; - region = null; - workflowTemplate = null; - location = null; - } - - private WorkflowTemplateName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - location = null; - pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE; - } - - private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - region = null; - pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE; - } - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectRegionWorkflowTemplateBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectLocationWorkflowTemplateBuilder newProjectLocationWorkflowTemplateBuilder() { - return new ProjectLocationWorkflowTemplateBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static WorkflowTemplateName of(String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static WorkflowTemplateName ofProjectRegionWorkflowTemplateName( - String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static WorkflowTemplateName ofProjectLocationWorkflowTemplateName( - String project, String location, String workflowTemplate) { - return newProjectLocationWorkflowTemplateBuilder() - .setProject(project) - .setLocation(location) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - public static String format(String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectRegionWorkflowTemplateName( - String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationWorkflowTemplateName( - String project, String location, String workflowTemplate) { - return newProjectLocationWorkflowTemplateBuilder() - .setProject(project) - .setLocation(location) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - public static WorkflowTemplateName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString)) { - Map matchMap = PROJECT_REGION_WORKFLOW_TEMPLATE.match(formattedString); - return ofProjectRegionWorkflowTemplateName( - matchMap.get("project"), matchMap.get("region"), matchMap.get("workflow_template")); - } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_WORKFLOW_TEMPLATE.match(formattedString); - return ofProjectLocationWorkflowTemplateName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("workflow_template")); - } - throw new ValidationException( - "WorkflowTemplateName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (WorkflowTemplateName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString) - || PROJECT_LOCATION_WORKFLOW_TEMPLATE.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 (region != null) { - fieldMapBuilder.put("region", region); - } - if (workflowTemplate != null) { - fieldMapBuilder.put("workflow_template", workflowTemplate); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - WorkflowTemplateName that = ((WorkflowTemplateName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.region, that.region) - && Objects.equals(this.workflowTemplate, that.workflowTemplate) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(region); - h *= 1000003; - h ^= Objects.hashCode(workflowTemplate); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/regions/{region}/workflowTemplates/{workflow_template}. */ - public static class Builder { - private String project; - private String region; - private String workflowTemplate; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setRegion(String region) { - this.region = region; - return this; - } - - public Builder setWorkflowTemplate(String workflowTemplate) { - this.workflowTemplate = workflowTemplate; - return this; - } - - private Builder(WorkflowTemplateName workflowTemplateName) { - Preconditions.checkArgument( - Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE), - "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - this.project = workflowTemplateName.project; - this.region = workflowTemplateName.region; - this.workflowTemplate = workflowTemplateName.workflowTemplate; - } - - public WorkflowTemplateName build() { - return new WorkflowTemplateName(this); - } - } - - /** Builder for projects/{project}/locations/{location}/workflowTemplates/{workflow_template}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectLocationWorkflowTemplateBuilder { - private String project; - private String location; - private String workflowTemplate; - - protected ProjectLocationWorkflowTemplateBuilder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public ProjectLocationWorkflowTemplateBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectLocationWorkflowTemplateBuilder setLocation(String location) { - this.location = location; - return this; - } - - public ProjectLocationWorkflowTemplateBuilder setWorkflowTemplate(String workflowTemplate) { - this.workflowTemplate = workflowTemplate; - return this; - } - - public WorkflowTemplateName build() { - return new WorkflowTemplateName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java deleted file mode 100644 index 82a75da7..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java +++ /dev/null @@ -1,508 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface WorkflowTemplateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.WorkflowTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The template id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * .
-   * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Required. The template id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * .
-   * 
- * - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. Used to perform a consistent read-modify-write.
-   * This field should be left blank for a `CreateWorkflowTemplate` request. It
-   * is required for an `UpdateWorkflowTemplate` request, and must match the
-   * current server version. A typical update template flow would fetch the
-   * current template with a `GetWorkflowTemplate` request, which will return
-   * the current template with the `version` field filled in with the
-   * current server version. The user updates other fields in the template,
-   * then returns it as part of the `UpdateWorkflowTemplate` request.
-   * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return Whether the placement field is set. - */ - boolean hasPlacement(); - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - * - * @return The placement. - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getPlacement(); - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * .google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement placement = 7; - */ - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder(); - - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - java.util.List getJobsList(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - com.google.cloud.dataproc.v1beta2.OrderedJob getJobs(int index); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - int getJobsCount(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - java.util.List - getJobsOrBuilderList(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * repeated .google.cloud.dataproc.v1beta2.OrderedJob jobs = 8; - */ - com.google.cloud.dataproc.v1beta2.OrderedJobOrBuilder getJobsOrBuilder(int index); - - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getParametersList(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.TemplateParameter getParameters(int index); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getParametersCount(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getParametersOrBuilderList(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1beta2.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1beta2.TemplateParameterOrBuilder getParametersOrBuilder(int index); - - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - boolean hasDagTimeout(); - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - com.google.protobuf.Duration getDagTimeout(); - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
-   * and "d" suffixes for second, minute, hour, and day duration values,
-   * respectively. The timeout duration must be from 10 minutes ("10m") to 24
-   * hours ("24h" or "1d"). The timer begins when the first job is submitted. If
-   * the workflow is running at the end of the timeout period, any remaining
-   * jobs are cancelled, the workflow is terminated, and if the workflow was
-   * running on a [managed
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java deleted file mode 100644 index 9dd9d93c..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java +++ /dev/null @@ -1,1175 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * Specifies workflow execution target.
- * Either `managed_cluster` or `cluster_selector` is required.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement} - */ -public final class WorkflowTemplatePlacement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) - WorkflowTemplatePlacementOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplatePlacement.newBuilder() to construct. - private WorkflowTemplatePlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowTemplatePlacement() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowTemplatePlacement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkflowTemplatePlacement( - 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.dataproc.v1beta2.ManagedCluster.Builder subBuilder = null; - if (placementCase_ == 1) { - subBuilder = - ((com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_).toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ManagedCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_); - placement_ = subBuilder.buildPartial(); - } - placementCase_ = 1; - break; - } - case 18: - { - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder subBuilder = null; - if (placementCase_ == 2) { - subBuilder = - ((com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_).toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1beta2.ClusterSelector.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_); - placement_ = subBuilder.buildPartial(); - } - placementCase_ = 2; - 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.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.class, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder.class); - } - - private int placementCase_ = 0; - private java.lang.Object placement_; - - public enum PlacementCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MANAGED_CLUSTER(1), - CLUSTER_SELECTOR(2), - PLACEMENT_NOT_SET(0); - private final int value; - - private PlacementCase(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 PlacementCase valueOf(int value) { - return forNumber(value); - } - - public static PlacementCase forNumber(int value) { - switch (value) { - case 1: - return MANAGED_CLUSTER; - case 2: - return CLUSTER_SELECTOR; - case 0: - return PLACEMENT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PlacementCase getPlacementCase() { - return PlacementCase.forNumber(placementCase_); - } - - public static final int MANAGED_CLUSTER_FIELD_NUMBER = 1; - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - @java.lang.Override - public boolean hasManagedCluster() { - return placementCase_ == 1; - } - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedCluster getManagedCluster() { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder getManagedClusterOrBuilder() { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - - public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - @java.lang.Override - public boolean hasClusterSelector() { - return placementCase_ == 2; - } - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelector getClusterSelector() { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (placementCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_); - } - if (placementCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (placementCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_); - } - if (placementCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_); - } - 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.dataproc.v1beta2.WorkflowTemplatePlacement)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement other = - (com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) obj; - - if (!getPlacementCase().equals(other.getPlacementCase())) return false; - switch (placementCase_) { - case 1: - if (!getManagedCluster().equals(other.getManagedCluster())) return false; - break; - case 2: - if (!getClusterSelector().equals(other.getClusterSelector())) 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 (placementCase_) { - case 1: - hash = (37 * hash) + MANAGED_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getManagedCluster().hashCode(); - break; - case 2: - hash = (37 * hash) + CLUSTER_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getClusterSelector().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement 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.dataproc.v1beta2.WorkflowTemplatePlacement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement 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.dataproc.v1beta2.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement 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.dataproc.v1beta2.WorkflowTemplatePlacement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies workflow execution target.
-   * Either `managed_cluster` or `cluster_selector` is required.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.class, - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.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(); - placementCase_ = 0; - placement_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement build() { - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement buildPartial() { - com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement result = - new com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement(this); - if (placementCase_ == 1) { - if (managedClusterBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = managedClusterBuilder_.build(); - } - } - if (placementCase_ == 2) { - if (clusterSelectorBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = clusterSelectorBuilder_.build(); - } - } - result.placementCase_ = placementCase_; - 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.dataproc.v1beta2.WorkflowTemplatePlacement) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement other) { - if (other == com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.getDefaultInstance()) - return this; - switch (other.getPlacementCase()) { - case MANAGED_CLUSTER: - { - mergeManagedCluster(other.getManagedCluster()); - break; - } - case CLUSTER_SELECTOR: - { - mergeClusterSelector(other.getClusterSelector()); - break; - } - case PLACEMENT_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.dataproc.v1beta2.WorkflowTemplatePlacement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int placementCase_ = 0; - private java.lang.Object placement_; - - public PlacementCase getPlacementCase() { - return PlacementCase.forNumber(placementCase_); - } - - public Builder clearPlacement() { - placementCase_ = 0; - placement_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedCluster, - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder, - com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder> - managedClusterBuilder_; - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - @java.lang.Override - public boolean hasManagedCluster() { - return placementCase_ == 1; - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedCluster getManagedCluster() { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } else { - if (placementCase_ == 1) { - return managedClusterBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - public Builder setManagedCluster(com.google.cloud.dataproc.v1beta2.ManagedCluster value) { - if (managedClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - managedClusterBuilder_.setMessage(value); - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - public Builder setManagedCluster( - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder builderForValue) { - if (managedClusterBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - managedClusterBuilder_.setMessage(builderForValue.build()); - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - public Builder mergeManagedCluster(com.google.cloud.dataproc.v1beta2.ManagedCluster value) { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1 - && placement_ - != com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance()) { - placement_ = - com.google.cloud.dataproc.v1beta2.ManagedCluster.newBuilder( - (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - if (placementCase_ == 1) { - managedClusterBuilder_.mergeFrom(value); - } - managedClusterBuilder_.setMessage(value); - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - public Builder clearManagedCluster() { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1) { - placementCase_ = 0; - placement_ = null; - onChanged(); - } - } else { - if (placementCase_ == 1) { - placementCase_ = 0; - placement_ = null; - } - managedClusterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - public com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder getManagedClusterBuilder() { - return getManagedClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder getManagedClusterOrBuilder() { - if ((placementCase_ == 1) && (managedClusterBuilder_ != null)) { - return managedClusterBuilder_.getMessageOrBuilder(); - } else { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedCluster, - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder, - com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder> - getManagedClusterFieldBuilder() { - if (managedClusterBuilder_ == null) { - if (!(placementCase_ == 1)) { - placement_ = com.google.cloud.dataproc.v1beta2.ManagedCluster.getDefaultInstance(); - } - managedClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ManagedCluster, - com.google.cloud.dataproc.v1beta2.ManagedCluster.Builder, - com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder>( - (com.google.cloud.dataproc.v1beta2.ManagedCluster) placement_, - getParentForChildren(), - isClean()); - placement_ = null; - } - placementCase_ = 1; - onChanged(); - ; - return managedClusterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterSelector, - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder, - com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder> - clusterSelectorBuilder_; - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - @java.lang.Override - public boolean hasClusterSelector() { - return placementCase_ == 2; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelector getClusterSelector() { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } else { - if (placementCase_ == 2) { - return clusterSelectorBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - public Builder setClusterSelector(com.google.cloud.dataproc.v1beta2.ClusterSelector value) { - if (clusterSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - clusterSelectorBuilder_.setMessage(value); - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - public Builder setClusterSelector( - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder builderForValue) { - if (clusterSelectorBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - clusterSelectorBuilder_.setMessage(builderForValue.build()); - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - public Builder mergeClusterSelector(com.google.cloud.dataproc.v1beta2.ClusterSelector value) { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2 - && placement_ - != com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance()) { - placement_ = - com.google.cloud.dataproc.v1beta2.ClusterSelector.newBuilder( - (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - if (placementCase_ == 2) { - clusterSelectorBuilder_.mergeFrom(value); - } - clusterSelectorBuilder_.setMessage(value); - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - public Builder clearClusterSelector() { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2) { - placementCase_ = 0; - placement_ = null; - onChanged(); - } - } else { - if (placementCase_ == 2) { - placementCase_ = 0; - placement_ = null; - } - clusterSelectorBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - public com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder getClusterSelectorBuilder() { - return getClusterSelectorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder - getClusterSelectorOrBuilder() { - if ((placementCase_ == 2) && (clusterSelectorBuilder_ != null)) { - return clusterSelectorBuilder_.getMessageOrBuilder(); - } else { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterSelector, - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder, - com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder> - getClusterSelectorFieldBuilder() { - if (clusterSelectorBuilder_ == null) { - if (!(placementCase_ == 2)) { - placement_ = com.google.cloud.dataproc.v1beta2.ClusterSelector.getDefaultInstance(); - } - clusterSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1beta2.ClusterSelector, - com.google.cloud.dataproc.v1beta2.ClusterSelector.Builder, - com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder>( - (com.google.cloud.dataproc.v1beta2.ClusterSelector) placement_, - getParentForChildren(), - isClean()); - placement_ = null; - } - placementCase_ = 2; - onChanged(); - ; - return clusterSelectorBuilder_; - } - - @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.dataproc.v1beta2.WorkflowTemplatePlacement) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) - private static final com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement(); - } - - public static com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplatePlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplatePlacement(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.dataproc.v1beta2.WorkflowTemplatePlacement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacementOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacementOrBuilder.java deleted file mode 100644 index c6a9ef63..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacementOrBuilder.java +++ /dev/null @@ -1,104 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface WorkflowTemplatePlacementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - boolean hasManagedCluster(); - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - com.google.cloud.dataproc.v1beta2.ManagedCluster getManagedCluster(); - /** - * - * - *
-   * Optional. A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ManagedCluster managed_cluster = 1; - */ - com.google.cloud.dataproc.v1beta2.ManagedClusterOrBuilder getManagedClusterOrBuilder(); - - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - boolean hasClusterSelector(); - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - com.google.cloud.dataproc.v1beta2.ClusterSelector getClusterSelector(); - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1beta2.ClusterSelector cluster_selector = 2; - */ - com.google.cloud.dataproc.v1beta2.ClusterSelectorOrBuilder getClusterSelectorOrBuilder(); - - public com.google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement.PlacementCase - getPlacementCase(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java deleted file mode 100644 index f2c2967d..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java +++ /dev/null @@ -1,651 +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/dataproc/v1beta2/workflow_templates.proto - -package com.google.cloud.dataproc.v1beta2; - -public final class WorkflowTemplatesProto { - private WorkflowTemplatesProto() {} - - 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_dataproc_v1beta2_WorkflowTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_RegexValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ValueValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/dataproc/v1beta2/workflow" - + "_templates.proto\022\035google.cloud.dataproc." - + "v1beta2\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032,google/cloud/dataproc/v1beta2/cluste" - + "rs.proto\032(google/cloud/dataproc/v1beta2/" - + "jobs.proto\032#google/longrunning/operation" - + "s.proto\032\036google/protobuf/duration.proto\032" - + "\033google/protobuf/empty.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\214\006\n\020WorkflowTempla" - + "te\022\017\n\002id\030\002 \001(\tB\003\340A\002\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" - + "\n\007version\030\003 \001(\005B\003\340A\001\0224\n\013create_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022P\n\006labels\030\006 \003(\0132;.google.cloud." - + "dataproc.v1beta2.WorkflowTemplate.Labels" - + "EntryB\003\340A\001\022K\n\tplacement\030\007 \001(\01328.google.c" - + "loud.dataproc.v1beta2.WorkflowTemplatePl" - + "acement\0227\n\004jobs\030\010 \003(\0132).google.cloud.dat" - + "aproc.v1beta2.OrderedJob\022I\n\nparameters\030\t" - + " \003(\01320.google.cloud.dataproc.v1beta2.Tem" - + "plateParameterB\003\340A\001\0223\n\013dag_timeout\030\n \001(\013" - + "2\031.google.protobuf.DurationB\003\340A\001\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "\312\001\352A\306\001\n(dataproc.googleapis.com/Workflow" - + "Template\022Iprojects/{project}/regions/{re" - + "gion}/workflowTemplates/{workflow_templa" - + "te}\022Mprojects/{project}/locations/{locat" - + "ion}/workflowTemplates/{workflow_templat" - + "e} \001\"\276\001\n\031WorkflowTemplatePlacement\022H\n\017ma" - + "naged_cluster\030\001 \001(\0132-.google.cloud.datap" - + "roc.v1beta2.ManagedClusterH\000\022J\n\020cluster_" - + "selector\030\002 \001(\0132..google.cloud.dataproc.v" - + "1beta2.ClusterSelectorH\000B\013\n\tplacement\"\336\001" - + "\n\016ManagedCluster\022\024\n\014cluster_name\030\002 \001(\t\022<" - + "\n\006config\030\003 \001(\0132,.google.cloud.dataproc.v" - + "1beta2.ClusterConfig\022I\n\006labels\030\004 \003(\01329.g" - + "oogle.cloud.dataproc.v1beta2.ManagedClus" - + "ter.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\017ClusterSelect" - + "or\022\014\n\004zone\030\001 \001(\t\022Y\n\016cluster_labels\030\002 \003(\013" - + "2A.google.cloud.dataproc.v1beta2.Cluster" - + "Selector.ClusterLabelsEntry\0324\n\022ClusterLa" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\270\006\n\nOrderedJob\022\024\n\007step_id\030\001 \001(\tB\003\340A\002\022C" - + "\n\nhadoop_job\030\002 \001(\0132(.google.cloud.datapr" - + "oc.v1beta2.HadoopJobB\003\340A\001H\000\022A\n\tspark_job" - + "\030\003 \001(\0132\'.google.cloud.dataproc.v1beta2.S" - + "parkJobB\003\340A\001H\000\022E\n\013pyspark_job\030\004 \001(\0132).go" - + "ogle.cloud.dataproc.v1beta2.PySparkJobB\003" - + "\340A\001H\000\022?\n\010hive_job\030\005 \001(\0132&.google.cloud.d" - + "ataproc.v1beta2.HiveJobB\003\340A\001H\000\022=\n\007pig_jo" - + "b\030\006 \001(\0132%.google.cloud.dataproc.v1beta2." - + "PigJobB\003\340A\001H\000\022D\n\013spark_r_job\030\013 \001(\0132(.goo" - + "gle.cloud.dataproc.v1beta2.SparkRJobB\003\340A" - + "\001H\000\022H\n\rspark_sql_job\030\007 \001(\0132*.google.clou" - + "d.dataproc.v1beta2.SparkSqlJobB\003\340A\001H\000\022C\n" - + "\npresto_job\030\014 \001(\0132(.google.cloud.datapro" - + "c.v1beta2.PrestoJobB\003\340A\001H\000\022J\n\006labels\030\010 \003" - + "(\01325.google.cloud.dataproc.v1beta2.Order" - + "edJob.LabelsEntryB\003\340A\001\022E\n\nscheduling\030\t \001" - + "(\0132,.google.cloud.dataproc.v1beta2.JobSc" - + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" - + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\216\001\n\021Templat" - + "eParameter\022\014\n\004name\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t" - + "\022\023\n\013description\030\003 \001(\t\022F\n\nvalidation\030\004 \001(" - + "\01322.google.cloud.dataproc.v1beta2.Parame" - + "terValidation\"\253\001\n\023ParameterValidation\022?\n" - + "\005regex\030\001 \001(\0132..google.cloud.dataproc.v1b" - + "eta2.RegexValidationH\000\022@\n\006values\030\002 \001(\0132." - + ".google.cloud.dataproc.v1beta2.ValueVali" - + "dationH\000B\021\n\017validation_type\"\"\n\017RegexVali" - + "dation\022\017\n\007regexes\030\001 \003(\t\"!\n\017ValueValidati" - + "on\022\016\n\006values\030\001 \003(\t\"\355\006\n\020WorkflowMetadata\022" - + "\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\002 \001(\005B" - + "\003\340A\003\022L\n\016create_cluster\030\003 \001(\0132/.google.cl" - + "oud.dataproc.v1beta2.ClusterOperationB\003\340" - + "A\003\022@\n\005graph\030\004 \001(\0132,.google.cloud.datapro" - + "c.v1beta2.WorkflowGraphB\003\340A\003\022L\n\016delete_c" - + "luster\030\005 \001(\0132/.google.cloud.dataproc.v1b" - + "eta2.ClusterOperationB\003\340A\003\022I\n\005state\030\006 \001(" - + "\01625.google.cloud.dataproc.v1beta2.Workfl" - + "owMetadata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 " - + "\001(\tB\003\340A\003\022S\n\nparameters\030\010 \003(\0132?.google.cl" - + "oud.dataproc.v1beta2.WorkflowMetadata.Pa" - + "rametersEntry\0223\n\nstart_time\030\t \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\n" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" - + "\014cluster_uuid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030" - + "\014 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0227\n" - + "\016dag_start_time\030\r \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0321\n\017Paramet" - + "ersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"8\n\005State\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007R" - + "UNNING\020\002\022\010\n\004DONE\020\003\"T\n\020ClusterOperation\022\031" - + "\n\014operation_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\t" - + "B\003\340A\003\022\021\n\004done\030\003 \001(\010B\003\340A\003\"P\n\rWorkflowGrap" - + "h\022?\n\005nodes\030\001 \003(\0132+.google.cloud.dataproc" - + ".v1beta2.WorkflowNodeB\003\340A\003\"\251\002\n\014WorkflowN" - + "ode\022\024\n\007step_id\030\001 \001(\tB\003\340A\003\022\"\n\025prerequisit" - + "e_step_ids\030\002 \003(\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340" - + "A\003\022I\n\005state\030\005 \001(\01625.google.cloud.datapro" - + "c.v1beta2.WorkflowNode.NodeStateB\003\340A\003\022\022\n" - + "\005error\030\006 \001(\tB\003\340A\003\"k\n\tNodeState\022\033\n\027NODE_S" - + "TATUS_UNSPECIFIED\020\000\022\013\n\007BLOCKED\020\001\022\014\n\010RUNN" - + "ABLE\020\002\022\013\n\007RUNNING\020\003\022\r\n\tCOMPLETED\020\004\022\n\n\006FA" - + "ILED\020\005\"\251\001\n\035CreateWorkflowTemplateRequest" - + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dataproc.googl" - + "eapis.com/WorkflowTemplate\022F\n\010template\030\002" - + " \001(\0132/.google.cloud.dataproc.v1beta2.Wor" - + "kflowTemplateB\003\340A\002\"m\n\032GetWorkflowTemplat" - + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc" - + ".googleapis.com/WorkflowTemplate\022\017\n\007vers" - + "ion\030\002 \001(\005\"\274\002\n\"InstantiateWorkflowTemplat" - + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc" - + ".googleapis.com/WorkflowTemplate\022\017\n\007vers" - + "ion\030\002 \001(\005\022\027\n\013instance_id\030\003 \001(\tB\002\030\001\022\022\n\nre" - + "quest_id\030\005 \001(\t\022e\n\nparameters\030\004 \003(\0132Q.goo" - + "gle.cloud.dataproc.v1beta2.InstantiateWo" - + "rkflowTemplateRequest.ParametersEntry\0321\n" - + "\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\335\001\n(InstantiateInlineWorkflowTe" - + "mplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(d" - + "ataproc.googleapis.com/WorkflowTemplate\022" - + "F\n\010template\030\002 \001(\0132/.google.cloud.datapro" - + "c.v1beta2.WorkflowTemplateB\003\340A\002\022\023\n\013insta" - + "nce_id\030\003 \001(\t\022\022\n\nrequest_id\030\004 \001(\t\"g\n\035Upda" - + "teWorkflowTemplateRequest\022F\n\010template\030\001 " - + "\001(\0132/.google.cloud.dataproc.v1beta2.Work" - + "flowTemplateB\003\340A\002\"\207\001\n\034ListWorkflowTempla" - + "tesRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(data" - + "proc.googleapis.com/WorkflowTemplate\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\206\001\n\035" - + "ListWorkflowTemplatesResponse\022G\n\ttemplat" - + "es\030\001 \003(\0132/.google.cloud.dataproc.v1beta2" - + ".WorkflowTemplateB\003\340A\003\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\003\"p\n\035DeleteWorkflowTemplateRe" - + "quest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dataproc.go" - + "ogleapis.com/WorkflowTemplate\022\017\n\007version" - + "\030\002 \001(\0052\351\021\n\027WorkflowTemplateService\022\260\002\n\026C" - + "reateWorkflowTemplate\022<.google.cloud.dat" - + "aproc.v1beta2.CreateWorkflowTemplateRequ" - + "est\032/.google.cloud.dataproc.v1beta2.Work" - + "flowTemplate\"\246\001\202\323\344\223\002\214\001\"8/v1beta2/{parent" - + "=projects/*/regions/*}/workflowTemplates" - + ":\010templateZF\":/v1beta2/{parent=projects/" - + "*/locations/*}/workflowTemplates:\010templa" - + "te\332A\020parent, template\022\211\002\n\023GetWorkflowTem" - + "plate\0229.google.cloud.dataproc.v1beta2.Ge" - + "tWorkflowTemplateRequest\032/.google.cloud." - + "dataproc.v1beta2.WorkflowTemplate\"\205\001\202\323\344\223" - + "\002x\0228/v1beta2/{name=projects/*/regions/*/" - + "workflowTemplates/*}Z<\022:/v1beta2/{name=p" - + "rojects/*/locations/*/workflowTemplates/" - + "*}\332A\004name\022\345\002\n\033InstantiateWorkflowTemplat" - + "e\022A.google.cloud.dataproc.v1beta2.Instan" - + "tiateWorkflowTemplateRequest\032\035.google.lo" - + "ngrunning.Operation\"\343\001\202\323\344\223\002\226\001\"D/v1beta2/" - + "{name=projects/*/regions/*/workflowTempl" - + "ates/*}:instantiate:\001*ZK\"F/v1beta2/{name" - + "=projects/*/locations/*/workflowTemplate" - + "s/*}:instantiate:\001*\332A\004name\332A\020name, param" - + "eters\312A)\n\025google.protobuf.Empty\022\020Workflo" - + "wMetadata\022\204\003\n!InstantiateInlineWorkflowT" - + "emplate\022G.google.cloud.dataproc.v1beta2." - + "InstantiateInlineWorkflowTemplateRequest" - + "\032\035.google.longrunning.Operation\"\366\001\202\323\344\223\002\260" - + "\001\"L/v1beta2/{parent=projects/*/locations" - + "/*}/workflowTemplates:instantiateInline:" - + "\010templateZV\"J/v1beta2/{parent=projects/*" - + "/regions/*}/workflowTemplates:instantiat" - + "eInline:\010template\332A\020parent, template\312A)\n" - + "\025google.protobuf.Empty\022\020WorkflowMetadata" - + "\022\272\002\n\026UpdateWorkflowTemplate\022<.google.clo" - + "ud.dataproc.v1beta2.UpdateWorkflowTempla" - + "teRequest\032/.google.cloud.dataproc.v1beta" - + "2.WorkflowTemplate\"\260\001\202\323\344\223\002\236\001\032A/v1beta2/{" - + "template.name=projects/*/regions/*/workf" - + "lowTemplates/*}:\010templateZO\032C/v1beta2/{t" - + "emplate.name=projects/*/locations/*/work" - + "flowTemplates/*}:\010template\332A\010template\022\234\002" - + "\n\025ListWorkflowTemplates\022;.google.cloud.d" - + "ataproc.v1beta2.ListWorkflowTemplatesReq" - + "uest\032<.google.cloud.dataproc.v1beta2.Lis" - + "tWorkflowTemplatesResponse\"\207\001\202\323\344\223\002x\0228/v1" - + "beta2/{parent=projects/*/regions/*}/work" - + "flowTemplatesZ<\022:/v1beta2/{parent=projec" - + "ts/*/locations/*}/workflowTemplates\332A\006pa" - + "rent\022\366\001\n\026DeleteWorkflowTemplate\022<.google" - + ".cloud.dataproc.v1beta2.DeleteWorkflowTe" - + "mplateRequest\032\026.google.protobuf.Empty\"\205\001" - + "\202\323\344\223\002x*8/v1beta2/{name=projects/*/region" - + "s/*/workflowTemplates/*}Z<*:/v1beta2/{na" - + "me=projects/*/locations/*/workflowTempla" - + "tes/*}\332A\004name\032K\312A\027dataproc.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\204\001\n!com.google.cloud.dataproc" - + ".v1beta2B\026WorkflowTemplatesProtoP\001ZEgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "dataproc/v1beta2;dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.dataproc.v1beta2.ClustersProto.getDescriptor(), - com.google.cloud.dataproc.v1beta2.JobsProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor, - new java.lang.String[] { - "Id", - "Name", - "Version", - "CreateTime", - "UpdateTime", - "Labels", - "Placement", - "Jobs", - "Parameters", - "DagTimeout", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowTemplatePlacement_descriptor, - new java.lang.String[] { - "ManagedCluster", "ClusterSelector", "Placement", - }); - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor, - new java.lang.String[] { - "ClusterName", "Config", "Labels", - }); - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ManagedCluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor, - new java.lang.String[] { - "Zone", "ClusterLabels", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterSelector_ClusterLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor, - new java.lang.String[] { - "StepId", - "HadoopJob", - "SparkJob", - "PysparkJob", - "HiveJob", - "PigJob", - "SparkRJob", - "SparkSqlJob", - "PrestoJob", - "Labels", - "Scheduling", - "PrerequisiteStepIds", - "JobType", - }); - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_OrderedJob_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_TemplateParameter_descriptor, - new java.lang.String[] { - "Name", "Fields", "Description", "Validation", - }); - internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ParameterValidation_descriptor, - new java.lang.String[] { - "Regex", "Values", "ValidationType", - }); - internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1beta2_RegexValidation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_RegexValidation_descriptor, - new java.lang.String[] { - "Regexes", - }); - internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1beta2_ValueValidation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ValueValidation_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor, - new java.lang.String[] { - "Template", - "Version", - "CreateCluster", - "Graph", - "DeleteCluster", - "State", - "ClusterName", - "Parameters", - "StartTime", - "EndTime", - "ClusterUuid", - "DagTimeout", - "DagStartTime", - "DagEndTime", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowMetadata_ParametersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ClusterOperation_descriptor, - new java.lang.String[] { - "OperationId", "Error", "Done", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowGraph_descriptor, - new java.lang.String[] { - "Nodes", - }); - internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_WorkflowNode_descriptor, - new java.lang.String[] { - "StepId", "PrerequisiteStepIds", "JobId", "State", "Error", - }); - internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_CreateWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Parent", "Template", - }); - internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_GetWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "Version", - }); - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "Version", "InstanceId", "RequestId", "Parameters", - }); - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor = - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_InstantiateInlineWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Parent", "Template", "InstanceId", "RequestId", - }); - internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_UpdateWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Template", - }); - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_ListWorkflowTemplatesResponse_descriptor, - new java.lang.String[] { - "Templates", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1beta2_DeleteWorkflowTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "Version", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1beta2.ClustersProto.getDescriptor(); - com.google.cloud.dataproc.v1beta2.JobsProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplication.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplication.java deleted file mode 100644 index de8165eb..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplication.java +++ /dev/null @@ -1,1395 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -/** - * - * - *
- * A YARN application created by a job. Application information is a subset of
- * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
- * **Beta Feature**: This report is available for testing purposes only. It may
- * be changed before final release.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.YarnApplication} - */ -public final class YarnApplication extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.YarnApplication) - YarnApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use YarnApplication.newBuilder() to construct. - private YarnApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private YarnApplication() { - name_ = ""; - state_ = 0; - trackingUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new YarnApplication(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private YarnApplication( - 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 16: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 29: - { - progress_ = input.readFloat(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - trackingUrl_ = 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.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_YarnApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.YarnApplication.class, - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder.class); - } - - /** - * - * - *
-   * The application state, corresponding to
-   * <code>YarnProtos.YarnApplicationStateProto</code>.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1beta2.YarnApplication.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Status is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * Status is NEW.
-     * 
- * - * NEW = 1; - */ - NEW(1), - /** - * - * - *
-     * Status is NEW_SAVING.
-     * 
- * - * NEW_SAVING = 2; - */ - NEW_SAVING(2), - /** - * - * - *
-     * Status is SUBMITTED.
-     * 
- * - * SUBMITTED = 3; - */ - SUBMITTED(3), - /** - * - * - *
-     * Status is ACCEPTED.
-     * 
- * - * ACCEPTED = 4; - */ - ACCEPTED(4), - /** - * - * - *
-     * Status is RUNNING.
-     * 
- * - * RUNNING = 5; - */ - RUNNING(5), - /** - * - * - *
-     * Status is FINISHED.
-     * 
- * - * FINISHED = 6; - */ - FINISHED(6), - /** - * - * - *
-     * Status is FAILED.
-     * 
- * - * FAILED = 7; - */ - FAILED(7), - /** - * - * - *
-     * Status is KILLED.
-     * 
- * - * KILLED = 8; - */ - KILLED(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Status is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Status is NEW.
-     * 
- * - * NEW = 1; - */ - public static final int NEW_VALUE = 1; - /** - * - * - *
-     * Status is NEW_SAVING.
-     * 
- * - * NEW_SAVING = 2; - */ - public static final int NEW_SAVING_VALUE = 2; - /** - * - * - *
-     * Status is SUBMITTED.
-     * 
- * - * SUBMITTED = 3; - */ - public static final int SUBMITTED_VALUE = 3; - /** - * - * - *
-     * Status is ACCEPTED.
-     * 
- * - * ACCEPTED = 4; - */ - public static final int ACCEPTED_VALUE = 4; - /** - * - * - *
-     * Status is RUNNING.
-     * 
- * - * RUNNING = 5; - */ - public static final int RUNNING_VALUE = 5; - /** - * - * - *
-     * Status is FINISHED.
-     * 
- * - * FINISHED = 6; - */ - public static final int FINISHED_VALUE = 6; - /** - * - * - *
-     * Status is FAILED.
-     * 
- * - * FAILED = 7; - */ - public static final int FAILED_VALUE = 7; - /** - * - * - *
-     * Status is KILLED.
-     * 
- * - * KILLED = 8; - */ - public static final int KILLED_VALUE = 8; - - 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 NEW; - case 2: - return NEW_SAVING; - case 3: - return SUBMITTED; - case 4: - return ACCEPTED; - case 5: - return RUNNING; - case 6: - return FINISHED; - case 7: - return FAILED; - case 8: - return KILLED; - 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.dataproc.v1beta2.YarnApplication.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.dataproc.v1beta2.YarnApplication.State) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * - * - *
-   * Output only. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.YarnApplication.State result = - com.google.cloud.dataproc.v1beta2.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.YarnApplication.State.UNRECOGNIZED - : result; - } - - public static final int PROGRESS_FIELD_NUMBER = 3; - private float progress_; - /** - * - * - *
-   * Output only. The numerical progress of the application, from 1 to 100.
-   * 
- * - * float progress = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The progress. - */ - @java.lang.Override - public float getProgress() { - return progress_; - } - - public static final int TRACKING_URL_FIELD_NUMBER = 4; - private volatile java.lang.Object trackingUrl_; - /** - * - * - *
-   * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The trackingUrl. - */ - @java.lang.Override - public java.lang.String getTrackingUrl() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trackingUrl_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for trackingUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTrackingUrlBytes() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - trackingUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (state_ - != com.google.cloud.dataproc.v1beta2.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, state_); - } - if (progress_ != 0F) { - output.writeFloat(3, progress_); - } - if (!getTrackingUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trackingUrl_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (state_ - != com.google.cloud.dataproc.v1beta2.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - if (progress_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); - } - if (!getTrackingUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); - } - 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.dataproc.v1beta2.YarnApplication)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1beta2.YarnApplication other = - (com.google.cloud.dataproc.v1beta2.YarnApplication) obj; - - if (!getName().equals(other.getName())) return false; - if (state_ != other.state_) return false; - if (java.lang.Float.floatToIntBits(getProgress()) - != java.lang.Float.floatToIntBits(other.getProgress())) return false; - if (!getTrackingUrl().equals(other.getTrackingUrl())) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getProgress()); - hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; - hash = (53 * hash) + getTrackingUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication 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.dataproc.v1beta2.YarnApplication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication 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.dataproc.v1beta2.YarnApplication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication 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.dataproc.v1beta2.YarnApplication prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 YARN application created by a job. Application information is a subset of
-   * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
-   * **Beta Feature**: This report is available for testing purposes only. It may
-   * be changed before final release.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1beta2.YarnApplication} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.YarnApplication) - com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_YarnApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1beta2.YarnApplication.class, - com.google.cloud.dataproc.v1beta2.YarnApplication.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1beta2.YarnApplication.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_ = ""; - - state_ = 0; - - progress_ = 0F; - - trackingUrl_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1beta2.JobsProto - .internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1beta2.YarnApplication.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication build() { - com.google.cloud.dataproc.v1beta2.YarnApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication buildPartial() { - com.google.cloud.dataproc.v1beta2.YarnApplication result = - new com.google.cloud.dataproc.v1beta2.YarnApplication(this); - result.name_ = name_; - result.state_ = state_; - result.progress_ = progress_; - result.trackingUrl_ = trackingUrl_; - 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.dataproc.v1beta2.YarnApplication) { - return mergeFrom((com.google.cloud.dataproc.v1beta2.YarnApplication) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.YarnApplication other) { - if (other == com.google.cloud.dataproc.v1beta2.YarnApplication.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.getProgress() != 0F) { - setProgress(other.getProgress()); - } - if (!other.getTrackingUrl().isEmpty()) { - trackingUrl_ = other.trackingUrl_; - 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.dataproc.v1beta2.YarnApplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1beta2.YarnApplication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1beta2.YarnApplication.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1beta2.YarnApplication.State result = - com.google.cloud.dataproc.v1beta2.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1beta2.YarnApplication.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1beta2.YarnApplication.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private float progress_; - /** - * - * - *
-     * Output only. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The progress. - */ - @java.lang.Override - public float getProgress() { - return progress_; - } - /** - * - * - *
-     * Output only. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The progress to set. - * @return This builder for chaining. - */ - public Builder setProgress(float value) { - - progress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearProgress() { - - progress_ = 0F; - onChanged(); - return this; - } - - private java.lang.Object trackingUrl_ = ""; - /** - * - * - *
-     * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The trackingUrl. - */ - public java.lang.String getTrackingUrl() { - java.lang.Object ref = trackingUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trackingUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for trackingUrl. - */ - public com.google.protobuf.ByteString getTrackingUrlBytes() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - trackingUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The trackingUrl to set. - * @return This builder for chaining. - */ - public Builder setTrackingUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trackingUrl_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTrackingUrl() { - - trackingUrl_ = getDefaultInstance().getTrackingUrl(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for trackingUrl to set. - * @return This builder for chaining. - */ - public Builder setTrackingUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - trackingUrl_ = 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.dataproc.v1beta2.YarnApplication) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.YarnApplication) - private static final com.google.cloud.dataproc.v1beta2.YarnApplication DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.YarnApplication(); - } - - public static com.google.cloud.dataproc.v1beta2.YarnApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public YarnApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new YarnApplication(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.dataproc.v1beta2.YarnApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplicationOrBuilder.java b/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplicationOrBuilder.java deleted file mode 100644 index 438157a4..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplicationOrBuilder.java +++ /dev/null @@ -1,123 +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/dataproc/v1beta2/jobs.proto - -package com.google.cloud.dataproc.v1beta2; - -public interface YarnApplicationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.YarnApplication) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1beta2.YarnApplication.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1beta2.YarnApplication.State getState(); - - /** - * - * - *
-   * Output only. The numerical progress of the application, from 1 to 100.
-   * 
- * - * float progress = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The progress. - */ - float getProgress(); - - /** - * - * - *
-   * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The trackingUrl. - */ - java.lang.String getTrackingUrl(); - /** - * - * - *
-   * Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for trackingUrl. - */ - com.google.protobuf.ByteString getTrackingUrlBytes(); -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto deleted file mode 100644 index 7601cca8..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto +++ /dev/null @@ -1,369 +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.dataproc.v1beta2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "AutoscalingPoliciesProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; -option (google.api.resource_definition) = { - type: "dataproc.googleapis.com/Region" - pattern: "projects/{project}/regions/{region}" -}; - -// The API interface for managing autoscaling policies in the -// Cloud Dataproc API. -service AutoscalingPolicyService { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates new autoscaling policy. - rpc CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest) - returns (AutoscalingPolicy) { - option (google.api.http) = { - post: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies" - body: "policy" - additional_bindings { - post: "/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies" - body: "policy" - } - }; - option (google.api.method_signature) = "parent,policy"; - } - - // Updates (replaces) autoscaling policy. - // - // Disabled check for update_mask, because all updates will be full - // replacements. - rpc UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest) - returns (AutoscalingPolicy) { - option (google.api.http) = { - put: "/v1beta2/{policy.name=projects/*/locations/*/autoscalingPolicies/*}" - body: "policy" - additional_bindings { - put: "/v1beta2/{policy.name=projects/*/regions/*/autoscalingPolicies/*}" - body: "policy" - } - }; - option (google.api.method_signature) = "policy"; - } - - // Retrieves autoscaling policy. - rpc GetAutoscalingPolicy(GetAutoscalingPolicyRequest) - returns (AutoscalingPolicy) { - option (google.api.http) = { - get: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}" - additional_bindings { - get: "/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Lists autoscaling policies in the project. - rpc ListAutoscalingPolicies(ListAutoscalingPoliciesRequest) - returns (ListAutoscalingPoliciesResponse) { - option (google.api.http) = { - get: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies" - additional_bindings { - get: "/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes an autoscaling policy. It is an error to delete an autoscaling - // policy that is in use by one or more clusters. - rpc DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}" - additional_bindings { - delete: "/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}" - } - }; - option (google.api.method_signature) = "name"; - } -} - -// Describes an autoscaling policy for Dataproc cluster autoscaler. -message AutoscalingPolicy { - option (google.api.resource) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - pattern: "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}" - pattern: "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}" - history: ORIGINALLY_SINGLE_PATTERN - }; - - // Required. The policy id. - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore - // or hyphen. Must consist of between 3 and 50 characters. - string id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies`, the resource name of the - // policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies`, the resource name of the - // policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Autoscaling algorithm for policy. - oneof algorithm { - BasicAutoscalingAlgorithm basic_algorithm = 3; - } - - // Required. Describes how the autoscaler will operate for primary workers. - InstanceGroupAutoscalingPolicyConfig worker_config = 4 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Describes how the autoscaler will operate for secondary workers. - InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Basic algorithm for autoscaling. -message BasicAutoscalingAlgorithm { - // Required. YARN autoscaling configuration. - BasicYarnAutoscalingConfig yarn_config = 1 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Duration between scaling events. A scaling period starts after - // the update operation from the previous event has completed. - // - // Bounds: [2m, 1d]. Default: 2m. - google.protobuf.Duration cooldown_period = 2 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Basic autoscaling configurations for YARN. -message BasicYarnAutoscalingConfig { - // Required. Timeout for YARN graceful decommissioning of Node Managers. - // Specifies the duration to wait for jobs to complete before forcefully - // removing workers (and potentially interrupting jobs). Only applicable to - // downscaling operations. - // - // Bounds: [0s, 1d]. - google.protobuf.Duration graceful_decommission_timeout = 5 - [(google.api.field_behavior) = REQUIRED]; - - // Required. Fraction of average YARN pending memory in the last cooldown - // period for which to add workers. A scale-up factor of 1.0 will result in - // scaling up so that there is no pending memory remaining after the update - // (more aggressive scaling). A scale-up factor closer to 0 will result in a - // smaller magnitude of scaling up (less aggressive scaling). See [How - // autoscaling - // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information. - // - // Bounds: [0.0, 1.0]. - double scale_up_factor = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Fraction of average YARN pending memory in the last cooldown - // period for which to remove workers. A scale-down factor of 1 will result in - // scaling down so that there is no available memory remaining after the - // update (more aggressive scaling). A scale-down factor of 0 disables - // removing workers, which can be beneficial for autoscaling a single job. - // See [How autoscaling - // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information. - // - // Bounds: [0.0, 1.0]. - double scale_down_factor = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Minimum scale-up threshold as a fraction of total cluster size - // before scaling occurs. For example, in a 20-worker cluster, a threshold of - // 0.1 means the autoscaler must recommend at least a 2-worker scale-up for - // the cluster to scale. A threshold of 0 means the autoscaler will scale up - // on any recommended change. - // - // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_up_min_worker_fraction = 3 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Minimum scale-down threshold as a fraction of total cluster size - // before scaling occurs. For example, in a 20-worker cluster, a threshold of - // 0.1 means the autoscaler must recommend at least a 2 worker scale-down for - // the cluster to scale. A threshold of 0 means the autoscaler will scale down - // on any recommended change. - // - // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_down_min_worker_fraction = 4 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Configuration for the size bounds of an instance group, including its -// proportional size to other groups. -message InstanceGroupAutoscalingPolicyConfig { - // Optional. Minimum number of instances for this group. - // - // Primary workers - Bounds: [2, max_instances]. Default: 2. - // Secondary workers - Bounds: [0, max_instances]. Default: 0. - int32 min_instances = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Maximum number of instances for this group. Required for primary - // workers. Note that by default, clusters will not use secondary workers. - // Required for secondary workers if the minimum secondary instances is set. - // - // Primary workers - Bounds: [min_instances, ). Required. - // Secondary workers - Bounds: [min_instances, ). Default: 0. - int32 max_instances = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Weight for the instance group, which is used to determine the - // fraction of total workers in the cluster from this instance group. - // For example, if primary workers have weight 2, and secondary workers have - // weight 1, the cluster will have approximately 2 primary workers for each - // secondary worker. - // - // The cluster may not reach the specified balance if constrained - // by min/max bounds or other autoscaling settings. For example, if - // `max_instances` for secondary workers is 0, then only primary workers will - // be added. The cluster can also be out of balance when created. - // - // If weight is not set on any instance group, the cluster will default to - // equal weight for all groups: the cluster will attempt to maintain an equal - // number of workers in each group within the configured size bounds for each - // group. If weight is set for one group only, the cluster will default to - // zero weight on the unset group. For example if weight is set only on - // primary workers, the cluster will use primary workers only and no - // secondary workers. - int32 weight = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to create an autoscaling policy. -message CreateAutoscalingPolicyRequest { - // Required. The "resource name" of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.create`, the resource name - // has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.autoscalingPolicies.create`, the resource name - // has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; - - // Required. The autoscaling policy to create. - AutoscalingPolicy policy = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to fetch an autoscaling policy. -message GetAutoscalingPolicyRequest { - // Required. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.get`, the resource name - // of the policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies.get`, the resource name - // of the policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; -} - -// A request to update an autoscaling policy. -message UpdateAutoscalingPolicyRequest { - // Required. The updated autoscaling policy. - AutoscalingPolicy policy = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to delete an autoscaling policy. -// -// Autoscaling policies in use by one or more clusters will not be deleted. -message DeleteAutoscalingPolicyRequest { - // Required. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.delete`, the resource name - // of the policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies.delete`, the resource name - // of the policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; -} - -// A request to list autoscaling policies in a project. -message ListAutoscalingPoliciesRequest { - // Required. The "resource name" of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.list`, the resource name - // of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.autoscalingPolicies.list`, the resource name - // of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; - - // Optional. The maximum number of results to return in each response. - // Must be less than or equal to 1000. Defaults to 100. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A response to a request to list autoscaling policies in a project. -message ListAutoscalingPoliciesResponse { - // Output only. Autoscaling policies list. - repeated AutoscalingPolicy policies = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto deleted file mode 100644 index 51c9234a..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto +++ /dev/null @@ -1,1082 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// 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.dataproc.v1beta2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/dataproc/v1beta2/shared.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "ClustersProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; -option (google.api.resource_definition) = { - type: "container.googleapis.com/Cluster" - pattern: "projects/{project}/locations/{location}/clusters/{cluster}" -}; -option (google.api.resource_definition) = { - type: "metastore.googleapis.com/Service" - pattern: "projects/{project}/locations/{location}/services/{service}" -}; - -// The ClusterControllerService provides methods to manage clusters -// of Compute Engine instances. -service ClusterController { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // ClusterOperationMetadata. - rpc CreateCluster(CreateClusterRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta2/projects/{project_id}/regions/{region}/clusters" - body: "cluster" - }; - option (google.api.method_signature) = "project_id, region, cluster"; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" - }; - } - - // Updates a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // ClusterOperationMetadata. - rpc UpdateCluster(UpdateClusterRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - body: "cluster" - }; - option (google.api.method_signature) = - "project_id, region, cluster_name, cluster, update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" - }; - } - - // Deletes a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // ClusterOperationMetadata. - rpc DeleteCluster(DeleteClusterRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - }; - option (google.api.method_signature) = "project_id, region, cluster_name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" - }; - } - - // Gets the resource representation for a cluster in a project. - rpc GetCluster(GetClusterRequest) returns (Cluster) { - option (google.api.http) = { - get: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - }; - option (google.api.method_signature) = "project_id, region, cluster_name"; - } - - // Lists all regions/{region}/clusters in a project alphabetically. - rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { - option (google.api.http) = { - get: "/v1beta2/projects/{project_id}/regions/{region}/clusters" - }; - option (google.api.method_signature) = "project_id, region"; - option (google.api.method_signature) = "project_id, region, filter"; - } - - // Gets cluster diagnostic information. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // ClusterOperationMetadata. - // After the operation completes, - // [Operation.response][google.longrunning.Operation.response] - // contains - // [Empty][google.protobuf.Empty]. - rpc DiagnoseCluster(DiagnoseClusterRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose" - body: "*" - }; - option (google.api.method_signature) = "project_id, region, cluster_name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" - }; - } -} - -// Describes the identifying information, config, and status of -// a cluster of Compute Engine instances. -message Cluster { - // Required. The Google Cloud Platform project ID that the cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. Cluster names within a project must be - // unique. Names of deleted clusters can be reused. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster config. Note that Dataproc may set - // default values, and values may change when clusters are updated. - ClusterConfig config = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The labels to associate with this cluster. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a cluster. - map labels = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Cluster status. - ClusterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The previous cluster status. - repeated ClusterStatus status_history = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A cluster UUID (Unique Universal Identifier). Dataproc - // generates this value when it creates the cluster. - string cluster_uuid = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Contains cluster daemon metrics such as HDFS and YARN stats. - // - // **Beta Feature**: This report is available for testing purposes only. It - // may be changed before final release. - ClusterMetrics metrics = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The cluster config. -message ClusterConfig { - // Optional. A Cloud Storage bucket used to stage job - // dependencies, config files, and job driver console output. - // If you do not specify a staging bucket, Cloud - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's staging bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket (see - // [Dataproc staging - // bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs - // data, such as Spark and MapReduce history files. If you do not specify a - // temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or - // EU) for your cluster's temp bucket according to the Compute Engine zone - // where your cluster is deployed, and then create and manage this - // project-level, per-location bucket. The default bucket has a TTL of 90 - // days, but you can use any TTL (or none) if you specify a bucket. - string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The shared Compute Engine config settings for - // all instances in a cluster. - GceClusterConfig gce_cluster_config = 8 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // the master instance in a cluster. - InstanceGroupConfig master_config = 9 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // worker instances in a cluster. - InstanceGroupConfig worker_config = 10 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // additional worker instances in a cluster. - InstanceGroupConfig secondary_worker_config = 12 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The config settings for software inside the cluster. - SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The config setting for auto delete cluster schedule. - LifecycleConfig lifecycle_config = 14 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Commands to execute on each node after config is - // completed. By default, executables are run on master and all worker nodes. - // You can test a node's role metadata to run an executable on - // a master or worker node, as shown below using `curl` (you can also use - // `wget`): - // - // ROLE=$(curl -H Metadata-Flavor:Google - // http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) - // if [[ "${ROLE}" == 'Master' ]]; then - // ... master specific actions ... - // else - // ... worker specific actions ... - // fi - repeated NodeInitializationAction initialization_actions = 11 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Encryption settings for the cluster. - EncryptionConfig encryption_config = 15 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Autoscaling config for the policy associated with the cluster. - // Cluster does not autoscale if this field is unset. - AutoscalingConfig autoscaling_config = 16 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Port/endpoint configuration for this cluster - EndpointConfig endpoint_config = 17 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Security related configuration. - SecurityConfig security_config = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Kubernetes Engine config for Dataproc clusters deployed to - // Kubernetes. Setting this is considered mutually exclusive with Compute - // Engine-based options such as `gce_cluster_config`, `master_config`, - // `worker_config`, `secondary_worker_config`, and `autoscaling_config`. - GkeClusterConfig gke_cluster_config = 19 - [(google.api.field_behavior) = OPTIONAL]; -} - -// The GKE config for this cluster. -message GkeClusterConfig { - // A full, namespace-isolated deployment target for an existing GKE cluster. - message NamespacedGkeDeploymentTarget { - // Optional. The target GKE cluster to deploy to. - // Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' - string target_gke_cluster = 1 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "container.googleapis.com/Cluster" - } - ]; - - // Optional. A namespace within the GKE cluster to deploy into. - string cluster_namespace = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. A target for the deployment. - NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Endpoint config for this cluster -message EndpointConfig { - // Output only. The map of port descriptions to URLs. Will only be populated - // if enable_http_port_access is true. - map http_ports = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. If true, enable http access to specific ports on the cluster - // from external sources. Defaults to false. - bool enable_http_port_access = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Autoscaling Policy config associated with the cluster. -message AutoscalingConfig { - // Optional. The autoscaling policy used by the cluster. - // - // Only resource names including projectid and location (region) are valid. - // Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]` - // * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]` - // - // Note that the policy must be in the same project and Dataproc region. - string policy_uri = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Encryption settings for the cluster. -message EncryptionConfig { - // Optional. The Cloud KMS key name to use for PD disk encryption for all - // instances in the cluster. - string gce_pd_kms_key_name = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Common config settings for resources of Compute Engine cluster -// instances, applicable to all instances in the cluster. -message GceClusterConfig { - // Optional. The zone where the Compute Engine cluster will be located. - // On a create request, it is required in the "global" region. If omitted - // in a non-global Dataproc region, the service will pick a zone in the - // corresponding Compute Engine region. On a get request, zone will always be - // present. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]` - // * `projects/[project_id]/zones/[zone]` - // * `us-central1-f` - string zone_uri = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine network to be used for machine - // communications. Cannot be specified with subnetwork_uri. If neither - // `network_uri` nor `subnetwork_uri` is specified, the "default" network of - // the project is used, if it exists. Cannot be a "Custom Subnet Network" (see - // [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for - // more information). - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` - // * `projects/[project_id]/regions/global/default` - // * `default` - string network_uri = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine subnetwork to be used for machine - // communications. Cannot be specified with network_uri. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` - // * `projects/[project_id]/regions/us-east1/subnetworks/sub0` - // * `sub0` - string subnetwork_uri = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If true, all instances in the cluster will only have internal IP - // addresses. By default, clusters are not restricted to internal IP - // addresses, and will have ephemeral external IP addresses assigned to each - // instance. This `internal_ip_only` restriction can only be enabled for - // subnetwork enabled networks, and all off-cluster dependencies must be - // configured to be accessible without external IP addresses. - bool internal_ip_only = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The [Dataproc service - // account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) - // (also see [VM Data Plane - // identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) - // used by Dataproc cluster VM instances to access Google Cloud Platform - // services. - // - // If not specified, the - // [Compute Engine default service - // account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) - // is used. - string service_account = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URIs of service account scopes to be included in - // Compute Engine instances. The following base set of scopes is always - // included: - // - // * https://www.googleapis.com/auth/cloud.useraccounts.readonly - // * https://www.googleapis.com/auth/devstorage.read_write - // * https://www.googleapis.com/auth/logging.write - // - // If no scopes are specified, the following defaults are also provided: - // - // * https://www.googleapis.com/auth/bigquery - // * https://www.googleapis.com/auth/bigtable.admin.table - // * https://www.googleapis.com/auth/bigtable.data - // * https://www.googleapis.com/auth/devstorage.full_control - repeated string service_account_scopes = 3 - [(google.api.field_behavior) = OPTIONAL]; - - // The Compute Engine tags to add to all instances (see [Tagging - // instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). - repeated string tags = 4; - - // The Compute Engine metadata entries to add to all instances (see - // [Project and instance - // metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). - map metadata = 5; - - // Optional. Reservation Affinity for consuming Zonal reservation. - ReservationAffinity reservation_affinity = 11 - [(google.api.field_behavior) = OPTIONAL]; -} - -// The config settings for Compute Engine resources in -// an instance group, such as a master or worker group. -message InstanceGroupConfig { - // Controls the use of - // [preemptible instances] - // (https://cloud.google.com/compute/docs/instances/preemptible) - // within the group. - enum Preemptibility { - // Preemptibility is unspecified, the system will choose the - // appropriate setting for each instance group. - PREEMPTIBILITY_UNSPECIFIED = 0; - - // Instances are non-preemptible. - // - // This option is allowed for all instance groups and is the only valid - // value for Master and Worker instance groups. - NON_PREEMPTIBLE = 1; - - // Instances are preemptible. - // - // This option is allowed only for secondary worker groups. - PREEMPTIBLE = 2; - } - - // Optional. The number of VM instances in the instance group. - // For master instance groups, must be set to 1. - int32 num_instances = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The list of instance names. Dataproc derives the names - // from `cluster_name`, `num_instances`, and the instance group. - repeated string instance_names = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The Compute Engine image resource used for cluster instances. - // - // The URI can represent an image or image family. - // - // Image examples: - // - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]` - // * `projects/[project_id]/global/images/[image-id]` - // * `image-id` - // - // Image family examples. Dataproc will use the most recent - // image from the family: - // - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]` - // * `projects/[project_id]/global/images/family/[custom-image-family-name]` - // - // If the URI is unspecified, it will be inferred from - // `SoftwareConfig.image_version` or the system default. - string image_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine machine type used for cluster instances. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` - // * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` - // * `n1-standard-2` - // - // **Auto Zone Exception**: If you are using the Dataproc - // [Auto Zone - // Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the machine type - // resource, for example, `n1-standard-2`. - string machine_type_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Disk option config settings. - DiskConfig disk_config = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Specifies that this instance group contains preemptible - // instances. - bool is_preemptible = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Specifies the preemptibility of the instance group. - // - // The default value for master and worker groups is - // `NON_PREEMPTIBLE`. This default cannot be changed. - // - // The default value for secondary instances is - // `PREEMPTIBLE`. - Preemptibility preemptibility = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The config for Compute Engine Instance Group - // Manager that manages this group. - // This is only used for preemptible instance groups. - ManagedGroupConfig managed_group_config = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The Compute Engine accelerator configuration for these - // instances. - repeated AcceleratorConfig accelerators = 8 - [(google.api.field_behavior) = OPTIONAL]; - - // Specifies the minimum cpu platform for the Instance Group. - // See [Dataproc -> Minimum CPU - // Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). - string min_cpu_platform = 9; -} - -// Specifies the resources used to actively manage an instance group. -message ManagedGroupConfig { - // Output only. The name of the Instance Template used for the Managed - // Instance Group. - string instance_template_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the Instance Group Manager for this group. - string instance_group_manager_name = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specifies the type and number of accelerator cards attached to the instances -// of an instance group (see [GPUs on Compute -// Engine](https://cloud.google.com/compute/docs/gpus/)). -message AcceleratorConfig { - // Full URL, partial URI, or short name of the accelerator type resource to - // expose to this instance. See - // [Compute Engine - // AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes) - // - // Examples - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` - // * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` - // * `nvidia-tesla-k80` - // - // **Auto Zone Exception**: If you are using the Dataproc - // [Auto Zone - // Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the accelerator type - // resource, for example, `nvidia-tesla-k80`. - string accelerator_type_uri = 1; - - // The number of the accelerator cards of this type exposed to this instance. - int32 accelerator_count = 2; -} - -// Specifies the config of disk options for a group of VM instances. -message DiskConfig { - // Optional. Type of the boot disk (default is "pd-standard"). - // Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or - // "pd-standard" (Persistent Disk Hard Disk Drive). - string boot_disk_type = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Size in GB of the boot disk (default is 500GB). - int32 boot_disk_size_gb = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Number of attached SSDs, from 0 to 4 (default is 0). - // If SSDs are not attached, the boot disk is used to store runtime logs and - // [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. - // If one or more SSDs are attached, this runtime bulk - // data is spread across them, and the boot disk contains only basic - // config and installed binaries. - int32 num_local_ssds = 2; -} - -// Specifies the cluster auto-delete schedule configuration. -message LifecycleConfig { - // Optional. The duration to keep the cluster alive while idling (when no jobs - // are running). Passing this threshold will cause the cluster to be - // deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON - // representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json). - google.protobuf.Duration idle_delete_ttl = 1 - [(google.api.field_behavior) = OPTIONAL]; - - // Either the exact time the cluster should be deleted at or - // the cluster maximum age. - oneof ttl { - // Optional. The time when cluster will be auto-deleted. (see JSON - // representation of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp auto_delete_time = 2 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The lifetime duration of cluster. The cluster will be - // auto-deleted at the end of this period. Minimum value is 10 minutes; - // maximum value is 14 days (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration auto_delete_ttl = 3 - [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. The time when cluster became idle (most recent job finished) - // and became eligible for deletion due to idleness (see JSON representation - // of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp idle_start_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Security related configuration, including encryption, Kerberos, etc. -message SecurityConfig { - // Kerberos related configuration. - KerberosConfig kerberos_config = 1; -} - -// Specifies Kerberos related configuration. -message KerberosConfig { - // Optional. Flag to indicate whether to Kerberize the cluster (default: - // false). Set this field to true to enable Kerberos on a cluster. - bool enable_kerberos = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The Cloud Storage URI of a KMS encrypted file containing the root - // principal password. - string root_principal_password_uri = 2 - [(google.api.field_behavior) = REQUIRED]; - - // Required. The uri of the KMS key used to encrypt various sensitive - // files. - string kms_key_uri = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The Cloud Storage URI of the keystore file used for SSL - // encryption. If not provided, Dataproc will provide a self-signed - // certificate. - string keystore_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of the truststore file used for SSL - // encryption. If not provided, Dataproc will provide a self-signed - // certificate. - string truststore_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided keystore. For the self-signed certificate, - // this password is generated by Dataproc. - string keystore_password_uri = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided key. For the self-signed certificate, this - // password is generated by Dataproc. - string key_password_uri = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided truststore. For the self-signed certificate, - // this password is generated by Dataproc. - string truststore_password_uri = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The remote realm the Dataproc on-cluster KDC will trust, should - // the user enable cross realm trust. - string cross_realm_trust_realm = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The KDC (IP or hostname) for the remote trusted realm in a cross - // realm trust relationship. - string cross_realm_trust_kdc = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The admin server (IP or hostname) for the remote trusted realm in - // a cross realm trust relationship. - string cross_realm_trust_admin_server = 11 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // shared password between the on-cluster Kerberos realm and the remote - // trusted realm, in a cross realm trust relationship. - string cross_realm_trust_shared_password_uri = 12 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // master key of the KDC database. - string kdc_db_key_uri = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The lifetime of the ticket granting ticket, in hours. - // If not specified, or user specifies 0, then default value 10 - // will be used. - int32 tgt_lifetime_hours = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The name of the on-cluster Kerberos realm. - // If not specified, the uppercased domain of hostnames will be the realm. - string realm = 15 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies an executable to run on a fully configured node and a -// timeout period for executable completion. -message NodeInitializationAction { - // Required. Cloud Storage URI of executable file. - string executable_file = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Amount of time executable has to complete. Default is - // 10 minutes (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - // - // Cluster creation fails with an explanatory error message (the - // name of the executable that caused the error and the exceeded timeout - // period) if the executable is not completed at end of the timeout period. - google.protobuf.Duration execution_timeout = 2 - [(google.api.field_behavior) = OPTIONAL]; -} - -// The status of a cluster and its instances. -message ClusterStatus { - // The cluster state. - enum State { - // The cluster state is unknown. - UNKNOWN = 0; - - // The cluster is being created and set up. It is not ready for use. - CREATING = 1; - - // The cluster is currently running and healthy. It is ready for use. - RUNNING = 2; - - // The cluster encountered an error. It is not ready for use. - ERROR = 3; - - // The cluster is being deleted. It cannot be used. - DELETING = 4; - - // The cluster is being updated. It continues to accept and process jobs. - UPDATING = 5; - - // The cluster is being stopped. It cannot be used. - STOPPING = 6; - - // The cluster is currently stopped. It is not ready for use. - STOPPED = 7; - - // The cluster is being started. It is not ready for use. - STARTING = 8; - } - - // The cluster substate. - enum Substate { - // The cluster substate is unknown. - UNSPECIFIED = 0; - - // The cluster is known to be in an unhealthy state - // (for example, critical daemons are not running or HDFS capacity is - // exhausted). - // - // Applies to RUNNING state. - UNHEALTHY = 1; - - // The agent-reported status is out of date (may occur if - // Dataproc loses communication with Agent). - // - // Applies to RUNNING state. - STALE_STATUS = 2; - } - - // Output only. The cluster's state. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Optional details of cluster's state. - string detail = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this state was entered (see JSON representation of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp state_start_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional state information that includes - // status reported by the agent. - Substate substate = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specifies the selection and config of software inside the cluster. -message SoftwareConfig { - // Optional. The version of software inside the cluster. It must be one of the - // supported [Dataproc - // Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), - // such as "1.2" (including a subminor version, such as "1.2.29"), or the - // ["preview" - // version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). - // If unspecified, it defaults to the latest Debian version. - string image_version = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The properties to set on daemon config files. - // - // Property keys are specified in `prefix:property` format, for example - // `core:hadoop.tmp.dir`. The following are supported prefixes - // and their mappings: - // - // * capacity-scheduler: `capacity-scheduler.xml` - // * core: `core-site.xml` - // * distcp: `distcp-default.xml` - // * hdfs: `hdfs-site.xml` - // * hive: `hive-site.xml` - // * mapred: `mapred-site.xml` - // * pig: `pig.properties` - // * spark: `spark-defaults.conf` - // * yarn: `yarn-site.xml` - // - // For more information, see [Cluster - // properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - map properties = 2 [(google.api.field_behavior) = OPTIONAL]; - - // The set of optional components to activate on the cluster. - repeated Component optional_components = 3; -} - -// Contains cluster daemon metrics, such as HDFS and YARN stats. -// -// **Beta Feature**: This report is available for testing purposes only. It may -// be changed before final release. -message ClusterMetrics { - // The HDFS metrics. - map hdfs_metrics = 1; - - // The YARN metrics. - map yarn_metrics = 2; -} - -// A request to create a cluster. -message CreateClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster to create. - Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique id used to identify the request. If the server - // receives two - // [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to update a cluster. -message UpdateClusterRequest { - // Required. The ID of the Google Cloud Platform project the - // cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The changes to the cluster. - Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Timeout for graceful YARN decomissioning. Graceful - // decommissioning allows removing nodes from the cluster without - // interrupting jobs in progress. Timeout specifies how long to wait for jobs - // in progress to finish before forcefully removing nodes (and potentially - // interrupting jobs). Default timeout is 0 (for forceful decommission), and - // the maximum allowed timeout is 1 day (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - // - // Only supported on Dataproc image versions 1.2 and higher. - google.protobuf.Duration graceful_decommission_timeout = 6 - [(google.api.field_behavior) = OPTIONAL]; - - // Required. Specifies the path, relative to `Cluster`, of - // the field to update. For example, to change the number of workers - // in a cluster to 5, the `update_mask` parameter would be - // specified as `config.worker_config.num_instances`, - // and the `PATCH` request body would specify the new value, as follows: - // - // { - // "config":{ - // "workerConfig":{ - // "numInstances":"5" - // } - // } - // } - // - // Similarly, to change the number of preemptible workers in a cluster to 5, - // the `update_mask` parameter would be - // `config.secondary_worker_config.num_instances`, and the `PATCH` request - // body would be set as follows: - // - // { - // "config":{ - // "secondaryWorkerConfig":{ - // "numInstances":"5" - // } - // } - // } - // Note: currently only the following fields can be updated: - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - //
MaskPurpose
labelsUpdates labels
config.worker_config.num_instancesResize primary worker - // group
config.secondary_worker_config.num_instancesResize secondary - // worker group
config.lifecycle_config.auto_delete_ttlReset MAX TTL - // duration
config.lifecycle_config.auto_delete_timeUpdate MAX TTL - // deletion timestamp
config.lifecycle_config.idle_delete_ttlUpdate Idle TTL - // duration
config.autoscaling_config.policy_uriUse, stop using, or change - // autoscaling policies
- google.protobuf.FieldMask update_mask = 4 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique id used to identify the request. If the server - // receives two - // [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to delete a cluster. -message DeleteClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specifying the `cluster_uuid` means the RPC should fail - // (with error NOT_FOUND) if cluster with specified UUID does not exist. - string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A unique id used to identify the request. If the server - // receives two - // [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] - // requests with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created - // and stored in the backend is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request to get the resource representation for a cluster in a project. -message GetClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list the clusters in a project. -message ListClustersRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 4 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A filter constraining the clusters to list. Filters are - // case-sensitive and have the following syntax: - // - // field = value [AND [field = value]] ... - // - // where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`, - // and `[KEY]` is a label key. **value** can be `*` to match all values. - // `status.state` can be one of the following: `ACTIVE`, `INACTIVE`, - // `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE` - // contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE` - // contains the `DELETING` and `ERROR` states. - // `clusterName` is the name of the cluster provided at creation time. - // Only the logical `AND` operator is supported; space-separated items are - // treated as having an implicit `AND` operator. - // - // Example filter: - // - // status.state = ACTIVE AND clusterName = mycluster - // AND labels.env = staging AND labels.starred = * - string filter = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The standard List page size. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The standard List page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The list of all clusters in a project. -message ListClustersResponse { - // Output only. The clusters in the project. - repeated Cluster clusters = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. To fetch additional results, provide this value as the - // `page_token` in a subsequent ListClustersRequest. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to collect cluster diagnostic information. -message DiagnoseClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// The location of diagnostic output. -message DiagnoseClusterResults { - // Output only. The Cloud Storage URI of the diagnostic output. - // The output report is a plain text file with a summary of collected - // diagnostics. - string output_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Reservation Affinity for consuming Zonal reservation. -message ReservationAffinity { - // Indicates whether to consume capacity from an reservation or not. - enum Type { - TYPE_UNSPECIFIED = 0; - - // Do not consume from any allocated capacity. - NO_RESERVATION = 1; - - // Consume any reservation available. - ANY_RESERVATION = 2; - - // Must consume from a specific reservation. Must specify key value fields - // for specifying the reservations. - SPECIFIC_RESERVATION = 3; - } - - // Optional. Type of reservation to consume - Type consume_reservation_type = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Corresponds to the label key of reservation resource. - string key = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Corresponds to the label values of reservation resource. - repeated string values = 3 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto deleted file mode 100644 index cd3cc1f7..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto +++ /dev/null @@ -1,903 +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.dataproc.v1beta2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "JobsProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; - -// The JobController provides methods to manage jobs. -service JobController { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Submits a job to a cluster. - rpc SubmitJob(SubmitJobRequest) returns (Job) { - option (google.api.http) = { - post: "/v1beta2/projects/{project_id}/regions/{region}/jobs:submit" - body: "*" - }; - option (google.api.method_signature) = "project_id, region, job"; - } - - // Submits job to a cluster. - rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta2/projects/{project_id}/regions/{region}/jobs:submitAsOperation" - body: "*" - }; - option (google.api.method_signature) = "project_id, region, job"; - option (google.longrunning.operation_info) = { - response_type: "Job" - metadata_type: "JobMetadata" - }; - } - - // Gets the resource representation for a job in a project. - rpc GetJob(GetJobRequest) returns (Job) { - option (google.api.http) = { - get: "/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}" - }; - option (google.api.method_signature) = "project_id, region, job_id"; - } - - // Lists regions/{region}/jobs in a project. - rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { - option (google.api.http) = { - get: "/v1beta2/projects/{project_id}/regions/{region}/jobs" - }; - option (google.api.method_signature) = "project_id, region"; - option (google.api.method_signature) = "project_id, region, filter"; - } - - // Updates a job in a project. - rpc UpdateJob(UpdateJobRequest) returns (Job) { - option (google.api.http) = { - patch: "/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}" - body: "job" - }; - } - - // Starts a job cancellation request. To access the job resource - // after cancellation, call - // regions/{region}/jobs.list - // or - // regions/{region}/jobs.get. - rpc CancelJob(CancelJobRequest) returns (Job) { - option (google.api.http) = { - post: "/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel" - body: "*" - }; - option (google.api.method_signature) = "project_id, region, job_id"; - } - - // Deletes the job from the project. If the job is active, the delete fails, - // and the response returns `FAILED_PRECONDITION`. - rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta2/projects/{project_id}/regions/{region}/jobs/{job_id}" - }; - option (google.api.method_signature) = "project_id, region, job_id"; - } -} - -// The runtime logging config of the job. -message LoggingConfig { - // The Log4j level for job execution. When running an - // [Apache Hive](http://hive.apache.org/) job, Cloud - // Dataproc configures the Hive client to an equivalent verbosity level. - enum Level { - // Level is unspecified. Use default level for log4j. - LEVEL_UNSPECIFIED = 0; - - // Use ALL level for log4j. - ALL = 1; - - // Use TRACE level for log4j. - TRACE = 2; - - // Use DEBUG level for log4j. - DEBUG = 3; - - // Use INFO level for log4j. - INFO = 4; - - // Use WARN level for log4j. - WARN = 5; - - // Use ERROR level for log4j. - ERROR = 6; - - // Use FATAL level for log4j. - FATAL = 7; - - // Turn off log4j. - OFF = 8; - } - - // The per-package log levels for the driver. This may include - // "root" package name to configure rootLogger. - // Examples: - // 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' - map driver_log_levels = 2; -} - -// A Dataproc job for running -// [Apache Hadoop -// MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) -// jobs on [Apache Hadoop -// YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). -message HadoopJob { - // Required. Indicates the location of the driver's main class. Specify - // either the jar file that contains the main class or the main class name. - // To specify both, add the jar file to `jar_file_uris`, and then specify - // the main class name in this property. - oneof driver { - // The HCFS URI of the jar file containing the main class. - // Examples: - // 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' - // 'hdfs:/tmp/test-samples/custom-wordcount.jar' - // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' - string main_jar_file_uri = 1; - - // The name of the driver's main class. The jar file containing the class - // must be in the default CLASSPATH or specified in `jar_file_uris`. - string main_class = 2; - } - - // Optional. The arguments to pass to the driver. Do not - // include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as - // job properties, since a collision may occur that causes an incorrect job - // submission. - repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Jar file URIs to add to the CLASSPATHs of the - // Hadoop driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied - // to the working directory of Hadoop drivers and distributed tasks. Useful - // for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted in the working directory of - // Hadoop drivers and tasks. Supported file types: - // .jar, .tar, .tar.gz, .tgz, or .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Hadoop. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site and - // classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Spark](http://spark.apache.org/) -// applications on YARN. -// The specification of the main method to call to drive the job. -// Specify either the jar file that contains the main class or the main class -// name. To pass both a main jar and a main class in that jar, add the jar to -// `CommonJob.jar_file_uris`, and then specify the main class name in -// `main_class`. -message SparkJob { - oneof driver { - // The HCFS URI of the jar file that contains the main class. - string main_jar_file_uri = 1; - - // The name of the driver's main class. The jar file that contains the class - // must be in the default CLASSPATH or specified in `jar_file_uris`. - string main_class = 2; - } - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATHs of the - // Spark driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Spark. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running -// [Apache -// PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html) -// applications on YARN. -message PySparkJob { - // Required. The HCFS URI of the main Python file to use as the driver. Must - // be a .py file. - string main_python_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS file URIs of Python files to pass to the PySpark - // framework. Supported file types: .py, .egg, and .zip. - repeated string python_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATHs of the - // Python driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure PySpark. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A list of queries to run on a cluster. -message QueryList { - // Required. The queries to execute. You do not need to terminate a query - // with a semicolon. Multiple queries can be specified in one string - // by separating each with a semicolon. Here is an example of an Cloud - // Dataproc API snippet that uses a QueryList to specify a HiveJob: - // - // "hiveJob": { - // "queryList": { - // "queries": [ - // "query1", - // "query2", - // "query3;query4", - // ] - // } - // } - repeated string queries = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A Dataproc job for running [Apache Hive](https://hive.apache.org/) -// queries on YARN. -message HiveJob { - // Required. The sequence of Hive queries to execute, specified as either - // an HCFS file URI or a list of queries. - oneof queries { - // The HCFS URI of the script that contains Hive queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Mapping of query variable names to values (equivalent to the - // Hive command: `SET name="value";`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names and values, used to configure Hive. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, - // /etc/hive/conf/hive-site.xml, and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATH of the - // Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes - // and UDFs. - repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Spark -// SQL](http://spark.apache.org/sql/) queries. -message SparkSqlJob { - // Required. The sequence of Spark SQL queries to execute, specified as - // either an HCFS file URI or as a list of queries. - oneof queries { - // The HCFS URI of the script that contains SQL queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Mapping of query variable names to values (equivalent to the - // Spark SQL command: SET `name="value";`). - map script_variables = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure - // Spark SQL's SparkConf. Properties that conflict with values set by the - // Dataproc API may be overwritten. - map properties = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. - repeated string jar_file_uris = 56 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Pig](https://pig.apache.org/) -// queries on YARN. -message PigJob { - // Required. The sequence of Pig queries to execute, specified as an HCFS - // file URI or a list of queries. - oneof queries { - // The HCFS URI of the script that contains the Pig queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Mapping of query variable names to values (equivalent to the Pig - // command: `name=[value]`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Pig. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, - // /etc/pig/conf/pig.properties, and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATH of - // the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. - repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running -// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html) -// applications on YARN. -message SparkRJob { - // Required. The HCFS URI of the main R file to use as the driver. - // Must be a .R file. - string main_r_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure SparkR. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Presto](https://prestosql.io/) queries. -// **IMPORTANT**: The [Dataproc Presto Optional -// Component](https://cloud.google.com/dataproc/docs/concepts/components/presto) -// must be enabled when the cluster is created to submit a Presto job to the -// cluster. -message PrestoJob { - // Required. The sequence of Presto queries to execute, specified as - // either an HCFS file URI or as a list of queries. - oneof queries { - // The HCFS URI of the script that contains SQL queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The format in which query output will be displayed. See the - // Presto documentation for supported output formats - string output_format = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Presto client tags to attach to this query - repeated string client_tags = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values. Used to set Presto - // [session properties](https://prestodb.io/docs/current/sql/set-session.html) - // Equivalent to using the --session flag in the Presto CLI - map properties = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// Dataproc job config. -message JobPlacement { - // Required. The name of the cluster where the job will be submitted. - string cluster_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. A cluster UUID generated by the Dataproc service when - // the job is submitted. - string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Dataproc job status. -message JobStatus { - // The job state. - enum State { - // The job state is unknown. - STATE_UNSPECIFIED = 0; - - // The job is pending; it has been submitted, but is not yet running. - PENDING = 1; - - // Job has been received by the service and completed initial setup; - // it will soon be submitted to the cluster. - SETUP_DONE = 8; - - // The job is running on the cluster. - RUNNING = 2; - - // A CancelJob request has been received, but is pending. - CANCEL_PENDING = 3; - - // Transient in-flight resources have been canceled, and the request to - // cancel the running job has been issued to the cluster. - CANCEL_STARTED = 7; - - // The job cancellation was successful. - CANCELLED = 4; - - // The job has completed successfully. - DONE = 5; - - // The job has completed, but encountered an error. - ERROR = 6; - - // Job attempt has failed. The detail field contains failure details for - // this attempt. - // - // Applies to restartable jobs only. - ATTEMPT_FAILURE = 9; - } - - // The job substate. - enum Substate { - // The job substate is unknown. - UNSPECIFIED = 0; - - // The Job is submitted to the agent. - // - // Applies to RUNNING state. - SUBMITTED = 1; - - // The Job has been received and is awaiting execution (it may be waiting - // for a condition to be met). See the "details" field for the reason for - // the delay. - // - // Applies to RUNNING state. - QUEUED = 2; - - // The agent-reported status is out of date, which may be caused by a - // loss of communication between the agent and Dataproc. If the - // agent does not send a timely update, the job will fail. - // - // Applies to RUNNING state. - STALE_STATUS = 3; - } - - // Output only. A state message specifying the overall job state. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Optional Job state details, such as an error - // description if the state is ERROR. - string details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when this state was entered. - google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional state information, which includes - // status reported by the agent. - Substate substate = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Encapsulates the full scoping used to reference a job. -message JobReference { - // Optional. The ID of the Google Cloud Platform project that the job belongs to. If - // specified, must match the request project ID. - string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The job ID, which must be unique within the project. - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), or hyphens (-). The maximum length is 100 characters. - // - // If not specified by the caller, the job ID will be provided by the server. - string job_id = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A YARN application created by a job. Application information is a subset of -// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. -// -// **Beta Feature**: This report is available for testing purposes only. It may -// be changed before final release. -message YarnApplication { - // The application state, corresponding to - // YarnProtos.YarnApplicationStateProto. - enum State { - // Status is unspecified. - STATE_UNSPECIFIED = 0; - - // Status is NEW. - NEW = 1; - - // Status is NEW_SAVING. - NEW_SAVING = 2; - - // Status is SUBMITTED. - SUBMITTED = 3; - - // Status is ACCEPTED. - ACCEPTED = 4; - - // Status is RUNNING. - RUNNING = 5; - - // Status is FINISHED. - FINISHED = 6; - - // Status is FAILED. - FAILED = 7; - - // Status is KILLED. - KILLED = 8; - } - - // Output only. The application name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The application state. - State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The numerical progress of the application, from 1 to 100. - float progress = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The HTTP URL of the ApplicationMaster, HistoryServer, or - // TimelineServer that provides application-specific information. The URL uses - // the internal hostname, and requires a proxy server for resolution and, - // possibly, access. - string tracking_url = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A Dataproc job resource. -message Job { - // Optional. The fully qualified reference to the job, which can be used to - // obtain the equivalent REST path of the job resource. If this property - // is not specified when a job is created, the server generates a - // job_id. - JobReference reference = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Job information, including how, when, and where to - // run the job. - JobPlacement placement = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The application/framework-specific portion of the job. - oneof type_job { - // Optional. Job is a Hadoop job. - HadoopJob hadoop_job = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Spark job. - SparkJob spark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a PySpark job. - PySparkJob pyspark_job = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Hive job. - HiveJob hive_job = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Pig job. - PigJob pig_job = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkR job. - SparkRJob spark_r_job = 21 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkSql job. - SparkSqlJob spark_sql_job = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Presto job. - PrestoJob presto_job = 23 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. The job status. Additional application-specific - // status information may be contained in the type_job - // and yarn_applications fields. - JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The previous job status. - repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The collection of YARN applications spun up by this job. - // - // **Beta** Feature: This report is available for testing purposes only. It - // may be changed before final release. - repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The email address of the user submitting the job. For jobs - // submitted on the cluster, the address is username@hostname. - string submitted_by = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A URI pointing to the location of the stdout of the job's - // driver program. - string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. If present, the location of miscellaneous control files - // which may be used as part of job setup and handling. If not present, - // control files may be placed in the same location as `driver_output_uri`. - string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels to associate with this job. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a job. - map labels = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job scheduling configuration. - JobScheduling scheduling = 20 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. A UUID that uniquely identifies a job within the project - // over time. This is in contrast to a user-settable reference.job_id that - // may be reused over time. - string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether the job is completed. If the value is `false`, - // the job is still in progress. If `true`, the job is completed, and - // `status.state` field will indicate if it was successful, failed, - // or cancelled. - bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Job scheduling options. -message JobScheduling { - // Optional. Maximum number of times per hour a driver may be restarted as - // a result of driver terminating with non-zero code before job is - // reported failed. - // - // A job may be reported as thrashing if driver exits with non-zero code - // 4 times within 10 minute window. - // - // Maximum value is 10. - int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Job Operation metadata. -message JobMetadata { - // Output only. The job id. - string job_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Most recent job status. - JobStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Operation type. - string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Job submission time. - google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to submit a job. -message SubmitJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job resource. - Job job = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique id used to identify the request. If the server - // receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same - // id, then the second request will be ignored and the - // first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend - // is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to get the resource representation for a job in a project. -message GetJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list jobs in a project. -message ListJobsRequest { - // A matcher that specifies categories of job states. - enum JobStateMatcher { - // Match all jobs, regardless of state. - ALL = 0; - - // Only match jobs in non-terminal states: PENDING, RUNNING, or - // CANCEL_PENDING. - ACTIVE = 1; - - // Only match jobs in terminal states: CANCELLED, DONE, or ERROR. - NON_ACTIVE = 2; - } - - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 6 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The number of results to return in each response. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, the returned jobs list includes only jobs that were - // submitted to the named cluster. - string cluster_name = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies enumerated categories of jobs to list. - // (default = match ALL jobs). - // - // If `filter` is provided, `jobStateMatcher` will be ignored. - JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A filter constraining the jobs to list. Filters are - // case-sensitive and have the following syntax: - // - // [field = value] AND [field [= value]] ... - // - // where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label - // key. **value** can be `*` to match all values. - // `status.state` can be either `ACTIVE` or `NON_ACTIVE`. - // Only the logical `AND` operator is supported; space-separated items are - // treated as having an implicit `AND` operator. - // - // Example filter: - // - // status.state = ACTIVE AND labels.env = staging AND labels.starred = * - string filter = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to update a job. -message UpdateJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The changes to the job. - Job job = 4 [(google.api.field_behavior) = REQUIRED]; - - // Required. Specifies the path, relative to Job, of - // the field to update. For example, to update the labels of a Job the - // update_mask parameter would be specified as - // labels, and the `PATCH` request body would specify the new - // value. Note: Currently, labels is the only - // field that can be updated. - google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// A list of jobs in a project. -message ListJobsResponse { - // Output only. Jobs list. - repeated Job jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. This token is included in the response if there are more results - // to fetch. To fetch additional results, provide this value as the - // `page_token` in a subsequent ListJobsRequest. - string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to cancel a job. -message CancelJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to delete a job. -message DeleteJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto deleted file mode 100644 index 2e98fb82..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto +++ /dev/null @@ -1,82 +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.dataproc.v1beta2; - -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "OperationsProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; - -// The status of the operation. -message ClusterOperationStatus { - // The operation state. - enum State { - // Unused. - UNKNOWN = 0; - - // The operation has been created. - PENDING = 1; - - // The operation is running. - RUNNING = 2; - - // The operation is done; either cancelled or completed. - DONE = 3; - } - - // Output only. A message containing the operation state. - State state = 1; - - // Output only. A message containing the detailed operation state. - string inner_state = 2; - - // Output only. A message containing any operation metadata details. - string details = 3; - - // Output only. The time this state was entered. - google.protobuf.Timestamp state_start_time = 4; -} - -// Metadata describing the operation. -message ClusterOperationMetadata { - // Output only. Name of the cluster for the operation. - string cluster_name = 7; - - // Output only. Cluster UUID for the operation. - string cluster_uuid = 8; - - // Output only. Current operation status. - ClusterOperationStatus status = 9; - - // Output only. The previous operation status. - repeated ClusterOperationStatus status_history = 10; - - // Output only. The operation type. - string operation_type = 11; - - // Output only. Short description of operation. - string description = 12; - - // Output only. Labels associated with the operation - map labels = 13; - - // Output only. Errors encountered during operation execution. - repeated string warnings = 14; -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto deleted file mode 100644 index ac474aa5..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto +++ /dev/null @@ -1,63 +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.dataproc.v1beta2; - -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "SharedProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; - -// Cluster components that can be activated. -enum Component { - // Unspecified component. Specifying this will cause Cluster creation to fail. - COMPONENT_UNSPECIFIED = 0; - - // The Anaconda python distribution. - ANACONDA = 5; - - // The Druid query engine. - DRUID = 9; - - // HBase. - HBASE = 11; - - // The Hive Web HCatalog (the REST service for accessing HCatalog). - HIVE_WEBHCAT = 3; - - // The Jupyter Notebook. - JUPYTER = 1; - - // The Kerberos security feature. - KERBEROS = 7; - - // The Presto query engine. - PRESTO = 6; - - // The Ranger service. - RANGER = 12; - - // The Solr service. - SOLR = 10; - - // The Zeppelin notebook. - ZEPPELIN = 4; - - // The Zookeeper service. - ZOOKEEPER = 8; -} diff --git a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto b/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto deleted file mode 100644 index 829bb644..00000000 --- a/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto +++ /dev/null @@ -1,848 +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.dataproc.v1beta2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/dataproc/v1beta2/clusters.proto"; -import "google/cloud/dataproc/v1beta2/jobs.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "WorkflowTemplatesProto"; -option java_package = "com.google.cloud.dataproc.v1beta2"; - -// The API interface for managing Workflow Templates in the -// Dataproc API. -service WorkflowTemplateService { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) - returns (WorkflowTemplate) { - option (google.api.http) = { - post: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" - body: "template" - additional_bindings { - post: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates" - body: "template" - } - }; - option (google.api.method_signature) = "parent, template"; - } - - // Retrieves the latest workflow template. - // - // Can retrieve previously instantiated template by specifying optional - // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) - returns (WorkflowTemplate) { - option (google.api.http) = { - get: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" - additional_bindings { - get: "/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Instantiates a template and begins execution. - // - // The returned Operation can be used to track execution of - // workflow by polling - // [operations.get][google.longrunning.Operations.GetOperation]. - // The Operation will complete when entire workflow is finished. - // - // The running workflow can be aborted via - // [operations.cancel][google.longrunning.Operations.CancelOperation]. - // This will cause any inflight jobs to be cancelled and workflow-owned - // clusters to be deleted. - // - // The [Operation.metadata][google.longrunning.Operation.metadata] will be - // WorkflowMetadata. - // Also see [Using - // WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - // - // On successful completion, - // [Operation.response][google.longrunning.Operation.response] will be - // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate" - body: "*" - additional_bindings { - post: "/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}:instantiate" - body: "*" - } - }; - option (google.api.method_signature) = "name"; - option (google.api.method_signature) = "name, parameters"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "WorkflowMetadata" - }; - } - - // Instantiates a template and begins execution. - // - // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], - // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], - // [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. - // - // The returned Operation can be used to track execution of - // workflow by polling - // [operations.get][google.longrunning.Operations.GetOperation]. - // The Operation will complete when entire workflow is finished. - // - // The running workflow can be aborted via - // [operations.cancel][google.longrunning.Operations.CancelOperation]. - // This will cause any inflight jobs to be cancelled and workflow-owned - // clusters to be deleted. - // - // The [Operation.metadata][google.longrunning.Operation.metadata] will be - // [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - // Also see [Using - // WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - // - // On successful completion, - // [Operation.response][google.longrunning.Operation.response] will be - // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate( - InstantiateInlineWorkflowTemplateRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" - body: "template" - additional_bindings { - post: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline" - body: "template" - } - }; - option (google.api.method_signature) = "parent, template"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "WorkflowMetadata" - }; - } - - // Updates (replaces) workflow template. The updated template - // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) - returns (WorkflowTemplate) { - option (google.api.http) = { - put: "/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}" - body: "template" - additional_bindings { - put: "/v1beta2/{template.name=projects/*/locations/*/workflowTemplates/*}" - body: "template" - } - }; - option (google.api.method_signature) = "template"; - } - - // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) - returns (ListWorkflowTemplatesResponse) { - option (google.api.http) = { - get: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" - additional_bindings { - get: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" - additional_bindings { - delete: "/v1beta2/{name=projects/*/locations/*/workflowTemplates/*}" - } - }; - option (google.api.method_signature) = "name"; - } -} - -// A Dataproc workflow template resource. -message WorkflowTemplate { - option (google.api.resource) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - pattern: "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}" - pattern: "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}" - history: ORIGINALLY_SINGLE_PATTERN - }; - - // Required. The template id. - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore - // or hyphen. Must consist of between 3 and 50 characters. - // - // . - string id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Used to perform a consistent read-modify-write. - // - // This field should be left blank for a `CreateWorkflowTemplate` request. It - // is required for an `UpdateWorkflowTemplate` request, and must match the - // current server version. A typical update template flow would fetch the - // current template with a `GetWorkflowTemplate` request, which will return - // the current template with the `version` field filled in with the - // current server version. The user updates other fields in the template, - // then returns it as part of the `UpdateWorkflowTemplate` request. - int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels to associate with this template. These labels - // will be propagated to all jobs and clusters created by the workflow - // instance. - // - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // - // No more than 32 labels can be associated with a template. - map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Required. WorkflowTemplate scheduling information. - WorkflowTemplatePlacement placement = 7; - - // Required. The Directed Acyclic Graph of Jobs to submit. - repeated OrderedJob jobs = 8; - - // Optional. Template parameters whose values are substituted into the - // template. Values for parameters must be provided when the template is - // instantiated. - repeated TemplateParameter parameters = 9 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h", - // and "d" suffixes for second, minute, hour, and day duration values, - // respectively. The timeout duration must be from 10 minutes ("10m") to 24 - // hours ("24h" or "1d"). The timer begins when the first job is submitted. If - // the workflow is running at the end of the timeout period, any remaining - // jobs are cancelled, the workflow is terminated, and if the workflow was - // running on a [managed - // cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), - // the cluster is deleted. - google.protobuf.Duration dag_timeout = 10 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies workflow execution target. -// -// Either `managed_cluster` or `cluster_selector` is required. -message WorkflowTemplatePlacement { - // Required. Specifies where workflow executes; either on a managed - // cluster or an existing cluster chosen by labels. - oneof placement { - // Optional. A cluster that is managed by the workflow. - ManagedCluster managed_cluster = 1; - - // Optional. A selector that chooses target cluster for jobs based - // on metadata. - // - // The selector is evaluated at the time each job is submitted. - ClusterSelector cluster_selector = 2; - } -} - -// Cluster that is managed by the workflow. -message ManagedCluster { - // Required. The cluster name prefix. A unique cluster name will be formed by - // appending a random suffix. - // - // The name must contain only lower-case letters (a-z), numbers (0-9), - // and hyphens (-). Must begin with a letter. Cannot begin or end with - // hyphen. Must consist of between 2 and 35 characters. - string cluster_name = 2; - - // Required. The cluster configuration. - ClusterConfig config = 3; - - // Optional. The labels to associate with this cluster. - // - // Label keys must be between 1 and 63 characters long, and must conform to - // the following PCRE regular expression: - // [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - // - // Label values must be between 1 and 63 characters long, and must conform to - // the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - // - // No more than 32 labels can be associated with a given cluster. - map labels = 4; -} - -// A selector that chooses target cluster for jobs based on metadata. -message ClusterSelector { - // Optional. The zone where workflow process executes. This parameter does not - // affect the selection of the cluster. - // - // If unspecified, the zone of the first cluster matching the selector - // is used. - string zone = 1; - - // Required. The cluster labels. Cluster must have all labels - // to match. - map cluster_labels = 2; -} - -// A job executed by the workflow. -message OrderedJob { - // Required. The step id. The id must be unique among all jobs - // within the template. - // - // The step id is used as prefix for job id, as job - // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] - // field from other steps. - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore - // or hyphen. Must consist of between 3 and 50 characters. - string step_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job definition. - oneof job_type { - // Optional. Job is a Hadoop job. - HadoopJob hadoop_job = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Spark job. - SparkJob spark_job = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a PySpark job. - PySparkJob pyspark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Hive job. - HiveJob hive_job = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Pig job. - PigJob pig_job = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkR job. - SparkRJob spark_r_job = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkSql job. - SparkSqlJob spark_sql_job = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Presto job. - PrestoJob presto_job = 12 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. The labels to associate with this job. - // - // Label keys must be between 1 and 63 characters long, and must conform to - // the following regular expression: - // [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - // - // Label values must be between 1 and 63 characters long, and must conform to - // the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - // - // No more than 32 labels can be associated with a given job. - map labels = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job scheduling configuration. - JobScheduling scheduling = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The optional list of prerequisite job step_ids. - // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 - [(google.api.field_behavior) = OPTIONAL]; -} - -// A configurable parameter that replaces one or more fields in the template. -// Parameterizable fields: -// - Labels -// - File uris -// - Job properties -// - Job arguments -// - Script variables -// - Main class (in HadoopJob and SparkJob) -// - Zone (in ClusterSelector) -message TemplateParameter { - // Required. Parameter name. - // The parameter name is used as the key, and paired with the - // parameter value, which are passed to the template when the template - // is instantiated. - // The name must contain only capital letters (A-Z), numbers (0-9), and - // underscores (_), and must not start with a number. The maximum length is - // 40 characters. - string name = 1; - - // Required. Paths to all fields that the parameter replaces. - // A field is allowed to appear in at most one parameter's list of field - // paths. - // - // A field path is similar in syntax to a - // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - // field path that references the zone field of a workflow template's cluster - // selector would be specified as `placement.clusterSelector.zone`. - // - // Also, field paths can reference fields using the following syntax: - // - // * Values in maps can be referenced by key: - // * labels['key'] - // * placement.clusterSelector.clusterLabels['key'] - // * placement.managedCluster.labels['key'] - // * placement.clusterSelector.clusterLabels['key'] - // * jobs['step-id'].labels['key'] - // - // * Jobs in the jobs list can be referenced by step-id: - // * jobs['step-id'].hadoopJob.mainJarFileUri - // * jobs['step-id'].hiveJob.queryFileUri - // * jobs['step-id'].pySparkJob.mainPythonFileUri - // * jobs['step-id'].hadoopJob.jarFileUris[0] - // * jobs['step-id'].hadoopJob.archiveUris[0] - // * jobs['step-id'].hadoopJob.fileUris[0] - // * jobs['step-id'].pySparkJob.pythonFileUris[0] - // - // * Items in repeated fields can be referenced by a zero-based index: - // * jobs['step-id'].sparkJob.args[0] - // - // * Other examples: - // * jobs['step-id'].hadoopJob.properties['key'] - // * jobs['step-id'].hadoopJob.args[0] - // * jobs['step-id'].hiveJob.scriptVariables['key'] - // * jobs['step-id'].hadoopJob.mainJarFileUri - // * placement.clusterSelector.zone - // - // It may not be possible to parameterize maps and repeated fields in their - // entirety since only individual map values and individual items in repeated - // fields can be referenced. For example, the following field paths are - // invalid: - // - // - placement.clusterSelector.clusterLabels - // - jobs['step-id'].sparkJob.args - repeated string fields = 2; - - // Optional. Brief description of the parameter. - // Must not exceed 1024 characters. - string description = 3; - - // Optional. Validation rules to be applied to this parameter's value. - ParameterValidation validation = 4; -} - -// Configuration for parameter validation. -message ParameterValidation { - // Required. The type of validation to be performed. - oneof validation_type { - // Validation based on regular expressions. - RegexValidation regex = 1; - - // Validation based on a list of allowed values. - ValueValidation values = 2; - } -} - -// Validation based on regular expressions. -message RegexValidation { - // Required. RE2 regular expressions used to validate the parameter's value. - // The value must match the regex in its entirety (substring - // matches are not sufficient). - repeated string regexes = 1; -} - -// Validation based on a list of allowed values. -message ValueValidation { - // Required. List of allowed values for the parameter. - repeated string values = 1; -} - -// A Dataproc workflow template resource. -message WorkflowMetadata { - // The operation state. - enum State { - // Unused. - UNKNOWN = 0; - - // The operation has been created. - PENDING = 1; - - // The operation is running. - RUNNING = 2; - - // The operation is done; either cancelled or completed. - DONE = 3; - } - - // Output only. The resource name of the workflow template as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string template = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The version of template at the time of - // workflow instantiation. - int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The workflow graph. - WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The workflow state. - State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the target cluster. - string cluster_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Map from parameter names to values that were used for those parameters. - map parameters = 8; - - // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The UUID of target cluster. - string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The timeout duration for the DAG of jobs. - // Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed - // as a - // [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping]. - // For example, "1800" = 1800 seconds/30 minutes duration. - google.protobuf.Duration dag_timeout = 12 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG start time, which is only set for workflows with - // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] - // when the DAG begins. - google.protobuf.Timestamp dag_start_time = 13 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG end time, which is only set for workflows with - // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] - // when the DAG ends. - google.protobuf.Timestamp dag_end_time = 14 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The cluster operation triggered by a workflow. -message ClusterOperation { - // Output only. The id of the cluster operation. - string operation_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Error, if operation failed. - string error = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates the operation is done. - bool done = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The workflow graph. -message WorkflowGraph { - // Output only. The workflow nodes. - repeated WorkflowNode nodes = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The workflow node. -message WorkflowNode { - // The workflow node state. - enum NodeState { - // State is unspecified. - NODE_STATUS_UNSPECIFIED = 0; - - // The node is awaiting prerequisite node to finish. - BLOCKED = 1; - - // The node is runnable but not running. - RUNNABLE = 2; - - // The node is running. - RUNNING = 3; - - // The node completed successfully. - COMPLETED = 4; - - // The node failed. A node can be marked FAILED because - // its ancestor or peer failed. - FAILED = 5; - } - - // Output only. The name of the node. - string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The job id; populated after the node enters RUNNING state. - string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The node state. - NodeState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The error detail. - string error = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to create a workflow template. -message CreateWorkflowTemplateRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates,create`, the resource name of the - // region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.create`, the resource name of - // the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Required. The Dataproc workflow template to create. - WorkflowTemplate template = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to fetch a workflow template. -message GetWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.get`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.get`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to retrieve. Only previously - // instantiated versions can be retrieved. - // - // If unspecified, retrieves the current version. - int32 version = 2; -} - -// A request to instantiate a workflow template. -message InstantiateWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to instantiate. If specified, - // the workflow will be instantiated only if the current version of - // the workflow template has the supplied version. - // - // This option cannot be used to instantiate a previous version of - // workflow template. - int32 version = 2; - - // Deprecated. Please use `request_id` field instead. - string instance_id = 3 [deprecated = true]; - - // Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of - // concurrent instances started due to retries. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The tag must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5; - - // Optional. Map from parameter names to values that should be used for those - // parameters. Values may not exceed 100 characters. - map parameters = 4; -} - -// A request to instantiate an inline workflow template. -message InstantiateInlineWorkflowTemplateRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates,instantiateinline`, the resource - // name of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.instantiateinline`, the - // resource name of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Required. The workflow template to instantiate. - WorkflowTemplate template = 2 [(google.api.field_behavior) = REQUIRED]; - - // Deprecated. Please use `request_id` field instead. - string instance_id = 3; - - // Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of - // concurrent instances started due to retries. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The tag must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4; -} - -// A request to update a workflow template. -message UpdateWorkflowTemplateRequest { - // Required. The updated workflow template. - // - // The `template.version` field must match the current version. - WorkflowTemplate template = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list workflow templates in a project. -message ListWorkflowTemplatesRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates,list`, the resource - // name of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.list`, the - // resource name of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The maximum number of results to return in each response. - int32 page_size = 2; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3; -} - -// A response to a request to list workflow templates in a project. -message ListWorkflowTemplatesResponse { - // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. To fetch additional results, provide this value as the - // page_token in a subsequent ListWorkflowTemplatesRequest. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to delete a workflow template. -// -// Currently started workflows will remain running. -message DeleteWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.delete`, the resource name - // of the template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to delete. If specified, - // will only delete the template if the current server version matches - // specified version. - int32 version = 2; -} diff --git a/versions.txt b/versions.txt index d0b52377..9c8355c9 100644 --- a/versions.txt +++ b/versions.txt @@ -3,6 +3,4 @@ google-cloud-dataproc:2.1.4:2.1.5-SNAPSHOT grpc-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT -grpc-google-cloud-dataproc-v1beta2:0.95.4:0.95.5-SNAPSHOT -proto-google-cloud-dataproc-v1beta2:0.95.4:0.95.5-SNAPSHOT proto-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT From e8a5baabd02092283c36bd9027e795aebc83f116 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 20 Sep 2021 22:03:05 +0200 Subject: [PATCH 298/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.1.4 (#691) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.1.3` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.4/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.1.4/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.1.4`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​214-httpswwwgithubcomgoogleapisjava-dataproccomparev213v214-2021-09-16) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7211127..7d94fe6f 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 67a0b85f..1f660120 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.1.3 + 2.1.4 From a62c91b5e8c106d3ce4d7bb23ba1f2f2da6a706e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 17:48:45 +0200 Subject: [PATCH 299/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.3 (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.2` -> `1.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/compatibility-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/confidence-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.3`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​103-httpswwwgithubcomgoogleapisjava-shared-configcomparev102v103-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 4de43d8d..17a138fc 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 7fbb691c..85ac067d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 From d83fee0d7c6f766324a01624c73b017488656129 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 20:26:40 +0200 Subject: [PATCH 300/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.4 (#693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.3` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.4/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.4/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.4`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​214-httpswwwgithubcomgoogleapisjava-storagecomparev213v214-2021-09-20) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.3...v2.1.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1f660120..d2713dbd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.3 + 2.1.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2a354070..4f65a091 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.3 + 2.1.4 junit From e0e66e1c3cf4bab0ac939343a4b35de4d3dce4b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 22:32:14 +0200 Subject: [PATCH 301/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 (#696) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.2.1` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/compatibility-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/confidence-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare221v230-2021-09-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.2.1...v2.3.0) ##### Dependencies - keep protobuf at 3.17.3 (not the latest 3.18.0) ([#​476](https://www.togithub.com/googleapis/java-shared-dependencies/issues/476)) ([e207c81](https://www.github.com/googleapis/java-shared-dependencies/commit/e207c818f220967e3618d7a9d36f2cf26c07892e)) - update gax.version to v2.5.0 ([#​479](https://www.togithub.com/googleapis/java-shared-dependencies/issues/479)) ([e22e62a](https://www.github.com/googleapis/java-shared-dependencies/commit/e22e62a3b248023ae94da2a02ec50006377a5157)) - update google.core.version to v2.1.4 ([#​473](https://www.togithub.com/googleapis/java-shared-dependencies/issues/473)) ([116f278](https://www.github.com/googleapis/java-shared-dependencies/commit/116f2783dfc18f215905ceaff9f85f331f83472b)) - update google.core.version to v2.1.6 ([#​478](https://www.togithub.com/googleapis/java-shared-dependencies/issues/478)) ([9e09728](https://www.github.com/googleapis/java-shared-dependencies/commit/9e0972834764b25e5e194e0e805efc5453120df3)) - update iam.version to v1.1.1 ([#​470](https://www.togithub.com/googleapis/java-shared-dependencies/issues/470)) ([3b6e960](https://www.github.com/googleapis/java-shared-dependencies/commit/3b6e96050af8d976a30165481d764d8226143a39)) - update iam.version to v1.1.2 ([#​472](https://www.togithub.com/googleapis/java-shared-dependencies/issues/472)) ([85329cc](https://www.github.com/googleapis/java-shared-dependencies/commit/85329cc6c13d16fe2eeeb076959ee16a752c1f9e)) ##### [2.2.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.2.0...v2.2.1) (2021-09-13) ##### Dependencies - update gax.version to v2.4.1 ([#​464](https://www.togithub.com/googleapis/java-shared-dependencies/issues/464)) ([bc7c6d7](https://www.github.com/googleapis/java-shared-dependencies/commit/bc7c6d7ca161ebfa31895c375d65bca29d4c7336)) - update google.core.version to v2.1.3 ([#​465](https://www.togithub.com/googleapis/java-shared-dependencies/issues/465)) ([848f608](https://www.github.com/googleapis/java-shared-dependencies/commit/848f608ae850bd2dd80ec56034eb0c9a18f0415b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85ac067d..f7267331 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.1 + 2.3.0 pom import From fcd23bf81f0de10084e20874f8bc5f6a07307612 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 22:34:16 +0200 Subject: [PATCH 302/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.5 (#697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.4` -> `2.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.5/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.5/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.5`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​215-httpswwwgithubcomgoogleapisjava-storagecomparev214v215-2021-09-22) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.4...v2.1.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d2713dbd..9f54f52e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.4 + 2.1.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4f65a091..d8e98d28 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.4 + 2.1.5 junit From 3c736da2224411c06979b7b76cd4feb10828978f Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Wed, 22 Sep 2021 16:28:19 -0700 Subject: [PATCH 303/519] chore: relocate owl bot post processor (#694) chore: relocate owl bot post processor --- .github/.OwlBot.lock.yaml | 2 +- .github/.OwlBot.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b6721276..02560da9 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 + image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index 29f73178..68b4814f 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" From 88b584547b7274dbc727adba141923c5e63b5d9c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 Sep 2021 21:24:29 +0000 Subject: [PATCH 304/519] chore: release 2.2.0 (#692) :robot: I have created a release \*beep\* \*boop\* --- ## [2.2.0](https://www.github.com/googleapis/java-dataproc/compare/v2.1.4...v2.2.0) (2021-09-22) ### Features * delete deprecated Dataproc v1beta2 API client ([#651](https://www.github.com/googleapis/java-dataproc/issues/651)) ([1415252](https://www.github.com/googleapis/java-dataproc/commit/1415252bc06133dfa2db43feccfcbc448e60672a)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#696](https://www.github.com/googleapis/java-dataproc/issues/696)) ([e0e66e1](https://www.github.com/googleapis/java-dataproc/commit/e0e66e1c3cf4bab0ac939343a4b35de4d3dce4b1)) * update dependency com.google.cloud:google-cloud-storage to v2.1.4 ([#693](https://www.github.com/googleapis/java-dataproc/issues/693)) ([d83fee0](https://www.github.com/googleapis/java-dataproc/commit/d83fee0d7c6f766324a01624c73b017488656129)) * update dependency com.google.cloud:google-cloud-storage to v2.1.5 ([#697](https://www.github.com/googleapis/java-dataproc/issues/697)) ([fcd23bf](https://www.github.com/googleapis/java-dataproc/commit/fcd23bf81f0de10084e20874f8bc5f6a07307612)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76dca5e9..e7629c02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [2.2.0](https://www.github.com/googleapis/java-dataproc/compare/v2.1.4...v2.2.0) (2021-09-22) + + +### Features + +* delete deprecated Dataproc v1beta2 API client ([#651](https://www.github.com/googleapis/java-dataproc/issues/651)) ([1415252](https://www.github.com/googleapis/java-dataproc/commit/1415252bc06133dfa2db43feccfcbc448e60672a)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#696](https://www.github.com/googleapis/java-dataproc/issues/696)) ([e0e66e1](https://www.github.com/googleapis/java-dataproc/commit/e0e66e1c3cf4bab0ac939343a4b35de4d3dce4b1)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.4 ([#693](https://www.github.com/googleapis/java-dataproc/issues/693)) ([d83fee0](https://www.github.com/googleapis/java-dataproc/commit/d83fee0d7c6f766324a01624c73b017488656129)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.5 ([#697](https://www.github.com/googleapis/java-dataproc/issues/697)) ([fcd23bf](https://www.github.com/googleapis/java-dataproc/commit/fcd23bf81f0de10084e20874f8bc5f6a07307612)) + ### [2.1.4](https://www.github.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4) (2021-09-16) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 17a138fc..558dac76 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.1.5-SNAPSHOT + 2.2.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.1.5-SNAPSHOT + 2.2.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 01650e7f..afc5f54a 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.1.5-SNAPSHOT + 2.2.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.1.5-SNAPSHOT + 2.2.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 050cdd96..4cbc0757 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.5-SNAPSHOT + 2.2.0 diff --git a/pom.xml b/pom.xml index f7267331..64f96535 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.1.5-SNAPSHOT + 2.2.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0 com.google.cloud google-cloud-dataproc - 2.1.5-SNAPSHOT + 2.2.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 6d44ed2f..42168b40 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.1.5-SNAPSHOT + 2.2.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.1.5-SNAPSHOT + 2.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d8e98d28..2a352132 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.1.5-SNAPSHOT + 2.2.0 diff --git a/versions.txt b/versions.txt index 9c8355c9..cc5d56c0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.1.4:2.1.5-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT -proto-google-cloud-dataproc-v1:2.1.4:2.1.5-SNAPSHOT +google-cloud-dataproc:2.2.0:2.2.0 +grpc-google-cloud-dataproc-v1:2.2.0:2.2.0 +proto-google-cloud-dataproc-v1:2.2.0:2.2.0 From d806c26e7ece286e4ea4dc27fb4ffac2156ed3d9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:43:19 +0000 Subject: [PATCH 305/519] chore(java): remove dependencyDashboardLabel config from renovate.json (#1220) (#698) --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 02560da9..afb21e42 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db + digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a diff --git a/renovate.json b/renovate.json index 083e8f21..f9ea56e3 100644 --- a/renovate.json +++ b/renovate.json @@ -70,8 +70,5 @@ } ], "semanticCommits": true, - "dependencyDashboard": true, - "dependencyDashboardLabels": [ - "type: process" - ] + "dependencyDashboard": true } From 2335416c6d3fba13148850dfe3d581faf9b9e991 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 24 Sep 2021 22:43:05 +0200 Subject: [PATCH 306/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.2.0 (#700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.1.4` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.0/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.0/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.2.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-dataproccomparev214v220-2021-09-22) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.1.4...v2.2.0) ##### Features - delete deprecated Dataproc v1beta2 API client ([#​651](https://www.togithub.com/googleapis/java-dataproc/issues/651)) ([1415252](https://www.github.com/googleapis/java-dataproc/commit/1415252bc06133dfa2db43feccfcbc448e60672a)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#​696](https://www.togithub.com/googleapis/java-dataproc/issues/696)) ([e0e66e1](https://www.github.com/googleapis/java-dataproc/commit/e0e66e1c3cf4bab0ac939343a4b35de4d3dce4b1)) - update dependency com.google.cloud:google-cloud-storage to v2.1.4 ([#​693](https://www.togithub.com/googleapis/java-dataproc/issues/693)) ([d83fee0](https://www.github.com/googleapis/java-dataproc/commit/d83fee0d7c6f766324a01624c73b017488656129)) - update dependency com.google.cloud:google-cloud-storage to v2.1.5 ([#​697](https://www.togithub.com/googleapis/java-dataproc/issues/697)) ([fcd23bf](https://www.github.com/googleapis/java-dataproc/commit/fcd23bf81f0de10084e20874f8bc5f6a07307612)) ##### [2.1.4](https://www.github.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4) (2021-09-16) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.1.3 ([#​688](https://www.togithub.com/googleapis/java-dataproc/issues/688)) ([35f38a3](https://www.github.com/googleapis/java-dataproc/commit/35f38a3b3ad8de2c6ef4c0804c0b6f29f75c020c)) ##### [2.1.3](https://www.github.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3) (2021-09-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.1.2 ([#​684](https://www.togithub.com/googleapis/java-dataproc/issues/684)) ([75390d1](https://www.github.com/googleapis/java-dataproc/commit/75390d1ada45101c679bbd271e98ac7070b22c20)) ##### [2.1.2](https://www.github.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2) (2021-09-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#​679](https://www.togithub.com/googleapis/java-dataproc/issues/679)) ([31ab3b9](https://www.github.com/googleapis/java-dataproc/commit/31ab3b91450f0f6a8993182bda17e535abd3b1d6)) ##### [2.1.1](https://www.github.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1) (2021-09-03) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.1.1 ([#​663](https://www.togithub.com/googleapis/java-dataproc/issues/663)) ([461cb95](https://www.github.com/googleapis/java-dataproc/commit/461cb9504957d3a6a11f53c019ed230bd1d8fac0))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7d94fe6f..9a0ecb06 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.1.4 + 2.2.0 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.1.4' +implementation 'com.google.cloud:google-cloud-dataproc:2.2.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.1.4" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9f54f52e..e9b06598 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.1.4 + 2.2.0 From dc7de2234aaff6582d9f3c302b7de97671838d4f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 27 Sep 2021 21:46:23 +0200 Subject: [PATCH 307/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.6 (#701) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.5` -> `2.1.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.6/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.6/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.6`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​216-httpswwwgithubcomgoogleapisjava-storagecomparev215v216-2021-09-24) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.5...v2.1.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e9b06598..f786fcbc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.5 + 2.1.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2a352132..c1b94153 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.5 + 2.1.6 junit From dbee67c46bb80b6b88fd87074e61490fa83658f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Sep 2021 13:11:48 -0700 Subject: [PATCH 308/519] build: add jdk 17 to java units and dependency builds (#1216) (#703) * update dependencies.sh to not pass MaxPermSize when jdk 17 is used. MaxPermSize is an unrecognized flag in jdk 17. Source-Link: https://github.com/googleapis/synthtool/commit/a4be3384ccb92364795d981f2863f6986fcee620 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- .github/blunderbuss.yml | 2 +- .github/workflows/ci.yaml | 21 +++++++++++++-------- .kokoro/dependencies.sh | 23 ++++++++++++++++++++++- README.md | 22 +++++++++++----------- 5 files changed, 48 insertions(+), 22 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index afb21e42..5ff6c87c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a + digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 1a23ea42..2176b054 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/workflows/ci.yaml b/.github/workflows/ci.yaml index 3becb5c0..2425d723 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ on: push: branches: - - master + - main pull_request: name: ci jobs: @@ -9,14 +9,15 @@ 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/build.sh @@ -29,8 +30,9 @@ jobs: - 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 +42,15 @@ 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 @@ -58,8 +61,9 @@ jobs: - 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 @@ -72,8 +76,9 @@ jobs: - 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/dependencies.sh b/.kokoro/dependencies.sh index 9030ba8f..9a5105d7 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -28,7 +28,28 @@ 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' + ) + + case $javaVersion in + "17") + # MaxPermSize is no longer supported as of jdk 17 + echo -n "-Xmx1024m" + ;; + *) + echo -n "-Xmx1024m -XX:MaxPermSize=128m" + ;; + esac +} + +export MAVEN_OPTS=$(determineMavenOpts) # this should run maven enforcer retry_with_backoff 3 10 \ diff --git a/README.md b/README.md index 9a0ecb06..68acdc7c 100644 --- a/README.md +++ b/README.md @@ -103,16 +103,16 @@ use this Dataproc Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-dataproc/tree/master/samples) directory. +Samples are in the [`samples/`](https://github.com/googleapis/java-dataproc/tree/main/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Create Cluster | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/CreateCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/CreateCluster.java) | -| Create Cluster With Autoscaling | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/CreateClusterWithAutoscaling.java) | -| Instantiate Inline Workflow Template | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java) | -| Quickstart | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/Quickstart.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/Quickstart.java) | -| Submit Hadoop Fs Job | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/SubmitHadoopFsJob.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/SubmitHadoopFsJob.java) | -| Submit Job | [source code](https://github.com/googleapis/java-dataproc/blob/master/samples/snippets/src/main/java/SubmitJob.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/SubmitJob.java) | +| Create Cluster | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/CreateCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/CreateCluster.java) | +| Create Cluster With Autoscaling | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/CreateClusterWithAutoscaling.java) | +| Instantiate Inline Workflow Template | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java) | +| Quickstart | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/Quickstart.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/Quickstart.java) | +| Submit Hadoop Fs Job | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/SubmitHadoopFsJob.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/SubmitHadoopFsJob.java) | +| Submit Job | [source code](https://github.com/googleapis/java-dataproc/blob/main/samples/snippets/src/main/java/SubmitJob.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-dataproc&page=editor&open_in_editor=samples/snippets/src/main/java/SubmitJob.java) | @@ -225,10 +225,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-dataproc/blob/master/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-dataproc/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-dataproc/blob/master/LICENSE +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-dataproc/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-dataproc/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-dataproc/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=dataproc.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM From ba246a96190cb10f071d3df840e56b5eb789e2ec Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 29 Sep 2021 14:34:55 -0400 Subject: [PATCH 309/519] chore: change branch master to main in github configurations (#706) --- .github/sync-repo-settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 32e0ea5a..6f09d695 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 From 2a664527e2379819daa81734ce30c06676d7c790 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:20:17 +0200 Subject: [PATCH 310/519] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68acdc7c..c0074aac 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:23.0.0') +implementation platform('com.google.cloud:libraries-bom:23.1.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 531101a8..403a2b2d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From e8ebb967ab6a139fe53a84ab58cf6e3a19511b55 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 1 Oct 2021 09:23:57 -0700 Subject: [PATCH 311/519] chore: change branch master to main (#705) From dda03134149ba95f5061dbc60ad7ba9c05cedf38 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Oct 2021 17:34:24 +0200 Subject: [PATCH 312/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.7 (#709) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.6` -> `2.1.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.7/compatibility-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.7/confidence-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.7`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​217-httpswwwgithubcomgoogleapisjava-storagecomparev216v217-2021-10-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.6...v2.1.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f786fcbc..e4f51439 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.6 + 2.1.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c1b94153..14d3f0d9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.6 + 2.1.7 junit From 6556133b2ad1c2043124f059db6f9b8d9770c8c9 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Thu, 7 Oct 2021 10:44:51 -0700 Subject: [PATCH 313/519] chore: update repo-metadata.json client_documentation link (#710) --- .repo-metadata.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index eb22be0f..ba7ccc12 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,7 +2,7 @@ "name": "dataproc", "name_pretty": "Dataproc", "product_documentation": "https://cloud.google.com/dataproc", - "client_documentation": "https://googleapis.dev/java/google-cloud-dataproc/latest/", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/history", "issue_tracker": "https://issuetracker.google.com/savedsearches/559745", "release_level": "ga", "language": "java", diff --git a/README.md b/README.md index c0074aac..67a3eff7 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,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/dataproc -[javadocs]: https://googleapis.dev/java/google-cloud-dataproc/latest/ +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/history [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java8.svg From bdac02c25f54a9562e7181966471f415805f346d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Oct 2021 17:30:31 +0200 Subject: [PATCH 314/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.1.0 (#712) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.3` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/compatibility-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/confidence-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-configcomparev103v110-2021-10-12) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.3...v1.1.0) ##### Features - introduce Maven configuration for GraalVM testing ([#​314](https://www.togithub.com/googleapis/java-shared-config/issues/314)) ([28fbeb8](https://www.github.com/googleapis/java-shared-config/commit/28fbeb86c4466a58a05d6933584564dbf3352e79)) ##### Bug Fixes - update doclet version ([#​332](https://www.togithub.com/googleapis/java-shared-config/issues/332)) ([3fd0350](https://www.github.com/googleapis/java-shared-config/commit/3fd035030e4f0954dd1f62f7b8ea62583685880c)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9.0.1 ([#​327](https://www.togithub.com/googleapis/java-shared-config/issues/327)) ([b6c9b65](https://www.github.com/googleapis/java-shared-config/commit/b6c9b657550db2dee6b36edbb9a6084baee125e2)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.6 ([#​330](https://www.togithub.com/googleapis/java-shared-config/issues/330)) ([271ed7d](https://www.github.com/googleapis/java-shared-config/commit/271ed7dba35623e22fc8a7f7d477e6043e772014)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.6 ([#​331](https://www.togithub.com/googleapis/java-shared-config/issues/331)) ([4f9ba15](https://www.github.com/googleapis/java-shared-config/commit/4f9ba1551df0a2d4fc8c9acca8a951afbe8cb78a)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.1 ([#​329](https://www.togithub.com/googleapis/java-shared-config/issues/329)) ([4a8789e](https://www.github.com/googleapis/java-shared-config/commit/4a8789ee814ba8a3480beecc76c16fd1cb4e5f12)) ##### [1.0.3](https://www.github.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3) (2021-09-21) ##### Bug Fixes - update java-docfx-doclet version ([#​315](https://www.togithub.com/googleapis/java-shared-config/issues/315)) ([07af07c](https://www.github.com/googleapis/java-shared-config/commit/07af07c188447ea5728ecd2700121ff477d1c58a)) ##### [1.0.2](https://www.github.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2) (2021-09-13) ##### Bug Fixes - specify animal-sniffer-maven-plugin version ([#​308](https://www.togithub.com/googleapis/java-shared-config/issues/308)) ([378bf43](https://www.github.com/googleapis/java-shared-config/commit/378bf431383306c1cdd0a4f922956c87edf321b5)) - update java docfx doclet version ([#​312](https://www.togithub.com/googleapis/java-shared-config/issues/312)) ([dd7f6e0](https://www.github.com/googleapis/java-shared-config/commit/dd7f6e0c1a7cc73831b74b4475457611a8c097d3)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9 ([#​303](https://www.togithub.com/googleapis/java-shared-config/issues/303)) ([71faea3](https://www.github.com/googleapis/java-shared-config/commit/71faea38d4132407598550e2bb4c77f9d4a4d83d)) ##### [1.0.1](https://www.github.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1) (2021-08-18) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.45.1 ([#​292](https://www.togithub.com/googleapis/java-shared-config/issues/292)) ([66bf6e6](https://www.github.com/googleapis/java-shared-config/commit/66bf6e6fb95997b9eb4b34268b8d20c2fbe9ed5a))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 558dac76..ee07b2b1 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 64f96535..f6ce28ae 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 From 5cd98f81f04d87ffc0fc21675cd489517b4fb90a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:00:40 +0000 Subject: [PATCH 315/519] build(java): Introduce Native Image testing build script changes (#714) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 5 +++++ .kokoro/presubmit/graalvm-native.cfg | 33 ++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .kokoro/presubmit/graalvm-native.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5ff6c87c..dc53bbb5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 + digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 4505701f..8016fa5c 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -69,6 +69,11 @@ integration) verify RETURN_CODE=$? ;; +graalvm) + # Run Unit and Integration Tests with Native Image + mvn test -Pnative -Penable-integration-tests + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 00000000..4c7225ec --- /dev/null +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 91cfd376bce87b492fdb9319dffb5d109ec62526 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:42:19 +0200 Subject: [PATCH 316/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.8 (#715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.7` -> `2.1.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.8/compatibility-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.8/confidence-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.8`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​218-httpswwwgithubcomgoogleapisjava-storagecomparev217v218-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.7...v2.1.8)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e4f51439..5735b44e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.7 + 2.1.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 14d3f0d9..ba37fc24 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.7 + 2.1.8 junit From 2ae9ae0b4f222e67c32a2ea41f1dda6bf2d73cb9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:46:17 +0200 Subject: [PATCH 317/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 (#716) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.3.0` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​240-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare230v240-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.3.0...v2.4.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.0 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api:api-common to v2.0.5 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.guava:guava-bom to v31 ([#​498](https://www.togithub.com/googleapis/java-shared-dependencies/issues/498)) ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​494](https://www.togithub.com/googleapis/java-shared-dependencies/issues/494)) ([a30e376](https://www.github.com/googleapis/java-shared-dependencies/commit/a30e3762b5fb0e2d31304d211c12eb2c1320f0c1)) - update dependency io.grpc:grpc-bom to v1.41.0 ([#​482](https://www.togithub.com/googleapis/java-shared-dependencies/issues/482)) ([8a7d227](https://www.github.com/googleapis/java-shared-dependencies/commit/8a7d227f2a1dab9ff23d247a4e6131c817804c36)) - update gax.version to v2.6.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update iam.version to v1.1.6 ([#​485](https://www.togithub.com/googleapis/java-shared-dependencies/issues/485)) ([cef7e09](https://www.github.com/googleapis/java-shared-dependencies/commit/cef7e090bbc2e3ae775fa83505f98df286ba7d42))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f6ce28ae..b9521ab3 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.4.0 pom import From b1d7cf30737114ada3900d6e7f50b9f3ad24d1a1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:58:13 +0000 Subject: [PATCH 318/519] chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#713) - [x] Regenerate this pull request now. PiperOrigin-RevId: 403132955 Source-Link: https://github.com/googleapis/googleapis/commit/d2977af9e9f1fc0c9dc8368352daa032471f3c63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9 --- .../dataproc/v1/ClusterControllerClient.java | 11 + .../AutoscalingPolicyServiceClientTest.java | 7 + .../dataproc/v1/ClusterControllerGrpc.java | 8 + .../v1/WorkflowTemplateServiceGrpc.java | 12 +- .../cloud/dataproc/v1/AcceleratorConfig.java | 4 +- .../cloud/dataproc/v1/AutoscalingConfig.java | 4 +- .../dataproc/v1/AutoscalingPoliciesProto.java | 188 +- .../cloud/dataproc/v1/AutoscalingPolicy.java | 398 ++- .../v1/AutoscalingPolicyOrBuilder.java | 84 + .../dataproc/v1/BatchOperationMetadata.java | 2445 +++++++++++++++++ .../v1/BatchOperationMetadataOrBuilder.java | 302 ++ .../cloud/dataproc/v1/CancelJobRequest.java | 12 +- .../com/google/cloud/dataproc/v1/Cluster.java | 16 +- .../cloud/dataproc/v1/ClusterConfig.java | 216 +- .../dataproc/v1/ClusterConfigOrBuilder.java | 56 +- .../cloud/dataproc/v1/ClusterOperation.java | 8 +- .../dataproc/v1/ClusterOperationMetadata.java | 16 +- .../dataproc/v1/ClusterOperationStatus.java | 8 +- .../cloud/dataproc/v1/ClusterSelector.java | 4 +- .../cloud/dataproc/v1/ClusterStatus.java | 28 +- .../cloud/dataproc/v1/ClustersProto.java | 455 +-- .../google/cloud/dataproc/v1/Component.java | 1 - .../v1/ConfidentialInstanceConfig.java | 549 ++++ .../ConfidentialInstanceConfigOrBuilder.java | 38 + .../v1/CreateAutoscalingPolicyRequest.java | 4 +- .../dataproc/v1/CreateClusterRequest.java | 208 +- .../v1/CreateClusterRequestOrBuilder.java | 37 +- .../v1/CreateWorkflowTemplateRequest.java | 4 +- .../v1/DeleteAutoscalingPolicyRequest.java | 4 +- .../dataproc/v1/DeleteClusterRequest.java | 48 +- .../v1/DeleteClusterRequestOrBuilder.java | 8 +- .../cloud/dataproc/v1/DeleteJobRequest.java | 12 +- .../v1/DeleteWorkflowTemplateRequest.java | 4 +- .../dataproc/v1/DiagnoseClusterRequest.java | 12 +- .../dataproc/v1/DiagnoseClusterResults.java | 4 +- .../google/cloud/dataproc/v1/DiskConfig.java | 4 +- .../cloud/dataproc/v1/EncryptionConfig.java | 4 +- .../cloud/dataproc/v1/EnvironmentConfig.java | 1058 +++++++ .../v1/EnvironmentConfigOrBuilder.java | 107 + .../cloud/dataproc/v1/ExecutionConfig.java | 1640 +++++++++++ .../dataproc/v1/ExecutionConfigOrBuilder.java | 202 ++ .../cloud/dataproc/v1/FailureAction.java | 178 ++ .../cloud/dataproc/v1/GceClusterConfig.java | 340 ++- .../v1/GceClusterConfigOrBuilder.java | 45 + .../v1/GetAutoscalingPolicyRequest.java | 4 +- .../cloud/dataproc/v1/GetClusterRequest.java | 12 +- .../cloud/dataproc/v1/GetJobRequest.java | 12 +- .../v1/GetWorkflowTemplateRequest.java | 4 +- .../cloud/dataproc/v1/GkeClusterConfig.java | 8 +- .../dataproc/v1/InstanceGroupConfig.java | 12 +- ...tantiateInlineWorkflowTemplateRequest.java | 8 +- .../InstantiateWorkflowTemplateRequest.java | 8 +- .../com/google/cloud/dataproc/v1/Job.java | 28 +- .../google/cloud/dataproc/v1/JobMetadata.java | 8 +- .../cloud/dataproc/v1/JobOrBuilder.java | 4 +- .../cloud/dataproc/v1/JobPlacement.java | 41 +- .../dataproc/v1/JobPlacementOrBuilder.java | 15 +- .../cloud/dataproc/v1/JobReference.java | 36 +- .../dataproc/v1/JobReferenceOrBuilder.java | 8 +- .../cloud/dataproc/v1/JobScheduling.java | 16 +- .../dataproc/v1/JobSchedulingOrBuilder.java | 4 +- .../google/cloud/dataproc/v1/JobStatus.java | 4 +- .../cloud/dataproc/v1/KerberosConfig.java | 52 +- .../v1/ListAutoscalingPoliciesRequest.java | 8 +- .../v1/ListAutoscalingPoliciesResponse.java | 4 +- .../dataproc/v1/ListClustersRequest.java | 16 +- .../dataproc/v1/ListClustersResponse.java | 4 +- .../cloud/dataproc/v1/ListJobsRequest.java | 20 +- .../cloud/dataproc/v1/ListJobsResponse.java | 4 +- .../v1/ListWorkflowTemplatesRequest.java | 8 +- .../v1/ListWorkflowTemplatesResponse.java | 4 +- .../cloud/dataproc/v1/LoggingConfig.java | 2 +- .../cloud/dataproc/v1/ManagedCluster.java | 4 +- .../cloud/dataproc/v1/ManagedGroupConfig.java | 8 +- .../cloud/dataproc/v1/MetastoreConfig.java | 4 +- .../cloud/dataproc/v1/NodeGroupAffinity.java | 4 +- .../dataproc/v1/NodeInitializationAction.java | 4 +- .../cloud/dataproc/v1/OperationsProto.java | 96 +- .../google/cloud/dataproc/v1/OrderedJob.java | 32 +- .../dataproc/v1/OrderedJobOrBuilder.java | 8 +- .../cloud/dataproc/v1/PeripheralsConfig.java | 959 +++++++ .../v1/PeripheralsConfigOrBuilder.java | 96 + .../google/cloud/dataproc/v1/PrestoJob.java | 4 +- .../google/cloud/dataproc/v1/PySparkJob.java | 4 +- .../dataproc/v1/ReservationAffinity.java | 4 +- .../cloud/dataproc/v1/RuntimeConfig.java | 806 ++++++ .../dataproc/v1/RuntimeConfigOrBuilder.java | 89 + .../google/cloud/dataproc/v1/RuntimeInfo.java | 984 +++++++ .../dataproc/v1/RuntimeInfoOrBuilder.java | 114 + .../google/cloud/dataproc/v1/SharedProto.java | 140 +- .../cloud/dataproc/v1/SoftwareConfig.java | 4 +- .../dataproc/v1/SparkHistoryServerConfig.java | 658 +++++ .../v1/SparkHistoryServerConfigOrBuilder.java | 56 + .../google/cloud/dataproc/v1/SparkRJob.java | 4 +- .../dataproc/v1/StartClusterRequest.java | 48 +- .../v1/StartClusterRequestOrBuilder.java | 8 +- .../cloud/dataproc/v1/StopClusterRequest.java | 48 +- .../v1/StopClusterRequestOrBuilder.java | 8 +- .../cloud/dataproc/v1/SubmitJobRequest.java | 12 +- .../cloud/dataproc/v1/TemplateParameter.java | 112 +- .../v1/TemplateParameterOrBuilder.java | 32 +- .../dataproc/v1/UpdateClusterRequest.java | 44 +- .../v1/UpdateClusterRequestOrBuilder.java | 8 +- .../cloud/dataproc/v1/UpdateJobRequest.java | 12 +- .../cloud/dataproc/v1/WorkflowMetadata.java | 168 +- .../v1/WorkflowMetadataOrBuilder.java | 39 +- .../cloud/dataproc/v1/WorkflowNode.java | 12 +- .../cloud/dataproc/v1/WorkflowTemplate.java | 8 +- .../cloud/dataproc/v1/YarnApplication.java | 8 +- .../dataproc/v1/autoscaling_policies.proto | 11 +- .../google/cloud/dataproc/v1/clusters.proto | 68 +- .../proto/google/cloud/dataproc/v1/jobs.proto | 61 +- .../google/cloud/dataproc/v1/operations.proto | 39 +- .../google/cloud/dataproc/v1/shared.proto | 90 +- .../dataproc/v1/workflow_templates.proto | 107 +- 115 files changed, 12905 insertions(+), 1267 deletions(-) create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 51f40c03..9cf9ec25 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -220,6 +220,7 @@ public final OperationFuture createClusterAsy * .setRegion("region-934795532") * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") + * .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) * .build(); * Cluster response = clusterControllerClient.createClusterAsync(request).get(); * } @@ -249,6 +250,7 @@ public final OperationFuture createClusterAsy * .setRegion("region-934795532") * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") + * .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) * .build(); * OperationFuture future = * clusterControllerClient.createClusterOperationCallable().futureCall(request); @@ -278,6 +280,7 @@ public final OperationFuture createClusterAsy * .setRegion("region-934795532") * .setCluster(Cluster.newBuilder().build()) * .setRequestId("requestId693933066") + * .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) * .build(); * ApiFuture future = * clusterControllerClient.createClusterCallable().futureCall(request); @@ -295,6 +298,8 @@ public final UnaryCallable createClusterCallabl * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an + * error is returned. * *

Sample code: * @@ -357,6 +362,8 @@ public final OperationFuture updateClusterAsy * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an + * error is returned. * *

Sample code: * @@ -389,6 +396,8 @@ public final OperationFuture updateClusterAsy * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an + * error is returned. * *

Sample code: * @@ -421,6 +430,8 @@ public final OperationFuture updateClusterAsy * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an + * error is returned. * *

Sample code: * diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java index 8735aac5..000fcdf6 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java @@ -31,6 +31,7 @@ import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -91,6 +92,7 @@ public void createAutoscalingPolicyTest() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -139,6 +141,7 @@ public void createAutoscalingPolicyTest2() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -187,6 +190,7 @@ public void createAutoscalingPolicyTest3() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -235,6 +239,7 @@ public void updateAutoscalingPolicyTest() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -280,6 +285,7 @@ public void getAutoscalingPolicyTest() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); @@ -329,6 +335,7 @@ public void getAutoscalingPolicyTest2() throws Exception { .toString()) .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockAutoscalingPolicyService.addResponse(expectedResponse); diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java index 4c78be81..220c2360 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java @@ -455,6 +455,8 @@ public void createCluster( * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + * is returned. * */ public void updateCluster( @@ -657,6 +659,8 @@ public void createCluster( * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + * is returned. * */ public void updateCluster( @@ -815,6 +819,8 @@ public com.google.longrunning.Operation createCluster( * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + * is returned. * */ public com.google.longrunning.Operation updateCluster( @@ -952,6 +958,8 @@ protected ClusterControllerFutureStub build( * Updates a cluster in a project. The returned * [Operation.metadata][google.longrunning.Operation.metadata] will be * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + * is returned. * */ public com.google.common.util.concurrent.ListenableFuture diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java index 3f284e38..665b780e 100644 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java @@ -514,8 +514,7 @@ public void instantiateWorkflowTemplate( *

      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -734,8 +733,7 @@ public void instantiateWorkflowTemplate(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -898,8 +896,7 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
@@ -1051,8 +1048,7 @@ protected WorkflowTemplateServiceFutureStub build(
      * 
      * Instantiates a template and begins execution.
      * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate],
-     * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
+     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
      * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
      * The returned Operation can be used to track execution of
      * workflow by polling
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
index f54ba2c5..46edc5f0 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
@@ -223,7 +223,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getAcceleratorTypeUriBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorTypeUri_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acceleratorTypeUri_);
     }
     if (acceleratorCount_ != 0) {
@@ -238,7 +238,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getAcceleratorTypeUriBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorTypeUri_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acceleratorTypeUri_);
     }
     if (acceleratorCount_ != 0) {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
index 9fe69ff9..e8601269 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
@@ -184,7 +184,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getPolicyUriBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_);
     }
     unknownFields.writeTo(output);
@@ -196,7 +196,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getPolicyUriBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
index 7dda762c..838b0319 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
@@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
       internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable;
   static final com.google.protobuf.Descriptors.Descriptor
       internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor;
   static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -82,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "i/client.proto\032\037google/api/field_behavio"
           + "r.proto\032\031google/api/resource.proto\032\036goog"
           + "le/protobuf/duration.proto\032\033google/proto"
-          + "buf/empty.proto\"\250\004\n\021AutoscalingPolicy\022\n\n"
+          + "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n"
           + "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al"
           + "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1"
           + ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor"
@@ -90,86 +94,90 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + ".v1.InstanceGroupAutoscalingPolicyConfig"
           + "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>"
           + ".google.cloud.dataproc.v1.InstanceGroupA"
-          + "utoscalingPolicyConfigB\003\340A\001:\317\001\352A\313\001\n)data"
-          + "proc.googleapis.com/AutoscalingPolicy\022Pp"
-          + "rojects/{project}/locations/{location}/a"
-          + "utoscalingPolicies/{autoscaling_policy}\022"
-          + "Lprojects/{project}/regions/{region}/aut"
-          + "oscalingPolicies/{autoscaling_policy}B\013\n"
-          + "\talgorithm\"\244\001\n\031BasicAutoscalingAlgorithm"
-          + "\022N\n\013yarn_config\030\001 \001(\01324.google.cloud.dat"
-          + "aproc.v1.BasicYarnAutoscalingConfigB\003\340A\002"
-          + "\0227\n\017cooldown_period\030\002 \001(\0132\031.google.proto"
-          + "buf.DurationB\003\340A\001\"\371\001\n\032BasicYarnAutoscali"
-          + "ngConfig\022E\n\035graceful_decommission_timeou"
-          + "t\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\002\022"
-          + "\034\n\017scale_up_factor\030\001 \001(\001B\003\340A\002\022\036\n\021scale_d"
-          + "own_factor\030\002 \001(\001B\003\340A\002\022)\n\034scale_up_min_wo"
-          + "rker_fraction\030\003 \001(\001B\003\340A\001\022+\n\036scale_down_m"
-          + "in_worker_fraction\030\004 \001(\001B\003\340A\001\"s\n$Instanc"
-          + "eGroupAutoscalingPolicyConfig\022\032\n\rmin_ins"
-          + "tances\030\001 \001(\005B\003\340A\001\022\032\n\rmax_instances\030\002 \001(\005"
-          + "B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003\340A\001\"\245\001\n\036CreateAut"
-          + "oscalingPolicyRequest\022A\n\006parent\030\001 \001(\tB1\340"
-          + "A\002\372A+\022)dataproc.googleapis.com/Autoscali"
-          + "ngPolicy\022@\n\006policy\030\002 \001(\0132+.google.cloud."
-          + "dataproc.v1.AutoscalingPolicyB\003\340A\002\"^\n\033Ge"
-          + "tAutoscalingPolicyRequest\022?\n\004name\030\001 \001(\tB"
-          + "1\340A\002\372A+\n)dataproc.googleapis.com/Autosca"
-          + "lingPolicy\"b\n\036UpdateAutoscalingPolicyReq"
-          + "uest\022@\n\006policy\030\001 \001(\0132+.google.cloud.data"
-          + "proc.v1.AutoscalingPolicyB\003\340A\002\"a\n\036Delete"
-          + "AutoscalingPolicyRequest\022?\n\004name\030\001 \001(\tB1"
-          + "\340A\002\372A+\n)dataproc.googleapis.com/Autoscal"
-          + "ingPolicy\"\224\001\n\036ListAutoscalingPoliciesReq"
-          + "uest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.g"
-          + "oogleapis.com/AutoscalingPolicy\022\026\n\tpage_"
-          + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001"
-          + "\"\203\001\n\037ListAutoscalingPoliciesResponse\022B\n\010"
-          + "policies\030\001 \003(\0132+.google.cloud.dataproc.v"
-          + "1.AutoscalingPolicyB\003\340A\003\022\034\n\017next_page_to"
-          + "ken\030\002 \001(\tB\003\340A\0032\256\013\n\030AutoscalingPolicyServ"
-          + "ice\022\234\002\n\027CreateAutoscalingPolicy\0228.google"
-          + ".cloud.dataproc.v1.CreateAutoscalingPoli"
-          + "cyRequest\032+.google.cloud.dataproc.v1.Aut"
-          + "oscalingPolicy\"\231\001\202\323\344\223\002\202\001\"7/v1/{parent=pr"
-          + "ojects/*/locations/*}/autoscalingPolicie"
-          + "s:\006policyZ?\"5/v1/{parent=projects/*/regi"
-          + "ons/*}/autoscalingPolicies:\006policy\332A\rpar"
-          + "ent,policy\022\243\002\n\027UpdateAutoscalingPolicy\0228"
-          + ".google.cloud.dataproc.v1.UpdateAutoscal"
-          + "ingPolicyRequest\032+.google.cloud.dataproc"
-          + ".v1.AutoscalingPolicy\"\240\001\202\323\344\223\002\220\001\032>/v1/{po"
-          + "licy.name=projects/*/locations/*/autosca"
-          + "lingPolicies/*}:\006policyZF\032/v"
+          + "1/{policy.name=projects/*/locations/*/au"
+          + "toscalingPolicies/*}:\006policyZF\032 labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
               break;
             }
           default:
@@ -165,6 +179,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor;
   }
 
+  @SuppressWarnings({"rawtypes"})
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
+    switch (number) {
+      case 6:
+        return internalGetLabels();
+      default:
+        throw new RuntimeException("Invalid map field number: " + number);
+    }
+  }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
@@ -488,6 +513,128 @@ public boolean hasSecondaryWorkerConfig() {
     return getSecondaryWorkerConfig();
   }
 
+  public static final int LABELS_FIELD_NUMBER = 6;
+
+  private static final class LabelsDefaultEntryHolder {
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.dataproc.v1.AutoscalingPoliciesProto
+                .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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();
+  }
+  /**
+   *
+   *
+   * 
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -502,10 +649,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 (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (algorithmCase_ == 3) { @@ -517,6 +664,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (secondaryWorkerConfig_ != null) { output.writeMessage(5, getSecondaryWorkerConfig()); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @@ -526,10 +675,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 (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (algorithmCase_ == 3) { @@ -544,6 +693,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecondaryWorkerConfig()); } + 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(6, labels__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -570,6 +729,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSecondaryWorkerConfig()) { if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false; switch (algorithmCase_) { case 3: @@ -601,6 +761,10 @@ public int hashCode() { hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSecondaryWorkerConfig().hashCode(); } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } switch (algorithmCase_) { case 3: hash = (37 * hash) + BASIC_ALGORITHM_FIELD_NUMBER; @@ -727,6 +891,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -770,6 +954,7 @@ public Builder clear() { secondaryWorkerConfig_ = null; secondaryWorkerConfigBuilder_ = null; } + internalGetMutableLabels().clear(); algorithmCase_ = 0; algorithm_ = null; return this; @@ -799,6 +984,7 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy build() { public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { com.google.cloud.dataproc.v1.AutoscalingPolicy result = new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); + int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (algorithmCase_ == 3) { @@ -818,6 +1004,8 @@ public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { } else { result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build(); } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); result.algorithmCase_ = algorithmCase_; onBuilt(); return result; @@ -882,6 +1070,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { if (other.hasSecondaryWorkerConfig()) { mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); switch (other.getAlgorithmCase()) { case BASIC_ALGORITHM: { @@ -936,6 +1125,8 @@ public Builder clearAlgorithm() { return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -1795,6 +1986,205 @@ public Builder clearSecondaryWorkerConfig() { return secondaryWorkerConfigBuilder_; } + 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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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; + } + /** + * + * + *
+     * Optional. The labels to associate with this autoscaling policy.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with an autoscaling policy.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java index 2e0dbd53..d859d06e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java @@ -200,5 +200,89 @@ public interface AutoscalingPolicyOrBuilder com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels to associate with this autoscaling policy.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with an autoscaling policy.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + public com.google.cloud.dataproc.v1.AutoscalingPolicy.AlgorithmCase getAlgorithmCase(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java new file mode 100644 index 00000000..9308ef78 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java @@ -0,0 +1,2445 @@ +/* + * 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/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Metadata describing the Batch operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} + */ +public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BatchOperationMetadata) + BatchOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchOperationMetadata.newBuilder() to construct. + private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchOperationMetadata() { + batch_ = ""; + batchUuid_ = ""; + operationType_ = 0; + description_ = ""; + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchOperationMetadata( + 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(); + + batch_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + batchUuid_ = s; + break; + } + case 26: + { + 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 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (doneTime_ != null) { + subBuilder = doneTime_.toBuilder(); + } + doneTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(doneTime_); + doneTime_ = subBuilder.buildPartial(); + } + + break; + } + case 48: + { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 66: + { + 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 74: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + warnings_.add(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_ & 0x00000002) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + 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.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, + com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + } + + /** + * + * + *
+   * Operation type for Batch resources
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType} + */ + public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Batch operation type is unknown.
+     * 
+ * + * BATCH_OPERATION_TYPE_UNSPECIFIED = 0; + */ + BATCH_OPERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Batch operation type.
+     * 
+ * + * BATCH = 1; + */ + BATCH(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Batch operation type is unknown.
+     * 
+ * + * BATCH_OPERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int BATCH_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Batch operation type.
+     * 
+ * + * BATCH = 1; + */ + public static final int BATCH_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BatchOperationType 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 BatchOperationType forNumber(int value) { + switch (value) { + case 0: + return BATCH_OPERATION_TYPE_UNSPECIFIED; + case 1: + return BATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BatchOperationType findValueByNumber(int number) { + return BatchOperationType.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.dataproc.v1.BatchOperationMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BatchOperationType[] VALUES = values(); + + public static BatchOperationType 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 BatchOperationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType) + } + + public static final int BATCH_FIELD_NUMBER = 1; + private volatile java.lang.Object batch_; + /** + * + * + *
+   * Name of the batch for the operation.
+   * 
+ * + * string batch = 1; + * + * @return The batch. + */ + @java.lang.Override + public java.lang.String getBatch() { + java.lang.Object ref = batch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batch_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the batch for the operation.
+   * 
+ * + * string batch = 1; + * + * @return The bytes for batch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBatchBytes() { + java.lang.Object ref = batch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BATCH_UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object batchUuid_; + /** + * + * + *
+   * Batch UUID for the operation.
+   * 
+ * + * string batch_uuid = 2; + * + * @return The batchUuid. + */ + @java.lang.Override + public java.lang.String getBatchUuid() { + java.lang.Object ref = batchUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchUuid_ = s; + return s; + } + } + /** + * + * + *
+   * Batch UUID for the operation.
+   * 
+ * + * string batch_uuid = 2; + * + * @return The bytes for batchUuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBatchUuidBytes() { + java.lang.Object ref = batchUuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int DONE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp doneTime_; + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return Whether the doneTime field is set. + */ + @java.lang.Override + public boolean hasDoneTime() { + return doneTime_ != null; + } + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return The doneTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDoneTime() { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { + return getDoneTime(); + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 6; + private int operationType_; + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The operationType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 7; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Short description of the operation.
+   * 
+ * + * string description = 7; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Short description of the operation.
+   * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 8; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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(); + } + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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(); + } + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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; + } + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + @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 WARNINGS_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList warnings_; + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList getWarningsList() { + return warnings_; + } + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, batch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchUuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, batchUuid_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (doneTime_ != null) { + output.writeMessage(4, getDoneTime()); + } + if (operationType_ + != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + .BATCH_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, operationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, warnings_.getRaw(i)); + } + 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(batch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, batch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchUuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, batchUuid_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (doneTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDoneTime()); + } + if (operationType_ + != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + .BATCH_OPERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, operationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); + } + 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(8, labels__); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + 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.dataproc.v1.BatchOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.BatchOperationMetadata other = + (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; + + if (!getBatch().equals(other.getBatch())) return false; + if (!getBatchUuid().equals(other.getBatchUuid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasDoneTime() != other.hasDoneTime()) return false; + if (hasDoneTime()) { + if (!getDoneTime().equals(other.getDoneTime())) return false; + } + if (operationType_ != other.operationType_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getWarningsList().equals(other.getWarningsList())) 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) + BATCH_FIELD_NUMBER; + hash = (53 * hash) + getBatch().hashCode(); + hash = (37 * hash) + BATCH_UUID_FIELD_NUMBER; + hash = (53 * hash) + getBatchUuid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasDoneTime()) { + hash = (37 * hash) + DONE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDoneTime().hashCode(); + } + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 describing the Batch operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BatchOperationMetadata) + com.google.cloud.dataproc.v1.BatchOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 8: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 8: + 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.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.BatchOperationMetadata.class, + com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.BatchOperationMetadata.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(); + batch_ = ""; + + batchUuid_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (doneTimeBuilder_ == null) { + doneTime_ = null; + } else { + doneTime_ = null; + doneTimeBuilder_ = null; + } + operationType_ = 0; + + description_ = ""; + + internalGetMutableLabels().clear(); + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.OperationsProto + .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata build() { + com.google.cloud.dataproc.v1.BatchOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { + com.google.cloud.dataproc.v1.BatchOperationMetadata result = + new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); + int from_bitField0_ = bitField0_; + result.batch_ = batch_; + result.batchUuid_ = batchUuid_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (doneTimeBuilder_ == null) { + result.doneTime_ = doneTime_; + } else { + result.doneTime_ = doneTimeBuilder_.build(); + } + result.operationType_ = operationType_; + result.description_ = description_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (((bitField0_ & 0x00000002) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.warnings_ = warnings_; + 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.dataproc.v1.BatchOperationMetadata) { + return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata other) { + if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) + return this; + if (!other.getBatch().isEmpty()) { + batch_ = other.batch_; + onChanged(); + } + if (!other.getBatchUuid().isEmpty()) { + batchUuid_ = other.batchUuid_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasDoneTime()) { + mergeDoneTime(other.getDoneTime()); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + 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.dataproc.v1.BatchOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.BatchOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object batch_ = ""; + /** + * + * + *
+     * Name of the batch for the operation.
+     * 
+ * + * string batch = 1; + * + * @return The batch. + */ + public java.lang.String getBatch() { + java.lang.Object ref = batch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the batch for the operation.
+     * 
+ * + * string batch = 1; + * + * @return The bytes for batch. + */ + public com.google.protobuf.ByteString getBatchBytes() { + java.lang.Object ref = batch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the batch for the operation.
+     * 
+ * + * string batch = 1; + * + * @param value The batch to set. + * @return This builder for chaining. + */ + public Builder setBatch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + batch_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the batch for the operation.
+     * 
+ * + * string batch = 1; + * + * @return This builder for chaining. + */ + public Builder clearBatch() { + + batch_ = getDefaultInstance().getBatch(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the batch for the operation.
+     * 
+ * + * string batch = 1; + * + * @param value The bytes for batch to set. + * @return This builder for chaining. + */ + public Builder setBatchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + batch_ = value; + onChanged(); + return this; + } + + private java.lang.Object batchUuid_ = ""; + /** + * + * + *
+     * Batch UUID for the operation.
+     * 
+ * + * string batch_uuid = 2; + * + * @return The batchUuid. + */ + public java.lang.String getBatchUuid() { + java.lang.Object ref = batchUuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Batch UUID for the operation.
+     * 
+ * + * string batch_uuid = 2; + * + * @return The bytes for batchUuid. + */ + public com.google.protobuf.ByteString getBatchUuidBytes() { + java.lang.Object ref = batchUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Batch UUID for the operation.
+     * 
+ * + * string batch_uuid = 2; + * + * @param value The batchUuid to set. + * @return This builder for chaining. + */ + public Builder setBatchUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + batchUuid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Batch UUID for the operation.
+     * 
+ * + * string batch_uuid = 2; + * + * @return This builder for chaining. + */ + public Builder clearBatchUuid() { + + batchUuid_ = getDefaultInstance().getBatchUuid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Batch UUID for the operation.
+     * 
+ * + * string batch_uuid = 2; + * + * @param value The bytes for batchUuid to set. + * @return This builder for chaining. + */ + public Builder setBatchUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + batchUuid_ = 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 time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * The time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @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 time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + 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 time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + 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 time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The time when the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + 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_; + } + + private com.google.protobuf.Timestamp doneTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + doneTimeBuilder_; + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return Whether the doneTime field is set. + */ + public boolean hasDoneTime() { + return doneTimeBuilder_ != null || doneTime_ != null; + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return The doneTime. + */ + public com.google.protobuf.Timestamp getDoneTime() { + if (doneTimeBuilder_ == null) { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } else { + return doneTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public Builder setDoneTime(com.google.protobuf.Timestamp value) { + if (doneTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + doneTime_ = value; + onChanged(); + } else { + doneTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (doneTimeBuilder_ == null) { + doneTime_ = builderForValue.build(); + onChanged(); + } else { + doneTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { + if (doneTimeBuilder_ == null) { + if (doneTime_ != null) { + doneTime_ = + com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); + } else { + doneTime_ = value; + } + onChanged(); + } else { + doneTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public Builder clearDoneTime() { + if (doneTimeBuilder_ == null) { + doneTime_ = null; + onChanged(); + } else { + doneTime_ = null; + doneTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getDoneTimeBuilder() { + + onChanged(); + return getDoneTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { + if (doneTimeBuilder_ != null) { + return doneTimeBuilder_.getMessageOrBuilder(); + } else { + return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; + } + } + /** + * + * + *
+     * The time when the operation finished.
+     * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDoneTimeFieldBuilder() { + if (doneTimeBuilder_ == null) { + doneTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDoneTime(), getParentForChildren(), isClean()); + doneTime_ = null; + } + return doneTimeBuilder_; + } + + private int operationType_ = 0; + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @param value The enum numeric value on the wire for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeValue(int value) { + + operationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The operationType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType + getOperationType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( + operationType_); + return result == null + ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType( + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Short description of the operation.
+     * 
+ * + * string description = 7; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Short description of the operation.
+     * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Short description of the operation.
+     * 
+ * + * string description = 7; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Short description of the operation.
+     * 
+ * + * string description = 7; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Short description of the operation.
+     * 
+ * + * string description = 7; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + 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(); + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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(); + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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; + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + @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; + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + 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(); + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + 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; + } + /** + * + * + *
+     * Labels associated with the operation.
+     * 
+ * + * map<string, string> labels = 8; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.LazyStringList warnings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList getWarningsList() { + return warnings_.getUnmodifiableView(); + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings(java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + onChanged(); + return this; + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Warnings encountered during operation execution.
+     * 
+ * + * repeated string warnings = 9; + * + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + 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.dataproc.v1.BatchOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BatchOperationMetadata) + private static final com.google.cloud.dataproc.v1.BatchOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BatchOperationMetadata(); + } + + public static com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchOperationMetadata(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.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java new file mode 100644 index 00000000..f9f3a377 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java @@ -0,0 +1,302 @@ +/* + * 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/dataproc/v1/operations.proto + +package com.google.cloud.dataproc.v1; + +public interface BatchOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BatchOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the batch for the operation.
+   * 
+ * + * string batch = 1; + * + * @return The batch. + */ + java.lang.String getBatch(); + /** + * + * + *
+   * Name of the batch for the operation.
+   * 
+ * + * string batch = 1; + * + * @return The bytes for batch. + */ + com.google.protobuf.ByteString getBatchBytes(); + + /** + * + * + *
+   * Batch UUID for the operation.
+   * 
+ * + * string batch_uuid = 2; + * + * @return The batchUuid. + */ + java.lang.String getBatchUuid(); + /** + * + * + *
+   * Batch UUID for the operation.
+   * 
+ * + * string batch_uuid = 2; + * + * @return The bytes for batchUuid. + */ + com.google.protobuf.ByteString getBatchUuidBytes(); + + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return Whether the doneTime field is set. + */ + boolean hasDoneTime(); + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + * + * @return The doneTime. + */ + com.google.protobuf.Timestamp getDoneTime(); + /** + * + * + *
+   * The time when the operation finished.
+   * 
+ * + * .google.protobuf.Timestamp done_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder(); + + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The enum numeric value on the wire for operationType. + */ + int getOperationTypeValue(); + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; + * + * + * @return The operationType. + */ + com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType(); + + /** + * + * + *
+   * Short description of the operation.
+   * 
+ * + * string description = 7; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Short description of the operation.
+   * 
+ * + * string description = 7; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + int getLabelsCount(); + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Labels associated with the operation.
+   * 
+ * + * map<string, string> labels = 8; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @return A list containing the warnings. + */ + java.util.List getWarningsList(); + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @return The count of warnings. + */ + int getWarningsCount(); + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + java.lang.String getWarnings(int index); + /** + * + * + *
+   * Warnings encountered during operation execution.
+   * 
+ * + * repeated string warnings = 9; + * + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + com.google.protobuf.ByteString getWarningsBytes(int index); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java index af5f45b3..01e1ca2d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java @@ -290,13 +290,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); @@ -308,13 +308,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 63da7b8b..31aaaaa5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java @@ -23,7 +23,7 @@ * *
  * Describes the identifying information, config, and status of
- * a cluster of Compute Engine instances.
+ * a Dataproc cluster
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.Cluster} @@ -754,10 +754,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } if (config_ != null) { @@ -766,7 +766,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (status_ != null) { output.writeMessage(4, getStatus()); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterUuid_); } for (int i = 0; i < statusHistory_.size(); i++) { @@ -786,10 +786,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (config_ != null) { @@ -798,7 +798,7 @@ public int getSerializedSize() { if (status_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatus()); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterUuid_); } for (int i = 0; i < statusHistory_.size(); i++) { @@ -990,7 +990,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Describes the identifying information, config, and status of
-   * a cluster of Compute Engine instances.
+   * a Dataproc cluster
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.Cluster} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 88051058..3a1a0f35 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -343,10 +343,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -376,10 +376,10 @@ public java.lang.String getConfigBucket() { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** *
* * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -413,9 +413,11 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -446,9 +448,11 @@ public java.lang.String getTempBucket() { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** *
* * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -532,7 +536,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -550,7 +554,7 @@ public boolean hasMasterConfig() { * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -570,7 +574,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -589,7 +593,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -607,7 +611,7 @@ public boolean hasWorkerConfig() { * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -627,7 +631,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -646,7 +650,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -664,7 +668,7 @@ public boolean hasSecondaryWorkerConfig() { * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -684,7 +688,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -703,7 +707,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * @@ -720,7 +724,7 @@ public boolean hasSoftwareConfig() { * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * @@ -739,7 +743,7 @@ public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * @@ -1292,10 +1296,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getConfigBucketBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); } - if (!getTempBucketBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); } if (gceClusterConfig_ != null) { @@ -1346,10 +1350,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getConfigBucketBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configBucket_); } - if (!getTempBucketBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); } if (gceClusterConfig_ != null) { @@ -2019,10 +2023,10 @@ public Builder mergeFrom( * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2051,10 +2055,10 @@ public java.lang.String getConfigBucket() { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2083,10 +2087,10 @@ public com.google.protobuf.ByteString getConfigBucketBytes() { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2114,10 +2118,10 @@ public Builder setConfigBucket(java.lang.String value) { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2141,10 +2145,10 @@ public Builder clearConfigBucket() { * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2176,9 +2180,11 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2208,9 +2214,11 @@ public java.lang.String getTempBucket() { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2240,9 +2248,11 @@ public com.google.protobuf.ByteString getTempBucketBytes() { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2271,9 +2281,11 @@ public Builder setTempBucket(java.lang.String value) { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2298,9 +2310,11 @@ public Builder clearTempBucket() { * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2543,7 +2557,7 @@ public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfi * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2560,7 +2574,7 @@ public boolean hasMasterConfig() { * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2583,7 +2597,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2608,7 +2622,7 @@ public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2631,7 +2645,7 @@ public Builder setMasterConfig( * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2660,7 +2674,7 @@ public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2683,7 +2697,7 @@ public Builder clearMasterConfig() { * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2700,7 +2714,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigB * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2721,7 +2735,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * *
      * Optional. The Compute Engine config settings for
-     * the master instance in a cluster.
+     * the cluster's master instance.
      * 
* * @@ -2756,7 +2770,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfig * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2773,7 +2787,7 @@ public boolean hasWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2796,7 +2810,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2821,7 +2835,7 @@ public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2844,7 +2858,7 @@ public Builder setWorkerConfig( * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2873,7 +2887,7 @@ public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfi * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2896,7 +2910,7 @@ public Builder clearWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2913,7 +2927,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigB * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2934,7 +2948,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * *
      * Optional. The Compute Engine config settings for
-     * worker instances in a cluster.
+     * the cluster's worker instances.
      * 
* * @@ -2969,7 +2983,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfig * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -2986,7 +3000,7 @@ public boolean hasSecondaryWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3009,7 +3023,7 @@ public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3035,7 +3049,7 @@ public Builder setSecondaryWorkerConfig( * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3058,7 +3072,7 @@ public Builder setSecondaryWorkerConfig( * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3088,7 +3102,7 @@ public Builder mergeSecondaryWorkerConfig( * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3111,7 +3125,7 @@ public Builder clearSecondaryWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3129,7 +3143,7 @@ public Builder clearSecondaryWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3151,7 +3165,7 @@ public Builder clearSecondaryWorkerConfig() { * *
      * Optional. The Compute Engine config settings for
-     * additional worker instances in a cluster.
+     * a cluster's secondary worker instances
      * 
* * @@ -3185,7 +3199,7 @@ public Builder clearSecondaryWorkerConfig() { * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3201,7 +3215,7 @@ public boolean hasSoftwareConfig() { * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3223,7 +3237,7 @@ public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3247,7 +3261,7 @@ public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig val * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3269,7 +3283,7 @@ public Builder setSoftwareConfig( * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3297,7 +3311,7 @@ public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig v * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3319,7 +3333,7 @@ public Builder clearSoftwareConfig() { * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3335,7 +3349,7 @@ public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuil * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * @@ -3355,7 +3369,7 @@ public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrB * * *
-     * Optional. The config settings for software inside the cluster.
+     * Optional. The config settings for cluster software.
      * 
* * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 0c6667e5..9a4a0c35 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -34,10 +34,10 @@ public interface ClusterConfigOrBuilder * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -56,10 +56,10 @@ public interface ClusterConfigOrBuilder * ASIA, or EU) for your cluster's staging bucket according to the * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket (see - * [Dataproc staging - * bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -80,9 +80,11 @@ public interface ClusterConfigOrBuilder * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -102,9 +104,11 @@ public interface ClusterConfigOrBuilder * Compute Engine zone where your cluster is deployed, and then create * and manage this project-level, per-location bucket. The default bucket has * a TTL of 90 days, but you can use any TTL (or none) if you specify a - * bucket. - * **This field requires a Cloud Storage bucket name, not a URI to a Cloud - * Storage bucket.** + * bucket (see + * [Dataproc staging and temp + * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + * a Cloud Storage bucket.** * * * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -162,7 +166,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -177,7 +181,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -192,7 +196,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * the master instance in a cluster.
+   * the cluster's master instance.
    * 
* * @@ -206,7 +210,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -221,7 +225,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -236,7 +240,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * worker instances in a cluster.
+   * the cluster's worker instances.
    * 
* * @@ -250,7 +254,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -265,7 +269,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -280,7 +284,7 @@ public interface ClusterConfigOrBuilder * *
    * Optional. The Compute Engine config settings for
-   * additional worker instances in a cluster.
+   * a cluster's secondary worker instances
    * 
* * @@ -293,7 +297,7 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * @@ -307,7 +311,7 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * @@ -321,7 +325,7 @@ public interface ClusterConfigOrBuilder * * *
-   * Optional. The config settings for software inside the cluster.
+   * Optional. The config settings for cluster software.
    * 
* * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java index cda13552..1fd830b1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java @@ -254,10 +254,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOperationIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (done_ != false) { @@ -272,10 +272,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOperationIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (done_ != false) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java index a8812698..4058f305 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java @@ -716,10 +716,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clusterUuid_); } if (status_ != null) { @@ -728,10 +728,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < statusHistory_.size(); i++) { output.writeMessage(10, statusHistory_.get(i)); } - if (!getOperationTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, operationType_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -748,10 +748,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clusterUuid_); } if (status_ != null) { @@ -760,10 +760,10 @@ public int getSerializedSize() { for (int i = 0; i < statusHistory_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, statusHistory_.get(i)); } - if (!getOperationTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, operationType_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java index befce0c5..51a4ad97 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java @@ -534,10 +534,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } - if (!getInnerStateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, innerState_); } - if (!getDetailsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); } if (stateStartTime_ != null) { @@ -555,10 +555,10 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!getInnerStateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, innerState_); } - if (!getDetailsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); } if (stateStartTime_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java index 827e43c1..5b8cd799 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java @@ -318,7 +318,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -332,7 +332,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index a32f4d58..19087502 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java @@ -192,6 +192,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 3; */ ERROR(3), + /** + * + * + *
+     * The cluster has encountered an error while being updated. Jobs can
+     * be submitted to the cluster, but the cluster cannot be updated.
+     * 
+ * + * ERROR_DUE_TO_UPDATE = 9; + */ + ERROR_DUE_TO_UPDATE(9), /** * * @@ -285,6 +296,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 3; */ public static final int ERROR_VALUE = 3; + /** + * + * + *
+     * The cluster has encountered an error while being updated. Jobs can
+     * be submitted to the cluster, but the cluster cannot be updated.
+     * 
+ * + * ERROR_DUE_TO_UPDATE = 9; + */ + public static final int ERROR_DUE_TO_UPDATE_VALUE = 9; /** * * @@ -368,6 +390,8 @@ public static State forNumber(int value) { return RUNNING; case 3: return ERROR; + case 9: + return ERROR_DUE_TO_UPDATE; case 4: return DELETING; case 5: @@ -809,7 +833,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { output.writeEnum(1, state_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_); } if (stateStartTime_ != null) { @@ -830,7 +854,7 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!getDetailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); } if (stateStartTime_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index db02a2ca..0d051f8e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -79,6 +79,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -261,7 +265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021" + "AutoscalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340" + "A\001\"4\n\020EncryptionConfig\022 \n\023gce_pd_kms_key" - + "_name\030\001 \001(\tB\003\340A\001\"\272\006\n\020GceClusterConfig\022\025\n" + + "_name\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n" + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(" + "\tB\003\340A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020i" + "nternal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ip" @@ -277,199 +281,207 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\0132+.google.cloud.dataproc.v1.NodeGroup" + "AffinityB\003\340A\001\022W\n\030shielded_instance_confi" + "g\030\016 \001(\01320.google.cloud.dataproc.v1.Shiel" - + "dedInstanceConfigB\003\340A\001\032/\n\rMetadataEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001\n\027Priv" - + "ateIpv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOG" - + "LE_ACCESS_UNSPECIFIED\020\000\022\033\n\027INHERIT_FROM_" - + "SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDIRECTIO" - + "NAL\020\003\"0\n\021NodeGroupAffinity\022\033\n\016node_group" - + "_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedInstanceConfi" - + "g\022\037\n\022enable_secure_boot\030\001 \001(\010B\003\340A\001\022\030\n\013en" - + "able_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enable_integrity" - + "_monitoring\030\003 \001(\010B\003\340A\001\"\315\004\n\023InstanceGroup" - + "Config\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016in" - + "stance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001" - + "(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>" - + "\n\013disk_config\030\005 \001(\0132$.google.cloud.datap" - + "roc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemptible" - + "\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<.go" - + "ogle.cloud.dataproc.v1.InstanceGroupConf" - + "ig.PreemptibilityB\003\340A\001\022O\n\024managed_group_" - + "config\030\007 \001(\0132,.google.cloud.dataproc.v1." - + "ManagedGroupConfigB\003\340A\003\022F\n\014accelerators\030" - + "\010 \003(\0132+.google.cloud.dataproc.v1.Acceler" - + "atorConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t \001(" - + "\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIBILI" - + "TY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n" - + "\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026" - + "instance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033ins" - + "tance_group_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021A" - + "cceleratorConfig\022\034\n\024accelerator_type_uri" - + "\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"f\n\nDis" - + "kConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021" - + "boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_loca" - + "l_ssds\030\002 \001(\005B\003\340A\001\"s\n\030NodeInitializationA" - + "ction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021e" - + "xecution_timeout\030\002 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\001\"\255\003\n\rClusterStatus\022A\n\005stat" - + "e\030\001 \001(\0162-.google.cloud.dataproc.v1.Clust" - + "erStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003" - + "\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\016" - + "20.google.cloud.dataproc.v1.ClusterStatu" - + "s.SubstateB\003\340A\003\"\177\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n" - + "\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010D" - + "ELETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n" - + "\007STOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013" - + "UNSPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_ST" - + "ATUS\020\002\"\240\001\n\016SecurityConfig\022F\n\017kerberos_co" - + "nfig\030\001 \001(\0132(.google.cloud.dataproc.v1.Ke" - + "rberosConfigB\003\340A\001\022F\n\017identity_config\030\002 \001" - + "(\0132(.google.cloud.dataproc.v1.IdentityCo" - + "nfigB\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017enable_k" - + "erberos\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_pas" - + "sword_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(" - + "\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016tru" - + "ststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_passw" - + "ord_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007" - + " \001(\tB\003\340A\001\022$\n\027truststore_password_uri\030\010 \001" - + "(\tB\003\340A\001\022$\n\027cross_realm_trust_realm\030\t \001(\t" - + "B\003\340A\001\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003\340A" - + "\001\022+\n\036cross_realm_trust_admin_server\030\013 \001(" - + "\tB\003\340A\001\0222\n%cross_realm_trust_shared_passw" - + "ord_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001" - + "(\tB\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001" - + "\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022" - + "r\n\034user_service_account_mapping\030\001 \003(\0132G." - + "google.cloud.dataproc.v1.IdentityConfig." - + "UserServiceAccountMappingEntryB\003\340A\002\032@\n\036U" - + "serServiceAccountMappingEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig" - + "\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022Q\n\nproperti" - + "es\030\002 \003(\01328.google.cloud.dataproc.v1.Soft" - + "wareConfig.PropertiesEntryB\003\340A\001\022E\n\023optio" - + "nal_components\030\003 \003(\0162#.google.cloud.data" - + "proc.v1.ComponentB\003\340A\001\0321\n\017PropertiesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017Li" - + "fecycleConfig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031" - + ".google.protobuf.DurationB\003\340A\001\022;\n\020auto_d" - + "elete_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001H\000\0228\n\017idle_s" - + "tart_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022L\n\032da" - + "taproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n " - + "metastore.googleapis.com/Service\"\232\002\n\016Clu" - + "sterMetrics\022O\n\014hdfs_metrics\030\001 \003(\01329.goog" - + "le.cloud.dataproc.v1.ClusterMetrics.Hdfs" - + "MetricsEntry\022O\n\014yarn_metrics\030\002 \003(\01329.goo" - + "gle.cloud.dataproc.v1.ClusterMetrics.Yar" - + "nMetricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetrics" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\226\001" - + "\n\024CreateClusterRequest\022\027\n\nproject_id\030\001 \001" - + "(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030" - + "\002 \001(\0132!.google.cloud.dataproc.v1.Cluster" - + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\256\002\n\024Updat" - + "eClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" - + "\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 " - + "\001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cloud" - + ".dataproc.v1.ClusterB\003\340A\002\022E\n\035graceful_de" - + "commission_timeout\030\006 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\022\027\n\nreques" - + "t_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterRequest\022\027" - + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB" - + "\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014clust" - + "er_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003" - + "\340A\001\"\222\001\n\023StartClusterRequest\022\027\n\nproject_i" - + "d\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clu" - + "ster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001" - + "(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024Del" - + "eteClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" - + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030" - + "\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n" - + "\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterRequ" - + "est\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003" - + " \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n" - + "\023ListClustersRequest\022\027\n\nproject_id\030\001 \001(\t" - + "B\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001" - + "(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersResponse" - + "\0228\n\010clusters\030\001 \003(\0132!.google.cloud.datapr" - + "oc.v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 " - + "\001(\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\npr" - + "oject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002" - + "\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseC" - + "lusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370" - + "\001\n\023ReservationAffinity\022Y\n\030consume_reserv" - + "ation_type\030\001 \001(\01622.google.cloud.dataproc" - + ".v1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003key" - + "\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type" - + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION" - + "\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESE" - + "RVATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rCrea" - + "teCluster\022..google.cloud.dataproc.v1.Cre" - + "ateClusterRequest\032\035.google.longrunning.O" - + "peration\"\237\001\202\323\344\223\002>\"3/v1/projects/{project" - + "_id}/regions/{region}/clusters:\007cluster\332" - + "A\031project_id,region,cluster\312A<\n\007Cluster\022" - + "1google.cloud.dataproc.v1.ClusterOperati" - + "onMetadata\022\250\002\n\rUpdateCluster\022..google.cl" - + "oud.dataproc.v1.UpdateClusterRequest\032\035.g" - + "oogle.longrunning.Operation\"\307\001\202\323\344\223\002M2B/v" - + "1/projects/{project_id}/regions/{region}" - + "/clusters/{cluster_name}:\007cluster\332A2proj" - + "ect_id,region,cluster_name,cluster,updat" - + "e_mask\312A<\n\007Cluster\0221google.cloud.datapro" - + "c.v1.ClusterOperationMetadata\022\356\001\n\013StopCl" - + "uster\022,.google.cloud.dataproc.v1.StopClu" - + "sterRequest\032\035.google.longrunning.Operati" - + "on\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id}/r" - + "egions/{region}/clusters/{cluster_name}:" - + "stop:\001*\312A<\n\007Cluster\0221google.cloud.datapr" - + "oc.v1.ClusterOperationMetadata\022\361\001\n\014Start" - + "Cluster\022-.google.cloud.dataproc.v1.Start" + + "dedInstanceConfigB\003\340A\001\022_\n\034confidential_i" + + "nstance_config\030\017 \001(\01324.google.cloud.data" + + "proc.v1.ConfidentialInstanceConfigB\003\340A\001\032" + + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&" + + "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000" + + "\022\033\n\027INHERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUN" + + "D\020\002\022\021\n\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffin" + + "ity\022\033\n\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026Shie" + + "ldedInstanceConfig\022\037\n\022enable_secure_boot" + + "\030\001 \001(\010B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n" + + "\033enable_integrity_monitoring\030\003 \001(\010B\003\340A\001\"" + + "F\n\032ConfidentialInstanceConfig\022(\n\033enable_" + + "confidential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023Inst" + + "anceGroupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003" + + "\340A\001\022\033\n\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timag" + + "e_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001" + + "(\tB\003\340A\001\022>\n\013disk_config\030\005 \001(\0132$.google.cl" + + "oud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_pr" + + "eemptible\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n" + + " \001(\0162<.google.cloud.dataproc.v1.Instance" + + "GroupConfig.PreemptibilityB\003\340A\001\022O\n\024manag" + + "ed_group_config\030\007 \001(\0132,.google.cloud.dat" + + "aproc.v1.ManagedGroupConfigB\003\340A\003\022F\n\014acce" + + "lerators\030\010 \003(\0132+.google.cloud.dataproc.v" + + "1.AcceleratorConfigB\003\340A\001\022\035\n\020min_cpu_plat" + + "form\030\t \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PRE" + + "EMPTIBILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPT" + + "IBLE\020\001\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupC" + + "onfig\022#\n\026instance_template_name\030\001 \001(\tB\003\340" + + "A\003\022(\n\033instance_group_manager_name\030\002 \001(\tB" + + "\003\340A\003\"L\n\021AcceleratorConfig\022\034\n\024accelerator" + + "_type_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001" + + "(\005\"f\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\t" + + "B\003\340A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n" + + "\016num_local_ssds\030\002 \001(\005B\003\340A\001\"s\n\030NodeInitia" + + "lizationAction\022\034\n\017executable_file\030\001 \001(\tB" + + "\003\340A\002\0229\n\021execution_timeout\030\002 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001\"\307\003\n\rClusterStatu" + + "s\022A\n\005state\030\001 \001(\0162-.google.cloud.dataproc" + + ".v1.ClusterStatus.StateB\003\340A\003\022\026\n\006detail\030\002" + + " \001(\tB\006\340A\003\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022G\n\010subst" + + "ate\030\004 \001(\01620.google.cloud.dataproc.v1.Clu" + + "sterStatus.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UN" + + "KNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ER" + + "ROR\020\003\022\027\n\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETI" + + "NG\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOP" + + "PED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPE" + + "CIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020" + + "\002\"\240\001\n\016SecurityConfig\022F\n\017kerberos_config\030" + + "\001 \001(\0132(.google.cloud.dataproc.v1.Kerbero" + + "sConfigB\003\340A\001\022F\n\017identity_config\030\002 \001(\0132(." + + "google.cloud.dataproc.v1.IdentityConfigB" + + "\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017enable_kerber" + + "os\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_password" + + "_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A" + + "\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststo" + + "re_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_u" + + "ri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB" + + "\003\340A\001\022$\n\027truststore_password_uri\030\010 \001(\tB\003\340" + + "A\001\022$\n\027cross_realm_trust_realm\030\t \001(\tB\003\340A\001" + + "\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036" + + "cross_realm_trust_admin_server\030\013 \001(\tB\003\340A" + + "\001\0222\n%cross_realm_trust_shared_password_u" + + "ri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340" + + "A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005r" + + "ealm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034us" + + "er_service_account_mapping\030\001 \003(\0132G.googl" + + "e.cloud.dataproc.v1.IdentityConfig.UserS" + + "erviceAccountMappingEntryB\003\340A\002\032@\n\036UserSe" + + "rviceAccountMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\ri" + + "mage_version\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 " + + "\003(\01328.google.cloud.dataproc.v1.SoftwareC" + + "onfig.PropertiesEntryB\003\340A\001\022E\n\023optional_c" + + "omponents\030\003 \003(\0162#.google.cloud.dataproc." + + "v1.ComponentB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017Lifecyc" + + "leConfig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\022;\n\020auto_delete" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001H\000\0228\n\017idle_start_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022L\n\032datapro" + + "c_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n metas" + + "tore.googleapis.com/Service\"\232\002\n\016ClusterM" + + "etrics\022O\n\014hdfs_metrics\030\001 \003(\01329.google.cl" + + "oud.dataproc.v1.ClusterMetrics.HdfsMetri" + + "csEntry\022O\n\014yarn_metrics\030\002 \003(\01329.google.c" + + "loud.dataproc.v1.ClusterMetrics.YarnMetr" + + "icsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\356\001\n\024Cre" + + "ateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" + + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\013" + + "2!.google.cloud.dataproc.v1.ClusterB\003\340A\002" + + "\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022V\n action_on_f" + + "ailed_primary_workers\030\005 \001(\0162\'.google.clo" + + "ud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n\024Up" + + "dateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name" + + "\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cl" + + "oud.dataproc.v1.ClusterB\003\340A\002\022E\n\035graceful" + + "_decommission_timeout\030\006 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\nreq" + + "uest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterReques" + + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001" + + "(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cl" + + "uster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(" + + "\tB\003\340A\001\"\222\001\n\023StartClusterRequest\022\027\n\nprojec" + + "t_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014" + + "cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030" + + "\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024" + + "DeleteClusterRequest\022\027\n\nproject_id\030\001 \001(\t" + + "B\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_na" + + "me\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001" + + "\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterR" + + "equest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regio" + + "n\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"" + + "\211\001\n\023ListClustersRequest\022\027\n\nproject_id\030\001 " + + "\001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030" + + "\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" + + "ge_token\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersRespo" + + "nse\0228\n\010clusters\030\001 \003(\0132!.google.cloud.dat" + + "aproc.v1.ClusterB\003\340A\003\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n" + + "\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003" + + "\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026Diagno" + + "seClusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A" + + "\003\"\370\001\n\023ReservationAffinity\022Y\n\030consume_res" + + "ervation_type\030\001 \001(\01622.google.cloud.datap" + + "roc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003" + + "key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004T" + + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVAT" + + "ION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_R" + + "ESERVATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rC" + + "reateCluster\022..google.cloud.dataproc.v1." + + "CreateClusterRequest\032\035.google.longrunnin" + + "g.Operation\"\237\001\202\323\344\223\002>\"3/v1/projects/{proj" + + "ect_id}/regions/{region}/clusters:\007clust" + + "er\332A\031project_id,region,cluster\312A<\n\007Clust" + + "er\0221google.cloud.dataproc.v1.ClusterOper" + + "ationMetadata\022\250\002\n\rUpdateCluster\022..google" + + ".cloud.dataproc.v1.UpdateClusterRequest\032" + + "\035.google.longrunning.Operation\"\307\001\202\323\344\223\002M2" + + "B/v1/projects/{project_id}/regions/{regi" + + "on}/clusters/{cluster_name}:\007cluster\332A2p" + + "roject_id,region,cluster_name,cluster,up" + + "date_mask\312A<\n\007Cluster\0221google.cloud.data" + + "proc.v1.ClusterOperationMetadata\022\356\001\n\013Sto" + + "pCluster\022,.google.cloud.dataproc.v1.Stop" + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\222\001\202\323\344\223\002M\"H/v1/projects/{project_id" + + "ation\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id" + "}/regions/{region}/clusters/{cluster_nam" - + "e}:start:\001*\312A<\n\007Cluster\0221google.cloud.da" - + "taproc.v1.ClusterOperationMetadata\022\231\002\n\rD" - + "eleteCluster\022..google.cloud.dataproc.v1." - + "DeleteClusterRequest\032\035.google.longrunnin" - + "g.Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters/{clust" - + "er_name}\332A\036project_id,region,cluster_nam" - + "e\312AJ\n\025google.protobuf.Empty\0221google.clou" - + "d.dataproc.v1.ClusterOperationMetadata\022\311" - + "\001\n\nGetCluster\022+.google.cloud.dataproc.v1" - + ".GetClusterRequest\032!.google.cloud.datapr" - + "oc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{pro" - + "ject_id}/regions/{region}/clusters/{clus" - + "ter_name}\332A\036project_id,region,cluster_na" - + "me\022\331\001\n\014ListClusters\022-.google.cloud.datap" - + "roc.v1.ListClustersRequest\032..google.clou" - + "d.dataproc.v1.ListClustersResponse\"j\202\323\344\223" - + "\0025\0223/v1/projects/{project_id}/regions/{r" - + "egion}/clusters\332A\021project_id,region\332A\030pr" - + "oject_id,region,filter\022\252\002\n\017DiagnoseClust" - + "er\0220.google.cloud.dataproc.v1.DiagnoseCl" - + "usterRequest\032\035.google.longrunning.Operat" - + "ion\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_id}/" - + "regions/{region}/clusters/{cluster_name}" - + ":diagnose:\001*\332A\036project_id,region,cluster" - + "_name\312AK\n\026DiagnoseClusterResults\0221google" - + ".cloud.dataproc.v1.ClusterOperationMetad" - + "ata\032K\312A\027dataproc.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\263\002\n\034com.google.cloud.dataproc.v1B\rClust" - + "ersProtoP\001Z@google.golang.org/genproto/g" - + "oogleapis/cloud/dataproc/v1;dataproc\352A^\n" - + " container.googleapis.com/Cluster\022:proje" - + "cts/{project}/locations/{location}/clust" - + "ers/{cluster}\352A^\n metastore.googleapis.c" - + "om/Service\022:projects/{project}/locations" - + "/{location}/services/{service}b\006proto3" + + "e}:stop:\001*\312A<\n\007Cluster\0221google.cloud.dat" + + "aproc.v1.ClusterOperationMetadata\022\361\001\n\014St" + + "artCluster\022-.google.cloud.dataproc.v1.St" + + "artClusterRequest\032\035.google.longrunning.O" + + "peration\"\222\001\202\323\344\223\002M\"H/v1/projects/{project" + + "_id}/regions/{region}/clusters/{cluster_" + + "name}:start:\001*\312A<\n\007Cluster\0221google.cloud" + + ".dataproc.v1.ClusterOperationMetadata\022\231\002" + + "\n\rDeleteCluster\022..google.cloud.dataproc." + + "v1.DeleteClusterRequest\032\035.google.longrun" + + "ning.Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{p" + + "roject_id}/regions/{region}/clusters/{cl" + + "uster_name}\332A\036project_id,region,cluster_" + + "name\312AJ\n\025google.protobuf.Empty\0221google.c" + + "loud.dataproc.v1.ClusterOperationMetadat" + + "a\022\311\001\n\nGetCluster\022+.google.cloud.dataproc" + + ".v1.GetClusterRequest\032!.google.cloud.dat" + + "aproc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{" + + "project_id}/regions/{region}/clusters/{c" + + "luster_name}\332A\036project_id,region,cluster" + + "_name\022\331\001\n\014ListClusters\022-.google.cloud.da" + + "taproc.v1.ListClustersRequest\032..google.c" + + "loud.dataproc.v1.ListClustersResponse\"j\202" + + "\323\344\223\0025\0223/v1/projects/{project_id}/regions" + + "/{region}/clusters\332A\021project_id,region\332A" + + "\030project_id,region,filter\022\252\002\n\017DiagnoseCl" + + "uster\0220.google.cloud.dataproc.v1.Diagnos" + + "eClusterRequest\032\035.google.longrunning.Ope" + + "ration\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_i" + + "d}/regions/{region}/clusters/{cluster_na" + + "me}:diagnose:\001*\332A\036project_id,region,clus" + + "ter_name\312AK\n\026DiagnoseClusterResults\0221goo" + + "gle.cloud.dataproc.v1.ClusterOperationMe" + + "tadata\032K\312A\027dataproc.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\263\002\n\034com.google.cloud.dataproc.v1B\rCl" + + "ustersProtoP\001Z@google.golang.org/genprot" + + "o/googleapis/cloud/dataproc/v1;dataproc\352" + + "A^\n container.googleapis.com/Cluster\022:pr" + + "ojects/{project}/locations/{location}/cl" + + "usters/{cluster}\352A^\n metastore.googleapi" + + "s.com/Service\022:projects/{project}/locati" + + "ons/{location}/services/{service}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -598,6 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReservationAffinity", "NodeGroupAffinity", "ShieldedInstanceConfig", + "ConfidentialInstanceConfig", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor @@ -625,8 +638,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, + new java.lang.String[] { + "EnableConfidentialCompute", + }); + internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, @@ -643,7 +664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinCpuPlatform", }); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, @@ -651,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplateName", "InstanceGroupManagerName", }); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, @@ -659,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorTypeUri", "AcceleratorCount", }); internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, @@ -667,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -675,7 +696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -683,7 +704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, @@ -691,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -713,7 +734,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Realm", }); internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, @@ -729,7 +750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -745,7 +766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, @@ -753,7 +774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, @@ -761,7 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataprocMetastoreService", }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -785,15 +806,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, new java.lang.String[] { - "ProjectId", "Region", "Cluster", "RequestId", + "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -807,7 +828,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -815,7 +836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -823,7 +844,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -831,7 +852,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -839,7 +860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -847,7 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -855,7 +876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -863,7 +884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -871,7 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java index 1f8afa86..95757b56 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java @@ -23,7 +23,6 @@ * *
  * Cluster components that can be activated.
- * Next ID: 16.
  * 
* * Protobuf enum {@code google.cloud.dataproc.v1.Component} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java new file mode 100644 index 00000000..7b030cfe --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -0,0 +1,549 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Confidential Instance Config for clusters using [Confidential
+ * VMs](https://cloud.google.com/compute/confidential-vm/docs)
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} + */ +public final class ConfidentialInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + ConfidentialInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidentialInstanceConfig.newBuilder() to construct. + private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidentialInstanceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfidentialInstanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfidentialInstanceConfig( + 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 8: + { + enableConfidentialCompute_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); + } + + public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; + private boolean enableConfidentialCompute_; + /** + * + * + *
+   * Optional. Defines whether the instance should have confidential compute enabled.
+   * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableConfidentialCompute. + */ + @java.lang.Override + public boolean getEnableConfidentialCompute() { + return enableConfidentialCompute_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableConfidentialCompute_ != false) { + output.writeBool(1, enableConfidentialCompute_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableConfidentialCompute_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); + } + 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.dataproc.v1.ConfidentialInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = + (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; + + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) 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) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs)
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.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(); + enableConfidentialCompute_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig build() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = + new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this); + result.enableConfidentialCompute_ = enableConfidentialCompute_; + 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.dataproc.v1.ConfidentialInstanceConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other) { + if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance()) + return this; + if (other.getEnableConfidentialCompute() != false) { + setEnableConfidentialCompute(other.getEnableConfidentialCompute()); + } + 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.dataproc.v1.ConfidentialInstanceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableConfidentialCompute_; + /** + * + * + *
+     * Optional. Defines whether the instance should have confidential compute enabled.
+     * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableConfidentialCompute. + */ + @java.lang.Override + public boolean getEnableConfidentialCompute() { + return enableConfidentialCompute_; + } + /** + * + * + *
+     * Optional. Defines whether the instance should have confidential compute enabled.
+     * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableConfidentialCompute to set. + * @return This builder for chaining. + */ + public Builder setEnableConfidentialCompute(boolean value) { + + enableConfidentialCompute_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines whether the instance should have confidential compute enabled.
+     * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableConfidentialCompute() { + + enableConfidentialCompute_ = false; + 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.dataproc.v1.ConfidentialInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + private static final com.google.cloud.dataproc.v1.ConfidentialInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(); + } + + public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfidentialInstanceConfig(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.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java new file mode 100644 index 00000000..dcf27cf8 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface ConfidentialInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Defines whether the instance should have confidential compute enabled.
+   * 
+ * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableConfidentialCompute. + */ + boolean getEnableConfidentialCompute(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java index c42617af..77fc7589 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java @@ -263,7 +263,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 (policy_ != null) { @@ -278,7 +278,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 (policy_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java index dbb97c33..1297095d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java @@ -41,6 +41,7 @@ private CreateClusterRequest() { projectId_ = ""; region_ = ""; requestId_ = ""; + actionOnFailedPrimaryWorkers_ = 0; } @java.lang.Override @@ -109,6 +110,13 @@ private CreateClusterRequest( requestId_ = s; break; } + case 40: + { + int rawValue = input.readEnum(); + + actionOnFailedPrimaryWorkers_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -298,14 +306,14 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { * * *
-   * Optional. A unique id used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -329,14 +337,14 @@ public java.lang.String getRequestId() { * * *
-   * Optional. A unique id used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -357,6 +365,46 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER = 5; + private int actionOnFailedPrimaryWorkers_; + /** + * + * + *
+   * Optional. Failure action when primary worker creation fails.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. + */ + @java.lang.Override + public int getActionOnFailedPrimaryWorkersValue() { + return actionOnFailedPrimaryWorkers_; + } + /** + * + * + *
+   * Optional. Failure action when primary worker creation fails.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionOnFailedPrimaryWorkers. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.FailureAction result = + com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -371,18 +419,22 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } if (cluster_ != null) { output.writeMessage(2, getCluster()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } + if (actionOnFailedPrimaryWorkers_ + != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + output.writeEnum(5, actionOnFailedPrimaryWorkers_); + } unknownFields.writeTo(output); } @@ -392,18 +444,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } + if (actionOnFailedPrimaryWorkers_ + != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionOnFailedPrimaryWorkers_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -427,6 +484,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCluster().equals(other.getCluster())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; + if (actionOnFailedPrimaryWorkers_ != other.actionOnFailedPrimaryWorkers_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,6 +506,8 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER; + hash = (53 * hash) + actionOnFailedPrimaryWorkers_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -605,6 +665,8 @@ public Builder clear() { } requestId_ = ""; + actionOnFailedPrimaryWorkers_ = 0; + return this; } @@ -640,6 +702,7 @@ public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { result.cluster_ = clusterBuilder_.build(); } result.requestId_ = requestId_; + result.actionOnFailedPrimaryWorkers_ = actionOnFailedPrimaryWorkers_; onBuilt(); return result; } @@ -705,6 +768,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateClusterRequest other requestId_ = other.requestId_; onChanged(); } + if (other.actionOnFailedPrimaryWorkers_ != 0) { + setActionOnFailedPrimaryWorkersValue(other.getActionOnFailedPrimaryWorkersValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1160,14 +1226,14 @@ public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { * * *
-     * Optional. A unique id used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1190,14 +1256,14 @@ public java.lang.String getRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1220,14 +1286,14 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * Optional. A unique id used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1249,14 +1315,14 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * Optional. A unique id used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1274,14 +1340,14 @@ public Builder clearRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server receives two
+     * Optional. A unique ID used to identify the request. If the server receives two
      * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
      * with the same id, then the second request will be ignored and the
      * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
      * is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1301,6 +1367,108 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private int actionOnFailedPrimaryWorkers_ = 0; + /** + * + * + *
+     * Optional. Failure action when primary worker creation fails.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. + */ + @java.lang.Override + public int getActionOnFailedPrimaryWorkersValue() { + return actionOnFailedPrimaryWorkers_; + } + /** + * + * + *
+     * Optional. Failure action when primary worker creation fails.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for actionOnFailedPrimaryWorkers to set. + * @return This builder for chaining. + */ + public Builder setActionOnFailedPrimaryWorkersValue(int value) { + + actionOnFailedPrimaryWorkers_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Failure action when primary worker creation fails.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionOnFailedPrimaryWorkers. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.FailureAction result = + com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); + return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. Failure action when primary worker creation fails.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The actionOnFailedPrimaryWorkers to set. + * @return This builder for chaining. + */ + public Builder setActionOnFailedPrimaryWorkers( + com.google.cloud.dataproc.v1.FailureAction value) { + if (value == null) { + throw new NullPointerException(); + } + + actionOnFailedPrimaryWorkers_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Failure action when primary worker creation fails.
+     * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearActionOnFailedPrimaryWorkers() { + + actionOnFailedPrimaryWorkers_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java index 9e5a0bdd..0903a768 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java @@ -117,14 +117,14 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -137,14 +137,14 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server receives two
+   * Optional. A unique ID used to identify the request. If the server receives two
    * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
    * with the same id, then the second request will be ignored and the
    * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
    * is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -153,4 +153,33 @@ public interface CreateClusterRequestOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. Failure action when primary worker creation fails.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. + */ + int getActionOnFailedPrimaryWorkersValue(); + /** + * + * + *
+   * Optional. Failure action when primary worker creation fails.
+   * 
+ * + * + * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The actionOnFailedPrimaryWorkers. + */ + com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java index 4a20dcde..1b5e6d7f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java @@ -262,7 +262,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 (template_ != null) { @@ -277,7 +277,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 (template_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java index e361a7b8..080c604e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java @@ -194,7 +194,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); @@ -206,7 +206,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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java index 0ae15440..0069a512 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java @@ -349,7 +349,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -357,7 +357,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -381,7 +381,7 @@ public java.lang.String getRequestId() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -389,7 +389,7 @@ public java.lang.String getRequestId() {
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -424,19 +424,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } unknownFields.writeTo(output); @@ -448,19 +448,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } size += unknownFields.getSerializedSize(); @@ -1231,7 +1231,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1239,7 +1239,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1262,7 +1262,7 @@ public java.lang.String getRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1270,7 +1270,7 @@ public java.lang.String getRequestId() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1293,7 +1293,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1301,7 +1301,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1323,7 +1323,7 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1331,7 +1331,7 @@ public Builder setRequestId(java.lang.String value) {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1349,7 +1349,7 @@ public Builder clearRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1357,7 +1357,7 @@ public Builder clearRequestId() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java index 04b305eb..32f0dd6a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java @@ -131,7 +131,7 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -139,7 +139,7 @@ public interface DeleteClusterRequestOrBuilder
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -152,7 +152,7 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -160,7 +160,7 @@ public interface DeleteClusterRequestOrBuilder
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java index c8be7961..99c4e88a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java @@ -290,13 +290,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); @@ -308,13 +308,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java index b5af6240..5e2b10b7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java @@ -218,7 +218,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 (version_ != 0) { @@ -233,7 +233,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 (version_ != 0) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java index e9913d29..7ef1d4f7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java @@ -290,13 +290,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); @@ -308,13 +308,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java index d8a82026..ba86b5e5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.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 (!getOutputUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } unknownFields.writeTo(output); @@ -190,7 +190,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOutputUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index 4e39c6bc..e92cca17 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -239,7 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (numLocalSsds_ != 0) { output.writeInt32(2, numLocalSsds_); } - if (!getBootDiskTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bootDiskType_); } unknownFields.writeTo(output); @@ -257,7 +257,7 @@ public int getSerializedSize() { if (numLocalSsds_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numLocalSsds_); } - if (!getBootDiskTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java index 44e5b426..08ea3971 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.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 (!getGcePdKmsKeyNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getGcePdKmsKeyNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcePdKmsKeyName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java new file mode 100644 index 00000000..3c01d524 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java @@ -0,0 +1,1058 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Environment configuration for a workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} + */ +public final class EnvironmentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EnvironmentConfig) + EnvironmentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnvironmentConfig.newBuilder() to construct. + private EnvironmentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnvironmentConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnvironmentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EnvironmentConfig( + 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.dataproc.v1.ExecutionConfig.Builder subBuilder = null; + if (executionConfig_ != null) { + subBuilder = executionConfig_.toBuilder(); + } + executionConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.ExecutionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionConfig_); + executionConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder subBuilder = null; + if (peripheralsConfig_ != null) { + subBuilder = peripheralsConfig_.toBuilder(); + } + peripheralsConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.PeripheralsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(peripheralsConfig_); + peripheralsConfig_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.EnvironmentConfig.class, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + } + + public static final int EXECUTION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionConfig field is set. + */ + @java.lang.Override + public boolean hasExecutionConfig() { + return executionConfig_ != null; + } + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; + } + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { + return getExecutionConfig(); + } + + public static final int PERIPHERALS_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the peripheralsConfig field is set. + */ + @java.lang.Override + public boolean hasPeripheralsConfig() { + return peripheralsConfig_ != null; + } + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peripheralsConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; + } + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { + return getPeripheralsConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (executionConfig_ != null) { + output.writeMessage(1, getExecutionConfig()); + } + if (peripheralsConfig_ != null) { + output.writeMessage(2, getPeripheralsConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionConfig()); + } + if (peripheralsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeripheralsConfig()); + } + 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.dataproc.v1.EnvironmentConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.EnvironmentConfig other = + (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; + + if (hasExecutionConfig() != other.hasExecutionConfig()) return false; + if (hasExecutionConfig()) { + if (!getExecutionConfig().equals(other.getExecutionConfig())) return false; + } + if (hasPeripheralsConfig() != other.hasPeripheralsConfig()) return false; + if (hasPeripheralsConfig()) { + if (!getPeripheralsConfig().equals(other.getPeripheralsConfig())) 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 (hasExecutionConfig()) { + hash = (37 * hash) + EXECUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExecutionConfig().hashCode(); + } + if (hasPeripheralsConfig()) { + hash = (37 * hash) + PERIPHERALS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPeripheralsConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Environment configuration for a workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EnvironmentConfig) + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.EnvironmentConfig.class, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.EnvironmentConfig.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 (executionConfigBuilder_ == null) { + executionConfig_ = null; + } else { + executionConfig_ = null; + executionConfigBuilder_ = null; + } + if (peripheralsConfigBuilder_ == null) { + peripheralsConfig_ = null; + } else { + peripheralsConfig_ = null; + peripheralsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.EnvironmentConfig build() { + com.google.cloud.dataproc.v1.EnvironmentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { + com.google.cloud.dataproc.v1.EnvironmentConfig result = + new com.google.cloud.dataproc.v1.EnvironmentConfig(this); + if (executionConfigBuilder_ == null) { + result.executionConfig_ = executionConfig_; + } else { + result.executionConfig_ = executionConfigBuilder_.build(); + } + if (peripheralsConfigBuilder_ == null) { + result.peripheralsConfig_ = peripheralsConfig_; + } else { + result.peripheralsConfig_ = peripheralsConfigBuilder_.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.dataproc.v1.EnvironmentConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.EnvironmentConfig other) { + if (other == com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance()) return this; + if (other.hasExecutionConfig()) { + mergeExecutionConfig(other.getExecutionConfig()); + } + if (other.hasPeripheralsConfig()) { + mergePeripheralsConfig(other.getPeripheralsConfig()); + } + 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.dataproc.v1.EnvironmentConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.EnvironmentConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> + executionConfigBuilder_; + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionConfig field is set. + */ + public boolean hasExecutionConfig() { + return executionConfigBuilder_ != null || executionConfig_ != null; + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionConfig. + */ + public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { + if (executionConfigBuilder_ == null) { + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; + } else { + return executionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { + if (executionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionConfig_ = value; + onChanged(); + } else { + executionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionConfig( + com.google.cloud.dataproc.v1.ExecutionConfig.Builder builderForValue) { + if (executionConfigBuilder_ == null) { + executionConfig_ = builderForValue.build(); + onChanged(); + } else { + executionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { + if (executionConfigBuilder_ == null) { + if (executionConfig_ != null) { + executionConfig_ = + com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + executionConfig_ = value; + } + onChanged(); + } else { + executionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExecutionConfig() { + if (executionConfigBuilder_ == null) { + executionConfig_ = null; + onChanged(); + } else { + executionConfig_ = null; + executionConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ExecutionConfig.Builder getExecutionConfigBuilder() { + + onChanged(); + return getExecutionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { + if (executionConfigBuilder_ != null) { + return executionConfigBuilder_.getMessageOrBuilder(); + } else { + return executionConfig_ == null + ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() + : executionConfig_; + } + } + /** + * + * + *
+     * Optional. Execution configuration for a workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> + getExecutionConfigFieldBuilder() { + if (executionConfigBuilder_ == null) { + executionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ExecutionConfig, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder, + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( + getExecutionConfig(), getParentForChildren(), isClean()); + executionConfig_ = null; + } + return executionConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> + peripheralsConfigBuilder_; + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the peripheralsConfig field is set. + */ + public boolean hasPeripheralsConfig() { + return peripheralsConfigBuilder_ != null || peripheralsConfig_ != null; + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peripheralsConfig. + */ + public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { + if (peripheralsConfigBuilder_ == null) { + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; + } else { + return peripheralsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { + if (peripheralsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + peripheralsConfig_ = value; + onChanged(); + } else { + peripheralsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPeripheralsConfig( + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder builderForValue) { + if (peripheralsConfigBuilder_ == null) { + peripheralsConfig_ = builderForValue.build(); + onChanged(); + } else { + peripheralsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { + if (peripheralsConfigBuilder_ == null) { + if (peripheralsConfig_ != null) { + peripheralsConfig_ = + com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + peripheralsConfig_ = value; + } + onChanged(); + } else { + peripheralsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPeripheralsConfig() { + if (peripheralsConfigBuilder_ == null) { + peripheralsConfig_ = null; + onChanged(); + } else { + peripheralsConfig_ = null; + peripheralsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.PeripheralsConfig.Builder getPeripheralsConfigBuilder() { + + onChanged(); + return getPeripheralsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { + if (peripheralsConfigBuilder_ != null) { + return peripheralsConfigBuilder_.getMessageOrBuilder(); + } else { + return peripheralsConfig_ == null + ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() + : peripheralsConfig_; + } + } + /** + * + * + *
+     * Optional. Peripherals configuration that workload has access to.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> + getPeripheralsConfigFieldBuilder() { + if (peripheralsConfigBuilder_ == null) { + peripheralsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PeripheralsConfig, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( + getPeripheralsConfig(), getParentForChildren(), isClean()); + peripheralsConfig_ = null; + } + return peripheralsConfigBuilder_; + } + + @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.dataproc.v1.EnvironmentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EnvironmentConfig) + private static final com.google.cloud.dataproc.v1.EnvironmentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EnvironmentConfig(); + } + + public static com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvironmentConfig(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.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java new file mode 100644 index 00000000..3ffbd5d8 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface EnvironmentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionConfig field is set. + */ + boolean hasExecutionConfig(); + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionConfig. + */ + com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); + /** + * + * + *
+   * Optional. Execution configuration for a workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the peripheralsConfig field is set. + */ + boolean hasPeripheralsConfig(); + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The peripheralsConfig. + */ + com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); + /** + * + * + *
+   * Optional. Peripherals configuration that workload has access to.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java new file mode 100644 index 00000000..3e17a568 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java @@ -0,0 +1,1640 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Execution configuration for a workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} + */ +public final class ExecutionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ExecutionConfig) + ExecutionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionConfig.newBuilder() to construct. + private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecutionConfig() { + serviceAccount_ = ""; + networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + kmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecutionConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExecutionConfig( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 4; + network_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 5; + network_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + networkTags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + networkTags_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKey_ = 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)) { + networkTags_ = networkTags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ExecutionConfig.class, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + } + + private int networkCase_ = 0; + private java.lang.Object network_; + + public enum NetworkCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NETWORK_URI(4), + SUBNETWORK_URI(5), + NETWORK_NOT_SET(0); + private final int value; + + private NetworkCase(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 NetworkCase valueOf(int value) { + return forNumber(value); + } + + public static NetworkCase forNumber(int value) { + switch (value) { + case 4: + return NETWORK_URI; + case 5: + return SUBNETWORK_URI; + case 0: + return NETWORK_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public NetworkCase getNetworkCase() { + return NetworkCase.forNumber(networkCase_); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * Optional. Service account that used to execute workload.
+   * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Service account that used to execute workload.
+   * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the networkUri field is set. + */ + public boolean hasNetworkUri() { + return networkCase_ == 4; + } + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = ""; + if (networkCase_ == 4) { + ref = network_; + } + if (ref instanceof java.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 (networkCase_ == 4) { + network_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = ""; + if (networkCase_ == 4) { + ref = network_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (networkCase_ == 4) { + network_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_URI_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the subnetworkUri field is set. + */ + public boolean hasSubnetworkUri() { + return networkCase_ == 5; + } + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetworkUri. + */ + public java.lang.String getSubnetworkUri() { + java.lang.Object ref = ""; + if (networkCase_ == 5) { + ref = network_; + } + if (ref instanceof java.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 (networkCase_ == 5) { + network_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetworkUri. + */ + public com.google.protobuf.ByteString getSubnetworkUriBytes() { + java.lang.Object ref = ""; + if (networkCase_ == 5) { + ref = network_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (networkCase_ == 5) { + network_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_TAGS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList networkTags_; + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + return networkTags_; + } + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + + public static final int KMS_KEY_FIELD_NUMBER = 7; + private volatile java.lang.Object kmsKey_; + /** + * + * + *
+   * Optional. The Cloud KMS key to use for encryption.
+   * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Cloud KMS key to use for encryption.
+   * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (networkCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_); + } + if (networkCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); + } + for (int i = 0; i < networkTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, networkTags_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kmsKey_); + } + 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(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + if (networkCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_); + } + if (networkCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); + } + { + int dataSize = 0; + for (int i = 0; i < networkTags_.size(); i++) { + dataSize += computeStringSizeNoTag(networkTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getNetworkTagsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKey_); + } + 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.dataproc.v1.ExecutionConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ExecutionConfig other = + (com.google.cloud.dataproc.v1.ExecutionConfig) obj; + + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getNetworkCase().equals(other.getNetworkCase())) return false; + switch (networkCase_) { + case 4: + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + break; + case 5: + if (!getSubnetworkUri().equals(other.getSubnetworkUri())) 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(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (getNetworkTagsCount() > 0) { + hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTagsList().hashCode(); + } + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + switch (networkCase_) { + case 4: + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + break; + case 5: + hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworkUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Execution configuration for a workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ExecutionConfig) + com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ExecutionConfig.class, + com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ExecutionConfig.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(); + serviceAccount_ = ""; + + networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + kmsKey_ = ""; + + networkCase_ = 0; + network_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ExecutionConfig build() { + com.google.cloud.dataproc.v1.ExecutionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { + com.google.cloud.dataproc.v1.ExecutionConfig result = + new com.google.cloud.dataproc.v1.ExecutionConfig(this); + int from_bitField0_ = bitField0_; + result.serviceAccount_ = serviceAccount_; + if (networkCase_ == 4) { + result.network_ = network_; + } + if (networkCase_ == 5) { + result.network_ = network_; + } + if (((bitField0_ & 0x00000001) != 0)) { + networkTags_ = networkTags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.networkTags_ = networkTags_; + result.kmsKey_ = kmsKey_; + result.networkCase_ = networkCase_; + 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.dataproc.v1.ExecutionConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ExecutionConfig other) { + if (other == com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance()) return this; + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (!other.networkTags_.isEmpty()) { + if (networkTags_.isEmpty()) { + networkTags_ = other.networkTags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNetworkTagsIsMutable(); + networkTags_.addAll(other.networkTags_); + } + onChanged(); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + onChanged(); + } + switch (other.getNetworkCase()) { + case NETWORK_URI: + { + networkCase_ = 4; + network_ = other.network_; + onChanged(); + break; + } + case SUBNETWORK_URI: + { + networkCase_ = 5; + network_ = other.network_; + onChanged(); + break; + } + case NETWORK_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.dataproc.v1.ExecutionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.ExecutionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int networkCase_ = 0; + private java.lang.Object network_; + + public NetworkCase getNetworkCase() { + return NetworkCase.forNumber(networkCase_); + } + + public Builder clearNetwork() { + networkCase_ = 0; + network_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * Optional. Service account that used to execute workload.
+     * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Service account that used to execute workload.
+     * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Service account that used to execute workload.
+     * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Service account that used to execute workload.
+     * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Service account that used to execute workload.
+     * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the networkUri field is set. + */ + @java.lang.Override + public boolean hasNetworkUri() { + return networkCase_ == 4; + } + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = ""; + if (networkCase_ == 4) { + ref = network_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (networkCase_ == 4) { + network_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = ""; + if (networkCase_ == 4) { + ref = network_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (networkCase_ == 4) { + network_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkCase_ = 4; + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + if (networkCase_ == 4) { + networkCase_ = 0; + network_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Network URI to connect workload to.
+     * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkCase_ = 4; + network_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the subnetworkUri field is set. + */ + @java.lang.Override + public boolean hasSubnetworkUri() { + return networkCase_ == 5; + } + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetworkUri. + */ + @java.lang.Override + public java.lang.String getSubnetworkUri() { + java.lang.Object ref = ""; + if (networkCase_ == 5) { + ref = network_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (networkCase_ == 5) { + network_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetworkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkUriBytes() { + java.lang.Object ref = ""; + if (networkCase_ == 5) { + ref = network_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (networkCase_ == 5) { + network_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subnetworkUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkCase_ = 5; + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubnetworkUri() { + if (networkCase_ == 5) { + networkCase_ = 0; + network_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Subnetwork URI to connect workload to.
+     * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subnetworkUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkCase_ = 5; + network_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList networkTags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureNetworkTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + return networkTags_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The networkTags to set. + * @return This builder for chaining. + */ + public Builder setNetworkTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The networkTags to add. + * @return This builder for chaining. + */ + public Builder addAllNetworkTags(java.lang.Iterable values) { + ensureNetworkTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkTags() { + networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tags used for network traffic control.
+     * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + /** + * + * + *
+     * Optional. The Cloud KMS key to use for encryption.
+     * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Cloud KMS key to use for encryption.
+     * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Cloud KMS key to use for encryption.
+     * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Cloud KMS key to use for encryption.
+     * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + + kmsKey_ = getDefaultInstance().getKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Cloud KMS key to use for encryption.
+     * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKey_ = value; + 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.dataproc.v1.ExecutionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ExecutionConfig) + private static final com.google.cloud.dataproc.v1.ExecutionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ExecutionConfig(); + } + + public static com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionConfig(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.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java new file mode 100644 index 00000000..51aab728 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java @@ -0,0 +1,202 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface ExecutionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ExecutionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Service account that used to execute workload.
+   * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * Optional. Service account that used to execute workload.
+   * 
+ * + * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the networkUri field is set. + */ + boolean hasNetworkUri(); + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
+   * Optional. Network URI to connect workload to.
+   * 
+ * + * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the subnetworkUri field is set. + */ + boolean hasSubnetworkUri(); + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subnetworkUri. + */ + java.lang.String getSubnetworkUri(); + /** + * + * + *
+   * Optional. Subnetwork URI to connect workload to.
+   * 
+ * + * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subnetworkUri. + */ + com.google.protobuf.ByteString getSubnetworkUriBytes(); + + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + java.util.List getNetworkTagsList(); + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + int getNetworkTagsCount(); + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + java.lang.String getNetworkTags(int index); + /** + * + * + *
+   * Optional. Tags used for network traffic control.
+   * 
+ * + * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + com.google.protobuf.ByteString getNetworkTagsBytes(int index); + + /** + * + * + *
+   * Optional. The Cloud KMS key to use for encryption.
+   * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + * + * + *
+   * Optional. The Cloud KMS key to use for encryption.
+   * 
+ * + * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + public com.google.cloud.dataproc.v1.ExecutionConfig.NetworkCase getNetworkCase(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java new file mode 100644 index 00000000..b6a86610 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java @@ -0,0 +1,178 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Actions in response to failure of a resource associated with a cluster.
+ * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.FailureAction} + */ +public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * When FailureAction is unspecified, failure action defaults to NO_ACTION.
+   * 
+ * + * FAILURE_ACTION_UNSPECIFIED = 0; + */ + FAILURE_ACTION_UNSPECIFIED(0), + /** + * + * + *
+   * Take no action on failure to create a cluster resource. NO_ACTION is the
+   * default.
+   * 
+ * + * NO_ACTION = 1; + */ + NO_ACTION(1), + /** + * + * + *
+   * Delete the failed cluster resource.
+   * 
+ * + * DELETE = 2; + */ + DELETE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * When FailureAction is unspecified, failure action defaults to NO_ACTION.
+   * 
+ * + * FAILURE_ACTION_UNSPECIFIED = 0; + */ + public static final int FAILURE_ACTION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Take no action on failure to create a cluster resource. NO_ACTION is the
+   * default.
+   * 
+ * + * NO_ACTION = 1; + */ + public static final int NO_ACTION_VALUE = 1; + /** + * + * + *
+   * Delete the failed cluster resource.
+   * 
+ * + * DELETE = 2; + */ + public static final int DELETE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureAction 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 FailureAction forNumber(int value) { + switch (value) { + case 0: + return FAILURE_ACTION_UNSPECIFIED; + case 1: + return NO_ACTION; + case 2: + return DELETE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureAction findValueByNumber(int number) { + return FailureAction.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.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(1); + } + + private static final FailureAction[] VALUES = values(); + + public static FailureAction 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 FailureAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FailureAction) +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 3a5f8034..fb7e418e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -200,6 +200,23 @@ private GceClusterConfig( shieldedInstanceConfig_ = subBuilder.buildPartial(); } + break; + } + case 122: + { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder subBuilder = null; + if (confidentialInstanceConfig_ != null) { + subBuilder = confidentialInstanceConfig_.toBuilder(); + } + confidentialInstanceConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confidentialInstanceConfig_); + confidentialInstanceConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -1218,6 +1235,64 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceCo return getShieldedInstanceConfig(); } + public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confidentialInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasConfidentialInstanceConfig() { + return confidentialInstanceConfig_ != null; + } + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; + } + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + return getConfidentialInstanceConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1232,10 +1307,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getZoneUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneUri_); } - if (!getNetworkUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkUri_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { @@ -1247,13 +1322,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); - if (!getSubnetworkUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetworkUri_); } if (internalIpOnly_ != false) { output.writeBool(7, internalIpOnly_); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_); } if (reservationAffinity_ != null) { @@ -1271,6 +1346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (shieldedInstanceConfig_ != null) { output.writeMessage(14, getShieldedInstanceConfig()); } + if (confidentialInstanceConfig_ != null) { + output.writeMessage(15, getConfidentialInstanceConfig()); + } unknownFields.writeTo(output); } @@ -1280,10 +1358,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getZoneUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zoneUri_); } - if (!getNetworkUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkUri_); } { @@ -1312,13 +1390,13 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); } - if (!getSubnetworkUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetworkUri_); } if (internalIpOnly_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); } if (reservationAffinity_ != null) { @@ -1338,6 +1416,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); } + if (confidentialInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getConfidentialInstanceConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1375,6 +1458,11 @@ public boolean equals(final java.lang.Object obj) { if (hasShieldedInstanceConfig()) { if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } + if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; + if (hasConfidentialInstanceConfig()) { + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1422,6 +1510,10 @@ public int hashCode() { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); } + if (hasConfidentialInstanceConfig()) { + hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1623,6 +1715,12 @@ public Builder clear() { shieldedInstanceConfig_ = null; shieldedInstanceConfigBuilder_ = null; } + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfig_ = null; + } else { + confidentialInstanceConfig_ = null; + confidentialInstanceConfigBuilder_ = null; + } return this; } @@ -1684,6 +1782,11 @@ public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() { } else { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); } + if (confidentialInstanceConfigBuilder_ == null) { + result.confidentialInstanceConfig_ = confidentialInstanceConfig_; + } else { + result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1785,6 +1888,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.hasShieldedInstanceConfig()) { mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); } + if (other.hasConfidentialInstanceConfig()) { + mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3813,6 +3919,224 @@ public Builder clearShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_; } + private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confidentialInstanceConfig field is set. + */ + public boolean hasConfidentialInstanceConfig() { + return confidentialInstanceConfigBuilder_ != null || confidentialInstanceConfig_ != null; + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceConfig. + */ + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { + if (confidentialInstanceConfigBuilder_ == null) { + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; + } else { + return confidentialInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfidentialInstanceConfig( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + if (confidentialInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialInstanceConfig_ = value; + onChanged(); + } else { + confidentialInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfidentialInstanceConfig( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder builderForValue) { + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + confidentialInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { + if (confidentialInstanceConfigBuilder_ == null) { + if (confidentialInstanceConfig_ != null) { + confidentialInstanceConfig_ = + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder( + confidentialInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialInstanceConfig_ = value; + } + onChanged(); + } else { + confidentialInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConfidentialInstanceConfig() { + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfig_ = null; + onChanged(); + } else { + confidentialInstanceConfig_ = null; + confidentialInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { + + onChanged(); + return getConfidentialInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + if (confidentialInstanceConfigBuilder_ != null) { + return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return confidentialInstanceConfig_ == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; + } + } + /** + * + * + *
+     * Optional. Confidential Instance Config for clusters using [Confidential
+     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> + getConfidentialInstanceConfigFieldBuilder() { + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); + confidentialInstanceConfig_ = null; + } + return confidentialInstanceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index 2ab99951..3b3b2fbd 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -572,4 +572,49 @@ public interface GceClusterConfigOrBuilder *
*/ com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confidentialInstanceConfig field is set. + */ + boolean hasConfidentialInstanceConfig(); + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceConfig. + */ + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig(); + /** + * + * + *
+   * Optional. Confidential Instance Config for clusters using [Confidential
+   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java index 35a0cb55..6da1a8f1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java @@ -192,7 +192,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); @@ -204,7 +204,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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java index b3625209..fa0ae6bb 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java @@ -290,13 +290,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); @@ -308,13 +308,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java index 8efd785b..37f0748a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java @@ -290,13 +290,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); @@ -308,13 +308,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java index 0286535b..fa305956 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java @@ -217,7 +217,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 (version_ != 0) { @@ -232,7 +232,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 (version_ != 0) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java index dba308fa..75a2abf6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java @@ -404,10 +404,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTargetGkeClusterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetGkeCluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGkeCluster_); } - if (!getClusterNamespaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterNamespace_); } unknownFields.writeTo(output); @@ -419,10 +419,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTargetGkeClusterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetGkeCluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGkeCluster_); } - if (!getClusterNamespaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterNamespace_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java index db0e129d..202f4c4e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java @@ -944,10 +944,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instanceNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceNames_.getRaw(i)); } - if (!getImageUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); } - if (!getMachineTypeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineTypeUri_); } if (diskConfig_ != null) { @@ -962,7 +962,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < accelerators_.size(); i++) { output.writeMessage(8, accelerators_.get(i)); } - if (!getMinCpuPlatformBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); } if (preemptibility_ @@ -991,10 +991,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getInstanceNamesList().size(); } - if (!getImageUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); } - if (!getMachineTypeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineTypeUri_); } if (diskConfig_ != null) { @@ -1009,7 +1009,7 @@ public int getSerializedSize() { for (int i = 0; i < accelerators_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, accelerators_.get(i)); } - if (!getMinCpuPlatformBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); } if (preemptibility_ diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java index 365620eb..8cf503ad 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java @@ -333,13 +333,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 (template_ != null) { output.writeMessage(2, getTemplate()); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); } unknownFields.writeTo(output); @@ -351,13 +351,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 (template_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java index edfd0940..10c1b251 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java @@ -423,13 +423,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 (version_ != 0) { output.writeInt32(2, version_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -443,13 +443,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 (version_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java index 3450f415..44b4de43 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java @@ -1582,8 +1582,8 @@ public com.google.protobuf.ByteString getJobUuidBytes() { * * *
-   * Output only. Indicates whether the job is completed. If the value is
-   * `false`, the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is `false`,
+   * the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
@@ -1644,10 +1644,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < statusHistory_.size(); i++) { output.writeMessage(13, statusHistory_.get(i)); } - if (!getDriverControlFilesUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, driverControlFilesUri_); } - if (!getDriverOutputResourceUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, driverOutputResourceUri_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -1658,7 +1658,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (typeJobCase_ == 21) { output.writeMessage(21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); } - if (!getJobUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, jobUuid_); } if (typeJobCase_ == 23) { @@ -1721,10 +1721,10 @@ public int getSerializedSize() { for (int i = 0; i < statusHistory_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, statusHistory_.get(i)); } - if (!getDriverControlFilesUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, driverControlFilesUri_); } - if (!getDriverOutputResourceUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); } @@ -1746,7 +1746,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); } - if (!getJobUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_); } if (typeJobCase_ == 23) { @@ -6513,8 +6513,8 @@ public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Indicates whether the job is completed. If the value is
-     * `false`, the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is `false`,
+     * the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
@@ -6531,8 +6531,8 @@ public boolean getDone() { * * *
-     * Output only. Indicates whether the job is completed. If the value is
-     * `false`, the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is `false`,
+     * the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
@@ -6552,8 +6552,8 @@ public Builder setDone(boolean value) { * * *
-     * Output only. Indicates whether the job is completed. If the value is
-     * `false`, the job is still in progress. If `true`, the job is completed, and
+     * Output only. Indicates whether the job is completed. If the value is `false`,
+     * the job is still in progress. If `true`, the job is completed, and
      * `status.state` field will indicate if it was successful, failed,
      * or cancelled.
      * 
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java index 6f10123a..2c6d86a9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java @@ -363,13 +363,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); } if (status_ != null) { output.writeMessage(2, getStatus()); } - if (!getOperationTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationType_); } if (startTime_ != null) { @@ -384,13 +384,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); } if (status_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } - if (!getOperationTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationType_); } if (startTime_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java index 0bc0e6ee..f70e389f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java @@ -836,8 +836,8 @@ public interface JobOrBuilder * * *
-   * Output only. Indicates whether the job is completed. If the value is
-   * `false`, the job is still in progress. If `true`, the job is completed, and
+   * Output only. Indicates whether the job is completed. If the value is `false`,
+   * the job is still in progress. If `true`, the job is completed, and
    * `status.state` field will indicate if it was successful, failed,
    * or cancelled.
    * 
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java index 97a86edf..70878de8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java @@ -279,8 +279,7 @@ public int getClusterLabelsCount() { * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -303,8 +302,7 @@ public java.util.Map getClusterLabels() { * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,8 +316,7 @@ public java.util.Map getClusterLabelsMap() { * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -338,8 +335,7 @@ public java.lang.String getClusterLabelsOrDefault( * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -371,10 +367,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -388,10 +384,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); } for (java.util.Map.Entry entry : @@ -982,8 +978,7 @@ public int getClusterLabelsCount() { * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1006,8 +1001,7 @@ public java.util.Map getClusterLabels() { * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1021,8 +1015,7 @@ public java.util.Map getClusterLabelsMap() { * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1041,8 +1034,7 @@ public java.lang.String getClusterLabelsOrDefault( * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1068,8 +1060,7 @@ public Builder clearClusterLabels() { * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1091,8 +1082,7 @@ public java.util.Map getMutableClusterLabels * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1112,8 +1102,7 @@ public Builder putClusterLabels(java.lang.String key, java.lang.String value) { * * *
-     * Optional. Cluster labels to identify a cluster where the job will be
-     * submitted.
+     * Optional. Cluster labels to identify a cluster where the job will be submitted.
      * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java index 696cdbe6..d6e90b3e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java @@ -79,8 +79,7 @@ public interface JobPlacementOrBuilder * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -91,8 +90,7 @@ public interface JobPlacementOrBuilder * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -106,8 +104,7 @@ public interface JobPlacementOrBuilder * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -118,8 +115,7 @@ public interface JobPlacementOrBuilder * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -130,8 +126,7 @@ public interface JobPlacementOrBuilder * * *
-   * Optional. Cluster labels to identify a cluster where the job will be
-   * submitted.
+   * Optional. Cluster labels to identify a cluster where the job will be submitted.
    * 
* * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java index 046ede89..315aa424 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java @@ -125,8 +125,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs
-   * to. If specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,8 +149,8 @@ public java.lang.String getProjectId() { * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs
-   * to. If specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -239,10 +239,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } unknownFields.writeTo(output); @@ -254,10 +254,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } size += unknownFields.getSerializedSize(); @@ -562,8 +562,8 @@ public Builder mergeFrom( * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs
-     * to. If specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -585,8 +585,8 @@ public java.lang.String getProjectId() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs
-     * to. If specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -608,8 +608,8 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs
-     * to. If specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -630,8 +630,8 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs
-     * to. If specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -648,8 +648,8 @@ public Builder clearProjectId() { * * *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs
-     * to. If specified, must match the request project ID.
+     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+     * specified, must match the request project ID.
      * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java index c22d0ffd..df102fa4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java @@ -27,8 +27,8 @@ public interface JobReferenceOrBuilder * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs
-   * to. If specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -40,8 +40,8 @@ public interface JobReferenceOrBuilder * * *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs
-   * to. If specified, must match the request project ID.
+   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
+   * specified, must match the request project ID.
    * 
* * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index 63b20c9a..df030492 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -141,8 +141,8 @@ public int getMaxFailuresPerHour() { * * *
-   * Optional. Maximum number of times in total a driver may be restarted as a
-   * result of driver exiting with non-zero code before job is reported failed.
+   * Optional. Maximum number of times in total a driver may be restarted as a result of
+   * driver exiting with non-zero code before job is reported failed.
    * Maximum value is 240.
    * 
* @@ -557,8 +557,8 @@ public Builder clearMaxFailuresPerHour() { * * *
-     * Optional. Maximum number of times in total a driver may be restarted as a
-     * result of driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum number of times in total a driver may be restarted as a result of
+     * driver exiting with non-zero code before job is reported failed.
      * Maximum value is 240.
      * 
* @@ -574,8 +574,8 @@ public int getMaxFailuresTotal() { * * *
-     * Optional. Maximum number of times in total a driver may be restarted as a
-     * result of driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum number of times in total a driver may be restarted as a result of
+     * driver exiting with non-zero code before job is reported failed.
      * Maximum value is 240.
      * 
* @@ -594,8 +594,8 @@ public Builder setMaxFailuresTotal(int value) { * * *
-     * Optional. Maximum number of times in total a driver may be restarted as a
-     * result of driver exiting with non-zero code before job is reported failed.
+     * Optional. Maximum number of times in total a driver may be restarted as a result of
+     * driver exiting with non-zero code before job is reported failed.
      * Maximum value is 240.
      * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java index 29b4b317..2b0d9860 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java @@ -45,8 +45,8 @@ public interface JobSchedulingOrBuilder * * *
-   * Optional. Maximum number of times in total a driver may be restarted as a
-   * result of driver exiting with non-zero code before job is reported failed.
+   * Optional. Maximum number of times in total a driver may be restarted as a result of
+   * driver exiting with non-zero code before job is reported failed.
    * Maximum value is 240.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java index b88f595a..63b2e415 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java @@ -862,7 +862,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } - if (!getDetailsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); } if (stateStartTime_ != null) { @@ -883,7 +883,7 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!getDetailsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } if (stateStartTime_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java index b7aaf98c..904932ab 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java @@ -954,47 +954,47 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableKerberos_ != false) { output.writeBool(1, enableKerberos_); } - if (!getRootPrincipalPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootPrincipalPasswordUri_); } - if (!getKmsKeyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyUri_); } - if (!getKeystoreUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystoreUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keystoreUri_); } - if (!getTruststoreUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststoreUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, truststoreUri_); } - if (!getKeystorePasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystorePasswordUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keystorePasswordUri_); } - if (!getKeyPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPasswordUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, keyPasswordUri_); } - if (!getTruststorePasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststorePasswordUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, truststorePasswordUri_); } - if (!getCrossRealmTrustRealmBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustRealm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crossRealmTrustRealm_); } - if (!getCrossRealmTrustKdcBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustKdc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, crossRealmTrustKdc_); } - if (!getCrossRealmTrustAdminServerBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_); } - if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { com.google.protobuf.GeneratedMessageV3.writeString( output, 12, crossRealmTrustSharedPasswordUri_); } - if (!getKdcDbKeyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_); } if (tgtLifetimeHours_ != 0) { output.writeInt32(14, tgtLifetimeHours_); } - if (!getRealmBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, realm_); } unknownFields.writeTo(output); @@ -1009,50 +1009,50 @@ public int getSerializedSize() { if (enableKerberos_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_); } - if (!getRootPrincipalPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); } - if (!getKmsKeyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_); } - if (!getKeystoreUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystoreUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keystoreUri_); } - if (!getTruststoreUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststoreUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, truststoreUri_); } - if (!getKeystorePasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystorePasswordUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keystorePasswordUri_); } - if (!getKeyPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPasswordUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, keyPasswordUri_); } - if (!getTruststorePasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststorePasswordUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, truststorePasswordUri_); } - if (!getCrossRealmTrustRealmBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustRealm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crossRealmTrustRealm_); } - if (!getCrossRealmTrustKdcBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustKdc_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_); } - if (!getCrossRealmTrustAdminServerBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); } - if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 12, crossRealmTrustSharedPasswordUri_); } - if (!getKdcDbKeyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_); } if (tgtLifetimeHours_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_); } - if (!getRealmBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java index ca1058fa..46f1fec5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java @@ -276,13 +276,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); @@ -294,13 +294,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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java index 95427906..60d48fe3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java @@ -276,7 +276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -291,7 +291,7 @@ public int getSerializedSize() { for (int i = 0; i < policies_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java index 2771c99f..5d9143b6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java @@ -398,19 +398,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } 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 (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -422,19 +422,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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 (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java index 47e0b868..4fcfb831 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java @@ -276,7 +276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < clusters_.size(); i++) { output.writeMessage(1, clusters_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -291,7 +291,7 @@ public int getSerializedSize() { for (int i = 0; i < clusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java index 96983542..965f8861 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java @@ -664,26 +664,26 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } 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 (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterName_); } if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { output.writeEnum(5, jobStateMatcher_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); } unknownFields.writeTo(output); @@ -695,26 +695,26 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } 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 (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterName_); } if (jobStateMatcher_ != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobStateMatcher_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java index 3505bc6e..81d200aa 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java @@ -275,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < jobs_.size(); i++) { output.writeMessage(1, jobs_.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 < jobs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java index 74755ea0..abbdffc5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java @@ -274,13 +274,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); @@ -292,13 +292,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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java index fd640e15..7bad489a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java @@ -277,7 +277,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < templates_.size(); i++) { output.writeMessage(1, templates_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -292,7 +292,7 @@ public int getSerializedSize() { for (int i = 0; i < templates_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, templates_.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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java index fa0a8d90..c64e22d8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java @@ -136,7 +136,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * The Log4j level for job execution. When running an
-   * [Apache Hive](http://hive.apache.org/) job, Cloud
+   * [Apache Hive](https://hive.apache.org/) job, Cloud
    * Dataproc configures the Hive client to an equivalent verbosity level.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java index 76174f48..c4cc8ccf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java @@ -399,7 +399,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } if (config_ != null) { @@ -416,7 +416,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (config_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java index 8203478d..8bf61946 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInstanceTemplateNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTemplateName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceTemplateName_); } - if (!getInstanceGroupManagerNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupManagerName_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getInstanceTemplateNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTemplateName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceTemplateName_); } - if (!getInstanceGroupManagerNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java index ca49e495..05dd108f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.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 (!getDataprocMetastoreServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); } unknownFields.writeTo(output); @@ -194,7 +194,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDataprocMetastoreServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java index 0fbcac3b..39cadb8e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java @@ -188,7 +188,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNodeGroupUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); } unknownFields.writeTo(output); @@ -200,7 +200,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNodeGroupUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeGroupUri_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java index 93de6a62..9c947e59 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java @@ -259,7 +259,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getExecutableFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executableFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executableFile_); } if (executionTimeout_ != null) { @@ -274,7 +274,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getExecutableFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executableFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executableFile_); } if (executionTimeout_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java index 7b3bfca6..bda66040 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java @@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -51,29 +59,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/cloud/dataproc/v1/operations.pr" + "oto\022\030google.cloud.dataproc.v1\032\037google/ap" + "i/field_behavior.proto\032\037google/protobuf/" - + "timestamp.proto\032\034google/api/annotations." - + "proto\"\211\002\n\026ClusterOperationStatus\022J\n\005stat" - + "e\030\001 \001(\01626.google.cloud.dataproc.v1.Clust" - + "erOperationStatus.StateB\003\340A\003\022\030\n\013inner_st" - + "ate\030\002 \001(\tB\003\340A\003\022\024\n\007details\030\003 \001(\tB\003\340A\003\0229\n\020" - + "state_start_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\"8\n\005State\022\013\n\007UNKNOWN\020\000\022\013\n" - + "\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\"\270\003\n\030Cl" - + "usterOperationMetadata\022\031\n\014cluster_name\030\007" - + " \001(\tB\003\340A\003\022\031\n\014cluster_uuid\030\010 \001(\tB\003\340A\003\022E\n\006" - + "status\030\t \001(\01320.google.cloud.dataproc.v1." - + "ClusterOperationStatusB\003\340A\003\022M\n\016status_hi" - + "story\030\n \003(\01320.google.cloud.dataproc.v1.C" - + "lusterOperationStatusB\003\340A\003\022\033\n\016operation_" - + "type\030\013 \001(\tB\003\340A\003\022\030\n\013description\030\014 \001(\tB\003\340A" - + "\003\022S\n\006labels\030\r \003(\0132>.google.cloud.datapro" - + "c.v1.ClusterOperationMetadata.LabelsEntr" - + "yB\003\340A\003\022\025\n\010warnings\030\016 \003(\tB\003\340A\003\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bs\n\034" - + "com.google.cloud.dataproc.v1B\017Operations" - + "ProtoP\001Z@google.golang.org/genproto/goog" - + "leapis/cloud/dataproc/v1;dataprocb\006proto" - + "3" + + "timestamp.proto\"\343\003\n\026BatchOperationMetada" + + "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" + + "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." + + "google.cloud.dataproc.v1.BatchOperationM" + + "etadata.BatchOperationType\022\023\n\013descriptio" + + "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" + + "ataproc.v1.BatchOperationMetadata.Labels" + + "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" + + "perationType\022$\n BATCH_OPERATION_TYPE_UNS" + + "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" + + "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" + + "ataproc.v1.ClusterOperationStatus.StateB" + + "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" + + "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" + + "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" + + "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" + + "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" + + "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" + + "oud.dataproc.v1.ClusterOperationStatusB\003" + + "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" + + "ud.dataproc.v1.ClusterOperationStatusB\003\340" + + "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" + + "le.cloud.dataproc.v1.ClusterOperationMet" + + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" + + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001Bs\n\034com.google.cloud.datapro" + + "c.v1B\017OperationsProtoP\001Z@google.golang.o" + + "rg/genproto/googleapis/cloud/dataproc/v1" + + ";dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -81,10 +100,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, + new java.lang.String[] { + "Batch", + "BatchUuid", + "CreateTime", + "DoneTime", + "OperationType", + "Description", + "Labels", + "Warnings", + }); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, @@ -92,7 +135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "InnerState", "Details", "StateStartTime", }); internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, @@ -123,7 +166,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java index f9103c2a..fb07a402 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java @@ -369,8 +369,8 @@ public JobTypeCase getJobTypeCase() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -400,8 +400,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1133,7 +1133,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } if (jobTypeCase_ == 2) { @@ -1178,7 +1178,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStepIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); } if (jobTypeCase_ == 2) { @@ -1797,8 +1797,8 @@ public Builder clearJobType() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1827,8 +1827,8 @@ public java.lang.String getStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1857,8 +1857,8 @@ public com.google.protobuf.ByteString getStepIdBytes() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1886,8 +1886,8 @@ public Builder setStepId(java.lang.String value) { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -1911,8 +1911,8 @@ public Builder clearStepId() { * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java index 1b61d806..198e4fca 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java @@ -31,8 +31,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. @@ -51,8 +51,8 @@ public interface OrderedJobOrBuilder * within the template. * The step id is used as prefix for job id, as job * `goog-dataproc-workflow-step-id` label, and in - * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - * field from other steps. + * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + * steps. * The id must contain only letters (a-z, A-Z), numbers (0-9), * underscores (_), and hyphens (-). Cannot begin or end with underscore * or hyphen. Must consist of between 3 and 50 characters. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java new file mode 100644 index 00000000..0b2be90d --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java @@ -0,0 +1,959 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Auxiliary services configuration for a workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} + */ +public final class PeripheralsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PeripheralsConfig) + PeripheralsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PeripheralsConfig.newBuilder() to construct. + private PeripheralsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PeripheralsConfig() { + metastoreService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PeripheralsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PeripheralsConfig( + 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(); + + metastoreService_ = s; + break; + } + case 18: + { + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder subBuilder = null; + if (sparkHistoryServerConfig_ != null) { + subBuilder = sparkHistoryServerConfig_.toBuilder(); + } + sparkHistoryServerConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sparkHistoryServerConfig_); + sparkHistoryServerConfig_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.PeripheralsConfig.class, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + } + + public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object metastoreService_; + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metastoreService. + */ + @java.lang.Override + public java.lang.String getMetastoreService() { + java.lang.Object ref = metastoreService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metastoreService_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metastoreService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetastoreServiceBytes() { + java.lang.Object ref = metastoreService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metastoreService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + @java.lang.Override + public boolean hasSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ != null; + } + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { + return getSparkHistoryServerConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return 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(metastoreService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); + } + if (sparkHistoryServerConfig_ != null) { + output.writeMessage(2, getSparkHistoryServerConfig()); + } + 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(metastoreService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metastoreService_); + } + if (sparkHistoryServerConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSparkHistoryServerConfig()); + } + 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.dataproc.v1.PeripheralsConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.PeripheralsConfig other = + (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; + + if (!getMetastoreService().equals(other.getMetastoreService())) return false; + if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; + if (hasSparkHistoryServerConfig()) { + if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) 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) + METASTORE_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMetastoreService().hashCode(); + if (hasSparkHistoryServerConfig()) { + hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Auxiliary services configuration for a workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PeripheralsConfig) + com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.PeripheralsConfig.class, + com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.PeripheralsConfig.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(); + metastoreService_ = ""; + + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = null; + } else { + sparkHistoryServerConfig_ = null; + sparkHistoryServerConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PeripheralsConfig build() { + com.google.cloud.dataproc.v1.PeripheralsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { + com.google.cloud.dataproc.v1.PeripheralsConfig result = + new com.google.cloud.dataproc.v1.PeripheralsConfig(this); + result.metastoreService_ = metastoreService_; + if (sparkHistoryServerConfigBuilder_ == null) { + result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; + } else { + result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_.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.dataproc.v1.PeripheralsConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.PeripheralsConfig other) { + if (other == com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance()) return this; + if (!other.getMetastoreService().isEmpty()) { + metastoreService_ = other.metastoreService_; + onChanged(); + } + if (other.hasSparkHistoryServerConfig()) { + mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); + } + 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.dataproc.v1.PeripheralsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.PeripheralsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metastoreService_ = ""; + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metastoreService. + */ + public java.lang.String getMetastoreService() { + java.lang.Object ref = metastoreService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metastoreService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metastoreService. + */ + public com.google.protobuf.ByteString getMetastoreServiceBytes() { + java.lang.Object ref = metastoreService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metastoreService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metastoreService to set. + * @return This builder for chaining. + */ + public Builder setMetastoreService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metastoreService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetastoreService() { + + metastoreService_ = getDefaultInstance().getMetastoreService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metastoreService to set. + * @return This builder for chaining. + */ + public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metastoreService_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + sparkHistoryServerConfigBuilder_; + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + public boolean hasSparkHistoryServerConfig() { + return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + if (sparkHistoryServerConfigBuilder_ == null) { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } else { + return sparkHistoryServerConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sparkHistoryServerConfig_ = value; + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = builderForValue.build(); + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (sparkHistoryServerConfig_ != null) { + sparkHistoryServerConfig_ = + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( + sparkHistoryServerConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sparkHistoryServerConfig_ = value; + } + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSparkHistoryServerConfig() { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = null; + onChanged(); + } else { + sparkHistoryServerConfig_ = null; + sparkHistoryServerConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder + getSparkHistoryServerConfigBuilder() { + + onChanged(); + return getSparkHistoryServerConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { + if (sparkHistoryServerConfigBuilder_ != null) { + return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); + } else { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + getSparkHistoryServerConfigFieldBuilder() { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), getParentForChildren(), isClean()); + sparkHistoryServerConfig_ = null; + } + return sparkHistoryServerConfigBuilder_; + } + + @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.dataproc.v1.PeripheralsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PeripheralsConfig) + private static final com.google.cloud.dataproc.v1.PeripheralsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PeripheralsConfig(); + } + + public static com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PeripheralsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PeripheralsConfig(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.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java new file mode 100644 index 00000000..9797286c --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java @@ -0,0 +1,96 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface PeripheralsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PeripheralsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metastoreService. + */ + java.lang.String getMetastoreService(); + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metastoreService. + */ + com.google.protobuf.ByteString getMetastoreServiceBytes(); + + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + boolean hasSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java index 6a7cd0d9..8d244b26 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java @@ -688,7 +688,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (continueOnFailure_ != false) { output.writeBool(3, continueOnFailure_); } - if (!getOutputFormatBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputFormat_); } for (int i = 0; i < clientTags_.size(); i++) { @@ -719,7 +719,7 @@ public int getSerializedSize() { if (continueOnFailure_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); } - if (!getOutputFormatBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputFormat_); } { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java index 4fd5c99e..1afcb043 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java @@ -794,7 +794,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMainPythonFileUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); } for (int i = 0; i < args_.size(); i++) { @@ -826,7 +826,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getMainPythonFileUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); } { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java index 4edad5fb..24344364 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java @@ -469,7 +469,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, consumeReservationType_); } - if (!getKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } for (int i = 0; i < values_.size(); i++) { @@ -488,7 +488,7 @@ public int getSerializedSize() { != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); } - if (!getKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java new file mode 100644 index 00000000..b0e21dd4 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java @@ -0,0 +1,806 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Runtime configuration for a workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} + */ +public final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeConfig) + RuntimeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeConfig.newBuilder() to construct. + private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RuntimeConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RuntimeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RuntimeConfig( + 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 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.RuntimeConfig.class, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + } + + public static final int PROPERTIES_FIELD_NUMBER = 3; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); + } + 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.dataproc.v1.RuntimeConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.RuntimeConfig other = + (com.google.cloud.dataproc.v1.RuntimeConfig) obj; + + if (!internalGetProperties().equals(other.internalGetProperties())) 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 (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Runtime configuration for a workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeConfig) + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.RuntimeConfig.class, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.RuntimeConfig.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(); + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeConfig build() { + com.google.cloud.dataproc.v1.RuntimeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { + com.google.cloud.dataproc.v1.RuntimeConfig result = + new com.google.cloud.dataproc.v1.RuntimeConfig(this); + int from_bitField0_ = bitField0_; + result.properties_ = internalGetProperties(); + result.properties_.makeImmutable(); + 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.dataproc.v1.RuntimeConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { + if (other == com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance()) return this; + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + 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.dataproc.v1.RuntimeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.RuntimeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + private com.google.protobuf.MapField + internalGetMutableProperties() { + onChanged(); + ; + if (properties_ == null) { + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + if (!properties_.isMutable()) { + properties_ = properties_.copy(); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProperties() { + internalGetMutableProperties().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + return internalGetMutableProperties().getMutableMap(); + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putProperties(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. A mapping of property names to values, which are used to configure workload
+     * execution.
+     * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); + 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.dataproc.v1.RuntimeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeConfig) + private static final com.google.cloud.dataproc.v1.RuntimeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeConfig(); + } + + public static com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeConfig(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.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java new file mode 100644 index 00000000..1365be22 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface RuntimeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPropertiesCount(); + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getPropertiesMap(); + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. A mapping of property names to values, which are used to configure workload
+   * execution.
+   * 
+ * + * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getPropertiesOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java new file mode 100644 index 00000000..a2f60de1 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java @@ -0,0 +1,984 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Runtime information about workload execution.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} + */ +public final class RuntimeInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeInfo) + RuntimeInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeInfo.newBuilder() to construct. + private RuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RuntimeInfo() { + outputUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RuntimeInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RuntimeInfo( + 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)) { + endpoints_ = + com.google.protobuf.MapField.newMapField( + EndpointsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry endpoints__ = + input.readMessage( + EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + endpoints_.getMutableMap().put(endpoints__.getKey(), endpoints__.getValue()); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUri_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetEndpoints(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.RuntimeInfo.class, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + } + + public static final int ENDPOINTS_FIELD_NUMBER = 1; + + private static final class EndpointsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField endpoints_; + + private com.google.protobuf.MapField internalGetEndpoints() { + if (endpoints_ == null) { + return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); + } + return endpoints_; + } + + public int getEndpointsCount() { + return internalGetEndpoints().getMap().size(); + } + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsEndpoints(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetEndpoints().getMap().containsKey(key); + } + /** Use {@link #getEndpointsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEndpoints() { + return getEndpointsMap(); + } + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getEndpointsMap() { + return internalGetEndpoints().getMap(); + } + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getEndpointsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetEndpoints().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getEndpointsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetEndpoints().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object outputUri_; + /** + * + * + *
+   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+   * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + @java.lang.Override + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+   * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEndpoints(), EndpointsDefaultEntryHolder.defaultEntry, 1); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetEndpoints().getMap().entrySet()) { + com.google.protobuf.MapEntry endpoints__ = + EndpointsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); + } + 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.dataproc.v1.RuntimeInfo)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.RuntimeInfo other = (com.google.cloud.dataproc.v1.RuntimeInfo) obj; + + if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; + if (!getOutputUri().equals(other.getOutputUri())) 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 (!internalGetEndpoints().getMap().isEmpty()) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetEndpoints().hashCode(); + } + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Runtime information about workload execution.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeInfo) + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetEndpoints(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableEndpoints(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.RuntimeInfo.class, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.RuntimeInfo.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(); + internalGetMutableEndpoints().clear(); + outputUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeInfo build() { + com.google.cloud.dataproc.v1.RuntimeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { + com.google.cloud.dataproc.v1.RuntimeInfo result = + new com.google.cloud.dataproc.v1.RuntimeInfo(this); + int from_bitField0_ = bitField0_; + result.endpoints_ = internalGetEndpoints(); + result.endpoints_.makeImmutable(); + result.outputUri_ = outputUri_; + 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.dataproc.v1.RuntimeInfo) { + return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { + if (other == com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance()) return this; + internalGetMutableEndpoints().mergeFrom(other.internalGetEndpoints()); + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + 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.dataproc.v1.RuntimeInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.RuntimeInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField endpoints_; + + private com.google.protobuf.MapField + internalGetEndpoints() { + if (endpoints_ == null) { + return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); + } + return endpoints_; + } + + private com.google.protobuf.MapField + internalGetMutableEndpoints() { + onChanged(); + ; + if (endpoints_ == null) { + endpoints_ = + com.google.protobuf.MapField.newMapField(EndpointsDefaultEntryHolder.defaultEntry); + } + if (!endpoints_.isMutable()) { + endpoints_ = endpoints_.copy(); + } + return endpoints_; + } + + public int getEndpointsCount() { + return internalGetEndpoints().getMap().size(); + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsEndpoints(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetEndpoints().getMap().containsKey(key); + } + /** Use {@link #getEndpointsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEndpoints() { + return getEndpointsMap(); + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getEndpointsMap() { + return internalGetEndpoints().getMap(); + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getEndpointsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetEndpoints().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getEndpointsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetEndpoints().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEndpoints() { + internalGetMutableEndpoints().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeEndpoints(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableEndpoints().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableEndpoints() { + return internalGetMutableEndpoints().getMutableMap(); + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putEndpoints(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableEndpoints().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+     * URIs.
+     * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllEndpoints(java.util.Map values) { + internalGetMutableEndpoints().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
+     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+     * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+     * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+     * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+     * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOutputUri() { + + outputUri_ = getDefaultInstance().getOutputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+     * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for outputUri to set. + * @return This builder for chaining. + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUri_ = 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.dataproc.v1.RuntimeInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeInfo) + private static final com.google.cloud.dataproc.v1.RuntimeInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeInfo(); + } + + public static com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeInfo(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.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java new file mode 100644 index 00000000..71558525 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface RuntimeInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getEndpointsCount(); + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsEndpoints(java.lang.String key); + /** Use {@link #getEndpointsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getEndpoints(); + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getEndpointsMap(); + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getEndpointsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
+   * URIs.
+   * 
+ * + * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getEndpointsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+   * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The outputUri. + */ + java.lang.String getOutputUri(); + /** + * + * + *
+   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
+   * 
+ * + * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for outputUri. + */ + com.google.protobuf.ByteString getOutputUriBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java index 758072b2..27c3f938 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -27,6 +27,39 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } @@ -36,26 +69,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n%google/cloud/dataproc/v1/shared.proto\022" - + "\030google.cloud.dataproc.v1\032\034google/api/an" - + "notations.proto\032\037google/api/field_behavi" - + "or.proto*\277\001\n\tComponent\022\031\n\025COMPONENT_UNSP" + + "\030google.cloud.dataproc.v1\032\037google/api/fi" + + "eld_behavior.proto\"\224\001\n\rRuntimeConfig\022P\n\n" + + "properties\030\003 \003(\01327.google.cloud.dataproc" + + ".v1.RuntimeConfig.PropertiesEntryB\003\340A\001\0321" + + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentConfig\022H\n\020execu" + + "tion_config\030\001 \001(\0132).google.cloud.datapro" + + "c.v1.ExecutionConfigB\003\340A\001\022L\n\022peripherals" + + "_config\030\002 \001(\0132+.google.cloud.dataproc.v1" + + ".PeripheralsConfigB\003\340A\001\"\246\001\n\017ExecutionCon" + + "fig\022\034\n\017service_account\030\002 \001(\tB\003\340A\001\022\032\n\013net" + + "work_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016subnetwork_uri\030" + + "\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags\030\006 \003(\tB\003\340A\001\022" + + "\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007network\"9\n\030Spar" + + "kHistoryServerConfig\022\035\n\020dataproc_cluster" + + "\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsConfig\022\036\n\021met" + + "astore_service\030\001 \001(\tB\003\340A\001\022\\\n\033spark_histo" + + "ry_server_config\030\002 \001(\01322.google.cloud.da" + + "taproc.v1.SparkHistoryServerConfigB\003\340A\001\"" + + "\246\001\n\013RuntimeInfo\022L\n\tendpoints\030\001 \003(\01324.goo" + + "gle.cloud.dataproc.v1.RuntimeInfo.Endpoi" + + "ntsEntryB\003\340A\003\022\027\n\noutput_uri\030\002 \001(\tB\003\340A\003\0320" + + "\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001*\277\001\n\tComponent\022\031\n\025COMPONENT_UNSP" + "ECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005D" + "RUID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEB" + "HCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022\n\n\006RANGE" + "R\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZOOKEEPER" - + "\020\010Bo\n\034com.google.cloud.dataproc.v1B\013Shar" - + "edProtoP\001Z@google.golang.org/genproto/go" - + "ogleapis/cloud/dataproc/v1;dataprocb\006pro" - + "to3" + + "\020\010*J\n\rFailureAction\022\036\n\032FAILURE_ACTION_UN" + + "SPECIFIED\020\000\022\r\n\tNO_ACTION\020\001\022\n\n\006DELETE\020\002Bo" + + "\n\034com.google.cloud.dataproc.v1B\013SharedPr" + + "otoP\001Z@google.golang.org/genproto/google" + + "apis/cloud/dataproc/v1;dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), }); - com.google.api.AnnotationsProto.getDescriptor(); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, + new java.lang.String[] { + "Properties", + }); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, + new java.lang.String[] { + "ExecutionConfig", "PeripheralsConfig", + }); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, + new java.lang.String[] { + "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", + }); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, + new java.lang.String[] { + "DataprocCluster", + }); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, + new java.lang.String[] { + "MetastoreService", "SparkHistoryServerConfig", + }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, + new java.lang.String[] { + "Endpoints", "OutputUri", + }); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java index df14bda8..dcec205e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java @@ -508,7 +508,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getImageVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -529,7 +529,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getImageVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java new file mode 100644 index 00000000..309d3884 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java @@ -0,0 +1,658 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Spark History Server configuration for the workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} + */ +public final class SparkHistoryServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) + SparkHistoryServerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkHistoryServerConfig.newBuilder() to construct. + private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SparkHistoryServerConfig() { + dataprocCluster_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SparkHistoryServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SparkHistoryServerConfig( + 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(); + + dataprocCluster_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + } + + public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object dataprocCluster_; + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+   * Server for the workload.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataprocCluster. + */ + @java.lang.Override + public java.lang.String getDataprocCluster() { + java.lang.Object ref = dataprocCluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataprocCluster_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+   * Server for the workload.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataprocCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataprocClusterBytes() { + java.lang.Object ref = dataprocCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataprocCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return 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(dataprocCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); + } + 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(dataprocCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocCluster_); + } + 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.dataproc.v1.SparkHistoryServerConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = + (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; + + if (!getDataprocCluster().equals(other.getDataprocCluster())) 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) + DATAPROC_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getDataprocCluster().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Spark History Server configuration for the workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.SparkHistoryServerConfig.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(); + dataprocCluster_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig build() { + com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { + com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = + new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); + result.dataprocCluster_ = dataprocCluster_; + 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.dataproc.v1.SparkHistoryServerConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkHistoryServerConfig other) { + if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) + return this; + if (!other.getDataprocCluster().isEmpty()) { + dataprocCluster_ = other.dataprocCluster_; + 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.dataproc.v1.SparkHistoryServerConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object dataprocCluster_ = ""; + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+     * Server for the workload.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataprocCluster. + */ + public java.lang.String getDataprocCluster() { + java.lang.Object ref = dataprocCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataprocCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+     * Server for the workload.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataprocCluster. + */ + public com.google.protobuf.ByteString getDataprocClusterBytes() { + java.lang.Object ref = dataprocCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataprocCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+     * Server for the workload.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataprocCluster to set. + * @return This builder for chaining. + */ + public Builder setDataprocCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataprocCluster_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+     * Server for the workload.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataprocCluster() { + + dataprocCluster_ = getDefaultInstance().getDataprocCluster(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+     * Server for the workload.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dataprocCluster to set. + * @return This builder for chaining. + */ + public Builder setDataprocClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataprocCluster_ = 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.dataproc.v1.SparkHistoryServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) + private static final com.google.cloud.dataproc.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(); + } + + public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkHistoryServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkHistoryServerConfig(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.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java new file mode 100644 index 00000000..80e16401 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface SparkHistoryServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkHistoryServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+   * Server for the workload.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataprocCluster. + */ + java.lang.String getDataprocCluster(); + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
+   * Server for the workload.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dataprocCluster. + */ + com.google.protobuf.ByteString getDataprocClusterBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java index b4ed383c..069616e6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java @@ -635,7 +635,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMainRFileUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); } for (int i = 0; i < args_.size(); i++) { @@ -661,7 +661,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getMainRFileUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_); } { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java index e2fae913..a3f346c9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java @@ -349,7 +349,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -357,7 +357,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -381,7 +381,7 @@ public java.lang.String getRequestId() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -389,7 +389,7 @@ public java.lang.String getRequestId() {
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -424,19 +424,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } unknownFields.writeTo(output); @@ -448,19 +448,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } size += unknownFields.getSerializedSize(); @@ -1230,7 +1230,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1238,7 +1238,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1261,7 +1261,7 @@ public java.lang.String getRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1269,7 +1269,7 @@ public java.lang.String getRequestId() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1292,7 +1292,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1300,7 +1300,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1322,7 +1322,7 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1330,7 +1330,7 @@ public Builder setRequestId(java.lang.String value) {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1348,7 +1348,7 @@ public Builder clearRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1356,7 +1356,7 @@ public Builder clearRequestId() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java index 21333938..9a483467 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java @@ -131,7 +131,7 @@ public interface StartClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -139,7 +139,7 @@ public interface StartClusterRequestOrBuilder
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -152,7 +152,7 @@ public interface StartClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -160,7 +160,7 @@ public interface StartClusterRequestOrBuilder
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java index b4c62c13..8edd0a3a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java @@ -349,7 +349,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -357,7 +357,7 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -381,7 +381,7 @@ public java.lang.String getRequestId() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -389,7 +389,7 @@ public java.lang.String getRequestId() {
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -424,19 +424,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } unknownFields.writeTo(output); @@ -448,19 +448,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } size += unknownFields.getSerializedSize(); @@ -1230,7 +1230,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1238,7 +1238,7 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1261,7 +1261,7 @@ public java.lang.String getRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1269,7 +1269,7 @@ public java.lang.String getRequestId() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1292,7 +1292,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1300,7 +1300,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1322,7 +1322,7 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1330,7 +1330,7 @@ public Builder setRequestId(java.lang.String value) {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -1348,7 +1348,7 @@ public Builder clearRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -1356,7 +1356,7 @@ public Builder clearRequestId() {
      * backend is returned.
      * Recommendation: Set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java index db7d5089..8b9a1297 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java @@ -131,7 +131,7 @@ public interface StopClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -139,7 +139,7 @@ public interface StopClusterRequestOrBuilder
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -152,7 +152,7 @@ public interface StopClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -160,7 +160,7 @@ public interface StopClusterRequestOrBuilder
    * backend is returned.
    * Recommendation: Set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java index 146b7e6c..c46e7489 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java @@ -369,16 +369,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } if (job_ != null) { output.writeMessage(2, getJob()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } unknownFields.writeTo(output); @@ -390,16 +390,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } if (job_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java index 5841367c..274a900d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java @@ -228,10 +228,10 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -277,10 +277,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -326,10 +326,10 @@ public int getFieldsCount() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -376,10 +376,10 @@ public java.lang.String getFields(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -539,13 +539,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_); } for (int i = 0; i < fields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (validation_ != null) { @@ -560,7 +560,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_); } { @@ -571,7 +571,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getFieldsList().size(); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (validation_ != null) { @@ -1081,10 +1081,10 @@ private void ensureFieldsIsMutable() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1130,10 +1130,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1179,10 +1179,10 @@ public int getFieldsCount() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1229,10 +1229,10 @@ public java.lang.String getFields(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1279,10 +1279,10 @@ public com.google.protobuf.ByteString getFieldsBytes(int index) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1336,10 +1336,10 @@ public Builder setFields(int index, java.lang.String value) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1392,10 +1392,10 @@ public Builder addFields(java.lang.String value) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1445,10 +1445,10 @@ public Builder addAllFields(java.lang.Iterable values) { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -1497,10 +1497,10 @@ public Builder clearFields() { * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java index 9a57e01c..5625583f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java @@ -67,10 +67,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -114,10 +114,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -161,10 +161,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] @@ -209,10 +209,10 @@ public interface TemplateParameterOrBuilder * Required. Paths to all fields that the parameter replaces. * A field is allowed to appear in at most one parameter's list of field * paths. - * A field path is similar in syntax to a - * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - * field path that references the zone field of a workflow template's cluster - * selector would be specified as `placement.clusterSelector.zone`. + * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + * For example, a field path that references the zone field of a workflow + * template's cluster selector would be specified as + * `placement.clusterSelector.zone`. * Also, field paths can reference fields using the following syntax: * * Values in maps can be referenced by key: * * labels['key'] diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java index 0b73b240..d8ab4c54 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java @@ -650,7 +650,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -658,7 +658,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -682,7 +682,7 @@ public java.lang.String getRequestId() { * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -690,7 +690,7 @@ public java.lang.String getRequestId() {
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -725,10 +725,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); } if (cluster_ != null) { @@ -737,13 +737,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(4, getUpdateMask()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); } if (gracefulDecommissionTimeout_ != null) { output.writeMessage(6, getGracefulDecommissionTimeout()); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestId_); } unknownFields.writeTo(output); @@ -755,10 +755,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); } if (cluster_ != null) { @@ -767,7 +767,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); } if (gracefulDecommissionTimeout_ != null) { @@ -775,7 +775,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getGracefulDecommissionTimeout()); } - if (!getRequestIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); } size += unknownFields.getSerializedSize(); @@ -2577,7 +2577,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -2585,7 +2585,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -2608,7 +2608,7 @@ public java.lang.String getRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -2616,7 +2616,7 @@ public java.lang.String getRequestId() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -2639,7 +2639,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -2647,7 +2647,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -2669,7 +2669,7 @@ public Builder setRequestId(java.lang.String value) { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -2677,7 +2677,7 @@ public Builder setRequestId(java.lang.String value) {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* @@ -2695,7 +2695,7 @@ public Builder clearRequestId() { * * *
-     * Optional. A unique id used to identify the request. If the server
+     * Optional. A unique ID used to identify the request. If the server
      * receives two
      * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
      * with the same id, then the second request will be ignored and the
@@ -2703,7 +2703,7 @@ public Builder clearRequestId() {
      * backend is returned.
      * It is recommended to always set this value to a
      * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
+     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
      * underscores (_), and hyphens (-). The maximum length is 40 characters.
      * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java index 64c9de7b..fb1ecbc5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java @@ -383,7 +383,7 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -391,7 +391,7 @@ public interface UpdateClusterRequestOrBuilder
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* @@ -404,7 +404,7 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Optional. A unique id used to identify the request. If the server
+   * Optional. A unique ID used to identify the request. If the server
    * receives two
    * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
    * with the same id, then the second request will be ignored and the
@@ -412,7 +412,7 @@ public interface UpdateClusterRequestOrBuilder
    * backend is returned.
    * It is recommended to always set this value to a
    * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
+   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
    * underscores (_), and hyphens (-). The maximum length is 40 characters.
    * 
* diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java index 0105dec5..44377c07 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java @@ -430,13 +430,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); } if (job_ != null) { @@ -454,13 +454,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); } - if (!getRegionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } if (job_ != null) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java index 8903df0c..81adc0ed 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java @@ -1056,8 +1056,8 @@ public com.google.protobuf.ByteString getClusterUuidBytes() { * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -1074,8 +1074,8 @@ public boolean hasDagTimeout() { * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -1092,8 +1092,8 @@ public com.google.protobuf.Duration getDagTimeout() { * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -1111,9 +1111,8 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -1130,9 +1129,8 @@ public boolean hasDagStartTime() { * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -1151,9 +1149,8 @@ public com.google.protobuf.Timestamp getDagStartTime() { * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -1171,9 +1168,7 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * @@ -1190,9 +1185,7 @@ public boolean hasDagEndTime() { * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * @@ -1209,9 +1202,7 @@ public com.google.protobuf.Timestamp getDagEndTime() { * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * @@ -1237,7 +1228,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTemplateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_); } if (version_ != 0) { @@ -1255,7 +1246,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { output.writeEnum(6, state_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -1266,7 +1257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(10, getEndTime()); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_); } if (dagTimeout_ != null) { @@ -1287,7 +1278,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTemplateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_); } if (version_ != 0) { @@ -1305,7 +1296,7 @@ public int getSerializedSize() { if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } - if (!getClusterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); } for (java.util.Map.Entry entry : @@ -1324,7 +1315,7 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime()); } - if (!getClusterUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); } if (dagTimeout_ != null) { @@ -3537,8 +3528,8 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3555,8 +3546,8 @@ public boolean hasDagTimeout() { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3579,8 +3570,8 @@ public com.google.protobuf.Duration getDagTimeout() { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3605,8 +3596,8 @@ public Builder setDagTimeout(com.google.protobuf.Duration value) { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3628,8 +3619,8 @@ public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValu * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3656,8 +3647,8 @@ public Builder mergeDagTimeout(com.google.protobuf.Duration value) { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3680,8 +3671,8 @@ public Builder clearDagTimeout() { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3698,8 +3689,8 @@ public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3720,8 +3711,8 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { * * *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-     * (see [JSON representation of
+     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+     * [JSON representation of
      * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
      * 
* @@ -3756,9 +3747,8 @@ public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3774,9 +3764,8 @@ public boolean hasDagStartTime() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3798,9 +3787,8 @@ public com.google.protobuf.Timestamp getDagStartTime() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3824,9 +3812,8 @@ public Builder setDagStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3847,9 +3834,8 @@ public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForV * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3877,9 +3863,8 @@ public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3901,9 +3886,8 @@ public Builder clearDagStartTime() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3919,9 +3903,8 @@ public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3941,9 +3924,8 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { * * *
-     * Output only. DAG start time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG begins.
+     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+     * begins.
      * 
* * @@ -3977,9 +3959,7 @@ public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -3995,9 +3975,7 @@ public boolean hasDagEndTime() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4019,9 +3997,7 @@ public com.google.protobuf.Timestamp getDagEndTime() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4045,9 +4021,7 @@ public Builder setDagEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4068,9 +4042,7 @@ public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4096,9 +4068,7 @@ public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4120,9 +4090,7 @@ public Builder clearDagEndTime() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4138,9 +4106,7 @@ public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * @@ -4160,9 +4126,7 @@ public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { * * *
-     * Output only. DAG end time, only set for workflows with
-     * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-     * DAG ends.
+     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
      * 
* * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java index 30219062..c6c1db05 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java @@ -412,8 +412,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -427,8 +427,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -442,8 +442,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds
-   * (see [JSON representation of
+   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
+   * [JSON representation of
    * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
    * 
* @@ -456,9 +456,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -472,9 +471,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -488,9 +486,8 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG start time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG begins.
+   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
+   * begins.
    * 
* * @@ -503,9 +500,7 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * @@ -519,9 +514,7 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * @@ -535,9 +528,7 @@ public interface WorkflowMetadataOrBuilder * * *
-   * Output only. DAG end time, only set for workflows with
-   * [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when
-   * DAG ends.
+   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
    * 
* * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java index 34c5288a..445865f9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java @@ -643,20 +643,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStepIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); } for (int i = 0; i < prerequisiteStepIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prerequisiteStepIds_.getRaw(i)); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); } if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); } unknownFields.writeTo(output); @@ -668,7 +668,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStepIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); } { @@ -679,14 +679,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPrerequisiteStepIdsList().size(); } - if (!getJobIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); } if (state_ != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } - if (!getErrorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index 3c2e2bf8..280f0bb4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java @@ -907,10 +907,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 (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (version_ != 0) { @@ -945,10 +945,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 (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (version_ != 0) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java index 9825ef1b..e7f0c676 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java @@ -603,7 +603,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 (state_ @@ -613,7 +613,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (progress_ != 0F) { output.writeFloat(3, progress_); } - if (!getTrackingUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trackingUrl_); } unknownFields.writeTo(output); @@ -625,7 +625,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 (state_ @@ -635,7 +635,7 @@ public int getSerializedSize() { if (progress_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); } - if (!getTrackingUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto index bec577e4..94b225a4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -140,6 +140,15 @@ message AutoscalingPolicy { // Optional. Describes how the autoscaler will operate for secondary workers. InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels to associate with this autoscaling policy. + // Label **keys** must contain 1 to 63 characters, and must conform to + // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). + // Label **values** may be empty, but, if present, must contain 1 to 63 + // characters, and must conform to [RFC + // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with an autoscaling policy. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; } // Basic algorithm for autoscaling. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 147c95b7..50532491 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -63,6 +63,8 @@ service ClusterController { // Updates a cluster in a project. The returned // [Operation.metadata][google.longrunning.Operation.metadata] will be // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). + // The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error + // is returned. rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" @@ -151,7 +153,7 @@ service ClusterController { } // Describes the identifying information, config, and status of -// a cluster of Compute Engine instances. +// a Dataproc cluster message Cluster { // Required. The Google Cloud Platform project ID that the cluster belongs to. string project_id = 1 [(google.api.field_behavior) = REQUIRED]; @@ -199,10 +201,10 @@ message ClusterConfig { // ASIA, or EU) for your cluster's staging bucket according to the // Compute Engine zone where your cluster is deployed, and then create // and manage this project-level, per-location bucket (see - // [Dataproc staging - // bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // **This field requires a Cloud Storage bucket name, not a URI to a Cloud - // Storage bucket.** + // [Dataproc staging and temp + // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + // a Cloud Storage bucket.** string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, @@ -213,9 +215,11 @@ message ClusterConfig { // Compute Engine zone where your cluster is deployed, and then create // and manage this project-level, per-location bucket. The default bucket has // a TTL of 90 days, but you can use any TTL (or none) if you specify a - // bucket. - // **This field requires a Cloud Storage bucket name, not a URI to a Cloud - // Storage bucket.** + // bucket (see + // [Dataproc staging and temp + // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + // a Cloud Storage bucket.** string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The shared Compute Engine config settings for @@ -223,18 +227,18 @@ message ClusterConfig { GceClusterConfig gce_cluster_config = 8 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for - // the master instance in a cluster. + // the cluster's master instance. InstanceGroupConfig master_config = 9 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for - // worker instances in a cluster. + // the cluster's worker instances. InstanceGroupConfig worker_config = 10 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Compute Engine config settings for - // additional worker instances in a cluster. + // a cluster's secondary worker instances InstanceGroupConfig secondary_worker_config = 12 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The config settings for software inside the cluster. + // Optional. The config settings for cluster software. SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL]; // Optional. Commands to execute on each node after config is @@ -453,6 +457,10 @@ message GceClusterConfig { // Optional. Shielded Instance Config for clusters using [Compute Engine Shielded // VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm). ShieldedInstanceConfig shielded_instance_config = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Confidential Instance Config for clusters using [Confidential + // VMs](https://cloud.google.com/compute/confidential-vm/docs). + ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL]; } // Node Group Affinity for clusters using sole-tenant node groups. @@ -483,6 +491,13 @@ message ShieldedInstanceConfig { bool enable_integrity_monitoring = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Confidential Instance Config for clusters using [Confidential +// VMs](https://cloud.google.com/compute/confidential-vm/docs) +message ConfidentialInstanceConfig { + // Optional. Defines whether the instance should have confidential compute enabled. + bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // The config settings for Compute Engine resources in // an instance group, such as a master or worker group. message InstanceGroupConfig { @@ -674,6 +689,10 @@ message ClusterStatus { // The cluster encountered an error. It is not ready for use. ERROR = 3; + // The cluster has encountered an error while being updated. Jobs can + // be submitted to the cluster, but the cluster cannot be updated. + ERROR_DUE_TO_UPDATE = 9; + // The cluster is being deleted. It cannot be used. DELETING = 4; @@ -918,7 +937,7 @@ message CreateClusterRequest { // Required. The cluster to create. Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique id used to identify the request. If the server receives two + // Optional. A unique ID used to identify the request. If the server receives two // [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s // with the same id, then the second request will be ignored and the // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend @@ -927,9 +946,12 @@ message CreateClusterRequest { // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). // - // The id must contain only letters (a-z, A-Z), numbers (0-9), + // The ID must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). The maximum length is 40 characters. string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure action when primary worker creation fails. + FailureAction action_on_failed_primary_workers = 5 [(google.api.field_behavior) = OPTIONAL]; } // A request to update a cluster. @@ -1011,7 +1033,7 @@ message UpdateClusterRequest { // google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique id used to identify the request. If the server + // Optional. A unique ID used to identify the request. If the server // receives two // [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s // with the same id, then the second request will be ignored and the @@ -1021,7 +1043,7 @@ message UpdateClusterRequest { // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). // - // The id must contain only letters (a-z, A-Z), numbers (0-9), + // The ID must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). The maximum length is 40 characters. string request_id = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -1042,7 +1064,7 @@ message StopClusterRequest { // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A unique id used to identify the request. If the server + // Optional. A unique ID used to identify the request. If the server // receives two // [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s // with the same id, then the second request will be ignored and the @@ -1052,7 +1074,7 @@ message StopClusterRequest { // Recommendation: Set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). // - // The id must contain only letters (a-z, A-Z), numbers (0-9), + // The ID must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). The maximum length is 40 characters. string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -1073,7 +1095,7 @@ message StartClusterRequest { // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A unique id used to identify the request. If the server + // Optional. A unique ID used to identify the request. If the server // receives two // [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s // with the same id, then the second request will be ignored and the @@ -1083,7 +1105,7 @@ message StartClusterRequest { // Recommendation: Set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). // - // The id must contain only letters (a-z, A-Z), numbers (0-9), + // The ID must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). The maximum length is 40 characters. string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -1104,7 +1126,7 @@ message DeleteClusterRequest { // (with error NOT_FOUND) if cluster with specified UUID does not exist. string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A unique id used to identify the request. If the server + // Optional. A unique ID used to identify the request. If the server // receives two // [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s // with the same id, then the second request will be ignored and the @@ -1114,7 +1136,7 @@ message DeleteClusterRequest { // It is recommended to always set this value to a // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). // - // The id must contain only letters (a-z, A-Z), numbers (0-9), + // The ID must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). The maximum length is 40 characters. string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto index f3521b5d..d7302b38 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -32,8 +32,7 @@ option java_package = "com.google.cloud.dataproc.v1"; // The JobController provides methods to manage jobs. service JobController { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Submits a job to a cluster. rpc SubmitJob(SubmitJobRequest) returns (Job) { @@ -45,8 +44,7 @@ service JobController { } // Submits job to a cluster. - rpc SubmitJobAsOperation(SubmitJobRequest) - returns (google.longrunning.Operation) { + rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation" body: "*" @@ -109,7 +107,7 @@ service JobController { // The runtime logging config of the job. message LoggingConfig { // The Log4j level for job execution. When running an - // [Apache Hive](http://hive.apache.org/) job, Cloud + // [Apache Hive](https://hive.apache.org/) job, Cloud // Dataproc configures the Hive client to an equivalent verbosity level. enum Level { // Level is unspecified. Use default level for log4j. @@ -325,8 +323,7 @@ message HiveJob { // Optional. Mapping of query variable names to values (equivalent to the // Hive command: `SET name="value";`). - map script_variables = 4 - [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names and values, used to configure Hive. // Properties that conflict with values set by the Dataproc API may be @@ -355,8 +352,7 @@ message SparkSqlJob { // Optional. Mapping of query variable names to values (equivalent to the // Spark SQL command: SET `name="value";`). - map script_variables = 3 - [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure // Spark SQL's SparkConf. Properties that conflict with values set by the @@ -390,8 +386,7 @@ message PigJob { // Optional. Mapping of query variable names to values (equivalent to the Pig // command: `name=[value]`). - map script_variables = 4 - [(google.api.field_behavior) = OPTIONAL]; + map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A mapping of property names to values, used to configure Pig. // Properties that conflict with values set by the Dataproc API may be @@ -485,10 +480,8 @@ message JobPlacement { // the job is submitted. string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Cluster labels to identify a cluster where the job will be - // submitted. - map cluster_labels = 3 - [(google.api.field_behavior) = OPTIONAL]; + // Optional. Cluster labels to identify a cluster where the job will be submitted. + map cluster_labels = 3 [(google.api.field_behavior) = OPTIONAL]; } // Dataproc job status. @@ -567,8 +560,7 @@ message JobStatus { ]; // Output only. The time when this state was entered. - google.protobuf.Timestamp state_start_time = 6 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional state information, which includes // status reported by the agent. @@ -577,8 +569,8 @@ message JobStatus { // Encapsulates the full scoping used to reference a job. message JobReference { - // Optional. The ID of the Google Cloud Platform project that the job belongs - // to. If specified, must match the request project ID. + // Optional. The ID of the Google Cloud Platform project that the job belongs to. If + // specified, must match the request project ID. string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The job ID, which must be unique within the project. @@ -688,26 +680,22 @@ message Job { JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The previous job status. - repeated JobStatus status_history = 13 - [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The collection of YARN applications spun up by this job. // // **Beta** Feature: This report is available for testing purposes only. It // may be changed before final release. - repeated YarnApplication yarn_applications = 9 - [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A URI pointing to the location of the stdout of the job's // driver program. - string driver_output_resource_uri = 17 - [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If present, the location of miscellaneous control files // which may be used as part of job setup and handling. If not present, // control files may be placed in the same location as `driver_output_uri`. - string driver_control_files_uri = 15 - [(google.api.field_behavior) = OUTPUT_ONLY]; + string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this job. // Label **keys** must contain 1 to 63 characters, and must conform to @@ -726,8 +714,8 @@ message Job { // may be reused over time. string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Indicates whether the job is completed. If the value is - // `false`, the job is still in progress. If `true`, the job is completed, and + // Output only. Indicates whether the job is completed. If the value is `false`, + // the job is still in progress. If `true`, the job is completed, and // `status.state` field will indicate if it was successful, failed, // or cancelled. bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -745,8 +733,8 @@ message JobScheduling { // Maximum value is 10. int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Maximum number of times in total a driver may be restarted as a - // result of driver exiting with non-zero code before job is reported failed. + // Optional. Maximum number of times in total a driver may be restarted as a result of + // driver exiting with non-zero code before job is reported failed. // Maximum value is 240. int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -790,8 +778,7 @@ message JobMetadata { string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Job submission time. - google.protobuf.Timestamp start_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to get the resource representation for a job in a project. @@ -844,8 +831,7 @@ message ListJobsRequest { // (default = match ALL jobs). // // If `filter` is provided, `jobStateMatcher` will be ignored. - JobStateMatcher job_state_matcher = 5 - [(google.api.field_behavior) = OPTIONAL]; + JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. A filter constraining the jobs to list. Filters are // case-sensitive and have the following syntax: @@ -885,8 +871,7 @@ message UpdateJobRequest { // labels, and the `PATCH` request body would specify the new // value. Note: Currently, labels is the only // field that can be updated. - google.protobuf.FieldMask update_mask = 5 - [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; } // A list of jobs in a project. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto index 724d2a89..e12bd299 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -18,13 +18,48 @@ package google.cloud.dataproc.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.dataproc.v1"; +// Metadata describing the Batch operation. +message BatchOperationMetadata { + // Operation type for Batch resources + enum BatchOperationType { + // Batch operation type is unknown. + BATCH_OPERATION_TYPE_UNSPECIFIED = 0; + + // Batch operation type. + BATCH = 1; + } + + // Name of the batch for the operation. + string batch = 1; + + // Batch UUID for the operation. + string batch_uuid = 2; + + // The time when the operation was created. + google.protobuf.Timestamp create_time = 3; + + // The time when the operation finished. + google.protobuf.Timestamp done_time = 4; + + // The operation type. + BatchOperationType operation_type = 6; + + // Short description of the operation. + string description = 7; + + // Labels associated with the operation. + map labels = 8; + + // Warnings encountered during operation execution. + repeated string warnings = 9; +} + // The status of the operation. message ClusterOperationStatus { // The operation state. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto index 176e4535..954d80d4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.dataproc.v1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; @@ -24,8 +23,80 @@ option java_multiple_files = true; option java_outer_classname = "SharedProto"; option java_package = "com.google.cloud.dataproc.v1"; +// Runtime configuration for a workload. +message RuntimeConfig { + // Optional. A mapping of property names to values, which are used to configure workload + // execution. + map properties = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Environment configuration for a workload. +message EnvironmentConfig { + // Optional. Execution configuration for a workload. + ExecutionConfig execution_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Peripherals configuration that workload has access to. + PeripheralsConfig peripherals_config = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Execution configuration for a workload. +message ExecutionConfig { + // Optional. Service account that used to execute workload. + string service_account = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Network configuration for workload execution. + oneof network { + // Optional. Network URI to connect workload to. + string network_uri = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Subnetwork URI to connect workload to. + string subnetwork_uri = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Tags used for network traffic control. + repeated string network_tags = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Cloud KMS key to use for encryption. + string kms_key = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spark History Server configuration for the workload. +message SparkHistoryServerConfig { + // Optional. Resource name of an existing Dataproc Cluster to act as a Spark History + // Server for the workload. + // + // Example: + // + // * `projects/[project_id]/regions/[region]/clusters/[cluster_name]` + string dataproc_cluster = 1 [ + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Auxiliary services configuration for a workload. +message PeripheralsConfig { + // Optional. Resource name of an existing Dataproc Metastore service. + // + // Example: + // + // * `projects/[project_id]/locations/[region]/services/[service_id]` + string metastore_service = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Spark History Server configuration for the workload. + SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Runtime information about workload execution. +message RuntimeInfo { + // Output only. Map of remote access endpoints (such as web interfaces and APIs) to their + // URIs. + map endpoints = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A URI pointing to the location of the stdout and stderr of the workload. + string output_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Cluster components that can be activated. -// Next ID: 16. enum Component { // Unspecified component. Specifying this will cause Cluster creation to fail. COMPONENT_UNSPECIFIED = 0; @@ -70,3 +141,16 @@ enum Component { // The Zookeeper service. ZOOKEEPER = 8; } + +// Actions in response to failure of a resource associated with a cluster. +enum FailureAction { + // When FailureAction is unspecified, failure action defaults to NO_ACTION. + FAILURE_ACTION_UNSPECIFIED = 0; + + // Take no action on failure to create a cluster resource. NO_ACTION is the + // default. + NO_ACTION = 1; + + // Delete the failed cluster resource. + DELETE = 2; +} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto index ea5bfd05..7c5c3f7d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -36,12 +36,10 @@ option java_package = "com.google.cloud.dataproc.v1"; // Dataproc API. service WorkflowTemplateService { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates" body: "template" @@ -57,8 +55,7 @@ service WorkflowTemplateService { // // Can retrieve previously instantiated template by specifying optional // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -88,8 +85,7 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) - returns (google.longrunning.Operation) { + rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate" body: "*" @@ -109,8 +105,7 @@ service WorkflowTemplateService { // Instantiates a template and begins execution. // // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], + // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], // [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. // // The returned Operation can be used to track execution of @@ -131,9 +126,7 @@ service WorkflowTemplateService { // On successful completion, // [Operation.response][google.longrunning.Operation.response] will be // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate( - InstantiateInlineWorkflowTemplateRequest) - returns (google.longrunning.Operation) { + rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" body: "template" @@ -151,8 +144,7 @@ service WorkflowTemplateService { // Updates (replaces) workflow template. The updated template // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) - returns (WorkflowTemplate) { + rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) { option (google.api.http) = { put: "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}" body: "template" @@ -165,8 +157,7 @@ service WorkflowTemplateService { } // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) - returns (ListWorkflowTemplatesResponse) { + rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/workflowTemplates" additional_bindings { @@ -177,8 +168,7 @@ service WorkflowTemplateService { } // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) - returns (google.protobuf.Empty) { + rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" additional_bindings { @@ -224,12 +214,10 @@ message WorkflowTemplate { int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow @@ -246,8 +234,7 @@ message WorkflowTemplate { map labels = 6 [(google.api.field_behavior) = OPTIONAL]; // Required. WorkflowTemplate scheduling information. - WorkflowTemplatePlacement placement = 7 - [(google.api.field_behavior) = REQUIRED]; + WorkflowTemplatePlacement placement = 7 [(google.api.field_behavior) = REQUIRED]; // Required. The Directed Acyclic Graph of Jobs to submit. repeated OrderedJob jobs = 8 [(google.api.field_behavior) = REQUIRED]; @@ -255,8 +242,7 @@ message WorkflowTemplate { // Optional. Template parameters whose values are substituted into the // template. Values for parameters must be provided when the template is // instantiated. - repeated TemplateParameter parameters = 9 - [(google.api.field_behavior) = OPTIONAL]; + repeated TemplateParameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; // Optional. Timeout duration for the DAG of jobs, expressed in seconds (see // [JSON representation of @@ -268,8 +254,7 @@ message WorkflowTemplate { // [managed // cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), // the cluster is deleted. - google.protobuf.Duration dag_timeout = 10 - [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration dag_timeout = 10 [(google.api.field_behavior) = OPTIONAL]; } // Specifies workflow execution target. @@ -327,8 +312,7 @@ message ClusterSelector { // Required. The cluster labels. Cluster must have all labels // to match. - map cluster_labels = 2 - [(google.api.field_behavior) = REQUIRED]; + map cluster_labels = 2 [(google.api.field_behavior) = REQUIRED]; } // A job executed by the workflow. @@ -338,8 +322,8 @@ message OrderedJob { // // The step id is used as prefix for job id, as job // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] - // field from other steps. + // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other + // steps. // // The id must contain only letters (a-z, A-Z), numbers (0-9), // underscores (_), and hyphens (-). Cannot begin or end with underscore @@ -390,8 +374,7 @@ message OrderedJob { // Optional. The optional list of prerequisite job step_ids. // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 - [(google.api.field_behavior) = OPTIONAL]; + repeated string prerequisite_step_ids = 10 [(google.api.field_behavior) = OPTIONAL]; } // A configurable parameter that replaces one or more fields in the template. @@ -417,10 +400,10 @@ message TemplateParameter { // A field is allowed to appear in at most one parameter's list of field // paths. // - // A field path is similar in syntax to a - // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a - // field path that references the zone field of a workflow template's cluster - // selector would be specified as `placement.clusterSelector.zone`. + // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For example, a field path that references the zone field of a workflow + // template's cluster selector would be specified as + // `placement.clusterSelector.zone`. // // Also, field paths can reference fields using the following syntax: // @@ -527,15 +510,13 @@ message WorkflowMetadata { int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation create_cluster = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow graph. WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation delete_cluster = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow state. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -547,33 +528,25 @@ message WorkflowMetadata { map parameters = 8; // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The UUID of target cluster. string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The timeout duration for the DAG of jobs, expressed in seconds - // (see [JSON representation of + // Output only. The timeout duration for the DAG of jobs, expressed in seconds (see + // [JSON representation of // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration dag_timeout = 12 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG start time, only set for workflows with - // [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when - // DAG begins. - google.protobuf.Timestamp dag_start_time = 13 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG end time, only set for workflows with - // [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when - // DAG ends. - google.protobuf.Timestamp dag_end_time = 14 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Duration dag_timeout = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG + // begins. + google.protobuf.Timestamp dag_start_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends. + google.protobuf.Timestamp dag_end_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The cluster operation triggered by a workflow. @@ -622,8 +595,7 @@ message WorkflowNode { string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string prerequisite_step_ids = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The job id; populated after the node enters RUNNING state. string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -799,8 +771,7 @@ message ListWorkflowTemplatesRequest { // A response to a request to list workflow templates in a project. message ListWorkflowTemplatesResponse { // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated WorkflowTemplate templates = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This token is included in the response if there are more // results to fetch. To fetch additional results, provide this value as the From 3591d6234ab90f97580e0cdf3fd61f512a3f7e9f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 19:52:22 +0000 Subject: [PATCH 319/519] chore: release 2.2.1-SNAPSHOT (#704) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/clirr-ignored-differences.xml | 12 ------------ google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 google-cloud-dataproc/clirr-ignored-differences.xml diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ee07b2b1..3ba5d3ec 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.0 + 2.2.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT
diff --git a/google-cloud-dataproc/clirr-ignored-differences.xml b/google-cloud-dataproc/clirr-ignored-differences.xml deleted file mode 100644 index e7ed09a8..00000000 --- a/google-cloud-dataproc/clirr-ignored-differences.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - 8001 - com/google/cloud/dataproc/v1beta2/* - - - 8001 - com/google/cloud/dataproc/v1beta2/stub/* - - \ No newline at end of file diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index afc5f54a..ea9661f0 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.0 + 2.2.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 4cbc0757..efc2ed11 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index b9521ab3..278cf262 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.0 + 2.2.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 42168b40..3ec5e4be 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.0 + 2.2.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ba37fc24..d69bc3d6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index cc5d56c0..6f0ed171 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.0:2.2.0 -grpc-google-cloud-dataproc-v1:2.2.0:2.2.0 -proto-google-cloud-dataproc-v1:2.2.0:2.2.0 +google-cloud-dataproc:2.2.0:2.2.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.2.0:2.2.1-SNAPSHOT +proto-google-cloud-dataproc-v1:2.2.0:2.2.1-SNAPSHOT From b11826996672cee612b82c561f97f9872bb89a9a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 20:02:24 +0000 Subject: [PATCH 320/519] chore: release 2.2.1 (#717) :robot: I have created a release \*beep\* \*boop\* --- ### [2.2.1](https://www.github.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1) (2021-10-19) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#716](https://www.github.com/googleapis/java-dataproc/issues/716)) ([2ae9ae0](https://www.github.com/googleapis/java-dataproc/commit/2ae9ae0b4f222e67c32a2ea41f1dda6bf2d73cb9)) * update dependency com.google.cloud:google-cloud-storage to v2.1.6 ([#701](https://www.github.com/googleapis/java-dataproc/issues/701)) ([dc7de22](https://www.github.com/googleapis/java-dataproc/commit/dc7de2234aaff6582d9f3c302b7de97671838d4f)) * update dependency com.google.cloud:google-cloud-storage to v2.1.7 ([#709](https://www.github.com/googleapis/java-dataproc/issues/709)) ([dda0313](https://www.github.com/googleapis/java-dataproc/commit/dda03134149ba95f5061dbc60ad7ba9c05cedf38)) * update dependency com.google.cloud:google-cloud-storage to v2.1.8 ([#715](https://www.github.com/googleapis/java-dataproc/issues/715)) ([91cfd37](https://www.github.com/googleapis/java-dataproc/commit/91cfd376bce87b492fdb9319dffb5d109ec62526)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 10 ++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7629c02..9afc29c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [2.2.1](https://www.github.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1) (2021-10-19) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#716](https://www.github.com/googleapis/java-dataproc/issues/716)) ([2ae9ae0](https://www.github.com/googleapis/java-dataproc/commit/2ae9ae0b4f222e67c32a2ea41f1dda6bf2d73cb9)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.6 ([#701](https://www.github.com/googleapis/java-dataproc/issues/701)) ([dc7de22](https://www.github.com/googleapis/java-dataproc/commit/dc7de2234aaff6582d9f3c302b7de97671838d4f)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.7 ([#709](https://www.github.com/googleapis/java-dataproc/issues/709)) ([dda0313](https://www.github.com/googleapis/java-dataproc/commit/dda03134149ba95f5061dbc60ad7ba9c05cedf38)) +* update dependency com.google.cloud:google-cloud-storage to v2.1.8 ([#715](https://www.github.com/googleapis/java-dataproc/issues/715)) ([91cfd37](https://www.github.com/googleapis/java-dataproc/commit/91cfd376bce87b492fdb9319dffb5d109ec62526)) + ## [2.2.0](https://www.github.com/googleapis/java-dataproc/compare/v2.1.4...v2.2.0) (2021-09-22) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3ba5d3ec..695cc810 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.1-SNAPSHOT + 2.2.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.1-SNAPSHOT + 2.2.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index ea9661f0..bc67596d 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.1-SNAPSHOT + 2.2.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.1-SNAPSHOT + 2.2.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index efc2ed11..35419be9 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.1-SNAPSHOT + 2.2.1 diff --git a/pom.xml b/pom.xml index 278cf262..c6a1d7bc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.1-SNAPSHOT + 2.2.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 com.google.cloud google-cloud-dataproc - 2.2.1-SNAPSHOT + 2.2.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 3ec5e4be..e425b47d 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1-SNAPSHOT + 2.2.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.1-SNAPSHOT + 2.2.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d69bc3d6..e914cb84 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.1-SNAPSHOT + 2.2.1 diff --git a/versions.txt b/versions.txt index 6f0ed171..b960f06b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.0:2.2.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.2.0:2.2.1-SNAPSHOT -proto-google-cloud-dataproc-v1:2.2.0:2.2.1-SNAPSHOT +google-cloud-dataproc:2.2.1:2.2.1 +grpc-google-cloud-dataproc-v1:2.2.1:2.2.1 +proto-google-cloud-dataproc-v1:2.2.1:2.2.1 From 4d845ce0b59f8ccc2dd6a45aba86f4b9ac884164 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 20:10:24 +0000 Subject: [PATCH 321/519] chore: release 2.2.2-SNAPSHOT (#718) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 695cc810..8ef139b1 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.1 + 2.2.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index bc67596d..3cfcfff7 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.1 + 2.2.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 35419be9..2e045dcd 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.1 + 2.2.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index c6a1d7bc..85185efc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.1 + 2.2.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e425b47d..ad8d676e 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.1 + 2.2.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.1 + 2.2.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e914cb84..4780c9fe 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index b960f06b..46d10d9b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.1:2.2.1 -grpc-google-cloud-dataproc-v1:2.2.1:2.2.1 -proto-google-cloud-dataproc-v1:2.2.1:2.2.1 +google-cloud-dataproc:2.2.1:2.2.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.2.1:2.2.2-SNAPSHOT +proto-google-cloud-dataproc-v1:2.2.1:2.2.2-SNAPSHOT From 376b0bf38aaefe6f13ee604c830fa6967247bd6f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Oct 2021 17:20:28 +0200 Subject: [PATCH 322/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.1.9 (#721) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.8` -> `2.1.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.9/compatibility-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.1.9/confidence-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.1.9`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​219-httpswwwgithubcomgoogleapisjava-storagecomparev218v219-2021-10-19) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.8...v2.1.9)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 67a3eff7..da17ca1e 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.2.0' +implementation 'com.google.cloud:google-cloud-dataproc:2.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.1" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5735b44e..67f4efbf 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.8 + 2.1.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4780c9fe..5910244a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.8 + 2.1.9 junit From 4e90113e4a92d65547a09df2d808a174dff60e80 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:32:16 +0000 Subject: [PATCH 323/519] chore: release 2.2.2 (#722) :robot: I have created a release \*beep\* \*boop\* --- ### [2.2.2](https://www.github.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2) (2021-10-20) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.1.9 ([#721](https://www.github.com/googleapis/java-dataproc/issues/721)) ([376b0bf](https://www.github.com/googleapis/java-dataproc/commit/376b0bf38aaefe6f13ee604c830fa6967247bd6f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9afc29c0..41f695b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.2.2](https://www.github.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2) (2021-10-20) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.1.9 ([#721](https://www.github.com/googleapis/java-dataproc/issues/721)) ([376b0bf](https://www.github.com/googleapis/java-dataproc/commit/376b0bf38aaefe6f13ee604c830fa6967247bd6f)) + ### [2.2.1](https://www.github.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1) (2021-10-19) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8ef139b1..e97e855e 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.2-SNAPSHOT + 2.2.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.2-SNAPSHOT + 2.2.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 3cfcfff7..1e76b225 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.2-SNAPSHOT + 2.2.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.2-SNAPSHOT + 2.2.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 2e045dcd..c29fb5ae 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.2-SNAPSHOT + 2.2.2 diff --git a/pom.xml b/pom.xml index 85185efc..f5e8f166 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.2-SNAPSHOT + 2.2.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2 com.google.cloud google-cloud-dataproc - 2.2.2-SNAPSHOT + 2.2.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index ad8d676e..48fdef8c 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2-SNAPSHOT + 2.2.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.2-SNAPSHOT + 2.2.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5910244a..0e129a5c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.2-SNAPSHOT + 2.2.2 diff --git a/versions.txt b/versions.txt index 46d10d9b..300e7b59 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.1:2.2.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.2.1:2.2.2-SNAPSHOT -proto-google-cloud-dataproc-v1:2.2.1:2.2.2-SNAPSHOT +google-cloud-dataproc:2.2.2:2.2.2 +grpc-google-cloud-dataproc-v1:2.2.2:2.2.2 +proto-google-cloud-dataproc-v1:2.2.2:2.2.2 From 2ff7e64a79a5da439b2b2724ad7681d2108c272e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:44:16 +0000 Subject: [PATCH 324/519] chore: release 2.2.3-SNAPSHOT (#723) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e97e855e..b3a729eb 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.2 + 2.2.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.2 + 2.2.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1e76b225..ab3a6896 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.2 + 2.2.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.2 + 2.2.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index c29fb5ae..19355ae4 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.2 + 2.2.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index f5e8f166..5b1a6efd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.2 + 2.2.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.2.2 + 2.2.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 48fdef8c..978d487c 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.2 + 2.2.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.2 + 2.2.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0e129a5c..c9c956ab 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.2 + 2.2.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 300e7b59..c6320ba7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.2:2.2.2 -grpc-google-cloud-dataproc-v1:2.2.2:2.2.2 -proto-google-cloud-dataproc-v1:2.2.2:2.2.2 +google-cloud-dataproc:2.2.2:2.2.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.2.2:2.2.3-SNAPSHOT +proto-google-cloud-dataproc-v1:2.2.2:2.2.3-SNAPSHOT From 51cd3d28c7782a255919e71ae708f03d482b365e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Oct 2021 19:06:23 +0200 Subject: [PATCH 325/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.2.1 (#720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.2.0` -> `2.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.1/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.1/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.2.1`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​221-httpswwwgithubcomgoogleapisjava-dataproccomparev220v221-2021-10-19) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da17ca1e..4637b61d 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 67f4efbf..2106feae 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.2.0 + 2.2.1 From 4556a3fc0de8e432c0abd12b5ee0d6b013448b36 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 21 Oct 2021 17:09:27 -0400 Subject: [PATCH 326/519] feat: Add support for dataproc BatchController service (#719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add support for dataproc BatchController service PiperOrigin-RevId: 404333740 Source-Link: https://github.com/googleapis/googleapis/commit/5088bd7856a92022789c1d66f6fb9fe3252868ad Source-Link: https://github.com/googleapis/googleapis-gen/commit/44b870783c1943771bcdec748ae4d5208c3d7f0e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDRiODcwNzgzYzE5NDM3NzFiY2RlYzc0OGFlNGQ1MjA4YzNkN2YwZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../dataproc/v1/BatchControllerClient.java | 732 ++ .../dataproc/v1/BatchControllerSettings.java | 232 + .../cloud/dataproc/v1/gapic_metadata.json | 21 + .../cloud/dataproc/v1/package-info.java | 13 + .../dataproc/v1/stub/BatchControllerStub.java | 76 + .../v1/stub/BatchControllerStubSettings.java | 448 ++ .../GrpcBatchControllerCallableFactory.java | 113 + .../v1/stub/GrpcBatchControllerStub.java | 277 + .../v1/BatchControllerClientTest.java | 468 ++ .../dataproc/v1/MockBatchController.java | 59 + .../dataproc/v1/MockBatchControllerImpl.java | 143 + .../dataproc/v1/BatchControllerGrpc.java | 693 ++ .../com/google/cloud/dataproc/v1/Batch.java | 6770 +++++++++++++++++ .../google/cloud/dataproc/v1/BatchName.java | 223 + .../cloud/dataproc/v1/BatchOrBuilder.java | 694 ++ .../cloud/dataproc/v1/BatchesProto.java | 357 + .../cloud/dataproc/v1/CreateBatchRequest.java | 1364 ++++ .../v1/CreateBatchRequestOrBuilder.java | 164 + .../cloud/dataproc/v1/DeleteBatchRequest.java | 649 ++ .../v1/DeleteBatchRequestOrBuilder.java | 54 + .../cloud/dataproc/v1/GetBatchRequest.java | 648 ++ .../dataproc/v1/GetBatchRequestOrBuilder.java | 54 + .../cloud/dataproc/v1/ListBatchesRequest.java | 933 +++ .../v1/ListBatchesRequestOrBuilder.java | 96 + .../dataproc/v1/ListBatchesResponse.java | 1133 +++ .../v1/ListBatchesResponseOrBuilder.java | 103 + .../cloud/dataproc/v1/PySparkBatch.java | 2122 ++++++ .../dataproc/v1/PySparkBatchOrBuilder.java | 335 + .../google/cloud/dataproc/v1/SparkBatch.java | 2198 ++++++ .../dataproc/v1/SparkBatchOrBuilder.java | 332 + .../google/cloud/dataproc/v1/SparkRBatch.java | 1541 ++++ .../dataproc/v1/SparkRBatchOrBuilder.java | 225 + .../cloud/dataproc/v1/SparkSqlBatch.java | 1275 ++++ .../dataproc/v1/SparkSqlBatchOrBuilder.java | 165 + .../google/cloud/dataproc/v1/batches.proto | 372 + 35 files changed, 25082 insertions(+) create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java create mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java new file mode 100644 index 00000000..c438bdd1 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java @@ -0,0 +1,732 @@ +/* + * 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.dataproc.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.stub.BatchControllerStub; +import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The BatchController provides methods to manage batch workloads. + * + *

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 (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+ *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+ *   Batch response = batchControllerClient.getBatch(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the BatchControllerClient 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 BatchControllerSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * BatchControllerSettings batchControllerSettings =
+ *     BatchControllerSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BatchControllerClient batchControllerClient =
+ *     BatchControllerClient.create(batchControllerSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * BatchControllerSettings batchControllerSettings =
+ *     BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BatchControllerClient batchControllerClient =
+ *     BatchControllerClient.create(batchControllerSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class BatchControllerClient implements BackgroundResource { + private final BatchControllerSettings settings; + private final BatchControllerStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of BatchControllerClient with default settings. */ + public static final BatchControllerClient create() throws IOException { + return create(BatchControllerSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BatchControllerClient, 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 BatchControllerClient create(BatchControllerSettings settings) + throws IOException { + return new BatchControllerClient(settings); + } + + /** + * Constructs an instance of BatchControllerClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(BatchControllerSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final BatchControllerClient create(BatchControllerStub stub) { + return new BatchControllerClient(stub); + } + + /** + * Constructs an instance of BatchControllerClient, 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 BatchControllerClient(BatchControllerSettings settings) throws IOException { + this.settings = settings; + this.stub = ((BatchControllerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected BatchControllerClient(BatchControllerStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final BatchControllerSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public BatchControllerStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch workload that executes asynchronously. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Batch batch = Batch.newBuilder().build();
+   *   String batchId = "batchId-331744779";
+   *   Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this batch will be created. + * @param batch Required. The batch to create. + * @param batchId Optional. The ID to use for the batch, which will become the final component of + * the batch's resource name. + *

This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBatchAsync( + LocationName parent, Batch batch, String batchId) { + CreateBatchRequest request = + CreateBatchRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBatch(batch) + .setBatchId(batchId) + .build(); + return createBatchAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch workload that executes asynchronously. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   String parent = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   Batch batch = Batch.newBuilder().build();
+   *   String batchId = "batchId-331744779";
+   *   Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this batch will be created. + * @param batch Required. The batch to create. + * @param batchId Optional. The ID to use for the batch, which will become the final component of + * the batch's resource name. + *

This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBatchAsync( + String parent, Batch batch, String batchId) { + CreateBatchRequest request = + CreateBatchRequest.newBuilder() + .setParent(parent) + .setBatch(batch) + .setBatchId(batchId) + .build(); + return createBatchAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch workload that executes asynchronously. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   CreateBatchRequest request =
+   *       CreateBatchRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setBatch(Batch.newBuilder().build())
+   *           .setBatchId("batchId-331744779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Batch response = batchControllerClient.createBatchAsync(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 createBatchAsync( + CreateBatchRequest request) { + return createBatchOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch workload that executes asynchronously. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   CreateBatchRequest request =
+   *       CreateBatchRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setBatch(Batch.newBuilder().build())
+   *           .setBatchId("batchId-331744779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       batchControllerClient.createBatchOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Batch response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBatchOperationCallable() { + return stub.createBatchOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a batch workload that executes asynchronously. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   CreateBatchRequest request =
+   *       CreateBatchRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setBatch(Batch.newBuilder().build())
+   *           .setBatchId("batchId-331744779")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = batchControllerClient.createBatchCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBatchCallable() { + return stub.createBatchCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the batch workload resource representation. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+   *   Batch response = batchControllerClient.getBatch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the batch to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Batch getBatch(BatchName name) { + GetBatchRequest request = + GetBatchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBatch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the batch workload resource representation. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   Batch response = batchControllerClient.getBatch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the batch to retrieve. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Batch getBatch(String name) { + GetBatchRequest request = GetBatchRequest.newBuilder().setName(name).build(); + return getBatch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the batch workload resource representation. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   GetBatchRequest request =
+   *       GetBatchRequest.newBuilder()
+   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .build();
+   *   Batch response = batchControllerClient.getBatch(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 Batch getBatch(GetBatchRequest request) { + return getBatchCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the batch workload resource representation. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   GetBatchRequest request =
+   *       GetBatchRequest.newBuilder()
+   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .build();
+   *   ApiFuture future = batchControllerClient.getBatchCallable().futureCall(request);
+   *   // Do something.
+   *   Batch response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBatchCallable() { + return stub.getBatchCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists batch workloads. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of batches. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBatchesPagedResponse listBatches(LocationName parent) { + ListBatchesRequest request = + ListBatchesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBatches(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists batch workloads. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   String parent = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of batches. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBatchesPagedResponse listBatches(String parent) { + ListBatchesRequest request = ListBatchesRequest.newBuilder().setParent(parent).build(); + return listBatches(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists batch workloads. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   ListBatchesRequest request =
+   *       ListBatchesRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Batch element : batchControllerClient.listBatches(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 ListBatchesPagedResponse listBatches(ListBatchesRequest request) { + return listBatchesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists batch workloads. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   ListBatchesRequest request =
+   *       ListBatchesRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       batchControllerClient.listBatchesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Batch element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBatchesPagedCallable() { + return stub.listBatchesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists batch workloads. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   ListBatchesRequest request =
+   *       ListBatchesRequest.newBuilder()
+   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBatchesResponse response = batchControllerClient.listBatchesCallable().call(request);
+   *     for (Batch element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBatchesCallable() { + return stub.listBatchesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails + * and the response returns `FAILED_PRECONDITION`. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+   *   batchControllerClient.deleteBatch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the batch resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBatch(BatchName name) { + DeleteBatchRequest request = + DeleteBatchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteBatch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails + * and the response returns `FAILED_PRECONDITION`. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   batchControllerClient.deleteBatch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the batch resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBatch(String name) { + DeleteBatchRequest request = DeleteBatchRequest.newBuilder().setName(name).build(); + deleteBatch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails + * and the response returns `FAILED_PRECONDITION`. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   DeleteBatchRequest request =
+   *       DeleteBatchRequest.newBuilder()
+   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .build();
+   *   batchControllerClient.deleteBatch(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBatch(DeleteBatchRequest request) { + deleteBatchCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails + * and the response returns `FAILED_PRECONDITION`. + * + *

Sample code: + * + *

{@code
+   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+   *   DeleteBatchRequest request =
+   *       DeleteBatchRequest.newBuilder()
+   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .build();
+   *   ApiFuture future = batchControllerClient.deleteBatchCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBatchCallable() { + return stub.deleteBatchCallable(); + } + + @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 ListBatchesPagedResponse + extends AbstractPagedListResponse< + ListBatchesRequest, + ListBatchesResponse, + Batch, + ListBatchesPage, + ListBatchesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBatchesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBatchesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBatchesPagedResponse(ListBatchesPage page) { + super(page, ListBatchesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBatchesPage + extends AbstractPage { + + private ListBatchesPage( + PageContext context, + ListBatchesResponse response) { + super(context, response); + } + + private static ListBatchesPage createEmptyPage() { + return new ListBatchesPage(null, null); + } + + @Override + protected ListBatchesPage createPage( + PageContext context, + ListBatchesResponse response) { + return new ListBatchesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBatchesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBatchesRequest, + ListBatchesResponse, + Batch, + ListBatchesPage, + ListBatchesFixedSizeCollection> { + + private ListBatchesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBatchesFixedSizeCollection createEmptyCollection() { + return new ListBatchesFixedSizeCollection(null, 0); + } + + @Override + protected ListBatchesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBatchesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java new file mode 100644 index 00000000..0aceb61d --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java @@ -0,0 +1,232 @@ +/* + * 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.dataproc.v1; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +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.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BatchControllerClient}. + * + *

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

    + *
  • The default service address (dataproc.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 getBatch to 30 seconds: + * + *

{@code
+ * BatchControllerSettings.Builder batchControllerSettingsBuilder =
+ *     BatchControllerSettings.newBuilder();
+ * batchControllerSettingsBuilder
+ *     .getBatchSettings()
+ *     .setRetrySettings(
+ *         batchControllerSettingsBuilder
+ *             .getBatchSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class BatchControllerSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createBatch. */ + public UnaryCallSettings createBatchSettings() { + return ((BatchControllerStubSettings) getStubSettings()).createBatchSettings(); + } + + /** Returns the object with the settings used for calls to createBatch. */ + public OperationCallSettings + createBatchOperationSettings() { + return ((BatchControllerStubSettings) getStubSettings()).createBatchOperationSettings(); + } + + /** Returns the object with the settings used for calls to getBatch. */ + public UnaryCallSettings getBatchSettings() { + return ((BatchControllerStubSettings) getStubSettings()).getBatchSettings(); + } + + /** Returns the object with the settings used for calls to listBatches. */ + public PagedCallSettings + listBatchesSettings() { + return ((BatchControllerStubSettings) getStubSettings()).listBatchesSettings(); + } + + /** Returns the object with the settings used for calls to deleteBatch. */ + public UnaryCallSettings deleteBatchSettings() { + return ((BatchControllerStubSettings) getStubSettings()).deleteBatchSettings(); + } + + public static final BatchControllerSettings create(BatchControllerStubSettings stub) + throws IOException { + return new BatchControllerSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BatchControllerStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BatchControllerStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BatchControllerStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BatchControllerStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return BatchControllerStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BatchControllerStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BatchControllerStubSettings.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 BatchControllerSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BatchControllerSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BatchControllerStubSettings.newBuilder(clientContext)); + } + + protected Builder(BatchControllerSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BatchControllerStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BatchControllerStubSettings.newBuilder()); + } + + public BatchControllerStubSettings.Builder getStubSettingsBuilder() { + return ((BatchControllerStubSettings.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 createBatch. */ + public UnaryCallSettings.Builder createBatchSettings() { + return getStubSettingsBuilder().createBatchSettings(); + } + + /** Returns the builder for the settings used for calls to createBatch. */ + public OperationCallSettings.Builder + createBatchOperationSettings() { + return getStubSettingsBuilder().createBatchOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getBatch. */ + public UnaryCallSettings.Builder getBatchSettings() { + return getStubSettingsBuilder().getBatchSettings(); + } + + /** Returns the builder for the settings used for calls to listBatches. */ + public PagedCallSettings.Builder< + ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> + listBatchesSettings() { + return getStubSettingsBuilder().listBatchesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBatch. */ + public UnaryCallSettings.Builder deleteBatchSettings() { + return getStubSettingsBuilder().deleteBatchSettings(); + } + + @Override + public BatchControllerSettings build() throws IOException { + return new BatchControllerSettings(this); + } + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json index 1b98e6d0..26e0eeb5 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json @@ -29,6 +29,27 @@ } } }, + "BatchController": { + "clients": { + "grpc": { + "libraryClient": "BatchControllerClient", + "rpcs": { + "CreateBatch": { + "methods": ["createBatchAsync", "createBatchAsync", "createBatchAsync", "createBatchOperationCallable", "createBatchCallable"] + }, + "DeleteBatch": { + "methods": ["deleteBatch", "deleteBatch", "deleteBatch", "deleteBatchCallable"] + }, + "GetBatch": { + "methods": ["getBatch", "getBatch", "getBatch", "getBatchCallable"] + }, + "ListBatches": { + "methods": ["listBatches", "listBatches", "listBatches", "listBatchesPagedCallable", "listBatchesCallable"] + } + } + } + } + }, "ClusterController": { "clients": { "grpc": { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java index 246d9b5f..ff77c4df 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java @@ -33,6 +33,19 @@ * } * } * + *

======================= BatchControllerClient ======================= + * + *

Service Description: The BatchController provides methods to manage batch workloads. + * + *

Sample for BatchControllerClient: + * + *

{@code
+ * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
+ *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+ *   Batch response = batchControllerClient.getBatch(name);
+ * }
+ * }
+ * *

======================= ClusterControllerClient ======================= * *

Service Description: The ClusterControllerService provides methods to manage clusters of diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java new file mode 100644 index 00000000..3c8721b8 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java @@ -0,0 +1,76 @@ +/* + * 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.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +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.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchOperationMetadata; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.cloud.dataproc.v1.GetBatchRequest; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.ListBatchesResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BatchController service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class BatchControllerStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable + createBatchOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createBatchOperationCallable()"); + } + + public UnaryCallable createBatchCallable() { + throw new UnsupportedOperationException("Not implemented: createBatchCallable()"); + } + + public UnaryCallable getBatchCallable() { + throw new UnsupportedOperationException("Not implemented: getBatchCallable()"); + } + + public UnaryCallable listBatchesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBatchesPagedCallable()"); + } + + public UnaryCallable listBatchesCallable() { + throw new UnsupportedOperationException("Not implemented: listBatchesCallable()"); + } + + public UnaryCallable deleteBatchCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBatchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java new file mode 100644 index 00000000..793163de --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java @@ -0,0 +1,448 @@ +/* + * 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.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +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.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchOperationMetadata; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.cloud.dataproc.v1.GetBatchRequest; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.ListBatchesResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BatchControllerStub}. + * + *

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

    + *
  • The default service address (dataproc.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 getBatch to 30 seconds: + * + *

{@code
+ * BatchControllerStubSettings.Builder batchControllerSettingsBuilder =
+ *     BatchControllerStubSettings.newBuilder();
+ * batchControllerSettingsBuilder
+ *     .getBatchSettings()
+ *     .setRetrySettings(
+ *         batchControllerSettingsBuilder
+ *             .getBatchSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class BatchControllerStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createBatchSettings; + private final OperationCallSettings + createBatchOperationSettings; + private final UnaryCallSettings getBatchSettings; + private final PagedCallSettings + listBatchesSettings; + private final UnaryCallSettings deleteBatchSettings; + + private static final PagedListDescriptor + LIST_BATCHES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBatchesRequest injectToken(ListBatchesRequest payload, String token) { + return ListBatchesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBatchesRequest injectPageSize(ListBatchesRequest payload, int pageSize) { + return ListBatchesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBatchesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBatchesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBatchesResponse payload) { + return payload.getBatchesList() == null + ? ImmutableList.of() + : payload.getBatchesList(); + } + }; + + private static final PagedListResponseFactory< + ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> + LIST_BATCHES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBatchesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BATCHES_PAGE_STR_DESC, request, context); + return ListBatchesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createBatch. */ + public UnaryCallSettings createBatchSettings() { + return createBatchSettings; + } + + /** Returns the object with the settings used for calls to createBatch. */ + public OperationCallSettings + createBatchOperationSettings() { + return createBatchOperationSettings; + } + + /** Returns the object with the settings used for calls to getBatch. */ + public UnaryCallSettings getBatchSettings() { + return getBatchSettings; + } + + /** Returns the object with the settings used for calls to listBatches. */ + public PagedCallSettings + listBatchesSettings() { + return listBatchesSettings; + } + + /** Returns the object with the settings used for calls to deleteBatch. */ + public UnaryCallSettings deleteBatchSettings() { + return deleteBatchSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public BatchControllerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcBatchControllerStub.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 "dataproc.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataproc.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(BatchControllerStubSettings.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 BatchControllerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createBatchSettings = settingsBuilder.createBatchSettings().build(); + createBatchOperationSettings = settingsBuilder.createBatchOperationSettings().build(); + getBatchSettings = settingsBuilder.getBatchSettings().build(); + listBatchesSettings = settingsBuilder.listBatchesSettings().build(); + deleteBatchSettings = settingsBuilder.deleteBatchSettings().build(); + } + + /** Builder for BatchControllerStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder createBatchSettings; + private final OperationCallSettings.Builder + createBatchOperationSettings; + private final UnaryCallSettings.Builder getBatchSettings; + private final PagedCallSettings.Builder< + ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> + listBatchesSettings; + private final UnaryCallSettings.Builder deleteBatchSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBatchOperationSettings = OperationCallSettings.newBuilder(); + getBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listBatchesSettings = PagedCallSettings.newBuilder(LIST_BATCHES_PAGE_STR_FACT); + deleteBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createBatchSettings, getBatchSettings, listBatchesSettings, deleteBatchSettings); + initDefaults(this); + } + + protected Builder(BatchControllerStubSettings settings) { + super(settings); + + createBatchSettings = settings.createBatchSettings.toBuilder(); + createBatchOperationSettings = settings.createBatchOperationSettings.toBuilder(); + getBatchSettings = settings.getBatchSettings.toBuilder(); + listBatchesSettings = settings.listBatchesSettings.toBuilder(); + deleteBatchSettings = settings.deleteBatchSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createBatchSettings, getBatchSettings, listBatchesSettings, deleteBatchSettings); + } + + 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 + .createBatchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getBatchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listBatchesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteBatchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createBatchOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Batch.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BatchOperationMetadata.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; + } + + /** + * 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 createBatch. */ + public UnaryCallSettings.Builder createBatchSettings() { + return createBatchSettings; + } + + /** Returns the builder for the settings used for calls to createBatch. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createBatchOperationSettings() { + return createBatchOperationSettings; + } + + /** Returns the builder for the settings used for calls to getBatch. */ + public UnaryCallSettings.Builder getBatchSettings() { + return getBatchSettings; + } + + /** Returns the builder for the settings used for calls to listBatches. */ + public PagedCallSettings.Builder< + ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> + listBatchesSettings() { + return listBatchesSettings; + } + + /** Returns the builder for the settings used for calls to deleteBatch. */ + public UnaryCallSettings.Builder deleteBatchSettings() { + return deleteBatchSettings; + } + + @Override + public BatchControllerStubSettings build() throws IOException { + return new BatchControllerStubSettings(this); + } + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java new file mode 100644 index 00000000..0a5ca6af --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.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.dataproc.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the BatchController service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcBatchControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java new file mode 100644 index 00000000..c7b481b6 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java @@ -0,0 +1,277 @@ +/* + * 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.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchOperationMetadata; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.cloud.dataproc.v1.GetBatchRequest; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.ListBatchesResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the BatchController service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcBatchControllerStub extends BatchControllerStub { + private static final MethodDescriptor createBatchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.BatchController/CreateBatch") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBatchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getBatchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.BatchController/GetBatch") + .setRequestMarshaller(ProtoUtils.marshaller(GetBatchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Batch.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listBatchesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.BatchController/ListBatches") + .setRequestMarshaller(ProtoUtils.marshaller(ListBatchesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBatchesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteBatchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataproc.v1.BatchController/DeleteBatch") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteBatchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private final UnaryCallable createBatchCallable; + private final OperationCallable + createBatchOperationCallable; + private final UnaryCallable getBatchCallable; + private final UnaryCallable listBatchesCallable; + private final UnaryCallable + listBatchesPagedCallable; + private final UnaryCallable deleteBatchCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcBatchControllerStub create(BatchControllerStubSettings settings) + throws IOException { + return new GrpcBatchControllerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcBatchControllerStub create(ClientContext clientContext) + throws IOException { + return new GrpcBatchControllerStub( + BatchControllerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcBatchControllerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcBatchControllerStub( + BatchControllerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcBatchControllerStub, 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 GrpcBatchControllerStub( + BatchControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcBatchControllerCallableFactory()); + } + + /** + * Constructs an instance of GrpcBatchControllerStub, 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 GrpcBatchControllerStub( + BatchControllerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createBatchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBatchMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getBatchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBatchMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listBatchesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBatchesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteBatchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBatchMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.createBatchCallable = + callableFactory.createUnaryCallable( + createBatchTransportSettings, settings.createBatchSettings(), clientContext); + this.createBatchOperationCallable = + callableFactory.createOperationCallable( + createBatchTransportSettings, + settings.createBatchOperationSettings(), + clientContext, + operationsStub); + this.getBatchCallable = + callableFactory.createUnaryCallable( + getBatchTransportSettings, settings.getBatchSettings(), clientContext); + this.listBatchesCallable = + callableFactory.createUnaryCallable( + listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); + this.listBatchesPagedCallable = + callableFactory.createPagedCallable( + listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); + this.deleteBatchCallable = + callableFactory.createUnaryCallable( + deleteBatchTransportSettings, settings.deleteBatchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createBatchCallable() { + return createBatchCallable; + } + + @Override + public OperationCallable + createBatchOperationCallable() { + return createBatchOperationCallable; + } + + @Override + public UnaryCallable getBatchCallable() { + return getBatchCallable; + } + + @Override + public UnaryCallable listBatchesCallable() { + return listBatchesCallable; + } + + @Override + public UnaryCallable listBatchesPagedCallable() { + return listBatchesPagedCallable; + } + + @Override + public UnaryCallable deleteBatchCallable() { + return deleteBatchCallable; + } + + @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java new file mode 100644 index 00000000..e8825b6f --- /dev/null +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java @@ -0,0 +1,468 @@ +/* + * 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.dataproc.v1; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BatchControllerClientTest { + private static MockBatchController mockBatchController; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private BatchControllerClient client; + + @BeforeClass + public static void startStaticServer() { + mockBatchController = new MockBatchController(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockBatchController)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + BatchControllerSettings settings = + BatchControllerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BatchControllerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createBatchTest() throws Exception { + Batch expectedResponse = + Batch.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setRuntimeInfo(RuntimeInfo.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .putAllLabels(new HashMap()) + .setRuntimeConfig(RuntimeConfig.newBuilder().build()) + .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) + .setOperation("operation1662702951") + .addAllStateHistory(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBatchTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBatchController.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + + Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBatchRequest actualRequest = ((CreateBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(batch, actualRequest.getBatch()); + Assert.assertEquals(batchId, actualRequest.getBatchId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBatchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + client.createBatchAsync(parent, batch, batchId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBatchTest2() throws Exception { + Batch expectedResponse = + Batch.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setRuntimeInfo(RuntimeInfo.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .putAllLabels(new HashMap()) + .setRuntimeConfig(RuntimeConfig.newBuilder().build()) + .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) + .setOperation("operation1662702951") + .addAllStateHistory(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBatchTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBatchController.addResponse(resultOperation); + + String parent = "parent-995424086"; + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + + Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBatchRequest actualRequest = ((CreateBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(batch, actualRequest.getBatch()); + Assert.assertEquals(batchId, actualRequest.getBatchId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBatchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + String parent = "parent-995424086"; + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + client.createBatchAsync(parent, batch, batchId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getBatchTest() throws Exception { + Batch expectedResponse = + Batch.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setRuntimeInfo(RuntimeInfo.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .putAllLabels(new HashMap()) + .setRuntimeConfig(RuntimeConfig.newBuilder().build()) + .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) + .setOperation("operation1662702951") + .addAllStateHistory(new ArrayList()) + .build(); + mockBatchController.addResponse(expectedResponse); + + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + + Batch actualResponse = client.getBatch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBatchRequest actualRequest = ((GetBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBatchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + client.getBatch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBatchTest2() throws Exception { + Batch expectedResponse = + Batch.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .setUuid("uuid3601339") + .setCreateTime(Timestamp.newBuilder().build()) + .setRuntimeInfo(RuntimeInfo.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTime(Timestamp.newBuilder().build()) + .setCreator("creator1028554796") + .putAllLabels(new HashMap()) + .setRuntimeConfig(RuntimeConfig.newBuilder().build()) + .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) + .setOperation("operation1662702951") + .addAllStateHistory(new ArrayList()) + .build(); + mockBatchController.addResponse(expectedResponse); + + String name = "name3373707"; + + Batch actualResponse = client.getBatch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBatchRequest actualRequest = ((GetBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBatchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + String name = "name3373707"; + client.getBatch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBatchesTest() throws Exception { + Batch responsesElement = Batch.newBuilder().build(); + ListBatchesResponse expectedResponse = + ListBatchesResponse.newBuilder() + .setNextPageToken("") + .addAllBatches(Arrays.asList(responsesElement)) + .build(); + mockBatchController.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBatchesRequest actualRequest = ((ListBatchesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBatchesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBatches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBatchesTest2() throws Exception { + Batch responsesElement = Batch.newBuilder().build(); + ListBatchesResponse expectedResponse = + ListBatchesResponse.newBuilder() + .setNextPageToken("") + .addAllBatches(Arrays.asList(responsesElement)) + .build(); + mockBatchController.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBatchesRequest actualRequest = ((ListBatchesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBatchesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBatches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBatchTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBatchController.addResponse(expectedResponse); + + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + + client.deleteBatch(name); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBatchRequest actualRequest = ((DeleteBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBatchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + client.deleteBatch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBatchTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockBatchController.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBatch(name); + + List actualRequests = mockBatchController.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBatchRequest actualRequest = ((DeleteBatchRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBatchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBatchController.addException(exception); + + try { + String name = "name3373707"; + client.deleteBatch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java new file mode 100644 index 00000000..0d35efbd --- /dev/null +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.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.dataproc.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBatchController implements MockGrpcService { + private final MockBatchControllerImpl serviceImpl; + + public MockBatchController() { + serviceImpl = new MockBatchControllerImpl(); + } + + @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java new file mode 100644 index 00000000..ae3b2c9d --- /dev/null +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java @@ -0,0 +1,143 @@ +/* + * 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.dataproc.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dataproc.v1.BatchControllerGrpc.BatchControllerImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBatchControllerImpl extends BatchControllerImplBase { + private List requests; + private Queue responses; + + public MockBatchControllerImpl() { + 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 createBatch(CreateBatchRequest 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 CreateBatch, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBatch(GetBatchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Batch) { + requests.add(request); + responseObserver.onNext(((Batch) 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 GetBatch, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Batch.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBatches( + ListBatchesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBatchesResponse) { + requests.add(request); + responseObserver.onNext(((ListBatchesResponse) 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 ListBatches, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBatchesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBatch(DeleteBatchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBatch, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java new file mode 100644 index 00000000..a7d29c06 --- /dev/null +++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java @@ -0,0 +1,693 @@ +/* + * 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.dataproc.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The BatchController provides methods to manage batch workloads.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataproc/v1/batches.proto") +public final class BatchControllerGrpc { + + private BatchControllerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBatch", + requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> + getCreateBatchMethod; + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { + BatchControllerGrpc.getCreateBatchMethod = + getCreateBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("CreateBatch")) + .build(); + } + } + } + return getCreateBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBatch", + requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, + responseType = com.google.cloud.dataproc.v1.Batch.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> + getGetBatchMethod; + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { + BatchControllerGrpc.getGetBatchMethod = + getGetBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) + .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) + .build(); + } + } + } + return getGetBatchMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBatches", + requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, + responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse> + getListBatchesMethod; + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { + BatchControllerGrpc.getListBatchesMethod = + getListBatchesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.ListBatchesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("ListBatches")) + .build(); + } + } + } + return getListBatchesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", + requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> + getDeleteBatchMethod; + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + synchronized (BatchControllerGrpc.class) { + if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { + BatchControllerGrpc.getDeleteBatchMethod = + getDeleteBatchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new BatchControllerMethodDescriptorSupplier("DeleteBatch")) + .build(); + } + } + } + return getDeleteBatchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BatchControllerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + }; + return BatchControllerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BatchControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + }; + return BatchControllerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BatchControllerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BatchControllerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + }; + return BatchControllerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public abstract static class BatchControllerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBatchMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBatchesMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBatchMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.CreateBatchRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_BATCH))) + .addMethod( + getGetBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.GetBatchRequest, + com.google.cloud.dataproc.v1.Batch>(this, METHODID_GET_BATCH))) + .addMethod( + getListBatchesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.ListBatchesRequest, + com.google.cloud.dataproc.v1.ListBatchesResponse>( + this, METHODID_LIST_BATCHES))) + .addMethod( + getDeleteBatchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_BATCH))) + .build(); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerStub + extends io.grpc.stub.AbstractAsyncStub { + private BatchControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public void createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public void getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public void listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public void deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BatchControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createBatch( + com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBatchMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.cloud.dataproc.v1.Batch getBatch( + com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBatchMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( + com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBatchesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.protobuf.Empty deleteBatch( + com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBatchMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The BatchController provides methods to manage batch workloads.
+   * 
+ */ + public static final class BatchControllerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BatchControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BatchControllerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BatchControllerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a batch workload that executes asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the batch workload resource representation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists batch workloads.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1.ListBatchesResponse> + listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the batch workload resource. If the batch is not in terminal state,
+     * the delete fails and the response returns `FAILED_PRECONDITION`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_BATCH = 0; + private static final int METHODID_GET_BATCH = 1; + private static final int METHODID_LIST_BATCHES = 2; + private static final int METHODID_DELETE_BATCH = 3; + + 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 BatchControllerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BatchControllerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_BATCH: + serviceImpl.createBatch( + (com.google.cloud.dataproc.v1.CreateBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BATCH: + serviceImpl.getBatch( + (com.google.cloud.dataproc.v1.GetBatchRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BATCHES: + serviceImpl.listBatches( + (com.google.cloud.dataproc.v1.ListBatchesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BATCH: + serviceImpl.deleteBatch( + (com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BatchControllerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BatchController"); + } + } + + private static final class BatchControllerFileDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier { + BatchControllerFileDescriptorSupplier() {} + } + + private static final class BatchControllerMethodDescriptorSupplier + extends BatchControllerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) + .addMethod(getCreateBatchMethod()) + .addMethod(getGetBatchMethod()) + .addMethod(getListBatchesMethod()) + .addMethod(getDeleteBatchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java new file mode 100644 index 00000000..56914113 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java @@ -0,0 +1,6770 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A representation of a batch workload in the service.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.Batch} + */ +public final class Batch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch) + BatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use Batch.newBuilder() to construct. + private Batch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Batch() { + name_ = ""; + uuid_ = ""; + state_ = 0; + stateMessage_ = ""; + creator_ = ""; + operation_ = ""; + stateHistory_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Batch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Batch( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + uuid_ = s; + break; + } + case 26: + { + 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 34: + { + com.google.cloud.dataproc.v1.PySparkBatch.Builder subBuilder = null; + if (batchConfigCase_ == 4) { + subBuilder = ((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_).toBuilder(); + } + batchConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.PySparkBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); + batchConfig_ = subBuilder.buildPartial(); + } + batchConfigCase_ = 4; + break; + } + case 42: + { + com.google.cloud.dataproc.v1.SparkBatch.Builder subBuilder = null; + if (batchConfigCase_ == 5) { + subBuilder = ((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_).toBuilder(); + } + batchConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.SparkBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); + batchConfig_ = subBuilder.buildPartial(); + } + batchConfigCase_ = 5; + break; + } + case 50: + { + com.google.cloud.dataproc.v1.SparkRBatch.Builder subBuilder = null; + if (batchConfigCase_ == 6) { + subBuilder = ((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_).toBuilder(); + } + batchConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.SparkRBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); + batchConfig_ = subBuilder.buildPartial(); + } + batchConfigCase_ = 6; + break; + } + case 58: + { + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder subBuilder = null; + if (batchConfigCase_ == 7) { + subBuilder = + ((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_).toBuilder(); + } + batchConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.SparkSqlBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); + batchConfig_ = subBuilder.buildPartial(); + } + batchConfigCase_ = 7; + break; + } + case 66: + { + com.google.cloud.dataproc.v1.RuntimeInfo.Builder subBuilder = null; + if (runtimeInfo_ != null) { + subBuilder = runtimeInfo_.toBuilder(); + } + runtimeInfo_ = + input.readMessage( + com.google.cloud.dataproc.v1.RuntimeInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtimeInfo_); + runtimeInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 72: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + stateMessage_ = s; + break; + } + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (stateTime_ != null) { + subBuilder = stateTime_.toBuilder(); + } + stateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stateTime_); + stateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + creator_ = s; + break; + } + case 106: + { + 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 114: + { + com.google.cloud.dataproc.v1.RuntimeConfig.Builder subBuilder = null; + if (runtimeConfig_ != null) { + subBuilder = runtimeConfig_.toBuilder(); + } + runtimeConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.RuntimeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtimeConfig_); + runtimeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder subBuilder = null; + if (environmentConfig_ != null) { + subBuilder = environmentConfig_.toBuilder(); + } + environmentConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.EnvironmentConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(environmentConfig_); + environmentConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + operation_ = s; + break; + } + case 138: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + stateHistory_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + stateHistory_.add( + input.readMessage( + com.google.cloud.dataproc.v1.Batch.StateHistory.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_ & 0x00000002) != 0)) { + stateHistory_ = java.util.Collections.unmodifiableList(stateHistory_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 13: + 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.Batch.class, + com.google.cloud.dataproc.v1.Batch.Builder.class); + } + + /** + * + * + *
+   * The batch state.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.Batch.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The batch state is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The batch is created before running.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * The batch is running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The batch is cancelling.
+     * 
+ * + * CANCELLING = 3; + */ + CANCELLING(3), + /** + * + * + *
+     * The batch cancellation was successful.
+     * 
+ * + * CANCELLED = 4; + */ + CANCELLED(4), + /** + * + * + *
+     * The batch completed successfully.
+     * 
+ * + * SUCCEEDED = 5; + */ + SUCCEEDED(5), + /** + * + * + *
+     * The batch is no longer running due to an error.
+     * 
+ * + * FAILED = 6; + */ + FAILED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The batch state is unknown.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The batch is created before running.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * The batch is running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The batch is cancelling.
+     * 
+ * + * CANCELLING = 3; + */ + public static final int CANCELLING_VALUE = 3; + /** + * + * + *
+     * The batch cancellation was successful.
+     * 
+ * + * CANCELLED = 4; + */ + public static final int CANCELLED_VALUE = 4; + /** + * + * + *
+     * The batch completed successfully.
+     * 
+ * + * SUCCEEDED = 5; + */ + public static final int SUCCEEDED_VALUE = 5; + /** + * + * + *
+     * The batch is no longer running due to an error.
+     * 
+ * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 PENDING; + case 2: + return RUNNING; + case 3: + return CANCELLING; + case 4: + return CANCELLED; + case 5: + return SUCCEEDED; + case 6: + 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.dataproc.v1.Batch.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.dataproc.v1.Batch.State) + } + + public interface StateHistoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch.StateHistory) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The state of the batch at this point in history.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+     * Output only. The state of the batch at this point in history.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataproc.v1.Batch.State getState(); + + /** + * + * + *
+     * Output only. Details about the state at this point in history.
+     * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + java.lang.String getStateMessage(); + /** + * + * + *
+     * Output only. Details about the state at this point in history.
+     * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + com.google.protobuf.ByteString getStateMessageBytes(); + + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateStartTime field is set. + */ + boolean hasStateStartTime(); + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateStartTime. + */ + com.google.protobuf.Timestamp getStateStartTime(); + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); + } + /** + * + * + *
+   * Historical state information.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} + */ + public static final class StateHistory extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch.StateHistory) + StateHistoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use StateHistory.newBuilder() to construct. + private StateHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StateHistory() { + state_ = 0; + stateMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StateHistory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StateHistory( + 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 8: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + stateMessage_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (stateStartTime_ != null) { + subBuilder = stateStartTime_.toBuilder(); + } + stateStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stateStartTime_); + stateStartTime_ = 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.Batch.StateHistory.class, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + * + * + *
+     * Output only. The state of the batch at this point in history.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the batch at this point in history.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; + } + + public static final int STATE_MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object stateMessage_; + /** + * + * + *
+     * Output only. Details about the state at this point in history.
+     * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + @java.lang.Override + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateMessage_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Details about the state at this point in history.
+     * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp stateStartTime_; + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateStartTime field is set. + */ + @java.lang.Override + public boolean hasStateStartTime() { + return stateStartTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStateStartTime() { + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; + } + /** + * + * + *
+     * Output only. The time when the batch entered the historical state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { + return getStateStartTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_); + } + if (stateStartTime_ != null) { + output.writeMessage(3, getStateStartTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); + } + if (stateStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); + } + 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.dataproc.v1.Batch.StateHistory)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.Batch.StateHistory other = + (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; + + if (state_ != other.state_) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; + if (hasStateStartTime() != other.hasStateStartTime()) return false; + if (hasStateStartTime()) { + if (!getStateStartTime().equals(other.getStateStartTime())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStateMessage().hashCode(); + if (hasStateStartTime()) { + hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStateStartTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+     * Historical state information.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch.StateHistory) + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.Batch.StateHistory.class, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.Batch.StateHistory.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(); + state_ = 0; + + stateMessage_ = ""; + + if (stateStartTimeBuilder_ == null) { + stateStartTime_ = null; + } else { + stateStartTime_ = null; + stateStartTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.StateHistory build() { + com.google.cloud.dataproc.v1.Batch.StateHistory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { + com.google.cloud.dataproc.v1.Batch.StateHistory result = + new com.google.cloud.dataproc.v1.Batch.StateHistory(this); + result.state_ = state_; + result.stateMessage_ = stateMessage_; + if (stateStartTimeBuilder_ == null) { + result.stateStartTime_ = stateStartTime_; + } else { + result.stateStartTime_ = stateStartTimeBuilder_.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.dataproc.v1.Batch.StateHistory) { + return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch.StateHistory other) { + if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateMessage().isEmpty()) { + stateMessage_ = other.stateMessage_; + onChanged(); + } + if (other.hasStateStartTime()) { + mergeStateStartTime(other.getStateStartTime()); + } + 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.dataproc.v1.Batch.StateHistory parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.Batch.StateHistory) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * + * + *
+       * Output only. The state of the batch at this point in history.
+       * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+       * Output only. The state of the batch at this point in history.
+       * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The state of the batch at this point in history.
+       * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; + } + /** + * + * + *
+       * Output only. The state of the batch at this point in history.
+       * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The state of the batch at this point in history.
+       * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateMessage_ = ""; + /** + * + * + *
+       * Output only. Details about the state at this point in history.
+       * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Details about the state at this point in history.
+       * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Details about the state at this point in history.
+       * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stateMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Details about the state at this point in history.
+       * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateMessage() { + + stateMessage_ = getDefaultInstance().getStateMessage(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Details about the state at this point in history.
+       * 
+ * + * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stateMessage_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp stateStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateStartTimeBuilder_; + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateStartTime field is set. + */ + public boolean hasStateStartTime() { + return stateStartTimeBuilder_ != null || stateStartTime_ != null; + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateStartTime. + */ + public com.google.protobuf.Timestamp getStateStartTime() { + if (stateStartTimeBuilder_ == null) { + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; + } else { + return stateStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateStartTime(com.google.protobuf.Timestamp value) { + if (stateStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateStartTime_ = value; + onChanged(); + } else { + stateStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (stateStartTimeBuilder_ == null) { + stateStartTime_ = builderForValue.build(); + onChanged(); + } else { + stateStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { + if (stateStartTimeBuilder_ == null) { + if (stateStartTime_ != null) { + stateStartTime_ = + com.google.protobuf.Timestamp.newBuilder(stateStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + stateStartTime_ = value; + } + onChanged(); + } else { + stateStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateStartTime() { + if (stateStartTimeBuilder_ == null) { + stateStartTime_ = null; + onChanged(); + } else { + stateStartTime_ = null; + stateStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { + + onChanged(); + return getStateStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { + if (stateStartTimeBuilder_ != null) { + return stateStartTimeBuilder_.getMessageOrBuilder(); + } else { + return stateStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateStartTime_; + } + } + /** + * + * + *
+       * Output only. The time when the batch entered the historical state.
+       * 
+ * + * + * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStateStartTimeFieldBuilder() { + if (stateStartTimeBuilder_ == null) { + stateStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateStartTime(), getParentForChildren(), isClean()); + stateStartTime_ = null; + } + return stateStartTimeBuilder_; + } + + @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.dataproc.v1.Batch.StateHistory) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch.StateHistory) + private static final com.google.cloud.dataproc.v1.Batch.StateHistory DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch.StateHistory(); + } + + public static com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateHistory(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.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int batchConfigCase_ = 0; + private java.lang.Object batchConfig_; + + public enum BatchConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PYSPARK_BATCH(4), + SPARK_BATCH(5), + SPARK_R_BATCH(6), + SPARK_SQL_BATCH(7), + BATCHCONFIG_NOT_SET(0); + private final int value; + + private BatchConfigCase(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 BatchConfigCase valueOf(int value) { + return forNumber(value); + } + + public static BatchConfigCase forNumber(int value) { + switch (value) { + case 4: + return PYSPARK_BATCH; + case 5: + return SPARK_BATCH; + case 6: + return SPARK_R_BATCH; + case 7: + return SPARK_SQL_BATCH; + case 0: + return BATCHCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BatchConfigCase getBatchConfigCase() { + return BatchConfigCase.forNumber(batchConfigCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the batch.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the batch.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 2; + private volatile java.lang.Object uuid_; + /** + * + * + *
+   * Output only. A batch UUID (Unique Universal Identifier). The service
+   * generates this value when it creates the batch.
+   * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + @java.lang.Override + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A batch UUID (Unique Universal Identifier). The service
+   * generates this value when it creates the batch.
+   * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int PYSPARK_BATCH_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pysparkBatch field is set. + */ + @java.lang.Override + public boolean hasPysparkBatch() { + return batchConfigCase_ == 4; + } + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pysparkBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { + if (batchConfigCase_ == 4) { + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { + if (batchConfigCase_ == 4) { + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + + public static final int SPARK_BATCH_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkBatch field is set. + */ + @java.lang.Override + public boolean hasSparkBatch() { + return batchConfigCase_ == 5; + } + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { + if (batchConfigCase_ == 5) { + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { + if (batchConfigCase_ == 5) { + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + + public static final int SPARK_R_BATCH_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkRBatch field is set. + */ + @java.lang.Override + public boolean hasSparkRBatch() { + return batchConfigCase_ == 6; + } + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkRBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { + if (batchConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { + if (batchConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + + public static final int SPARK_SQL_BATCH_FIELD_NUMBER = 7; + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkSqlBatch field is set. + */ + @java.lang.Override + public boolean hasSparkSqlBatch() { + return batchConfigCase_ == 7; + } + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkSqlBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { + if (batchConfigCase_ == 7) { + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { + if (batchConfigCase_ == 7) { + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + + public static final int RUNTIME_INFO_FIELD_NUMBER = 8; + private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the runtimeInfo field is set. + */ + @java.lang.Override + public boolean hasRuntimeInfo() { + return runtimeInfo_ != null; + } + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The runtimeInfo. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; + } + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { + return getRuntimeInfo(); + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_; + /** + * + * + *
+   * Output only. The state of the batch.
+   * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. The state of the batch.
+   * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; + } + + public static final int STATE_MESSAGE_FIELD_NUMBER = 10; + private volatile java.lang.Object stateMessage_; + /** + * + * + *
+   * Output only. Batch state details, such as a failure
+   * description if the state is `FAILED`.
+   * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + @java.lang.Override + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Batch state details, such as a failure
+   * description if the state is `FAILED`.
+   * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp stateTime_; + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTime field is set. + */ + @java.lang.Override + public boolean hasStateTime() { + return stateTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStateTime() { + return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; + } + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { + return getStateTime(); + } + + public static final int CREATOR_FIELD_NUMBER = 12; + private volatile java.lang.Object creator_; + /** + * + * + *
+   * Output only. The email address of the user who created the batch.
+   * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The email address of the user who created the batch.
+   * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 13; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_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(); + } + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 RUNTIME_CONFIG_FIELD_NUMBER = 14; + private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_; + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtimeConfig field is set. + */ + @java.lang.Override + public boolean hasRuntimeConfig() { + return runtimeConfig_ != null; + } + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtimeConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { + return getRuntimeConfig(); + } + + public static final int ENVIRONMENT_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the environmentConfig field is set. + */ + @java.lang.Override + public boolean hasEnvironmentConfig() { + return environmentConfig_ != null; + } + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The environmentConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; + } + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { + return getEnvironmentConfig(); + } + + public static final int OPERATION_FIELD_NUMBER = 16; + private volatile java.lang.Object operation_; + /** + * + * + *
+   * Output only. The resource name of the operation associated with this batch.
+   * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the operation associated with this batch.
+   * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_HISTORY_FIELD_NUMBER = 17; + private java.util.List stateHistory_; + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getStateHistoryList() { + return stateHistory_; + } + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStateHistoryOrBuilderList() { + return stateHistory_; + } + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStateHistoryCount() { + return stateHistory_.size(); + } + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { + return stateHistory_.get(index); + } + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( + int index) { + return stateHistory_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (batchConfigCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); + } + if (batchConfigCase_ == 5) { + output.writeMessage(5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); + } + if (batchConfigCase_ == 6) { + output.writeMessage(6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); + } + if (batchConfigCase_ == 7) { + output.writeMessage(7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); + } + if (runtimeInfo_ != null) { + output.writeMessage(8, getRuntimeInfo()); + } + if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stateMessage_); + } + if (stateTime_ != null) { + output.writeMessage(11, getStateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, creator_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + if (runtimeConfig_ != null) { + output.writeMessage(14, getRuntimeConfig()); + } + if (environmentConfig_ != null) { + output.writeMessage(15, getEnvironmentConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, operation_); + } + for (int i = 0; i < stateHistory_.size(); i++) { + output.writeMessage(17, stateHistory_.get(i)); + } + 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(uuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (batchConfigCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); + } + if (batchConfigCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); + } + if (batchConfigCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); + } + if (batchConfigCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); + } + if (runtimeInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRuntimeInfo()); + } + if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stateMessage_); + } + if (stateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, creator_); + } + 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(13, labels__); + } + if (runtimeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRuntimeConfig()); + } + if (environmentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEnvironmentConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, operation_); + } + for (int i = 0; i < stateHistory_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, stateHistory_.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.dataproc.v1.Batch)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.Batch other = (com.google.cloud.dataproc.v1.Batch) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUuid().equals(other.getUuid())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasRuntimeInfo() != other.hasRuntimeInfo()) return false; + if (hasRuntimeInfo()) { + if (!getRuntimeInfo().equals(other.getRuntimeInfo())) return false; + } + if (state_ != other.state_) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; + if (hasStateTime() != other.hasStateTime()) return false; + if (hasStateTime()) { + if (!getStateTime().equals(other.getStateTime())) return false; + } + if (!getCreator().equals(other.getCreator())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasRuntimeConfig() != other.hasRuntimeConfig()) return false; + if (hasRuntimeConfig()) { + if (!getRuntimeConfig().equals(other.getRuntimeConfig())) return false; + } + if (hasEnvironmentConfig() != other.hasEnvironmentConfig()) return false; + if (hasEnvironmentConfig()) { + if (!getEnvironmentConfig().equals(other.getEnvironmentConfig())) return false; + } + if (!getOperation().equals(other.getOperation())) return false; + if (!getStateHistoryList().equals(other.getStateHistoryList())) return false; + if (!getBatchConfigCase().equals(other.getBatchConfigCase())) return false; + switch (batchConfigCase_) { + case 4: + if (!getPysparkBatch().equals(other.getPysparkBatch())) return false; + break; + case 5: + if (!getSparkBatch().equals(other.getSparkBatch())) return false; + break; + case 6: + if (!getSparkRBatch().equals(other.getSparkRBatch())) return false; + break; + case 7: + if (!getSparkSqlBatch().equals(other.getSparkSqlBatch())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasRuntimeInfo()) { + hash = (37 * hash) + RUNTIME_INFO_FIELD_NUMBER; + hash = (53 * hash) + getRuntimeInfo().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStateMessage().hashCode(); + if (hasStateTime()) { + hash = (37 * hash) + STATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStateTime().hashCode(); + } + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasRuntimeConfig()) { + hash = (37 * hash) + RUNTIME_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRuntimeConfig().hashCode(); + } + if (hasEnvironmentConfig()) { + hash = (37 * hash) + ENVIRONMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentConfig().hashCode(); + } + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + if (getStateHistoryCount() > 0) { + hash = (37 * hash) + STATE_HISTORY_FIELD_NUMBER; + hash = (53 * hash) + getStateHistoryList().hashCode(); + } + switch (batchConfigCase_) { + case 4: + hash = (37 * hash) + PYSPARK_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getPysparkBatch().hashCode(); + break; + case 5: + hash = (37 * hash) + SPARK_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getSparkBatch().hashCode(); + break; + case 6: + hash = (37 * hash) + SPARK_R_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getSparkRBatch().hashCode(); + break; + case 7: + hash = (37 * hash) + SPARK_SQL_BATCH_FIELD_NUMBER; + hash = (53 * hash) + getSparkSqlBatch().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.Batch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 representation of a batch workload in the service.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.Batch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch) + com.google.cloud.dataproc.v1.BatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 13: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 13: + 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.Batch.class, + com.google.cloud.dataproc.v1.Batch.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.Batch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStateHistoryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uuid_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (runtimeInfoBuilder_ == null) { + runtimeInfo_ = null; + } else { + runtimeInfo_ = null; + runtimeInfoBuilder_ = null; + } + state_ = 0; + + stateMessage_ = ""; + + if (stateTimeBuilder_ == null) { + stateTime_ = null; + } else { + stateTime_ = null; + stateTimeBuilder_ = null; + } + creator_ = ""; + + internalGetMutableLabels().clear(); + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = null; + } else { + runtimeConfig_ = null; + runtimeConfigBuilder_ = null; + } + if (environmentConfigBuilder_ == null) { + environmentConfig_ = null; + } else { + environmentConfig_ = null; + environmentConfigBuilder_ = null; + } + operation_ = ""; + + if (stateHistoryBuilder_ == null) { + stateHistory_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + stateHistoryBuilder_.clear(); + } + batchConfigCase_ = 0; + batchConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_Batch_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.Batch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch build() { + com.google.cloud.dataproc.v1.Batch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch buildPartial() { + com.google.cloud.dataproc.v1.Batch result = new com.google.cloud.dataproc.v1.Batch(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uuid_ = uuid_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (batchConfigCase_ == 4) { + if (pysparkBatchBuilder_ == null) { + result.batchConfig_ = batchConfig_; + } else { + result.batchConfig_ = pysparkBatchBuilder_.build(); + } + } + if (batchConfigCase_ == 5) { + if (sparkBatchBuilder_ == null) { + result.batchConfig_ = batchConfig_; + } else { + result.batchConfig_ = sparkBatchBuilder_.build(); + } + } + if (batchConfigCase_ == 6) { + if (sparkRBatchBuilder_ == null) { + result.batchConfig_ = batchConfig_; + } else { + result.batchConfig_ = sparkRBatchBuilder_.build(); + } + } + if (batchConfigCase_ == 7) { + if (sparkSqlBatchBuilder_ == null) { + result.batchConfig_ = batchConfig_; + } else { + result.batchConfig_ = sparkSqlBatchBuilder_.build(); + } + } + if (runtimeInfoBuilder_ == null) { + result.runtimeInfo_ = runtimeInfo_; + } else { + result.runtimeInfo_ = runtimeInfoBuilder_.build(); + } + result.state_ = state_; + result.stateMessage_ = stateMessage_; + if (stateTimeBuilder_ == null) { + result.stateTime_ = stateTime_; + } else { + result.stateTime_ = stateTimeBuilder_.build(); + } + result.creator_ = creator_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + if (runtimeConfigBuilder_ == null) { + result.runtimeConfig_ = runtimeConfig_; + } else { + result.runtimeConfig_ = runtimeConfigBuilder_.build(); + } + if (environmentConfigBuilder_ == null) { + result.environmentConfig_ = environmentConfig_; + } else { + result.environmentConfig_ = environmentConfigBuilder_.build(); + } + result.operation_ = operation_; + if (stateHistoryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stateHistory_ = java.util.Collections.unmodifiableList(stateHistory_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stateHistory_ = stateHistory_; + } else { + result.stateHistory_ = stateHistoryBuilder_.build(); + } + result.batchConfigCase_ = batchConfigCase_; + 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.dataproc.v1.Batch) { + return mergeFrom((com.google.cloud.dataproc.v1.Batch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { + if (other == com.google.cloud.dataproc.v1.Batch.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUuid().isEmpty()) { + uuid_ = other.uuid_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasRuntimeInfo()) { + mergeRuntimeInfo(other.getRuntimeInfo()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateMessage().isEmpty()) { + stateMessage_ = other.stateMessage_; + onChanged(); + } + if (other.hasStateTime()) { + mergeStateTime(other.getStateTime()); + } + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.hasRuntimeConfig()) { + mergeRuntimeConfig(other.getRuntimeConfig()); + } + if (other.hasEnvironmentConfig()) { + mergeEnvironmentConfig(other.getEnvironmentConfig()); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + onChanged(); + } + if (stateHistoryBuilder_ == null) { + if (!other.stateHistory_.isEmpty()) { + if (stateHistory_.isEmpty()) { + stateHistory_ = other.stateHistory_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStateHistoryIsMutable(); + stateHistory_.addAll(other.stateHistory_); + } + onChanged(); + } + } else { + if (!other.stateHistory_.isEmpty()) { + if (stateHistoryBuilder_.isEmpty()) { + stateHistoryBuilder_.dispose(); + stateHistoryBuilder_ = null; + stateHistory_ = other.stateHistory_; + bitField0_ = (bitField0_ & ~0x00000002); + stateHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStateHistoryFieldBuilder() + : null; + } else { + stateHistoryBuilder_.addAllMessages(other.stateHistory_); + } + } + } + switch (other.getBatchConfigCase()) { + case PYSPARK_BATCH: + { + mergePysparkBatch(other.getPysparkBatch()); + break; + } + case SPARK_BATCH: + { + mergeSparkBatch(other.getSparkBatch()); + break; + } + case SPARK_R_BATCH: + { + mergeSparkRBatch(other.getSparkRBatch()); + break; + } + case SPARK_SQL_BATCH: + { + mergeSparkSqlBatch(other.getSparkSqlBatch()); + break; + } + case BATCHCONFIG_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.dataproc.v1.Batch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.Batch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int batchConfigCase_ = 0; + private java.lang.Object batchConfig_; + + public BatchConfigCase getBatchConfigCase() { + return BatchConfigCase.forNumber(batchConfigCase_); + } + + public Builder clearBatchConfig() { + batchConfigCase_ = 0; + batchConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the batch.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the batch.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the batch.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the batch.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the batch.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uuid_ = ""; + /** + * + * + *
+     * Output only. A batch UUID (Unique Universal Identifier). The service
+     * generates this value when it creates the batch.
+     * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + public java.lang.String getUuid() { + java.lang.Object ref = uuid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A batch UUID (Unique Universal Identifier). The service
+     * generates this value when it creates the batch.
+     * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + public com.google.protobuf.ByteString getUuidBytes() { + java.lang.Object ref = uuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A batch UUID (Unique Universal Identifier). The service
+     * generates this value when it creates the batch.
+     * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uuid to set. + * @return This builder for chaining. + */ + public Builder setUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uuid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A batch UUID (Unique Universal Identifier). The service
+     * generates this value when it creates the batch.
+     * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUuid() { + + uuid_ = getDefaultInstance().getUuid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A batch UUID (Unique Universal Identifier). The service
+     * generates this value when it creates the batch.
+     * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uuid to set. + * @return This builder for chaining. + */ + public Builder setUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uuid_ = value; + 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_; + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The time when the batch was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> + pysparkBatchBuilder_; + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pysparkBatch field is set. + */ + @java.lang.Override + public boolean hasPysparkBatch() { + return batchConfigCase_ == 4; + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pysparkBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { + if (pysparkBatchBuilder_ == null) { + if (batchConfigCase_ == 4) { + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } else { + if (batchConfigCase_ == 4) { + return pysparkBatchBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { + if (pysparkBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchConfig_ = value; + onChanged(); + } else { + pysparkBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPysparkBatch( + com.google.cloud.dataproc.v1.PySparkBatch.Builder builderForValue) { + if (pysparkBatchBuilder_ == null) { + batchConfig_ = builderForValue.build(); + onChanged(); + } else { + pysparkBatchBuilder_.setMessage(builderForValue.build()); + } + batchConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { + if (pysparkBatchBuilder_ == null) { + if (batchConfigCase_ == 4 + && batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.PySparkBatch.newBuilder( + (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + batchConfig_ = value; + } + onChanged(); + } else { + if (batchConfigCase_ == 4) { + pysparkBatchBuilder_.mergeFrom(value); + } + pysparkBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPysparkBatch() { + if (pysparkBatchBuilder_ == null) { + if (batchConfigCase_ == 4) { + batchConfigCase_ = 0; + batchConfig_ = null; + onChanged(); + } + } else { + if (batchConfigCase_ == 4) { + batchConfigCase_ = 0; + batchConfig_ = null; + } + pysparkBatchBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.PySparkBatch.Builder getPysparkBatchBuilder() { + return getPysparkBatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { + if ((batchConfigCase_ == 4) && (pysparkBatchBuilder_ != null)) { + return pysparkBatchBuilder_.getMessageOrBuilder(); + } else { + if (batchConfigCase_ == 4) { + return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. PySpark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> + getPysparkBatchFieldBuilder() { + if (pysparkBatchBuilder_ == null) { + if (!(batchConfigCase_ == 4)) { + batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + pysparkBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.PySparkBatch, + com.google.cloud.dataproc.v1.PySparkBatch.Builder, + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( + (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_, + getParentForChildren(), + isClean()); + batchConfig_ = null; + } + batchConfigCase_ = 4; + onChanged(); + ; + return pysparkBatchBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder> + sparkBatchBuilder_; + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkBatch field is set. + */ + @java.lang.Override + public boolean hasSparkBatch() { + return batchConfigCase_ == 5; + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { + if (sparkBatchBuilder_ == null) { + if (batchConfigCase_ == 5) { + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } else { + if (batchConfigCase_ == 5) { + return sparkBatchBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { + if (sparkBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchConfig_ = value; + onChanged(); + } else { + sparkBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { + if (sparkBatchBuilder_ == null) { + batchConfig_ = builderForValue.build(); + onChanged(); + } else { + sparkBatchBuilder_.setMessage(builderForValue.build()); + } + batchConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { + if (sparkBatchBuilder_ == null) { + if (batchConfigCase_ == 5 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + batchConfig_ = value; + } + onChanged(); + } else { + if (batchConfigCase_ == 5) { + sparkBatchBuilder_.mergeFrom(value); + } + sparkBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSparkBatch() { + if (sparkBatchBuilder_ == null) { + if (batchConfigCase_ == 5) { + batchConfigCase_ = 0; + batchConfig_ = null; + onChanged(); + } + } else { + if (batchConfigCase_ == 5) { + batchConfigCase_ = 0; + batchConfig_ = null; + } + sparkBatchBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkBatch.Builder getSparkBatchBuilder() { + return getSparkBatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { + if ((batchConfigCase_ == 5) && (sparkBatchBuilder_ != null)) { + return sparkBatchBuilder_.getMessageOrBuilder(); + } else { + if (batchConfigCase_ == 5) { + return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Spark batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder> + getSparkBatchFieldBuilder() { + if (sparkBatchBuilder_ == null) { + if (!(batchConfigCase_ == 5)) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + sparkBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkBatch, + com.google.cloud.dataproc.v1.SparkBatch.Builder, + com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( + (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_, + getParentForChildren(), + isClean()); + batchConfig_ = null; + } + batchConfigCase_ = 5; + onChanged(); + ; + return sparkBatchBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> + sparkRBatchBuilder_; + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkRBatch field is set. + */ + @java.lang.Override + public boolean hasSparkRBatch() { + return batchConfigCase_ == 6; + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkRBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { + if (sparkRBatchBuilder_ == null) { + if (batchConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } else { + if (batchConfigCase_ == 6) { + return sparkRBatchBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { + if (sparkRBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchConfig_ = value; + onChanged(); + } else { + sparkRBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkRBatch( + com.google.cloud.dataproc.v1.SparkRBatch.Builder builderForValue) { + if (sparkRBatchBuilder_ == null) { + batchConfig_ = builderForValue.build(); + onChanged(); + } else { + sparkRBatchBuilder_.setMessage(builderForValue.build()); + } + batchConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { + if (sparkRBatchBuilder_ == null) { + if (batchConfigCase_ == 6 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkRBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + batchConfig_ = value; + } + onChanged(); + } else { + if (batchConfigCase_ == 6) { + sparkRBatchBuilder_.mergeFrom(value); + } + sparkRBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSparkRBatch() { + if (sparkRBatchBuilder_ == null) { + if (batchConfigCase_ == 6) { + batchConfigCase_ = 0; + batchConfig_ = null; + onChanged(); + } + } else { + if (batchConfigCase_ == 6) { + batchConfigCase_ = 0; + batchConfig_ = null; + } + sparkRBatchBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkRBatch.Builder getSparkRBatchBuilder() { + return getSparkRBatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { + if ((batchConfigCase_ == 6) && (sparkRBatchBuilder_ != null)) { + return sparkRBatchBuilder_.getMessageOrBuilder(); + } else { + if (batchConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. SparkR batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> + getSparkRBatchFieldBuilder() { + if (sparkRBatchBuilder_ == null) { + if (!(batchConfigCase_ == 6)) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + sparkRBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkRBatch, + com.google.cloud.dataproc.v1.SparkRBatch.Builder, + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( + (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_, + getParentForChildren(), + isClean()); + batchConfig_ = null; + } + batchConfigCase_ = 6; + onChanged(); + ; + return sparkRBatchBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> + sparkSqlBatchBuilder_; + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkSqlBatch field is set. + */ + @java.lang.Override + public boolean hasSparkSqlBatch() { + return batchConfigCase_ == 7; + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkSqlBatch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { + if (sparkSqlBatchBuilder_ == null) { + if (batchConfigCase_ == 7) { + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } else { + if (batchConfigCase_ == 7) { + return sparkSqlBatchBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { + if (sparkSqlBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchConfig_ = value; + onChanged(); + } else { + sparkSqlBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkSqlBatch( + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder builderForValue) { + if (sparkSqlBatchBuilder_ == null) { + batchConfig_ = builderForValue.build(); + onChanged(); + } else { + sparkSqlBatchBuilder_.setMessage(builderForValue.build()); + } + batchConfigCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { + if (sparkSqlBatchBuilder_ == null) { + if (batchConfigCase_ == 7 + && batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { + batchConfig_ = + com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder( + (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + batchConfig_ = value; + } + onChanged(); + } else { + if (batchConfigCase_ == 7) { + sparkSqlBatchBuilder_.mergeFrom(value); + } + sparkSqlBatchBuilder_.setMessage(value); + } + batchConfigCase_ = 7; + return this; + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSparkSqlBatch() { + if (sparkSqlBatchBuilder_ == null) { + if (batchConfigCase_ == 7) { + batchConfigCase_ = 0; + batchConfig_ = null; + onChanged(); + } + } else { + if (batchConfigCase_ == 7) { + batchConfigCase_ = 0; + batchConfig_ = null; + } + sparkSqlBatchBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkSqlBatch.Builder getSparkSqlBatchBuilder() { + return getSparkSqlBatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { + if ((batchConfigCase_ == 7) && (sparkSqlBatchBuilder_ != null)) { + return sparkSqlBatchBuilder_.getMessageOrBuilder(); + } else { + if (batchConfigCase_ == 7) { + return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; + } + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. SparkSql batch config.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> + getSparkSqlBatchFieldBuilder() { + if (sparkSqlBatchBuilder_ == null) { + if (!(batchConfigCase_ == 7)) { + batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + sparkSqlBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkSqlBatch, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( + (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_, + getParentForChildren(), + isClean()); + batchConfig_ = null; + } + batchConfigCase_ = 7; + onChanged(); + ; + return sparkSqlBatchBuilder_; + } + + private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> + runtimeInfoBuilder_; + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the runtimeInfo field is set. + */ + public boolean hasRuntimeInfo() { + return runtimeInfoBuilder_ != null || runtimeInfo_ != null; + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The runtimeInfo. + */ + public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { + if (runtimeInfoBuilder_ == null) { + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; + } else { + return runtimeInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { + if (runtimeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeInfo_ = value; + onChanged(); + } else { + runtimeInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRuntimeInfo( + com.google.cloud.dataproc.v1.RuntimeInfo.Builder builderForValue) { + if (runtimeInfoBuilder_ == null) { + runtimeInfo_ = builderForValue.build(); + onChanged(); + } else { + runtimeInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { + if (runtimeInfoBuilder_ == null) { + if (runtimeInfo_ != null) { + runtimeInfo_ = + com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeInfo_ = value; + } + onChanged(); + } else { + runtimeInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRuntimeInfo() { + if (runtimeInfoBuilder_ == null) { + runtimeInfo_ = null; + onChanged(); + } else { + runtimeInfo_ = null; + runtimeInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.RuntimeInfo.Builder getRuntimeInfoBuilder() { + + onChanged(); + return getRuntimeInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { + if (runtimeInfoBuilder_ != null) { + return runtimeInfoBuilder_.getMessageOrBuilder(); + } else { + return runtimeInfo_ == null + ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() + : runtimeInfo_; + } + } + /** + * + * + *
+     * Output only. Runtime information about batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> + getRuntimeInfoFieldBuilder() { + if (runtimeInfoBuilder_ == null) { + runtimeInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeInfo, + com.google.cloud.dataproc.v1.RuntimeInfo.Builder, + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( + getRuntimeInfo(), getParentForChildren(), isClean()); + runtimeInfo_ = null; + } + return runtimeInfoBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. The state of the batch.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. The state of the batch.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the batch.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.Batch.State result = + com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); + return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The state of the batch.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of the batch.
+     * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateMessage_ = ""; + /** + * + * + *
+     * Output only. Batch state details, such as a failure
+     * description if the state is `FAILED`.
+     * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Batch state details, such as a failure
+     * description if the state is `FAILED`.
+     * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Batch state details, such as a failure
+     * description if the state is `FAILED`.
+     * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stateMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Batch state details, such as a failure
+     * description if the state is `FAILED`.
+     * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateMessage() { + + stateMessage_ = getDefaultInstance().getStateMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Batch state details, such as a failure
+     * description if the state is `FAILED`.
+     * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stateMessage_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp stateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTime field is set. + */ + public boolean hasStateTime() { + return stateTimeBuilder_ != null || stateTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTime. + */ + public com.google.protobuf.Timestamp getStateTime() { + if (stateTimeBuilder_ == null) { + return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; + } else { + return stateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTime(com.google.protobuf.Timestamp value) { + if (stateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateTime_ = value; + onChanged(); + } else { + stateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (stateTimeBuilder_ == null) { + stateTime_ = builderForValue.build(); + onChanged(); + } else { + stateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStateTime(com.google.protobuf.Timestamp value) { + if (stateTimeBuilder_ == null) { + if (stateTime_ != null) { + stateTime_ = + com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); + } else { + stateTime_ = value; + } + onChanged(); + } else { + stateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateTime() { + if (stateTimeBuilder_ == null) { + stateTime_ = null; + onChanged(); + } else { + stateTime_ = null; + stateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { + + onChanged(); + return getStateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { + if (stateTimeBuilder_ != null) { + return stateTimeBuilder_.getMessageOrBuilder(); + } else { + return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; + } + } + /** + * + * + *
+     * Output only. The time when the batch entered a current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStateTimeFieldBuilder() { + if (stateTimeBuilder_ == null) { + stateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateTime(), getParentForChildren(), isClean()); + stateTime_ = null; + } + return stateTimeBuilder_; + } + + private java.lang.Object creator_ = ""; + /** + * + * + *
+     * Output only. The email address of the user who created the batch.
+     * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user who created the batch.
+     * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user who created the batch.
+     * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creator to set. + * @return This builder for chaining. + */ + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user who created the batch.
+     * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreator() { + + creator_ = getDefaultInstance().getCreator(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user who created the batch.
+     * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creator to set. + * @return This builder for chaining. + */ + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creator_ = value; + 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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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(); + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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; + } + /** + * + * + *
+     * Optional. The labels to associate with this batch.
+     * Label **keys** must contain 1 to 63 characters, and must conform to
+     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+     * Label **values** may be empty, but, if present, must contain 1 to 63
+     * characters, and must conform to [RFC
+     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+     * associated with a batch.
+     * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeConfig, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder, + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> + runtimeConfigBuilder_; + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtimeConfig field is set. + */ + public boolean hasRuntimeConfig() { + return runtimeConfigBuilder_ != null || runtimeConfig_ != null; + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtimeConfig. + */ + public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { + if (runtimeConfigBuilder_ == null) { + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } else { + return runtimeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { + if (runtimeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtimeConfig_ = value; + onChanged(); + } else { + runtimeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuntimeConfig( + com.google.cloud.dataproc.v1.RuntimeConfig.Builder builderForValue) { + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = builderForValue.build(); + onChanged(); + } else { + runtimeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { + if (runtimeConfigBuilder_ == null) { + if (runtimeConfig_ != null) { + runtimeConfig_ = + com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + runtimeConfig_ = value; + } + onChanged(); + } else { + runtimeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRuntimeConfig() { + if (runtimeConfigBuilder_ == null) { + runtimeConfig_ = null; + onChanged(); + } else { + runtimeConfig_ = null; + runtimeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.RuntimeConfig.Builder getRuntimeConfigBuilder() { + + onChanged(); + return getRuntimeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { + if (runtimeConfigBuilder_ != null) { + return runtimeConfigBuilder_.getMessageOrBuilder(); + } else { + return runtimeConfig_ == null + ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() + : runtimeConfig_; + } + } + /** + * + * + *
+     * Optional. Runtime configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeConfig, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder, + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> + getRuntimeConfigFieldBuilder() { + if (runtimeConfigBuilder_ == null) { + runtimeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.RuntimeConfig, + com.google.cloud.dataproc.v1.RuntimeConfig.Builder, + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( + getRuntimeConfig(), getParentForChildren(), isClean()); + runtimeConfig_ = null; + } + return runtimeConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> + environmentConfigBuilder_; + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the environmentConfig field is set. + */ + public boolean hasEnvironmentConfig() { + return environmentConfigBuilder_ != null || environmentConfig_ != null; + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The environmentConfig. + */ + public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { + if (environmentConfigBuilder_ == null) { + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; + } else { + return environmentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { + if (environmentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + environmentConfig_ = value; + onChanged(); + } else { + environmentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEnvironmentConfig( + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder builderForValue) { + if (environmentConfigBuilder_ == null) { + environmentConfig_ = builderForValue.build(); + onChanged(); + } else { + environmentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { + if (environmentConfigBuilder_ == null) { + if (environmentConfig_ != null) { + environmentConfig_ = + com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + environmentConfig_ = value; + } + onChanged(); + } else { + environmentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEnvironmentConfig() { + if (environmentConfigBuilder_ == null) { + environmentConfig_ = null; + onChanged(); + } else { + environmentConfig_ = null; + environmentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.EnvironmentConfig.Builder getEnvironmentConfigBuilder() { + + onChanged(); + return getEnvironmentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { + if (environmentConfigBuilder_ != null) { + return environmentConfigBuilder_.getMessageOrBuilder(); + } else { + return environmentConfig_ == null + ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() + : environmentConfig_; + } + } + /** + * + * + *
+     * Optional. Environment configuration for the batch execution.
+     * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> + getEnvironmentConfigFieldBuilder() { + if (environmentConfigBuilder_ == null) { + environmentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.EnvironmentConfig, + com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( + getEnvironmentConfig(), getParentForChildren(), isClean()); + environmentConfig_ = null; + } + return environmentConfigBuilder_; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * Output only. The resource name of the operation associated with this batch.
+     * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the operation associated with this batch.
+     * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the operation associated with this batch.
+     * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the operation associated with this batch.
+     * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the operation associated with this batch.
+     * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + onChanged(); + return this; + } + + private java.util.List stateHistory_ = + java.util.Collections.emptyList(); + + private void ensureStateHistoryIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stateHistory_ = + new java.util.ArrayList(stateHistory_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> + stateHistoryBuilder_; + + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getStateHistoryList() { + if (stateHistoryBuilder_ == null) { + return java.util.Collections.unmodifiableList(stateHistory_); + } else { + return stateHistoryBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStateHistoryCount() { + if (stateHistoryBuilder_ == null) { + return stateHistory_.size(); + } else { + return stateHistoryBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { + if (stateHistoryBuilder_ == null) { + return stateHistory_.get(index); + } else { + return stateHistoryBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateHistory( + int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { + if (stateHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateHistoryIsMutable(); + stateHistory_.set(index, value); + onChanged(); + } else { + stateHistoryBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateHistory( + int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.set(index, builderForValue.build()); + onChanged(); + } else { + stateHistoryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory value) { + if (stateHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateHistoryIsMutable(); + stateHistory_.add(value); + onChanged(); + } else { + stateHistoryBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateHistory( + int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { + if (stateHistoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateHistoryIsMutable(); + stateHistory_.add(index, value); + onChanged(); + } else { + stateHistoryBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateHistory( + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.add(builderForValue.build()); + onChanged(); + } else { + stateHistoryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateHistory( + int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.add(index, builderForValue.build()); + onChanged(); + } else { + stateHistoryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllStateHistory( + java.lang.Iterable values) { + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateHistory_); + onChanged(); + } else { + stateHistoryBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateHistory() { + if (stateHistoryBuilder_ == null) { + stateHistory_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stateHistoryBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeStateHistory(int index) { + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.remove(index); + onChanged(); + } else { + stateHistoryBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder getStateHistoryBuilder( + int index) { + return getStateHistoryFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( + int index) { + if (stateHistoryBuilder_ == null) { + return stateHistory_.get(index); + } else { + return stateHistoryBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateHistoryOrBuilderList() { + if (stateHistoryBuilder_ != null) { + return stateHistoryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stateHistory_); + } + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder() { + return getStateHistoryFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder( + int index) { + return getStateHistoryFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Historical state information for the batch.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateHistoryBuilderList() { + return getStateHistoryFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> + getStateHistoryFieldBuilder() { + if (stateHistoryBuilder_ == null) { + stateHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch.StateHistory, + com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( + stateHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stateHistory_ = null; + } + return stateHistoryBuilder_; + } + + @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.dataproc.v1.Batch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch) + private static final com.google.cloud.dataproc.v1.Batch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch(); + } + + public static com.google.cloud.dataproc.v1.Batch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Batch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Batch(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.dataproc.v1.Batch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java new file mode 100644 index 00000000..cc26cad6 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java @@ -0,0 +1,223 @@ +/* + * 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.dataproc.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class BatchName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BATCH = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/batches/{batch}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String batch; + + @Deprecated + protected BatchName() { + project = null; + location = null; + batch = null; + } + + private BatchName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + batch = Preconditions.checkNotNull(builder.getBatch()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBatch() { + return batch; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BatchName of(String project, String location, String batch) { + return newBuilder().setProject(project).setLocation(location).setBatch(batch).build(); + } + + public static String format(String project, String location, String batch) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBatch(batch) + .build() + .toString(); + } + + public static BatchName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BATCH.validatedMatch( + formattedString, "BatchName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("batch")); + } + + 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 (BatchName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BATCH.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 (batch != null) { + fieldMapBuilder.put("batch", batch); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BATCH.instantiate( + "project", project, "location", location, "batch", batch); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + BatchName that = ((BatchName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.batch, that.batch); + } + 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(batch); + return h; + } + + /** Builder for projects/{project}/locations/{location}/batches/{batch}. */ + public static class Builder { + private String project; + private String location; + private String batch; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBatch() { + return batch; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBatch(String batch) { + this.batch = batch; + return this; + } + + private Builder(BatchName batchName) { + this.project = batchName.project; + this.location = batchName.location; + this.batch = batchName.batch; + } + + public BatchName build() { + return new BatchName(this); + } + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java new file mode 100644 index 00000000..c8c898ce --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java @@ -0,0 +1,694 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface BatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the batch.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the batch.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. A batch UUID (Unique Universal Identifier). The service
+   * generates this value when it creates the batch.
+   * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uuid. + */ + java.lang.String getUuid(); + /** + * + * + *
+   * Output only. A batch UUID (Unique Universal Identifier). The service
+   * generates this value when it creates the batch.
+   * 
+ * + * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uuid. + */ + com.google.protobuf.ByteString getUuidBytes(); + + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time when the batch was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pysparkBatch field is set. + */ + boolean hasPysparkBatch(); + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pysparkBatch. + */ + com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch(); + /** + * + * + *
+   * Optional. PySpark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder(); + + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkBatch field is set. + */ + boolean hasSparkBatch(); + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkBatch. + */ + com.google.cloud.dataproc.v1.SparkBatch getSparkBatch(); + /** + * + * + *
+   * Optional. Spark batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder(); + + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkRBatch field is set. + */ + boolean hasSparkRBatch(); + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkRBatch. + */ + com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch(); + /** + * + * + *
+   * Optional. SparkR batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder(); + + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkSqlBatch field is set. + */ + boolean hasSparkSqlBatch(); + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkSqlBatch. + */ + com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch(); + /** + * + * + *
+   * Optional. SparkSql batch config.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder(); + + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the runtimeInfo field is set. + */ + boolean hasRuntimeInfo(); + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The runtimeInfo. + */ + com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo(); + /** + * + * + *
+   * Output only. Runtime information about batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the batch.
+   * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. The state of the batch.
+   * 
+ * + * + * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataproc.v1.Batch.State getState(); + + /** + * + * + *
+   * Output only. Batch state details, such as a failure
+   * description if the state is `FAILED`.
+   * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + java.lang.String getStateMessage(); + /** + * + * + *
+   * Output only. Batch state details, such as a failure
+   * description if the state is `FAILED`.
+   * 
+ * + * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + com.google.protobuf.ByteString getStateMessageBytes(); + + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTime field is set. + */ + boolean hasStateTime(); + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTime. + */ + com.google.protobuf.Timestamp getStateTime(); + /** + * + * + *
+   * Output only. The time when the batch entered a current state.
+   * 
+ * + * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The email address of the user who created the batch.
+   * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + java.lang.String getCreator(); + /** + * + * + *
+   * Output only. The email address of the user who created the batch.
+   * 
+ * + * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + com.google.protobuf.ByteString getCreatorBytes(); + + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. The labels to associate with this batch.
+   * Label **keys** must contain 1 to 63 characters, and must conform to
+   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
+   * Label **values** may be empty, but, if present, must contain 1 to 63
+   * characters, and must conform to [RFC
+   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
+   * associated with a batch.
+   * 
+ * + * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runtimeConfig field is set. + */ + boolean hasRuntimeConfig(); + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runtimeConfig. + */ + com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig(); + /** + * + * + *
+   * Optional. Runtime configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the environmentConfig field is set. + */ + boolean hasEnvironmentConfig(); + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The environmentConfig. + */ + com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig(); + /** + * + * + *
+   * Optional. Environment configuration for the batch execution.
+   * 
+ * + * + * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The resource name of the operation associated with this batch.
+   * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+   * Output only. The resource name of the operation associated with this batch.
+   * 
+ * + * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getStateHistoryList(); + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index); + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStateHistoryCount(); + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStateHistoryOrBuilderList(); + /** + * + * + *
+   * Output only. Historical state information for the batch.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder(int index); + + public com.google.cloud.dataproc.v1.Batch.BatchConfigCase getBatchConfigCase(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java new file mode 100644 index 00000000..aea24497 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java @@ -0,0 +1,357 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public final class BatchesProto { + private BatchesProto() {} + + 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_dataproc_v1_CreateBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" + + "\022\030google.cloud.dataproc.v1\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032%google/cloud/data" + + "proc/v1/shared.proto\032#google/longrunning" + + "/operations.proto\032\033google/protobuf/empty" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" + + "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" + + "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." + + "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" + + "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" + + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" + + ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" + + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" + + "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" + + "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" + + ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" + + "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" + + "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" + + "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" + + "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" + + "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" + + "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" + + "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" + + "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" + + ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" + + "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" + + "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" + + "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" + + "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" + + ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" + + "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" + + "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" + + "\0132+.google.cloud.dataproc.v1.Environment" + + "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" + + "tate_history\030\021 \003(\0132,.google.cloud.datapr" + + "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" + + "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" + + "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" + + "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" + + "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" + + "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" + + "\n\035dataproc.googleapis.com/Batch\0227project" + + "s/{project}/locations/{location}/batches" + + "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" + + "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" + + "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" + + "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" + + "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" + + "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" + + "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" + + "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " + + "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" + + "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" + + "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" + + "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" + + "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" + + "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" + + "_variables\030\002 \003(\0132;.google.cloud.dataproc" + + ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" + + "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" + + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" + + "h\022,.google.cloud.dataproc.v1.CreateBatch" + + "Request\032\035.google.longrunning.Operation\"\215" + + "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" + + "s/*}/batches:\005batch\332A\025parent,batch,batch" + + "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." + + "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" + + "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" + + ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" + + "+/v1/{name=projects/*/locations/*/batche" + + "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" + + "ud.dataproc.v1.ListBatchesRequest\032-.goog" + + "le.cloud.dataproc.v1.ListBatchesResponse" + + "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" + + "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," + + ".google.cloud.dataproc.v1.DeleteBatchReq" + + "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/batches/*" + + "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformBp\n\034com.google.cloud.dataproc.v1B\014B" + + "atchesProtoP\001Z@google.golang.org/genprot" + + "o/googleapis/cloud/dataproc/v1;dataprocb" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dataproc.v1.SharedProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, + new java.lang.String[] { + "Parent", "Batch", "BatchId", "RequestId", + }); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, + new java.lang.String[] { + "Batches", "NextPageToken", + }); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataproc_v1_Batch_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_descriptor, + new java.lang.String[] { + "Name", + "Uuid", + "CreateTime", + "PysparkBatch", + "SparkBatch", + "SparkRBatch", + "SparkSqlBatch", + "RuntimeInfo", + "State", + "StateMessage", + "StateTime", + "Creator", + "Labels", + "RuntimeConfig", + "EnvironmentConfig", + "Operation", + "StateHistory", + "BatchConfig", + }); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, + new java.lang.String[] { + "State", "StateMessage", "StateStartTime", + }); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, + new java.lang.String[] { + "MainPythonFileUri", + "Args", + "PythonFileUris", + "JarFileUris", + "FileUris", + "ArchiveUris", + }); + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, + new java.lang.String[] { + "MainJarFileUri", + "MainClass", + "Args", + "JarFileUris", + "FileUris", + "ArchiveUris", + "Driver", + }); + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, + new java.lang.String[] { + "MainRFileUri", "Args", "FileUris", "ArchiveUris", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, + new java.lang.String[] { + "QueryFileUri", "QueryVariables", "JarFileUris", + }); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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.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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java new file mode 100644 index 00000000..29c5ec47 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java @@ -0,0 +1,1364 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to create a batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} + */ +public final class CreateBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateBatchRequest) + CreateBatchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateBatchRequest.newBuilder() to construct. + private CreateBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateBatchRequest() { + parent_ = ""; + batchId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateBatchRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateBatchRequest( + 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: + { + com.google.cloud.dataproc.v1.Batch.Builder subBuilder = null; + if (batch_ != null) { + subBuilder = batch_.toBuilder(); + } + batch_ = + input.readMessage(com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(batch_); + batch_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + batchId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.CreateBatchRequest.class, + com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource where this batch will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where this batch will be created.
+   * 
+ * + * + * 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 BATCH_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.Batch batch_; + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the batch field is set. + */ + @java.lang.Override + public boolean hasBatch() { + return batch_ != null; + } + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The batch. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch getBatch() { + return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; + } + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { + return getBatch(); + } + + public static final int BATCH_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object batchId_; + /** + * + * + *
+   * Optional. The ID to use for the batch, which will become the final component of
+   * the batch's resource name.
+   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+   * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The batchId. + */ + @java.lang.Override + public java.lang.String getBatchId() { + java.lang.Object ref = batchId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The ID to use for the batch, which will become the final component of
+   * the batch's resource name.
+   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+   * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for batchId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBatchIdBytes() { + java.lang.Object ref = batchId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object requestId_; + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the service
+   * receives two
+   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+   * with the same request_id, the second request is ignored and the
+   * Operation that corresponds to the first Batch created and stored
+   * in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The value must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the service
+   * receives two
+   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+   * with the same request_id, the second request is ignored and the
+   * Operation that corresponds to the first Batch created and stored
+   * in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The value must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (batch_ != null) { + output.writeMessage(2, getBatch()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, batchId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + 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 (batch_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBatch()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, batchId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + 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.dataproc.v1.CreateBatchRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.CreateBatchRequest other = + (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasBatch() != other.hasBatch()) return false; + if (hasBatch()) { + if (!getBatch().equals(other.getBatch())) return false; + } + if (!getBatchId().equals(other.getBatchId())) return false; + if (!getRequestId().equals(other.getRequestId())) 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(); + if (hasBatch()) { + hash = (37 * hash) + BATCH_FIELD_NUMBER; + hash = (53 * hash) + getBatch().hashCode(); + } + hash = (37 * hash) + BATCH_ID_FIELD_NUMBER; + hash = (53 * hash) + getBatchId().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to create a batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateBatchRequest) + com.google.cloud.dataproc.v1.CreateBatchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.CreateBatchRequest.class, + com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.CreateBatchRequest.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_ = ""; + + if (batchBuilder_ == null) { + batch_ = null; + } else { + batch_ = null; + batchBuilder_ = null; + } + batchId_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateBatchRequest build() { + com.google.cloud.dataproc.v1.CreateBatchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { + com.google.cloud.dataproc.v1.CreateBatchRequest result = + new com.google.cloud.dataproc.v1.CreateBatchRequest(this); + result.parent_ = parent_; + if (batchBuilder_ == null) { + result.batch_ = batch_; + } else { + result.batch_ = batchBuilder_.build(); + } + result.batchId_ = batchId_; + result.requestId_ = requestId_; + 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.dataproc.v1.CreateBatchRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateBatchRequest other) { + if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasBatch()) { + mergeBatch(other.getBatch()); + } + if (!other.getBatchId().isEmpty()) { + batchId_ = other.batchId_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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.dataproc.v1.CreateBatchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.CreateBatchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this batch will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this batch will be created.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this batch will be created.
+     * 
+ * + * + * 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 parent resource where this batch will be created.
+     * 
+ * + * + * 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 parent resource where this batch will be created.
+     * 
+ * + * + * 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 com.google.cloud.dataproc.v1.Batch batch_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + batchBuilder_; + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the batch field is set. + */ + public boolean hasBatch() { + return batchBuilder_ != null || batch_ != null; + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The batch. + */ + public com.google.cloud.dataproc.v1.Batch getBatch() { + if (batchBuilder_ == null) { + return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; + } else { + return batchBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { + if (batchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batch_ = value; + onChanged(); + } else { + batchBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBatch(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + if (batchBuilder_ == null) { + batch_ = builderForValue.build(); + onChanged(); + } else { + batchBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { + if (batchBuilder_ == null) { + if (batch_ != null) { + batch_ = + com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); + } else { + batch_ = value; + } + onChanged(); + } else { + batchBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBatch() { + if (batchBuilder_ == null) { + batch_ = null; + onChanged(); + } else { + batch_ = null; + batchBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.Batch.Builder getBatchBuilder() { + + onChanged(); + return getBatchFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { + if (batchBuilder_ != null) { + return batchBuilder_.getMessageOrBuilder(); + } else { + return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; + } + } + /** + * + * + *
+     * Required. The batch to create.
+     * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + getBatchFieldBuilder() { + if (batchBuilder_ == null) { + batchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder>( + getBatch(), getParentForChildren(), isClean()); + batch_ = null; + } + return batchBuilder_; + } + + private java.lang.Object batchId_ = ""; + /** + * + * + *
+     * Optional. The ID to use for the batch, which will become the final component of
+     * the batch's resource name.
+     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+     * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The batchId. + */ + public java.lang.String getBatchId() { + java.lang.Object ref = batchId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + batchId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the batch, which will become the final component of
+     * the batch's resource name.
+     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+     * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for batchId. + */ + public com.google.protobuf.ByteString getBatchIdBytes() { + java.lang.Object ref = batchId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + batchId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The ID to use for the batch, which will become the final component of
+     * the batch's resource name.
+     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+     * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The batchId to set. + * @return This builder for chaining. + */ + public Builder setBatchId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + batchId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the batch, which will become the final component of
+     * the batch's resource name.
+     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+     * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBatchId() { + + batchId_ = getDefaultInstance().getBatchId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The ID to use for the batch, which will become the final component of
+     * the batch's resource name.
+     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+     * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for batchId to set. + * @return This builder for chaining. + */ + public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + batchId_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the service
+     * receives two
+     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+     * with the same request_id, the second request is ignored and the
+     * Operation that corresponds to the first Batch created and stored
+     * in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The value must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the service
+     * receives two
+     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+     * with the same request_id, the second request is ignored and the
+     * Operation that corresponds to the first Batch created and stored
+     * in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The value must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the service
+     * receives two
+     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+     * with the same request_id, the second request is ignored and the
+     * Operation that corresponds to the first Batch created and stored
+     * in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The value must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the service
+     * receives two
+     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+     * with the same request_id, the second request is ignored and the
+     * Operation that corresponds to the first Batch created and stored
+     * in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The value must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID used to identify the request. If the service
+     * receives two
+     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+     * with the same request_id, the second request is ignored and the
+     * Operation that corresponds to the first Batch created and stored
+     * in the backend is returned.
+     * Recommendation: Set this value to a
+     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+     * The value must contain only letters (a-z, A-Z), numbers (0-9),
+     * underscores (_), and hyphens (-). The maximum length is 40 characters.
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + 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.dataproc.v1.CreateBatchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateBatchRequest) + private static final com.google.cloud.dataproc.v1.CreateBatchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateBatchRequest(); + } + + public static com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBatchRequest(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.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java new file mode 100644 index 00000000..0ea10ac4 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface CreateBatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this batch will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where this batch will be created.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the batch field is set. + */ + boolean hasBatch(); + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The batch. + */ + com.google.cloud.dataproc.v1.Batch getBatch(); + /** + * + * + *
+   * Required. The batch to create.
+   * 
+ * + * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder(); + + /** + * + * + *
+   * Optional. The ID to use for the batch, which will become the final component of
+   * the batch's resource name.
+   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+   * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The batchId. + */ + java.lang.String getBatchId(); + /** + * + * + *
+   * Optional. The ID to use for the batch, which will become the final component of
+   * the batch's resource name.
+   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
+   * 
+ * + * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for batchId. + */ + com.google.protobuf.ByteString getBatchIdBytes(); + + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the service
+   * receives two
+   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+   * with the same request_id, the second request is ignored and the
+   * Operation that corresponds to the first Batch created and stored
+   * in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The value must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A unique ID used to identify the request. If the service
+   * receives two
+   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
+   * with the same request_id, the second request is ignored and the
+   * Operation that corresponds to the first Batch created and stored
+   * in the backend is returned.
+   * Recommendation: Set this value to a
+   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
+   * The value must contain only letters (a-z, A-Z), numbers (0-9),
+   * underscores (_), and hyphens (-). The maximum length is 40 characters.
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java new file mode 100644 index 00000000..7efd27a9 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java @@ -0,0 +1,649 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to delete a batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} + */ +public final class DeleteBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteBatchRequest) + DeleteBatchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBatchRequest.newBuilder() to construct. + private DeleteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBatchRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBatchRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteBatchRequest( + 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.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.dataproc.v1.DeleteBatchRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.DeleteBatchRequest other = + (com.google.cloud.dataproc.v1.DeleteBatchRequest) 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.dataproc.v1.DeleteBatchRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to delete a batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteBatchRequest) + com.google.cloud.dataproc.v1.DeleteBatchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DeleteBatchRequest.class, + com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.DeleteBatchRequest.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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DeleteBatchRequest build() { + com.google.cloud.dataproc.v1.DeleteBatchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { + com.google.cloud.dataproc.v1.DeleteBatchRequest result = + new com.google.cloud.dataproc.v1.DeleteBatchRequest(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.dataproc.v1.DeleteBatchRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteBatchRequest other) { + if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.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.dataproc.v1.DeleteBatchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.DeleteBatchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the batch resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the batch resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the batch resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the batch resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the batch resource to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + 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.dataproc.v1.DeleteBatchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteBatchRequest) + private static final com.google.cloud.dataproc.v1.DeleteBatchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteBatchRequest(); + } + + public static com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBatchRequest(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.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java new file mode 100644 index 00000000..55c734ca --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface DeleteBatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the batch resource to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java new file mode 100644 index 00000000..9e300434 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java @@ -0,0 +1,648 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to get the resource representation for a batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} + */ +public final class GetBatchRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetBatchRequest) + GetBatchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBatchRequest.newBuilder() to construct. + private GetBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBatchRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBatchRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetBatchRequest( + 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GetBatchRequest.class, + com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.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.dataproc.v1.GetBatchRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GetBatchRequest other = + (com.google.cloud.dataproc.v1.GetBatchRequest) 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.dataproc.v1.GetBatchRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to get the resource representation for a batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetBatchRequest) + com.google.cloud.dataproc.v1.GetBatchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GetBatchRequest.class, + com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GetBatchRequest.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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetBatchRequest build() { + com.google.cloud.dataproc.v1.GetBatchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { + com.google.cloud.dataproc.v1.GetBatchRequest result = + new com.google.cloud.dataproc.v1.GetBatchRequest(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.dataproc.v1.GetBatchRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GetBatchRequest other) { + if (other == com.google.cloud.dataproc.v1.GetBatchRequest.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.dataproc.v1.GetBatchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.GetBatchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the batch to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the batch to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the batch to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the batch to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the batch to retrieve.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + 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.dataproc.v1.GetBatchRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetBatchRequest) + private static final com.google.cloud.dataproc.v1.GetBatchRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetBatchRequest(); + } + + public static com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBatchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBatchRequest(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.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java new file mode 100644 index 00000000..e8b97dd4 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface GetBatchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the batch to retrieve.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java new file mode 100644 index 00000000..09cd5aa3 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java @@ -0,0 +1,933 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A request to list batch workloads in a project.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} + */ +public final class ListBatchesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesRequest) + ListBatchesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBatchesRequest.newBuilder() to construct. + private ListBatchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBatchesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBatchesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListBatchesRequest( + 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 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + 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.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ListBatchesRequest.class, + com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent, which owns this collection of batches.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent, which owns this collection of batches.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * Optional. The maximum number of batches to return in each response.
+   * The service may return fewer than this value.
+   * The default page size is 20; the maximum page size is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. A page token received from a previous `ListBatches` call.
+   * Provide this token to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token received from a previous `ListBatches` call.
+   * Provide this token to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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.dataproc.v1.ListBatchesRequest)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ListBatchesRequest other = + (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; + + 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; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 request to list batch workloads in a project.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesRequest) + com.google.cloud.dataproc.v1.ListBatchesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ListBatchesRequest.class, + com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ListBatchesRequest.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_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesRequest build() { + com.google.cloud.dataproc.v1.ListBatchesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { + com.google.cloud.dataproc.v1.ListBatchesRequest result = + new com.google.cloud.dataproc.v1.ListBatchesRequest(this); + result.parent_ = parent_; + 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.dataproc.v1.ListBatchesRequest) { + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesRequest other) { + if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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.dataproc.v1.ListBatchesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.ListBatchesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent, which owns this collection of batches.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent, which owns this collection of batches.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent, which owns this collection of batches.
+     * 
+ * + * + * 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 parent, which owns this collection of batches.
+     * 
+ * + * + * 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 parent, which owns this collection of batches.
+     * 
+ * + * + * 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 int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of batches to return in each response.
+     * The service may return fewer than this value.
+     * The default page size is 20; the maximum page size is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of batches to return in each response.
+     * The service may return fewer than this value.
+     * The default page size is 20; the maximum page size is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of batches to return in each response.
+     * The service may return fewer than this value.
+     * The default page size is 20; the maximum page size is 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token received from a previous `ListBatches` call.
+     * Provide this token to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token received from a previous `ListBatches` call.
+     * Provide this token to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token received from a previous `ListBatches` call.
+     * Provide this token to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token received from a previous `ListBatches` call.
+     * Provide this token to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token received from a previous `ListBatches` call.
+     * Provide this token to retrieve the subsequent page.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + 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.dataproc.v1.ListBatchesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesRequest) + private static final com.google.cloud.dataproc.v1.ListBatchesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesRequest(); + } + + public static com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBatchesRequest(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.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java new file mode 100644 index 00000000..3f4c4c33 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface ListBatchesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of batches.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent, which owns this collection of batches.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of batches to return in each response.
+   * The service may return fewer than this value.
+   * The default page size is 20; the maximum page size is 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token received from a previous `ListBatches` call.
+   * Provide this token to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token received from a previous `ListBatches` call.
+   * Provide this token to retrieve the subsequent page.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java new file mode 100644 index 00000000..4106275b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java @@ -0,0 +1,1133 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A list of batch workloads.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} + */ +public final class ListBatchesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesResponse) + ListBatchesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBatchesResponse.newBuilder() to construct. + private ListBatchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBatchesResponse() { + batches_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBatchesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListBatchesResponse( + 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)) { + batches_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + batches_.add( + input.readMessage( + com.google.cloud.dataproc.v1.Batch.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)) { + batches_ = java.util.Collections.unmodifiableList(batches_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ListBatchesResponse.class, + com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + } + + public static final int BATCHES_FIELD_NUMBER = 1; + private java.util.List batches_; + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + @java.lang.Override + public java.util.List getBatchesList() { + return batches_; + } + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + @java.lang.Override + public java.util.List + getBatchesOrBuilderList() { + return batches_; + } + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + @java.lang.Override + public int getBatchesCount() { + return batches_.size(); + } + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.Batch getBatches(int index) { + return batches_.get(index); + } + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { + return batches_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < batches_.size(); i++) { + output.writeMessage(1, batches_.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 < batches_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, batches_.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.dataproc.v1.ListBatchesResponse)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.ListBatchesResponse other = + (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; + + if (!getBatchesList().equals(other.getBatchesList())) 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 (getBatchesCount() > 0) { + hash = (37 * hash) + BATCHES_FIELD_NUMBER; + hash = (53 * hash) + getBatchesList().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.dataproc.v1.ListBatchesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 list of batch workloads.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesResponse) + com.google.cloud.dataproc.v1.ListBatchesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.ListBatchesResponse.class, + com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.ListBatchesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBatchesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (batchesBuilder_ == null) { + batches_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + batchesBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesResponse build() { + com.google.cloud.dataproc.v1.ListBatchesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { + com.google.cloud.dataproc.v1.ListBatchesResponse result = + new com.google.cloud.dataproc.v1.ListBatchesResponse(this); + int from_bitField0_ = bitField0_; + if (batchesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + batches_ = java.util.Collections.unmodifiableList(batches_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.batches_ = batches_; + } else { + result.batches_ = batchesBuilder_.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.dataproc.v1.ListBatchesResponse) { + return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) { + if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) + return this; + if (batchesBuilder_ == null) { + if (!other.batches_.isEmpty()) { + if (batches_.isEmpty()) { + batches_ = other.batches_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBatchesIsMutable(); + batches_.addAll(other.batches_); + } + onChanged(); + } + } else { + if (!other.batches_.isEmpty()) { + if (batchesBuilder_.isEmpty()) { + batchesBuilder_.dispose(); + batchesBuilder_ = null; + batches_ = other.batches_; + bitField0_ = (bitField0_ & ~0x00000001); + batchesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBatchesFieldBuilder() + : null; + } else { + batchesBuilder_.addAllMessages(other.batches_); + } + } + } + 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.dataproc.v1.ListBatchesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.ListBatchesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List batches_ = + java.util.Collections.emptyList(); + + private void ensureBatchesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + batches_ = new java.util.ArrayList(batches_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + batchesBuilder_; + + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public java.util.List getBatchesList() { + if (batchesBuilder_ == null) { + return java.util.Collections.unmodifiableList(batches_); + } else { + return batchesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public int getBatchesCount() { + if (batchesBuilder_ == null) { + return batches_.size(); + } else { + return batchesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public com.google.cloud.dataproc.v1.Batch getBatches(int index) { + if (batchesBuilder_ == null) { + return batches_.get(index); + } else { + return batchesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder setBatches(int index, com.google.cloud.dataproc.v1.Batch value) { + if (batchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchesIsMutable(); + batches_.set(index, value); + onChanged(); + } else { + batchesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder setBatches( + int index, com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.set(index, builderForValue.build()); + onChanged(); + } else { + batchesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder addBatches(com.google.cloud.dataproc.v1.Batch value) { + if (batchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchesIsMutable(); + batches_.add(value); + onChanged(); + } else { + batchesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder addBatches(int index, com.google.cloud.dataproc.v1.Batch value) { + if (batchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBatchesIsMutable(); + batches_.add(index, value); + onChanged(); + } else { + batchesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder addBatches(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.add(builderForValue.build()); + onChanged(); + } else { + batchesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder addBatches( + int index, com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.add(index, builderForValue.build()); + onChanged(); + } else { + batchesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder addAllBatches( + java.lang.Iterable values) { + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, batches_); + onChanged(); + } else { + batchesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder clearBatches() { + if (batchesBuilder_ == null) { + batches_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + batchesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public Builder removeBatches(int index) { + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.remove(index); + onChanged(); + } else { + batchesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder(int index) { + return getBatchesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { + if (batchesBuilder_ == null) { + return batches_.get(index); + } else { + return batchesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public java.util.List + getBatchesOrBuilderList() { + if (batchesBuilder_ != null) { + return batchesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(batches_); + } + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder() { + return getBatchesFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder(int index) { + return getBatchesFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); + } + /** + * + * + *
+     * The batches from the specified collection.
+     * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + public java.util.List getBatchesBuilderList() { + return getBatchesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder> + getBatchesFieldBuilder() { + if (batchesBuilder_ == null) { + batchesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.Batch, + com.google.cloud.dataproc.v1.Batch.Builder, + com.google.cloud.dataproc.v1.BatchOrBuilder>( + batches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + batches_ = null; + } + return batchesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + 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.dataproc.v1.ListBatchesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesResponse) + private static final com.google.cloud.dataproc.v1.ListBatchesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesResponse(); + } + + public static com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBatchesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBatchesResponse(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.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java new file mode 100644 index 00000000..bc8cc883 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface ListBatchesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + java.util.List getBatchesList(); + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + com.google.cloud.dataproc.v1.Batch getBatches(int index); + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + int getBatchesCount(); + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + java.util.List getBatchesOrBuilderList(); + /** + * + * + *
+   * The batches from the specified collection.
+   * 
+ * + * repeated .google.cloud.dataproc.v1.Batch batches = 1; + */ + com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java new file mode 100644 index 00000000..01199b11 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java @@ -0,0 +1,2122 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A configuration for running an
+ * [Apache
+ * PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
+ * batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch} + */ +public final class PySparkBatch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkBatch) + PySparkBatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use PySparkBatch.newBuilder() to construct. + private PySparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PySparkBatch() { + mainPythonFileUri_ = ""; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PySparkBatch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PySparkBatch( + 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(); + + mainPythonFileUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + args_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + pythonFileUris_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jarFileUris_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + fileUris_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + archiveUris_.add(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)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.PySparkBatch.class, + com.google.cloud.dataproc.v1.PySparkBatch.Builder.class); + } + + public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object mainPythonFileUri_; + /** + * + * + *
+   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+   * be a .py file.
+   * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainPythonFileUri. + */ + @java.lang.Override + public java.lang.String getMainPythonFileUri() { + java.lang.Object ref = mainPythonFileUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainPythonFileUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+   * be a .py file.
+   * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainPythonFileUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + java.lang.Object ref = mainPythonFileUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainPythonFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList args_; + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_; + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList pythonFileUris_; + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pythonFileUris. + */ + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + return pythonFileUris_; + } + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pythonFileUris. + */ + public int getPythonFileUrisCount() { + return pythonFileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pythonFileUris at the given index. + */ + public java.lang.String getPythonFileUris(int index) { + return pythonFileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pythonFileUris at the given index. + */ + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + return pythonFileUris_.getByteString(index); + } + + public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList jarFileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + + public static final int FILE_URIS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList fileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + + public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList archiveUris_; + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); + } + for (int i = 0; i < pythonFileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonFileUris_.getRaw(i)); + } + for (int i = 0; i < jarFileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); + } + for (int i = 0; i < fileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); + } + for (int i = 0; i < archiveUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); + } + 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(mainPythonFileUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < pythonFileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(pythonFileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getPythonFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < jarFileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getJarFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < fileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < archiveUris_.size(); i++) { + dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getArchiveUrisList().size(); + } + 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.dataproc.v1.PySparkBatch)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.PySparkBatch other = + (com.google.cloud.dataproc.v1.PySparkBatch) obj; + + if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) 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) + MAIN_PYTHON_FILE_URI_FIELD_NUMBER; + hash = (53 * hash) + getMainPythonFileUri().hashCode(); + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (getPythonFileUrisCount() > 0) { + hash = (37 * hash) + PYTHON_FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getPythonFileUrisList().hashCode(); + } + if (getJarFileUrisCount() > 0) { + hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getJarFileUrisList().hashCode(); + } + if (getFileUrisCount() > 0) { + hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getFileUrisList().hashCode(); + } + if (getArchiveUrisCount() > 0) { + hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getArchiveUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 configuration for running an
+   * [Apache
+   * PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
+   * batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkBatch) + com.google.cloud.dataproc.v1.PySparkBatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.PySparkBatch.class, + com.google.cloud.dataproc.v1.PySparkBatch.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.PySparkBatch.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(); + mainPythonFileUri_ = ""; + + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatch build() { + com.google.cloud.dataproc.v1.PySparkBatch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() { + com.google.cloud.dataproc.v1.PySparkBatch result = + new com.google.cloud.dataproc.v1.PySparkBatch(this); + int from_bitField0_ = bitField0_; + result.mainPythonFileUri_ = mainPythonFileUri_; + if (((bitField0_ & 0x00000001) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.args_ = args_; + if (((bitField0_ & 0x00000002) != 0)) { + pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.pythonFileUris_ = pythonFileUris_; + if (((bitField0_ & 0x00000004) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jarFileUris_ = jarFileUris_; + if (((bitField0_ & 0x00000008) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.fileUris_ = fileUris_; + if (((bitField0_ & 0x00000010) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.archiveUris_ = archiveUris_; + 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.dataproc.v1.PySparkBatch) { + return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkBatch other) { + if (other == com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) return this; + if (!other.getMainPythonFileUri().isEmpty()) { + mainPythonFileUri_ = other.mainPythonFileUri_; + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (!other.pythonFileUris_.isEmpty()) { + if (pythonFileUris_.isEmpty()) { + pythonFileUris_ = other.pythonFileUris_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePythonFileUrisIsMutable(); + pythonFileUris_.addAll(other.pythonFileUris_); + } + onChanged(); + } + if (!other.jarFileUris_.isEmpty()) { + if (jarFileUris_.isEmpty()) { + jarFileUris_ = other.jarFileUris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJarFileUrisIsMutable(); + jarFileUris_.addAll(other.jarFileUris_); + } + onChanged(); + } + if (!other.fileUris_.isEmpty()) { + if (fileUris_.isEmpty()) { + fileUris_ = other.fileUris_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFileUrisIsMutable(); + fileUris_.addAll(other.fileUris_); + } + onChanged(); + } + if (!other.archiveUris_.isEmpty()) { + if (archiveUris_.isEmpty()) { + archiveUris_ = other.archiveUris_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureArchiveUrisIsMutable(); + archiveUris_.addAll(other.archiveUris_); + } + 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.dataproc.v1.PySparkBatch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.PySparkBatch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object mainPythonFileUri_ = ""; + /** + * + * + *
+     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+     * be a .py file.
+     * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainPythonFileUri. + */ + public java.lang.String getMainPythonFileUri() { + java.lang.Object ref = mainPythonFileUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainPythonFileUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+     * be a .py file.
+     * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainPythonFileUri. + */ + public com.google.protobuf.ByteString getMainPythonFileUriBytes() { + java.lang.Object ref = mainPythonFileUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainPythonFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+     * be a .py file.
+     * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mainPythonFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainPythonFileUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainPythonFileUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+     * be a .py file.
+     * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMainPythonFileUri() { + + mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+     * be a .py file.
+     * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mainPythonFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainPythonFileUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs(java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList pythonFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePythonFileUrisIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pythonFileUris. + */ + public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { + return pythonFileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pythonFileUris. + */ + public int getPythonFileUrisCount() { + return pythonFileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pythonFileUris at the given index. + */ + public java.lang.String getPythonFileUris(int index) { + return pythonFileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pythonFileUris at the given index. + */ + public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { + return pythonFileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pythonFileUris to set. + * @return This builder for chaining. + */ + public Builder setPythonFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); + pythonFileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pythonFileUris to add. + * @return This builder for chaining. + */ + public Builder addPythonFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePythonFileUrisIsMutable(); + pythonFileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pythonFileUris to add. + * @return This builder for chaining. + */ + public Builder addAllPythonFileUris(java.lang.Iterable values) { + ensurePythonFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPythonFileUris() { + pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS file URIs of Python files to pass to the PySpark
+     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+     * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pythonFileUris to add. + * @return This builder for chaining. + */ + public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePythonFileUrisIsMutable(); + pythonFileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJarFileUrisIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The jarFileUris to set. + * @return This builder for chaining. + */ + public Builder setJarFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addAllJarFileUris(java.lang.Iterable values) { + ensureJarFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJarFileUris() { + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFileUrisIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The fileUris to set. + * @return This builder for chaining. + */ + public Builder setFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The fileUris to add. + * @return This builder for chaining. + */ + public Builder addAllFileUris(java.lang.Iterable values) { + ensureFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileUris() { + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArchiveUrisIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The archiveUris to set. + * @return This builder for chaining. + */ + public Builder setArchiveUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addAllArchiveUris(java.lang.Iterable values) { + ensureArchiveUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArchiveUris() { + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArchiveUrisIsMutable(); + archiveUris_.add(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.dataproc.v1.PySparkBatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkBatch) + private static final com.google.cloud.dataproc.v1.PySparkBatch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkBatch(); + } + + public static com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PySparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PySparkBatch(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.dataproc.v1.PySparkBatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java new file mode 100644 index 00000000..b65ba0cb --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java @@ -0,0 +1,335 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface PySparkBatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkBatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+   * be a .py file.
+   * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainPythonFileUri. + */ + java.lang.String getMainPythonFileUri(); + /** + * + * + *
+   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
+   * be a .py file.
+   * 
+ * + * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainPythonFileUri. + */ + com.google.protobuf.ByteString getMainPythonFileUriBytes(); + + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + java.util.List getArgsList(); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + int getArgsCount(); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString getArgsBytes(int index); + + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pythonFileUris. + */ + java.util.List getPythonFileUrisList(); + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pythonFileUris. + */ + int getPythonFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pythonFileUris at the given index. + */ + java.lang.String getPythonFileUris(int index); + /** + * + * + *
+   * Optional. HCFS file URIs of Python files to pass to the PySpark
+   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
+   * 
+ * + * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pythonFileUris at the given index. + */ + com.google.protobuf.ByteString getPythonFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + java.util.List getJarFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + int getJarFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + java.lang.String getJarFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + com.google.protobuf.ByteString getJarFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + java.util.List getFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + int getFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + java.lang.String getFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + com.google.protobuf.ByteString getFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + java.util.List getArchiveUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + int getArchiveUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + java.lang.String getArchiveUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + com.google.protobuf.ByteString getArchiveUrisBytes(int index); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java new file mode 100644 index 00000000..0f00a9d6 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java @@ -0,0 +1,2198 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A configuration for running an [Apache Spark](http://spark.apache.org/)
+ * batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch} + */ +public final class SparkBatch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkBatch) + SparkBatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkBatch.newBuilder() to construct. + private SparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SparkBatch() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SparkBatch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SparkBatch( + 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(); + driverCase_ = 1; + driver_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 2; + driver_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + args_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jarFileUris_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + fileUris_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + archiveUris_.add(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)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkBatch.class, + com.google.cloud.dataproc.v1.SparkBatch.Builder.class); + } + + private int driverCase_ = 0; + private java.lang.Object driver_; + + public enum DriverCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAIN_JAR_FILE_URI(1), + MAIN_CLASS(2), + DRIVER_NOT_SET(0); + private final int value; + + private DriverCase(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 DriverCase valueOf(int value) { + return forNumber(value); + } + + public static DriverCase forNumber(int value) { + switch (value) { + case 1: + return MAIN_JAR_FILE_URI; + case 2: + return MAIN_CLASS; + case 0: + return DRIVER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DriverCase getDriverCase() { + return DriverCase.forNumber(driverCase_); + } + + public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainJarFileUri field is set. + */ + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainJarFileUri. + */ + public java.lang.String getMainJarFileUri() { + java.lang.Object ref = ""; + if (driverCase_ == 1) { + ref = driver_; + } + if (ref instanceof java.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 (driverCase_ == 1) { + driver_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainJarFileUri. + */ + public com.google.protobuf.ByteString getMainJarFileUriBytes() { + java.lang.Object ref = ""; + if (driverCase_ == 1) { + ref = driver_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driverCase_ == 1) { + driver_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAIN_CLASS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainClass field is set. + */ + public boolean hasMainClass() { + return driverCase_ == 2; + } + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainClass. + */ + public java.lang.String getMainClass() { + java.lang.Object ref = ""; + if (driverCase_ == 2) { + ref = driver_; + } + if (ref instanceof java.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 (driverCase_ == 2) { + driver_ = s; + } + return s; + } + } + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainClass. + */ + public com.google.protobuf.ByteString getMainClassBytes() { + java.lang.Object ref = ""; + if (driverCase_ == 2) { + ref = driver_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driverCase_ == 2) { + driver_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_; + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList jarFileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + + public static final int FILE_URIS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList fileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + + public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList archiveUris_; + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (driverCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); + } + if (driverCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + for (int i = 0; i < jarFileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); + } + for (int i = 0; i < fileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); + } + for (int i = 0; i < archiveUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (driverCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); + } + if (driverCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < jarFileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getJarFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < fileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < archiveUris_.size(); i++) { + dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getArchiveUrisList().size(); + } + 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.dataproc.v1.SparkBatch)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.SparkBatch other = (com.google.cloud.dataproc.v1.SparkBatch) obj; + + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; + if (!getDriverCase().equals(other.getDriverCase())) return false; + switch (driverCase_) { + case 1: + if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; + break; + case 2: + if (!getMainClass().equals(other.getMainClass())) 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(); + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (getJarFileUrisCount() > 0) { + hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getJarFileUrisList().hashCode(); + } + if (getFileUrisCount() > 0) { + hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getFileUrisList().hashCode(); + } + if (getArchiveUrisCount() > 0) { + hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getArchiveUrisList().hashCode(); + } + switch (driverCase_) { + case 1: + hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; + hash = (53 * hash) + getMainJarFileUri().hashCode(); + break; + case 2: + hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getMainClass().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 configuration for running an [Apache Spark](http://spark.apache.org/)
+   * batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkBatch) + com.google.cloud.dataproc.v1.SparkBatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkBatch.class, + com.google.cloud.dataproc.v1.SparkBatch.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.SparkBatch.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(); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + driverCase_ = 0; + driver_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatch getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatch build() { + com.google.cloud.dataproc.v1.SparkBatch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkBatch buildPartial() { + com.google.cloud.dataproc.v1.SparkBatch result = + new com.google.cloud.dataproc.v1.SparkBatch(this); + int from_bitField0_ = bitField0_; + if (driverCase_ == 1) { + result.driver_ = driver_; + } + if (driverCase_ == 2) { + result.driver_ = driver_; + } + if (((bitField0_ & 0x00000001) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.args_ = args_; + if (((bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jarFileUris_ = jarFileUris_; + if (((bitField0_ & 0x00000004) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.fileUris_ = fileUris_; + if (((bitField0_ & 0x00000008) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.archiveUris_ = archiveUris_; + result.driverCase_ = driverCase_; + 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.dataproc.v1.SparkBatch) { + return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkBatch other) { + if (other == com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) return this; + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (!other.jarFileUris_.isEmpty()) { + if (jarFileUris_.isEmpty()) { + jarFileUris_ = other.jarFileUris_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJarFileUrisIsMutable(); + jarFileUris_.addAll(other.jarFileUris_); + } + onChanged(); + } + if (!other.fileUris_.isEmpty()) { + if (fileUris_.isEmpty()) { + fileUris_ = other.fileUris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFileUrisIsMutable(); + fileUris_.addAll(other.fileUris_); + } + onChanged(); + } + if (!other.archiveUris_.isEmpty()) { + if (archiveUris_.isEmpty()) { + archiveUris_ = other.archiveUris_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureArchiveUrisIsMutable(); + archiveUris_.addAll(other.archiveUris_); + } + onChanged(); + } + switch (other.getDriverCase()) { + case MAIN_JAR_FILE_URI: + { + driverCase_ = 1; + driver_ = other.driver_; + onChanged(); + break; + } + case MAIN_CLASS: + { + driverCase_ = 2; + driver_ = other.driver_; + onChanged(); + break; + } + case DRIVER_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.dataproc.v1.SparkBatch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.SparkBatch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int driverCase_ = 0; + private java.lang.Object driver_; + + public DriverCase getDriverCase() { + return DriverCase.forNumber(driverCase_); + } + + public Builder clearDriver() { + driverCase_ = 0; + driver_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainJarFileUri field is set. + */ + @java.lang.Override + public boolean hasMainJarFileUri() { + return driverCase_ == 1; + } + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainJarFileUri. + */ + @java.lang.Override + public java.lang.String getMainJarFileUri() { + java.lang.Object ref = ""; + if (driverCase_ == 1) { + ref = driver_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (driverCase_ == 1) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainJarFileUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainJarFileUriBytes() { + java.lang.Object ref = ""; + if (driverCase_ == 1) { + ref = driver_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driverCase_ == 1) { + driver_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mainJarFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainJarFileUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + driverCase_ = 1; + driver_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMainJarFileUri() { + if (driverCase_ == 1) { + driverCase_ = 0; + driver_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The HCFS URI of the jar file that contains the main class.
+     * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mainJarFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverCase_ = 1; + driver_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainClass field is set. + */ + @java.lang.Override + public boolean hasMainClass() { + return driverCase_ == 2; + } + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainClass. + */ + @java.lang.Override + public java.lang.String getMainClass() { + java.lang.Object ref = ""; + if (driverCase_ == 2) { + ref = driver_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (driverCase_ == 2) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainClass. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainClassBytes() { + java.lang.Object ref = ""; + if (driverCase_ == 2) { + ref = driver_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (driverCase_ == 2) { + driver_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mainClass to set. + * @return This builder for chaining. + */ + public Builder setMainClass(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + driverCase_ = 2; + driver_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMainClass() { + if (driverCase_ == 2) { + driverCase_ = 0; + driver_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The name of the driver main class. The jar file that contains the class
+     * must be in the classpath or specified in `jar_file_uris`.
+     * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mainClass to set. + * @return This builder for chaining. + */ + public Builder setMainClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + driverCase_ = 2; + driver_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs(java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJarFileUrisIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The jarFileUris to set. + * @return This builder for chaining. + */ + public Builder setJarFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addAllJarFileUris(java.lang.Iterable values) { + ensureJarFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJarFileUris() { + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to add to the classpath of the
+     * Spark driver and tasks.
+     * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFileUrisIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The fileUris to set. + * @return This builder for chaining. + */ + public Builder setFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The fileUris to add. + * @return This builder for chaining. + */ + public Builder addAllFileUris(java.lang.Iterable values) { + ensureFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileUris() { + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArchiveUrisIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The archiveUris to set. + * @return This builder for chaining. + */ + public Builder setArchiveUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addAllArchiveUris(java.lang.Iterable values) { + ensureArchiveUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArchiveUris() { + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArchiveUrisIsMutable(); + archiveUris_.add(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.dataproc.v1.SparkBatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkBatch) + private static final com.google.cloud.dataproc.v1.SparkBatch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkBatch(); + } + + public static com.google.cloud.dataproc.v1.SparkBatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkBatch(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.dataproc.v1.SparkBatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java new file mode 100644 index 00000000..8ce57703 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java @@ -0,0 +1,332 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface SparkBatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkBatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainJarFileUri field is set. + */ + boolean hasMainJarFileUri(); + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainJarFileUri. + */ + java.lang.String getMainJarFileUri(); + /** + * + * + *
+   * Optional. The HCFS URI of the jar file that contains the main class.
+   * 
+ * + * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainJarFileUri. + */ + com.google.protobuf.ByteString getMainJarFileUriBytes(); + + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the mainClass field is set. + */ + boolean hasMainClass(); + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mainClass. + */ + java.lang.String getMainClass(); + /** + * + * + *
+   * Optional. The name of the driver main class. The jar file that contains the class
+   * must be in the classpath or specified in `jar_file_uris`.
+   * 
+ * + * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mainClass. + */ + com.google.protobuf.ByteString getMainClassBytes(); + + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + java.util.List getArgsList(); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + int getArgsCount(); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + * + * + *
+   * Optional. The arguments to pass to the driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString getArgsBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + java.util.List getJarFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + int getJarFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + java.lang.String getJarFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to add to the classpath of the
+   * Spark driver and tasks.
+   * 
+ * + * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + com.google.protobuf.ByteString getJarFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + java.util.List getFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + int getFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + java.lang.String getFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + com.google.protobuf.ByteString getFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + java.util.List getArchiveUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + int getArchiveUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + java.lang.String getArchiveUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + com.google.protobuf.ByteString getArchiveUrisBytes(int index); + + public com.google.cloud.dataproc.v1.SparkBatch.DriverCase getDriverCase(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java new file mode 100644 index 00000000..f694d617 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java @@ -0,0 +1,1541 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A configuration for running an
+ * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
+ * batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch} + */ +public final class SparkRBatch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRBatch) + SparkRBatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkRBatch.newBuilder() to construct. + private SparkRBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SparkRBatch() { + mainRFileUri_ = ""; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SparkRBatch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SparkRBatch( + 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(); + + mainRFileUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + args_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + fileUris_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + archiveUris_.add(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)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkRBatch.class, + com.google.cloud.dataproc.v1.SparkRBatch.Builder.class); + } + + public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object mainRFileUri_; + /** + * + * + *
+   * Required. The HCFS URI of the main R file to use as the driver.
+   * Must be a `.R` or `.r` file.
+   * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainRFileUri. + */ + @java.lang.Override + public java.lang.String getMainRFileUri() { + java.lang.Object ref = mainRFileUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainRFileUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The HCFS URI of the main R file to use as the driver.
+   * Must be a `.R` or `.r` file.
+   * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainRFileUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMainRFileUriBytes() { + java.lang.Object ref = mainRFileUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainRFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList args_; + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_; + } + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int FILE_URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList fileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + + public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList archiveUris_; + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); + } + for (int i = 0; i < fileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i)); + } + for (int i = 0; i < archiveUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); + } + 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(mainRFileUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < fileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getFileUrisList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < archiveUris_.size(); i++) { + dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getArchiveUrisList().size(); + } + 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.dataproc.v1.SparkRBatch)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.SparkRBatch other = (com.google.cloud.dataproc.v1.SparkRBatch) obj; + + if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!getFileUrisList().equals(other.getFileUrisList())) return false; + if (!getArchiveUrisList().equals(other.getArchiveUrisList())) 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) + MAIN_R_FILE_URI_FIELD_NUMBER; + hash = (53 * hash) + getMainRFileUri().hashCode(); + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (getFileUrisCount() > 0) { + hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getFileUrisList().hashCode(); + } + if (getArchiveUrisCount() > 0) { + hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getArchiveUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 configuration for running an
+   * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
+   * batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRBatch) + com.google.cloud.dataproc.v1.SparkRBatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkRBatch.class, + com.google.cloud.dataproc.v1.SparkRBatch.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.SparkRBatch.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(); + mainRFileUri_ = ""; + + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatch build() { + com.google.cloud.dataproc.v1.SparkRBatch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() { + com.google.cloud.dataproc.v1.SparkRBatch result = + new com.google.cloud.dataproc.v1.SparkRBatch(this); + int from_bitField0_ = bitField0_; + result.mainRFileUri_ = mainRFileUri_; + if (((bitField0_ & 0x00000001) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.args_ = args_; + if (((bitField0_ & 0x00000002) != 0)) { + fileUris_ = fileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.fileUris_ = fileUris_; + if (((bitField0_ & 0x00000004) != 0)) { + archiveUris_ = archiveUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.archiveUris_ = archiveUris_; + 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.dataproc.v1.SparkRBatch) { + return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRBatch other) { + if (other == com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) return this; + if (!other.getMainRFileUri().isEmpty()) { + mainRFileUri_ = other.mainRFileUri_; + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (!other.fileUris_.isEmpty()) { + if (fileUris_.isEmpty()) { + fileUris_ = other.fileUris_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFileUrisIsMutable(); + fileUris_.addAll(other.fileUris_); + } + onChanged(); + } + if (!other.archiveUris_.isEmpty()) { + if (archiveUris_.isEmpty()) { + archiveUris_ = other.archiveUris_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArchiveUrisIsMutable(); + archiveUris_.addAll(other.archiveUris_); + } + 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.dataproc.v1.SparkRBatch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.SparkRBatch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object mainRFileUri_ = ""; + /** + * + * + *
+     * Required. The HCFS URI of the main R file to use as the driver.
+     * Must be a `.R` or `.r` file.
+     * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainRFileUri. + */ + public java.lang.String getMainRFileUri() { + java.lang.Object ref = mainRFileUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainRFileUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the main R file to use as the driver.
+     * Must be a `.R` or `.r` file.
+     * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainRFileUri. + */ + public com.google.protobuf.ByteString getMainRFileUriBytes() { + java.lang.Object ref = mainRFileUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mainRFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the main R file to use as the driver.
+     * Must be a `.R` or `.r` file.
+     * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mainRFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainRFileUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainRFileUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the main R file to use as the driver.
+     * Must be a `.R` or `.r` file.
+     * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMainRFileUri() { + + mainRFileUri_ = getDefaultInstance().getMainRFileUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the main R file to use as the driver.
+     * Must be a `.R` or `.r` file.
+     * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mainRFileUri to set. + * @return This builder for chaining. + */ + public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainRFileUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList getArgsList() { + return args_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs(java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The arguments to pass to the Spark driver. Do not include arguments
+     * that can be set as batch properties, such as `--conf`, since a collision
+     * can occur that causes an incorrect batch submission.
+     * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList fileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureFileUrisIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + public com.google.protobuf.ProtocolStringList getFileUrisList() { + return fileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + public int getFileUrisCount() { + return fileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + public java.lang.String getFileUris(int index) { + return fileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + public com.google.protobuf.ByteString getFileUrisBytes(int index) { + return fileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The fileUris to set. + * @return This builder for chaining. + */ + public Builder setFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The fileUris to add. + * @return This builder for chaining. + */ + public Builder addAllFileUris(java.lang.Iterable values) { + ensureFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileUris() { + fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of files to be placed in the working directory of
+     * each executor.
+     * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the fileUris to add. + * @return This builder for chaining. + */ + public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFileUrisIsMutable(); + fileUris_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList archiveUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureArchiveUrisIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + public com.google.protobuf.ProtocolStringList getArchiveUrisList() { + return archiveUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + public int getArchiveUrisCount() { + return archiveUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + public java.lang.String getArchiveUris(int index) { + return archiveUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { + return archiveUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The archiveUris to set. + * @return This builder for chaining. + */ + public Builder setArchiveUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArchiveUrisIsMutable(); + archiveUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The archiveUris to add. + * @return This builder for chaining. + */ + public Builder addAllArchiveUris(java.lang.Iterable values) { + ensureArchiveUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArchiveUris() { + archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of archives to be extracted into the working directory
+     * of each executor. Supported file types:
+     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+     * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the archiveUris to add. + * @return This builder for chaining. + */ + public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArchiveUrisIsMutable(); + archiveUris_.add(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.dataproc.v1.SparkRBatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRBatch) + private static final com.google.cloud.dataproc.v1.SparkRBatch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRBatch(); + } + + public static com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkRBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkRBatch(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.dataproc.v1.SparkRBatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java new file mode 100644 index 00000000..1083a669 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java @@ -0,0 +1,225 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface SparkRBatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRBatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The HCFS URI of the main R file to use as the driver.
+   * Must be a `.R` or `.r` file.
+   * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mainRFileUri. + */ + java.lang.String getMainRFileUri(); + /** + * + * + *
+   * Required. The HCFS URI of the main R file to use as the driver.
+   * Must be a `.R` or `.r` file.
+   * 
+ * + * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mainRFileUri. + */ + com.google.protobuf.ByteString getMainRFileUriBytes(); + + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the args. + */ + java.util.List getArgsList(); + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of args. + */ + int getArgsCount(); + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + * + * + *
+   * Optional. The arguments to pass to the Spark driver. Do not include arguments
+   * that can be set as batch properties, such as `--conf`, since a collision
+   * can occur that causes an incorrect batch submission.
+   * 
+ * + * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString getArgsBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the fileUris. + */ + java.util.List getFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of fileUris. + */ + int getFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The fileUris at the given index. + */ + java.lang.String getFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of files to be placed in the working directory of
+   * each executor.
+   * 
+ * + * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the fileUris at the given index. + */ + com.google.protobuf.ByteString getFileUrisBytes(int index); + + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the archiveUris. + */ + java.util.List getArchiveUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of archiveUris. + */ + int getArchiveUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The archiveUris at the given index. + */ + java.lang.String getArchiveUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of archives to be extracted into the working directory
+   * of each executor. Supported file types:
+   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
+   * 
+ * + * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the archiveUris at the given index. + */ + com.google.protobuf.ByteString getArchiveUrisBytes(int index); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java new file mode 100644 index 00000000..170cbce5 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java @@ -0,0 +1,1275 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * A configuration for running
+ * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch} + */ +public final class SparkSqlBatch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlBatch) + SparkSqlBatchOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkSqlBatch.newBuilder() to construct. + private SparkSqlBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SparkSqlBatch() { + queryFileUri_ = ""; + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SparkSqlBatch(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SparkSqlBatch( + 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(); + + queryFileUri_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + queryVariables_ = + com.google.protobuf.MapField.newMapField( + QueryVariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry queryVariables__ = + input.readMessage( + QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + queryVariables_ + .getMutableMap() + .put(queryVariables__.getKey(), queryVariables__.getValue()); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + jarFileUris_.add(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_ & 0x00000002) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetQueryVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkSqlBatch.class, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class); + } + + public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object queryFileUri_; + /** + * + * + *
+   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+   * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryFileUri. + */ + @java.lang.Override + public java.lang.String getQueryFileUri() { + java.lang.Object ref = queryFileUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryFileUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+   * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryFileUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryFileUriBytes() { + java.lang.Object ref = queryFileUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_VARIABLES_FIELD_NUMBER = 2; + + private static final class QueryVariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField queryVariables_; + + private com.google.protobuf.MapField + internalGetQueryVariables() { + if (queryVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + QueryVariablesDefaultEntryHolder.defaultEntry); + } + return queryVariables_; + } + + public int getQueryVariablesCount() { + return internalGetQueryVariables().getMap().size(); + } + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsQueryVariables(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetQueryVariables().getMap().containsKey(key); + } + /** Use {@link #getQueryVariablesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getQueryVariables() { + return getQueryVariablesMap(); + } + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getQueryVariablesMap() { + return internalGetQueryVariables().getMap(); + } + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getQueryVariablesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetQueryVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetQueryVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int JAR_FILE_URIS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList jarFileUris_; + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_; + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryFileUri_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetQueryVariables(), QueryVariablesDefaultEntryHolder.defaultEntry, 2); + for (int i = 0; i < jarFileUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jarFileUris_.getRaw(i)); + } + 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(queryFileUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryFileUri_); + } + for (java.util.Map.Entry entry : + internalGetQueryVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry queryVariables__ = + QueryVariablesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, queryVariables__); + } + { + int dataSize = 0; + for (int i = 0; i < jarFileUris_.size(); i++) { + dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getJarFileUrisList().size(); + } + 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.dataproc.v1.SparkSqlBatch)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.SparkSqlBatch other = + (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; + + if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; + if (!internalGetQueryVariables().equals(other.internalGetQueryVariables())) return false; + if (!getJarFileUrisList().equals(other.getJarFileUrisList())) 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) + QUERY_FILE_URI_FIELD_NUMBER; + hash = (53 * hash) + getQueryFileUri().hashCode(); + if (!internalGetQueryVariables().getMap().isEmpty()) { + hash = (37 * hash) + QUERY_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetQueryVariables().hashCode(); + } + if (getJarFileUrisCount() > 0) { + hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getJarFileUrisList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 configuration for running
+   * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlBatch) + com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetQueryVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableQueryVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.SparkSqlBatch.class, + com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.SparkSqlBatch.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(); + queryFileUri_ = ""; + + internalGetMutableQueryVariables().clear(); + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.BatchesProto + .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatch build() { + com.google.cloud.dataproc.v1.SparkSqlBatch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() { + com.google.cloud.dataproc.v1.SparkSqlBatch result = + new com.google.cloud.dataproc.v1.SparkSqlBatch(this); + int from_bitField0_ = bitField0_; + result.queryFileUri_ = queryFileUri_; + result.queryVariables_ = internalGetQueryVariables(); + result.queryVariables_.makeImmutable(); + if (((bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = jarFileUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.jarFileUris_ = jarFileUris_; + 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.dataproc.v1.SparkSqlBatch) { + return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlBatch other) { + if (other == com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) return this; + if (!other.getQueryFileUri().isEmpty()) { + queryFileUri_ = other.queryFileUri_; + onChanged(); + } + internalGetMutableQueryVariables().mergeFrom(other.internalGetQueryVariables()); + if (!other.jarFileUris_.isEmpty()) { + if (jarFileUris_.isEmpty()) { + jarFileUris_ = other.jarFileUris_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureJarFileUrisIsMutable(); + jarFileUris_.addAll(other.jarFileUris_); + } + 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.dataproc.v1.SparkSqlBatch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.SparkSqlBatch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object queryFileUri_ = ""; + /** + * + * + *
+     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+     * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryFileUri. + */ + public java.lang.String getQueryFileUri() { + java.lang.Object ref = queryFileUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryFileUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+     * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryFileUri. + */ + public com.google.protobuf.ByteString getQueryFileUriBytes() { + java.lang.Object ref = queryFileUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryFileUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+     * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The queryFileUri to set. + * @return This builder for chaining. + */ + public Builder setQueryFileUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + queryFileUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+     * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQueryFileUri() { + + queryFileUri_ = getDefaultInstance().getQueryFileUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+     * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for queryFileUri to set. + * @return This builder for chaining. + */ + public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + queryFileUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField queryVariables_; + + private com.google.protobuf.MapField + internalGetQueryVariables() { + if (queryVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + QueryVariablesDefaultEntryHolder.defaultEntry); + } + return queryVariables_; + } + + private com.google.protobuf.MapField + internalGetMutableQueryVariables() { + onChanged(); + ; + if (queryVariables_ == null) { + queryVariables_ = + com.google.protobuf.MapField.newMapField(QueryVariablesDefaultEntryHolder.defaultEntry); + } + if (!queryVariables_.isMutable()) { + queryVariables_ = queryVariables_.copy(); + } + return queryVariables_; + } + + public int getQueryVariablesCount() { + return internalGetQueryVariables().getMap().size(); + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsQueryVariables(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetQueryVariables().getMap().containsKey(key); + } + /** Use {@link #getQueryVariablesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getQueryVariables() { + return getQueryVariablesMap(); + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getQueryVariablesMap() { + return internalGetQueryVariables().getMap(); + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getQueryVariablesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetQueryVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetQueryVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearQueryVariables() { + internalGetMutableQueryVariables().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeQueryVariables(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableQueryVariables().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableQueryVariables() { + return internalGetMutableQueryVariables().getMutableMap(); + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putQueryVariables(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableQueryVariables().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. Mapping of query variable names to values (equivalent to the
+     * Spark SQL command: `SET name="value";`).
+     * 
+ * + * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllQueryVariables(java.util.Map values) { + internalGetMutableQueryVariables().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.LazyStringList jarFileUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJarFileUrisIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + public com.google.protobuf.ProtocolStringList getJarFileUrisList() { + return jarFileUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + public int getJarFileUrisCount() { + return jarFileUris_.size(); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + public java.lang.String getJarFileUris(int index) { + return jarFileUris_.get(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { + return jarFileUris_.getByteString(index); + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The jarFileUris to set. + * @return This builder for chaining. + */ + public Builder setJarFileUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureJarFileUrisIsMutable(); + jarFileUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addAllJarFileUris(java.lang.Iterable values) { + ensureJarFileUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJarFileUris() { + jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+     * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the jarFileUris to add. + * @return This builder for chaining. + */ + public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(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.dataproc.v1.SparkSqlBatch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlBatch) + private static final com.google.cloud.dataproc.v1.SparkSqlBatch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlBatch(); + } + + public static com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkSqlBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkSqlBatch(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.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java new file mode 100644 index 00000000..ed8a233c --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java @@ -0,0 +1,165 @@ +/* + * 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/dataproc/v1/batches.proto + +package com.google.cloud.dataproc.v1; + +public interface SparkSqlBatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlBatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+   * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The queryFileUri. + */ + java.lang.String getQueryFileUri(); + /** + * + * + *
+   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
+   * 
+ * + * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for queryFileUri. + */ + com.google.protobuf.ByteString getQueryFileUriBytes(); + + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getQueryVariablesCount(); + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsQueryVariables(java.lang.String key); + /** Use {@link #getQueryVariablesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getQueryVariables(); + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getQueryVariablesMap(); + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getQueryVariablesOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Mapping of query variable names to values (equivalent to the
+   * Spark SQL command: `SET name="value";`).
+   * 
+ * + * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getQueryVariablesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the jarFileUris. + */ + java.util.List getJarFileUrisList(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of jarFileUris. + */ + int getJarFileUrisCount(); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The jarFileUris at the given index. + */ + java.lang.String getJarFileUris(int index); + /** + * + * + *
+   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
+   * 
+ * + * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the jarFileUris at the given index. + */ + com.google.protobuf.ByteString getJarFileUrisBytes(int index); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto new file mode 100644 index 00000000..eafb4e35 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto @@ -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 +// +// 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.dataproc.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataproc/v1/shared.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; +option java_multiple_files = true; +option java_outer_classname = "BatchesProto"; +option java_package = "com.google.cloud.dataproc.v1"; + +// The BatchController provides methods to manage batch workloads. +service BatchController { + option (google.api.default_host) = "dataproc.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a batch workload that executes asynchronously. + rpc CreateBatch(CreateBatchRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/batches" + body: "batch" + }; + option (google.api.method_signature) = "parent,batch,batch_id"; + option (google.longrunning.operation_info) = { + response_type: "Batch" + metadata_type: "google.cloud.dataproc.v1.BatchOperationMetadata" + }; + } + + // Gets the batch workload resource representation. + rpc GetBatch(GetBatchRequest) returns (Batch) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/batches/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists batch workloads. + rpc ListBatches(ListBatchesRequest) returns (ListBatchesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/batches" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the batch workload resource. If the batch is not in terminal state, + // the delete fails and the response returns `FAILED_PRECONDITION`. + rpc DeleteBatch(DeleteBatchRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/batches/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// A request to create a batch workload. +message CreateBatchRequest { + // Required. The parent resource where this batch will be created. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dataproc.googleapis.com/Batch" + } + ]; + + // Required. The batch to create. + Batch batch = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the batch, which will become the final component of + // the batch's resource name. + // + // This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. + string batch_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A unique ID used to identify the request. If the service + // receives two + // [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s + // with the same request_id, the second request is ignored and the + // Operation that corresponds to the first Batch created and stored + // in the backend is returned. + // + // Recommendation: Set this value to a + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). + // + // The value must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), and hyphens (-). The maximum length is 40 characters. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to get the resource representation for a batch workload. +message GetBatchRequest { + // Required. The name of the batch to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataproc.googleapis.com/Batch" + } + ]; +} + +// A request to list batch workloads in a project. +message ListBatchesRequest { + // Required. The parent, which owns this collection of batches. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dataproc.googleapis.com/Batch" + } + ]; + + // Optional. The maximum number of batches to return in each response. + // The service may return fewer than this value. + // The default page size is 20; the maximum page size is 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token received from a previous `ListBatches` call. + // Provide this token to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of batch workloads. +message ListBatchesResponse { + // The batches from the specified collection. + repeated Batch batches = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// A request to delete a batch workload. +message DeleteBatchRequest { + // Required. The name of the batch resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataproc.googleapis.com/Batch" + } + ]; +} + +// A representation of a batch workload in the service. +message Batch { + option (google.api.resource) = { + type: "dataproc.googleapis.com/Batch" + pattern: "projects/{project}/locations/{location}/batches/{batch}" + }; + + // Historical state information. + message StateHistory { + // Output only. The state of the batch at this point in history. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Details about the state at this point in history. + string state_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the batch entered the historical state. + google.protobuf.Timestamp state_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The batch state. + enum State { + // The batch state is unknown. + STATE_UNSPECIFIED = 0; + + // The batch is created before running. + PENDING = 1; + + // The batch is running. + RUNNING = 2; + + // The batch is cancelling. + CANCELLING = 3; + + // The batch cancellation was successful. + CANCELLED = 4; + + // The batch completed successfully. + SUCCEEDED = 5; + + // The batch is no longer running due to an error. + FAILED = 6; + } + + // Output only. The resource name of the batch. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A batch UUID (Unique Universal Identifier). The service + // generates this value when it creates the batch. + string uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the batch was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The application/framework-specific portion of the batch configuration. + oneof batch_config { + // Optional. PySpark batch config. + PySparkBatch pyspark_batch = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Spark batch config. + SparkBatch spark_batch = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SparkR batch config. + SparkRBatch spark_r_batch = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SparkSql batch config. + SparkSqlBatch spark_sql_batch = 7 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. Runtime information about batch execution. + RuntimeInfo runtime_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the batch. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Batch state details, such as a failure + // description if the state is `FAILED`. + string state_message = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the batch entered a current state. + google.protobuf.Timestamp state_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The email address of the user who created the batch. + string creator = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels to associate with this batch. + // Label **keys** must contain 1 to 63 characters, and must conform to + // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). + // Label **values** may be empty, but, if present, must contain 1 to 63 + // characters, and must conform to [RFC + // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + // associated with a batch. + map labels = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Runtime configuration for the batch execution. + RuntimeConfig runtime_config = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Environment configuration for the batch execution. + EnvironmentConfig environment_config = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the operation associated with this batch. + string operation = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Historical state information for the batch. + repeated StateHistory state_history = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A configuration for running an +// [Apache +// PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) +// batch workload. +message PySparkBatch { + // Required. The HCFS URI of the main Python file to use as the Spark driver. Must + // be a .py file. + string main_python_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The arguments to pass to the driver. Do not include arguments + // that can be set as batch properties, such as `--conf`, since a collision + // can occur that causes an incorrect batch submission. + repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS file URIs of Python files to pass to the PySpark + // framework. Supported file types: `.py`, `.egg`, and `.zip`. + repeated string python_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of jar files to add to the classpath of the + // Spark driver and tasks. + repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. + repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: + // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A configuration for running an [Apache Spark](http://spark.apache.org/) +// batch workload. +message SparkBatch { + // The specification of the main method to call to drive the Spark + // workload. Specify either the jar file that contains the main class or the + // main class name. To pass both a main jar and a main class in that jar, add + // the jar to `jar_file_uris`, and then specify the main class + // name in `main_class`. + oneof driver { + // Optional. The HCFS URI of the jar file that contains the main class. + string main_jar_file_uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the driver main class. The jar file that contains the class + // must be in the classpath or specified in `jar_file_uris`. + string main_class = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The arguments to pass to the driver. Do not include arguments + // that can be set as batch properties, such as `--conf`, since a collision + // can occur that causes an incorrect batch submission. + repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of jar files to add to the classpath of the + // Spark driver and tasks. + repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. + repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: + // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A configuration for running an +// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html) +// batch workload. +message SparkRBatch { + // Required. The HCFS URI of the main R file to use as the driver. + // Must be a `.R` or `.r` file. + string main_r_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The arguments to pass to the Spark driver. Do not include arguments + // that can be set as batch properties, such as `--conf`, since a collision + // can occur that causes an incorrect batch submission. + repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. + repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: + // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. + repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A configuration for running +// [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload. +message SparkSqlBatch { + // Required. The HCFS URI of the script that contains Spark SQL queries to execute. + string query_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mapping of query variable names to values (equivalent to the + // Spark SQL command: `SET name="value";`). + map query_variables = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. + repeated string jar_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; +} From 2bd1fd9ed982a082f7c8759c63dc5c3b33d86990 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Oct 2021 00:22:39 +0200 Subject: [PATCH 327/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.2.2 (#724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.2.1` -> `2.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.2/compatibility-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.2.2/confidence-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.2.2`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​222-httpswwwgithubcomgoogleapisjava-dataproccomparev221v222-2021-10-20) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4637b61d..266d50cd 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.2.1' +implementation 'com.google.cloud:google-cloud-dataproc:2.2.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.2" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2106feae..c47b3c3d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.2.1 + 2.2.2 From 9d9c9cf8c70f845fc8f189644df1d64464d44492 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:12:35 +0000 Subject: [PATCH 328/519] fix(java): java 17 dependency arguments (#1266) (#727) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dc53bbb5..0df65ebe 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 + digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9a5105d7..d7476cfe 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -38,15 +38,13 @@ function determineMavenOpts() { | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' ) - case $javaVersion in - "17") + if [[ $javaVersion == 17* ]] + then # MaxPermSize is no longer supported as of jdk 17 echo -n "-Xmx1024m" - ;; - *) + else echo -n "-Xmx1024m -XX:MaxPermSize=128m" - ;; - esac + fi } export MAVEN_OPTS=$(determineMavenOpts) From 620ee4211c9b59736266407d9b405fb13d445c18 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 21:46:28 +0200 Subject: [PATCH 329/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.0 (#726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-configcomparev110v120-2021-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.1.0...v1.2.0) ##### Features - Introduce Native Image testing build script changes ([#​1240](https://www.togithub.com/googleapis/java-shared-config/issues/1240)) ([#​334](https://www.togithub.com/googleapis/java-shared-config/issues/334)) ([4643cf1](https://www.github.com/googleapis/java-shared-config/commit/4643cf15be0b37fa8fa905d544d438cda7ef2ecd)) ##### Bug Fixes - **java:** downgrade native maven plugin version ([#​335](https://www.togithub.com/googleapis/java-shared-config/issues/335)) ([5834284](https://www.github.com/googleapis/java-shared-config/commit/5834284176fb34713d10082ce04f3b6abba85ad8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b3a729eb..7d3303a0 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 5b1a6efd..e0df002b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 From 3a797252588e5dfadb99f779f52485281c3d9a0d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:20:41 +0200 Subject: [PATCH 330/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#728) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 266d50cd..575b9f54 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:23.1.0') +implementation platform('com.google.cloud:libraries-bom:24.0.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 403a2b2d..55e62238 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From c8836a4d01f879d1fc20b60fa272cd5ec47f3319 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 Nov 2021 21:18:13 +0000 Subject: [PATCH 331/519] chore(java): remove pin on Apache Maven 3.8.1 from github actions (#1268) (#730) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0df65ebe..5a79fcd5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 + digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2425d723..d95a11a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,9 +12,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -27,9 +24,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -45,9 +39,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -58,9 +49,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -73,9 +61,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -83,4 +68,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr + JOB_TYPE: clirr \ No newline at end of file From dc2a3b40bd2aa8a22483b6698c994940ebead9b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Nov 2021 19:02:18 +0100 Subject: [PATCH 332/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.2.0 (#729) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.1.9` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.0/compatibility-slim/2.1.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.0/confidence-slim/2.1.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.2.0`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-storagecomparev219v220-2021-11-02) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.1.9...v2.2.0) ##### Features - next release from mainline is 2.2.0 ([#​1124](https://www.togithub.com/googleapis/java-storage/issues/1124)) ([53a755b](https://www.github.com/googleapis/java-storage/commit/53a755b315c0e739e33929fa5db92eb1daf32e8b)) - update all automatic retry behavior to be idempotency aware ([#​1132](https://www.togithub.com/googleapis/java-storage/issues/1132)) ([470b8cd](https://www.github.com/googleapis/java-storage/commit/470b8cd8a24c1c2b4be1b956d1691dbae8cf87fd)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20211018-1.32.1 ([#​1123](https://www.togithub.com/googleapis/java-storage/issues/1123)) ([edc0e00](https://www.github.com/googleapis/java-storage/commit/edc0e00a9f0d3c48ed7abbd5b01429837298ecfb)) - update kms.version to v0.93.2 ([#​1120](https://www.togithub.com/googleapis/java-storage/issues/1120)) ([a5c007d](https://www.github.com/googleapis/java-storage/commit/a5c007d306c5d7fc00927be39b6879dfc7a01fcb)) ##### [2.1.9](https://www.github.com/googleapis/java-storage/compare/v2.1.8...v2.1.9) (2021-10-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#​1115](https://www.togithub.com/googleapis/java-storage/issues/1115)) ([37d892b](https://www.github.com/googleapis/java-storage/commit/37d892b05ae3c7338b6c804cddfcecca80509ea3)) ##### [2.1.8](https://www.github.com/googleapis/java-storage/compare/v2.1.7...v2.1.8) (2021-10-18) ##### Bug Fixes - regenerate google.cloud.storage.v2 protos ([a7e3b94](https://www.github.com/googleapis/java-storage/commit/a7e3b94e4a3e03599b0dbe51fbe574ed4ea1a0d8)) ##### Dependencies - update kms.version to v0.93.1 ([#​1079](https://www.togithub.com/googleapis/java-storage/issues/1079)) ([1c52b3d](https://www.github.com/googleapis/java-storage/commit/1c52b3db6699c2ad325853e95231e1a908da069f)) ##### [2.1.7](https://www.github.com/googleapis/java-storage/compare/v2.1.6...v2.1.7) (2021-10-04) ##### Bug Fixes - update PAP to use inherited instead of unspecified ([#​1051](https://www.togithub.com/googleapis/java-storage/issues/1051)) ([6d73e46](https://www.github.com/googleapis/java-storage/commit/6d73e4631777542996a0ea815b482f5c19a8927d)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20210918-1.32.1 ([#​1046](https://www.togithub.com/googleapis/java-storage/issues/1046)) ([2c79005](https://www.github.com/googleapis/java-storage/commit/2c79005d29ee0b279850c7008b1afbb302f9c90d)) - update kms.version to v0.93.0 ([#​1061](https://www.togithub.com/googleapis/java-storage/issues/1061)) ([97b1a2e](https://www.github.com/googleapis/java-storage/commit/97b1a2ebe411e48e2df095fe5518a867c5136851)) ##### [2.1.6](https://www.github.com/googleapis/java-storage/compare/v2.1.5...v2.1.6) (2021-09-24) ##### Dependencies - update kms.version to v0.92.2 ([#​1039](https://www.togithub.com/googleapis/java-storage/issues/1039)) ([d6a0542](https://www.github.com/googleapis/java-storage/commit/d6a0542f5fd290a0bdc2755f81a49f55724662b2)) ##### [2.1.5](https://www.github.com/googleapis/java-storage/compare/v2.1.4...v2.1.5) (2021-09-22) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#​1035](https://www.togithub.com/googleapis/java-storage/issues/1035)) ([ae71c24](https://www.github.com/googleapis/java-storage/commit/ae71c2496f64a0601b24574032cc133afb423408)) ##### [2.1.4](https://www.github.com/googleapis/java-storage/compare/v2.1.3...v2.1.4) (2021-09-20) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20210914-1.32.1 ([#​1025](https://www.togithub.com/googleapis/java-storage/issues/1025)) ([ff56d5e](https://www.github.com/googleapis/java-storage/commit/ff56d5e5632d925542ac918d293b68dfcb32b465)) - update kms.version to v0.92.1 ([#​1023](https://www.togithub.com/googleapis/java-storage/issues/1023)) ([ca1afcf](https://www.github.com/googleapis/java-storage/commit/ca1afcff085bd02b150b93128b102cb9a61e1b4d)) ##### [2.1.3](https://www.github.com/googleapis/java-storage/compare/v2.1.2...v2.1.3) (2021-09-15) ##### Dependencies - update kms.version to v0.92.0 ([#​1018](https://www.togithub.com/googleapis/java-storage/issues/1018)) ([f1c58db](https://www.github.com/googleapis/java-storage/commit/f1c58db517596a5ee65e0f8a6e4b9c561288594e)) ##### [2.1.2](https://www.github.com/googleapis/java-storage/compare/v2.1.1...v2.1.2) (2021-09-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#​1011](https://www.togithub.com/googleapis/java-storage/issues/1011)) ([0bf06a5](https://www.github.com/googleapis/java-storage/commit/0bf06a54e3b90b9d8cf425d490561b48d6b5d882)) ##### [2.1.1](https://www.github.com/googleapis/java-storage/compare/v2.1.0...v2.1.1) (2021-09-03) ##### Documentation - Modify OLM notice to recommend upgrading to latest version. ([#​932](https://www.togithub.com/googleapis/java-storage/issues/932)) ([be72433](https://www.github.com/googleapis/java-storage/commit/be72433ef5446db880e44f103a7d120f444f183f)) ##### Dependencies - update dependency com.google.cloud:google-cloud-conformance-tests to v0.2.0 ([#​982](https://www.togithub.com/googleapis/java-storage/issues/982)) ([c7460a3](https://www.github.com/googleapis/java-storage/commit/c7460a3ffef81ef2f651b582a97139c0523d1eab)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#​989](https://www.togithub.com/googleapis/java-storage/issues/989)) ([6745c9e](https://www.github.com/googleapis/java-storage/commit/6745c9e5a9d3a907873b989ca8f8a47edd833523)) - update kms.version to v0.91.3 ([#​991](https://www.togithub.com/googleapis/java-storage/issues/991)) ([1f15022](https://www.github.com/googleapis/java-storage/commit/1f15022a590bce4f80dcb86d150b8e3dbe43aec9))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c47b3c3d..1fe64fde 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.1.9 + 2.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c9c956ab..2b7931be 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.1.9 + 2.2.0 junit From f14217b2b7a3703278f9d384c485f3f8aeae330c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 6 Nov 2021 00:34:27 +0000 Subject: [PATCH 333/519] Update ci.yaml (#1275) (#731) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5a79fcd5..994dd04b 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e + digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d95a11a2..93b337c6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,7 @@ jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: java: [8, 11, 17] steps: @@ -68,4 +69,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr From 1bc7d88a6e5a2120dac44694f2c1b61aa1649370 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 8 Nov 2021 21:48:26 +0000 Subject: [PATCH 334/519] chore: cleanup cloud RAD generation (#1269) (#732) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc11.sh | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 994dd04b..325daaa4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c + digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index fafa4b7a..0890a208 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-dataproc 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 From a8c15781e095cd6eb961d6af9b6d1fcfa63b715e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Nov 2021 00:16:32 +0100 Subject: [PATCH 335/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.1 (#733) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.0` -> `1.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​121-httpswwwgithubcomgoogleapisjava-shared-configcomparev120v121-2021-11-08) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 7d3303a0..8e3a8098 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index e0df002b..aff82e0e 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 From 56e58c63e2ea47a0bca5c3d63a82d2030bd2d221 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 14:52:18 +0000 Subject: [PATCH 336/519] chore: update jre to 11 for linter (#1278) (#734) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 325daaa4..886d0949 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa + digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93b337c6..05de1f60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: zulu - java-version: 8 + java-version: 11 - run: java -version - run: .kokoro/build.sh env: From 46b865e582a7c18ceef9c7412ecc506e92124b07 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Nov 2021 21:00:31 +0000 Subject: [PATCH 337/519] chore: update Java and Python dependencies (#735) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 --- .../v1/AutoscalingPolicyServiceClient.java | 35 +++--------- .../dataproc/v1/BatchControllerClient.java | 16 +++--- .../v1/WorkflowTemplateServiceClient.java | 55 ++++--------------- .../v1/AutoscalingPolicyServiceGrpc.java | 1 + .../dataproc/v1/BatchControllerGrpc.java | 1 + .../dataproc/v1/ClusterControllerGrpc.java | 1 + .../cloud/dataproc/v1/JobControllerGrpc.java | 1 + .../v1/WorkflowTemplateServiceGrpc.java | 1 + 8 files changed, 31 insertions(+), 80 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index d242371d..af011a44 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -244,10 +244,7 @@ public final AutoscalingPolicy createAutoscalingPolicy( *
{@code
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
    *   AutoscalingPolicy response =
    *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
@@ -285,10 +282,7 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
    *       CreateAutoscalingPolicyRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPolicy(AutoscalingPolicy.newBuilder().build())
    *           .build();
    *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(request);
@@ -313,10 +307,7 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
    *       CreateAutoscalingPolicyRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPolicy(AutoscalingPolicy.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -626,10 +617,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region
    * 
{@code
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (AutoscalingPolicy element :
    *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -667,10 +655,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
    *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -700,10 +685,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
    *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -732,10 +714,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
    *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
index c438bdd1..6a52d75e 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
@@ -206,7 +206,7 @@ public final OperationFuture createBatchAsync(
    *
    * 
{@code
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   String parent = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Batch batch = Batch.newBuilder().build();
    *   String batchId = "batchId-331744779";
    *   Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get();
@@ -241,7 +241,7 @@ public final OperationFuture createBatchAsync(
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setBatch(Batch.newBuilder().build())
    *           .setBatchId("batchId-331744779")
    *           .setRequestId("requestId693933066")
@@ -268,7 +268,7 @@ public final OperationFuture createBatchAsync(
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setBatch(Batch.newBuilder().build())
    *           .setBatchId("batchId-331744779")
    *           .setRequestId("requestId693933066")
@@ -295,7 +295,7 @@ public final OperationFuture createBatchAsync(
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setBatch(Batch.newBuilder().build())
    *           .setBatchId("batchId-331744779")
    *           .setRequestId("requestId693933066")
@@ -432,7 +432,7 @@ public final ListBatchesPagedResponse listBatches(LocationName parent) {
    *
    * 
{@code
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   String parent = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -457,7 +457,7 @@ public final ListBatchesPagedResponse listBatches(String parent) {
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -484,7 +484,7 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -512,7 +512,7 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
-   *           .setParent(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
index 42fc846c..770bf50f 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
@@ -259,10 +259,7 @@ public final WorkflowTemplate createWorkflowTemplate(
    * 
{@code
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
+   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
    *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
    *   WorkflowTemplate response =
    *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
@@ -300,10 +297,7 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
    *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setTemplate(WorkflowTemplate.newBuilder().build())
    *           .build();
    *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(request);
@@ -328,10 +322,7 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
    *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setTemplate(WorkflowTemplate.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -1013,10 +1004,7 @@ public final OperationFuture instantiateInlineWorkflowT
    * 
{@code
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
+   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
    *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
    *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
    * }
@@ -1078,10 +1066,7 @@ public final OperationFuture instantiateInlineWorkflowT
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
    *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setTemplate(WorkflowTemplate.newBuilder().build())
    *           .setRequestId("requestId693933066")
    *           .build();
@@ -1129,10 +1114,7 @@ public final OperationFuture instantiateInlineWorkflowT
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
    *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setTemplate(WorkflowTemplate.newBuilder().build())
    *           .setRequestId("requestId693933066")
    *           .build();
@@ -1182,10 +1164,7 @@ public final OperationFuture instantiateInlineWorkflowT
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
    *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setTemplate(WorkflowTemplate.newBuilder().build())
    *           .setRequestId("requestId693933066")
    *           .build();
@@ -1364,10 +1343,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName
    * 
{@code
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
-   *   String parent =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
+   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
    *   for (WorkflowTemplate element :
    *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -1405,10 +1381,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
    *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1438,10 +1411,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
    *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1470,10 +1440,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
    *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
+   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java
index 7b8b76cb..cb0b6ad2 100644
--- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java
+++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class AutoscalingPolicyServiceGrpc {
 
   private AutoscalingPolicyServiceGrpc() {}
diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java
index a7d29c06..a188740c 100644
--- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java
+++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java
@@ -27,6 +27,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/dataproc/v1/batches.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class BatchControllerGrpc {
 
   private BatchControllerGrpc() {}
diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java
index 220c2360..95cd8ec5 100644
--- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java
+++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/dataproc/v1/clusters.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class ClusterControllerGrpc {
 
   private ClusterControllerGrpc() {}
diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java
index 34acc0ca..f9c7c484 100644
--- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java
+++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java
@@ -27,6 +27,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/dataproc/v1/jobs.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class JobControllerGrpc {
 
   private JobControllerGrpc() {}
diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java
index 665b780e..3b23792f 100644
--- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java
+++ b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/dataproc/v1/workflow_templates.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class WorkflowTemplateServiceGrpc {
 
   private WorkflowTemplateServiceGrpc() {}

From 3d6ac0ddf87e5bd91f3ebf1e9391aebd98e64d89 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 11 Nov 2021 21:18:25 +0000
Subject: [PATCH 338/519] chore: update minimum java version to java 8 (#1281)
 (#736)

---
 .github/.OwlBot.lock.yaml | 2 +-
 README.md                 | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 886d0949..5d788be0 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8
+  digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0
diff --git a/README.md b/README.md
index 575b9f54..a5a4bc9e 100644
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ Dataproc 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]
@@ -195,7 +195,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]

From e0ea4e9ef10df26733ddba5a0eb084e32ee043e3 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Mon, 15 Nov 2021 17:04:21 +0100
Subject: [PATCH 339/519] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.5.0 (#737)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.4.0` -> `2.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v2.5.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​250-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare240v250-2021-11-12) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.4.0...v2.5.0) ##### Features - next release from main branch is 2.5.0 ([#​510](https://www.togithub.com/googleapis/java-shared-dependencies/issues/510)) ([ca9eb8a](https://www.github.com/googleapis/java-shared-dependencies/commit/ca9eb8a40ae81d69de0d82d9499ef21b0136ae49)) ##### Bug Fixes - dependencies.sh to work with Java 17 ([#​516](https://www.togithub.com/googleapis/java-shared-dependencies/issues/516)) ([8422c1d](https://www.github.com/googleapis/java-shared-dependencies/commit/8422c1d7e9ef479f348e63c530789050b5235426)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​508](https://www.togithub.com/googleapis/java-shared-dependencies/issues/508)) ([ae32d16](https://www.github.com/googleapis/java-shared-dependencies/commit/ae32d1689c78fc1469206c8c0df0ebaca59edd2c)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​506](https://www.togithub.com/googleapis/java-shared-dependencies/issues/506)) ([b9a8209](https://www.github.com/googleapis/java-shared-dependencies/commit/b9a82098655f29e858bd0c7a9b1049a379e5062a)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​524](https://www.togithub.com/googleapis/java-shared-dependencies/issues/524)) ([fc07879](https://www.github.com/googleapis/java-shared-dependencies/commit/fc07879fa6531e39b21977fe77abc19354a1fd33)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​509](https://www.togithub.com/googleapis/java-shared-dependencies/issues/509)) ([bece99b](https://www.github.com/googleapis/java-shared-dependencies/commit/bece99bb3e0365e60e7376ba18d046ab6436a235)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​512](https://www.togithub.com/googleapis/java-shared-dependencies/issues/512)) ([c281f13](https://www.github.com/googleapis/java-shared-dependencies/commit/c281f137525e2111e97349657be578ed1fc832f2)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​505](https://www.togithub.com/googleapis/java-shared-dependencies/issues/505)) ([94cde96](https://www.github.com/googleapis/java-shared-dependencies/commit/94cde96069900f9f8c2ff9a522671d03b26828bd)) - update dependency io.grpc:grpc-bom to v1.42.1 ([#​513](https://www.togithub.com/googleapis/java-shared-dependencies/issues/513)) ([0d2b774](https://www.github.com/googleapis/java-shared-dependencies/commit/0d2b774287a132821cc6fe2789140086bc48d525)) - update dependency org.checkerframework:checker-qual to v3.19.0 ([#​501](https://www.togithub.com/googleapis/java-shared-dependencies/issues/501)) ([2b3e0b5](https://www.github.com/googleapis/java-shared-dependencies/commit/2b3e0b5ddc3a645b20a837f3123394f1ca114f08)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​514](https://www.togithub.com/googleapis/java-shared-dependencies/issues/514)) ([4885f40](https://www.github.com/googleapis/java-shared-dependencies/commit/4885f402e2c70435cd10d4f1b893df9873808c56)) - update gax.version to v2.7.0 ([#​515](https://www.togithub.com/googleapis/java-shared-dependencies/issues/515)) ([567e728](https://www.github.com/googleapis/java-shared-dependencies/commit/567e728b0e59233a04e2d04183e6a0c36cca2437)) - update google.core.version to v2.3.0 ([#​530](https://www.togithub.com/googleapis/java-shared-dependencies/issues/530)) ([78e87e9](https://www.github.com/googleapis/java-shared-dependencies/commit/78e87e96befab34dc4a494e752aeb473cd14a156)) - update iam.version to v1.1.7 ([#​504](https://www.togithub.com/googleapis/java-shared-dependencies/issues/504)) ([63dd583](https://www.github.com/googleapis/java-shared-dependencies/commit/63dd583c80f35b01a66fd1908d41467468c66436))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aff82e0e..5b1c6541 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.4.0 + 2.5.0 pom import From 9449a98d0293c0a3f426e2391068195d05e9df32 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Nov 2021 23:16:22 +0100 Subject: [PATCH 340/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.2.1 (#738) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.2.0` -> `2.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.1/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.1/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.2.1`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​221-httpswwwgithubcomgoogleapisjava-storagecomparev220v221-2021-11-15) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.2.0...v2.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1fe64fde..22b51f0f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.2.0 + 2.2.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2b7931be..15637b69 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.2.0 + 2.2.1 junit From fcc1e423c0bd104fbfe40b823fbfab42f9baef7d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 18:42:40 +0100 Subject: [PATCH 341/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.2 (#739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.1` -> `1.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/compatibility-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/confidence-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​122-httpswwwgithubcomgoogleapisjava-shared-configcomparev121v122-2021-11-16) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8e3a8098..6d7e66bc 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 5b1c6541..6218da0b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 From 7f665430312c1c62408b7f312468b43c9bdc8699 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 18:36:20 +0000 Subject: [PATCH 342/519] chore: remove enable-samples profile (#1284) (#740) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 1 - CONTRIBUTING.md | 61 +++++---------------------------------- 3 files changed, 8 insertions(+), 56 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5d788be0..88d9b926 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0 + digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 8016fa5c..6b9cc61d 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -91,7 +91,6 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ - -Penable-samples \ -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2dbdee0..b65dd279 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify ## Code Samples -Code Samples must be bundled in separate Maven modules, and guarded by a -Maven profile with the name `enable-samples`. +All code samples must be in compliance with the [java sample formatting guide][3]. +Code Samples must be bundled in separate Maven modules. The samples must be separate from the primary project for a few reasons: -1. Primary projects have a minimum Java version of Java 7 whereas samples have - a minimum Java version of Java 8. Due to this we need the ability to +1. Primary projects have a minimum Java version of Java 8 whereas samples can have + Java version of Java 11. Due to this we need the ability to selectively exclude samples from a build run. 2. Many code samples depend on external GCP services and need credentials to access the service. @@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons: ### Building ```bash -mvn -Penable-samples clean verify +mvn clean verify ``` Some samples require access to GCP services and require a service account: ```bash export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn -Penable-samples clean verify +mvn clean verify ``` -### Profile Config - -1. To add samples in a profile to your Maven project, add the following to your -`pom.xml` - - ```xml - - [...] - - - enable-samples - - sample - - - - [...] - - ``` - -2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory. - ### Code Formatting Code in this repo is formatted with @@ -110,30 +87,6 @@ To run formatting on your project, you can run: mvn com.coveo:fmt-maven-plugin:format ``` -### Profile Activation - -To include code samples when building and testing the project, enable the -`enable-samples` Maven profile. - -#### Command line - -To activate the Maven profile on the command line add `-Penable-samples` to your -Maven command. - -#### Maven `settings.xml` - -To activate the Maven profile in your `~/.m2/settings.xml` add an entry of -`enable-samples` following the instructions in [Active Profiles][2]. - -This method has the benefit of applying to all projects you build (and is -respected by IntelliJ IDEA) and is recommended if you are going to be -contributing samples to several projects. - -#### IntelliJ IDEA - -To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in -[Activate Maven profiles][3] to activate `enable-samples`. - [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account [2]: https://maven.apache.org/settings.html#Active_Profiles -[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file From 8efd821b00f1b64d35e78ccdf8f2ea72277575cf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 17:20:21 +0100 Subject: [PATCH 343/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 (#743) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.5.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​251-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare250v251-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.0...v2.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6218da0b..728a5d51 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.0 + 2.5.1 pom import From 2fa7503ae9494671d9eb819eb144424982bdf6e5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Dec 2021 21:44:16 +0000 Subject: [PATCH 344/519] chore: release 2.3.0 (#725) :robot: I have created a release \*beep\* \*boop\* --- ## [2.3.0](https://www.github.com/googleapis/java-dataproc/compare/v2.2.2...v2.3.0) (2021-12-03) ### Features * Add support for dataproc BatchController service ([#719](https://www.github.com/googleapis/java-dataproc/issues/719)) ([4556a3f](https://www.github.com/googleapis/java-dataproc/commit/4556a3fc0de8e432c0abd12b5ee0d6b013448b36)) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-dataproc/issues/1266)) ([#727](https://www.github.com/googleapis/java-dataproc/issues/727)) ([9d9c9cf](https://www.github.com/googleapis/java-dataproc/commit/9d9c9cf8c70f845fc8f189644df1d64464d44492)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#737](https://www.github.com/googleapis/java-dataproc/issues/737)) ([e0ea4e9](https://www.github.com/googleapis/java-dataproc/commit/e0ea4e9ef10df26733ddba5a0eb084e32ee043e3)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#743](https://www.github.com/googleapis/java-dataproc/issues/743)) ([8efd821](https://www.github.com/googleapis/java-dataproc/commit/8efd821b00f1b64d35e78ccdf8f2ea72277575cf)) * update dependency com.google.cloud:google-cloud-storage to v2.2.0 ([#729](https://www.github.com/googleapis/java-dataproc/issues/729)) ([dc2a3b4](https://www.github.com/googleapis/java-dataproc/commit/dc2a3b40bd2aa8a22483b6698c994940ebead9b1)) * update dependency com.google.cloud:google-cloud-storage to v2.2.1 ([#738](https://www.github.com/googleapis/java-dataproc/issues/738)) ([9449a98](https://www.github.com/googleapis/java-dataproc/commit/9449a98d0293c0a3f426e2391068195d05e9df32)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 20 ++++++++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 38 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41f695b1..77c82636 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [2.3.0](https://www.github.com/googleapis/java-dataproc/compare/v2.2.2...v2.3.0) (2021-12-03) + + +### Features + +* Add support for dataproc BatchController service ([#719](https://www.github.com/googleapis/java-dataproc/issues/719)) ([4556a3f](https://www.github.com/googleapis/java-dataproc/commit/4556a3fc0de8e432c0abd12b5ee0d6b013448b36)) + + +### Bug Fixes + +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-dataproc/issues/1266)) ([#727](https://www.github.com/googleapis/java-dataproc/issues/727)) ([9d9c9cf](https://www.github.com/googleapis/java-dataproc/commit/9d9c9cf8c70f845fc8f189644df1d64464d44492)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#737](https://www.github.com/googleapis/java-dataproc/issues/737)) ([e0ea4e9](https://www.github.com/googleapis/java-dataproc/commit/e0ea4e9ef10df26733ddba5a0eb084e32ee043e3)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#743](https://www.github.com/googleapis/java-dataproc/issues/743)) ([8efd821](https://www.github.com/googleapis/java-dataproc/commit/8efd821b00f1b64d35e78ccdf8f2ea72277575cf)) +* update dependency com.google.cloud:google-cloud-storage to v2.2.0 ([#729](https://www.github.com/googleapis/java-dataproc/issues/729)) ([dc2a3b4](https://www.github.com/googleapis/java-dataproc/commit/dc2a3b40bd2aa8a22483b6698c994940ebead9b1)) +* update dependency com.google.cloud:google-cloud-storage to v2.2.1 ([#738](https://www.github.com/googleapis/java-dataproc/issues/738)) ([9449a98](https://www.github.com/googleapis/java-dataproc/commit/9449a98d0293c0a3f426e2391068195d05e9df32)) + ### [2.2.2](https://www.github.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2) (2021-10-20) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 6d7e66bc..e2da7f3d 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.2.3-SNAPSHOT + 2.3.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.2.3-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index ab3a6896..1f97c7c8 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.2.3-SNAPSHOT + 2.3.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.2.3-SNAPSHOT + 2.3.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 19355ae4..d97e4bda 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.3-SNAPSHOT + 2.3.0 diff --git a/pom.xml b/pom.xml index 728a5d51..0608b744 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.2.3-SNAPSHOT + 2.3.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 com.google.cloud google-cloud-dataproc - 2.2.3-SNAPSHOT + 2.3.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 978d487c..c533605a 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.2.3-SNAPSHOT + 2.3.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.2.3-SNAPSHOT + 2.3.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 15637b69..f3805b5a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.2.3-SNAPSHOT + 2.3.0 diff --git a/versions.txt b/versions.txt index c6320ba7..e3b28854 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.2.2:2.2.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.2.2:2.2.3-SNAPSHOT -proto-google-cloud-dataproc-v1:2.2.2:2.2.3-SNAPSHOT +google-cloud-dataproc:2.3.0:2.3.0 +grpc-google-cloud-dataproc-v1:2.3.0:2.3.0 +proto-google-cloud-dataproc-v1:2.3.0:2.3.0 From f7e47f492cd110753a5b2e8bf43453ffceaec157 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Dec 2021 21:52:13 +0000 Subject: [PATCH 345/519] chore: release 2.3.1-SNAPSHOT (#744) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e2da7f3d..85571256 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.0 + 2.3.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1f97c7c8..1b56e88a 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.0 + 2.3.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index d97e4bda..3f802dfd 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0608b744..59798ae8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.0 + 2.3.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index c533605a..1f152b0d 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.0 + 2.3.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f3805b5a..e0df8ac0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index e3b28854..deb36023 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.0:2.3.0 -grpc-google-cloud-dataproc-v1:2.3.0:2.3.0 -proto-google-cloud-dataproc-v1:2.3.0:2.3.0 +google-cloud-dataproc:2.3.0:2.3.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.3.0:2.3.1-SNAPSHOT +proto-google-cloud-dataproc-v1:2.3.0:2.3.1-SNAPSHOT From 1cfdaae5ef043a12c5bb9debf3bb8f1ffe366b5f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:04:20 +0000 Subject: [PATCH 346/519] fix(java): add -ntp flag to native image testing command (#1299) (#746) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 88d9b926..3d2f8282 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419 + digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 6b9cc61d..11976594 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -71,7 +71,7 @@ integration) ;; graalvm) # Run Unit and Integration Tests with Native Image - mvn test -Pnative -Penable-integration-tests + mvn -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; samples) diff --git a/README.md b/README.md index a5a4bc9e..ca49a5e0 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.2.2' +implementation 'com.google.cloud:google-cloud-dataproc:2.3.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.2.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.0" ``` ## Authentication From e5cd53a670fe6efd712ee2415604feceb68ad3d0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Dec 2021 23:28:28 +0100 Subject: [PATCH 347/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.2.2 (#748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.2.1` -> `2.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.2/compatibility-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.2/confidence-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.2.2`](https://togithub.com/googleapis/java-storage/blob/master/CHANGELOG.md#​222-httpswwwgithubcomgoogleapisjava-storagecomparev221v222-2021-12-06) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.2.1...v2.2.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 22b51f0f..87995a38 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.2.1 + 2.2.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e0df8ac0..812c4f87 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.2.1 + 2.2.2 junit From 1cba15145f4966fea82eb951773dc7c31c0d2ec0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Dec 2021 23:38:28 +0100 Subject: [PATCH 348/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.3.0 (#745) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.2.2` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.0/compatibility-slim/2.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.0/confidence-slim/2.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.3.0`](https://togithub.com/googleapis/java-dataproc/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-dataproccomparev222v230-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.2.2...v2.3.0) ##### Features - Add support for dataproc BatchController service ([#​719](https://www.togithub.com/googleapis/java-dataproc/issues/719)) ([4556a3f](https://www.github.com/googleapis/java-dataproc/commit/4556a3fc0de8e432c0abd12b5ee0d6b013448b36)) ##### Bug Fixes - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-dataproc/issues/1266)) ([#​727](https://www.togithub.com/googleapis/java-dataproc/issues/727)) ([9d9c9cf](https://www.github.com/googleapis/java-dataproc/commit/9d9c9cf8c70f845fc8f189644df1d64464d44492)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#​737](https://www.togithub.com/googleapis/java-dataproc/issues/737)) ([e0ea4e9](https://www.github.com/googleapis/java-dataproc/commit/e0ea4e9ef10df26733ddba5a0eb084e32ee043e3)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#​743](https://www.togithub.com/googleapis/java-dataproc/issues/743)) ([8efd821](https://www.github.com/googleapis/java-dataproc/commit/8efd821b00f1b64d35e78ccdf8f2ea72277575cf)) - update dependency com.google.cloud:google-cloud-storage to v2.2.0 ([#​729](https://www.togithub.com/googleapis/java-dataproc/issues/729)) ([dc2a3b4](https://www.github.com/googleapis/java-dataproc/commit/dc2a3b40bd2aa8a22483b6698c994940ebead9b1)) - update dependency com.google.cloud:google-cloud-storage to v2.2.1 ([#​738](https://www.togithub.com/googleapis/java-dataproc/issues/738)) ([9449a98](https://www.github.com/googleapis/java-dataproc/commit/9449a98d0293c0a3f426e2391068195d05e9df32)) ##### [2.2.2](https://www.github.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2) (2021-10-20) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.1.9 ([#​721](https://www.togithub.com/googleapis/java-dataproc/issues/721)) ([376b0bf](https://www.github.com/googleapis/java-dataproc/commit/376b0bf38aaefe6f13ee604c830fa6967247bd6f)) ##### [2.2.1](https://www.github.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1) (2021-10-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#​716](https://www.togithub.com/googleapis/java-dataproc/issues/716)) ([2ae9ae0](https://www.github.com/googleapis/java-dataproc/commit/2ae9ae0b4f222e67c32a2ea41f1dda6bf2d73cb9)) - update dependency com.google.cloud:google-cloud-storage to v2.1.6 ([#​701](https://www.togithub.com/googleapis/java-dataproc/issues/701)) ([dc7de22](https://www.github.com/googleapis/java-dataproc/commit/dc7de2234aaff6582d9f3c302b7de97671838d4f)) - update dependency com.google.cloud:google-cloud-storage to v2.1.7 ([#​709](https://www.togithub.com/googleapis/java-dataproc/issues/709)) ([dda0313](https://www.github.com/googleapis/java-dataproc/commit/dda03134149ba95f5061dbc60ad7ba9c05cedf38)) - update dependency com.google.cloud:google-cloud-storage to v2.1.8 ([#​715](https://www.togithub.com/googleapis/java-dataproc/issues/715)) ([91cfd37](https://www.github.com/googleapis/java-dataproc/commit/91cfd376bce87b492fdb9319dffb5d109ec62526))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca49a5e0..dbd2b9fe 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.2.2 + 2.3.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 87995a38..ac5b4667 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.2.2 + 2.3.0 From 1e5a754b1ecfa4d8586b8c2889d7167a6208574d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:20:18 +0100 Subject: [PATCH 349/519] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#742) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ac5b4667..89764e9a 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 diff --git a/samples/pom.xml b/samples/pom.xml index 590aa546..cd68e785 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 812c4f87..be182abb 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 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 55e62238..ba64be89 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 From b82d254c0ccdc508f86b5bd9897b8cbdb02adc00 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:08:19 +0100 Subject: [PATCH 350/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#751) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbd2b9fe..71a5c431 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.0.0') +implementation platform('com.google.cloud:libraries-bom:24.1.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ba64be89..dc326f86 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From a2a61903a9555ded9d4f4283ddac0f1338686e2a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:00:28 +0100 Subject: [PATCH 351/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#752) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 71a5c431..fc1e0c62 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.0') +implementation platform('com.google.cloud:libraries-bom:24.1.1') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index dc326f86..80dd2300 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 5035a44dcedf0d993c750086c78813b886fceca3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 4 Jan 2022 22:50:28 +0000 Subject: [PATCH 352/519] fix(java): run Maven in plain console-friendly mode (#1301) (#755) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3d2f8282..731a0eb4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 + digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 11976594..e1ad4ed9 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) @@ -71,7 +71,7 @@ integration) ;; graalvm) # Run Unit and Integration Tests with Native Image - mvn -ntp -Pnative -Penable-integration-tests test + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; samples) @@ -104,7 +104,7 @@ samples) fi ;; clirr) - mvn -B -Denforcer.skip=true clirr:check + mvn -B -ntp -Denforcer.skip=true clirr:check RETURN_CODE=$? ;; *) From a1675e5d5feef171862c489158f004de9441d362 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Jan 2022 20:08:15 +0100 Subject: [PATCH 353/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.4 (#757) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.4`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​124-httpswwwgithubcomgoogleapisjava-shared-configcomparev123v124-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fc1e0c62..2666c2c7 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.1') +implementation platform('com.google.cloud:libraries-bom:24.1.2') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 85571256..2c50f939 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 59798ae8..5e9e0abb 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 From 57eab5975d0442d697d80bbb8d75e3fc1ab79681 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:22:22 +0100 Subject: [PATCH 354/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2666c2c7..bc3fd42a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 80dd2300..0bf3e418 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From 04a07b6689f6a7df8410ddf7f454c2a639650939 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:32:34 +0100 Subject: [PATCH 355/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 (#760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.1` -> `2.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.6.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​260-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare251v260-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.1...v2.6.0) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1299)) ([#​546](https://www.togithub.com/googleapis/java-shared-dependencies/issues/546)) ([d8bb8d9](https://www.github.com/googleapis/java-shared-dependencies/commit/d8bb8d9d8e3b8c582f768cd3164e8580ec334511)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1301)) ([#​557](https://www.togithub.com/googleapis/java-shared-dependencies/issues/557)) ([6b57d08](https://www.github.com/googleapis/java-shared-dependencies/commit/6b57d08816ec6c1dfb637cae022624e896930ad8)) ##### Dependencies - gRPC upgrade to 1.43.2 ([#​567](https://www.togithub.com/googleapis/java-shared-dependencies/issues/567)) ([c946655](https://www.github.com/googleapis/java-shared-dependencies/commit/c94665571f26d24fbbb3f89ef5a3db99663bfdba)) - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​563](https://www.togithub.com/googleapis/java-shared-dependencies/issues/563)) ([0aedddb](https://www.github.com/googleapis/java-shared-dependencies/commit/0aedddb9a535753767d56f5910f355c7a1c8509c)) - update dependency com.google.api:api-common to v2.1.2 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​562](https://www.togithub.com/googleapis/java-shared-dependencies/issues/562)) ([6da0735](https://www.github.com/googleapis/java-shared-dependencies/commit/6da0735d4db9df998d11c549488a024b800bed65)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​553](https://www.togithub.com/googleapis/java-shared-dependencies/issues/553)) ([b787c8f](https://www.github.com/googleapis/java-shared-dependencies/commit/b787c8f2032b7ffc9797158c3ff214b7813f34b7)) - update dependency org.apache.httpcomponents:httpcore to v4.4.15 ([#​550](https://www.togithub.com/googleapis/java-shared-dependencies/issues/550)) ([e2d3dba](https://www.github.com/googleapis/java-shared-dependencies/commit/e2d3dbad6dd54c117abb5ab1b6137cfee4e5a32b)) - update dependency org.checkerframework:checker-qual to v3.20.0 ([#​549](https://www.togithub.com/googleapis/java-shared-dependencies/issues/549)) ([586df59](https://www.github.com/googleapis/java-shared-dependencies/commit/586df5949d4ddca11d0705d696882c32d8436c31)) - update gax.version to v2.8.0 ([#​564](https://www.togithub.com/googleapis/java-shared-dependencies/issues/564)) ([9ad5d4f](https://www.github.com/googleapis/java-shared-dependencies/commit/9ad5d4f5385753a0c5739ef400f5d346e3342b84)) - update gax.version to v2.8.1 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update google.common-protos.version to v2.7.1 ([#​561](https://www.togithub.com/googleapis/java-shared-dependencies/issues/561)) ([9aa860d](https://www.github.com/googleapis/java-shared-dependencies/commit/9aa860d92f745f1d4382eb16439bf17ac6ca8ae9)) - update google.core.version to v2.3.5 ([#​565](https://www.togithub.com/googleapis/java-shared-dependencies/issues/565)) ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update iam.version to v1.2.0 ([#​547](https://www.togithub.com/googleapis/java-shared-dependencies/issues/547)) ([3232c82](https://www.github.com/googleapis/java-shared-dependencies/commit/3232c828b628cb604a200b3e569e56e758e5e11d)) - upgrading protobuf to 3.19.2 ([#​560](https://www.togithub.com/googleapis/java-shared-dependencies/issues/560)) ([7ef3325](https://www.github.com/googleapis/java-shared-dependencies/commit/7ef33250f5473348d3546210b7a534360f476101)) ##### [2.5.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.5.0...v2.5.1) (2021-12-03) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​533](https://www.togithub.com/googleapis/java-shared-dependencies/issues/533)) ([4e23adb](https://www.github.com/googleapis/java-shared-dependencies/commit/4e23adb666dfaa18ae8bf869aca030153de16d62)) - update gax.version to v2.7.1 ([#​544](https://www.togithub.com/googleapis/java-shared-dependencies/issues/544)) ([5a0c480](https://www.github.com/googleapis/java-shared-dependencies/commit/5a0c480671fa834e600edc6ac6fe77967d1b79b3)) - update google.common-protos.version to v2.7.0 ([#​542](https://www.togithub.com/googleapis/java-shared-dependencies/issues/542)) ([af97eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/af97eb5d9cff397080fdb3d4a6dbf7c2692e0358)) - update google.core.version to v2.3.3 ([#​534](https://www.togithub.com/googleapis/java-shared-dependencies/issues/534)) ([885acef](https://www.github.com/googleapis/java-shared-dependencies/commit/885acefe4ff5313eb53dc43b4825ca597b97dcfd))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5e9e0abb..b524145c 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.1 + 2.6.0 pom import From 357606a64a1af569c698e0f6469671b6beec2dfa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 18:24:16 +0000 Subject: [PATCH 356/519] chore: release 2.3.1 (#747) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.1](https://www.github.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1) (2022-01-07) ### Bug Fixes * **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-dataproc/issues/1299)) ([#746](https://www.github.com/googleapis/java-dataproc/issues/746)) ([1cfdaae](https://www.github.com/googleapis/java-dataproc/commit/1cfdaae5ef043a12c5bb9debf3bb8f1ffe366b5f)) * **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-dataproc/issues/1301)) ([#755](https://www.github.com/googleapis/java-dataproc/issues/755)) ([5035a44](https://www.github.com/googleapis/java-dataproc/commit/5035a44dcedf0d993c750086c78813b886fceca3)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#760](https://www.github.com/googleapis/java-dataproc/issues/760)) ([04a07b6](https://www.github.com/googleapis/java-dataproc/commit/04a07b6689f6a7df8410ddf7f454c2a639650939)) * update dependency com.google.cloud:google-cloud-storage to v2.2.2 ([#748](https://www.github.com/googleapis/java-dataproc/issues/748)) ([e5cd53a](https://www.github.com/googleapis/java-dataproc/commit/e5cd53a670fe6efd712ee2415604feceb68ad3d0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77c82636..8ad6388e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +### [2.3.1](https://www.github.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1) (2022-01-07) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-dataproc/issues/1299)) ([#746](https://www.github.com/googleapis/java-dataproc/issues/746)) ([1cfdaae](https://www.github.com/googleapis/java-dataproc/commit/1cfdaae5ef043a12c5bb9debf3bb8f1ffe366b5f)) +* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-dataproc/issues/1301)) ([#755](https://www.github.com/googleapis/java-dataproc/issues/755)) ([5035a44](https://www.github.com/googleapis/java-dataproc/commit/5035a44dcedf0d993c750086c78813b886fceca3)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#760](https://www.github.com/googleapis/java-dataproc/issues/760)) ([04a07b6](https://www.github.com/googleapis/java-dataproc/commit/04a07b6689f6a7df8410ddf7f454c2a639650939)) +* update dependency com.google.cloud:google-cloud-storage to v2.2.2 ([#748](https://www.github.com/googleapis/java-dataproc/issues/748)) ([e5cd53a](https://www.github.com/googleapis/java-dataproc/commit/e5cd53a670fe6efd712ee2415604feceb68ad3d0)) + ## [2.3.0](https://www.github.com/googleapis/java-dataproc/compare/v2.2.2...v2.3.0) (2021-12-03) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 2c50f939..a1ac5248 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.1-SNAPSHOT + 2.3.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1b56e88a..ba5bbf49 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.1-SNAPSHOT + 2.3.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.1-SNAPSHOT + 2.3.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 3f802dfd..fc47087d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/pom.xml b/pom.xml index b524145c..0ee3d841 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.1-SNAPSHOT + 2.3.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1 com.google.cloud google-cloud-dataproc - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 1f152b0d..82d2df7e 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1-SNAPSHOT + 2.3.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index be182abb..85fe966a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/versions.txt b/versions.txt index deb36023..3f1994d1 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.0:2.3.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.3.0:2.3.1-SNAPSHOT -proto-google-cloud-dataproc-v1:2.3.0:2.3.1-SNAPSHOT +google-cloud-dataproc:2.3.1:2.3.1 +grpc-google-cloud-dataproc-v1:2.3.1:2.3.1 +proto-google-cloud-dataproc-v1:2.3.1:2.3.1 From 326a70f1a0933b7307c4a2888c9336f4cbcc0928 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 18:38:19 +0000 Subject: [PATCH 357/519] chore: release 2.3.2-SNAPSHOT (#761) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index a1ac5248..a30e2a17 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.1 + 2.3.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index ba5bbf49..e506c313 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.1 + 2.3.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index fc47087d..cc9e7eec 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0ee3d841..03b1d7c6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.1 + 2.3.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 82d2df7e..33db4069 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.1 + 2.3.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 85fe966a..c7fa6ae5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3f1994d1..859e0a13 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.1:2.3.1 -grpc-google-cloud-dataproc-v1:2.3.1:2.3.1 -proto-google-cloud-dataproc-v1:2.3.1:2.3.1 +google-cloud-dataproc:2.3.1:2.3.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.3.1:2.3.2-SNAPSHOT +proto-google-cloud-dataproc-v1:2.3.1:2.3.2-SNAPSHOT From 8114a1125b3dc77b8e5b4adee9130a2d363e76ac Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 19:20:28 +0000 Subject: [PATCH 358/519] chore(owlbot-java): disable re-writing clirr file in owlbot java post-processor (#1320) (#766) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 731a0eb4..20c6ee3c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d + digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 diff --git a/README.md b/README.md index bc3fd42a..ba0d22f0 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.3.0' +implementation 'com.google.cloud:google-cloud-dataproc:2.3.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.1" ``` ## Authentication From 34ee5938cf36d95b8798fb1284df8b23699f95d3 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 10 Jan 2022 19:10:23 -0500 Subject: [PATCH 359/519] chore: change name to api_shortname in .repo-metadata.json (#767) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index ba7ccc12..aa54e26e 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "dataproc", + "api_shortname": "dataproc", "name_pretty": "Dataproc", "product_documentation": "https://cloud.google.com/dataproc", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/history", From eea6e0238b033f8faab0532e365f73b84fd784d4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:24:45 +0000 Subject: [PATCH 360/519] chore(java): update variable name to api_shortname in README template (#1323) (#768) --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 20c6ee3c..dddb13b8 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 + digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index b9380e25..748a88f1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible: General, Core, and Other are also allowed as types 2. OS type and version: 3. Java version: -4. dataproc version(s): +4. version(s): #### Steps to reproduce diff --git a/README.md b/README.md index ba0d22f0..6ed2a639 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.2') +implementation platform('com.google.cloud:libraries-bom:24.2.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` From e729b631d713e71ef321b3b81ec580747fc27942 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:06:18 +0100 Subject: [PATCH 361/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.5 (#769) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.4` -> `1.2.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/compatibility-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/confidence-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.5`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​125-httpsgithubcomgoogleapisjava-shared-configcomparev124v125-2022-01-11) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index a30e2a17..a1807204 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 03b1d7c6..d49ac9bf 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 From ac2d1fc254303662ea5d2de35c2cd32d2b82dac1 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 13 Jan 2022 14:28:34 -0500 Subject: [PATCH 362/519] chore: update release-level in .repo-metadata.json (#772) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index aa54e26e..23421b0c 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/dataproc", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/history", "issue_tracker": "https://issuetracker.google.com/savedsearches/559745", - "release_level": "ga", + "release_level": "stable", "language": "java", "repo": "googleapis/java-dataproc", "repo_short": "java-dataproc", From 99d3dea20542b4c85b624b76621b855d74d8bb41 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 14 Jan 2022 11:29:04 -0500 Subject: [PATCH 363/519] chore: fix markdown format (#762) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: fix markdown format feat: custom image containers for Spark batches feat: auto-diagnostic of failed Spark batches feat: Local SSD NVME interface support for GCE clusters feat: Spark runtime versioning for Spark batches Committer: @medb PiperOrigin-RevId: 420314583 Source-Link: https://github.com/googleapis/googleapis/commit/94ea1c429a6c6412fb2c06ffe9063c872162dfac Source-Link: https://github.com/googleapis/googleapis-gen/commit/e19b9f54d01a894152271b54374fba01dd224b60 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTE5YjlmNTRkMDFhODk0MTUyMjcxYjU0Mzc0ZmJhMDFkZDIyNGI2MCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../v1/WorkflowTemplateServiceClient.java | 6 +- .../com/google/cloud/dataproc/v1/Cluster.java | 84 ++-- .../cloud/dataproc/v1/ClusterOrBuilder.java | 21 +- .../cloud/dataproc/v1/ClustersProto.java | 338 ++++++++-------- .../v1/CreateWorkflowTemplateRequest.java | 14 +- ...reateWorkflowTemplateRequestOrBuilder.java | 4 +- .../google/cloud/dataproc/v1/DiskConfig.java | 207 ++++++++++ .../dataproc/v1/DiskConfigOrBuilder.java | 33 ++ .../cloud/dataproc/v1/JobScheduling.java | 40 ++ .../dataproc/v1/JobSchedulingOrBuilder.java | 10 + .../cloud/dataproc/v1/RuntimeConfig.java | 368 +++++++++++++++++- .../dataproc/v1/RuntimeConfigOrBuilder.java | 52 +++ .../google/cloud/dataproc/v1/RuntimeInfo.java | 179 +++++++++ .../dataproc/v1/RuntimeInfoOrBuilder.java | 25 ++ .../google/cloud/dataproc/v1/SharedProto.java | 71 ++-- .../google/cloud/dataproc/v1/clusters.proto | 14 +- .../proto/google/cloud/dataproc/v1/jobs.proto | 12 + .../google/cloud/dataproc/v1/shared.proto | 14 +- .../dataproc/v1/workflow_templates.proto | 2 +- 19 files changed, 1228 insertions(+), 266 deletions(-) diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index 770bf50f..c9478f49 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -189,7 +189,7 @@ public final OperationsClient getOperationsClient() { * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
    - *
  • For `projects.regions.workflowTemplates,create`, the resource name of the region has + *
  • For `projects.regions.workflowTemplates.create`, the resource name of the region has * the following format: `projects/{project_id}/regions/{region}` *
*
    @@ -229,7 +229,7 @@ public final WorkflowTemplate createWorkflowTemplate( * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
      - *
    • For `projects.regions.workflowTemplates,create`, the resource name of the region has + *
    • For `projects.regions.workflowTemplates.create`, the resource name of the region has * the following format: `projects/{project_id}/regions/{region}` *
    *
      @@ -269,7 +269,7 @@ public final WorkflowTemplate createWorkflowTemplate( * @param parent Required. The resource name of the region or location, as described in * https://cloud.google.com/apis/design/resource_names. *
        - *
      • For `projects.regions.workflowTemplates,create`, the resource name of the region has + *
      • For `projects.regions.workflowTemplates.create`, the resource name of the region has * the following format: `projects/{project_id}/regions/{region}` *
      *
        diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 31aaaaa5..1a7adcd2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java @@ -323,12 +323,13 @@ public com.google.protobuf.ByteString getClusterNameBytes() { * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the config field is set. @@ -341,12 +342,13 @@ public boolean hasConfig() { * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The config. @@ -361,12 +363,13 @@ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1496,12 +1499,13 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the config field is set. @@ -1513,12 +1517,13 @@ public boolean hasConfig() { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The config. @@ -1536,12 +1541,13 @@ public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { @@ -1561,12 +1567,13 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { @@ -1583,12 +1590,13 @@ public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder buil * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { @@ -1612,12 +1620,13 @@ public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearConfig() { @@ -1635,12 +1644,13 @@ public Builder clearConfig() { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { @@ -1652,12 +1662,13 @@ public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { @@ -1673,12 +1684,13 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() * * *
        -     * Required. The cluster config. Note that Dataproc may set
        -     * default values, and values may change when clusters are updated.
        +     * Optional. The cluster config for a cluster of Compute Engine Instances.
        +     * Note that Dataproc may set default values, and values may change
        +     * when clusters are updated.
              * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java index daaa60c4..adffcd38 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java @@ -79,12 +79,13 @@ public interface ClusterOrBuilder * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the config field is set. @@ -94,12 +95,13 @@ public interface ClusterOrBuilder * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The config. @@ -109,12 +111,13 @@ public interface ClusterOrBuilder * * *
        -   * Required. The cluster config. Note that Dataproc may set
        -   * default values, and values may change when clusters are updated.
        +   * Optional. The cluster config for a cluster of Compute Engine Instances.
        +   * Note that Dataproc may set default values, and values may change
        +   * when clusters are updated.
            * 
        * * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 0d051f8e..309910fd 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -216,7 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + "google.cloud.dataproc.v1.ClusterConfigB\003" - + "\340A\002\022B\n\006labels\030\010 \003(\0132-.google.cloud.datap" + + "\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud.datap" + "roc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006statu" + "s\030\004 \001(\0132\'.google.cloud.dataproc.v1.Clust" + "erStatusB\003\340A\003\022D\n\016status_history\030\007 \003(\0132\'." @@ -314,174 +314,174 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\003\022(\n\033instance_group_manager_name\030\002 \001(\tB" + "\003\340A\003\"L\n\021AcceleratorConfig\022\034\n\024accelerator" + "_type_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001" - + "(\005\"f\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\t" - + "B\003\340A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n" - + "\016num_local_ssds\030\002 \001(\005B\003\340A\001\"s\n\030NodeInitia" - + "lizationAction\022\034\n\017executable_file\030\001 \001(\tB" - + "\003\340A\002\0229\n\021execution_timeout\030\002 \001(\0132\031.google" - + ".protobuf.DurationB\003\340A\001\"\307\003\n\rClusterStatu" - + "s\022A\n\005state\030\001 \001(\0162-.google.cloud.dataproc" - + ".v1.ClusterStatus.StateB\003\340A\003\022\026\n\006detail\030\002" - + " \001(\tB\006\340A\003\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022G\n\010subst" - + "ate\030\004 \001(\01620.google.cloud.dataproc.v1.Clu" - + "sterStatus.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UN" - + "KNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ER" - + "ROR\020\003\022\027\n\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETI" - + "NG\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOP" - + "PED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPE" - + "CIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020" - + "\002\"\240\001\n\016SecurityConfig\022F\n\017kerberos_config\030" - + "\001 \001(\0132(.google.cloud.dataproc.v1.Kerbero" - + "sConfigB\003\340A\001\022F\n\017identity_config\030\002 \001(\0132(." - + "google.cloud.dataproc.v1.IdentityConfigB" - + "\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017enable_kerber" - + "os\030\001 \001(\010B\003\340A\001\022(\n\033root_principal_password" - + "_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A" - + "\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststo" - + "re_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_u" - + "ri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB" - + "\003\340A\001\022$\n\027truststore_password_uri\030\010 \001(\tB\003\340" - + "A\001\022$\n\027cross_realm_trust_realm\030\t \001(\tB\003\340A\001" - + "\022\"\n\025cross_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036" - + "cross_realm_trust_admin_server\030\013 \001(\tB\003\340A" - + "\001\0222\n%cross_realm_trust_shared_password_u" - + "ri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340" - + "A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005r" - + "ealm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034us" - + "er_service_account_mapping\030\001 \003(\0132G.googl" - + "e.cloud.dataproc.v1.IdentityConfig.UserS" - + "erviceAccountMappingEntryB\003\340A\002\032@\n\036UserSe" - + "rviceAccountMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\ri" - + "mage_version\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 " - + "\003(\01328.google.cloud.dataproc.v1.SoftwareC" - + "onfig.PropertiesEntryB\003\340A\001\022E\n\023optional_c" - + "omponents\030\003 \003(\0162#.google.cloud.dataproc." - + "v1.ComponentB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017Lifecyc" - + "leConfig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\022;\n\020auto_delete" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.google" - + ".protobuf.DurationB\003\340A\001H\000\0228\n\017idle_start_" - + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022L\n\032datapro" - + "c_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n metas" - + "tore.googleapis.com/Service\"\232\002\n\016ClusterM" - + "etrics\022O\n\014hdfs_metrics\030\001 \003(\01329.google.cl" - + "oud.dataproc.v1.ClusterMetrics.HdfsMetri" - + "csEntry\022O\n\014yarn_metrics\030\002 \003(\01329.google.c" - + "loud.dataproc.v1.ClusterMetrics.YarnMetr" - + "icsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\356\001\n\024Cre" - + "ateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" - + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\013" - + "2!.google.cloud.dataproc.v1.ClusterB\003\340A\002" - + "\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022V\n action_on_f" - + "ailed_primary_workers\030\005 \001(\0162\'.google.clo" - + "ud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n\024Up" - + "dateClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003" - + "\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name" - + "\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cl" - + "oud.dataproc.v1.ClusterB\003\340A\002\022E\n\035graceful" - + "_decommission_timeout\030\006 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\022\027\n\nreq" - + "uest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001" - + "(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cl" - + "uster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(" - + "\tB\003\340A\001\"\222\001\n\023StartClusterRequest\022\027\n\nprojec" - + "t_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014" - + "cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030" - + "\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024" - + "DeleteClusterRequest\022\027\n\nproject_id\030\001 \001(\t" - + "B\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_na" - + "me\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001" - + "\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterR" - + "equest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regio" - + "n\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"" - + "\211\001\n\023ListClustersRequest\022\027\n\nproject_id\030\001 " - + "\001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030" - + "\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_token\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersRespo" - + "nse\0228\n\010clusters\030\001 \003(\0132!.google.cloud.dat" - + "aproc.v1.ClusterB\003\340A\003\022\034\n\017next_page_token" - + "\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n" - + "\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003" - + "\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026Diagno" - + "seClusterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A" - + "\003\"\370\001\n\023ReservationAffinity\022Y\n\030consume_res" - + "ervation_type\030\001 \001(\01622.google.cloud.datap" - + "roc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003" - + "key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004T" - + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVAT" - + "ION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_R" - + "ESERVATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rC" - + "reateCluster\022..google.cloud.dataproc.v1." - + "CreateClusterRequest\032\035.google.longrunnin" - + "g.Operation\"\237\001\202\323\344\223\002>\"3/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters:\007clust" - + "er\332A\031project_id,region,cluster\312A<\n\007Clust" - + "er\0221google.cloud.dataproc.v1.ClusterOper" - + "ationMetadata\022\250\002\n\rUpdateCluster\022..google" - + ".cloud.dataproc.v1.UpdateClusterRequest\032" - + "\035.google.longrunning.Operation\"\307\001\202\323\344\223\002M2" - + "B/v1/projects/{project_id}/regions/{regi" - + "on}/clusters/{cluster_name}:\007cluster\332A2p" - + "roject_id,region,cluster_name,cluster,up" - + "date_mask\312A<\n\007Cluster\0221google.cloud.data" - + "proc.v1.ClusterOperationMetadata\022\356\001\n\013Sto" - + "pCluster\022,.google.cloud.dataproc.v1.Stop" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id" - + "}/regions/{region}/clusters/{cluster_nam" - + "e}:stop:\001*\312A<\n\007Cluster\0221google.cloud.dat" - + "aproc.v1.ClusterOperationMetadata\022\361\001\n\014St" - + "artCluster\022-.google.cloud.dataproc.v1.St" - + "artClusterRequest\032\035.google.longrunning.O" - + "peration\"\222\001\202\323\344\223\002M\"H/v1/projects/{project" - + "_id}/regions/{region}/clusters/{cluster_" - + "name}:start:\001*\312A<\n\007Cluster\0221google.cloud" - + ".dataproc.v1.ClusterOperationMetadata\022\231\002" - + "\n\rDeleteCluster\022..google.cloud.dataproc." - + "v1.DeleteClusterRequest\032\035.google.longrun" - + "ning.Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{p" - + "roject_id}/regions/{region}/clusters/{cl" - + "uster_name}\332A\036project_id,region,cluster_" - + "name\312AJ\n\025google.protobuf.Empty\0221google.c" - + "loud.dataproc.v1.ClusterOperationMetadat" - + "a\022\311\001\n\nGetCluster\022+.google.cloud.dataproc" - + ".v1.GetClusterRequest\032!.google.cloud.dat" - + "aproc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{" - + "project_id}/regions/{region}/clusters/{c" - + "luster_name}\332A\036project_id,region,cluster" - + "_name\022\331\001\n\014ListClusters\022-.google.cloud.da" - + "taproc.v1.ListClustersRequest\032..google.c" - + "loud.dataproc.v1.ListClustersResponse\"j\202" - + "\323\344\223\0025\0223/v1/projects/{project_id}/regions" - + "/{region}/clusters\332A\021project_id,region\332A" - + "\030project_id,region,filter\022\252\002\n\017DiagnoseCl" - + "uster\0220.google.cloud.dataproc.v1.Diagnos" + + "(\005\"\210\001\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(" + + "\tB\003\340A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033" + + "\n\016num_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd" + + "_interface\030\004 \001(\tB\003\340A\001\"s\n\030NodeInitializat" + + "ionAction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\022" + + "9\n\021execution_timeout\030\002 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005" + + "state\030\001 \001(\0162-.google.cloud.dataproc.v1.C" + + "lusterStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB" + + "\006\340A\003\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022G\n\010substate\030\004" + + " \001(\01620.google.cloud.dataproc.v1.ClusterS" + + "tatus.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN" + + "\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003" + + "\022\027\n\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022" + + "\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007" + + "\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIE" + + "D\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n" + + "\016SecurityConfig\022F\n\017kerberos_config\030\001 \001(\013" + + "2(.google.cloud.dataproc.v1.KerberosConf" + + "igB\003\340A\001\022F\n\017identity_config\030\002 \001(\0132(.googl" + + "e.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"" + + "\220\004\n\016KerberosConfig\022\034\n\017enable_kerberos\030\001 " + + "\001(\010B\003\340A\001\022(\n\033root_principal_password_uri\030" + + "\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014" + + "keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_ur" + + "i\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 " + + "\001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022" + + "$\n\027truststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n" + + "\027cross_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025c" + + "ross_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross" + + "_realm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%" + + "cross_realm_trust_shared_password_uri\030\014 " + + "\001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n" + + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030" + + "\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_se" + + "rvice_account_mapping\030\001 \003(\0132G.google.clo" + + "ud.dataproc.v1.IdentityConfig.UserServic" + + "eAccountMappingEntryB\003\340A\002\032@\n\036UserService" + + "AccountMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_" + + "version\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328" + + ".google.cloud.dataproc.v1.SoftwareConfig" + + ".PropertiesEntryB\003\340A\001\022E\n\023optional_compon" + + "ents\030\003 \003(\0162#.google.cloud.dataproc.v1.Co" + + "mponentB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleCon" + + "fig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022;\n\020auto_delete_time" + + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H" + + "\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001H\000\0228\n\017idle_start_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\005" + + "\n\003ttl\"_\n\017MetastoreConfig\022L\n\032dataproc_met" + + "astore_service\030\001 \001(\tB(\340A\002\372A\"\n metastore." + + "googleapis.com/Service\"\232\002\n\016ClusterMetric" + + "s\022O\n\014hdfs_metrics\030\001 \003(\01329.google.cloud.d" + + "ataproc.v1.ClusterMetrics.HdfsMetricsEnt" + + "ry\022O\n\014yarn_metrics\030\002 \003(\01329.google.cloud." + + "dataproc.v1.ClusterMetrics.YarnMetricsEn" + + "try\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\356\001\n\024CreateCl" + + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.go" + + "ogle.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\nr" + + "equest_id\030\004 \001(\tB\003\340A\001\022V\n action_on_failed" + + "_primary_workers\030\005 \001(\0162\'.google.cloud.da" + + "taproc.v1.FailureActionB\003\340A\001\"\256\002\n\024UpdateC" + + "lusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023" + + "\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(" + + "\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cloud.d" + + "ataproc.v1.ClusterB\003\340A\002\022E\n\035graceful_deco" + + "mmission_timeout\030\006 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_" + + "id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterRequest\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340" + + "A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" + + "_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A" + + "\001\"\222\001\n\023StartClusterRequest\022\027\n\nproject_id\030" + + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clust" + + "er_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\t" + + "B\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024Delet" + + "eClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" + + "\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 " + + "\001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nr" + + "equest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterReques" + + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" + + "(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023L" + + "istClustersRequest\022\027\n\nproject_id\030\001 \001(\tB\003" + + "\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\t" + + "B\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersResponse\0228" + + "\n\010clusters\030\001 \003(\0132!.google.cloud.dataproc" + + ".v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 \001(" + + "\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\nproj" + + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031" + + "\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClu" + + "sterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + + "\023ReservationAffinity\022Y\n\030consume_reservat" + + "ion_type\030\001 \001(\01622.google.cloud.dataproc.v" + + "1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003key\030\002" + + " \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001" + + "\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESERV" + + "ATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rCreate" + + "Cluster\022..google.cloud.dataproc.v1.Creat" + "eClusterRequest\032\035.google.longrunning.Ope" - + "ration\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_i" - + "d}/regions/{region}/clusters/{cluster_na" - + "me}:diagnose:\001*\332A\036project_id,region,clus" - + "ter_name\312AK\n\026DiagnoseClusterResults\0221goo" - + "gle.cloud.dataproc.v1.ClusterOperationMe" - + "tadata\032K\312A\027dataproc.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "ormB\263\002\n\034com.google.cloud.dataproc.v1B\rCl" - + "ustersProtoP\001Z@google.golang.org/genprot" - + "o/googleapis/cloud/dataproc/v1;dataproc\352" - + "A^\n container.googleapis.com/Cluster\022:pr" - + "ojects/{project}/locations/{location}/cl" - + "usters/{cluster}\352A^\n metastore.googleapi" - + "s.com/Service\022:projects/{project}/locati" - + "ons/{location}/services/{service}b\006proto" - + "3" + + "ration\"\237\001\202\323\344\223\002>\"3/v1/projects/{project_i" + + "d}/regions/{region}/clusters:\007cluster\332A\031" + + "project_id,region,cluster\312A<\n\007Cluster\0221g" + + "oogle.cloud.dataproc.v1.ClusterOperation" + + "Metadata\022\250\002\n\rUpdateCluster\022..google.clou" + + "d.dataproc.v1.UpdateClusterRequest\032\035.goo" + + "gle.longrunning.Operation\"\307\001\202\323\344\223\002M2B/v1/" + + "projects/{project_id}/regions/{region}/c" + + "lusters/{cluster_name}:\007cluster\332A2projec" + + "t_id,region,cluster_name,cluster,update_" + + "mask\312A<\n\007Cluster\0221google.cloud.dataproc." + + "v1.ClusterOperationMetadata\022\356\001\n\013StopClus" + + "ter\022,.google.cloud.dataproc.v1.StopClust" + + "erRequest\032\035.google.longrunning.Operation" + + "\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id}/reg" + + "ions/{region}/clusters/{cluster_name}:st" + + "op:\001*\312A<\n\007Cluster\0221google.cloud.dataproc" + + ".v1.ClusterOperationMetadata\022\361\001\n\014StartCl" + + "uster\022-.google.cloud.dataproc.v1.StartCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"\222\001\202\323\344\223\002M\"H/v1/projects/{project_id}/" + + "regions/{region}/clusters/{cluster_name}" + + ":start:\001*\312A<\n\007Cluster\0221google.cloud.data" + + "proc.v1.ClusterOperationMetadata\022\231\002\n\rDel" + + "eteCluster\022..google.cloud.dataproc.v1.De" + + "leteClusterRequest\032\035.google.longrunning." + + "Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{projec" + + "t_id}/regions/{region}/clusters/{cluster" + + "_name}\332A\036project_id,region,cluster_name\312" + + "AJ\n\025google.protobuf.Empty\0221google.cloud." + + "dataproc.v1.ClusterOperationMetadata\022\311\001\n" + + "\nGetCluster\022+.google.cloud.dataproc.v1.G" + + "etClusterRequest\032!.google.cloud.dataproc" + + ".v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{proje" + + "ct_id}/regions/{region}/clusters/{cluste" + + "r_name}\332A\036project_id,region,cluster_name" + + "\022\331\001\n\014ListClusters\022-.google.cloud.datapro" + + "c.v1.ListClustersRequest\032..google.cloud." + + "dataproc.v1.ListClustersResponse\"j\202\323\344\223\0025" + + "\0223/v1/projects/{project_id}/regions/{reg" + + "ion}/clusters\332A\021project_id,region\332A\030proj" + + "ect_id,region,filter\022\252\002\n\017DiagnoseCluster" + + "\0220.google.cloud.dataproc.v1.DiagnoseClus" + + "terRequest\032\035.google.longrunning.Operatio" + + "n\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_id}/re" + + "gions/{region}/clusters/{cluster_name}:d" + + "iagnose:\001*\332A\036project_id,region,cluster_n" + + "ame\312AK\n\026DiagnoseClusterResults\0221google.c" + + "loud.dataproc.v1.ClusterOperationMetadat" + + "a\032K\312A\027dataproc.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\263" + + "\002\n\034com.google.cloud.dataproc.v1B\rCluster" + + "sProtoP\001Z@google.golang.org/genproto/goo" + + "gleapis/cloud/dataproc/v1;dataproc\352A^\n c" + + "ontainer.googleapis.com/Cluster\022:project" + + "s/{project}/locations/{location}/cluster" + + "s/{cluster}\352A^\n metastore.googleapis.com" + + "/Service\022:projects/{project}/locations/{" + + "location}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -685,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, new java.lang.String[] { - "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", + "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = getDescriptor().getMessageTypes().get(14); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java index 1b5e6d7f..0ba83f6e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java @@ -135,7 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
            * Required. The resource name of the region or location, as described
            * in https://cloud.google.com/apis/design/resource_names.
        -   * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +   * * For `projects.regions.workflowTemplates.create`, the resource name of the
            *   region has the following format:
            *   `projects/{project_id}/regions/{region}`
            * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -167,7 +167,7 @@ public java.lang.String getParent() {
            * 
            * Required. The resource name of the region or location, as described
            * in https://cloud.google.com/apis/design/resource_names.
        -   * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +   * * For `projects.regions.workflowTemplates.create`, the resource name of the
            *   region has the following format:
            *   `projects/{project_id}/regions/{region}`
            * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -602,7 +602,7 @@ public Builder mergeFrom(
              * 
              * Required. The resource name of the region or location, as described
              * in https://cloud.google.com/apis/design/resource_names.
        -     * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +     * * For `projects.regions.workflowTemplates.create`, the resource name of the
              *   region has the following format:
              *   `projects/{project_id}/regions/{region}`
              * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -633,7 +633,7 @@ public java.lang.String getParent() {
              * 
              * Required. The resource name of the region or location, as described
              * in https://cloud.google.com/apis/design/resource_names.
        -     * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +     * * For `projects.regions.workflowTemplates.create`, the resource name of the
              *   region has the following format:
              *   `projects/{project_id}/regions/{region}`
              * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -664,7 +664,7 @@ public com.google.protobuf.ByteString getParentBytes() {
              * 
              * Required. The resource name of the region or location, as described
              * in https://cloud.google.com/apis/design/resource_names.
        -     * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +     * * For `projects.regions.workflowTemplates.create`, the resource name of the
              *   region has the following format:
              *   `projects/{project_id}/regions/{region}`
              * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -694,7 +694,7 @@ public Builder setParent(java.lang.String value) {
              * 
              * Required. The resource name of the region or location, as described
              * in https://cloud.google.com/apis/design/resource_names.
        -     * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +     * * For `projects.regions.workflowTemplates.create`, the resource name of the
              *   region has the following format:
              *   `projects/{project_id}/regions/{region}`
              * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -720,7 +720,7 @@ public Builder clearParent() {
              * 
              * Required. The resource name of the region or location, as described
              * in https://cloud.google.com/apis/design/resource_names.
        -     * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +     * * For `projects.regions.workflowTemplates.create`, the resource name of the
              *   region has the following format:
              *   `projects/{project_id}/regions/{region}`
              * * For `projects.locations.workflowTemplates.create`, the resource name of
        diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java
        index e78442be..0c4883bb 100644
        --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java
        +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java
        @@ -29,7 +29,7 @@ public interface CreateWorkflowTemplateRequestOrBuilder
            * 
            * Required. The resource name of the region or location, as described
            * in https://cloud.google.com/apis/design/resource_names.
        -   * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +   * * For `projects.regions.workflowTemplates.create`, the resource name of the
            *   region has the following format:
            *   `projects/{project_id}/regions/{region}`
            * * For `projects.locations.workflowTemplates.create`, the resource name of
        @@ -50,7 +50,7 @@ public interface CreateWorkflowTemplateRequestOrBuilder
            * 
            * Required. The resource name of the region or location, as described
            * in https://cloud.google.com/apis/design/resource_names.
        -   * * For `projects.regions.workflowTemplates,create`, the resource name of the
        +   * * For `projects.regions.workflowTemplates.create`, the resource name of the
            *   region has the following format:
            *   `projects/{project_id}/regions/{region}`
            * * For `projects.locations.workflowTemplates.create`, the resource name of
        diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
        index e92cca17..c3307375 100644
        --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
        +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
        @@ -39,6 +39,7 @@ private DiskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         
           private DiskConfig() {
             bootDiskType_ = "";
        +    localSsdInterface_ = "";
           }
         
           @java.lang.Override
        @@ -87,6 +88,13 @@ private DiskConfig(
                       bootDiskType_ = s;
                       break;
                     }
        +          case 34:
        +            {
        +              java.lang.String s = input.readStringRequireUtf8();
        +
        +              localSsdInterface_ = s;
        +              break;
        +            }
                   default:
                     {
                       if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
        @@ -219,6 +227,63 @@ public int getNumLocalSsds() {
             return numLocalSsds_;
           }
         
        +  public static final int LOCAL_SSD_INTERFACE_FIELD_NUMBER = 4;
        +  private volatile java.lang.Object localSsdInterface_;
        +  /**
        +   *
        +   *
        +   * 
        +   * Optional. Interface type of local SSDs (default is "scsi").
        +   * Valid values: "scsi" (Small Computer System Interface),
        +   * "nvme" (Non-Volatile Memory Express).
        +   * See [SSD Interface
        +   * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +   * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdInterface. + */ + @java.lang.Override + public java.lang.String getLocalSsdInterface() { + java.lang.Object ref = localSsdInterface_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localSsdInterface_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Interface type of local SSDs (default is "scsi").
        +   * Valid values: "scsi" (Small Computer System Interface),
        +   * "nvme" (Non-Volatile Memory Express).
        +   * See [SSD Interface
        +   * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +   * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for localSsdInterface. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { + java.lang.Object ref = localSsdInterface_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localSsdInterface_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -242,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bootDiskType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localSsdInterface_); + } unknownFields.writeTo(output); } @@ -260,6 +328,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localSsdInterface_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -278,6 +349,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBootDiskType().equals(other.getBootDiskType())) return false; if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (getNumLocalSsds() != other.getNumLocalSsds()) return false; + if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,6 +367,8 @@ public int hashCode() { hash = (53 * hash) + getBootDiskSizeGb(); hash = (37 * hash) + NUM_LOCAL_SSDS_FIELD_NUMBER; hash = (53 * hash) + getNumLocalSsds(); + hash = (37 * hash) + LOCAL_SSD_INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdInterface().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -446,6 +520,8 @@ public Builder clear() { numLocalSsds_ = 0; + localSsdInterface_ = ""; + return this; } @@ -476,6 +552,7 @@ public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { result.bootDiskType_ = bootDiskType_; result.bootDiskSizeGb_ = bootDiskSizeGb_; result.numLocalSsds_ = numLocalSsds_; + result.localSsdInterface_ = localSsdInterface_; onBuilt(); return result; } @@ -535,6 +612,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiskConfig other) { if (other.getNumLocalSsds() != 0) { setNumLocalSsds(other.getNumLocalSsds()); } + if (!other.getLocalSsdInterface().isEmpty()) { + localSsdInterface_ = other.localSsdInterface_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -809,6 +890,132 @@ public Builder clearNumLocalSsds() { return this; } + private java.lang.Object localSsdInterface_ = ""; + /** + * + * + *
        +     * Optional. Interface type of local SSDs (default is "scsi").
        +     * Valid values: "scsi" (Small Computer System Interface),
        +     * "nvme" (Non-Volatile Memory Express).
        +     * See [SSD Interface
        +     * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +     * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdInterface. + */ + public java.lang.String getLocalSsdInterface() { + java.lang.Object ref = localSsdInterface_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localSsdInterface_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Interface type of local SSDs (default is "scsi").
        +     * Valid values: "scsi" (Small Computer System Interface),
        +     * "nvme" (Non-Volatile Memory Express).
        +     * See [SSD Interface
        +     * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +     * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for localSsdInterface. + */ + public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { + java.lang.Object ref = localSsdInterface_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + localSsdInterface_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Interface type of local SSDs (default is "scsi").
        +     * Valid values: "scsi" (Small Computer System Interface),
        +     * "nvme" (Non-Volatile Memory Express).
        +     * See [SSD Interface
        +     * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +     * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The localSsdInterface to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdInterface(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localSsdInterface_ = value; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Interface type of local SSDs (default is "scsi").
        +     * Valid values: "scsi" (Small Computer System Interface),
        +     * "nvme" (Non-Volatile Memory Express).
        +     * See [SSD Interface
        +     * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +     * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdInterface() { + + localSsdInterface_ = getDefaultInstance().getLocalSsdInterface(); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Interface type of local SSDs (default is "scsi").
        +     * Valid values: "scsi" (Small Computer System Interface),
        +     * "nvme" (Non-Volatile Memory Express).
        +     * See [SSD Interface
        +     * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +     * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for localSsdInterface to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localSsdInterface_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index fb52a5c3..4dc5e534 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -86,4 +86,37 @@ public interface DiskConfigOrBuilder * @return The numLocalSsds. */ int getNumLocalSsds(); + + /** + * + * + *
        +   * Optional. Interface type of local SSDs (default is "scsi").
        +   * Valid values: "scsi" (Small Computer System Interface),
        +   * "nvme" (Non-Volatile Memory Express).
        +   * See [SSD Interface
        +   * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +   * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdInterface. + */ + java.lang.String getLocalSsdInterface(); + /** + * + * + *
        +   * Optional. Interface type of local SSDs (default is "scsi").
        +   * Valid values: "scsi" (Small Computer System Interface),
        +   * "nvme" (Non-Volatile Memory Express).
        +   * See [SSD Interface
        +   * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
        +   * 
        + * + * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for localSsdInterface. + */ + com.google.protobuf.ByteString getLocalSsdInterfaceBytes(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index df030492..9d61996c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -124,6 +124,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * A job may be reported as thrashing if driver exits with non-zero code * 4 times within 10 minute window. * Maximum value is 10. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -144,6 +149,11 @@ public int getMaxFailuresPerHour() { * Optional. Maximum number of times in total a driver may be restarted as a result of * driver exiting with non-zero code before job is reported failed. * Maximum value is 240. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -496,6 +506,11 @@ public Builder mergeFrom( * A job may be reported as thrashing if driver exits with non-zero code * 4 times within 10 minute window. * Maximum value is 10. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -516,6 +531,11 @@ public int getMaxFailuresPerHour() { * A job may be reported as thrashing if driver exits with non-zero code * 4 times within 10 minute window. * Maximum value is 10. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -539,6 +559,11 @@ public Builder setMaxFailuresPerHour(int value) { * A job may be reported as thrashing if driver exits with non-zero code * 4 times within 10 minute window. * Maximum value is 10. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -560,6 +585,11 @@ public Builder clearMaxFailuresPerHour() { * Optional. Maximum number of times in total a driver may be restarted as a result of * driver exiting with non-zero code before job is reported failed. * Maximum value is 240. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -577,6 +607,11 @@ public int getMaxFailuresTotal() { * Optional. Maximum number of times in total a driver may be restarted as a result of * driver exiting with non-zero code before job is reported failed. * Maximum value is 240. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -597,6 +632,11 @@ public Builder setMaxFailuresTotal(int value) { * Optional. Maximum number of times in total a driver may be restarted as a result of * driver exiting with non-zero code before job is reported failed. * Maximum value is 240. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java index 2b0d9860..a65b1cfc 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java @@ -33,6 +33,11 @@ public interface JobSchedulingOrBuilder * A job may be reported as thrashing if driver exits with non-zero code * 4 times within 10 minute window. * Maximum value is 10. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
        * * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -48,6 +53,11 @@ public interface JobSchedulingOrBuilder * Optional. Maximum number of times in total a driver may be restarted as a result of * driver exiting with non-zero code before job is reported failed. * Maximum value is 240. + * **Note:** Currently, this restartable job option is + * not supported in Dataproc + * [workflow + * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + * jobs. *
* * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java index b0e21dd4..4cf2f48a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java @@ -37,7 +37,10 @@ private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private RuntimeConfig() {} + private RuntimeConfig() { + version_ = ""; + containerImage_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -69,6 +72,20 @@ private RuntimeConfig( case 0: done = true; break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + containerImage_ = s; + break; + } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { @@ -129,6 +146,106 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); } + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * Optional. Version of the batch runtime.
+   * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Version of the batch runtime.
+   * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.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 static final int CONTAINER_IMAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object containerImage_; + /** + * + * + *
+   * Optional. Optional custom container image for the job runtime environment. If
+   * not specified, a default container image will be used.
+   * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containerImage. + */ + @java.lang.Override + public java.lang.String getContainerImage() { + java.lang.Object ref = containerImage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerImage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Optional custom container image for the job runtime environment. If
+   * not specified, a default container image will be used.
+   * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containerImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContainerImageBytes() { + java.lang.Object ref = containerImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PROPERTIES_FIELD_NUMBER = 3; private static final class PropertiesDefaultEntryHolder { @@ -250,6 +367,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerImage_); + } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); @@ -261,6 +384,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerImage_); + } for (java.util.Map.Entry entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry properties__ = @@ -287,6 +416,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.RuntimeConfig other = (com.google.cloud.dataproc.v1.RuntimeConfig) obj; + if (!getVersion().equals(other.getVersion())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,6 +430,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + CONTAINER_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getContainerImage().hashCode(); if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); @@ -468,6 +603,10 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + version_ = ""; + + containerImage_ = ""; + internalGetMutableProperties().clear(); return this; } @@ -497,6 +636,8 @@ public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { com.google.cloud.dataproc.v1.RuntimeConfig result = new com.google.cloud.dataproc.v1.RuntimeConfig(this); int from_bitField0_ = bitField0_; + result.version_ = version_; + result.containerImage_ = containerImage_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); onBuilt(); @@ -548,6 +689,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { if (other == com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getContainerImage().isEmpty()) { + containerImage_ = other.containerImage_; + onChanged(); + } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -580,6 +729,223 @@ public Builder mergeFrom( private int bitField0_; + private java.lang.Object version_ = ""; + /** + * + * + *
+     * Optional. Version of the batch runtime.
+     * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Version of the batch runtime.
+     * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Version of the batch runtime.
+     * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. Version of the batch runtime.
+     * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Version of the batch runtime.
+     * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + private java.lang.Object containerImage_ = ""; + /** + * + * + *
+     * Optional. Optional custom container image for the job runtime environment. If
+     * not specified, a default container image will be used.
+     * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containerImage. + */ + public java.lang.String getContainerImage() { + java.lang.Object ref = containerImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Optional custom container image for the job runtime environment. If
+     * not specified, a default container image will be used.
+     * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containerImage. + */ + public com.google.protobuf.ByteString getContainerImageBytes() { + java.lang.Object ref = containerImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + containerImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Optional custom container image for the job runtime environment. If
+     * not specified, a default container image will be used.
+     * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The containerImage to set. + * @return This builder for chaining. + */ + public Builder setContainerImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + containerImage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional custom container image for the job runtime environment. If
+     * not specified, a default container image will be used.
+     * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContainerImage() { + + containerImage_ = getDefaultInstance().getContainerImage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional custom container image for the job runtime environment. If
+     * not specified, a default container image will be used.
+     * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for containerImage to set. + * @return This builder for chaining. + */ + public Builder setContainerImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + containerImage_ = value; + onChanged(); + return this; + } + private com.google.protobuf.MapField properties_; private com.google.protobuf.MapField diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java index 1365be22..2b60b9b3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java @@ -23,6 +23,58 @@ public interface RuntimeConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Optional. Version of the batch runtime.
+   * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * Optional. Version of the batch runtime.
+   * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Optional. Optional custom container image for the job runtime environment. If
+   * not specified, a default container image will be used.
+   * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The containerImage. + */ + java.lang.String getContainerImage(); + /** + * + * + *
+   * Optional. Optional custom container image for the job runtime environment. If
+   * not specified, a default container image will be used.
+   * 
+ * + * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for containerImage. + */ + com.google.protobuf.ByteString getContainerImageBytes(); + /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java index a2f60de1..d8bcda15 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java @@ -39,6 +39,7 @@ private RuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private RuntimeInfo() { outputUri_ = ""; + diagnosticOutputUri_ = ""; } @java.lang.Override @@ -93,6 +94,13 @@ private RuntimeInfo( outputUri_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + diagnosticOutputUri_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -294,6 +302,55 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } + public static final int DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object diagnosticOutputUri_; + /** + * + * + *
+   * Output only. A URI pointing to the location of the diagnostics tarball.
+   * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diagnosticOutputUri. + */ + @java.lang.Override + public java.lang.String getDiagnosticOutputUri() { + java.lang.Object ref = diagnosticOutputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diagnosticOutputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. A URI pointing to the location of the diagnostics tarball.
+   * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diagnosticOutputUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { + java.lang.Object ref = diagnosticOutputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diagnosticOutputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -313,6 +370,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diagnosticOutputUri_); + } unknownFields.writeTo(output); } @@ -335,6 +395,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diagnosticOutputUri_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +415,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getDiagnosticOutputUri().equals(other.getDiagnosticOutputUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,6 +433,8 @@ public int hashCode() { } hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getOutputUri().hashCode(); + hash = (37 * hash) + DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDiagnosticOutputUri().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -537,6 +603,8 @@ public Builder clear() { internalGetMutableEndpoints().clear(); outputUri_ = ""; + diagnosticOutputUri_ = ""; + return this; } @@ -568,6 +636,7 @@ public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { result.endpoints_ = internalGetEndpoints(); result.endpoints_.makeImmutable(); result.outputUri_ = outputUri_; + result.diagnosticOutputUri_ = diagnosticOutputUri_; onBuilt(); return result; } @@ -622,6 +691,10 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { outputUri_ = other.outputUri_; onChanged(); } + if (!other.getDiagnosticOutputUri().isEmpty()) { + diagnosticOutputUri_ = other.diagnosticOutputUri_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -932,6 +1005,112 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object diagnosticOutputUri_ = ""; + /** + * + * + *
+     * Output only. A URI pointing to the location of the diagnostics tarball.
+     * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diagnosticOutputUri. + */ + public java.lang.String getDiagnosticOutputUri() { + java.lang.Object ref = diagnosticOutputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diagnosticOutputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the diagnostics tarball.
+     * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diagnosticOutputUri. + */ + public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { + java.lang.Object ref = diagnosticOutputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diagnosticOutputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the diagnostics tarball.
+     * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The diagnosticOutputUri to set. + * @return This builder for chaining. + */ + public Builder setDiagnosticOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diagnosticOutputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the diagnostics tarball.
+     * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDiagnosticOutputUri() { + + diagnosticOutputUri_ = getDefaultInstance().getDiagnosticOutputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A URI pointing to the location of the diagnostics tarball.
+     * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for diagnosticOutputUri to set. + * @return This builder for chaining. + */ + public Builder setDiagnosticOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diagnosticOutputUri_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java index 71558525..0c52ec1c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java @@ -111,4 +111,29 @@ public interface RuntimeInfoOrBuilder * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); + + /** + * + * + *
+   * Output only. A URI pointing to the location of the diagnostics tarball.
+   * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The diagnosticOutputUri. + */ + java.lang.String getDiagnosticOutputUri(); + /** + * + * + *
+   * Output only. A URI pointing to the location of the diagnostics tarball.
+   * 
+ * + * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for diagnosticOutputUri. + */ + com.google.protobuf.ByteString getDiagnosticOutputUriBytes(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java index 27c3f938..dede2784 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -70,38 +70,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n%google/cloud/dataproc/v1/shared.proto\022" + "\030google.cloud.dataproc.v1\032\037google/api/fi" - + "eld_behavior.proto\"\224\001\n\rRuntimeConfig\022P\n\n" - + "properties\030\003 \003(\01327.google.cloud.dataproc" - + ".v1.RuntimeConfig.PropertiesEntryB\003\340A\001\0321" - + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentConfig\022H\n\020execu" - + "tion_config\030\001 \001(\0132).google.cloud.datapro" - + "c.v1.ExecutionConfigB\003\340A\001\022L\n\022peripherals" - + "_config\030\002 \001(\0132+.google.cloud.dataproc.v1" - + ".PeripheralsConfigB\003\340A\001\"\246\001\n\017ExecutionCon" - + "fig\022\034\n\017service_account\030\002 \001(\tB\003\340A\001\022\032\n\013net" - + "work_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016subnetwork_uri\030" - + "\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags\030\006 \003(\tB\003\340A\001\022" - + "\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007network\"9\n\030Spar" - + "kHistoryServerConfig\022\035\n\020dataproc_cluster" - + "\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsConfig\022\036\n\021met" - + "astore_service\030\001 \001(\tB\003\340A\001\022\\\n\033spark_histo" - + "ry_server_config\030\002 \001(\01322.google.cloud.da" - + "taproc.v1.SparkHistoryServerConfigB\003\340A\001\"" - + "\246\001\n\013RuntimeInfo\022L\n\tendpoints\030\001 \003(\01324.goo" - + "gle.cloud.dataproc.v1.RuntimeInfo.Endpoi" - + "ntsEntryB\003\340A\003\022\027\n\noutput_uri\030\002 \001(\tB\003\340A\003\0320" - + "\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001*\277\001\n\tComponent\022\031\n\025COMPONENT_UNSP" - + "ECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005D" - + "RUID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEB" - + "HCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022\n\n\006RANGE" - + "R\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZOOKEEPER" - + "\020\010*J\n\rFailureAction\022\036\n\032FAILURE_ACTION_UN" - + "SPECIFIED\020\000\022\r\n\tNO_ACTION\020\001\022\n\n\006DELETE\020\002Bo" - + "\n\034com.google.cloud.dataproc.v1B\013SharedPr" - + "otoP\001Z@google.golang.org/genproto/google" - + "apis/cloud/dataproc/v1;dataprocb\006proto3" + + "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" + + "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " + + "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" + + "oud.dataproc.v1.RuntimeConfig.Properties" + + "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" + + "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" + + "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" + + "\022peripherals_config\030\002 \001(\0132+.google.cloud" + + ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" + + "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" + + "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" + + "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" + + "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" + + "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" + + "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" + + "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" + + "\033spark_history_server_config\030\002 \001(\01322.goo" + + "gle.cloud.dataproc.v1.SparkHistoryServer" + + "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" + + "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" + + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" + + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" + + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001*\277\001\n\tComponent\022\031\n\025COMPON" + + "ENT_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKE" + + "R\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014" + + "HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022" + + "\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZ" + + "OOKEEPER\020\010*J\n\rFailureAction\022\036\n\032FAILURE_A" + + "CTION_UNSPECIFIED\020\000\022\r\n\tNO_ACTION\020\001\022\n\n\006DE" + + "LETE\020\002Bo\n\034com.google.cloud.dataproc.v1B\013" + + "SharedProtoP\001Z@google.golang.org/genprot" + + "o/googleapis/cloud/dataproc/v1;dataprocb" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,7 +118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, new java.lang.String[] { - "Properties", + "Version", "ContainerImage", "Properties", }); internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); @@ -163,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, new java.lang.String[] { - "Endpoints", "OutputUri", + "Endpoints", "OutputUri", "DiagnosticOutputUri", }); internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 50532491..0bb1aaef 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -162,9 +162,10 @@ message Cluster { // unique. Names of deleted clusters can be reused. string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The cluster config. Note that Dataproc may set - // default values, and values may change when clusters are updated. - ClusterConfig config = 3 [(google.api.field_behavior) = REQUIRED]; + // Optional. The cluster config for a cluster of Compute Engine Instances. + // Note that Dataproc may set default values, and values may change + // when clusters are updated. + ClusterConfig config = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The labels to associate with this cluster. // Label **keys** must contain 1 to 63 characters, and must conform to @@ -655,6 +656,13 @@ message DiskConfig { // data is spread across them, and the boot disk contains only basic // config and installed binaries. int32 num_local_ssds = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Interface type of local SSDs (default is "scsi"). + // Valid values: "scsi" (Small Computer System Interface), + // "nvme" (Non-Volatile Memory Express). + // See [SSD Interface + // types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; } // Specifies an executable to run on a fully configured node and a diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto index d7302b38..823a12cf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto @@ -731,11 +731,23 @@ message JobScheduling { // 4 times within 10 minute window. // // Maximum value is 10. + // + // **Note:** Currently, this restartable job option is + // not supported in Dataproc + // [workflow + // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + // jobs. int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Maximum number of times in total a driver may be restarted as a result of // driver exiting with non-zero code before job is reported failed. // Maximum value is 240. + // + // **Note:** Currently, this restartable job option is + // not supported in Dataproc + // [workflow + // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) + // jobs. int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto index 954d80d4..f574fe01 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto @@ -25,6 +25,13 @@ option java_package = "com.google.cloud.dataproc.v1"; // Runtime configuration for a workload. message RuntimeConfig { + // Optional. Version of the batch runtime. + string version = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional custom container image for the job runtime environment. If + // not specified, a default container image will be used. + string container_image = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. A mapping of property names to values, which are used to configure workload // execution. map properties = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -80,7 +87,9 @@ message PeripheralsConfig { // Example: // // * `projects/[project_id]/locations/[region]/services/[service_id]` - string metastore_service = 1 [(google.api.field_behavior) = OPTIONAL]; + string metastore_service = 1 [ + (google.api.field_behavior) = OPTIONAL + ]; // Optional. The Spark History Server configuration for the workload. SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; @@ -94,6 +103,9 @@ message RuntimeInfo { // Output only. A URI pointing to the location of the stdout and stderr of the workload. string output_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A URI pointing to the location of the diagnostics tarball. + string diagnostic_output_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Cluster components that can be activated. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto index 7c5c3f7d..416ba26d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto @@ -612,7 +612,7 @@ message CreateWorkflowTemplateRequest { // Required. The resource name of the region or location, as described // in https://cloud.google.com/apis/design/resource_names. // - // * For `projects.regions.workflowTemplates,create`, the resource name of the + // * For `projects.regions.workflowTemplates.create`, the resource name of the // region has the following format: // `projects/{project_id}/regions/{region}` // From c76cce263497d9d817061b063643118aab9eeeb2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 Jan 2022 19:18:23 +0100 Subject: [PATCH 364/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.3.1 (#763) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.3.0` -> `2.3.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.1/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.1/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.3.1`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​231-httpswwwgithubcomgoogleapisjava-dataproccomparev230v231-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ed2a639..0b249808 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 89764e9a..3ba4dc39 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.3.0 + 2.3.1 From a37b3961160896e68be533190cb6bc45bc15e698 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:16:31 +0000 Subject: [PATCH 365/519] chore(java): update release_type choices to stable and preview (#1331) (#773) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dddb13b8..dcdda8c6 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb + digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 diff --git a/README.md b/README.md index 0b249808..b6eec358 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-dataproc/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +[stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataproc&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication From 2eb4a571893435c27e369f1e64732dd443e54fbe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 19:58:30 +0100 Subject: [PATCH 366/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#770) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b6eec358..fa9eb483 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0bf3e418..4204d8f1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From 6fcf336a56e1cb882d9c7096964cf55eac430209 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:06:23 +0100 Subject: [PATCH 367/519] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | `3.2.0` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/compatibility-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/confidence-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3ba4dc39..c7aa9b78 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -58,7 +58,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c7fa6ae5..e24bd943 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From d4f4a2ebb1a1f7d9fb71642f69d135f81798583e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 Jan 2022 00:06:20 +0100 Subject: [PATCH 368/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.2.3 (#765) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.2.2` -> `2.2.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.3/compatibility-slim/2.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.2.3/confidence-slim/2.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.2.3`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​223-httpswwwgithubcomgoogleapisjava-storagecomparev222v223-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.2.2...v2.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c7aa9b78..9f8ddd7d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.2.2 + 2.2.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e24bd943..bfb06097 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.2.2 + 2.2.3 junit From b538d4dc66131239ac988950d9e2b8b7006a1b9f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 00:54:23 +0100 Subject: [PATCH 369/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.3.0 (#775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.2.3` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.3.0/compatibility-slim/2.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.3.0/confidence-slim/2.2.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.3.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​230-httpsgithubcomgoogleapisjava-storagecomparev223v230-2022-01-12) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.2.3...v2.3.0) ##### Features - Add RPO metadata settings ([#​1105](https://togithub.com/googleapis/java-storage/issues/1105)) ([6f9dfdf](https://togithub.com/googleapis/java-storage/commit/6f9dfdfdbf9f1466839a17ef97489f207f18bec6)) ##### Bug Fixes - **java:** run Maven in plain console-friendly mode ([#​1301](https://togithub.com/googleapis/java-storage/issues/1301)) ([#​1186](https://togithub.com/googleapis/java-storage/issues/1186)) ([1e55dba](https://togithub.com/googleapis/java-storage/commit/1e55dba4cd5111472b9bb05db08ba7e47fafe762)) - Remove all client side validation for OLM, allow nonspecific lif… ([#​1160](https://togithub.com/googleapis/java-storage/issues/1160)) ([5a160ee](https://togithub.com/googleapis/java-storage/commit/5a160eee2b80e3d392df9d73dfc30ca9cd665764)) ##### Dependencies - update dependency org.easymock:easymock to v4 ([#​1198](https://togithub.com/googleapis/java-storage/issues/1198)) ([558520f](https://togithub.com/googleapis/java-storage/commit/558520f35ed64f0b36f7f8ada4491023a0fb759e)) - update kms.version to v0.94.1 ([#​1195](https://togithub.com/googleapis/java-storage/issues/1195)) ([cc999b1](https://togithub.com/googleapis/java-storage/commit/cc999b1ebaba051524ce6131052c824232ccb79a)) ##### [2.2.3](https://www.github.com/googleapis/java-storage/compare/v2.2.2...v2.2.3) (2022-01-07) ##### Bug Fixes - do not cause a failure when encountering no bindings ([#​1177](https://www.togithub.com/googleapis/java-storage/issues/1177)) ([16c2aef](https://www.github.com/googleapis/java-storage/commit/16c2aef4f09eccee59d1028e3bbf01c65b5982d6)) - **java:** add -ntp flag to native image testing command ([#​1169](https://www.togithub.com/googleapis/java-storage/issues/1169)) ([b8a6395](https://www.github.com/googleapis/java-storage/commit/b8a6395fcaa34423d42a90bd42f71809f89a6c3b)) - update retry handling to retry idempotent requests that encounter unexpected EOF while parsing json responses ([#​1155](https://www.togithub.com/googleapis/java-storage/issues/1155)) ([8fbe6ef](https://www.github.com/googleapis/java-storage/commit/8fbe6efab969d699e9ba9e5448db7a6ee10c0572)) ##### Documentation - add new sample storage_configure_retries ([#​1152](https://www.togithub.com/googleapis/java-storage/issues/1152)) ([8634c4b](https://www.github.com/googleapis/java-storage/commit/8634c4b5cb88d2818378558427170ecf6c403df5)) - update comments ([#​1188](https://www.togithub.com/googleapis/java-storage/issues/1188)) ([d58e67c](https://www.github.com/googleapis/java-storage/commit/d58e67c217f38ca7b1926882ec48bd7b0c351ea7)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#​1191](https://www.togithub.com/googleapis/java-storage/issues/1191)) ([3b384cf](https://www.github.com/googleapis/java-storage/commit/3b384cf46876610ce33f2842ee8e9fc13e08443c)) - update dependency org.apache.httpcomponents:httpcore to v4.4.15 ([#​1171](https://www.togithub.com/googleapis/java-storage/issues/1171)) ([57f7a74](https://www.github.com/googleapis/java-storage/commit/57f7a743ee042c52261cd388fb0aec48c84e5d32)) ##### [2.2.2](https://www.github.com/googleapis/java-storage/compare/v2.2.1...v2.2.2) (2021-12-06) ##### Bug Fixes - update StorageOptions to not overwrite any previously set host ([#​1142](https://www.togithub.com/googleapis/java-storage/issues/1142)) ([05375c0](https://www.github.com/googleapis/java-storage/commit/05375c0b9b6f9fde2e6cefb1af6a695aa3b01732)) ##### Documentation - Add comments to GCS gRPC API proto spec to describe how naming work ([#​1139](https://www.togithub.com/googleapis/java-storage/issues/1139)) ([417c525](https://www.github.com/googleapis/java-storage/commit/417c5250eb7ad1a7b04a055a39d72e6536a63e18)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20211201-1.32.1 ([#​1165](https://www.togithub.com/googleapis/java-storage/issues/1165)) ([9031836](https://www.github.com/googleapis/java-storage/commit/90318368e69d7677c49e985eb58ff1b61d878ec9)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#​1163](https://www.togithub.com/googleapis/java-storage/issues/1163)) ([feca2c6](https://www.github.com/googleapis/java-storage/commit/feca2c6342786ef3fb699c459067c015bd374a13)) - update kms.version to v0.94.0 ([#​1164](https://www.togithub.com/googleapis/java-storage/issues/1164)) ([8653783](https://www.github.com/googleapis/java-storage/commit/86537836a3b96f369e1cad59c692d350047414f7)) ##### [2.2.1](https://www.github.com/googleapis/java-storage/compare/v2.2.0...v2.2.1) (2021-11-15) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#​1146](https://www.togithub.com/googleapis/java-storage/issues/1146)) ([a5d13a9](https://www.github.com/googleapis/java-storage/commit/a5d13a97bae50b4ee8a2fcef180ddc26b77e3d16))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9f8ddd7d..6c2e309e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.2.3 + 2.3.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bfb06097..5af66c31 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.2.3 + 2.3.0 junit From d64ed77cd6b988a2aaac785197429e4076fdfcb6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Jan 2022 21:46:19 +0100 Subject: [PATCH 370/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.6 (#776) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.5` -> `1.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/compatibility-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/confidence-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.6`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​126-httpsgithubcomgoogleapisjava-shared-configcomparev125v126-2022-01-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index a1807204..3f710c59 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index d49ac9bf..6ac89e85 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 From 6040385f4cec61ab7a5d443b864344308bec66ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Feb 2022 04:44:30 +0100 Subject: [PATCH 371/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 (#779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.6.0` -> `2.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.7.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-shared-dependenciescomparev260v270-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.6.0...v2.7.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#​555](https://togithub.com/googleapis/java-shared-dependencies/issues/555)) ([67b5663](https://togithub.com/googleapis/java-shared-dependencies/commit/67b56635509215fd132b2ffbcaed995a6de93879)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​580](https://togithub.com/googleapis/java-shared-dependencies/issues/580)) ([895dba2](https://togithub.com/googleapis/java-shared-dependencies/commit/895dba2afef6c295b0e21a4ccd27feee1b6af8e2)) - update dependency com.google.api:api-common to v2.1.3 ([#​587](https://togithub.com/googleapis/java-shared-dependencies/issues/587)) ([5dbbce8](https://togithub.com/googleapis/java-shared-dependencies/commit/5dbbce80baa045818757912e6db4f222c12b75f6)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​578](https://togithub.com/googleapis/java-shared-dependencies/issues/578)) ([c274c62](https://togithub.com/googleapis/java-shared-dependencies/commit/c274c62905192bcc48c82104bf50cbeaa1894c2b)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​582](https://togithub.com/googleapis/java-shared-dependencies/issues/582)) ([314da38](https://togithub.com/googleapis/java-shared-dependencies/commit/314da38c9f12cf425b5d1be8297e9f2a78d13948)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​579](https://togithub.com/googleapis/java-shared-dependencies/issues/579)) ([c8df06d](https://togithub.com/googleapis/java-shared-dependencies/commit/c8df06ddb3f4a975e928bbdd9dfae293e81efa39)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#​576](https://togithub.com/googleapis/java-shared-dependencies/issues/576)) ([3315988](https://togithub.com/googleapis/java-shared-dependencies/commit/3315988059ca0223f078b0f760960674bfa8c04a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​571](https://togithub.com/googleapis/java-shared-dependencies/issues/571)) ([c1931e1](https://togithub.com/googleapis/java-shared-dependencies/commit/c1931e1c4611ca3d1e2afac1c9e983cf1ec4a7de)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​586](https://togithub.com/googleapis/java-shared-dependencies/issues/586)) ([52c47b7](https://togithub.com/googleapis/java-shared-dependencies/commit/52c47b7425af438ba1a82dac87f9002353a6a87a)) - update dependency org.checkerframework:checker-qual to v3.21.1 ([#​554](https://togithub.com/googleapis/java-shared-dependencies/issues/554)) ([81bbb91](https://togithub.com/googleapis/java-shared-dependencies/commit/81bbb91774ab67161371bfd0dfd143de89dee4c9)) - update gax.version to v2.11.0 ([#​581](https://togithub.com/googleapis/java-shared-dependencies/issues/581)) ([1899612](https://togithub.com/googleapis/java-shared-dependencies/commit/189961226f84cdd4e283780d2c7d4a4dffc3e00c)) - update gax.version to v2.9.0 ([#​573](https://togithub.com/googleapis/java-shared-dependencies/issues/573)) ([ee5e38e](https://togithub.com/googleapis/java-shared-dependencies/commit/ee5e38efea574eeb2b5803192da98ba1ce1c8e6e)) - update google.common-protos.version to v2.7.2 ([#​588](https://togithub.com/googleapis/java-shared-dependencies/issues/588)) ([caac0e6](https://togithub.com/googleapis/java-shared-dependencies/commit/caac0e68e336b801becb6322b5b81fce1824ad8a)) - update google.core.version to v2.4.0 ([#​589](https://togithub.com/googleapis/java-shared-dependencies/issues/589)) ([6a292e3](https://togithub.com/googleapis/java-shared-dependencies/commit/6a292e3530a06d6b228f3154ed4e979ef68d7aeb)) - update iam.version to v1.2.1 ([#​569](https://togithub.com/googleapis/java-shared-dependencies/issues/569)) ([62dd270](https://togithub.com/googleapis/java-shared-dependencies/commit/62dd2705b257c4bb539bfe619234f38d0e13b138)) - update opencensus.version to v0.30.0 ([#​552](https://togithub.com/googleapis/java-shared-dependencies/issues/552)) ([ebae62e](https://togithub.com/googleapis/java-shared-dependencies/commit/ebae62eca75234db4fd571f42b8ed0f6ce1bd1f7)) - update opencensus.version to v0.31.0 ([#​585](https://togithub.com/googleapis/java-shared-dependencies/issues/585)) ([021b066](https://togithub.com/googleapis/java-shared-dependencies/commit/021b066a833af1629c89fcca593d16b9786ee0bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6ac89e85..afd36619 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.6.0 + 2.7.0 pom import From 2477ea5fb5c8e35847d76b27f8359ca8c92ae47a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 2 Feb 2022 04:54:44 +0000 Subject: [PATCH 372/519] deps(java): update actions/github-script action to v5 (#1339) (#777) --- .github/.OwlBot.lock.yaml | 15 ++++++++++++++- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dcdda8c6..be3b9bde 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 + digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 7513acae..c5132427 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 9b4fd4d8..59c7cadd 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From 2ae448b6db8a90b2190267afcadc34a7da1758b6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:52:36 +0000 Subject: [PATCH 373/519] chore: add kokoro config to run nightly integration test on java11.0.14 (#1347) (#780) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/java11-integration.cfg | 37 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .kokoro/nightly/java11-integration.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index be3b9bde..8807efca 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 00000000..58049cc3 --- /dev/null +++ b/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# 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: "ENABLE_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 932d979c84319b3efec9951fd068fea0b7cbb6b4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:12:32 +0000 Subject: [PATCH 374/519] chore(main): release 2.3.2 (#774) :robot: I have created a release *beep* *boop* --- ### [2.3.2](https://github.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2) (2022-02-03) ### Dependencies * **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-dataproc/issues/1339)) ([#777](https://github.com/googleapis/java-dataproc/issues/777)) ([2477ea5](https://github.com/googleapis/java-dataproc/commit/2477ea5fb5c8e35847d76b27f8359ca8c92ae47a)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#779](https://github.com/googleapis/java-dataproc/issues/779)) ([6040385](https://github.com/googleapis/java-dataproc/commit/6040385f4cec61ab7a5d443b864344308bec66ae)) * update dependency com.google.cloud:google-cloud-storage to v2.2.3 ([#765](https://github.com/googleapis/java-dataproc/issues/765)) ([d4f4a2e](https://github.com/googleapis/java-dataproc/commit/d4f4a2ebb1a1f7d9fb71642f69d135f81798583e)) * update dependency com.google.cloud:google-cloud-storage to v2.3.0 ([#775](https://github.com/googleapis/java-dataproc/issues/775)) ([b538d4d](https://github.com/googleapis/java-dataproc/commit/b538d4dc66131239ac988950d9e2b8b7006a1b9f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 10 ++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ad6388e..83911042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [2.3.2](https://github.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2) (2022-02-03) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-dataproc/issues/1339)) ([#777](https://github.com/googleapis/java-dataproc/issues/777)) ([2477ea5](https://github.com/googleapis/java-dataproc/commit/2477ea5fb5c8e35847d76b27f8359ca8c92ae47a)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#779](https://github.com/googleapis/java-dataproc/issues/779)) ([6040385](https://github.com/googleapis/java-dataproc/commit/6040385f4cec61ab7a5d443b864344308bec66ae)) +* update dependency com.google.cloud:google-cloud-storage to v2.2.3 ([#765](https://github.com/googleapis/java-dataproc/issues/765)) ([d4f4a2e](https://github.com/googleapis/java-dataproc/commit/d4f4a2ebb1a1f7d9fb71642f69d135f81798583e)) +* update dependency com.google.cloud:google-cloud-storage to v2.3.0 ([#775](https://github.com/googleapis/java-dataproc/issues/775)) ([b538d4d](https://github.com/googleapis/java-dataproc/commit/b538d4dc66131239ac988950d9e2b8b7006a1b9f)) + ### [2.3.1](https://www.github.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1) (2022-01-07) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3f710c59..7a0b5e2d 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.2-SNAPSHOT + 2.3.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index e506c313..43078fd6 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.2-SNAPSHOT + 2.3.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.2-SNAPSHOT + 2.3.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index cc9e7eec..495614e6 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/pom.xml b/pom.xml index afd36619..8b76e7a6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.2-SNAPSHOT + 2.3.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 com.google.cloud google-cloud-dataproc - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 33db4069..cbd669df 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2-SNAPSHOT + 2.3.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5af66c31..9bd9c9ac 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/versions.txt b/versions.txt index 859e0a13..b7ee47a6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.1:2.3.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.3.1:2.3.2-SNAPSHOT -proto-google-cloud-dataproc-v1:2.3.1:2.3.2-SNAPSHOT +google-cloud-dataproc:2.3.2:2.3.2 +grpc-google-cloud-dataproc-v1:2.3.2:2.3.2 +proto-google-cloud-dataproc-v1:2.3.2:2.3.2 From 3b09af92139ee8c9d093a2bed0412ae9f78e9233 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Feb 2022 01:38:53 +0000 Subject: [PATCH 375/519] chore(main): release 2.3.3-SNAPSHOT (#781) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 7a0b5e2d..d1a16362 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.2 + 2.3.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 43078fd6..0b0c3019 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.2 + 2.3.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.2 + 2.3.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 495614e6..e976075f 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8b76e7a6..c3657a88 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.2 + 2.3.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index cbd669df..847a022a 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.2 + 2.3.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9bd9c9ac..95858de9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index b7ee47a6..d3ced50e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.2:2.3.2 -grpc-google-cloud-dataproc-v1:2.3.2:2.3.2 -proto-google-cloud-dataproc-v1:2.3.2:2.3.2 +google-cloud-dataproc:2.3.2:2.3.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:2.3.2:2.3.3-SNAPSHOT +proto-google-cloud-dataproc-v1:2.3.2:2.3.3-SNAPSHOT From 73ffeceacf62ae323a63f2688aceff709a20ed4b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:19:10 +0000 Subject: [PATCH 376/519] chore: enable auto release in java (#1349) (#785) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 15 +++++++++++++++ .github/workflows/auto-release.yaml | 19 +++++++++++++++++-- .github/workflows/ci.yaml | 15 +++++++++++++++ .github/workflows/samples.yaml | 15 +++++++++++++++ .kokoro/build.bat | 15 +++++++++++++++ README.md | 4 ++-- 7 files changed, 80 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 8807efca..a8ddd81a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index c5132427..1bb18232 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 59c7cadd..2ba3082b 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,8 +31,8 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 05de1f60..6b5e56aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index c46230a7..d5d964df 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: samples diff --git a/.kokoro/build.bat b/.kokoro/build.bat index 05826ad9..cc602c9e 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/README.md b/README.md index fa9eb483..0a3b5114 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.3.1' +implementation 'com.google.cloud:google-cloud-dataproc:2.3.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.2" ``` ## Authentication From 2c0efeee69855a92d227c2a4af71f3dedde08145 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 00:46:57 +0000 Subject: [PATCH 377/519] chore: update auto-release script to fix breaking changes in v5 (#1350) (#786) Source-Link: https://github.com/googleapis/synthtool/commit/53a58c23eb4decb3a17fab07388d42799e158b5f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/auto-release.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a8ddd81a..9786771c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 + digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2ba3082b..18e23230 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -37,7 +37,7 @@ jobs: } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -69,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -86,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -95,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, From b98c95f31c7544d033aef12a877ffbfc2945e3d0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 18:58:53 +0100 Subject: [PATCH 378/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.7 (#787) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.6` -> `1.2.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/compatibility-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/confidence-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.7`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​127-httpsgithubcomgoogleapisjava-shared-configcomparev126v127-2022-02-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index d1a16362..3dac3379 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index c3657a88..a715ecd6 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 From 2c94cfbc7762db95c9dce9a3a71a6032bea3539b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 22:44:53 +0100 Subject: [PATCH 379/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#788) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a3b5114..d476fb80 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.2.0') +implementation platform('com.google.cloud:libraries-bom:24.3.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4204d8f1..eda69488 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From de5ac7b2693d3434c6369d2888e790383347bd39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 22:28:48 +0100 Subject: [PATCH 380/519] deps: update actions/github-script action to v6 (#790) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v5` -> `v6` | --- ### Release Notes
actions/github-script ### [`v6`](https://togithub.com/actions/github-script/compare/v5...v6) [Compare Source](https://togithub.com/actions/github-script/compare/v5...v6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). From 817142300717504a2ead788a265fbc0476066895 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 22:48:59 +0100 Subject: [PATCH 381/519] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 (#789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.1` -> `3.3.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/compatibility-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/confidence-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a715ecd6..529868f7 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.3.2 html From 02812bf247f37b2b6589ec0503c1de0c7e29d340 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 22:46:51 +0100 Subject: [PATCH 382/519] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.9 (#792) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.8` -> `1.6.9` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/compatibility-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/confidence-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index cd68e785..e05c3fb9 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.9 true From dbb62f64e86a5834e76f23e07cac24d3a4ddcedc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 17:50:35 +0100 Subject: [PATCH 383/519] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.10 (#793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.9` -> `1.6.10` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/compatibility-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/confidence-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.10`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index e05c3fb9..972b1a8c 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.9 + 1.6.10 true From 35fdd6319ebad5c8ac64775e09712ea608fa4a3e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 16:59:01 +0100 Subject: [PATCH 384/519] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.11 (#794) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.10` -> `1.6.11` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/compatibility-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/confidence-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.11`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 972b1a8c..f5ac6870 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.10 + 1.6.11 true From 71aa40686cf1d7d9a9b3a15b2037392d3c1e6fd3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 17 Feb 2022 17:24:59 +0000 Subject: [PATCH 385/519] feat!: add support for Virtual Dataproc cluster running on GKE cluster (#795) - [ ] Regenerate this pull request now. Committer: @padmaar PiperOrigin-RevId: 429111624 Source-Link: https://github.com/googleapis/googleapis/commit/da999a2396389f8b6917bab5d9c5085ed76a8c94 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99c5b3e98baa1de93776aa4b5cd4c7361353e4f6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTljNWIzZTk4YmFhMWRlOTM3NzZhYTRiNWNkNGM3MzYxMzUzZTRmNiJ9 --- .../v1/ClusterControllerClientTest.java | 5 + .../clirr-ignored-differences.xml | 49 + .../dataproc/v1/AuxiliaryServicesConfig.java | 1069 ++++ .../v1/AuxiliaryServicesConfigOrBuilder.java | 108 + .../com/google/cloud/dataproc/v1/Cluster.java | 381 ++ .../cloud/dataproc/v1/ClusterConfig.java | 338 -- .../dataproc/v1/ClusterConfigOrBuilder.java | 50 - .../cloud/dataproc/v1/ClusterOrBuilder.java | 59 + .../cloud/dataproc/v1/ClusterStatus.java | 6 + .../cloud/dataproc/v1/ClustersProto.java | 632 +-- .../google/cloud/dataproc/v1/DiskConfig.java | 28 +- .../dataproc/v1/DiskConfigOrBuilder.java | 8 +- .../cloud/dataproc/v1/GkeClusterConfig.java | 1741 +++--- .../v1/GkeClusterConfigOrBuilder.java | 96 +- .../cloud/dataproc/v1/GkeNodePoolConfig.java | 4761 +++++++++++++++++ .../v1/GkeNodePoolConfigOrBuilder.java | 182 + .../cloud/dataproc/v1/GkeNodePoolTarget.java | 1669 ++++++ .../v1/GkeNodePoolTargetOrBuilder.java | 189 + .../dataproc/v1/KubernetesClusterConfig.java | 1371 +++++ .../v1/KubernetesClusterConfigOrBuilder.java | 141 + .../dataproc/v1/KubernetesSoftwareConfig.java | 1195 +++++ .../v1/KubernetesSoftwareConfigOrBuilder.java | 179 + .../google/cloud/dataproc/v1/SharedProto.java | 192 +- .../dataproc/v1/VirtualClusterConfig.java | 1698 ++++++ .../v1/VirtualClusterConfigOrBuilder.java | 206 + .../google/cloud/dataproc/v1/clusters.proto | 88 +- .../google/cloud/dataproc/v1/shared.proto | 175 +- 27 files changed, 14776 insertions(+), 1840 deletions(-) create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java index 1e7bff14..b84fc4e3 100644 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java @@ -93,6 +93,7 @@ public void createClusterTest() throws Exception { .setProjectId("projectId-894832108") .setClusterName("clusterName-1141738587") .setConfig(ClusterConfig.newBuilder().build()) + .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) .putAllLabels(new HashMap()) .setStatus(ClusterStatus.newBuilder().build()) .addAllStatusHistory(new ArrayList()) @@ -152,6 +153,7 @@ public void updateClusterTest() throws Exception { .setProjectId("projectId-894832108") .setClusterName("clusterName-1141738587") .setConfig(ClusterConfig.newBuilder().build()) + .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) .putAllLabels(new HashMap()) .setStatus(ClusterStatus.newBuilder().build()) .addAllStatusHistory(new ArrayList()) @@ -218,6 +220,7 @@ public void stopClusterTest() throws Exception { .setProjectId("projectId-894832108") .setClusterName("clusterName-1141738587") .setConfig(ClusterConfig.newBuilder().build()) + .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) .putAllLabels(new HashMap()) .setStatus(ClusterStatus.newBuilder().build()) .addAllStatusHistory(new ArrayList()) @@ -289,6 +292,7 @@ public void startClusterTest() throws Exception { .setProjectId("projectId-894832108") .setClusterName("clusterName-1141738587") .setConfig(ClusterConfig.newBuilder().build()) + .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) .putAllLabels(new HashMap()) .setStatus(ClusterStatus.newBuilder().build()) .addAllStatusHistory(new ArrayList()) @@ -408,6 +412,7 @@ public void getClusterTest() throws Exception { .setProjectId("projectId-894832108") .setClusterName("clusterName-1141738587") .setConfig(ClusterConfig.newBuilder().build()) + .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) .putAllLabels(new HashMap()) .setStatus(ClusterStatus.newBuilder().build()) .addAllStatusHistory(new ArrayList()) diff --git a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml index fa53d8b6..7e2d1323 100644 --- a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml @@ -16,4 +16,53 @@ com/google/cloud/dataproc/v1/*OrBuilder boolean has*(*) + + 7002 + com/google/cloud/dataproc/v1/ClusterConfig + * *GkeClusterConfig*(*) + + + 7002 + com/google/cloud/dataproc/v1/ClusterConfig$Builder + * GkeClusterConfig*(*) + + + 7002 + com/google/cloud/dataproc/v1/ClusterConfig$Builder + * *GkeCluster*(*) + + + 7002 + com/google/cloud/dataproc/v1/ClusterConfigOrBuilder + * *GkeCluster*(*) + + + 7002 + com/google/cloud/dataproc/v1/GkeClusterConfig + * *GkeDeploymentTarget*(*) + + + 7002 + com/google/cloud/dataproc/v1/GkeClusterConfig$Builder + * *NamespacedGkeDeploymentTarget*(*) + + + 8001 + com/google/cloud/dataproc/v1/GkeClusterConfig$NamespacedGkeDeploymentTarget* + + + 7002 + com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder + * *NamespacedGkeDeploymentTarget*(*) + + + 6011 + com/google/cloud/dataproc/v1/ClusterConfig + GKE_CLUSTER_CONFIG_FIELD_NUMBER + + + 6011 + com/google/cloud/dataproc/v1/GkeClusterConfig + NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER + diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java new file mode 100644 index 00000000..89635a5b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java @@ -0,0 +1,1069 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Auxiliary services configuration for a Cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} + */ +public final class AuxiliaryServicesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + AuxiliaryServicesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuxiliaryServicesConfig.newBuilder() to construct. + private AuxiliaryServicesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuxiliaryServicesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuxiliaryServicesConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AuxiliaryServicesConfig( + 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.dataproc.v1.MetastoreConfig.Builder subBuilder = null; + if (metastoreConfig_ != null) { + subBuilder = metastoreConfig_.toBuilder(); + } + metastoreConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.MetastoreConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metastoreConfig_); + metastoreConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder subBuilder = null; + if (sparkHistoryServerConfig_ != null) { + subBuilder = sparkHistoryServerConfig_.toBuilder(); + } + sparkHistoryServerConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sparkHistoryServerConfig_); + sparkHistoryServerConfig_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + } + + public static final int METASTORE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + @java.lang.Override + public boolean hasMetastoreConfig() { + return metastoreConfig_ != null; + } + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { + return getMetastoreConfig(); + } + + public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + @java.lang.Override + public boolean hasSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ != null; + } + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { + return getSparkHistoryServerConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (metastoreConfig_ != null) { + output.writeMessage(1, getMetastoreConfig()); + } + if (sparkHistoryServerConfig_ != null) { + output.writeMessage(2, getSparkHistoryServerConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metastoreConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetastoreConfig()); + } + if (sparkHistoryServerConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSparkHistoryServerConfig()); + } + 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.dataproc.v1.AuxiliaryServicesConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = + (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; + + if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; + if (hasMetastoreConfig()) { + if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; + } + if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; + if (hasSparkHistoryServerConfig()) { + if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) 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 (hasMetastoreConfig()) { + hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMetastoreConfig().hashCode(); + } + if (hasSparkHistoryServerConfig()) { + hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Auxiliary services configuration for a Cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.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 (metastoreConfigBuilder_ == null) { + metastoreConfig_ = null; + } else { + metastoreConfig_ = null; + metastoreConfigBuilder_ = null; + } + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = null; + } else { + sparkHistoryServerConfig_ = null; + sparkHistoryServerConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig build() { + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = + new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); + if (metastoreConfigBuilder_ == null) { + result.metastoreConfig_ = metastoreConfig_; + } else { + result.metastoreConfig_ = metastoreConfigBuilder_.build(); + } + if (sparkHistoryServerConfigBuilder_ == null) { + result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; + } else { + result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_.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.dataproc.v1.AuxiliaryServicesConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other) { + if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) + return this; + if (other.hasMetastoreConfig()) { + mergeMetastoreConfig(other.getMetastoreConfig()); + } + if (other.hasSparkHistoryServerConfig()) { + mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); + } + 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.dataproc.v1.AuxiliaryServicesConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + metastoreConfigBuilder_; + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + public boolean hasMetastoreConfig() { + return metastoreConfigBuilder_ != null || metastoreConfig_ != null; + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { + if (metastoreConfigBuilder_ == null) { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } else { + return metastoreConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { + if (metastoreConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metastoreConfig_ = value; + onChanged(); + } else { + metastoreConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetastoreConfig( + com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { + if (metastoreConfigBuilder_ == null) { + metastoreConfig_ = builderForValue.build(); + onChanged(); + } else { + metastoreConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { + if (metastoreConfigBuilder_ == null) { + if (metastoreConfig_ != null) { + metastoreConfig_ = + com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + metastoreConfig_ = value; + } + onChanged(); + } else { + metastoreConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetastoreConfig() { + if (metastoreConfigBuilder_ == null) { + metastoreConfig_ = null; + onChanged(); + } else { + metastoreConfig_ = null; + metastoreConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { + + onChanged(); + return getMetastoreConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { + if (metastoreConfigBuilder_ != null) { + return metastoreConfigBuilder_.getMessageOrBuilder(); + } else { + return metastoreConfig_ == null + ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() + : metastoreConfig_; + } + } + /** + * + * + *
+     * Optional. The Hive Metastore configuration for this workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> + getMetastoreConfigFieldBuilder() { + if (metastoreConfigBuilder_ == null) { + metastoreConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.MetastoreConfig, + com.google.cloud.dataproc.v1.MetastoreConfig.Builder, + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( + getMetastoreConfig(), getParentForChildren(), isClean()); + metastoreConfig_ = null; + } + return metastoreConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + sparkHistoryServerConfigBuilder_; + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + public boolean hasSparkHistoryServerConfig() { + return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + if (sparkHistoryServerConfigBuilder_ == null) { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } else { + return sparkHistoryServerConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sparkHistoryServerConfig_ = value; + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = builderForValue.build(); + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSparkHistoryServerConfig( + com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (sparkHistoryServerConfig_ != null) { + sparkHistoryServerConfig_ = + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( + sparkHistoryServerConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sparkHistoryServerConfig_ = value; + } + onChanged(); + } else { + sparkHistoryServerConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSparkHistoryServerConfig() { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = null; + onChanged(); + } else { + sparkHistoryServerConfig_ = null; + sparkHistoryServerConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder + getSparkHistoryServerConfigBuilder() { + + onChanged(); + return getSparkHistoryServerConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { + if (sparkHistoryServerConfigBuilder_ != null) { + return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); + } else { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; + } + } + /** + * + * + *
+     * Optional. The Spark History Server configuration for the workload.
+     * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> + getSparkHistoryServerConfigFieldBuilder() { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.SparkHistoryServerConfig, + com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), getParentForChildren(), isClean()); + sparkHistoryServerConfig_ = null; + } + return sparkHistoryServerConfigBuilder_; + } + + @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.dataproc.v1.AuxiliaryServicesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + private static final com.google.cloud.dataproc.v1.AuxiliaryServicesConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(); + } + + public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuxiliaryServicesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuxiliaryServicesConfig(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.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java new file mode 100644 index 00000000..27a97b70 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface AuxiliaryServicesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryServicesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metastoreConfig field is set. + */ + boolean hasMetastoreConfig(); + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metastoreConfig. + */ + com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); + /** + * + * + *
+   * Optional. The Hive Metastore configuration for this workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sparkHistoryServerConfig field is set. + */ + boolean hasSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sparkHistoryServerConfig. + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); + /** + * + * + *
+   * Optional. The Spark History Server configuration for the workload.
+   * 
+ * + * + * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 1a7adcd2..42993786 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java @@ -167,6 +167,23 @@ private Cluster( metrics_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder subBuilder = null; + if (virtualClusterConfig_ != null) { + subBuilder = virtualClusterConfig_.toBuilder(); + } + virtualClusterConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.VirtualClusterConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(virtualClusterConfig_); + virtualClusterConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -377,6 +394,79 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() return getConfig(); } + public static final int VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualClusterConfig field is set. + */ + @java.lang.Override + public boolean hasVirtualClusterConfig() { + return virtualClusterConfig_ != null; + } + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; + } + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder + getVirtualClusterConfigOrBuilder() { + return getVirtualClusterConfig(); + } + public static final int LABELS_FIELD_NUMBER = 8; private static final class LabelsDefaultEntryHolder { @@ -780,6 +870,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metrics_ != null) { output.writeMessage(9, getMetrics()); } + if (virtualClusterConfig_ != null) { + output.writeMessage(10, getVirtualClusterConfig()); + } unknownFields.writeTo(output); } @@ -820,6 +913,10 @@ public int getSerializedSize() { if (metrics_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetrics()); } + if (virtualClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVirtualClusterConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -841,6 +938,10 @@ public boolean equals(final java.lang.Object obj) { if (hasConfig()) { if (!getConfig().equals(other.getConfig())) return false; } + if (hasVirtualClusterConfig() != other.hasVirtualClusterConfig()) return false; + if (hasVirtualClusterConfig()) { + if (!getVirtualClusterConfig().equals(other.getVirtualClusterConfig())) return false; + } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { @@ -871,6 +972,10 @@ public int hashCode() { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } + if (hasVirtualClusterConfig()) { + hash = (37 * hash) + VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVirtualClusterConfig().hashCode(); + } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -1066,6 +1171,12 @@ public Builder clear() { config_ = null; configBuilder_ = null; } + if (virtualClusterConfigBuilder_ == null) { + virtualClusterConfig_ = null; + } else { + virtualClusterConfig_ = null; + virtualClusterConfigBuilder_ = null; + } internalGetMutableLabels().clear(); if (statusBuilder_ == null) { status_ = null; @@ -1121,6 +1232,11 @@ public com.google.cloud.dataproc.v1.Cluster buildPartial() { } else { result.config_ = configBuilder_.build(); } + if (virtualClusterConfigBuilder_ == null) { + result.virtualClusterConfig_ = virtualClusterConfig_; + } else { + result.virtualClusterConfig_ = virtualClusterConfigBuilder_.build(); + } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (statusBuilder_ == null) { @@ -1203,6 +1319,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) { if (other.hasConfig()) { mergeConfig(other.getConfig()); } + if (other.hasVirtualClusterConfig()) { + mergeVirtualClusterConfig(other.getVirtualClusterConfig()); + } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasStatus()) { mergeStatus(other.getStatus()); @@ -1710,6 +1829,268 @@ public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() return configBuilder_; } + private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> + virtualClusterConfigBuilder_; + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualClusterConfig field is set. + */ + public boolean hasVirtualClusterConfig() { + return virtualClusterConfigBuilder_ != null || virtualClusterConfig_ != null; + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualClusterConfig. + */ + public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { + if (virtualClusterConfigBuilder_ == null) { + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; + } else { + return virtualClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVirtualClusterConfig( + com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + if (virtualClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + virtualClusterConfig_ = value; + onChanged(); + } else { + virtualClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVirtualClusterConfig( + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder builderForValue) { + if (virtualClusterConfigBuilder_ == null) { + virtualClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + virtualClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVirtualClusterConfig( + com.google.cloud.dataproc.v1.VirtualClusterConfig value) { + if (virtualClusterConfigBuilder_ == null) { + if (virtualClusterConfig_ != null) { + virtualClusterConfig_ = + com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + virtualClusterConfig_ = value; + } + onChanged(); + } else { + virtualClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVirtualClusterConfig() { + if (virtualClusterConfigBuilder_ == null) { + virtualClusterConfig_ = null; + onChanged(); + } else { + virtualClusterConfig_ = null; + virtualClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder + getVirtualClusterConfigBuilder() { + + onChanged(); + return getVirtualClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder + getVirtualClusterConfigOrBuilder() { + if (virtualClusterConfigBuilder_ != null) { + return virtualClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return virtualClusterConfig_ == null + ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() + : virtualClusterConfig_; + } + } + /** + * + * + *
+     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+     * does not directly control the underlying compute resources, for example,
+     * when creating a [Dataproc-on-GKE
+     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+     * Note that Dataproc may set default values, and values may change when
+     * clusters are updated. Exactly one of config or virtualClusterConfig must be
+     * specified.
+     * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> + getVirtualClusterConfigFieldBuilder() { + if (virtualClusterConfigBuilder_ == null) { + virtualClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.VirtualClusterConfig, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( + getVirtualClusterConfig(), getParentForChildren(), isClean()); + virtualClusterConfig_ = null; + } + return virtualClusterConfigBuilder_; + } + private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index 3a1a0f35..1d78a9f8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -275,22 +275,6 @@ private ClusterConfig( metastoreConfig_ = subBuilder.buildPartial(); } - break; - } - case 170: - { - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder subBuilder = null; - if (gkeClusterConfig_ != null) { - subBuilder = gkeClusterConfig_.toBuilder(); - } - gkeClusterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.GkeClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gkeClusterConfig_); - gkeClusterConfig_ = subBuilder.buildPartial(); - } - break; } default: @@ -1219,69 +1203,6 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO return getMetastoreConfig(); } - public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 21; - private com.google.cloud.dataproc.v1.GkeClusterConfig gkeClusterConfig_; - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGkeClusterConfig() { - return gkeClusterConfig_ != null; - } - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { - return getGkeClusterConfig(); - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1338,9 +1259,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metastoreConfig_ != null) { output.writeMessage(20, getMetastoreConfig()); } - if (gkeClusterConfig_ != null) { - output.writeMessage(21, getGkeClusterConfig()); - } unknownFields.writeTo(output); } @@ -1395,9 +1313,6 @@ public int getSerializedSize() { if (metastoreConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); } - if (gkeClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getGkeClusterConfig()); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1461,10 +1376,6 @@ public boolean equals(final java.lang.Object obj) { if (hasMetastoreConfig()) { if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; } - if (hasGkeClusterConfig() != other.hasGkeClusterConfig()) return false; - if (hasGkeClusterConfig()) { - if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) return false; - } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1528,10 +1439,6 @@ public int hashCode() { hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMetastoreConfig().hashCode(); } - if (hasGkeClusterConfig()) { - hash = (37 * hash) + GKE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGkeClusterConfig().hashCode(); - } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1755,12 +1662,6 @@ public Builder clear() { metastoreConfig_ = null; metastoreConfigBuilder_ = null; } - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = null; - } else { - gkeClusterConfig_ = null; - gkeClusterConfigBuilder_ = null; - } return this; } @@ -1855,11 +1756,6 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { } else { result.metastoreConfig_ = metastoreConfigBuilder_.build(); } - if (gkeClusterConfigBuilder_ == null) { - result.gkeClusterConfig_ = gkeClusterConfig_; - } else { - result.gkeClusterConfig_ = gkeClusterConfigBuilder_.build(); - } onBuilt(); return result; } @@ -1977,9 +1873,6 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.hasMetastoreConfig()) { mergeMetastoreConfig(other.getMetastoreConfig()); } - if (other.hasGkeClusterConfig()) { - mergeGkeClusterConfig(other.getGkeClusterConfig()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5226,237 +5119,6 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO return metastoreConfigBuilder_; } - private com.google.cloud.dataproc.v1.GkeClusterConfig gkeClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> - gkeClusterConfigBuilder_; - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - public boolean hasGkeClusterConfig() { - return gkeClusterConfigBuilder_ != null || gkeClusterConfig_ != null; - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } else { - return gkeClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeClusterConfig_ = value; - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeClusterConfig( - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (gkeClusterConfig_ != null) { - gkeClusterConfig_ = - com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder(gkeClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - gkeClusterConfig_ = value; - } - onChanged(); - } else { - gkeClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfig_ = null; - onChanged(); - } else { - gkeClusterConfig_ = null; - gkeClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { - - onChanged(); - return getGkeClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { - if (gkeClusterConfigBuilder_ != null) { - return gkeClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return gkeClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance() - : gkeClusterConfig_; - } - } - /** - * - * - *
-     * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-     * Kubernetes. Setting this is considered mutually exclusive with Compute
-     * Engine-based options such as `gce_cluster_config`, `master_config`,
-     * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> - getGkeClusterConfigFieldBuilder() { - if (gkeClusterConfigBuilder_ == null) { - gkeClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( - getGkeClusterConfig(), getParentForChildren(), isClean()); - gkeClusterConfig_ = null; - } - return gkeClusterConfigBuilder_; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 9a4a0c35..848764d7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -701,54 +701,4 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization * */ com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); - - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - boolean hasGkeClusterConfig(); - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeClusterConfig. - */ - com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); - /** - * - * - *
-   * Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to
-   * Kubernetes. Setting this is considered mutually exclusive with Compute
-   * Engine-based options such as `gce_cluster_config`, `master_config`,
-   * `worker_config`, `secondary_worker_config`, and `autoscaling_config`.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java index adffcd38..88fb3d88 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java @@ -122,6 +122,65 @@ public interface ClusterOrBuilder */ com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the virtualClusterConfig field is set. + */ + boolean hasVirtualClusterConfig(); + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The virtualClusterConfig. + */ + com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig(); + /** + * + * + *
+   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
+   * does not directly control the underlying compute resources, for example,
+   * when creating a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * Note that Dataproc may set default values, and values may change when
+   * clusters are updated. Exactly one of config or virtualClusterConfig must be
+   * specified.
+   * 
+ * + * + * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder(); + /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index 19087502..5ba77c15 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java @@ -177,6 +177,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * The cluster is currently running and healthy. It is ready for use.
+     * **Note:** The cluster state changes from "creating" to "running" status
+     * after the master node(s), first two primary worker nodes (and the last
+     * primary worker node if primary workers > 2) are running.
      * 
* * RUNNING = 2; @@ -281,6 +284,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * The cluster is currently running and healthy. It is ready for use.
+     * **Note:** The cluster state changes from "creating" to "running" status
+     * after the master node(s), first two primary worker nodes (and the last
+     * primary worker node if primary workers > 2) are running.
      * 
* * RUNNING = 2; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 309910fd..17f1cf5a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -40,13 +40,13 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable; + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -212,276 +212,282 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "aproc/v1/shared.proto\032#google/longrunnin" + "g/operations.proto\032\036google/protobuf/dura" + "tion.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\315\003" + + "roto\032\037google/protobuf/timestamp.proto\"\242\004" + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." + "google.cloud.dataproc.v1.ClusterConfigB\003" - + "\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud.datap" - + "roc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006statu" - + "s\030\004 \001(\0132\'.google.cloud.dataproc.v1.Clust" - + "erStatusB\003\340A\003\022D\n\016status_history\030\007 \003(\0132\'." - + "google.cloud.dataproc.v1.ClusterStatusB\003" - + "\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007metric" - + "s\030\t \001(\0132(.google.cloud.dataproc.v1.Clust" - + "erMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\251\010\n\rClusterConfig\022" - + "\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_buck" - + "et\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config\030\010 \001(" - + "\0132*.google.cloud.dataproc.v1.GceClusterC" - + "onfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-.goog" + + "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" + + "ogle.cloud.dataproc.v1.VirtualClusterCon" + + "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." + + "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" + + "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." + + "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" + + "(\0132\'.google.cloud.dataproc.v1.ClusterSta" + + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" + + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." + + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\334\007\n\rClusterCo" + + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" + + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" + + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" + + "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" + "le.cloud.dataproc.v1.InstanceGroupConfig" - + "B\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.google.cl" - + "oud.dataproc.v1.InstanceGroupConfigB\003\340A\001" - + "\022S\n\027secondary_worker_config\030\014 \001(\0132-.goog" - + "le.cloud.dataproc.v1.InstanceGroupConfig" - + "B\003\340A\001\022F\n\017software_config\030\r \001(\0132(.google." - + "cloud.dataproc.v1.SoftwareConfigB\003\340A\001\022W\n" - + "\026initialization_actions\030\013 \003(\01322.google.c" - + "loud.dataproc.v1.NodeInitializationActio" - + "nB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*.goog" - + "le.cloud.dataproc.v1.EncryptionConfigB\003\340" - + "A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.google." - + "cloud.dataproc.v1.AutoscalingConfigB\003\340A\001" - + "\022F\n\017security_config\030\020 \001(\0132(.google.cloud" - + ".dataproc.v1.SecurityConfigB\003\340A\001\022H\n\020life" - + "cycle_config\030\021 \001(\0132).google.cloud.datapr" - + "oc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpoint_c" - + "onfig\030\023 \001(\0132(.google.cloud.dataproc.v1.E" - + "ndpointConfigB\003\340A\001\022H\n\020metastore_config\030\024" - + " \001(\0132).google.cloud.dataproc.v1.Metastor" - + "eConfigB\003\340A\001\022K\n\022gke_cluster_config\030\025 \001(\013" - + "2*.google.cloud.dataproc.v1.GkeClusterCo" - + "nfigB\003\340A\001\"\223\002\n\020GkeClusterConfig\022w\n namesp" - + "aced_gke_deployment_target\030\001 \001(\0132H.googl" - + "e.cloud.dataproc.v1.GkeClusterConfig.Nam" - + "espacedGkeDeploymentTargetB\003\340A\001\032\205\001\n\035Name" - + "spacedGkeDeploymentTarget\022D\n\022target_gke_" - + "cluster\030\001 \001(\tB(\340A\001\372A\"\n container.googlea" - + "pis.com/Cluster\022\036\n\021cluster_namespace\030\002 \001" - + "(\tB\003\340A\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports" - + "\030\001 \003(\01327.google.cloud.dataproc.v1.Endpoi" - + "ntConfig.HttpPortsEntryB\003\340A\003\022$\n\027enable_h" - + "ttp_port_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021" - + "AutoscalingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340" - + "A\001\"4\n\020EncryptionConfig\022 \n\023gce_pd_kms_key" - + "_name\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n" - + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(" - + "\tB\003\340A\001\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020i" - + "nternal_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ip" - + "v6_google_access\030\014 \001(\0162B.google.cloud.da" - + "taproc.v1.GceClusterConfig.PrivateIpv6Go" - + "ogleAccessB\003\340A\001\022\034\n\017service_account\030\010 \001(\t" - + "B\003\340A\001\022#\n\026service_account_scopes\030\003 \003(\tB\003\340" - + "A\001\022\014\n\004tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.goo" - + "gle.cloud.dataproc.v1.GceClusterConfig.M" - + "etadataEntry\022P\n\024reservation_affinity\030\013 \001" - + "(\0132-.google.cloud.dataproc.v1.Reservatio" - + "nAffinityB\003\340A\001\022M\n\023node_group_affinity\030\r " - + "\001(\0132+.google.cloud.dataproc.v1.NodeGroup" - + "AffinityB\003\340A\001\022W\n\030shielded_instance_confi" - + "g\030\016 \001(\01320.google.cloud.dataproc.v1.Shiel" - + "dedInstanceConfigB\003\340A\001\022_\n\034confidential_i" - + "nstance_config\030\017 \001(\01324.google.cloud.data" - + "proc.v1.ConfidentialInstanceConfigB\003\340A\001\032" - + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&" - + "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000" - + "\022\033\n\027INHERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUN" - + "D\020\002\022\021\n\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffin" - + "ity\022\033\n\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026Shie" - + "ldedInstanceConfig\022\037\n\022enable_secure_boot" - + "\030\001 \001(\010B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n" - + "\033enable_integrity_monitoring\030\003 \001(\010B\003\340A\001\"" - + "F\n\032ConfidentialInstanceConfig\022(\n\033enable_" - + "confidential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023Inst" - + "anceGroupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003" - + "\340A\001\022\033\n\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timag" - + "e_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001" - + "(\tB\003\340A\001\022>\n\013disk_config\030\005 \001(\0132$.google.cl" - + "oud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_pr" - + "eemptible\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n" - + " \001(\0162<.google.cloud.dataproc.v1.Instance" - + "GroupConfig.PreemptibilityB\003\340A\001\022O\n\024manag" - + "ed_group_config\030\007 \001(\0132,.google.cloud.dat" - + "aproc.v1.ManagedGroupConfigB\003\340A\003\022F\n\014acce" - + "lerators\030\010 \003(\0132+.google.cloud.dataproc.v" - + "1.AcceleratorConfigB\003\340A\001\022\035\n\020min_cpu_plat" - + "form\030\t \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PRE" - + "EMPTIBILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPT" - + "IBLE\020\001\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupC" - + "onfig\022#\n\026instance_template_name\030\001 \001(\tB\003\340" - + "A\003\022(\n\033instance_group_manager_name\030\002 \001(\tB" - + "\003\340A\003\"L\n\021AcceleratorConfig\022\034\n\024accelerator" - + "_type_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001" - + "(\005\"\210\001\n\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(" - + "\tB\003\340A\001\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033" - + "\n\016num_local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd" - + "_interface\030\004 \001(\tB\003\340A\001\"s\n\030NodeInitializat" - + "ionAction\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\022" - + "9\n\021execution_timeout\030\002 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005" - + "state\030\001 \001(\0162-.google.cloud.dataproc.v1.C" - + "lusterStatus.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB" - + "\006\340A\003\340A\001\0229\n\020state_start_time\030\003 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022G\n\010substate\030\004" - + " \001(\01620.google.cloud.dataproc.v1.ClusterS" - + "tatus.SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN" - + "\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003" - + "\022\027\n\023ERROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022" - + "\014\n\010UPDATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007" - + "\022\014\n\010STARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIE" - + "D\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n" - + "\016SecurityConfig\022F\n\017kerberos_config\030\001 \001(\013" - + "2(.google.cloud.dataproc.v1.KerberosConf" - + "igB\003\340A\001\022F\n\017identity_config\030\002 \001(\0132(.googl" - + "e.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"" - + "\220\004\n\016KerberosConfig\022\034\n\017enable_kerberos\030\001 " - + "\001(\010B\003\340A\001\022(\n\033root_principal_password_uri\030" - + "\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014" - + "keystore_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_ur" - + "i\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 " - + "\001(\tB\003\340A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022" - + "$\n\027truststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n" - + "\027cross_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025c" - + "ross_realm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross" - + "_realm_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%" - + "cross_realm_trust_shared_password_uri\030\014 " - + "\001(\tB\003\340A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n" - + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030" - + "\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_se" - + "rvice_account_mapping\030\001 \003(\0132G.google.clo" - + "ud.dataproc.v1.IdentityConfig.UserServic" - + "eAccountMappingEntryB\003\340A\002\032@\n\036UserService" - + "AccountMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_" - + "version\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328" - + ".google.cloud.dataproc.v1.SoftwareConfig" - + ".PropertiesEntryB\003\340A\001\022E\n\023optional_compon" - + "ents\030\003 \003(\0162#.google.cloud.dataproc.v1.Co" - + "mponentB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleCon" - + "fig\0227\n\017idle_delete_ttl\030\001 \001(\0132\031.google.pr" - + "otobuf.DurationB\003\340A\001\022;\n\020auto_delete_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H" - + "\000\0229\n\017auto_delete_ttl\030\003 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001H\000\0228\n\017idle_start_time\030" - + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\005" - + "\n\003ttl\"_\n\017MetastoreConfig\022L\n\032dataproc_met" - + "astore_service\030\001 \001(\tB(\340A\002\372A\"\n metastore." - + "googleapis.com/Service\"\232\002\n\016ClusterMetric" - + "s\022O\n\014hdfs_metrics\030\001 \003(\01329.google.cloud.d" - + "ataproc.v1.ClusterMetrics.HdfsMetricsEnt" - + "ry\022O\n\014yarn_metrics\030\002 \003(\01329.google.cloud." - + "dataproc.v1.ClusterMetrics.YarnMetricsEn" - + "try\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\356\001\n\024CreateCl" - + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\003 \001(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.go" - + "ogle.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\nr" - + "equest_id\030\004 \001(\tB\003\340A\001\022V\n action_on_failed" - + "_primary_workers\030\005 \001(\0162\'.google.cloud.da" - + "taproc.v1.FailureActionB\003\340A\001\"\256\002\n\024UpdateC" - + "lusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023" - + "\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(" - + "\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.cloud.d" - + "ataproc.v1.ClusterB\003\340A\002\022E\n\035graceful_deco" - + "mmission_timeout\030\006 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\022\027\n\nrequest_" - + "id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClusterRequest\022\027\n\n" - + "project_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340" - + "A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster" - + "_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A" - + "\001\"\222\001\n\023StartClusterRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clust" - + "er_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\t" - + "B\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024Delet" - + "eClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002" - + "\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 " - + "\001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nr" - + "equest_id\030\005 \001(\tB\003\340A\001\"\\\n\021GetClusterReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" - + "(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023L" - + "istClustersRequest\022\027\n\nproject_id\030\001 \001(\tB\003" - + "\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\t" - + "B\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"n\n\024ListClustersResponse\0228" - + "\n\010clusters\030\001 \003(\0132!.google.cloud.dataproc" - + ".v1.ClusterB\003\340A\003\022\034\n\017next_page_token\030\002 \001(" - + "\tB\003\340A\003\"a\n\026DiagnoseClusterRequest\022\027\n\nproj" - + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031" - + "\n\014cluster_name\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClu" - + "sterResults\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" - + "\023ReservationAffinity\022Y\n\030consume_reservat" - + "ion_type\030\001 \001(\01622.google.cloud.dataproc.v" - + "1.ReservationAffinity.TypeB\003\340A\001\022\020\n\003key\030\002" - + " \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024" - + "\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001" - + "\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESERV" - + "ATION\020\0032\344\020\n\021ClusterController\022\200\002\n\rCreate" - + "Cluster\022..google.cloud.dataproc.v1.Creat" - + "eClusterRequest\032\035.google.longrunning.Ope" - + "ration\"\237\001\202\323\344\223\002>\"3/v1/projects/{project_i" - + "d}/regions/{region}/clusters:\007cluster\332A\031" - + "project_id,region,cluster\312A<\n\007Cluster\0221g" - + "oogle.cloud.dataproc.v1.ClusterOperation" - + "Metadata\022\250\002\n\rUpdateCluster\022..google.clou" - + "d.dataproc.v1.UpdateClusterRequest\032\035.goo" - + "gle.longrunning.Operation\"\307\001\202\323\344\223\002M2B/v1/" - + "projects/{project_id}/regions/{region}/c" - + "lusters/{cluster_name}:\007cluster\332A2projec" - + "t_id,region,cluster_name,cluster,update_" - + "mask\312A<\n\007Cluster\0221google.cloud.dataproc." - + "v1.ClusterOperationMetadata\022\356\001\n\013StopClus" - + "ter\022,.google.cloud.dataproc.v1.StopClust" + + "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" + + "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" + + "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" + + "gle.cloud.dataproc.v1.NodeInitialization" + + "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" + + ".google.cloud.dataproc.v1.EncryptionConf" + + "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" + + "ogle.cloud.dataproc.v1.AutoscalingConfig" + + "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." + + "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" + + "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" + + "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" + + "int_config\030\023 \001(\0132(.google.cloud.dataproc" + + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" + + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" + + "astoreConfigB\003\340A\001\"\236\002\n\024VirtualClusterConf" + + "ig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_" + + "bucket\030\002 \001(\tB\003\340A\001\022[\n\031kubernetes_cluster_" + + "config\030\006 \001(\01321.google.cloud.dataproc.v1." + + "KubernetesClusterConfigB\003\340A\002H\000\022Y\n\031auxili" + + "ary_services_config\030\007 \001(\01321.google.cloud" + + ".dataproc.v1.AuxiliaryServicesConfigB\003\340A" + + "\001B\027\n\025infrastructure_config\"\301\001\n\027Auxiliary" + + "ServicesConfig\022H\n\020metastore_config\030\001 \001(\013" + + "2).google.cloud.dataproc.v1.MetastoreCon" + + "figB\003\340A\001\022\\\n\033spark_history_server_config\030" + + "\002 \001(\01322.google.cloud.dataproc.v1.SparkHi" + + "storyServerConfigB\003\340A\001\"\272\001\n\016EndpointConfi" + + "g\022P\n\nhttp_ports\030\001 \003(\01327.google.cloud.dat" + + "aproc.v1.EndpointConfig.HttpPortsEntryB\003" + + "\340A\003\022$\n\027enable_http_port_access\030\002 \001(\010B\003\340A" + + "\001\0320\n\016HttpPortsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\",\n\021AutoscalingConfig\022\027\n\npoli" + + "cy_uri\030\001 \001(\tB\003\340A\001\"4\n\020EncryptionConfig\022 \n" + + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceC" + + "lusterConfig\022\025\n\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013n" + + "etwork_uri\030\002 \001(\tB\003\340A\001\022\033\n\016subnetwork_uri\030" + + "\006 \001(\tB\003\340A\001\022\035\n\020internal_ip_only\030\007 \001(\010B\003\340A" + + "\001\022k\n\032private_ipv6_google_access\030\014 \001(\0162B." + + "google.cloud.dataproc.v1.GceClusterConfi" + + "g.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n\017servic" + + "e_account\030\010 \001(\tB\003\340A\001\022#\n\026service_account_" + + "scopes\030\003 \003(\tB\003\340A\001\022\014\n\004tags\030\004 \003(\t\022J\n\010metad" + + "ata\030\005 \003(\01328.google.cloud.dataproc.v1.Gce" + + "ClusterConfig.MetadataEntry\022P\n\024reservati" + + "on_affinity\030\013 \001(\0132-.google.cloud.datapro" + + "c.v1.ReservationAffinityB\003\340A\001\022M\n\023node_gr" + + "oup_affinity\030\r \001(\0132+.google.cloud.datapr" + + "oc.v1.NodeGroupAffinityB\003\340A\001\022W\n\030shielded" + + "_instance_config\030\016 \001(\01320.google.cloud.da" + + "taproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + + "\034confidential_instance_config\030\017 \001(\01324.go" + + "ogle.cloud.dataproc.v1.ConfidentialInsta" + + "nceConfigB\003\340A\001\032/\n\rMetadataEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001\n\027PrivateIpv6G" + + "oogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_ACCES" + + "S_UNSPECIFIED\020\000\022\033\n\027INHERIT_FROM_SUBNETWO" + + "RK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDIRECTIONAL\020\003\"0\n" + + "\021NodeGroupAffinity\022\033\n\016node_group_uri\030\001 \001" + + "(\tB\003\340A\002\"}\n\026ShieldedInstanceConfig\022\037\n\022ena" + + "ble_secure_boot\030\001 \001(\010B\003\340A\001\022\030\n\013enable_vtp" + + "m\030\002 \001(\010B\003\340A\001\022(\n\033enable_integrity_monitor" + + "ing\030\003 \001(\010B\003\340A\001\"F\n\032ConfidentialInstanceCo" + + "nfig\022(\n\033enable_confidential_compute\030\001 \001(" + + "\010B\003\340A\001\"\315\004\n\023InstanceGroupConfig\022\032\n\rnum_in" + + "stances\030\001 \001(\005B\003\340A\001\022\033\n\016instance_names\030\002 \003" + + "(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machi" + + "ne_type_uri\030\004 \001(\tB\003\340A\001\022>\n\013disk_config\030\005 " + + "\001(\0132$.google.cloud.dataproc.v1.DiskConfi" + + "gB\003\340A\001\022\033\n\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n\016p" + + "reemptibility\030\n \001(\0162<.google.cloud.datap" + + "roc.v1.InstanceGroupConfig.Preemptibilit" + + "yB\003\340A\001\022O\n\024managed_group_config\030\007 \001(\0132,.g" + + "oogle.cloud.dataproc.v1.ManagedGroupConf" + + "igB\003\340A\003\022F\n\014accelerators\030\010 \003(\0132+.google.c" + + "loud.dataproc.v1.AcceleratorConfigB\003\340A\001\022" + + "\035\n\020min_cpu_platform\030\t \001(\tB\003\340A\001\"V\n\016Preemp" + + "tibility\022\036\n\032PREEMPTIBILITY_UNSPECIFIED\020\000" + + "\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013PREEMPTIBLE\020\002\"c" + + "\n\022ManagedGroupConfig\022#\n\026instance_templat" + + "e_name\030\001 \001(\tB\003\340A\003\022(\n\033instance_group_mana" + + "ger_name\030\002 \001(\tB\003\340A\003\"L\n\021AcceleratorConfig" + + "\022\034\n\024accelerator_type_uri\030\001 \001(\t\022\031\n\021accele" + + "rator_count\030\002 \001(\005\"\210\001\n\nDiskConfig\022\033\n\016boot" + + "_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_disk_size_" + + "gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_local_ssds\030\002 \001(\005B\003\340" + + "A\001\022 \n\023local_ssd_interface\030\004 \001(\tB\003\340A\001\"s\n\030" + + "NodeInitializationAction\022\034\n\017executable_f" + + "ile\030\001 \001(\tB\003\340A\002\0229\n\021execution_timeout\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\"\307\003\n\rCl" + + "usterStatus\022A\n\005state\030\001 \001(\0162-.google.clou" + + "d.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026" + + "\n\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022G\n\010substate\030\004 \001(\01620.google.cloud.datap" + + "roc.v1.ClusterStatus.SubstateB\003\340A\003\"\230\001\n\005S" + + "tate\022\013\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\t\n\005ERROR\020\003\022\027\n\023ERROR_DUE_TO_UPDATE\020\t" + + "\022\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING" + + "\020\006\022\013\n\007STOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substat" + + "e\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STA" + + "LE_STATUS\020\002\"\240\001\n\016SecurityConfig\022F\n\017kerber" + + "os_config\030\001 \001(\0132(.google.cloud.dataproc." + + "v1.KerberosConfigB\003\340A\001\022F\n\017identity_confi" + + "g\030\002 \001(\0132(.google.cloud.dataproc.v1.Ident" + + "ityConfigB\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017ena" + + "ble_kerberos\030\001 \001(\010B\003\340A\001\022(\n\033root_principa" + + "l_password_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri" + + "\030\003 \001(\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033" + + "\n\016truststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_" + + "password_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_" + + "uri\030\007 \001(\tB\003\340A\001\022$\n\027truststore_password_ur" + + "i\030\010 \001(\tB\003\340A\001\022$\n\027cross_realm_trust_realm\030" + + "\t \001(\tB\003\340A\001\022\"\n\025cross_realm_trust_kdc\030\n \001(" + + "\tB\003\340A\001\022+\n\036cross_realm_trust_admin_server" + + "\030\013 \001(\tB\003\340A\001\0222\n%cross_realm_trust_shared_" + + "password_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_ur" + + "i\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005" + + "B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityCo" + + "nfig\022r\n\034user_service_account_mapping\030\001 \003" + + "(\0132G.google.cloud.dataproc.v1.IdentityCo" + + "nfig.UserServiceAccountMappingEntryB\003\340A\002" + + "\032@\n\036UserServiceAccountMappingEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareC" + + "onfig\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022Q\n\npro" + + "perties\030\002 \003(\01328.google.cloud.dataproc.v1" + + ".SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n\023" + + "optional_components\030\003 \003(\0162#.google.cloud" + + ".dataproc.v1.ComponentB\003\340A\001\0321\n\017Propertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203" + + "\002\n\017LifecycleConfig\0227\n\017idle_delete_ttl\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\022;\n\020a" + + "uto_delete_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001H\000\0228\n\017i" + + "dle_start_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022" + + "L\n\032dataproc_metastore_service\030\001 \001(\tB(\340A\002" + + "\372A\"\n metastore.googleapis.com/Service\"\232\002" + + "\n\016ClusterMetrics\022O\n\014hdfs_metrics\030\001 \003(\01329" + + ".google.cloud.dataproc.v1.ClusterMetrics" + + ".HdfsMetricsEntry\022O\n\014yarn_metrics\030\002 \003(\0132" + + "9.google.cloud.dataproc.v1.ClusterMetric" + + "s.YarnMetricsEntry\0322\n\020HdfsMetricsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMe" + + "tricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\002" + + "8\001\"\356\001\n\024CreateClusterRequest\022\027\n\nproject_i" + + "d\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007clu" + + "ster\030\002 \001(\0132!.google.cloud.dataproc.v1.Cl" + + "usterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022V\n a" + + "ction_on_failed_primary_workers\030\005 \001(\0162\'." + + "google.cloud.dataproc.v1.FailureActionB\003" + + "\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\nproject_" + + "id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cl" + + "uster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!" + + ".google.cloud.dataproc.v1.ClusterB\003\340A\002\022E" + + "\n\035graceful_decommission_timeout\030\006 \001(\0132\031." + + "google.protobuf.DurationB\003\340A\001\0224\n\013update_" + + "mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClu" + + "sterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB" + + "\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nreque" + + "st_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartClusterRequest" + + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(" + + "\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014clu" + + "ster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\t" + + "B\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n\nprojec" + + "t_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014" + + "cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030" + + "\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021G" + + "etClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A" + + "\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002" + + " \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest\022\027\n\npro" + + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022" + + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024ListClu" + + "stersResponse\0228\n\010clusters\030\001 \003(\0132!.google" + + ".cloud.dataproc.v1.ClusterB\003\340A\003\022\034\n\017next_" + + "page_token\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseCluster" + + "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi" + + "on\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002" + + "\"1\n\026DiagnoseClusterResults\022\027\n\noutput_uri" + + "\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity\022Y\n\030c" + + "onsume_reservation_type\030\001 \001(\01622.google.c" + + "loud.dataproc.v1.ReservationAffinity.Typ" + + "eB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\t" + + "B\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016N" + + "O_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024" + + "SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterContro" + + "ller\022\200\002\n\rCreateCluster\022..google.cloud.da" + + "taproc.v1.CreateClusterRequest\032\035.google." + + "longrunning.Operation\"\237\001\202\323\344\223\002>\"3/v1/proj" + + "ects/{project_id}/regions/{region}/clust" + + "ers:\007cluster\332A\031project_id,region,cluster" + + "\312A<\n\007Cluster\0221google.cloud.dataproc.v1.C" + + "lusterOperationMetadata\022\250\002\n\rUpdateCluste" + + "r\022..google.cloud.dataproc.v1.UpdateClust" + "erRequest\032\035.google.longrunning.Operation" - + "\"\221\001\202\323\344\223\002L\"G/v1/projects/{project_id}/reg" - + "ions/{region}/clusters/{cluster_name}:st" - + "op:\001*\312A<\n\007Cluster\0221google.cloud.dataproc" - + ".v1.ClusterOperationMetadata\022\361\001\n\014StartCl" - + "uster\022-.google.cloud.dataproc.v1.StartCl" - + "usterRequest\032\035.google.longrunning.Operat" - + "ion\"\222\001\202\323\344\223\002M\"H/v1/projects/{project_id}/" - + "regions/{region}/clusters/{cluster_name}" - + ":start:\001*\312A<\n\007Cluster\0221google.cloud.data" - + "proc.v1.ClusterOperationMetadata\022\231\002\n\rDel" - + "eteCluster\022..google.cloud.dataproc.v1.De" - + "leteClusterRequest\032\035.google.longrunning." - + "Operation\"\270\001\202\323\344\223\002D*B/v1/projects/{projec" - + "t_id}/regions/{region}/clusters/{cluster" - + "_name}\332A\036project_id,region,cluster_name\312" - + "AJ\n\025google.protobuf.Empty\0221google.cloud." - + "dataproc.v1.ClusterOperationMetadata\022\311\001\n" - + "\nGetCluster\022+.google.cloud.dataproc.v1.G" - + "etClusterRequest\032!.google.cloud.dataproc" - + ".v1.Cluster\"k\202\323\344\223\002D\022B/v1/projects/{proje" - + "ct_id}/regions/{region}/clusters/{cluste" - + "r_name}\332A\036project_id,region,cluster_name" - + "\022\331\001\n\014ListClusters\022-.google.cloud.datapro" - + "c.v1.ListClustersRequest\032..google.cloud." - + "dataproc.v1.ListClustersResponse\"j\202\323\344\223\0025" - + "\0223/v1/projects/{project_id}/regions/{reg" - + "ion}/clusters\332A\021project_id,region\332A\030proj" - + "ect_id,region,filter\022\252\002\n\017DiagnoseCluster" - + "\0220.google.cloud.dataproc.v1.DiagnoseClus" - + "terRequest\032\035.google.longrunning.Operatio" - + "n\"\305\001\202\323\344\223\002P\"K/v1/projects/{project_id}/re" - + "gions/{region}/clusters/{cluster_name}:d" - + "iagnose:\001*\332A\036project_id,region,cluster_n" - + "ame\312AK\n\026DiagnoseClusterResults\0221google.c" - + "loud.dataproc.v1.ClusterOperationMetadat" - + "a\032K\312A\027dataproc.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\263" - + "\002\n\034com.google.cloud.dataproc.v1B\rCluster" - + "sProtoP\001Z@google.golang.org/genproto/goo" - + "gleapis/cloud/dataproc/v1;dataproc\352A^\n c" - + "ontainer.googleapis.com/Cluster\022:project" - + "s/{project}/locations/{location}/cluster" - + "s/{cluster}\352A^\n metastore.googleapis.com" - + "/Service\022:projects/{project}/locations/{" - + "location}/services/{service}b\006proto3" + + "\"\307\001\202\323\344\223\002M2B/v1/projects/{project_id}/reg" + + "ions/{region}/clusters/{cluster_name}:\007c" + + "luster\332A2project_id,region,cluster_name," + + "cluster,update_mask\312A<\n\007Cluster\0221google." + + "cloud.dataproc.v1.ClusterOperationMetada" + + "ta\022\356\001\n\013StopCluster\022,.google.cloud.datapr" + + "oc.v1.StopClusterRequest\032\035.google.longru" + + "nning.Operation\"\221\001\202\323\344\223\002L\"G/v1/projects/{" + + "project_id}/regions/{region}/clusters/{c" + + "luster_name}:stop:\001*\312A<\n\007Cluster\0221google" + + ".cloud.dataproc.v1.ClusterOperationMetad" + + "ata\022\361\001\n\014StartCluster\022-.google.cloud.data" + + "proc.v1.StartClusterRequest\032\035.google.lon" + + "grunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/project" + + "s/{project_id}/regions/{region}/clusters" + + "/{cluster_name}:start:\001*\312A<\n\007Cluster\0221go" + + "ogle.cloud.dataproc.v1.ClusterOperationM" + + "etadata\022\231\002\n\rDeleteCluster\022..google.cloud" + + ".dataproc.v1.DeleteClusterRequest\032\035.goog" + + "le.longrunning.Operation\"\270\001\202\323\344\223\002D*B/v1/p" + + "rojects/{project_id}/regions/{region}/cl" + + "usters/{cluster_name}\332A\036project_id,regio" + + "n,cluster_name\312AJ\n\025google.protobuf.Empty" + + "\0221google.cloud.dataproc.v1.ClusterOperat" + + "ionMetadata\022\311\001\n\nGetCluster\022+.google.clou" + + "d.dataproc.v1.GetClusterRequest\032!.google" + + ".cloud.dataproc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/" + + "projects/{project_id}/regions/{region}/c" + + "lusters/{cluster_name}\332A\036project_id,regi" + + "on,cluster_name\022\331\001\n\014ListClusters\022-.googl" + + "e.cloud.dataproc.v1.ListClustersRequest\032" + + "..google.cloud.dataproc.v1.ListClustersR" + + "esponse\"j\202\323\344\223\0025\0223/v1/projects/{project_i" + + "d}/regions/{region}/clusters\332A\021project_i" + + "d,region\332A\030project_id,region,filter\022\252\002\n\017" + + "DiagnoseCluster\0220.google.cloud.dataproc." + + "v1.DiagnoseClusterRequest\032\035.google.longr" + + "unning.Operation\"\305\001\202\323\344\223\002P\"K/v1/projects/" + + "{project_id}/regions/{region}/clusters/{" + + "cluster_name}:diagnose:\001*\332A\036project_id,r" + + "egion,cluster_name\312AK\n\026DiagnoseClusterRe" + + "sults\0221google.cloud.dataproc.v1.ClusterO" + + "perationMetadata\032K\312A\027dataproc.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\263\002\n\034com.google.cloud.datap" + + "roc.v1B\rClustersProtoP\001Z@google.golang.o" + + "rg/genproto/googleapis/cloud/dataproc/v1" + + ";dataproc\352A^\n container.googleapis.com/C" + + "luster\022:projects/{project}/locations/{lo" + + "cation}/clusters/{cluster}\352A^\n metastore" + + ".googleapis.com/Service\022:projects/{proje" + + "ct}/locations/{location}/services/{servi" + + "ce}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -506,6 +512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "ClusterName", "Config", + "VirtualClusterConfig", "Labels", "Status", "StatusHistory", @@ -540,28 +547,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LifecycleConfig", "EndpointConfig", "MetastoreConfig", - "GkeClusterConfig", }); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, + internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, new java.lang.String[] { - "NamespacedGkeDeploymentTarget", + "StagingBucket", + "TempBucket", + "KubernetesClusterConfig", + "AuxiliaryServicesConfig", + "InfrastructureConfig", }); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor = - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable = + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor, + internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, new java.lang.String[] { - "TargetGkeCluster", "ClusterNamespace", + "MetastoreConfig", "SparkHistoryServerConfig", }); internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, @@ -577,7 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, @@ -585,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PolicyUri", }); internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, @@ -593,7 +601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcePdKmsKeyName", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, @@ -623,7 +631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, @@ -631,7 +639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroupUri", }); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, @@ -639,7 +647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, @@ -647,7 +655,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableConfidentialCompute", }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, @@ -664,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinCpuPlatform", }); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, @@ -672,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplateName", "InstanceGroupManagerName", }); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, @@ -680,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorTypeUri", "AcceleratorCount", }); internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, @@ -688,7 +696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", }); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, @@ -696,7 +704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutableFile", "ExecutionTimeout", }); internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, @@ -704,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Detail", "StateStartTime", "Substate", }); internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, @@ -712,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KerberosConfig", "IdentityConfig", }); internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, @@ -734,7 +742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Realm", }); internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, @@ -750,7 +758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, @@ -766,7 +774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, @@ -774,7 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", }); internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, @@ -782,7 +790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataprocMetastoreService", }); internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -806,7 +814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -814,7 +822,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -828,7 +836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -836,7 +844,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -844,7 +852,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -852,7 +860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -860,7 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -868,7 +876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -876,7 +884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -884,7 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -892,7 +900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index c3307375..756752ac 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -236,8 +236,8 @@ public int getNumLocalSsds() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -263,8 +263,8 @@ public java.lang.String getLocalSsdInterface() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -898,8 +898,8 @@ public Builder clearNumLocalSsds() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -924,8 +924,8 @@ public java.lang.String getLocalSsdInterface() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -950,8 +950,8 @@ public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -975,8 +975,8 @@ public Builder setLocalSsdInterface(java.lang.String value) { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). *
* * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -996,8 +996,8 @@ public Builder clearLocalSsdInterface() { * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). * * * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java index 4dc5e534..050b28c8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java @@ -94,8 +94,8 @@ public interface DiskConfigOrBuilder * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). * * * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -110,8 +110,8 @@ public interface DiskConfigOrBuilder * Optional. Interface type of local SSDs (default is "scsi"). * Valid values: "scsi" (Small Computer System Interface), * "nvme" (Non-Volatile Memory Express). - * See [SSD Interface - * types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + * See [local SSD + * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). * * * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java index 75a2abf6..23b7bdf6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto +// source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; @@ -22,7 +22,7 @@ * * *
- * The GKE config for this cluster.
+ * The cluster's GKE config.
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} @@ -37,7 +37,10 @@ private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder build super(builder); } - private GkeClusterConfig() {} + private GkeClusterConfig() { + gkeClusterTarget_ = ""; + nodePoolTarget_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -58,6 +61,7 @@ private GkeClusterConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -68,23 +72,23 @@ private GkeClusterConfig( case 0: done = true; break; - case 10: + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + gkeClusterTarget_ = s; + break; + } + case 26: { - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - subBuilder = null; - if (namespacedGkeDeploymentTarget_ != null) { - subBuilder = namespacedGkeDeploymentTarget_.toBuilder(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodePoolTarget_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - namespacedGkeDeploymentTarget_ = + nodePoolTarget_.add( input.readMessage( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(namespacedGkeDeploymentTarget_); - namespacedGkeDeploymentTarget_ = subBuilder.buildPartial(); - } - + com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry)); break; } default: @@ -101,993 +105,180 @@ private GkeClusterConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nodePoolTarget_ = java.util.Collections.unmodifiableList(nodePoolTarget_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto + return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto + return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.GkeClusterConfig.class, com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); } - public interface NamespacedGkeDeploymentTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - java.lang.String getTargetGkeCluster(); - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - com.google.protobuf.ByteString getTargetGkeClusterBytes(); - - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - java.lang.String getClusterNamespace(); - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - com.google.protobuf.ByteString getClusterNamespaceBytes(); - } + public static final int GKE_CLUSTER_TARGET_FIELD_NUMBER = 2; + private volatile java.lang.Object gkeClusterTarget_; /** * * *
-   * A full, namespace-isolated deployment target for an existing GKE cluster.
+   * Optional. A target GKE cluster to deploy to. It must be in the same project and
+   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
    * 
* - * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget} - */ - public static final class NamespacedGkeDeploymentTarget - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - NamespacedGkeDeploymentTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamespacedGkeDeploymentTarget.newBuilder() to construct. - private NamespacedGkeDeploymentTarget( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NamespacedGkeDeploymentTarget() { - targetGkeCluster_ = ""; - clusterNamespace_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NamespacedGkeDeploymentTarget(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NamespacedGkeDeploymentTarget( - 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(); - - targetGkeCluster_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterNamespace_ = 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - .class); - } - - public static final int TARGET_GKE_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object targetGkeCluster_; - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - @java.lang.Override - public java.lang.String getTargetGkeCluster() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetGkeCluster_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The target GKE cluster to deploy to.
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetGkeClusterBytes() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetGkeCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAMESPACE_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterNamespace_; - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - @java.lang.Override - public java.lang.String getClusterNamespace() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterNamespace_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. A namespace within the GKE cluster to deploy into.
-     * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNamespaceBytes() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(targetGkeCluster_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGkeCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterNamespace_); - } - 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(targetGkeCluster_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGkeCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterNamespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterNamespace_); - } - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget other = - (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) obj; - - if (!getTargetGkeCluster().equals(other.getTargetGkeCluster())) return false; - if (!getClusterNamespace().equals(other.getClusterNamespace())) 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) + TARGET_GKE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getTargetGkeCluster().hashCode(); - hash = (37 * hash) + CLUSTER_NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getClusterNamespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 full, namespace-isolated deployment target for an existing GKE cluster.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - .class); - } - - // Construct using - // com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.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(); - targetGkeCluster_ = ""; - - clusterNamespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_NamespacedGkeDeploymentTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget build() { - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - buildPartial() { - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget result = - new com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget(this); - result.targetGkeCluster_ = targetGkeCluster_; - result.clusterNamespace_ = clusterNamespace_; - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) { - return mergeFrom( - (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget other) { - if (other - == com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance()) return this; - if (!other.getTargetGkeCluster().isEmpty()) { - targetGkeCluster_ = other.targetGkeCluster_; - onChanged(); - } - if (!other.getClusterNamespace().isEmpty()) { - clusterNamespace_ = other.clusterNamespace_; - 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object targetGkeCluster_ = ""; - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The targetGkeCluster. - */ - public java.lang.String getTargetGkeCluster() { - java.lang.Object ref = targetGkeCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetGkeCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for targetGkeCluster. - */ - public com.google.protobuf.ByteString getTargetGkeClusterBytes() { - java.lang.Object ref = targetGkeCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetGkeCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @param value The targetGkeCluster to set. - * @return This builder for chaining. - */ - public Builder setTargetGkeCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetGkeCluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTargetGkeCluster() { - - targetGkeCluster_ = getDefaultInstance().getTargetGkeCluster(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The target GKE cluster to deploy to.
-       * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-       * 
- * - * - * string target_gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for targetGkeCluster to set. - * @return This builder for chaining. - */ - public Builder setTargetGkeClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetGkeCluster_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterNamespace_ = ""; - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterNamespace. - */ - public java.lang.String getClusterNamespace() { - java.lang.Object ref = clusterNamespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterNamespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterNamespace. - */ - public com.google.protobuf.ByteString getClusterNamespaceBytes() { - java.lang.Object ref = clusterNamespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterNamespace to set. - * @return This builder for chaining. - */ - public Builder setClusterNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterNamespace_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterNamespace() { - - clusterNamespace_ = getDefaultInstance().getClusterNamespace(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A namespace within the GKE cluster to deploy into.
-       * 
- * - * string cluster_namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterNamespace to set. - * @return This builder for chaining. - */ - public Builder setClusterNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterNamespace_ = 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.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget) - private static final com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget(); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamespacedGkeDeploymentTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespacedGkeDeploymentTarget(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gkeClusterTarget. + */ + @java.lang.Override + public java.lang.String getGkeClusterTarget() { + java.lang.Object ref = gkeClusterTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gkeClusterTarget_ = s; + return s; } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + } + /** + * + * + *
+   * Optional. A target GKE cluster to deploy to. It must be in the same project and
+   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+   * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gkeClusterTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGkeClusterTargetBytes() { + java.lang.Object ref = gkeClusterTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gkeClusterTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public static final int NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - namespacedGkeDeploymentTarget_; + public static final int NODE_POOL_TARGET_FIELD_NUMBER = 3; + private java.util.List nodePoolTarget_; /** * * *
-   * Optional. A target for the deployment.
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + @java.lang.Override + public java.util.List getNodePoolTargetList() { + return nodePoolTarget_; + } + /** + * * - * @return Whether the namespacedGkeDeploymentTarget field is set. + *
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean hasNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTarget_ != null; + public java.util.List + getNodePoolTargetOrBuilderList() { + return nodePoolTarget_; } /** * * *
-   * Optional. A target for the deployment.
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + @java.lang.Override + public int getNodePoolTargetCount() { + return nodePoolTarget_.size(); + } + /** + * + * + *
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
+   * 
* - * @return The namespacedGkeDeploymentTarget. + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; + public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { + return nodePoolTarget_.get(index); } /** * * *
-   * Optional. A target for the deployment.
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder() { - return getNamespacedGkeDeploymentTarget(); + public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( + int index) { + return nodePoolTarget_.get(index); } private byte memoizedIsInitialized = -1; @@ -1104,8 +295,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (namespacedGkeDeploymentTarget_ != null) { - output.writeMessage(1, getNamespacedGkeDeploymentTarget()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gkeClusterTarget_); + } + for (int i = 0; i < nodePoolTarget_.size(); i++) { + output.writeMessage(3, nodePoolTarget_.get(i)); } unknownFields.writeTo(output); } @@ -1116,10 +310,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (namespacedGkeDeploymentTarget_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getNamespacedGkeDeploymentTarget()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gkeClusterTarget_); + } + for (int i = 0; i < nodePoolTarget_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, nodePoolTarget_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1137,12 +332,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.GkeClusterConfig other = (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; - if (hasNamespacedGkeDeploymentTarget() != other.hasNamespacedGkeDeploymentTarget()) - return false; - if (hasNamespacedGkeDeploymentTarget()) { - if (!getNamespacedGkeDeploymentTarget().equals(other.getNamespacedGkeDeploymentTarget())) - return false; - } + if (!getGkeClusterTarget().equals(other.getGkeClusterTarget())) return false; + if (!getNodePoolTargetList().equals(other.getNodePoolTargetList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1154,9 +345,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNamespacedGkeDeploymentTarget()) { - hash = (37 * hash) + NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getNamespacedGkeDeploymentTarget().hashCode(); + hash = (37 * hash) + GKE_CLUSTER_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getGkeClusterTarget().hashCode(); + if (getNodePoolTargetCount() > 0) { + hash = (37 * hash) + NODE_POOL_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolTargetList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -1262,7 +455,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The GKE config for this cluster.
+   * The cluster's GKE config.
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} @@ -1272,14 +465,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig) com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto + return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto + return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataproc.v1.GkeClusterConfig.class, @@ -1297,24 +490,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodePoolTargetFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = null; + gkeClusterTarget_ = ""; + + if (nodePoolTargetBuilder_ == null) { + nodePoolTarget_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - namespacedGkeDeploymentTarget_ = null; - namespacedGkeDeploymentTargetBuilder_ = null; + nodePoolTargetBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto + return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; } @@ -1336,10 +533,16 @@ public com.google.cloud.dataproc.v1.GkeClusterConfig build() { public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { com.google.cloud.dataproc.v1.GkeClusterConfig result = new com.google.cloud.dataproc.v1.GkeClusterConfig(this); - if (namespacedGkeDeploymentTargetBuilder_ == null) { - result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTarget_; + int from_bitField0_ = bitField0_; + result.gkeClusterTarget_ = gkeClusterTarget_; + if (nodePoolTargetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePoolTarget_ = java.util.Collections.unmodifiableList(nodePoolTarget_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePoolTarget_ = nodePoolTarget_; } else { - result.namespacedGkeDeploymentTarget_ = namespacedGkeDeploymentTargetBuilder_.build(); + result.nodePoolTarget_ = nodePoolTargetBuilder_.build(); } onBuilt(); return result; @@ -1390,8 +593,36 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { if (other == com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) return this; - if (other.hasNamespacedGkeDeploymentTarget()) { - mergeNamespacedGkeDeploymentTarget(other.getNamespacedGkeDeploymentTarget()); + if (!other.getGkeClusterTarget().isEmpty()) { + gkeClusterTarget_ = other.gkeClusterTarget_; + onChanged(); + } + if (nodePoolTargetBuilder_ == null) { + if (!other.nodePoolTarget_.isEmpty()) { + if (nodePoolTarget_.isEmpty()) { + nodePoolTarget_ = other.nodePoolTarget_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.addAll(other.nodePoolTarget_); + } + onChanged(); + } + } else { + if (!other.nodePoolTarget_.isEmpty()) { + if (nodePoolTargetBuilder_.isEmpty()) { + nodePoolTargetBuilder_.dispose(); + nodePoolTargetBuilder_ = null; + nodePoolTarget_ = other.nodePoolTarget_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolTargetBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolTargetFieldBuilder() + : null; + } else { + nodePoolTargetBuilder_.addAllMessages(other.nodePoolTarget_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1422,220 +653,590 @@ public Builder mergeFrom( return this; } - private com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - namespacedGkeDeploymentTarget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder> - namespacedGkeDeploymentTargetBuilder_; + private int bitField0_; + + private java.lang.Object gkeClusterTarget_ = ""; + /** + * + * + *
+     * Optional. A target GKE cluster to deploy to. It must be in the same project and
+     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gkeClusterTarget. + */ + public java.lang.String getGkeClusterTarget() { + java.lang.Object ref = gkeClusterTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gkeClusterTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A target GKE cluster to deploy to. It must be in the same project and
+     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gkeClusterTarget. + */ + public com.google.protobuf.ByteString getGkeClusterTargetBytes() { + java.lang.Object ref = gkeClusterTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gkeClusterTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A target GKE cluster to deploy to. It must be in the same project and
+     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gkeClusterTarget to set. + * @return This builder for chaining. + */ + public Builder setGkeClusterTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gkeClusterTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A target GKE cluster to deploy to. It must be in the same project and
+     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGkeClusterTarget() { + + gkeClusterTarget_ = getDefaultInstance().getGkeClusterTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A target GKE cluster to deploy to. It must be in the same project and
+     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+     * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gkeClusterTarget to set. + * @return This builder for chaining. + */ + public Builder setGkeClusterTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gkeClusterTarget_ = value; + onChanged(); + return this; + } + + private java.util.List nodePoolTarget_ = + java.util.Collections.emptyList(); + + private void ensureNodePoolTargetIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodePoolTarget_ = + new java.util.ArrayList( + nodePoolTarget_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> + nodePoolTargetBuilder_; + /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the namespacedGkeDeploymentTarget field is set. */ - public boolean hasNamespacedGkeDeploymentTarget() { - return namespacedGkeDeploymentTargetBuilder_ != null - || namespacedGkeDeploymentTarget_ != null; + public java.util.List getNodePoolTargetList() { + if (nodePoolTargetBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePoolTarget_); + } else { + return nodePoolTargetBuilder_.getMessageList(); + } } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public int getNodePoolTargetCount() { + if (nodePoolTargetBuilder_ == null) { + return nodePoolTarget_.size(); + } else { + return nodePoolTargetBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
* - * @return The namespacedGkeDeploymentTarget. + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; + public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { + if (nodePoolTargetBuilder_ == null) { + return nodePoolTarget_.get(index); } else { - return namespacedGkeDeploymentTargetBuilder_.getMessage(); + return nodePoolTargetBuilder_.getMessage(index); } } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { + public Builder setNodePoolTarget( + int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { + if (nodePoolTargetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - namespacedGkeDeploymentTarget_ = value; + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.set(index, value); onChanged(); } else { - namespacedGkeDeploymentTargetBuilder_.setMessage(value); + nodePoolTargetBuilder_.setMessage(index, value); } - return this; } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - builderForValue) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = builderForValue.build(); + public Builder setNodePoolTarget( + int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.set(index, builderForValue.build()); onChanged(); } else { - namespacedGkeDeploymentTargetBuilder_.setMessage(builderForValue.build()); + nodePoolTargetBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeNamespacedGkeDeploymentTarget( - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget value) { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - if (namespacedGkeDeploymentTarget_ != null) { - namespacedGkeDeploymentTarget_ = - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .newBuilder(namespacedGkeDeploymentTarget_) - .mergeFrom(value) - .buildPartial(); - } else { - namespacedGkeDeploymentTarget_ = value; + public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { + if (nodePoolTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(value); onChanged(); } else { - namespacedGkeDeploymentTargetBuilder_.mergeFrom(value); + nodePoolTargetBuilder_.addMessage(value); } - return this; } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearNamespacedGkeDeploymentTarget() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTarget_ = null; + public Builder addNodePoolTarget( + int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { + if (nodePoolTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(index, value); onChanged(); } else { - namespacedGkeDeploymentTarget_ = null; - namespacedGkeDeploymentTargetBuilder_ = null; + nodePoolTargetBuilder_.addMessage(index, value); } - return this; } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder - getNamespacedGkeDeploymentTargetBuilder() { - - onChanged(); - return getNamespacedGkeDeploymentTargetFieldBuilder().getBuilder(); + public Builder addNodePoolTarget( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolTargetBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNodePoolTarget( + int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolTargetBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNodePoolTarget( + java.lang.Iterable values) { + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePoolTarget_); + onChanged(); + } else { + nodePoolTargetBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodePoolTarget() { + if (nodePoolTargetBuilder_ == null) { + nodePoolTarget_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNodePoolTarget(int index) { + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.remove(index); + onChanged(); + } else { + nodePoolTargetBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetBuilder( + int index) { + return getNodePoolTargetFieldBuilder().getBuilder(index); } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder() { - if (namespacedGkeDeploymentTargetBuilder_ != null) { - return namespacedGkeDeploymentTargetBuilder_.getMessageOrBuilder(); + public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( + int index) { + if (nodePoolTargetBuilder_ == null) { + return nodePoolTarget_.get(index); } else { - return namespacedGkeDeploymentTarget_ == null - ? com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - .getDefaultInstance() - : namespacedGkeDeploymentTarget_; + return nodePoolTargetBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * Optional. A target for the deployment.
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNodePoolTargetOrBuilderList() { + if (nodePoolTargetBuilder_ != null) { + return nodePoolTargetBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePoolTarget_); + } + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder() { + return getNodePoolTargetFieldBuilder() + .addBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder( + int index) { + return getNodePoolTargetFieldBuilder() + .addBuilder(index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+     * must be assigned the 'default' role. Each role can be given to only a
+     * single NodePoolTarget. All NodePools must have the same location settings.
+     * If a nodePoolTarget is not specified, Dataproc constructs a default
+     * nodePoolTarget.
      * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder> - getNamespacedGkeDeploymentTargetFieldBuilder() { - if (namespacedGkeDeploymentTargetBuilder_ == null) { - namespacedGkeDeploymentTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget, - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfig - .NamespacedGkeDeploymentTargetOrBuilder>( - getNamespacedGkeDeploymentTarget(), getParentForChildren(), isClean()); - namespacedGkeDeploymentTarget_ = null; + public java.util.List + getNodePoolTargetBuilderList() { + return getNodePoolTargetFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> + getNodePoolTargetFieldBuilder() { + if (nodePoolTargetBuilder_ == null) { + nodePoolTargetBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolTarget, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( + nodePoolTarget_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodePoolTarget_ = null; } - return namespacedGkeDeploymentTargetBuilder_; + return nodePoolTargetBuilder_; } @java.lang.Override diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java index 994f7dbc..bc7bd12a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dataproc/v1/clusters.proto +// source: google/cloud/dataproc/v1/shared.proto package com.google.cloud.dataproc.v1; @@ -27,42 +27,110 @@ public interface GkeClusterConfigOrBuilder * * *
-   * Optional. A target for the deployment.
+   * Optional. A target GKE cluster to deploy to. It must be in the same project and
+   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+   * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gkeClusterTarget. + */ + java.lang.String getGkeClusterTarget(); + /** + * + * + *
+   * Optional. A target GKE cluster to deploy to. It must be in the same project and
+   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
+   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
+   * 
+ * + * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gkeClusterTarget. + */ + com.google.protobuf.ByteString getGkeClusterTargetBytes(); + + /** + * + * + *
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + java.util.List getNodePoolTargetList(); + /** + * + * + *
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
+   * 
* - * @return Whether the namespacedGkeDeploymentTarget field is set. + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - boolean hasNamespacedGkeDeploymentTarget(); + com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index); /** * * *
-   * Optional. A target for the deployment.
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * + */ + int getNodePoolTargetCount(); + /** + * + * + *
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
+   * 
* - * @return The namespacedGkeDeploymentTarget. + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget - getNamespacedGkeDeploymentTarget(); + java.util.List + getNodePoolTargetOrBuilderList(); /** * * *
-   * Optional. A target for the deployment.
+   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
+   * must be assigned the 'default' role. Each role can be given to only a
+   * single NodePoolTarget. All NodePools must have the same location settings.
+   * If a nodePoolTarget is not specified, Dataproc constructs a default
+   * nodePoolTarget.
    * 
* * - * .google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTargetOrBuilder - getNamespacedGkeDeploymentTargetOrBuilder(); + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java new file mode 100644 index 00000000..9bb277bd --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java @@ -0,0 +1,4761 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * The configuration of a GKE NodePool used by a [Dataproc-on-GKE
+ * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig} + */ +public final class GkeNodePoolConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig) + GkeNodePoolConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeNodePoolConfig.newBuilder() to construct. + private GkeNodePoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeNodePoolConfig() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeNodePoolConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeNodePoolConfig( + 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 18: + { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder subBuilder = + null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(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_ = locations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class); + } + + public interface GkeNodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The name of a Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + * + * + *
+     * Optional. The name of a Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); + + /** + * + * + *
+     * Optional. Whether the nodes are created as [preemptible VM
+     * instances](https://cloud.google.com/compute/docs/instances/preemptible).
+     * 
+ * + * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+     * Optional. The number of local SSD disks to attach to the node, which is limited by
+     * the maximum number of disks allowable per zone (see [Adding Local
+     * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
+     * 
+ * + * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdCount. + */ + int getLocalSsdCount(); + + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAcceleratorsList(); + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators( + int index); + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAcceleratorsCount(); + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> + getAcceleratorsOrBuilderList(); + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index); + + /** + * + * + *
+     * Optional. [Minimum CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * to be used by this instance. The instance may be scheduled on the
+     * specified or a newer CPU platform. Specify the friendly names of CPU
+     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+     * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCpuPlatform. + */ + java.lang.String getMinCpuPlatform(); + /** + * + * + *
+     * Optional. [Minimum CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * to be used by this instance. The instance may be scheduled on the
+     * specified or a newer CPU platform. Specify the friendly names of CPU
+     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+     * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minCpuPlatform. + */ + com.google.protobuf.ByteString getMinCpuPlatformBytes(); + } + /** + * + * + *
+   * Parameters that describe cluster nodes.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} + */ + public static final class GkeNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + GkeNodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeNodeConfig.newBuilder() to construct. + private GkeNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeNodeConfig() { + machineType_ = ""; + accelerators_ = java.util.Collections.emptyList(); + minCpuPlatform_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeNodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeNodeConfig( + 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(); + + machineType_ = s; + break; + } + case 56: + { + localSsdCount_ = input.readInt32(); + break; + } + case 80: + { + preemptible_ = input.readBool(); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + accelerators_ = + new java.util.ArrayList< + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfig>(); + mutable_bitField0_ |= 0x00000001; + } + accelerators_.add( + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .parser(), + extensionRegistry)); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = 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)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + * + * + *
+     * Optional. The name of a Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The name of a Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + * + * + *
+     * Optional. Whether the nodes are created as [preemptible VM
+     * instances](https://cloud.google.com/compute/docs/instances/preemptible).
+     * 
+ * + * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; + private int localSsdCount_; + /** + * + * + *
+     * Optional. The number of local SSD disks to attach to the node, which is limited by
+     * the maximum number of disks allowable per zone (see [Adding Local
+     * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
+     * 
+ * + * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int ACCELERATORS_FIELD_NUMBER = 11; + private java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + accelerators_; + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + getAcceleratorsList() { + return accelerators_; + } + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getAccelerators(int index) { + return accelerators_.get(index); + } + /** + * + * + *
+     * Optional. A list of [hardware
+     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+     * each node.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index) { + return accelerators_.get(index); + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+     * Optional. [Minimum CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * to be used by this instance. The instance may be scheduled on the
+     * specified or a newer CPU platform. Specify the friendly names of CPU
+     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+     * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. [Minimum CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * to be used by this instance. The instance may be scheduled on the
+     * specified or a newer CPU platform. Specify the friendly names of CPU
+     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+     * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return 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(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + if (localSsdCount_ != 0) { + output.writeInt32(7, localSsdCount_); + } + if (preemptible_ != false) { + output.writeBool(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + output.writeMessage(11, accelerators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + 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(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + if (localSsdCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); + } + if (preemptible_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (getLocalSsdCount() != other.getLocalSsdCount()) return false; + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) 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) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); + hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdCount(); + if (getAcceleratorsCount() > 0) { + hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorsList().hashCode(); + } + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+     * Parameters that describe cluster nodes.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAcceleratorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + preemptible_ = false; + + localSsdCount_ = 0; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + acceleratorsBuilder_.clear(); + } + minCpuPlatform_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig build() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); + int from_bitField0_ = bitField0_; + result.machineType_ = machineType_; + result.preemptible_ = preemptible_; + result.localSsdCount_ = localSsdCount_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + result.minCpuPlatform_ = minCpuPlatform_; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other) { + if (other + == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) + return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000001); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object machineType_ = ""; + /** + * + * + *
+       * Optional. The name of a Compute Engine [machine
+       * type](https://cloud.google.com/compute/docs/machine-types).
+       * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The name of a Compute Engine [machine
+       * type](https://cloud.google.com/compute/docs/machine-types).
+       * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The name of a Compute Engine [machine
+       * type](https://cloud.google.com/compute/docs/machine-types).
+       * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of a Compute Engine [machine
+       * type](https://cloud.google.com/compute/docs/machine-types).
+       * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The name of a Compute Engine [machine
+       * type](https://cloud.google.com/compute/docs/machine-types).
+       * 
+ * + * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private boolean preemptible_; + /** + * + * + *
+       * Optional. Whether the nodes are created as [preemptible VM
+       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
+       * 
+ * + * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + /** + * + * + *
+       * Optional. Whether the nodes are created as [preemptible VM
+       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
+       * 
+ * + * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preemptible to set. + * @return This builder for chaining. + */ + public Builder setPreemptible(boolean value) { + + preemptible_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Whether the nodes are created as [preemptible VM
+       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
+       * 
+ * + * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreemptible() { + + preemptible_ = false; + onChanged(); + return this; + } + + private int localSsdCount_; + /** + * + * + *
+       * Optional. The number of local SSD disks to attach to the node, which is limited by
+       * the maximum number of disks allowable per zone (see [Adding Local
+       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
+       * 
+ * + * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+       * Optional. The number of local SSD disks to attach to the node, which is limited by
+       * the maximum number of disks allowable per zone (see [Adding Local
+       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
+       * 
+ * + * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The number of local SSD disks to attach to the node, which is limited by
+       * the maximum number of disks allowable per zone (see [Adding Local
+       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
+       * 
+ * + * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + accelerators_ = java.util.Collections.emptyList(); + + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accelerators_ = + new java.util.ArrayList< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>( + accelerators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> + acceleratorsBuilder_; + + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAccelerators( + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAccelerators( + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccelerators( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccelerators( + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccelerators( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccelerators( + int index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAccelerators( + java.lang.Iterable< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> + values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + getAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder + getAcceleratorsOrBuilder(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder> + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + addAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance()); + } + /** + * + * + *
+       * Optional. A list of [hardware
+       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
+       * each node.
+       * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+       * Optional. [Minimum CPU
+       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+       * to be used by this instance. The instance may be scheduled on the
+       * specified or a newer CPU platform. Specify the friendly names of CPU
+       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+       * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minCpuPlatform. + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. [Minimum CPU
+       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+       * to be used by this instance. The instance may be scheduled on the
+       * specified or a newer CPU platform. Specify the friendly names of CPU
+       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+       * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minCpuPlatform. + */ + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. [Minimum CPU
+       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+       * to be used by this instance. The instance may be scheduled on the
+       * specified or a newer CPU platform. Specify the friendly names of CPU
+       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+       * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. [Minimum CPU
+       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+       * to be used by this instance. The instance may be scheduled on the
+       * specified or a newer CPU platform. Specify the friendly names of CPU
+       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+       * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. [Minimum CPU
+       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+       * to be used by this instance. The instance may be scheduled on the
+       * specified or a newer CPU platform. Specify the friendly names of CPU
+       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
+       * 
+ * + * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeNodeConfig(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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GkeNodePoolAcceleratorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The number of accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + long getAcceleratorCount(); + + /** + * + * + *
+     * The accelerator type resource namename (see GPUs on Compute Engine).
+     * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + java.lang.String getAcceleratorType(); + /** + * + * + *
+     * The accelerator type resource namename (see GPUs on Compute Engine).
+     * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + com.google.protobuf.ByteString getAcceleratorTypeBytes(); + } + /** + * + * + *
+   * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
+   * for a NodePool.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig} + */ + public static final class GkeNodePoolAcceleratorConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + GkeNodePoolAcceleratorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeNodePoolAcceleratorConfig.newBuilder() to construct. + private GkeNodePoolAcceleratorConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeNodePoolAcceleratorConfig() { + acceleratorType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeNodePoolAcceleratorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeNodePoolAcceleratorConfig( + 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 8: + { + acceleratorCount_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + acceleratorType_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + .class); + } + + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_; + /** + * + * + *
+     * The number of accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + * + * + *
+     * The accelerator type resource namename (see GPUs on Compute Engine).
+     * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + @java.lang.Override + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + * + * + *
+     * The accelerator type resource namename (see GPUs on Compute Engine).
+     * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (acceleratorCount_ != 0L) { + output.writeInt64(1, acceleratorCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceleratorCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acceleratorCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; + + if (getAcceleratorCount() != other.getAcceleratorCount()) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) 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) + ACCELERATOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); + hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
+     * for a NodePool.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.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(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig build() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + buildPartial() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this); + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) { + return mergeFrom( + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) { + if (other + == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + .getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long acceleratorCount_; + /** + * + * + *
+       * The number of accelerator cards exposed to an instance.
+       * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + * + * + *
+       * The number of accelerator cards exposed to an instance.
+       * 
+ * + * int64 accelerator_count = 1; + * + * @param value The acceleratorCount to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of accelerator cards exposed to an instance.
+       * 
+ * + * int64 accelerator_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + * + * + *
+       * The accelerator type resource namename (see GPUs on Compute Engine).
+       * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The accelerator type resource namename (see GPUs on Compute Engine).
+       * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The accelerator type resource namename (see GPUs on Compute Engine).
+       * 
+ * + * string accelerator_type = 2; + * + * @param value The acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The accelerator type resource namename (see GPUs on Compute Engine).
+       * 
+ * + * string accelerator_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + * + * + *
+       * The accelerator type resource namename (see GPUs on Compute Engine).
+       * 
+ * + * string accelerator_type = 2; + * + * @param value The bytes for acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeNodePoolAcceleratorConfig(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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GkeNodePoolAutoscalingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The minimum number of nodes in the NodePool. Must be >= 0 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + * + * + *
+     * The maximum number of nodes in the NodePool. Must be >= min_node_count.
+     * **Note:** Quota must be sufficient to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + } + /** + * + * + *
+   * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
+   * adjust the size of the node pool to the current cluster usage.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig} + */ + public static final class GkeNodePoolAutoscalingConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + GkeNodePoolAutoscalingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeNodePoolAutoscalingConfig.newBuilder() to construct. + private GkeNodePoolAutoscalingConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeNodePoolAutoscalingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeNodePoolAutoscalingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeNodePoolAutoscalingConfig( + 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 16: + { + minNodeCount_ = input.readInt32(); + break; + } + case 24: + { + maxNodeCount_ = input.readInt32(); + 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + .class); + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + * + * + *
+     * The minimum number of nodes in the NodePool. Must be >= 0 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; + private int maxNodeCount_; + /** + * + * + *
+     * The maximum number of nodes in the NodePool. Must be >= min_node_count.
+     * **Note:** Quota must be sufficient to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minNodeCount_ != 0) { + output.writeInt32(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(3, maxNodeCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); + } + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; + + if (getMinNodeCount() != other.getMinNodeCount()) return false; + if (getMaxNodeCount() != other.getMaxNodeCount()) 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) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+     * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
+     * adjust the size of the node pool to the current cluster usage.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.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(); + minNodeCount_ = 0; + + maxNodeCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig build() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + buildPartial() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this); + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) { + return mergeFrom( + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) { + if (other + == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance()) return this; + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int minNodeCount_; + /** + * + * + *
+       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
+       * max_node_count.
+       * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + /** + * + * + *
+       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
+       * max_node_count.
+       * 
+ * + * int32 min_node_count = 2; + * + * @param value The minNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
+       * max_node_count.
+       * 
+ * + * int32 min_node_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_; + /** + * + * + *
+       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
+       * **Note:** Quota must be sufficient to scale up the cluster.
+       * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + * + * + *
+       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
+       * **Note:** Quota must be sufficient to scale up the cluster.
+       * 
+ * + * int32 max_node_count = 3; + * + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
+       * **Note:** Quota must be sufficient to scale up the cluster.
+       * 
+ * + * int32 max_node_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + + maxNodeCount_ = 0; + 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolAutoscalingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeNodePoolAutoscalingConfig(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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; + } + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder + getConfigOrBuilder() { + return getConfig(); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int AUTOSCALING_FIELD_NUMBER = 4; + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getAutoscaling() { + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (config_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + 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.dataproc.v1.GkeNodePoolConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeNodePoolConfig other = + (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (hasAutoscaling() != other.hasAutoscaling()) return false; + if (hasAutoscaling()) { + if (!getAutoscaling().equals(other.getAutoscaling())) 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 (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 of a GKE NodePool used by a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig) + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.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 (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig build() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() { + com.google.cloud.dataproc.v1.GkeNodePoolConfig result = + new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this); + int from_bitField0_ = bitField0_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.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.dataproc.v1.GkeNodePoolConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig other) { + if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + 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.dataproc.v1.GkeNodePoolConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.GkeNodePoolConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> + configBuilder_; + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConfig( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { + if (configBuilder_ == null) { + if (config_ != null) { + config_ = + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
+     * Optional. The node pool configuration.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) where
+     * NodePool's nodes will be located.
+     * **Note:** Currently, only one zone may be specified.
+     * If a location is not specified during NodePool creation, Dataproc will
+     * choose a location.
+     * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscaling. + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscaling( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoscaling( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoscaling( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder + getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig + .getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+     * only when a valid configuration is present.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAutoscalingConfigOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + @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.dataproc.v1.GkeNodePoolConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) + private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeNodePoolConfig(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.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java new file mode 100644 index 00000000..81c1de16 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface GkeNodePoolConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The config. + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig(); + /** + * + * + *
+   * Optional. The node pool configuration.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * Optional. The list of Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) where
+   * NodePool's nodes will be located.
+   * **Note:** Currently, only one zone may be specified.
+   * If a location is not specified during NodePool creation, Dataproc will
+   * choose a location.
+   * 
+ * + * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoscaling field is set. + */ + boolean hasAutoscaling(); + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoscaling. + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling(); + /** + * + * + *
+   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
+   * only when a valid configuration is present.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder + getAutoscalingOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java new file mode 100644 index 00000000..5d501e88 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java @@ -0,0 +1,1669 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * GKE NodePools that Dataproc workloads run on.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} + */ +public final class GkeNodePoolTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) + GkeNodePoolTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeNodePoolTarget.newBuilder() to construct. + private GkeNodePoolTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeNodePoolTarget() { + nodePool_ = ""; + roles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeNodePoolTarget(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeNodePoolTarget( + 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(); + + nodePool_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + roles_.add(rawValue); + break; + } + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + roles_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 26: + { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder subBuilder = null; + if (nodePoolConfig_ != null) { + subBuilder = nodePoolConfig_.toBuilder(); + } + nodePoolConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodePoolConfig_); + nodePoolConfig_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + roles_ = java.util.Collections.unmodifiableList(roles_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + } + + /** + * + * + *
+   * `Role` specifies whose tasks will run on the NodePool. The roles can be
+   * specific to workloads. Exactly one GkeNodePoolTarget within the
+   * VirtualCluster must have 'default' role, which is used to run all workloads
+   * that are not associated with a NodePool.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.GkeNodePoolTarget.Role} + */ + public enum Role implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Role is unspecified.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + ROLE_UNSPECIFIED(0), + /** + * + * + *
+     * Any roles that are not directly assigned to a NodePool run on the
+     * `default` role's NodePool.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
+     * Run controllers and webhooks.
+     * 
+ * + * CONTROLLER = 2; + */ + CONTROLLER(2), + /** + * + * + *
+     * Run spark driver.
+     * 
+ * + * SPARK_DRIVER = 3; + */ + SPARK_DRIVER(3), + /** + * + * + *
+     * Run spark executors.
+     * 
+ * + * SPARK_EXECUTOR = 4; + */ + SPARK_EXECUTOR(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Role is unspecified.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + public static final int ROLE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Any roles that are not directly assigned to a NodePool run on the
+     * `default` role's NodePool.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + /** + * + * + *
+     * Run controllers and webhooks.
+     * 
+ * + * CONTROLLER = 2; + */ + public static final int CONTROLLER_VALUE = 2; + /** + * + * + *
+     * Run spark driver.
+     * 
+ * + * SPARK_DRIVER = 3; + */ + public static final int SPARK_DRIVER_VALUE = 3; + /** + * + * + *
+     * Run spark executors.
+     * 
+ * + * SPARK_EXECUTOR = 4; + */ + public static final int SPARK_EXECUTOR_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Role 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 Role forNumber(int value) { + switch (value) { + case 0: + return ROLE_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return CONTROLLER; + case 3: + return SPARK_DRIVER; + case 4: + return SPARK_EXECUTOR; + 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 Role findValueByNumber(int number) { + return Role.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.dataproc.v1.GkeNodePoolTarget.getDescriptor().getEnumTypes().get(0); + } + + private static final Role[] VALUES = values(); + + public static Role 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 Role(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.GkeNodePoolTarget.Role) + } + + public static final int NODE_POOL_FIELD_NUMBER = 1; + private volatile java.lang.Object nodePool_; + /** + * + * + *
+   * Required. The target GKE NodePool.
+   * Format:
+   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+   * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodePool. + */ + @java.lang.Override + public java.lang.String getNodePool() { + java.lang.Object ref = nodePool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePool_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The target GKE NodePool.
+   * Format:
+   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+   * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodePool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodePoolBytes() { + java.lang.Object ref = nodePool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 2; + private java.util.List roles_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> + roles_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>() { + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); + return result == null + ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the roles. + */ + @java.lang.Override + public java.util.List getRolesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( + roles_, roles_converter_); + } + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of roles. + */ + @java.lang.Override + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { + return roles_converter_.convert(roles_.get(index)); + } + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for roles. + */ + @java.lang.Override + public java.util.List getRolesValueList() { + return roles_; + } + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + @java.lang.Override + public int getRolesValue(int index) { + return roles_.get(index); + } + + private int rolesMemoizedSerializedSize; + + public static final int NODE_POOL_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodePoolConfig field is set. + */ + @java.lang.Override + public boolean hasNodePoolConfig() { + return nodePoolConfig_ != null; + } + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodePoolConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; + } + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { + return getNodePoolConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodePool_); + } + if (getRolesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(rolesMemoizedSerializedSize); + } + for (int i = 0; i < roles_.size(); i++) { + output.writeEnumNoTag(roles_.get(i)); + } + if (nodePoolConfig_ != null) { + output.writeMessage(3, getNodePoolConfig()); + } + 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(nodePool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodePool_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(roles_.get(i)); + } + size += dataSize; + if (!getRolesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + rolesMemoizedSerializedSize = dataSize; + } + if (nodePoolConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodePoolConfig()); + } + 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.dataproc.v1.GkeNodePoolTarget)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.GkeNodePoolTarget other = + (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; + + if (!getNodePool().equals(other.getNodePool())) return false; + if (!roles_.equals(other.roles_)) return false; + if (hasNodePoolConfig() != other.hasNodePoolConfig()) return false; + if (hasNodePoolConfig()) { + if (!getNodePoolConfig().equals(other.getNodePoolConfig())) 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) + NODE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getNodePool().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + roles_.hashCode(); + } + if (hasNodePoolConfig()) { + hash = (37 * hash) + NODE_POOL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * GKE NodePools that Dataproc workloads run on.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) + com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.GkeNodePoolTarget.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(); + nodePool_ = ""; + + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (nodePoolConfigBuilder_ == null) { + nodePoolConfig_ = null; + } else { + nodePoolConfig_ = null; + nodePoolConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolTarget build() { + com.google.cloud.dataproc.v1.GkeNodePoolTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { + com.google.cloud.dataproc.v1.GkeNodePoolTarget result = + new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); + int from_bitField0_ = bitField0_; + result.nodePool_ = nodePool_; + if (((bitField0_ & 0x00000001) != 0)) { + roles_ = java.util.Collections.unmodifiableList(roles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roles_ = roles_; + if (nodePoolConfigBuilder_ == null) { + result.nodePoolConfig_ = nodePoolConfig_; + } else { + result.nodePoolConfig_ = nodePoolConfigBuilder_.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.dataproc.v1.GkeNodePoolTarget) { + return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolTarget other) { + if (other == com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()) return this; + if (!other.getNodePool().isEmpty()) { + nodePool_ = other.nodePool_; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (other.hasNodePoolConfig()) { + mergeNodePoolConfig(other.getNodePoolConfig()); + } + 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.dataproc.v1.GkeNodePoolTarget parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.dataproc.v1.GkeNodePoolTarget) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object nodePool_ = ""; + /** + * + * + *
+     * Required. The target GKE NodePool.
+     * Format:
+     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+     * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodePool. + */ + public java.lang.String getNodePool() { + java.lang.Object ref = nodePool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The target GKE NodePool.
+     * Format:
+     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+     * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodePool. + */ + public com.google.protobuf.ByteString getNodePoolBytes() { + java.lang.Object ref = nodePool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The target GKE NodePool.
+     * Format:
+     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+     * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodePool to set. + * @return This builder for chaining. + */ + public Builder setNodePool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The target GKE NodePool.
+     * Format:
+     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+     * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodePool() { + + nodePool_ = getDefaultInstance().getNodePool(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The target GKE NodePool.
+     * Format:
+     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+     * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodePool to set. + * @return This builder for chaining. + */ + public Builder setNodePoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePool_ = value; + onChanged(); + return this; + } + + private java.util.List roles_ = java.util.Collections.emptyList(); + + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roles_ = new java.util.ArrayList(roles_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the roles. + */ + public java.util.List getRolesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( + roles_, roles_converter_); + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { + return roles_converter_.convert(roles_.get(index)); + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + for (com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value : values) { + roles_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for roles. + */ + public java.util.List getRolesValueList() { + return java.util.Collections.unmodifiableList(roles_); + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + public int getRolesValue(int index) { + return roles_.get(index); + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + * @return This builder for chaining. + */ + public Builder setRolesValue(int index, int value) { + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for roles to add. + * @return This builder for chaining. + */ + public Builder addRolesValue(int value) { + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The types of role for a GKE NodePool
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for roles to add. + * @return This builder for chaining. + */ + public Builder addAllRolesValue(java.lang.Iterable values) { + ensureRolesIsMutable(); + for (int value : values) { + roles_.add(value); + } + onChanged(); + return this; + } + + private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> + nodePoolConfigBuilder_; + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodePoolConfig field is set. + */ + public boolean hasNodePoolConfig() { + return nodePoolConfigBuilder_ != null || nodePoolConfig_ != null; + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodePoolConfig. + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { + if (nodePoolConfigBuilder_ == null) { + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; + } else { + return nodePoolConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { + if (nodePoolConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolConfig_ = value; + onChanged(); + } else { + nodePoolConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodePoolConfig( + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder builderForValue) { + if (nodePoolConfigBuilder_ == null) { + nodePoolConfig_ = builderForValue.build(); + onChanged(); + } else { + nodePoolConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { + if (nodePoolConfigBuilder_ == null) { + if (nodePoolConfig_ != null) { + nodePoolConfig_ = + com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolConfig_ = value; + } + onChanged(); + } else { + nodePoolConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodePoolConfig() { + if (nodePoolConfigBuilder_ == null) { + nodePoolConfig_ = null; + onChanged(); + } else { + nodePoolConfig_ = null; + nodePoolConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigBuilder() { + + onChanged(); + return getNodePoolConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { + if (nodePoolConfigBuilder_ != null) { + return nodePoolConfigBuilder_.getMessageOrBuilder(); + } else { + return nodePoolConfig_ == null + ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() + : nodePoolConfig_; + } + } + /** + * + * + *
+     * Optional. The configuration for the GKE NodePool.
+     * If specified, Dataproc attempts to create a NodePool with the
+     * specified shape. If one with the same name already exists, it is
+     * verified against all specified fields. If a field differs, the
+     * virtual cluster creation will fail.
+     * If omitted, any NodePool with the specified name is used. If a
+     * NodePool with the specified name does not exist, Dataproc create a NodePool
+     * with default values.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> + getNodePoolConfigFieldBuilder() { + if (nodePoolConfigBuilder_ == null) { + nodePoolConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeNodePoolConfig, + com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( + getNodePoolConfig(), getParentForChildren(), isClean()); + nodePoolConfig_ = null; + } + return nodePoolConfigBuilder_; + } + + @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.dataproc.v1.GkeNodePoolTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) + private static final com.google.cloud.dataproc.v1.GkeNodePoolTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(); + } + + public static com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeNodePoolTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeNodePoolTarget(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.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java new file mode 100644 index 00000000..64b301fb --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface GkeNodePoolTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The target GKE NodePool.
+   * Format:
+   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+   * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodePool. + */ + java.lang.String getNodePool(); + /** + * + * + *
+   * Required. The target GKE NodePool.
+   * Format:
+   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
+   * 
+ * + * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodePool. + */ + com.google.protobuf.ByteString getNodePoolBytes(); + + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of roles. + */ + int getRolesCount(); + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index); + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for roles. + */ + java.util.List getRolesValueList(); + /** + * + * + *
+   * Required. The types of role for a GKE NodePool
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of roles at the given index. + */ + int getRolesValue(int index); + + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodePoolConfig field is set. + */ + boolean hasNodePoolConfig(); + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodePoolConfig. + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig(); + /** + * + * + *
+   * Optional. The configuration for the GKE NodePool.
+   * If specified, Dataproc attempts to create a NodePool with the
+   * specified shape. If one with the same name already exists, it is
+   * verified against all specified fields. If a field differs, the
+   * virtual cluster creation will fail.
+   * If omitted, any NodePool with the specified name is used. If a
+   * NodePool with the specified name does not exist, Dataproc create a NodePool
+   * with default values.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java new file mode 100644 index 00000000..73587a1b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java @@ -0,0 +1,1371 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * The configuration for running the Dataproc cluster on Kubernetes.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} + */ +public final class KubernetesClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) + KubernetesClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use KubernetesClusterConfig.newBuilder() to construct. + private KubernetesClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KubernetesClusterConfig() { + kubernetesNamespace_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KubernetesClusterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private KubernetesClusterConfig( + 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(); + + kubernetesNamespace_ = s; + break; + } + case 18: + { + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder subBuilder = null; + if (configCase_ == 2) { + subBuilder = ((com.google.cloud.dataproc.v1.GkeClusterConfig) config_).toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.dataproc.v1.GkeClusterConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) config_); + config_ = subBuilder.buildPartial(); + } + configCase_ = 2; + break; + } + case 26: + { + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder subBuilder = null; + if (kubernetesSoftwareConfig_ != null) { + subBuilder = kubernetesSoftwareConfig_.toBuilder(); + } + kubernetesSoftwareConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesSoftwareConfig_); + kubernetesSoftwareConfig_ = 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + } + + private int configCase_ = 0; + private java.lang.Object config_; + + public enum ConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GKE_CLUSTER_CONFIG(2), + CONFIG_NOT_SET(0); + private final int value; + + private ConfigCase(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 ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 2: + return GKE_CLUSTER_CONFIG; + case 0: + return CONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER = 1; + private volatile java.lang.Object kubernetesNamespace_; + /** + * + * + *
+   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+   * does not exist, it is created. If it exists, Dataproc
+   * verifies that another Dataproc VirtualCluster is not installed
+   * into it. If not specified, the name of the Dataproc Cluster is used.
+   * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kubernetesNamespace. + */ + @java.lang.Override + public java.lang.String getKubernetesNamespace() { + java.lang.Object ref = kubernetesNamespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesNamespace_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+   * does not exist, it is created. If it exists, Dataproc
+   * verifies that another Dataproc VirtualCluster is not installed
+   * into it. If not specified, the name of the Dataproc Cluster is used.
+   * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kubernetesNamespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { + java.lang.Object ref = kubernetesNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + @java.lang.Override + public boolean hasGkeClusterConfig() { + return configCase_ == 2; + } + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gkeClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { + if (configCase_ == 2) { + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + } + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { + if (configCase_ == 2) { + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + } + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + + public static final int KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesSoftwareConfig field is set. + */ + @java.lang.Override + public boolean hasKubernetesSoftwareConfig() { + return kubernetesSoftwareConfig_ != null; + } + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesSoftwareConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; + } + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder() { + return getKubernetesSoftwareConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return 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(kubernetesNamespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesNamespace_); + } + if (configCase_ == 2) { + output.writeMessage(2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); + } + if (kubernetesSoftwareConfig_ != null) { + output.writeMessage(3, getKubernetesSoftwareConfig()); + } + 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(kubernetesNamespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesNamespace_); + } + if (configCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); + } + if (kubernetesSoftwareConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getKubernetesSoftwareConfig()); + } + 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.dataproc.v1.KubernetesClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.KubernetesClusterConfig other = + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; + + if (!getKubernetesNamespace().equals(other.getKubernetesNamespace())) return false; + if (hasKubernetesSoftwareConfig() != other.hasKubernetesSoftwareConfig()) return false; + if (hasKubernetesSoftwareConfig()) { + if (!getKubernetesSoftwareConfig().equals(other.getKubernetesSoftwareConfig())) return false; + } + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 2: + if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) 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(); + hash = (37 * hash) + KUBERNETES_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesNamespace().hashCode(); + if (hasKubernetesSoftwareConfig()) { + hash = (37 * hash) + KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesSoftwareConfig().hashCode(); + } + switch (configCase_) { + case 2: + hash = (37 * hash) + GKE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGkeClusterConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 running the Dataproc cluster on Kubernetes.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.KubernetesClusterConfig.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(); + kubernetesNamespace_ = ""; + + if (kubernetesSoftwareConfigBuilder_ == null) { + kubernetesSoftwareConfig_ = null; + } else { + kubernetesSoftwareConfig_ = null; + kubernetesSoftwareConfigBuilder_ = null; + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfig build() { + com.google.cloud.dataproc.v1.KubernetesClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { + com.google.cloud.dataproc.v1.KubernetesClusterConfig result = + new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); + result.kubernetesNamespace_ = kubernetesNamespace_; + if (configCase_ == 2) { + if (gkeClusterConfigBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = gkeClusterConfigBuilder_.build(); + } + } + if (kubernetesSoftwareConfigBuilder_ == null) { + result.kubernetesSoftwareConfig_ = kubernetesSoftwareConfig_; + } else { + result.kubernetesSoftwareConfig_ = kubernetesSoftwareConfigBuilder_.build(); + } + result.configCase_ = configCase_; + 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.dataproc.v1.KubernetesClusterConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig other) { + if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) + return this; + if (!other.getKubernetesNamespace().isEmpty()) { + kubernetesNamespace_ = other.kubernetesNamespace_; + onChanged(); + } + if (other.hasKubernetesSoftwareConfig()) { + mergeKubernetesSoftwareConfig(other.getKubernetesSoftwareConfig()); + } + switch (other.getConfigCase()) { + case GKE_CLUSTER_CONFIG: + { + mergeGkeClusterConfig(other.getGkeClusterConfig()); + break; + } + case CONFIG_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.dataproc.v1.KubernetesClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int configCase_ = 0; + private java.lang.Object config_; + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + private java.lang.Object kubernetesNamespace_ = ""; + /** + * + * + *
+     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+     * does not exist, it is created. If it exists, Dataproc
+     * verifies that another Dataproc VirtualCluster is not installed
+     * into it. If not specified, the name of the Dataproc Cluster is used.
+     * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kubernetesNamespace. + */ + public java.lang.String getKubernetesNamespace() { + java.lang.Object ref = kubernetesNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+     * does not exist, it is created. If it exists, Dataproc
+     * verifies that another Dataproc VirtualCluster is not installed
+     * into it. If not specified, the name of the Dataproc Cluster is used.
+     * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kubernetesNamespace. + */ + public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { + java.lang.Object ref = kubernetesNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+     * does not exist, it is created. If it exists, Dataproc
+     * verifies that another Dataproc VirtualCluster is not installed
+     * into it. If not specified, the name of the Dataproc Cluster is used.
+     * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kubernetesNamespace to set. + * @return This builder for chaining. + */ + public Builder setKubernetesNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kubernetesNamespace_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+     * does not exist, it is created. If it exists, Dataproc
+     * verifies that another Dataproc VirtualCluster is not installed
+     * into it. If not specified, the name of the Dataproc Cluster is used.
+     * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKubernetesNamespace() { + + kubernetesNamespace_ = getDefaultInstance().getKubernetesNamespace(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+     * does not exist, it is created. If it exists, Dataproc
+     * verifies that another Dataproc VirtualCluster is not installed
+     * into it. If not specified, the name of the Dataproc Cluster is used.
+     * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kubernetesNamespace to set. + * @return This builder for chaining. + */ + public Builder setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kubernetesNamespace_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + gkeClusterConfigBuilder_; + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + @java.lang.Override + public boolean hasGkeClusterConfig() { + return configCase_ == 2; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gkeClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { + if (gkeClusterConfigBuilder_ == null) { + if (configCase_ == 2) { + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + } + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } else { + if (configCase_ == 2) { + return gkeClusterConfigBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { + if (gkeClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + gkeClusterConfigBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGkeClusterConfig( + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { + if (gkeClusterConfigBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + gkeClusterConfigBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 2; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { + if (gkeClusterConfigBuilder_ == null) { + if (configCase_ == 2 + && config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { + config_ = + com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder( + (com.google.cloud.dataproc.v1.GkeClusterConfig) config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 2) { + gkeClusterConfigBuilder_.mergeFrom(value); + } + gkeClusterConfigBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGkeClusterConfig() { + if (gkeClusterConfigBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + gkeClusterConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { + return getGkeClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { + if ((configCase_ == 2) && (gkeClusterConfigBuilder_ != null)) { + return gkeClusterConfigBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; + } + return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on GKE.
+     * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> + getGkeClusterConfigFieldBuilder() { + if (gkeClusterConfigBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); + } + gkeClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.GkeClusterConfig, + com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( + (com.google.cloud.dataproc.v1.GkeClusterConfig) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 2; + onChanged(); + ; + return gkeClusterConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> + kubernetesSoftwareConfigBuilder_; + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesSoftwareConfig field is set. + */ + public boolean hasKubernetesSoftwareConfig() { + return kubernetesSoftwareConfigBuilder_ != null || kubernetesSoftwareConfig_ != null; + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesSoftwareConfig. + */ + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { + if (kubernetesSoftwareConfigBuilder_ == null) { + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; + } else { + return kubernetesSoftwareConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKubernetesSoftwareConfig( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + if (kubernetesSoftwareConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesSoftwareConfig_ = value; + onChanged(); + } else { + kubernetesSoftwareConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKubernetesSoftwareConfig( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder builderForValue) { + if (kubernetesSoftwareConfigBuilder_ == null) { + kubernetesSoftwareConfig_ = builderForValue.build(); + onChanged(); + } else { + kubernetesSoftwareConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeKubernetesSoftwareConfig( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { + if (kubernetesSoftwareConfigBuilder_ == null) { + if (kubernetesSoftwareConfig_ != null) { + kubernetesSoftwareConfig_ = + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder( + kubernetesSoftwareConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubernetesSoftwareConfig_ = value; + } + onChanged(); + } else { + kubernetesSoftwareConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearKubernetesSoftwareConfig() { + if (kubernetesSoftwareConfigBuilder_ == null) { + kubernetesSoftwareConfig_ = null; + onChanged(); + } else { + kubernetesSoftwareConfig_ = null; + kubernetesSoftwareConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder + getKubernetesSoftwareConfigBuilder() { + + onChanged(); + return getKubernetesSoftwareConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder() { + if (kubernetesSoftwareConfigBuilder_ != null) { + return kubernetesSoftwareConfigBuilder_.getMessageOrBuilder(); + } else { + return kubernetesSoftwareConfig_ == null + ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() + : kubernetesSoftwareConfig_; + } + } + /** + * + * + *
+     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> + getKubernetesSoftwareConfigFieldBuilder() { + if (kubernetesSoftwareConfigBuilder_ == null) { + kubernetesSoftwareConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( + getKubernetesSoftwareConfig(), getParentForChildren(), isClean()); + kubernetesSoftwareConfig_ = null; + } + return kubernetesSoftwareConfigBuilder_; + } + + @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.dataproc.v1.KubernetesClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) + private static final com.google.cloud.dataproc.v1.KubernetesClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(); + } + + public static com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesClusterConfig(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.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java new file mode 100644 index 00000000..ab45cd88 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java @@ -0,0 +1,141 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface KubernetesClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+   * does not exist, it is created. If it exists, Dataproc
+   * verifies that another Dataproc VirtualCluster is not installed
+   * into it. If not specified, the name of the Dataproc Cluster is used.
+   * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kubernetesNamespace. + */ + java.lang.String getKubernetesNamespace(); + /** + * + * + *
+   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
+   * does not exist, it is created. If it exists, Dataproc
+   * verifies that another Dataproc VirtualCluster is not installed
+   * into it. If not specified, the name of the Dataproc Cluster is used.
+   * 
+ * + * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kubernetesNamespace. + */ + com.google.protobuf.ByteString getKubernetesNamespaceBytes(); + + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gkeClusterConfig field is set. + */ + boolean hasGkeClusterConfig(); + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gkeClusterConfig. + */ + com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on GKE.
+   * 
+ * + * + * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesSoftwareConfig field is set. + */ + boolean hasKubernetesSoftwareConfig(); + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesSoftwareConfig. + */ + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig(); + /** + * + * + *
+   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder + getKubernetesSoftwareConfigOrBuilder(); + + public com.google.cloud.dataproc.v1.KubernetesClusterConfig.ConfigCase getConfigCase(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java new file mode 100644 index 00000000..9780b0ba --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java @@ -0,0 +1,1195 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * The software configuration for this Dataproc cluster running on Kubernetes.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} + */ +public final class KubernetesSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) + KubernetesSoftwareConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use KubernetesSoftwareConfig.newBuilder() to construct. + private KubernetesSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KubernetesSoftwareConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KubernetesSoftwareConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private KubernetesSoftwareConfig( + 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)) { + componentVersion_ = + com.google.protobuf.MapField.newMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry componentVersion__ = + input.readMessage( + ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + componentVersion_ + .getMutableMap() + .put(componentVersion__.getKey(), componentVersion__.getValue()); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + 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.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetComponentVersion(); + case 2: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + } + + public static final int COMPONENT_VERSION_FIELD_NUMBER = 1; + + private static final class ComponentVersionDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField componentVersion_; + + private com.google.protobuf.MapField + internalGetComponentVersion() { + if (componentVersion_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); + } + return componentVersion_; + } + + public int getComponentVersionCount() { + return internalGetComponentVersion().getMap().size(); + } + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public boolean containsComponentVersion(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetComponentVersion().getMap().containsKey(key); + } + /** Use {@link #getComponentVersionMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getComponentVersion() { + return getComponentVersionMap(); + } + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.util.Map getComponentVersionMap() { + return internalGetComponentVersion().getMap(); + } + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.lang.String getComponentVersionOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetComponentVersion().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.lang.String getComponentVersionOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetComponentVersion().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.lang.String getPropertiesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetComponentVersion(), ComponentVersionDefaultEntryHolder.defaultEntry, 1); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetComponentVersion().getMap().entrySet()) { + com.google.protobuf.MapEntry componentVersion__ = + ComponentVersionDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, componentVersion__); + } + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); + } + 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.dataproc.v1.KubernetesSoftwareConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other = + (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj; + + if (!internalGetComponentVersion().equals(other.internalGetComponentVersion())) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) 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 (!internalGetComponentVersion().getMap().isEmpty()) { + hash = (37 * hash) + COMPONENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + internalGetComponentVersion().hashCode(); + } + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 software configuration for this Dataproc cluster running on Kubernetes.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) + com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetComponentVersion(); + case 2: + return internalGetProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableComponentVersion(); + case 2: + return internalGetMutableProperties(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.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(); + internalGetMutableComponentVersion().clear(); + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig build() { + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { + com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = + new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); + int from_bitField0_ = bitField0_; + result.componentVersion_ = internalGetComponentVersion(); + result.componentVersion_.makeImmutable(); + result.properties_ = internalGetProperties(); + result.properties_.makeImmutable(); + 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.dataproc.v1.KubernetesSoftwareConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other) { + if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) + return this; + internalGetMutableComponentVersion().mergeFrom(other.internalGetComponentVersion()); + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + 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.dataproc.v1.KubernetesSoftwareConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField componentVersion_; + + private com.google.protobuf.MapField + internalGetComponentVersion() { + if (componentVersion_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); + } + return componentVersion_; + } + + private com.google.protobuf.MapField + internalGetMutableComponentVersion() { + onChanged(); + ; + if (componentVersion_ == null) { + componentVersion_ = + com.google.protobuf.MapField.newMapField( + ComponentVersionDefaultEntryHolder.defaultEntry); + } + if (!componentVersion_.isMutable()) { + componentVersion_ = componentVersion_.copy(); + } + return componentVersion_; + } + + public int getComponentVersionCount() { + return internalGetComponentVersion().getMap().size(); + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public boolean containsComponentVersion(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetComponentVersion().getMap().containsKey(key); + } + /** Use {@link #getComponentVersionMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getComponentVersion() { + return getComponentVersionMap(); + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.util.Map getComponentVersionMap() { + return internalGetComponentVersion().getMap(); + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.lang.String getComponentVersionOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetComponentVersion().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + @java.lang.Override + public java.lang.String getComponentVersionOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetComponentVersion().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearComponentVersion() { + internalGetMutableComponentVersion().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + public Builder removeComponentVersion(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableComponentVersion().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableComponentVersion() { + return internalGetMutableComponentVersion().getMutableMap(); + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + public Builder putComponentVersion(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableComponentVersion().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The components that should be installed in this Dataproc cluster. The key
+     * must be a string from the KubernetesComponent enumeration. The value is
+     * the version of the software to be installed.
+     * At least one entry must be specified.
+     * 
+ * + * map<string, string> component_version = 1; + */ + public Builder putAllComponentVersion( + java.util.Map values) { + internalGetMutableComponentVersion().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + private com.google.protobuf.MapField + internalGetMutableProperties() { + onChanged(); + ; + if (properties_ == null) { + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + if (!properties_.isMutable()) { + properties_ = properties_.copy(); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetProperties().getMap().containsKey(key); + } + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.lang.String getPropertiesOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + @java.lang.Override + public java.lang.String getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProperties() { + internalGetMutableProperties().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + return internalGetMutableProperties().getMutableMap(); + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + public Builder putProperties(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableProperties().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The properties to set on daemon config files.
+     * Property keys are specified in `prefix:property` format, for example
+     * `spark:spark.kubernetes.container.image`. The following are supported
+     * prefixes and their mappings:
+     * * spark:  `spark-defaults.conf`
+     * For more information, see [Cluster
+     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+     * 
+ * + * map<string, string> properties = 2; + */ + public Builder putAllProperties(java.util.Map values) { + internalGetMutableProperties().getMutableMap().putAll(values); + 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.dataproc.v1.KubernetesSoftwareConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig) + private static final com.google.cloud.dataproc.v1.KubernetesSoftwareConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(); + } + + public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesSoftwareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesSoftwareConfig(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.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java new file mode 100644 index 00000000..05673c71 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java @@ -0,0 +1,179 @@ +/* + * 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/dataproc/v1/shared.proto + +package com.google.cloud.dataproc.v1; + +public interface KubernetesSoftwareConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesSoftwareConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + int getComponentVersionCount(); + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + boolean containsComponentVersion(java.lang.String key); + /** Use {@link #getComponentVersionMap()} instead. */ + @java.lang.Deprecated + java.util.Map getComponentVersion(); + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + java.util.Map getComponentVersionMap(); + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + java.lang.String getComponentVersionOrDefault( + java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The components that should be installed in this Dataproc cluster. The key
+   * must be a string from the KubernetesComponent enumeration. The value is
+   * the version of the software to be installed.
+   * At least one entry must be specified.
+   * 
+ * + * map<string, string> component_version = 1; + */ + java.lang.String getComponentVersionOrThrow(java.lang.String key); + + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + int getPropertiesCount(); + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getProperties(); + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + java.util.Map getPropertiesMap(); + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The properties to set on daemon config files.
+   * Property keys are specified in `prefix:property` format, for example
+   * `spark:spark.kubernetes.container.image`. The following are supported
+   * prefixes and their mappings:
+   * * spark:  `spark-defaults.conf`
+   * For more information, see [Cluster
+   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
+   * 
+ * + * map<string, string> properties = 2; + */ + java.lang.String getPropertiesOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java index dede2784..d1d12ca9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -59,6 +59,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -94,17 +134,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001*\277\001\n\tComponent\022\031\n\025COMPON" - + "ENT_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKE" - + "R\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014" - + "HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022" - + "\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELIN\020\004\022\r\n\tZ" - + "OOKEEPER\020\010*J\n\rFailureAction\022\036\n\032FAILURE_A" - + "CTION_UNSPECIFIED\020\000\022\r\n\tNO_ACTION\020\001\022\n\n\006DE" - + "LETE\020\002Bo\n\034com.google.cloud.dataproc.v1B\013" - + "SharedProtoP\001Z@google.golang.org/genprot" - + "o/googleapis/cloud/dataproc/v1;dataprocb" - + "\006proto3" + + "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" + + "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" + + "ol_target\030\003 \003(\0132+.google.cloud.dataproc." + + "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" + + "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " + + "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" + + "oogle.cloud.dataproc.v1.GkeClusterConfig" + + "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " + + "\001(\01322.google.cloud.dataproc.v1.Kubernete" + + "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" + + "netesSoftwareConfig\022c\n\021component_version" + + "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" + + "etesSoftwareConfig.ComponentVersionEntry" + + "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" + + "proc.v1.KubernetesSoftwareConfig.Propert" + + "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" + + "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" + + "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" + + "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" + + "_pool_config\030\003 \001(\0132+.google.cloud.datapr" + + "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" + + "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" + + "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" + + "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " + + "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" + + "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" + + "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" + + "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" + + "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" + + "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" + + "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" + + "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" + + "gle.cloud.dataproc.v1.GkeNodePoolConfig." + + "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" + + "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" + + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " + + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" + + "PoolAutoscalingConfig\022\026\n\016min_node_count\030" + + "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" + + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" + + "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" + + "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" + + "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" + + "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" + + "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" + + "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." + + "dataproc.v1B\013SharedProtoP\001Z@google.golan" + + "g.org/genproto/googleapis/cloud/dataproc" + + "/v1;dataprocb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -176,6 +256,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, + new java.lang.String[] { + "GkeClusterTarget", "NodePoolTarget", + }); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, + new java.lang.String[] { + "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, + new java.lang.String[] { + "ComponentVersion", "Properties", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, + new java.lang.String[] { + "NodePool", "Roles", "NodePoolConfig", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, + new java.lang.String[] { + "Config", "Locations", "Autoscaling", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, + new java.lang.String[] { + "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, + new java.lang.String[] { + "AcceleratorCount", "AcceleratorType", + }); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, + new java.lang.String[] { + "MinNodeCount", "MaxNodeCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java new file mode 100644 index 00000000..808a0cc1 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java @@ -0,0 +1,1698 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Dataproc cluster config for a cluster that does not directly control the
+ * underlying compute resources, such as a [Dataproc-on-GKE
+ * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} + */ +public final class VirtualClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.VirtualClusterConfig) + VirtualClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VirtualClusterConfig.newBuilder() to construct. + private VirtualClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VirtualClusterConfig() { + stagingBucket_ = ""; + tempBucket_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VirtualClusterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VirtualClusterConfig( + 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(); + + stagingBucket_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + tempBucket_ = s; + break; + } + case 50: + { + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder subBuilder = null; + if (infrastructureConfigCase_ == 6) { + subBuilder = + ((com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) + .toBuilder(); + } + infrastructureConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.KubernetesClusterConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + infrastructureConfig_ = subBuilder.buildPartial(); + } + infrastructureConfigCase_ = 6; + break; + } + case 58: + { + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder subBuilder = null; + if (auxiliaryServicesConfig_ != null) { + subBuilder = auxiliaryServicesConfig_.toBuilder(); + } + auxiliaryServicesConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auxiliaryServicesConfig_); + auxiliaryServicesConfig_ = 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.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.VirtualClusterConfig.class, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); + } + + private int infrastructureConfigCase_ = 0; + private java.lang.Object infrastructureConfig_; + + public enum InfrastructureConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + KUBERNETES_CLUSTER_CONFIG(6), + INFRASTRUCTURECONFIG_NOT_SET(0); + private final int value; + + private InfrastructureConfigCase(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 InfrastructureConfigCase valueOf(int value) { + return forNumber(value); + } + + public static InfrastructureConfigCase forNumber(int value) { + switch (value) { + case 6: + return KUBERNETES_CLUSTER_CONFIG; + case 0: + return INFRASTRUCTURECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InfrastructureConfigCase getInfrastructureConfigCase() { + return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); + } + + public static final int STAGING_BUCKET_FIELD_NUMBER = 1; + private volatile java.lang.Object stagingBucket_; + /** + * + * + *
+   * Optional. A Storage bucket used to stage job
+   * dependencies, config files, and job driver console output.
+   * If you do not specify a staging bucket, Cloud
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's staging bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stagingBucket. + */ + @java.lang.Override + public java.lang.String getStagingBucket() { + java.lang.Object ref = stagingBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stagingBucket_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A Storage bucket used to stage job
+   * dependencies, config files, and job driver console output.
+   * If you do not specify a staging bucket, Cloud
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's staging bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stagingBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStagingBucketBytes() { + java.lang.Object ref = stagingBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stagingBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMP_BUCKET_FIELD_NUMBER = 2; + private volatile java.lang.Object tempBucket_; + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+   * such as Spark and MapReduce history files.
+   * If you do not specify a temp bucket,
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's temp bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket. The default bucket has
+   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+   * bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + @java.lang.Override + public java.lang.String getTempBucket() { + java.lang.Object ref = tempBucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tempBucket_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+   * such as Spark and MapReduce history files.
+   * If you do not specify a temp bucket,
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's temp bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket. The default bucket has
+   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+   * bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTempBucketBytes() { + java.lang.Object ref = tempBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tempBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER = 6; + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the kubernetesClusterConfig field is set. + */ + @java.lang.Override + public boolean hasKubernetesClusterConfig() { + return infrastructureConfigCase_ == 6; + } + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The kubernetesClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { + if (infrastructureConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + } + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder() { + if (infrastructureConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + } + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + + public static final int AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auxiliaryServicesConfig field is set. + */ + @java.lang.Override + public boolean hasAuxiliaryServicesConfig() { + return auxiliaryServicesConfig_ != null; + } + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auxiliaryServicesConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; + } + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder() { + return getAuxiliaryServicesConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return 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(stagingBucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stagingBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); + } + if (infrastructureConfigCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + } + if (auxiliaryServicesConfig_ != null) { + output.writeMessage(7, getAuxiliaryServicesConfig()); + } + 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(stagingBucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stagingBucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); + } + if (infrastructureConfigCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); + } + if (auxiliaryServicesConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAuxiliaryServicesConfig()); + } + 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.dataproc.v1.VirtualClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.VirtualClusterConfig other = + (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; + + if (!getStagingBucket().equals(other.getStagingBucket())) return false; + if (!getTempBucket().equals(other.getTempBucket())) return false; + if (hasAuxiliaryServicesConfig() != other.hasAuxiliaryServicesConfig()) return false; + if (hasAuxiliaryServicesConfig()) { + if (!getAuxiliaryServicesConfig().equals(other.getAuxiliaryServicesConfig())) return false; + } + if (!getInfrastructureConfigCase().equals(other.getInfrastructureConfigCase())) return false; + switch (infrastructureConfigCase_) { + case 6: + if (!getKubernetesClusterConfig().equals(other.getKubernetesClusterConfig())) 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(); + hash = (37 * hash) + STAGING_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getStagingBucket().hashCode(); + hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getTempBucket().hashCode(); + if (hasAuxiliaryServicesConfig()) { + hash = (37 * hash) + AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuxiliaryServicesConfig().hashCode(); + } + switch (infrastructureConfigCase_) { + case 6: + hash = (37 * hash) + KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesClusterConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Dataproc cluster config for a cluster that does not directly control the
+   * underlying compute resources, such as a [Dataproc-on-GKE
+   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.VirtualClusterConfig) + com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.VirtualClusterConfig.class, + com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.VirtualClusterConfig.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(); + stagingBucket_ = ""; + + tempBucket_ = ""; + + if (auxiliaryServicesConfigBuilder_ == null) { + auxiliaryServicesConfig_ = null; + } else { + auxiliaryServicesConfig_ = null; + auxiliaryServicesConfigBuilder_ = null; + } + infrastructureConfigCase_ = 0; + infrastructureConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.VirtualClusterConfig build() { + com.google.cloud.dataproc.v1.VirtualClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() { + com.google.cloud.dataproc.v1.VirtualClusterConfig result = + new com.google.cloud.dataproc.v1.VirtualClusterConfig(this); + result.stagingBucket_ = stagingBucket_; + result.tempBucket_ = tempBucket_; + if (infrastructureConfigCase_ == 6) { + if (kubernetesClusterConfigBuilder_ == null) { + result.infrastructureConfig_ = infrastructureConfig_; + } else { + result.infrastructureConfig_ = kubernetesClusterConfigBuilder_.build(); + } + } + if (auxiliaryServicesConfigBuilder_ == null) { + result.auxiliaryServicesConfig_ = auxiliaryServicesConfig_; + } else { + result.auxiliaryServicesConfig_ = auxiliaryServicesConfigBuilder_.build(); + } + result.infrastructureConfigCase_ = infrastructureConfigCase_; + 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.dataproc.v1.VirtualClusterConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other) { + if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance()) + return this; + if (!other.getStagingBucket().isEmpty()) { + stagingBucket_ = other.stagingBucket_; + onChanged(); + } + if (!other.getTempBucket().isEmpty()) { + tempBucket_ = other.tempBucket_; + onChanged(); + } + if (other.hasAuxiliaryServicesConfig()) { + mergeAuxiliaryServicesConfig(other.getAuxiliaryServicesConfig()); + } + switch (other.getInfrastructureConfigCase()) { + case KUBERNETES_CLUSTER_CONFIG: + { + mergeKubernetesClusterConfig(other.getKubernetesClusterConfig()); + break; + } + case INFRASTRUCTURECONFIG_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.dataproc.v1.VirtualClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.VirtualClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int infrastructureConfigCase_ = 0; + private java.lang.Object infrastructureConfig_; + + public InfrastructureConfigCase getInfrastructureConfigCase() { + return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); + } + + public Builder clearInfrastructureConfig() { + infrastructureConfigCase_ = 0; + infrastructureConfig_ = null; + onChanged(); + return this; + } + + private java.lang.Object stagingBucket_ = ""; + /** + * + * + *
+     * Optional. A Storage bucket used to stage job
+     * dependencies, config files, and job driver console output.
+     * If you do not specify a staging bucket, Cloud
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's staging bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stagingBucket. + */ + public java.lang.String getStagingBucket() { + java.lang.Object ref = stagingBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stagingBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A Storage bucket used to stage job
+     * dependencies, config files, and job driver console output.
+     * If you do not specify a staging bucket, Cloud
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's staging bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stagingBucket. + */ + public com.google.protobuf.ByteString getStagingBucketBytes() { + java.lang.Object ref = stagingBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stagingBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A Storage bucket used to stage job
+     * dependencies, config files, and job driver console output.
+     * If you do not specify a staging bucket, Cloud
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's staging bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The stagingBucket to set. + * @return This builder for chaining. + */ + public Builder setStagingBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stagingBucket_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Storage bucket used to stage job
+     * dependencies, config files, and job driver console output.
+     * If you do not specify a staging bucket, Cloud
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's staging bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStagingBucket() { + + stagingBucket_ = getDefaultInstance().getStagingBucket(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Storage bucket used to stage job
+     * dependencies, config files, and job driver console output.
+     * If you do not specify a staging bucket, Cloud
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's staging bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for stagingBucket to set. + * @return This builder for chaining. + */ + public Builder setStagingBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stagingBucket_ = value; + onChanged(); + return this; + } + + private java.lang.Object tempBucket_ = ""; + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+     * such as Spark and MapReduce history files.
+     * If you do not specify a temp bucket,
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's temp bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket. The default bucket has
+     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+     * bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + public java.lang.String getTempBucket() { + java.lang.Object ref = tempBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tempBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+     * such as Spark and MapReduce history files.
+     * If you do not specify a temp bucket,
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's temp bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket. The default bucket has
+     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+     * bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + public com.google.protobuf.ByteString getTempBucketBytes() { + java.lang.Object ref = tempBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tempBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+     * such as Spark and MapReduce history files.
+     * If you do not specify a temp bucket,
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's temp bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket. The default bucket has
+     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+     * bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tempBucket to set. + * @return This builder for chaining. + */ + public Builder setTempBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tempBucket_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+     * such as Spark and MapReduce history files.
+     * If you do not specify a temp bucket,
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's temp bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket. The default bucket has
+     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+     * bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTempBucket() { + + tempBucket_ = getDefaultInstance().getTempBucket(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+     * such as Spark and MapReduce history files.
+     * If you do not specify a temp bucket,
+     * Dataproc will determine a Cloud Storage location (US,
+     * ASIA, or EU) for your cluster's temp bucket according to the
+     * Compute Engine zone where your cluster is deployed, and then create
+     * and manage this project-level, per-location bucket. The default bucket has
+     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+     * bucket (see
+     * [Dataproc staging and temp
+     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+     * a Cloud Storage bucket.**
+     * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tempBucket to set. + * @return This builder for chaining. + */ + public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tempBucket_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> + kubernetesClusterConfigBuilder_; + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the kubernetesClusterConfig field is set. + */ + @java.lang.Override + public boolean hasKubernetesClusterConfig() { + return infrastructureConfigCase_ == 6; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The kubernetesClusterConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { + if (kubernetesClusterConfigBuilder_ == null) { + if (infrastructureConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + } + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } else { + if (infrastructureConfigCase_ == 6) { + return kubernetesClusterConfigBuilder_.getMessage(); + } + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKubernetesClusterConfig( + com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + if (kubernetesClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + infrastructureConfig_ = value; + onChanged(); + } else { + kubernetesClusterConfigBuilder_.setMessage(value); + } + infrastructureConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setKubernetesClusterConfig( + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder builderForValue) { + if (kubernetesClusterConfigBuilder_ == null) { + infrastructureConfig_ = builderForValue.build(); + onChanged(); + } else { + kubernetesClusterConfigBuilder_.setMessage(builderForValue.build()); + } + infrastructureConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeKubernetesClusterConfig( + com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { + if (kubernetesClusterConfigBuilder_ == null) { + if (infrastructureConfigCase_ == 6 + && infrastructureConfig_ + != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { + infrastructureConfig_ = + com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder( + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + infrastructureConfig_ = value; + } + onChanged(); + } else { + if (infrastructureConfigCase_ == 6) { + kubernetesClusterConfigBuilder_.mergeFrom(value); + } + kubernetesClusterConfigBuilder_.setMessage(value); + } + infrastructureConfigCase_ = 6; + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearKubernetesClusterConfig() { + if (kubernetesClusterConfigBuilder_ == null) { + if (infrastructureConfigCase_ == 6) { + infrastructureConfigCase_ = 0; + infrastructureConfig_ = null; + onChanged(); + } + } else { + if (infrastructureConfigCase_ == 6) { + infrastructureConfigCase_ = 0; + infrastructureConfig_ = null; + } + kubernetesClusterConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder + getKubernetesClusterConfigBuilder() { + return getKubernetesClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder() { + if ((infrastructureConfigCase_ == 6) && (kubernetesClusterConfigBuilder_ != null)) { + return kubernetesClusterConfigBuilder_.getMessageOrBuilder(); + } else { + if (infrastructureConfigCase_ == 6) { + return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; + } + return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Required. The configuration for running the Dataproc cluster on Kubernetes.
+     * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> + getKubernetesClusterConfigFieldBuilder() { + if (kubernetesClusterConfigBuilder_ == null) { + if (!(infrastructureConfigCase_ == 6)) { + infrastructureConfig_ = + com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); + } + kubernetesClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.KubernetesClusterConfig, + com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( + (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_, + getParentForChildren(), + isClean()); + infrastructureConfig_ = null; + } + infrastructureConfigCase_ = 6; + onChanged(); + ; + return kubernetesClusterConfigBuilder_; + } + + private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> + auxiliaryServicesConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auxiliaryServicesConfig field is set. + */ + public boolean hasAuxiliaryServicesConfig() { + return auxiliaryServicesConfigBuilder_ != null || auxiliaryServicesConfig_ != null; + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auxiliaryServicesConfig. + */ + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { + if (auxiliaryServicesConfigBuilder_ == null) { + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; + } else { + return auxiliaryServicesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuxiliaryServicesConfig( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + if (auxiliaryServicesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auxiliaryServicesConfig_ = value; + onChanged(); + } else { + auxiliaryServicesConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAuxiliaryServicesConfig( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder builderForValue) { + if (auxiliaryServicesConfigBuilder_ == null) { + auxiliaryServicesConfig_ = builderForValue.build(); + onChanged(); + } else { + auxiliaryServicesConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAuxiliaryServicesConfig( + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { + if (auxiliaryServicesConfigBuilder_ == null) { + if (auxiliaryServicesConfig_ != null) { + auxiliaryServicesConfig_ = + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder( + auxiliaryServicesConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + auxiliaryServicesConfig_ = value; + } + onChanged(); + } else { + auxiliaryServicesConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAuxiliaryServicesConfig() { + if (auxiliaryServicesConfigBuilder_ == null) { + auxiliaryServicesConfig_ = null; + onChanged(); + } else { + auxiliaryServicesConfig_ = null; + auxiliaryServicesConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder + getAuxiliaryServicesConfigBuilder() { + + onChanged(); + return getAuxiliaryServicesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder() { + if (auxiliaryServicesConfigBuilder_ != null) { + return auxiliaryServicesConfigBuilder_.getMessageOrBuilder(); + } else { + return auxiliaryServicesConfig_ == null + ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() + : auxiliaryServicesConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration of auxiliary services used by this cluster.
+     * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> + getAuxiliaryServicesConfigFieldBuilder() { + if (auxiliaryServicesConfigBuilder_ == null) { + auxiliaryServicesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( + getAuxiliaryServicesConfig(), getParentForChildren(), isClean()); + auxiliaryServicesConfig_ = null; + } + return auxiliaryServicesConfigBuilder_; + } + + @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.dataproc.v1.VirtualClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.VirtualClusterConfig) + private static final com.google.cloud.dataproc.v1.VirtualClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.VirtualClusterConfig(); + } + + public static com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VirtualClusterConfig(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.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java new file mode 100644 index 00000000..cd4563e8 --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java @@ -0,0 +1,206 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface VirtualClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.VirtualClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A Storage bucket used to stage job
+   * dependencies, config files, and job driver console output.
+   * If you do not specify a staging bucket, Cloud
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's staging bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stagingBucket. + */ + java.lang.String getStagingBucket(); + /** + * + * + *
+   * Optional. A Storage bucket used to stage job
+   * dependencies, config files, and job driver console output.
+   * If you do not specify a staging bucket, Cloud
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's staging bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stagingBucket. + */ + com.google.protobuf.ByteString getStagingBucketBytes(); + + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+   * such as Spark and MapReduce history files.
+   * If you do not specify a temp bucket,
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's temp bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket. The default bucket has
+   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+   * bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tempBucket. + */ + java.lang.String getTempBucket(); + /** + * + * + *
+   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
+   * such as Spark and MapReduce history files.
+   * If you do not specify a temp bucket,
+   * Dataproc will determine a Cloud Storage location (US,
+   * ASIA, or EU) for your cluster's temp bucket according to the
+   * Compute Engine zone where your cluster is deployed, and then create
+   * and manage this project-level, per-location bucket. The default bucket has
+   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
+   * bucket (see
+   * [Dataproc staging and temp
+   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
+   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
+   * a Cloud Storage bucket.**
+   * 
+ * + * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tempBucket. + */ + com.google.protobuf.ByteString getTempBucketBytes(); + + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the kubernetesClusterConfig field is set. + */ + boolean hasKubernetesClusterConfig(); + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The kubernetesClusterConfig. + */ + com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig(); + /** + * + * + *
+   * Required. The configuration for running the Dataproc cluster on Kubernetes.
+   * 
+ * + * + * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder + getKubernetesClusterConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the auxiliaryServicesConfig field is set. + */ + boolean hasAuxiliaryServicesConfig(); + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The auxiliaryServicesConfig. + */ + com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig(); + /** + * + * + *
+   * Optional. Configuration of auxiliary services used by this cluster.
+   * 
+ * + * + * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder + getAuxiliaryServicesConfigOrBuilder(); + + public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase + getInfrastructureConfigCase(); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 0bb1aaef..0b9f0a02 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -167,6 +167,15 @@ message Cluster { // when clusters are updated. ClusterConfig config = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The virtual cluster config, used when creating a Dataproc cluster that + // does not directly control the underlying compute resources, for example, + // when creating a [Dataproc-on-GKE + // cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). + // Note that Dataproc may set default values, and values may change when + // clusters are updated. Exactly one of config or virtualClusterConfig must be + // specified. + VirtualClusterConfig virtual_cluster_config = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The labels to associate with this cluster. // Label **keys** must contain 1 to 63 characters, and must conform to // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). @@ -275,33 +284,56 @@ message ClusterConfig { // Optional. Metastore configuration. MetastoreConfig metastore_config = 20 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. BETA. The Kubernetes Engine config for Dataproc clusters deployed to - // Kubernetes. Setting this is considered mutually exclusive with Compute - // Engine-based options such as `gce_cluster_config`, `master_config`, - // `worker_config`, `secondary_worker_config`, and `autoscaling_config`. - GkeClusterConfig gke_cluster_config = 21 [(google.api.field_behavior) = OPTIONAL]; } -// The GKE config for this cluster. -message GkeClusterConfig { - // A full, namespace-isolated deployment target for an existing GKE cluster. - message NamespacedGkeDeploymentTarget { - // Optional. The target GKE cluster to deploy to. - // Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' - string target_gke_cluster = 1 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "container.googleapis.com/Cluster" - } - ]; - - // Optional. A namespace within the GKE cluster to deploy into. - string cluster_namespace = 2 [(google.api.field_behavior) = OPTIONAL]; +// Dataproc cluster config for a cluster that does not directly control the +// underlying compute resources, such as a [Dataproc-on-GKE +// cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). +message VirtualClusterConfig { + // Optional. A Storage bucket used to stage job + // dependencies, config files, and job driver console output. + // If you do not specify a staging bucket, Cloud + // Dataproc will determine a Cloud Storage location (US, + // ASIA, or EU) for your cluster's staging bucket according to the + // Compute Engine zone where your cluster is deployed, and then create + // and manage this project-level, per-location bucket (see + // [Dataproc staging and temp + // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + // a Cloud Storage bucket.** + string staging_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, + // such as Spark and MapReduce history files. + // If you do not specify a temp bucket, + // Dataproc will determine a Cloud Storage location (US, + // ASIA, or EU) for your cluster's temp bucket according to the + // Compute Engine zone where your cluster is deployed, and then create + // and manage this project-level, per-location bucket. The default bucket has + // a TTL of 90 days, but you can use any TTL (or none) if you specify a + // bucket (see + // [Dataproc staging and temp + // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). + // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to + // a Cloud Storage bucket.** + string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; + + oneof infrastructure_config { + // Required. The configuration for running the Dataproc cluster on Kubernetes. + KubernetesClusterConfig kubernetes_cluster_config = 6 [(google.api.field_behavior) = REQUIRED]; } - // Optional. A target for the deployment. - NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration of auxiliary services used by this cluster. + AuxiliaryServicesConfig auxiliary_services_config = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Auxiliary services configuration for a Cluster. +message AuxiliaryServicesConfig { + // Optional. The Hive Metastore configuration for this workload. + MetastoreConfig metastore_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Spark History Server configuration for the workload. + SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; } // Endpoint config for this cluster @@ -660,8 +692,8 @@ message DiskConfig { // Optional. Interface type of local SSDs (default is "scsi"). // Valid values: "scsi" (Small Computer System Interface), // "nvme" (Non-Volatile Memory Express). - // See [SSD Interface - // types](https://cloud.google.com/compute/docs/disks/local-ssd#performance). + // See [local SSD + // performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -692,6 +724,10 @@ message ClusterStatus { CREATING = 1; // The cluster is currently running and healthy. It is ready for use. + // + // **Note:** The cluster state changes from "creating" to "running" status + // after the master node(s), first two primary worker nodes (and the last + // primary worker node if primary workers > 2) are running. RUNNING = 2; // The cluster encountered an error. It is not ready for use. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto index f574fe01..18796915 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -108,6 +108,179 @@ message RuntimeInfo { string diagnostic_output_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// The cluster's GKE config. +message GkeClusterConfig { + // Optional. A target GKE cluster to deploy to. It must be in the same project and + // region as the Dataproc cluster (the GKE cluster can be zonal or regional). + // Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' + string gke_cluster_target = 2 [ + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. GKE NodePools where workloads will be scheduled. At least one node pool + // must be assigned the 'default' role. Each role can be given to only a + // single NodePoolTarget. All NodePools must have the same location settings. + // If a nodePoolTarget is not specified, Dataproc constructs a default + // nodePoolTarget. + repeated GkeNodePoolTarget node_pool_target = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration for running the Dataproc cluster on Kubernetes. +message KubernetesClusterConfig { + // Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace + // does not exist, it is created. If it exists, Dataproc + // verifies that another Dataproc VirtualCluster is not installed + // into it. If not specified, the name of the Dataproc Cluster is used. + string kubernetes_namespace = 1 [(google.api.field_behavior) = OPTIONAL]; + + oneof config { + // Required. The configuration for running the Dataproc cluster on GKE. + GkeClusterConfig gke_cluster_config = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. The software configuration for this Dataproc cluster running on Kubernetes. + KubernetesSoftwareConfig kubernetes_software_config = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The software configuration for this Dataproc cluster running on Kubernetes. +message KubernetesSoftwareConfig { + // The components that should be installed in this Dataproc cluster. The key + // must be a string from the KubernetesComponent enumeration. The value is + // the version of the software to be installed. + // At least one entry must be specified. + map component_version = 1; + + // The properties to set on daemon config files. + // + // Property keys are specified in `prefix:property` format, for example + // `spark:spark.kubernetes.container.image`. The following are supported + // prefixes and their mappings: + // + // * spark: `spark-defaults.conf` + // + // For more information, see [Cluster + // properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + map properties = 2; +} + +// GKE NodePools that Dataproc workloads run on. +message GkeNodePoolTarget { + // `Role` specifies whose tasks will run on the NodePool. The roles can be + // specific to workloads. Exactly one GkeNodePoolTarget within the + // VirtualCluster must have 'default' role, which is used to run all workloads + // that are not associated with a NodePool. + enum Role { + // Role is unspecified. + ROLE_UNSPECIFIED = 0; + + // Any roles that are not directly assigned to a NodePool run on the + // `default` role's NodePool. + DEFAULT = 1; + + // Run controllers and webhooks. + CONTROLLER = 2; + + // Run spark driver. + SPARK_DRIVER = 3; + + // Run spark executors. + SPARK_EXECUTOR = 4; + } + + // Required. The target GKE NodePool. + // Format: + // 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}' + string node_pool = 1 [ + (google.api.field_behavior) = REQUIRED + ]; + + // Required. The types of role for a GKE NodePool + repeated Role roles = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The configuration for the GKE NodePool. + // + // If specified, Dataproc attempts to create a NodePool with the + // specified shape. If one with the same name already exists, it is + // verified against all specified fields. If a field differs, the + // virtual cluster creation will fail. + // + // If omitted, any NodePool with the specified name is used. If a + // NodePool with the specified name does not exist, Dataproc create a NodePool + // with default values. + GkeNodePoolConfig node_pool_config = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The configuration of a GKE NodePool used by a [Dataproc-on-GKE +// cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). +message GkeNodePoolConfig { + // Parameters that describe cluster nodes. + message GkeNodeConfig { + // Optional. The name of a Compute Engine [machine + // type](https://cloud.google.com/compute/docs/machine-types). + string machine_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the nodes are created as [preemptible VM + // instances](https://cloud.google.com/compute/docs/instances/preemptible). + bool preemptible = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of local SSD disks to attach to the node, which is limited by + // the maximum number of disks allowable per zone (see [Adding Local + // SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)). + int32 local_ssd_count = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of [hardware + // accelerators](https://cloud.google.com/compute/docs/gpus) to attach to + // each node. + repeated GkeNodePoolAcceleratorConfig accelerators = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. [Minimum CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // to be used by this instance. The instance may be scheduled on the + // specified or a newer CPU platform. Specify the friendly names of CPU + // platforms, such as "Intel Haswell"` or Intel Sandy Bridge". + string min_cpu_platform = 13 [(google.api.field_behavior) = OPTIONAL]; + } + + // A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request + // for a NodePool. + message GkeNodePoolAcceleratorConfig { + // The number of accelerator cards exposed to an instance. + int64 accelerator_count = 1; + + // The accelerator type resource namename (see GPUs on Compute Engine). + string accelerator_type = 2; + } + + // GkeNodePoolAutoscaling contains information the cluster autoscaler needs to + // adjust the size of the node pool to the current cluster usage. + message GkeNodePoolAutoscalingConfig { + // The minimum number of nodes in the NodePool. Must be >= 0 and <= + // max_node_count. + int32 min_node_count = 2; + + // The maximum number of nodes in the NodePool. Must be >= min_node_count. + // **Note:** Quota must be sufficient to scale up the cluster. + int32 max_node_count = 3; + } + + // Optional. The node pool configuration. + GkeNodeConfig config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) where + // NodePool's nodes will be located. + // + // **Note:** Currently, only one zone may be specified. + // + // If a location is not specified during NodePool creation, Dataproc will + // choose a location. + repeated string locations = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled + // only when a valid configuration is present. + GkeNodePoolAutoscalingConfig autoscaling = 4 [(google.api.field_behavior) = OPTIONAL]; +} + // Cluster components that can be activated. enum Component { // Unspecified component. Specifying this will cause Cluster creation to fail. From 425aecdfc384a2f9bef0ce1af702e949b177c657 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 22:00:44 +0000 Subject: [PATCH 386/519] ci: pull request template includes sample format (#1357) (#799) Source-Link: https://github.com/googleapis/synthtool/commit/e122cb03ea37652946651346736d99b9dcc4311f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 --- .github/.OwlBot.lock.yaml | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9786771c..9351fdfb 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b + digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 39883260..4c345b28 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few - [ ] Appropriate docs were updated (if necessary) Fixes # ☕️ + +If you write sample code, please follow the [samples format]( +https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). From 4754aa0321069b5b68bbc5cf6f237c44b317a84d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:12:21 +0100 Subject: [PATCH 387/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.4.0 (#782) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.3.0` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.0/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.0/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.4.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​240-httpsgithubcomgoogleapisjava-storagecomparev230v240-2022-02-03) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.3.0...v2.4.0) ##### Features - Change RewriteObjectRequest to specify bucket name, object name and KMS key outside of Object resource ([#​1218](https://togithub.com/googleapis/java-storage/issues/1218)) ([8789e4f](https://togithub.com/googleapis/java-storage/commit/8789e4f73a3c5b36aa93246d172d07adb24027aa)) - re-generate gapic client to include full GCS gRPC API ([#​1189](https://togithub.com/googleapis/java-storage/issues/1189)) ([3099a22](https://togithub.com/googleapis/java-storage/commit/3099a2264d8b135f602d8dd06f3e91ac5b0ecdba)) - Update definition of RewriteObjectRequest to bring to parity with JSON API support ([#​1220](https://togithub.com/googleapis/java-storage/issues/1220)) ([7845c0e](https://togithub.com/googleapis/java-storage/commit/7845c0e8be5ba150f5e835172e9341ef2efc6054)) ##### Bug Fixes - Remove post policy v4 client side validation ([#​1210](https://togithub.com/googleapis/java-storage/issues/1210)) ([631741d](https://togithub.com/googleapis/java-storage/commit/631741df96a6dddd31a38dce099f3d3ff09ca7cf)) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-storage/issues/1339)) ([#​1215](https://togithub.com/googleapis/java-storage/issues/1215)) ([deb110b](https://togithub.com/googleapis/java-storage/commit/deb110b0b5ec4a7e6963d1c1ab0e63ca58240ae1)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#​1219](https://togithub.com/googleapis/java-storage/issues/1219)) ([623e68b](https://togithub.com/googleapis/java-storage/commit/623e68b8b678df425730b6472cf34d7b78841757))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6c2e309e..975f3245 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.3.0 + 2.4.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95858de9..57b33d9e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.3.0 + 2.4.0 junit From 53caaf9f0aac0a86f339d14efaccc42254bd4c76 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:20:28 +0100 Subject: [PATCH 388/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v2.3.2 (#783) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.3.1` -> `2.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v2.3.2`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​232-httpsgithubcomgoogleapisjava-dataproccomparev231v232-2022-02-03) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d476fb80..5543ad13 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 975f3245..0612a496 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.3.1 + 2.3.2 From f0f57f454a62b5be653ee75f4186e5575699d6dc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:28:40 +0100 Subject: [PATCH 389/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.1 (#784) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.1.2` -> `3.2.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/compatibility-slim/3.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/confidence-slim/3.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 529868f7..51a9a5e8 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.2 + 3.2.1 From a054ce8fb637f3452fd641a3f4689cbac3070456 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 00:38:22 +0100 Subject: [PATCH 390/519] deps: update actions/setup-java action to v3 (#798) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v1` -> `v3` | | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v2` -> `v3` | --- ### Release Notes
actions/setup-java ### [`v3`](https://togithub.com/actions/setup-java/compare/v2...v3) [Compare Source](https://togithub.com/actions/setup-java/compare/v2...v3) ### [`v2`](https://togithub.com/actions/setup-java/compare/v1...v2) [Compare Source](https://togithub.com/actions/setup-java/compare/v1...v2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). From bfab0958ffc81615768d00bc8bc1e6af03a770e2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 03:42:26 +0100 Subject: [PATCH 391/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.4.4 (#800) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.4.0` -> `2.4.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.4/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.4/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.4.4`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​244-httpsgithubcomgoogleapisjava-storagecomparev243v244-2022-02-28) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.3...v2.4.4) ### [`v2.4.3`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​243-httpsgithubcomgoogleapisjava-storagecomparev242v243-2022-02-25) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.2...v2.4.3) ### [`v2.4.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​242-httpsgithubcomgoogleapisjava-storagecomparev241v242-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.1...v2.4.2) ### [`v2.4.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​241-httpsgithubcomgoogleapisjava-storagecomparev240v241-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.0...v2.4.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0612a496..c7e71c98 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.4.0 + 2.4.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 57b33d9e..1bad76f5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.4.0 + 2.4.4 junit From 2f7c56db340d2a30499ace5664ca1a9ec55b4248 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 04:20:27 +0100 Subject: [PATCH 392/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#801) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.1` -> `3.2.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 51a9a5e8..6f4e5205 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.1 + 3.2.2 From 4b4092b14c592b09202e484028a696a408f976d0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 19:08:24 +0100 Subject: [PATCH 393/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 (#804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.7.0` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.8.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-shared-dependenciescomparev270v280-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.7.0...v2.8.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​602](https://togithub.com/googleapis/java-shared-dependencies/issues/602)) ([85b132f](https://togithub.com/googleapis/java-shared-dependencies/commit/85b132f5830772646025b6a9fbbb970a941b86b5)) - update dependency com.google.api:api-common to v2.1.4 ([#​605](https://togithub.com/googleapis/java-shared-dependencies/issues/605)) ([ca7d49a](https://togithub.com/googleapis/java-shared-dependencies/commit/ca7d49aee26b6d90abd2afd61c20861d2307fe9c)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​614](https://togithub.com/googleapis/java-shared-dependencies/issues/614)) ([e6413f3](https://togithub.com/googleapis/java-shared-dependencies/commit/e6413f3b1be78473ace7085c344eda2d78cdf01a)) - update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#​621](https://togithub.com/googleapis/java-shared-dependencies/issues/621)) ([3d5669f](https://togithub.com/googleapis/java-shared-dependencies/commit/3d5669f215689dd2df71200ffe37d5a9d385cda8)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​611](https://togithub.com/googleapis/java-shared-dependencies/issues/611)) ([f59c28d](https://togithub.com/googleapis/java-shared-dependencies/commit/f59c28d8cd30ada1237f7722135ba148dce6315e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​608](https://togithub.com/googleapis/java-shared-dependencies/issues/608)) ([f9a4f23](https://togithub.com/googleapis/java-shared-dependencies/commit/f9a4f23d3a32148ac59e53eaae6558ccbceca12c)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.1 ([#​606](https://togithub.com/googleapis/java-shared-dependencies/issues/606)) ([3882494](https://togithub.com/googleapis/java-shared-dependencies/commit/3882494770d48fcc02ed19088aa06612a8e440eb)) - update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#​593](https://togithub.com/googleapis/java-shared-dependencies/issues/593)) ([1e155bf](https://togithub.com/googleapis/java-shared-dependencies/commit/1e155bfc957bbb7e25d2e0994cdecaa81843bdc5)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​613](https://togithub.com/googleapis/java-shared-dependencies/issues/613)) ([3038a2c](https://togithub.com/googleapis/java-shared-dependencies/commit/3038a2c86cd20c91b65f2d7926eeb739147a68db)) - update dependency junit:junit to v4.13.2 ([#​607](https://togithub.com/googleapis/java-shared-dependencies/issues/607)) ([987e617](https://togithub.com/googleapis/java-shared-dependencies/commit/987e61796c7a093e005fe8832cf39275c391b2c1)) - update dependency org.checkerframework:checker-qual to v3.21.3 ([#​596](https://togithub.com/googleapis/java-shared-dependencies/issues/596)) ([ac5083c](https://togithub.com/googleapis/java-shared-dependencies/commit/ac5083cd010924dc128f041c2cdbab20166a6bf0)) - update gax.version to v2.12.2 ([#​592](https://togithub.com/googleapis/java-shared-dependencies/issues/592)) ([713ff8d](https://togithub.com/googleapis/java-shared-dependencies/commit/713ff8dd94f939c417524616bc47c771a3fbe0cf)) - update google.common-protos.version to v2.7.4 ([#​603](https://togithub.com/googleapis/java-shared-dependencies/issues/603)) ([bb9b4c7](https://togithub.com/googleapis/java-shared-dependencies/commit/bb9b4c7e39552cc73b3b9d4c826b26e8cb74459f)) - update google.core.version ([#​599](https://togithub.com/googleapis/java-shared-dependencies/issues/599)) ([327d0df](https://togithub.com/googleapis/java-shared-dependencies/commit/327d0df9b57203c0d4f426de0380770d3d7910d6)) - update iam.version to v1.2.6 ([#​598](https://togithub.com/googleapis/java-shared-dependencies/issues/598)) ([2801439](https://togithub.com/googleapis/java-shared-dependencies/commit/280143964c7c3b93a8d7f67215ba2cc74ffce761))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6f4e5205..9d200130 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.7.0 + 2.8.0 pom import From 1105dbbf188afc9fcf87b87b8c3761bbdc1cd3a3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 02:36:48 +0100 Subject: [PATCH 394/519] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5543ad13..67b26d8a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.3.0') +implementation platform('com.google.cloud:libraries-bom:24.4.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index eda69488..b59943b8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From 74dd2ec823798aca6daf0c9d7e248d35294ced68 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:34:40 +0000 Subject: [PATCH 395/519] chore: fix license header in build.bat (#1363) (#806) * chore: fix license header in build.bat * chore: add disctribution field for setup-java action Source-Link: https://github.com/googleapis/synthtool/commit/4fea5f40a9075f3ba205ede0b453010cf080e194 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- .github/workflows/ci.yaml | 20 +++++++++--------- .github/workflows/samples.yaml | 5 +++-- .kokoro/build.bat | 30 +++++++++++++-------------- 6 files changed, 31 insertions(+), 30 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9351fdfb..3473042c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 + digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 1bb18232..f5fc7d51 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 18e23230..7a106d00 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b5e56aa..83ef7f9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -39,8 +39,8 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 @@ -54,8 +54,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -64,8 +64,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 11 @@ -76,8 +76,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index d5d964df..912ed8b2 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -20,9 +20,10 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: + distribution: zulu java-version: 8 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check diff --git a/.kokoro/build.bat b/.kokoro/build.bat index cc602c9e..067cf4a4 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,18 +1,18 @@ +:: Copyright 2022 Google LLC +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: Github action job to test core java library features on +:: downstream client libraries before they are released. :: See documentation in type-shell-output.bat -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh From 9697fbfaa2896e98aa46423d0c767bc8a5afd44e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:36:34 +0000 Subject: [PATCH 396/519] chore(main): release 3.0.0 (#791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release *beep* *boop* --- ## [3.0.0](https://github.com/googleapis/java-dataproc/compare/v2.3.2...v3.0.0) (2022-03-03) ### ⚠ BREAKING CHANGES * add support for Virtual Dataproc cluster running on GKE cluster (#795) ### Features * add support for Virtual Dataproc cluster running on GKE cluster ([#795](https://github.com/googleapis/java-dataproc/issues/795)) ([71aa406](https://github.com/googleapis/java-dataproc/commit/71aa40686cf1d7d9a9b3a15b2037392d3c1e6fd3)) ### Dependencies * update actions/github-script action to v6 ([#790](https://github.com/googleapis/java-dataproc/issues/790)) ([de5ac7b](https://github.com/googleapis/java-dataproc/commit/de5ac7b2693d3434c6369d2888e790383347bd39)) * update actions/setup-java action to v3 ([#798](https://github.com/googleapis/java-dataproc/issues/798)) ([a054ce8](https://github.com/googleapis/java-dataproc/commit/a054ce8fb637f3452fd641a3f4689cbac3070456)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#804](https://github.com/googleapis/java-dataproc/issues/804)) ([4b4092b](https://github.com/googleapis/java-dataproc/commit/4b4092b14c592b09202e484028a696a408f976d0)) * update dependency com.google.cloud:google-cloud-storage to v2.4.0 ([#782](https://github.com/googleapis/java-dataproc/issues/782)) ([4754aa0](https://github.com/googleapis/java-dataproc/commit/4754aa0321069b5b68bbc5cf6f237c44b317a84d)) * update dependency com.google.cloud:google-cloud-storage to v2.4.4 ([#800](https://github.com/googleapis/java-dataproc/issues/800)) ([bfab095](https://github.com/googleapis/java-dataproc/commit/bfab0958ffc81615768d00bc8bc1e6af03a770e2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 20 ++++++++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 38 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83911042..fa5a57df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [3.0.0](https://github.com/googleapis/java-dataproc/compare/v2.3.2...v3.0.0) (2022-03-03) + + +### ⚠ BREAKING CHANGES + +* add support for Virtual Dataproc cluster running on GKE cluster (#795) + +### Features + +* add support for Virtual Dataproc cluster running on GKE cluster ([#795](https://github.com/googleapis/java-dataproc/issues/795)) ([71aa406](https://github.com/googleapis/java-dataproc/commit/71aa40686cf1d7d9a9b3a15b2037392d3c1e6fd3)) + + +### Dependencies + +* update actions/github-script action to v6 ([#790](https://github.com/googleapis/java-dataproc/issues/790)) ([de5ac7b](https://github.com/googleapis/java-dataproc/commit/de5ac7b2693d3434c6369d2888e790383347bd39)) +* update actions/setup-java action to v3 ([#798](https://github.com/googleapis/java-dataproc/issues/798)) ([a054ce8](https://github.com/googleapis/java-dataproc/commit/a054ce8fb637f3452fd641a3f4689cbac3070456)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#804](https://github.com/googleapis/java-dataproc/issues/804)) ([4b4092b](https://github.com/googleapis/java-dataproc/commit/4b4092b14c592b09202e484028a696a408f976d0)) +* update dependency com.google.cloud:google-cloud-storage to v2.4.0 ([#782](https://github.com/googleapis/java-dataproc/issues/782)) ([4754aa0](https://github.com/googleapis/java-dataproc/commit/4754aa0321069b5b68bbc5cf6f237c44b317a84d)) +* update dependency com.google.cloud:google-cloud-storage to v2.4.4 ([#800](https://github.com/googleapis/java-dataproc/issues/800)) ([bfab095](https://github.com/googleapis/java-dataproc/commit/bfab0958ffc81615768d00bc8bc1e6af03a770e2)) + ### [2.3.2](https://github.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2) (2022-02-03) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3dac3379..b8e70f35 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 2.3.3-SNAPSHOT + 3.0.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 2.3.3-SNAPSHOT + 3.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 0b0c3019..2adb390e 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 2.3.3-SNAPSHOT + 3.0.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 2.3.3-SNAPSHOT + 3.0.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e976075f..2edae382 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.3-SNAPSHOT + 3.0.0 diff --git a/pom.xml b/pom.xml index 9d200130..c9d76b16 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 2.3.3-SNAPSHOT + 3.0.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 com.google.cloud google-cloud-dataproc - 2.3.3-SNAPSHOT + 3.0.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 847a022a..270528fa 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 2.3.3-SNAPSHOT + 3.0.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 2.3.3-SNAPSHOT + 3.0.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1bad76f5..8286f017 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 2.3.3-SNAPSHOT + 3.0.0 diff --git a/versions.txt b/versions.txt index d3ced50e..2b7b85b6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:2.3.2:2.3.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:2.3.2:2.3.3-SNAPSHOT -proto-google-cloud-dataproc-v1:2.3.2:2.3.3-SNAPSHOT +google-cloud-dataproc:3.0.0:3.0.0 +grpc-google-cloud-dataproc-v1:3.0.0:3.0.0 +proto-google-cloud-dataproc-v1:3.0.0:3.0.0 From 4e1da1ee747fd358c4029dd5a505778d880042c9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:48:38 +0000 Subject: [PATCH 397/519] chore(main): release 3.0.1-SNAPSHOT (#807) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b8e70f35..b8d868df 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.0 + 3.0.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 2adb390e..04d8a6ab 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.0 + 3.0.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 2edae382..3f0f341b 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.0 + 3.0.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index c9d76b16..63b7c807 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.0 + 3.0.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 270528fa..f98648ab 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.0 + 3.0.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.0 + 3.0.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8286f017..b0310429 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 2b7b85b6..ebe0dc28 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.0:3.0.0 -grpc-google-cloud-dataproc-v1:3.0.0:3.0.0 -proto-google-cloud-dataproc-v1:3.0.0:3.0.0 +google-cloud-dataproc:3.0.0:3.0.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.0.0:3.0.1-SNAPSHOT +proto-google-cloud-dataproc-v1:3.0.0:3.0.1-SNAPSHOT From b5260f75d9179311d20f3f3a51bc4c52c96cb65b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Mar 2022 02:40:27 +0000 Subject: [PATCH 398/519] chore: update java template (#1367) (#809) * chore: update java template * chore: fix tests * chore: fix tests * chore: update project Source-Link: https://github.com/googleapis/synthtool/commit/1155a97fed1c195d10ad406d483bc8ac2507f1d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/integration.cfg | 4 ++-- README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3473042c..426cf83e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e + digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index e51c7b4c..a2907a25 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { diff --git a/README.md b/README.md index 67b26d8a..8109ecf5 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:2.3.2' +implementation 'com.google.cloud:google-cloud-dataproc:3.0.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "2.3.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.0" ``` ## Authentication From 146cd22c8ab2a929a5d775fa455e6427654ebdb6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 04:12:28 +0100 Subject: [PATCH 399/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3 (#808) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `2.3.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.0/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.0/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v3.0.0`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-dataproccomparev232v300-2022-03-03) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v2.3.2...v3.0.0) ##### ⚠ BREAKING CHANGES - add support for Virtual Dataproc cluster running on GKE cluster ([#​795](https://togithub.com/googleapis/java-dataproc/issues/795)) ##### Features - add support for Virtual Dataproc cluster running on GKE cluster ([#​795](https://togithub.com/googleapis/java-dataproc/issues/795)) ([71aa406](https://togithub.com/googleapis/java-dataproc/commit/71aa40686cf1d7d9a9b3a15b2037392d3c1e6fd3)) ##### Dependencies - update actions/github-script action to v6 ([#​790](https://togithub.com/googleapis/java-dataproc/issues/790)) ([de5ac7b](https://togithub.com/googleapis/java-dataproc/commit/de5ac7b2693d3434c6369d2888e790383347bd39)) - update actions/setup-java action to v3 ([#​798](https://togithub.com/googleapis/java-dataproc/issues/798)) ([a054ce8](https://togithub.com/googleapis/java-dataproc/commit/a054ce8fb637f3452fd641a3f4689cbac3070456)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#​804](https://togithub.com/googleapis/java-dataproc/issues/804)) ([4b4092b](https://togithub.com/googleapis/java-dataproc/commit/4b4092b14c592b09202e484028a696a408f976d0)) - update dependency com.google.cloud:google-cloud-storage to v2.4.0 ([#​782](https://togithub.com/googleapis/java-dataproc/issues/782)) ([4754aa0](https://togithub.com/googleapis/java-dataproc/commit/4754aa0321069b5b68bbc5cf6f237c44b317a84d)) - update dependency com.google.cloud:google-cloud-storage to v2.4.4 ([#​800](https://togithub.com/googleapis/java-dataproc/issues/800)) ([bfab095](https://togithub.com/googleapis/java-dataproc/commit/bfab0958ffc81615768d00bc8bc1e6af03a770e2)) ##### [2.3.2](https://togithub.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2) (2022-02-03) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-dataproc/issues/1339)) ([#​777](https://togithub.com/googleapis/java-dataproc/issues/777)) ([2477ea5](https://togithub.com/googleapis/java-dataproc/commit/2477ea5fb5c8e35847d76b27f8359ca8c92ae47a)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#​779](https://togithub.com/googleapis/java-dataproc/issues/779)) ([6040385](https://togithub.com/googleapis/java-dataproc/commit/6040385f4cec61ab7a5d443b864344308bec66ae)) - update dependency com.google.cloud:google-cloud-storage to v2.2.3 ([#​765](https://togithub.com/googleapis/java-dataproc/issues/765)) ([d4f4a2e](https://togithub.com/googleapis/java-dataproc/commit/d4f4a2ebb1a1f7d9fb71642f69d135f81798583e)) - update dependency com.google.cloud:google-cloud-storage to v2.3.0 ([#​775](https://togithub.com/googleapis/java-dataproc/issues/775)) ([b538d4d](https://togithub.com/googleapis/java-dataproc/commit/b538d4dc66131239ac988950d9e2b8b7006a1b9f)) ##### [2.3.1](https://www.github.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1) (2022-01-07) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-dataproc/issues/1299)) ([#​746](https://www.togithub.com/googleapis/java-dataproc/issues/746)) ([1cfdaae](https://www.github.com/googleapis/java-dataproc/commit/1cfdaae5ef043a12c5bb9debf3bb8f1ffe366b5f)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-dataproc/issues/1301)) ([#​755](https://www.togithub.com/googleapis/java-dataproc/issues/755)) ([5035a44](https://www.github.com/googleapis/java-dataproc/commit/5035a44dcedf0d993c750086c78813b886fceca3)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#​760](https://www.togithub.com/googleapis/java-dataproc/issues/760)) ([04a07b6](https://www.github.com/googleapis/java-dataproc/commit/04a07b6689f6a7df8410ddf7f454c2a639650939)) - update dependency com.google.cloud:google-cloud-storage to v2.2.2 ([#​748](https://www.togithub.com/googleapis/java-dataproc/issues/748)) ([e5cd53a](https://www.github.com/googleapis/java-dataproc/commit/e5cd53a670fe6efd712ee2415604feceb68ad3d0))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8109ecf5..1dff6afb 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 2.3.2 + 3.0.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c7e71c98..6a159010 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 2.3.2 + 3.0.0 From 47d4af327a12144b8745b10a7fb617fb3f16f3cb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 21:34:17 +0100 Subject: [PATCH 400/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.0 (#810) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.7` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/compatibility-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/confidence-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​130-httpsgithubcomgoogleapisjava-shared-configcomparev127v130-2022-03-07) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.7...v1.3.0) ##### Features - increase IT timeout from 20 to 60 mins ([#​440](https://togithub.com/googleapis/java-shared-config/issues/440)) ([a4427bc](https://togithub.com/googleapis/java-shared-config/commit/a4427bceebd0624e23f0b02bb24d7ed46ea4b3a6)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.6 ([#​423](https://togithub.com/googleapis/java-shared-config/issues/423)) ([9a0cb79](https://togithub.com/googleapis/java-shared-config/commit/9a0cb79896d5c97dc3c5648a6740d53eb9ada673)) - update dependency com.puppycrawl.tools:checkstyle to v9.3 ([#​415](https://togithub.com/googleapis/java-shared-config/issues/415)) ([9e2d3fd](https://togithub.com/googleapis/java-shared-config/commit/9e2d3fd8bd42bc210dae5798f7d5dfe950c29f51)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#​429](https://togithub.com/googleapis/java-shared-config/issues/429)) ([0355f29](https://togithub.com/googleapis/java-shared-config/commit/0355f2988ebcff19615b72bc65523555e4844523)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#​430](https://togithub.com/googleapis/java-shared-config/issues/430)) ([16984d2](https://togithub.com/googleapis/java-shared-config/commit/16984d25a84aa6a8daf2a0925ea57cd0d3f0ee24)) ##### [1.2.7](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7) (2022-02-04) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.0 ([#​414](https://togithub.com/googleapis/java-shared-config/issues/414)) ([2133cc0](https://togithub.com/googleapis/java-shared-config/commit/2133cc093efd8420e352274f3eab09de819ff796)) ##### [1.2.6](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6) (2022-01-19) ##### Bug Fixes - library should released as 1.2.6 ([#​408](https://togithub.com/googleapis/java-shared-config/issues/408)) ([4972daa](https://togithub.com/googleapis/java-shared-config/commit/4972daa60467797566c4b043cebd322577b8eb73)) ##### [1.2.5](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5) (2022-01-11) ##### Bug Fixes - **java:** Enable unit tests in generated libraries for native image testing ([#​394](https://togithub.com/googleapis/java-shared-config/issues/394)) ([a453b9f](https://togithub.com/googleapis/java-shared-config/commit/a453b9f141c7555f2fd5333eb17d223410ab66eb)) ##### [1.2.4](https://www.github.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) (2022-01-06) ##### Dependencies - revert dependency com.google.googlejavaformat:google-java-format to v1.7 ([#​391](https://www.togithub.com/googleapis/java-shared-config/issues/391)) ([17077fb](https://www.github.com/googleapis/java-shared-config/commit/17077fb1a58eef7098dc5e1e9b2c78a63c5c11e1)) ##### [1.2.3](https://www.github.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3) (2022-01-04) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-config/issues/1299)) ([#​376](https://www.togithub.com/googleapis/java-shared-config/issues/376)) ([50e7a10](https://www.github.com/googleapis/java-shared-config/commit/50e7a10a8dca0505fd831e3dd929577d2f82b011)) - **java:** Only enable integration tests for native image testing ([#​375](https://www.togithub.com/googleapis/java-shared-config/issues/375)) ([663f421](https://www.github.com/googleapis/java-shared-config/commit/663f421de342afcba24703079f778738045d3ff2)) - **java:** Pass missing integration test flags to native image test commands ([#​1309](https://www.togithub.com/googleapis/java-shared-config/issues/1309)) ([#​383](https://www.togithub.com/googleapis/java-shared-config/issues/383)) ([b17b44e](https://www.github.com/googleapis/java-shared-config/commit/b17b44e37fe44ba61616417189c6b2271f3a4d18)) ##### Dependencies - update auto-value-annotation.version to v1.9 ([#​378](https://www.togithub.com/googleapis/java-shared-config/issues/378)) ([5e1cd0e](https://www.github.com/googleapis/java-shared-config/commit/5e1cd0e39910548ec4eb6639da979c3b66411503)) - update dependency com.google.googlejavaformat:google-java-format to v1.13.0 ([#​361](https://www.togithub.com/googleapis/java-shared-config/issues/361)) ([095d60a](https://www.github.com/googleapis/java-shared-config/commit/095d60a061a574dcf84b9fcf26dff48617a306b1)) - update dependency com.puppycrawl.tools:checkstyle to v9.2 ([#​366](https://www.togithub.com/googleapis/java-shared-config/issues/366)) ([061df67](https://www.github.com/googleapis/java-shared-config/commit/061df676d8b2fef5bbb0ce9661d3c96fcb57e73a)) - update dependency com.puppycrawl.tools:checkstyle to v9.2.1 ([#​382](https://www.togithub.com/googleapis/java-shared-config/issues/382)) ([1a182c5](https://www.github.com/googleapis/java-shared-config/commit/1a182c52e7c5431875296940d68c9bdfcf74be00)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.9 ([#​379](https://www.togithub.com/googleapis/java-shared-config/issues/379)) ([0a2b05f](https://www.github.com/googleapis/java-shared-config/commit/0a2b05ff7f649331efbc4dd540705da10691a2f1)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.8 ([#​372](https://www.togithub.com/googleapis/java-shared-config/issues/372)) ([6fe795e](https://www.github.com/googleapis/java-shared-config/commit/6fe795ede39575656ef1609bf7aac28c1d170976)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.9 ([#​380](https://www.togithub.com/googleapis/java-shared-config/issues/380)) ([f2efad5](https://www.github.com/googleapis/java-shared-config/commit/f2efad585b431fe186c7900a8171a999c689405b)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.2 ([#​365](https://www.togithub.com/googleapis/java-shared-config/issues/365)) ([604058d](https://www.github.com/googleapis/java-shared-config/commit/604058d52dc962db9a506762926576542687285e)) ##### [1.2.2](https://www.github.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2) (2021-11-16) ##### Bug Fixes - update dependency com.google.cloud:native-image-support to v0.10.0 ([#​358](https://www.togithub.com/googleapis/java-shared-config/issues/358)) ([0441958](https://www.github.com/googleapis/java-shared-config/commit/044195865a1122d419cadae90fddbf8dc5b4a32d)) ##### [1.2.1](https://www.github.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1) (2021-11-08) ##### Bug Fixes - Add native image feature to register protobuf reflection in tests ([#​347](https://www.togithub.com/googleapis/java-shared-config/issues/347)) ([88c3e3b](https://www.github.com/googleapis/java-shared-config/commit/88c3e3b0ad1e480e0fdbe9f6fe1f9df183066ee6)) ##### Dependencies - update dependency com.google.auto.service:auto-service-annotations to v1.0.1 ([#​346](https://www.togithub.com/googleapis/java-shared-config/issues/346)) ([9c1f943](https://www.github.com/googleapis/java-shared-config/commit/9c1f94345fb47346fe66f901976c2347b8102bc8)) - update dependency com.google.cloud:native-image-support to v0.9.0 ([#​350](https://www.togithub.com/googleapis/java-shared-config/issues/350)) ([3b496b0](https://www.github.com/googleapis/java-shared-config/commit/3b496b03bd95e59fcd1a3a1eb6cc0dfd330db769)) - update dependency com.puppycrawl.tools:checkstyle to v9.1 ([#​345](https://www.togithub.com/googleapis/java-shared-config/issues/345)) ([f5c03d3](https://www.github.com/googleapis/java-shared-config/commit/f5c03d35684ef4e0bb3178ab6056f231f3f4faf6))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index b8d868df..463ee6ca 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 63b7c807..837c3e8e 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 From 9deba24ca7520e504b250a81cebfe1418ccbd248 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:32:15 +0100 Subject: [PATCH 401/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.4.5 (#811) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.4.4` -> `2.4.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.5/compatibility-slim/2.4.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.4.5/confidence-slim/2.4.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.4.5`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​245-httpsgithubcomgoogleapisjava-storagecomparev244v245-2022-03-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.4...v2.4.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6a159010..20c87ba9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.4.4 + 2.4.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b0310429..156c9bfc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.4.4 + 2.4.5 junit From 889b3a5a5dc50083b7514e4f5cc6494c80ff9a5e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Mar 2022 17:52:14 +0000 Subject: [PATCH 402/519] chore(main): release 3.0.1 (#812) :robot: I have created a release *beep* *boop* --- ### [3.0.1](https://github.com/googleapis/java-dataproc/compare/v3.0.0...v3.0.1) (2022-03-09) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.4.5 ([#811](https://github.com/googleapis/java-dataproc/issues/811)) ([9deba24](https://github.com/googleapis/java-dataproc/commit/9deba24ca7520e504b250a81cebfe1418ccbd248)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa5a57df..66e629f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.1](https://github.com/googleapis/java-dataproc/compare/v3.0.0...v3.0.1) (2022-03-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.4.5 ([#811](https://github.com/googleapis/java-dataproc/issues/811)) ([9deba24](https://github.com/googleapis/java-dataproc/commit/9deba24ca7520e504b250a81cebfe1418ccbd248)) + ## [3.0.0](https://github.com/googleapis/java-dataproc/compare/v2.3.2...v3.0.0) (2022-03-03) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 463ee6ca..cd36a336 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.1-SNAPSHOT + 3.0.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.1-SNAPSHOT + 3.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 04d8a6ab..8177b71c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.1-SNAPSHOT + 3.0.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.1-SNAPSHOT + 3.0.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 3f0f341b..4f23d964 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.1-SNAPSHOT + 3.0.1 diff --git a/pom.xml b/pom.xml index 837c3e8e..ee74843f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.1-SNAPSHOT + 3.0.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1 com.google.cloud google-cloud-dataproc - 3.0.1-SNAPSHOT + 3.0.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index f98648ab..e7d31e6b 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1-SNAPSHOT + 3.0.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.1-SNAPSHOT + 3.0.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 156c9bfc..5999d2c6 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.1-SNAPSHOT + 3.0.1 diff --git a/versions.txt b/versions.txt index ebe0dc28..bd9153b4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.0:3.0.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.0.0:3.0.1-SNAPSHOT -proto-google-cloud-dataproc-v1:3.0.0:3.0.1-SNAPSHOT +google-cloud-dataproc:3.0.1:3.0.1 +grpc-google-cloud-dataproc-v1:3.0.1:3.0.1 +proto-google-cloud-dataproc-v1:3.0.1:3.0.1 From 5f65a321a1dadb965543827e1bdaf8186329ba02 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Mar 2022 18:04:17 +0000 Subject: [PATCH 403/519] chore(main): release 3.0.2-SNAPSHOT (#813) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index cd36a336..695a51ba 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.1 + 3.0.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 8177b71c..b0b1c098 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.1 + 3.0.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 4f23d964..42864840 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.1 + 3.0.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index ee74843f..7b9b7b49 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.1 + 3.0.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e7d31e6b..5bd5a9f5 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.1 + 3.0.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.1 + 3.0.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5999d2c6..509bb8e7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index bd9153b4..fefaafe5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.1:3.0.1 -grpc-google-cloud-dataproc-v1:3.0.1:3.0.1 -proto-google-cloud-dataproc-v1:3.0.1:3.0.1 +google-cloud-dataproc:3.0.1:3.0.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.0.1:3.0.2-SNAPSHOT +proto-google-cloud-dataproc-v1:3.0.1:3.0.2-SNAPSHOT From d6ca7c9ed3c145378390a43f228a470890cfc832 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 23:14:27 +0100 Subject: [PATCH 404/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.0.1 (#814) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.0.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.1/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.1/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v3.0.1`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-dataproccomparev300v301-2022-03-09) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v3.0.0...v3.0.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1dff6afb..a42a126a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.0.0' +implementation 'com.google.cloud:google-cloud-dataproc:3.0.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.1" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 20c87ba9..92f685e4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.0.0 + 3.0.1 From 4ba2f6a47d367aa5236bfae06ca1693341b27a5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 20:04:22 +0100 Subject: [PATCH 405/519] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#815) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a42a126a..96b6d850 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.4.0') +implementation platform('com.google.cloud:libraries-bom:25.0.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b59943b8..e05dc3f8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From a087e5fdc853d22c52958aad233b3dc9801b9e5e Mon Sep 17 00:00:00 2001 From: Lo Ferris <50979514+loferris@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:38:03 -0700 Subject: [PATCH 406/519] sample: changes in three tests to resolve flaky tests and presubmit errors in samples (#819) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * changing google project in CreateClusterTest and adding ClusterConfig to SubmitTests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/test/java/CreateClusterTest.java | 6 ++--- .../src/test/java/SubmitHadoopFsJobTest.java | 23 +++++++++++++++++-- .../snippets/src/test/java/SubmitJobTest.java | 23 +++++++++++++++++-- 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/samples/snippets/src/test/java/CreateClusterTest.java b/samples/snippets/src/test/java/CreateClusterTest.java index 506881ad..9e8cb1af 100644 --- a/samples/snippets/src/test/java/CreateClusterTest.java +++ b/samples/snippets/src/test/java/CreateClusterTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,8 +40,8 @@ public class CreateClusterTest { private static final String CLUSTER_NAME = String.format("java-cc-test-%s", UUID.randomUUID().toString()); private static final String REGION = "us-central1"; - // private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String PROJECT_ID = "gcloud-devel"; + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + // private static final String PROJECT_ID = "gcloud-devel"; private ByteArrayOutputStream bout; private static void requireEnv(String varName) { diff --git a/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java b/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java index 973efa77..341a3aab 100644 --- a/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java +++ b/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,9 +19,11 @@ import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterConfig; import com.google.cloud.dataproc.v1.ClusterControllerClient; import com.google.cloud.dataproc.v1.ClusterControllerSettings; import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.InstanceGroupConfig; import com.google.protobuf.Empty; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -70,8 +72,25 @@ public void setUp() throws IOException, ExecutionException, InterruptedException try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create(clusterControllerSettings)) { + // Configure the settings for our cluster. + InstanceGroupConfig masterConfig = + InstanceGroupConfig.newBuilder() + .setMachineTypeUri("n1-standard-2") + .setNumInstances(1) + .build(); + InstanceGroupConfig workerConfig = + InstanceGroupConfig.newBuilder() + .setMachineTypeUri("n1-standard-2") + .setNumInstances(2) + .build(); + ClusterConfig clusterConfig = + ClusterConfig.newBuilder() + .setMasterConfig(masterConfig) + .setWorkerConfig(workerConfig) + .build(); // Create the Dataproc cluster. - Cluster cluster = Cluster.newBuilder().setClusterName(CLUSTER_NAME).build(); + Cluster cluster = + Cluster.newBuilder().setClusterName(CLUSTER_NAME).setConfig(clusterConfig).build(); OperationFuture createClusterAsyncRequest = clusterControllerClient.createClusterAsync(PROJECT_ID, REGION, cluster); createClusterAsyncRequest.get(); diff --git a/samples/snippets/src/test/java/SubmitJobTest.java b/samples/snippets/src/test/java/SubmitJobTest.java index b532f8ca..837a4afc 100644 --- a/samples/snippets/src/test/java/SubmitJobTest.java +++ b/samples/snippets/src/test/java/SubmitJobTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,9 +19,11 @@ import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterConfig; import com.google.cloud.dataproc.v1.ClusterControllerClient; import com.google.cloud.dataproc.v1.ClusterControllerSettings; import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.InstanceGroupConfig; import com.google.protobuf.Empty; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -69,8 +71,25 @@ public void setUp() throws IOException, ExecutionException, InterruptedException try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create(clusterControllerSettings)) { + // Configure the settings for our cluster. + InstanceGroupConfig masterConfig = + InstanceGroupConfig.newBuilder() + .setMachineTypeUri("n1-standard-2") + .setNumInstances(1) + .build(); + InstanceGroupConfig workerConfig = + InstanceGroupConfig.newBuilder() + .setMachineTypeUri("n1-standard-2") + .setNumInstances(2) + .build(); + ClusterConfig clusterConfig = + ClusterConfig.newBuilder() + .setMasterConfig(masterConfig) + .setWorkerConfig(workerConfig) + .build(); // Create the Dataproc cluster. - Cluster cluster = Cluster.newBuilder().setClusterName(CLUSTER_NAME).build(); + Cluster cluster = + Cluster.newBuilder().setClusterName(CLUSTER_NAME).setConfig(clusterConfig).build(); OperationFuture createClusterAsyncRequest = clusterControllerClient.createClusterAsync(PROJECT_ID, REGION, cluster); createClusterAsyncRequest.get(); From 29e20ab47da94e6041b83d5f692aab6943d38449 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 19:06:15 +0200 Subject: [PATCH 407/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.2 (#817) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.0` -> `1.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​132-httpsgithubcomgoogleapisjava-shared-configcomparev131v132-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) ### [`v1.3.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​131-httpsgithubcomgoogleapisjava-shared-configcomparev130v131-2022-03-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 695a51ba..ee178e37 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 7b9b7b49..edeaebfc 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 From 7c2e28d6a49775f87136f355a9a780206d868601 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 20:06:15 +0200 Subject: [PATCH 408/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 (#820) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.8.0` -> `2.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.9.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-shared-dependenciescomparev280v290-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.8.0...v2.9.0) ##### Dependencies - guava 31.1 ([#​635](https://togithub.com/googleapis/java-shared-dependencies/issues/635)) ([0939b06](https://togithub.com/googleapis/java-shared-dependencies/commit/0939b063a79cd4ffafb49cf04861ce577e35efd6)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2 ([#​626](https://togithub.com/googleapis/java-shared-dependencies/issues/626)) ([6014663](https://togithub.com/googleapis/java-shared-dependencies/commit/601466339c9631faa88033d1ff1e31582fb67b7b)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220324 ([#​636](https://togithub.com/googleapis/java-shared-dependencies/issues/636)) ([6c833fa](https://togithub.com/googleapis/java-shared-dependencies/commit/6c833faa7815147013999bfc2bb6935fd8fe6b34)) - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​642](https://togithub.com/googleapis/java-shared-dependencies/issues/642)) ([57bd912](https://togithub.com/googleapis/java-shared-dependencies/commit/57bd9124ce8981b7b3b5d0c87b7c1e5f935b7150)) - update dependency com.google.api:api-common to v2.1.5 ([#​637](https://togithub.com/googleapis/java-shared-dependencies/issues/637)) ([d3a00fa](https://togithub.com/googleapis/java-shared-dependencies/commit/d3a00fa5ce9908000122d8365fb2f2d0e388494b)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​631](https://togithub.com/googleapis/java-shared-dependencies/issues/631)) ([53dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/53dc7c2fe255a6c7ca059dd414449bf96780f936)) - update dependency com.google.cloud:google-cloud-core-bom to v2.5.11 ([#​644](https://togithub.com/googleapis/java-shared-dependencies/issues/644)) ([4331dcc](https://togithub.com/googleapis/java-shared-dependencies/commit/4331dcc331e8377fcc57e5404321611186ca22cb)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​638](https://togithub.com/googleapis/java-shared-dependencies/issues/638)) ([e007d23](https://togithub.com/googleapis/java-shared-dependencies/commit/e007d2381bd388a1c199fc3f31d0b965f8ae592d)) - update dependency io.grpc:grpc-bom to v1.45.0 ([#​630](https://togithub.com/googleapis/java-shared-dependencies/issues/630)) ([20334e3](https://togithub.com/googleapis/java-shared-dependencies/commit/20334e30d256897cd7ef52c646e5c4549cd7ae69)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​633](https://togithub.com/googleapis/java-shared-dependencies/issues/633)) ([1a2716d](https://togithub.com/googleapis/java-shared-dependencies/commit/1a2716d22e442c5cd6adea9449756b9ac3ddbf8e)) - update gax.version to v2.13.0 ([#​641](https://togithub.com/googleapis/java-shared-dependencies/issues/641)) ([b863746](https://togithub.com/googleapis/java-shared-dependencies/commit/b863746727fadd45c35198f58eb862f47fe14945)) - update google.common-protos.version to v2.8.0 ([#​639](https://togithub.com/googleapis/java-shared-dependencies/issues/639)) ([252afba](https://togithub.com/googleapis/java-shared-dependencies/commit/252afba1df8e4cfdf2574d127097b0978b7778c0)) - update google.core.version to v2.5.10 ([#​628](https://togithub.com/googleapis/java-shared-dependencies/issues/628)) ([fec6f51](https://togithub.com/googleapis/java-shared-dependencies/commit/fec6f5121384a04a389bad6f6477a9a5ce468016)) - update iam.version to v1.2.10 ([#​625](https://togithub.com/googleapis/java-shared-dependencies/issues/625)) ([0d7ca29](https://togithub.com/googleapis/java-shared-dependencies/commit/0d7ca2924bd24abe14883c173156bb4dc5fb90bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index edeaebfc..2c895fc4 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.8.0 + 2.9.0 pom import From ec6c6079517451dd99ad0020007d3200ee60dc56 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 01:32:17 +0200 Subject: [PATCH 409/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.5.1 (#818) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.4.5` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.5.1/compatibility-slim/2.4.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.5.1/confidence-slim/2.4.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.5.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​251-httpsgithubcomgoogleapisjava-storagecomparev250v251-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.5.0...v2.5.1) ### [`v2.5.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​250-httpsgithubcomgoogleapisjava-storagecomparev245v250-2022-03-25) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.4.5...v2.5.0) ##### Features - allow limiting ReadChannel ([#​1180](https://togithub.com/googleapis/java-storage/issues/1180)) ([2898ee8](https://togithub.com/googleapis/java-storage/commit/2898ee88545a93916d55c969fd0838e4fc703912)) - expose the methods of Notifications ([#​399](https://togithub.com/googleapis/java-storage/issues/399)) ([0bd17b1](https://togithub.com/googleapis/java-storage/commit/0bd17b1f70e47081941a44f018e3098b37ba2c47)) ##### Documentation - Adding Samples for printing all Acls for a file and for a specific user ([#​1288](https://togithub.com/googleapis/java-storage/issues/1288)) ([32fe388](https://togithub.com/googleapis/java-storage/commit/32fe388c8733cb237fc2a5b4676e36df76ef0dff)) - Copy all storage samples from java-docs-samples ([#​1258](https://togithub.com/googleapis/java-storage/issues/1258)) ([48b99be](https://togithub.com/googleapis/java-storage/commit/48b99beb692f529bea7e3de7ea5a36606876d96a)) - **sample:** Add Native Image sample for Storage ([#​1283](https://togithub.com/googleapis/java-storage/issues/1283)) ([375874d](https://togithub.com/googleapis/java-storage/commit/375874d38fc46bfec2df4c58e7d661c4f1f6c486)) ##### Dependencies - allow snapshot to update properly ([#​1311](https://togithub.com/googleapis/java-storage/issues/1311)) ([a5d32f2](https://togithub.com/googleapis/java-storage/commit/a5d32f2945247f76a21b030300a6e037084231b5)) - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​1295](https://togithub.com/googleapis/java-storage/issues/1295)) ([3b3ecce](https://togithub.com/googleapis/java-storage/commit/3b3ecce262a3c7c95fbf0ddf3a5830a116022053)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#​1296](https://togithub.com/googleapis/java-storage/issues/1296)) ([6f1b142](https://togithub.com/googleapis/java-storage/commit/6f1b1423d1de6aef9aedbf6b89ce42bbc72196e9)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​1306](https://togithub.com/googleapis/java-storage/issues/1306)) ([1527ba0](https://togithub.com/googleapis/java-storage/commit/1527ba0abad38acd55542ce92214d5c66a9c62ee)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#​1297](https://togithub.com/googleapis/java-storage/issues/1297)) ([3f64f11](https://togithub.com/googleapis/java-storage/commit/3f64f117be7b7150a7a89c5240f09350d1add578)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​1307](https://togithub.com/googleapis/java-storage/issues/1307)) ([e45ae07](https://togithub.com/googleapis/java-storage/commit/e45ae0783bd9e0bea7e8accee1437dee4e974333)) ##### [2.4.5](https://togithub.com/googleapis/java-storage/compare/v2.4.4...v2.4.5) (2022-03-04) ##### Documentation - Adding Samples for Adding/Removing File Owners ([#​1273](https://togithub.com/googleapis/java-storage/issues/1273)) ([6fad19c](https://togithub.com/googleapis/java-storage/commit/6fad19c184d108f30c85f62426d254a9f0ff715d)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#​1284](https://togithub.com/googleapis/java-storage/issues/1284)) ([0f71ae4](https://togithub.com/googleapis/java-storage/commit/0f71ae41fbabf6a3f38674a2f68fb55bd9809595)) - update kms.version to v0.95.1 ([#​1287](https://togithub.com/googleapis/java-storage/issues/1287)) ([8334d3c](https://togithub.com/googleapis/java-storage/commit/8334d3cb1f527b00ee8f19583dcf112f4f1b08ac)) ##### [2.4.4](https://togithub.com/googleapis/java-storage/compare/v2.4.3...v2.4.4) (2022-02-28) ##### Dependencies - update actions/setup-java action to v3 ([#​1274](https://togithub.com/googleapis/java-storage/issues/1274)) ([d29d19a](https://togithub.com/googleapis/java-storage/commit/d29d19a9936164e0ffe4d2f5fa14739a807369f6)) ##### [2.4.3](https://togithub.com/googleapis/java-storage/compare/v2.4.2...v2.4.3) (2022-02-25) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220210-1.32.1 ([#​1269](https://togithub.com/googleapis/java-storage/issues/1269)) ([b3933be](https://togithub.com/googleapis/java-storage/commit/b3933be393bcb8850e39635d28211159a3d0a091)) ##### Documentation - Adding Samples for Add/Remove Bucket Default Owner ([#​1260](https://togithub.com/googleapis/java-storage/issues/1260)) ([7223626](https://togithub.com/googleapis/java-storage/commit/7223626481930bf4442a04ccf49536f7f9e5fd32)) - Adding Samples for Add/Remove Bucket Owner ([#​1272](https://togithub.com/googleapis/java-storage/issues/1272)) ([9d25fa9](https://togithub.com/googleapis/java-storage/commit/9d25fa986ec6116eeb16ac5773b46e7fdbe10647)) - Adding Samples for Printing Bucket ACLs and Printing Bucket ACL for a specific user. ([#​1236](https://togithub.com/googleapis/java-storage/issues/1236)) ([d82333b](https://togithub.com/googleapis/java-storage/commit/d82333b01eadd9afd0c9d58455f86bc6457c99e3)) ##### [2.4.2](https://togithub.com/googleapis/java-storage/compare/v2.4.1...v2.4.2) (2022-02-11) ##### Dependencies - update actions/github-script action to v6 ([#​1241](https://togithub.com/googleapis/java-storage/issues/1241)) ([366d738](https://togithub.com/googleapis/java-storage/commit/366d7385c4f6ac5c7478ea71cf0f7f1546ad4607)) ##### [2.4.1](https://togithub.com/googleapis/java-storage/compare/v2.4.0...v2.4.1) (2022-02-08) ##### Dependencies - update kms.version to v0.95.0 ([#​1224](https://togithub.com/googleapis/java-storage/issues/1224)) ([5700c54](https://togithub.com/googleapis/java-storage/commit/5700c544da904bca75bf42314b150f109771f719))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 92f685e4..1de55b84 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.4.5 + 2.5.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 509bb8e7..2b6e441a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.4.5 + 2.5.1 junit From 0dc4dd11f27918f9acee77a1ce7ee26a0ba3d451 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:46:22 +0000 Subject: [PATCH 410/519] chore(main): release 3.0.2 (#821) :robot: I have created a release *beep* *boop* --- ### [3.0.2](https://github.com/googleapis/java-dataproc/compare/v3.0.1...v3.0.2) (2022-03-29) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#820](https://github.com/googleapis/java-dataproc/issues/820)) ([7c2e28d](https://github.com/googleapis/java-dataproc/commit/7c2e28d6a49775f87136f355a9a780206d868601)) * update dependency com.google.cloud:google-cloud-storage to v2.5.1 ([#818](https://github.com/googleapis/java-dataproc/issues/818)) ([ec6c607](https://github.com/googleapis/java-dataproc/commit/ec6c6079517451dd99ad0020007d3200ee60dc56)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66e629f9..22938b28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [3.0.2](https://github.com/googleapis/java-dataproc/compare/v3.0.1...v3.0.2) (2022-03-29) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#820](https://github.com/googleapis/java-dataproc/issues/820)) ([7c2e28d](https://github.com/googleapis/java-dataproc/commit/7c2e28d6a49775f87136f355a9a780206d868601)) +* update dependency com.google.cloud:google-cloud-storage to v2.5.1 ([#818](https://github.com/googleapis/java-dataproc/issues/818)) ([ec6c607](https://github.com/googleapis/java-dataproc/commit/ec6c6079517451dd99ad0020007d3200ee60dc56)) + ### [3.0.1](https://github.com/googleapis/java-dataproc/compare/v3.0.0...v3.0.1) (2022-03-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ee178e37..d9118314 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.2-SNAPSHOT + 3.0.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.2-SNAPSHOT + 3.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index b0b1c098..9d216e35 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.2-SNAPSHOT + 3.0.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.2-SNAPSHOT + 3.0.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 42864840..e33c792d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.2-SNAPSHOT + 3.0.2 diff --git a/pom.xml b/pom.xml index 2c895fc4..7b4ea287 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.2-SNAPSHOT + 3.0.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2 com.google.cloud google-cloud-dataproc - 3.0.2-SNAPSHOT + 3.0.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 5bd5a9f5..a391ef66 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2-SNAPSHOT + 3.0.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.2-SNAPSHOT + 3.0.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2b6e441a..9360d904 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.2-SNAPSHOT + 3.0.2 diff --git a/versions.txt b/versions.txt index fefaafe5..6b7b1576 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.1:3.0.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.0.1:3.0.2-SNAPSHOT -proto-google-cloud-dataproc-v1:3.0.1:3.0.2-SNAPSHOT +google-cloud-dataproc:3.0.2:3.0.2 +grpc-google-cloud-dataproc-v1:3.0.2:3.0.2 +proto-google-cloud-dataproc-v1:3.0.2:3.0.2 From 014b6c5fa4b0edaa62f6b86287a9ddfd094d6569 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:56:15 +0000 Subject: [PATCH 411/519] chore(main): release 3.0.3-SNAPSHOT (#822) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index d9118314..e4775fe7 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.2 + 3.0.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 9d216e35..ade10828 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.2 + 3.0.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e33c792d..11a55354 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.2 + 3.0.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7b4ea287..e8d07194 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.2 + 3.0.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index a391ef66..8f1586f5 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.2 + 3.0.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.2 + 3.0.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9360d904..ac36e295 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6b7b1576..815634b3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.2:3.0.2 -grpc-google-cloud-dataproc-v1:3.0.2:3.0.2 -proto-google-cloud-dataproc-v1:3.0.2:3.0.2 +google-cloud-dataproc:3.0.2:3.0.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.0.2:3.0.3-SNAPSHOT +proto-google-cloud-dataproc-v1:3.0.2:3.0.3-SNAPSHOT From 7991f2cc75a795fbfd53bd0cbac46265047974b4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:34:12 +0200 Subject: [PATCH 412/519] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 8 ++++---- samples/snippets/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 96b6d850..3b960e21 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.0.0') +implementation platform('com.google.cloud:libraries-bom:25.1.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.0.1' +implementation 'com.google.cloud:google-cloud-dataproc:3.0.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.2" ``` ## Authentication diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e05dc3f8..2d2babea 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From d29f0e1cc3d676fb11ea957b90a91726ec1a83e7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:40:32 +0200 Subject: [PATCH 413/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.0.2 (#823) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v3.0.2`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-dataproccomparev301v302-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v3.0.1...v3.0.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b960e21..c57eea9a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1de55b84..f4e1ce34 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.0.1 + 3.0.2 From 72500fd9d425dbad26395ebb8df93801d97ff6f0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 19:56:29 +0200 Subject: [PATCH 414/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.6.0 (#824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.5.1` -> `2.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.0/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.0/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.6.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​260-httpsgithubcomgoogleapisjava-storagecomparev251v260-2022-03-30) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.5.1...v2.6.0) ##### Features - replace enum with string representation for predefined ACLs and public_access_prevention ([#​1323](https://togithub.com/googleapis/java-storage/issues/1323)) ([4dd1a88](https://togithub.com/googleapis/java-storage/commit/4dd1a8800317343bb0cd575864683e580f9ccd29)) ##### Bug Fixes - **java:** add configurations for Storage tests ([#​1305](https://togithub.com/googleapis/java-storage/issues/1305)) ([2bacf92](https://togithub.com/googleapis/java-storage/commit/2bacf92799e8a0fbdc1b5cfcfc6ef8d806a53fa3)) - update boundary checking of BlobReadChannel when limit() is used ([#​1324](https://togithub.com/googleapis/java-storage/issues/1324)) ([f21f624](https://togithub.com/googleapis/java-storage/commit/f21f624f1645b5ada350c04c774f9f113e76e971)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#​1321](https://togithub.com/googleapis/java-storage/issues/1321)) ([f48d8dd](https://togithub.com/googleapis/java-storage/commit/f48d8dd09e918ba4a54fccaebf65feaba4f6e206)) ##### Documentation - adjust retry settings for hmac samples ([#​1303](https://togithub.com/googleapis/java-storage/issues/1303)) ([d0c5361](https://togithub.com/googleapis/java-storage/commit/d0c5361e9e4996f8a99754381e5a28a843e6de2a)) ##### [2.5.1](https://togithub.com/googleapis/java-storage/compare/v2.5.0...v2.5.1) (2022-03-28) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.116.2 ([#​1310](https://togithub.com/googleapis/java-storage/issues/1310)) ([fb64493](https://togithub.com/googleapis/java-storage/commit/fb644932d4350b4e33481abda8cc8f498f9da85e))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f4e1ce34..05039874 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.5.1 + 2.6.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ac36e295..33e83a8f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.5.1 + 2.6.0 junit From f7bc22a6626dd7ef7941c94935cf0f04f2fadf9b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Apr 2022 18:10:21 +0000 Subject: [PATCH 415/519] chore(main): release 3.0.3 (#826) :robot: I have created a release *beep* *boop* --- ### [3.0.3](https://github.com/googleapis/java-dataproc/compare/v3.0.2...v3.0.3) (2022-04-01) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#824](https://github.com/googleapis/java-dataproc/issues/824)) ([72500fd](https://github.com/googleapis/java-dataproc/commit/72500fd9d425dbad26395ebb8df93801d97ff6f0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22938b28..240fb11d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.3](https://github.com/googleapis/java-dataproc/compare/v3.0.2...v3.0.3) (2022-04-01) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#824](https://github.com/googleapis/java-dataproc/issues/824)) ([72500fd](https://github.com/googleapis/java-dataproc/commit/72500fd9d425dbad26395ebb8df93801d97ff6f0)) + ### [3.0.2](https://github.com/googleapis/java-dataproc/compare/v3.0.1...v3.0.2) (2022-03-29) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e4775fe7..2c68ce6a 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.3-SNAPSHOT + 3.0.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.3-SNAPSHOT + 3.0.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index ade10828..17a7c8d1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.3-SNAPSHOT + 3.0.3 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.3-SNAPSHOT + 3.0.3 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 11a55354..6cb84e46 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.3-SNAPSHOT + 3.0.3 diff --git a/pom.xml b/pom.xml index e8d07194..8e19b6a8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.3-SNAPSHOT + 3.0.3 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3 com.google.cloud google-cloud-dataproc - 3.0.3-SNAPSHOT + 3.0.3 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 8f1586f5..68ae5726 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3-SNAPSHOT + 3.0.3 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.3-SNAPSHOT + 3.0.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 33e83a8f..4689a0c2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.3-SNAPSHOT + 3.0.3 diff --git a/versions.txt b/versions.txt index 815634b3..ca1276af 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.2:3.0.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.0.2:3.0.3-SNAPSHOT -proto-google-cloud-dataproc-v1:3.0.2:3.0.3-SNAPSHOT +google-cloud-dataproc:3.0.3:3.0.3 +grpc-google-cloud-dataproc-v1:3.0.3:3.0.3 +proto-google-cloud-dataproc-v1:3.0.3:3.0.3 From 9400f35bd34ea0e7fc6eedec563d169eee33da0e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Apr 2022 18:18:15 +0000 Subject: [PATCH 416/519] chore(main): release 3.0.4-SNAPSHOT (#827) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 2c68ce6a..453c9d6a 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.3 + 3.0.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 17a7c8d1..98f16f62 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.3 + 3.0.4-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 6cb84e46..f25bcd27 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.3 + 3.0.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8e19b6a8..84fef64d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.3 + 3.0.4-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 68ae5726..1ded62f2 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.3 + 3.0.4-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.3 + 3.0.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4689a0c2..652fe607 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index ca1276af..a964f2e8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.3:3.0.3 -grpc-google-cloud-dataproc-v1:3.0.3:3.0.3 -proto-google-cloud-dataproc-v1:3.0.3:3.0.3 +google-cloud-dataproc:3.0.3:3.0.4-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.0.3:3.0.4-SNAPSHOT +proto-google-cloud-dataproc-v1:3.0.3:3.0.4-SNAPSHOT From 14415a569043d5c9034283f37ce7a4238eb298f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Apr 2022 17:04:24 +0000 Subject: [PATCH 417/519] chore(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.12 (#1388) (#828) Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/4c770a0c6ef46b8462608c485735801b65be65ea Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:029f8a2fcd20ab09808e4a5cf5f3866f5976b6635197c764679f9b22591aab58 --- .github/.OwlBot.lock.yaml | 3 ++- README.md | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 426cf83e..0598f87d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:029f8a2fcd20ab09808e4a5cf5f3866f5976b6635197c764679f9b22591aab58 +# created: 2022-04-01T19:51:01.017179449Z diff --git a/README.md b/README.md index c57eea9a..26bfab9f 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.0.2' +implementation 'com.google.cloud:google-cloud-dataproc:3.0.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.3" ``` ## Authentication From 436fb9582144ffdb85e484af9feed59f487ccb6d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 4 Apr 2022 20:46:25 +0200 Subject: [PATCH 418/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.0.3 (#829) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v3.0.3`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-dataproccomparev302v303-2022-04-01) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v3.0.2...v3.0.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26bfab9f..4e6a921f 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 05039874..dfc74838 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.0.2 + 3.0.3 From 0f0d06008c55713299e0f4cb03189c28505f7947 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:56:10 +0000 Subject: [PATCH 419/519] chore: upgrade black in noxfile.py to 22.3.0 (#1377) (#830) * chore: upgrade black to 22.3.0 * update lint also * run blacken session * ci: use click>8.0 for blacken/lint sessions * chore: fix typo Co-authored-by: nicain * rebase error Co-authored-by: nicain Source-Link: https://github.com/googleapis/synthtool/commit/0dcf73928241fa27d7768e14c435e3d9f526beac Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4a8d2d787ea374ba929e37c39c4b16d2498044e24ef123077125b946cac2dcdc --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0598f87d..0333b34d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:029f8a2fcd20ab09808e4a5cf5f3866f5976b6635197c764679f9b22591aab58 -# created: 2022-04-01T19:51:01.017179449Z + digest: sha256:4a8d2d787ea374ba929e37c39c4b16d2498044e24ef123077125b946cac2dcdc +# created: 2022-04-01T22:15:20.641398017Z From fb961a560b6fb0807259aede2c9e382810092e09 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Apr 2022 15:58:27 +0000 Subject: [PATCH 420/519] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#832) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0333b34d..f60d7749 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:4a8d2d787ea374ba929e37c39c4b16d2498044e24ef123077125b946cac2dcdc -# created: 2022-04-01T22:15:20.641398017Z + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 00000000..4caef688 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# 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. +requestsize: + enabled: true From cdd75d56618bbbcabd919953cb231a364e25fb57 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:26:19 +0200 Subject: [PATCH 421/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#836) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 84fef64d..8bef2bfe 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From b3703e577919350f2d6476433664f616cea48f83 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 15 Apr 2022 19:42:33 +0000 Subject: [PATCH 422/519] chore(main): release 3.0.4 (#837) :robot: I have created a release *beep* *boop* --- ### [3.0.4](https://github.com/googleapis/java-dataproc/compare/v3.0.3...v3.0.4) (2022-04-15) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#836](https://github.com/googleapis/java-dataproc/issues/836)) ([cdd75d5](https://github.com/googleapis/java-dataproc/commit/cdd75d56618bbbcabd919953cb231a364e25fb57)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 240fb11d..8569e237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.0.4](https://github.com/googleapis/java-dataproc/compare/v3.0.3...v3.0.4) (2022-04-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#836](https://github.com/googleapis/java-dataproc/issues/836)) ([cdd75d5](https://github.com/googleapis/java-dataproc/commit/cdd75d56618bbbcabd919953cb231a364e25fb57)) + ### [3.0.3](https://github.com/googleapis/java-dataproc/compare/v3.0.2...v3.0.3) (2022-04-01) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 453c9d6a..991405f9 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.4-SNAPSHOT + 3.0.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.4-SNAPSHOT + 3.0.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 98f16f62..9a9497a7 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.4-SNAPSHOT + 3.0.4 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.4-SNAPSHOT + 3.0.4 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index f25bcd27..1eab360d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.4-SNAPSHOT + 3.0.4 diff --git a/pom.xml b/pom.xml index 8bef2bfe..4c98eb9e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.4-SNAPSHOT + 3.0.4 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4 com.google.cloud google-cloud-dataproc - 3.0.4-SNAPSHOT + 3.0.4 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 1ded62f2..cbc6d473 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4-SNAPSHOT + 3.0.4 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.4-SNAPSHOT + 3.0.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 652fe607..92e5840a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.4-SNAPSHOT + 3.0.4 diff --git a/versions.txt b/versions.txt index a964f2e8..fe38587e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.3:3.0.4-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.0.3:3.0.4-SNAPSHOT -proto-google-cloud-dataproc-v1:3.0.3:3.0.4-SNAPSHOT +google-cloud-dataproc:3.0.4:3.0.4 +grpc-google-cloud-dataproc-v1:3.0.4:3.0.4 +proto-google-cloud-dataproc-v1:3.0.4:3.0.4 From f2c8a68f377024ba69245871bd6472fb4dd454ab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Apr 2022 17:42:38 +0200 Subject: [PATCH 423/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.0.4 (#839) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-dataproc ### [`v3.0.4`](https://togithub.com/googleapis/java-dataproc/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-dataproccomparev303v304-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-dataproc/compare/v3.0.3...v3.0.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e6a921f..2c7f7322 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.0.3' +implementation 'com.google.cloud:google-cloud-dataproc:3.0.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.4" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index dfc74838..11fd7f67 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.0.3 + 3.0.4 From fd91c067b8c024cca89844f283e2d3d94563faa6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Apr 2022 23:14:29 +0200 Subject: [PATCH 424/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.6.1 (#840) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.6.0` -> `2.6.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.1/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.6.1/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.6.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​261-httpsgithubcomgoogleapisjava-storagecomparev260v261-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.6.0...v2.6.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 11fd7f67..6f9240d3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.6.0 + 2.6.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 92e5840a..df262ea3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.6.0 + 2.6.1 junit From 88c060cab7b61c2931a433ad67bd5737bccd6698 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 16:42:14 +0200 Subject: [PATCH 425/519] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (#842) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.2` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/compatibility-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/confidence-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4c98eb9e..641db8f2 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.4.0 html From d3ad0e6f4e81587107d6026a5f0feec669827708 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 17:26:29 +0200 Subject: [PATCH 426/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.3 (#841) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​133-httpsgithubcomgoogleapisjava-shared-configcomparev132v133-2022-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 991405f9..34e0a538 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 641db8f2..739a3da7 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 From 686a9a59a3d0d57ccc974379e885e0449579d43a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 20:00:34 +0200 Subject: [PATCH 427/519] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13 (#843) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.11` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/compatibility-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/confidence-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) ### [`v1.6.12`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index f5ac6870..fae88916 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.11 + 1.6.13 true From c01b733d983093be293b774180cfeebe2d88da88 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:34:23 +0200 Subject: [PATCH 428/519] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#845) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2c7f7322..e7fde985 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.1.0') +implementation platform('com.google.cloud:libraries-bom:25.2.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2d2babea..5d95bbb2 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From 3d4c12581a2e7bd7b0d2673d9f88d3df8e29a897 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Apr 2022 22:20:18 +0200 Subject: [PATCH 429/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.4.0 (#847) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.3` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/compatibility-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/confidence-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisjava-shared-configcomparev133v140-2022-04-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) ##### Features - **java:** remove native image module ([#​471](https://togithub.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://togithub.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) ##### [1.3.3](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) ##### Bug Fixes - **java:** remove protobuf feature from native profile ([#​461](https://togithub.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://togithub.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.11 ([#​459](https://togithub.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://togithub.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) - update dependency com.google.cloud:native-image-support to v0.13.1 ([#​465](https://togithub.com/googleapis/java-shared-config/issues/465)) ([b202064](https://togithub.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) ##### [1.3.2](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) ##### Dependencies - revert google-java-format to 1.7 ([#​453](https://togithub.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://togithub.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) ##### [1.3.1](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​443](https://togithub.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://togithub.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) - update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#​426](https://togithub.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://togithub.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​448](https://togithub.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://togithub.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​449](https://togithub.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://togithub.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 34e0a538..8df27dd0 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 739a3da7..1e2158fe 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 From b9224c9540b1a2297713d55e74a722bad276d3b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 5 May 2022 00:52:32 +0200 Subject: [PATCH 430/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#846) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.2` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/compatibility-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/confidence-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1e2158fe..7a330c87 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 + 3.3.0 From 5fe14ad4a3b9b6072d2b996ddffea1981a42d78e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:46:12 +0200 Subject: [PATCH 431/519] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#852) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e7fde985..cfd2c811 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.2.0') +implementation platform('com.google.cloud:libraries-bom:25.3.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5d95bbb2..5a0b9724 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From 00cdc4ef6c87347ce2229f8c8a62f6bce05ffed5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:14:18 +0200 Subject: [PATCH 432/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 (#853) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.11.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2100v2110-2022-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.10.0...v2.11.0) ##### Features - next release from main branch is 2.11.0 ([#​674](https://togithub.com/googleapis/java-shared-dependencies/issues/674)) ([611e3b7](https://togithub.com/googleapis/java-shared-dependencies/commit/611e3b7c50108a71efc94415166b85d2bf8647e5)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.3 ([#​689](https://togithub.com/googleapis/java-shared-dependencies/issues/689)) ([03897e3](https://togithub.com/googleapis/java-shared-dependencies/commit/03897e30a71f8f1aa37233da2433ee5afccc1d61)) - update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#​685](https://togithub.com/googleapis/java-shared-dependencies/issues/685)) ([9bc0557](https://togithub.com/googleapis/java-shared-dependencies/commit/9bc0557d8ce2f3d8dc7c8ffafdd36fd4c03e2df5)) - update dependency com.google.api:api-common to v2.2.0 ([#​690](https://togithub.com/googleapis/java-shared-dependencies/issues/690)) ([47a8736](https://togithub.com/googleapis/java-shared-dependencies/commit/47a87365e51f73132b15b054d85f8c9baa8e89f6)) - update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#​691](https://togithub.com/googleapis/java-shared-dependencies/issues/691)) ([ec6aab7](https://togithub.com/googleapis/java-shared-dependencies/commit/ec6aab72eaed43574efe47a696bba6a612f161bb)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#​672](https://togithub.com/googleapis/java-shared-dependencies/issues/672)) ([8c7e530](https://togithub.com/googleapis/java-shared-dependencies/commit/8c7e530d3c7170b2fb76cc27a05164524ba4e00b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#​684](https://togithub.com/googleapis/java-shared-dependencies/issues/684)) ([1305356](https://togithub.com/googleapis/java-shared-dependencies/commit/1305356775247dbb641b60654ac56da43513088e)) - update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#​678](https://togithub.com/googleapis/java-shared-dependencies/issues/678)) ([3e6d4a1](https://togithub.com/googleapis/java-shared-dependencies/commit/3e6d4a1a8e5d45723071a62c99bb1ab87d2b2b84)) - update dependency io.grpc:grpc-bom to v1.46.0 ([#​680](https://togithub.com/googleapis/java-shared-dependencies/issues/680)) ([b8a052b](https://togithub.com/googleapis/java-shared-dependencies/commit/b8a052b75a1bc2703500b4f31c5c6dac887ab8be)) - update dependency org.checkerframework:checker-qual to v3.22.0 ([#​683](https://togithub.com/googleapis/java-shared-dependencies/issues/683)) ([b0a30cd](https://togithub.com/googleapis/java-shared-dependencies/commit/b0a30cdecae8dcfb3a6d36e3f194c39a0086673e)) - update gax.version to v2.17.0 ([#​687](https://togithub.com/googleapis/java-shared-dependencies/issues/687)) ([e0e89ea](https://togithub.com/googleapis/java-shared-dependencies/commit/e0e89eade481effc723c9c7261f2ebf4e5883621)) - update gax.version to v2.18.0 ([#​692](https://togithub.com/googleapis/java-shared-dependencies/issues/692)) ([9536612](https://togithub.com/googleapis/java-shared-dependencies/commit/9536612c77af1e4d912c5b63515ea6f750e53810)) - update google.core.version to v2.6.1 ([#​671](https://togithub.com/googleapis/java-shared-dependencies/issues/671)) ([e3d1aeb](https://togithub.com/googleapis/java-shared-dependencies/commit/e3d1aebed31f8e91109d5865afd9525ac3595c90)) - update google.core.version to v2.7.0 ([#​693](https://togithub.com/googleapis/java-shared-dependencies/issues/693)) ([2171677](https://togithub.com/googleapis/java-shared-dependencies/commit/2171677e16190de9f37dc16c924d829ea8ccd86c)) - update iam.version to v1.3.2 ([#​673](https://togithub.com/googleapis/java-shared-dependencies/issues/673)) ([9882baa](https://togithub.com/googleapis/java-shared-dependencies/commit/9882baa3ecc8d7584788af1916f0d8c5ec670b5c)) - update iam.version to v1.3.3 ([#​679](https://togithub.com/googleapis/java-shared-dependencies/issues/679)) ([9fe34c8](https://togithub.com/googleapis/java-shared-dependencies/commit/9fe34c89eabed5eeebad986bffeeeb64dbbc38c1)) - update iam.version to v1.3.4 ([#​686](https://togithub.com/googleapis/java-shared-dependencies/issues/686)) ([4e95b3a](https://togithub.com/googleapis/java-shared-dependencies/commit/4e95b3a1d4302812338c220df316391c19ef7473)) - update opencensus.version to v0.31.1 ([#​682](https://togithub.com/googleapis/java-shared-dependencies/issues/682)) ([5d25746](https://togithub.com/googleapis/java-shared-dependencies/commit/5d25746bc6c9329b240204cbe7b83e2fee4c6cb3))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7a330c87..bbc78912 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.10.0 + 2.11.0 pom import From 90026af3cc46b2db3dfdc2ebbc7dd5451d015312 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 21:22:27 +0000 Subject: [PATCH 433/519] feat: add build scripts for native image testing in Java 17 (#1440) (#854) Source-Link: https://github.com/googleapis/synthtool/commit/505ce5a7edb58bf6d9d4de10b4bb4e81000ae324 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 --- .github/.OwlBot.lock.yaml | 4 +-- .kokoro/build.sh | 5 ++++ .kokoro/presubmit/graalvm-native-17.cfg | 33 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .kokoro/presubmit/graalvm-native-17.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f60d7749..a79f0627 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 -# created: 2022-04-06T16:30:03.627422514Z + digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 +# created: 2022-05-19T15:12:45.278246753Z diff --git a/.kokoro/build.sh b/.kokoro/build.sh index e1ad4ed9..baf6bb6d 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -74,6 +74,11 @@ graalvm) mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; +graalvm17) + # 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. diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg new file mode 100644 index 00000000..a3f7fb9d --- /dev/null +++ b/.kokoro/presubmit/graalvm-native-17.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/graalvm17" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm17" +} + +# 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" +} \ No newline at end of file From b5d889e6e485c70f5cd893a0355a65b2a76bbdb7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 20 May 2022 00:56:20 +0200 Subject: [PATCH 434/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 (#855) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.11.0` -> `2.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.12.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2110v2120-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.11.0...v2.12.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-dependencies/issues/1440)) ([#​697](https://togithub.com/googleapis/java-shared-dependencies/issues/697)) ([f10ec4e](https://togithub.com/googleapis/java-shared-dependencies/commit/f10ec4e664d8fde868effe366b7182a5fad08dd0)) ##### Dependencies - update gax.version to v2.18.1 ([#​695](https://togithub.com/googleapis/java-shared-dependencies/issues/695)) ([09bc61c](https://togithub.com/googleapis/java-shared-dependencies/commit/09bc61c9152a99bfe87554a07324f15ae6217d6e)) - update google.core.version to v2.7.1 ([#​698](https://togithub.com/googleapis/java-shared-dependencies/issues/698)) ([43de259](https://togithub.com/googleapis/java-shared-dependencies/commit/43de2593f1a6e8fa5e34799364ab683246ddd449))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bbc78912..dc024560 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.11.0 + 2.12.0 pom import From 267c87c8d0673ea1cc5cc5cda1572a6cefdec4e3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 May 2022 15:09:12 -0400 Subject: [PATCH 435/519] chore(main): release 3.0.5-SNAPSHOT (#838) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8df27dd0..24072da9 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.4 + 3.0.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.4 + 3.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 9a9497a7..eeae8d09 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.4 + 3.0.5-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.4 + 3.0.5-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 1eab360d..e19d06c8 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.4 + 3.0.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index dc024560..8c28a843 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.4 + 3.0.5-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.0.4 + 3.0.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index cbc6d473..52b7d77f 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.4 + 3.0.5-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.4 + 3.0.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index df262ea3..5a940c52 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.4 + 3.0.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index fe38587e..421681aa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.4:3.0.4 -grpc-google-cloud-dataproc-v1:3.0.4:3.0.4 -proto-google-cloud-dataproc-v1:3.0.4:3.0.4 +google-cloud-dataproc:3.0.4:3.0.5-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.0.4:3.0.5-SNAPSHOT +proto-google-cloud-dataproc-v1:3.0.4:3.0.5-SNAPSHOT From f883d2e402cbe4a17dd1e6525a80b71c20b3b725 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 02:34:12 +0000 Subject: [PATCH 436/519] chore(main): release 3.1.0 (#859) :robot: I have created a release *beep* *boop* --- ## [3.1.0](https://github.com/googleapis/java-dataproc/compare/v3.0.4...v3.1.0) (2022-05-23) ### Features * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-dataproc/issues/1440)) ([#854](https://github.com/googleapis/java-dataproc/issues/854)) ([90026af](https://github.com/googleapis/java-dataproc/commit/90026af3cc46b2db3dfdc2ebbc7dd5451d015312)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#853](https://github.com/googleapis/java-dataproc/issues/853)) ([00cdc4e](https://github.com/googleapis/java-dataproc/commit/00cdc4ef6c87347ce2229f8c8a62f6bce05ffed5)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#855](https://github.com/googleapis/java-dataproc/issues/855)) ([b5d889e](https://github.com/googleapis/java-dataproc/commit/b5d889e6e485c70f5cd893a0355a65b2a76bbdb7)) * update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#840](https://github.com/googleapis/java-dataproc/issues/840)) ([fd91c06](https://github.com/googleapis/java-dataproc/commit/fd91c067b8c024cca89844f283e2d3d94563faa6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 14 ++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8569e237..17838206 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [3.1.0](https://github.com/googleapis/java-dataproc/compare/v3.0.4...v3.1.0) (2022-05-23) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-dataproc/issues/1440)) ([#854](https://github.com/googleapis/java-dataproc/issues/854)) ([90026af](https://github.com/googleapis/java-dataproc/commit/90026af3cc46b2db3dfdc2ebbc7dd5451d015312)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#853](https://github.com/googleapis/java-dataproc/issues/853)) ([00cdc4e](https://github.com/googleapis/java-dataproc/commit/00cdc4ef6c87347ce2229f8c8a62f6bce05ffed5)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#855](https://github.com/googleapis/java-dataproc/issues/855)) ([b5d889e](https://github.com/googleapis/java-dataproc/commit/b5d889e6e485c70f5cd893a0355a65b2a76bbdb7)) +* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#840](https://github.com/googleapis/java-dataproc/issues/840)) ([fd91c06](https://github.com/googleapis/java-dataproc/commit/fd91c067b8c024cca89844f283e2d3d94563faa6)) + ### [3.0.4](https://github.com/googleapis/java-dataproc/compare/v3.0.3...v3.0.4) (2022-04-15) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 24072da9..67ffffdc 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.0.5-SNAPSHOT + 3.1.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.0.5-SNAPSHOT + 3.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index eeae8d09..5289718e 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.0.5-SNAPSHOT + 3.1.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.0.5-SNAPSHOT + 3.1.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e19d06c8..a712241e 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.5-SNAPSHOT + 3.1.0 diff --git a/pom.xml b/pom.xml index 8c28a843..f4010426 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.0.5-SNAPSHOT + 3.1.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 com.google.cloud google-cloud-dataproc - 3.0.5-SNAPSHOT + 3.1.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 52b7d77f..6b22cc78 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.0.5-SNAPSHOT + 3.1.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.0.5-SNAPSHOT + 3.1.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5a940c52..de6031dc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.0.5-SNAPSHOT + 3.1.0 diff --git a/versions.txt b/versions.txt index 421681aa..a6b599be 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.0.4:3.0.5-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.0.4:3.0.5-SNAPSHOT -proto-google-cloud-dataproc-v1:3.0.4:3.0.5-SNAPSHOT +google-cloud-dataproc:3.1.0:3.1.0 +grpc-google-cloud-dataproc-v1:3.1.0:3.1.0 +proto-google-cloud-dataproc-v1:3.1.0:3.1.0 From d55863303648e5a89d420c41160c6f55401b53ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 02:46:16 +0000 Subject: [PATCH 437/519] chore(main): release 3.1.1-SNAPSHOT (#860) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 67ffffdc..cc4df944 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.0 + 3.1.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 5289718e..03c39362 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.0 + 3.1.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index a712241e..64c81f37 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index f4010426..9c67fbe9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.0 + 3.1.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 6b22cc78..7cbd946e 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.0 + 3.1.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index de6031dc..11786851 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index a6b599be..4884e6ea 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.0:3.1.0 -grpc-google-cloud-dataproc-v1:3.1.0:3.1.0 -proto-google-cloud-dataproc-v1:3.1.0:3.1.0 +google-cloud-dataproc:3.1.0:3.1.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.1.0:3.1.1-SNAPSHOT +proto-google-cloud-dataproc-v1:3.1.0:3.1.1-SNAPSHOT From f4d6ea4ecae505a69a96f4eceec041a4263071fd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 00:16:35 +0200 Subject: [PATCH 438/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.1.0 (#861) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.0.4` -> `3.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.0/compatibility-slim/3.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.0/confidence-slim/3.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfd2c811..7ce86a5b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.0.4 + 3.1.0 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.0.4' +implementation 'com.google.cloud:google-cloud-dataproc:3.1.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.0.4" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6f9240d3..fc6f58a3 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.0.4 + 3.1.0 From 29cd497e82b69249f1058be873c0312d2eb082ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 00:22:12 +0200 Subject: [PATCH 439/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.7.0 (#862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.6.1` -> `2.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.7.1/compatibility-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.7.1/confidence-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fc6f58a3..8856cbba 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.6.1 + 2.7.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 11786851..a4f29415 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.6.1 + 2.7.0 junit From 5543bab5ae486c9c1ce80027cd16028e906dc56b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 22:34:15 +0000 Subject: [PATCH 440/519] chore(main): release 3.1.1 (#863) :robot: I have created a release *beep* *boop* --- ### [3.1.1](https://github.com/googleapis/java-dataproc/compare/v3.1.0...v3.1.1) (2022-05-25) ### Dependencies * update dependency com.google.cloud:google-cloud-storage to v2.7.0 ([#862](https://github.com/googleapis/java-dataproc/issues/862)) ([29cd497](https://github.com/googleapis/java-dataproc/commit/29cd497e82b69249f1058be873c0312d2eb082ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17838206..ef9f772f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [3.1.1](https://github.com/googleapis/java-dataproc/compare/v3.1.0...v3.1.1) (2022-05-25) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-storage to v2.7.0 ([#862](https://github.com/googleapis/java-dataproc/issues/862)) ([29cd497](https://github.com/googleapis/java-dataproc/commit/29cd497e82b69249f1058be873c0312d2eb082ac)) + ## [3.1.0](https://github.com/googleapis/java-dataproc/compare/v3.0.4...v3.1.0) (2022-05-23) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index cc4df944..e80bc537 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.1-SNAPSHOT + 3.1.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.1-SNAPSHOT + 3.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 03c39362..4b27066b 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.1-SNAPSHOT + 3.1.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.1-SNAPSHOT + 3.1.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 64c81f37..a8d7419c 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.1-SNAPSHOT + 3.1.1 diff --git a/pom.xml b/pom.xml index 9c67fbe9..29798f32 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.1-SNAPSHOT + 3.1.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 com.google.cloud google-cloud-dataproc - 3.1.1-SNAPSHOT + 3.1.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 7cbd946e..e7a674c0 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1-SNAPSHOT + 3.1.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.1-SNAPSHOT + 3.1.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a4f29415..0c28f036 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.1-SNAPSHOT + 3.1.1 diff --git a/versions.txt b/versions.txt index 4884e6ea..28d99015 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.0:3.1.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.1.0:3.1.1-SNAPSHOT -proto-google-cloud-dataproc-v1:3.1.0:3.1.1-SNAPSHOT +google-cloud-dataproc:3.1.1:3.1.1 +grpc-google-cloud-dataproc-v1:3.1.1:3.1.1 +proto-google-cloud-dataproc-v1:3.1.1:3.1.1 From aade1923b29bac9dc799d8c48a4e3ab4db192a21 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 22:44:16 +0000 Subject: [PATCH 441/519] chore(main): release 3.1.2-SNAPSHOT (#864) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index e80bc537..0a9b90b3 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.1 + 3.1.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 4b27066b..4d501f6a 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.1 + 3.1.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index a8d7419c..d80c2212 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.1 + 3.1.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 29798f32..9a2f0d4a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.1 + 3.1.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e7a674c0..77fd9180 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.1 + 3.1.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.1 + 3.1.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0c28f036..4ade2443 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 28d99015..a990b820 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.1:3.1.1 -grpc-google-cloud-dataproc-v1:3.1.1:3.1.1 -proto-google-cloud-dataproc-v1:3.1.1:3.1.1 +google-cloud-dataproc:3.1.1:3.1.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.1.1:3.1.2-SNAPSHOT +proto-google-cloud-dataproc-v1:3.1.1:3.1.2-SNAPSHOT From 6f1df02086953701a272574fc5a7e1e611d4f346 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 16:34:31 +0200 Subject: [PATCH 442/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.1.1 (#865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.1.0` -> `3.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.1/compatibility-slim/3.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.1/confidence-slim/3.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ce86a5b..4b18d7eb 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.1.0' +implementation 'com.google.cloud:google-cloud-dataproc:3.1.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.1" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8856cbba..7cc05da5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.1.0 + 3.1.1 From 5aad785c57dfb572807682c361ea8e6d64a83fae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:08:24 +0200 Subject: [PATCH 443/519] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4b18d7eb..0bf35c96 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.3.0') +implementation platform('com.google.cloud:libraries-bom:25.4.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5a0b9724..35561dbf 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From 784d5f566e37caa3dba3449a66ff805401af9273 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jun 2022 18:58:10 +0200 Subject: [PATCH 444/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.0 (#868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.4.0` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​150-httpsgithubcomgoogleapisjava-shared-configcomparev140v150-2022-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-config/issues/1440)) ([#​475](https://togithub.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://togithub.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a)) - to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://togithub.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09)) ##### Dependencies - update surefire.version to v3.0.0-m7 ([bbfe663](https://togithub.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 0a9b90b3..741e6979 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 9a2f0d4a..dcebd778 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 From e192dd28b6b51660bd9ee3c0ec87959c880c0d1d Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 14 Jun 2022 21:30:24 +0000 Subject: [PATCH 445/519] chore: include generated samples dir (#867) --- .github/.OwlBot.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index 68b4814f..22519649 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -16,6 +16,7 @@ docker: image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" deep-remove-regex: +- "/samples/snippets/generated" - "/grpc-google-.*/src" - "/proto-google-.*/src" - "/google-.*/src" @@ -30,3 +31,5 @@ deep-copy-regex: dest: "/owl-bot-staging/$1/grpc-google-cloud-dataproc-$1/src" - source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src" dest: "/owl-bot-staging/$1/google-cloud-dataproc/src" +- source: "/google/cloud/dataproc/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/$1/samples/snippets/generated" From de2c2133fdef65dc58d87aa941b5b932a0cd1fdd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jun 2022 17:26:21 +0200 Subject: [PATCH 446/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 (#870) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2130-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2120v2130-2022-06-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.12.0...v2.13.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.0 ([#​709](https://togithub.com/googleapis/java-shared-dependencies/issues/709)) ([239f8c3](https://togithub.com/googleapis/java-shared-dependencies/commit/239f8c33a11e233e6af79aee8c7e68cd156a0554)) - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​713](https://togithub.com/googleapis/java-shared-dependencies/issues/713)) ([6559b45](https://togithub.com/googleapis/java-shared-dependencies/commit/6559b45b027dba783a9525d35e32183d78773cbe)) - update dependency com.google.api:api-common to v2.2.1 ([#​710](https://togithub.com/googleapis/java-shared-dependencies/issues/710)) ([650d4c5](https://togithub.com/googleapis/java-shared-dependencies/commit/650d4c5f8c3cfce711257d47280ad773cd2e2414)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​701](https://togithub.com/googleapis/java-shared-dependencies/issues/701)) ([d24730f](https://togithub.com/googleapis/java-shared-dependencies/commit/d24730f78669f80b109e590b903446e5552e3e36)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​711](https://togithub.com/googleapis/java-shared-dependencies/issues/711)) ([5168a18](https://togithub.com/googleapis/java-shared-dependencies/commit/5168a181722128d434a0d0d2ab5cc485686bbc78)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.0 ([#​708](https://togithub.com/googleapis/java-shared-dependencies/issues/708)) ([620336e](https://togithub.com/googleapis/java-shared-dependencies/commit/620336e6733e2017116e5e8a7b403b183a728bc1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.1 ([#​712](https://togithub.com/googleapis/java-shared-dependencies/issues/712)) ([a2c18a5](https://togithub.com/googleapis/java-shared-dependencies/commit/a2c18a5bc4152cc9034cec691a29f54a35c38a51)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​703](https://togithub.com/googleapis/java-shared-dependencies/issues/703)) ([5f9fe12](https://togithub.com/googleapis/java-shared-dependencies/commit/5f9fe1200b4bdf4c54bf947c21bd3ed02f26f990)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​705](https://togithub.com/googleapis/java-shared-dependencies/issues/705)) ([c68edfb](https://togithub.com/googleapis/java-shared-dependencies/commit/c68edfbe7e1993e1112640b867b29aa2fbcf7579)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​707](https://togithub.com/googleapis/java-shared-dependencies/issues/707)) ([d02918a](https://togithub.com/googleapis/java-shared-dependencies/commit/d02918a0418cd65d1d247f27afb0637f1f8f5666)) - update dependency org.checkerframework:checker-qual to v3.22.1 ([#​706](https://togithub.com/googleapis/java-shared-dependencies/issues/706)) ([545843b](https://togithub.com/googleapis/java-shared-dependencies/commit/545843b492cead230b8cc72a1dae7d4922f33b39)) - update dependency org.checkerframework:checker-qual to v3.22.2 ([#​717](https://togithub.com/googleapis/java-shared-dependencies/issues/717)) ([142852a](https://togithub.com/googleapis/java-shared-dependencies/commit/142852a37140f221197f5c71aed451def353b1e0)) - update gax.version to v2.18.2 ([#​718](https://togithub.com/googleapis/java-shared-dependencies/issues/718)) ([5f8156e](https://togithub.com/googleapis/java-shared-dependencies/commit/5f8156e55c6a07b018a8c5efafa68be781b4288b)) - update google.common-protos.version to v2.9.0 ([#​714](https://togithub.com/googleapis/java-shared-dependencies/issues/714)) ([9e5591e](https://togithub.com/googleapis/java-shared-dependencies/commit/9e5591ec3035350450ecbfebd00e08216433b06c)) - update google.core.version to v2.8.0 ([#​719](https://togithub.com/googleapis/java-shared-dependencies/issues/719)) ([4023c60](https://togithub.com/googleapis/java-shared-dependencies/commit/4023c6063a2c5b5308da531df1a08c90c491965d)) - update iam.version to v1.4.0 ([#​700](https://togithub.com/googleapis/java-shared-dependencies/issues/700)) ([c1097a4](https://togithub.com/googleapis/java-shared-dependencies/commit/c1097a46ab0739b0b7234bc510e4c3d9ce2c2861)) - update iam.version to v1.4.1 ([#​716](https://togithub.com/googleapis/java-shared-dependencies/issues/716)) ([e2dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/e2dc7c21c39e007878841e2664d548ec44a72d54))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dcebd778..6facf91b 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.12.0 + 2.13.0 pom import From 47cf949f94d52a79b04ba4366167d61f9c7f016b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:36:16 +0000 Subject: [PATCH 447/519] chore(main): release 3.1.2 (#871) :robot: I have created a release *beep* *boop* --- ## [3.1.2](https://github.com/googleapis/java-dataproc/compare/v3.1.1...v3.1.2) (2022-06-23) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#870](https://github.com/googleapis/java-dataproc/issues/870)) ([de2c213](https://github.com/googleapis/java-dataproc/commit/de2c2133fdef65dc58d87aa941b5b932a0cd1fdd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef9f772f..0a841089 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.1.2](https://github.com/googleapis/java-dataproc/compare/v3.1.1...v3.1.2) (2022-06-23) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#870](https://github.com/googleapis/java-dataproc/issues/870)) ([de2c213](https://github.com/googleapis/java-dataproc/commit/de2c2133fdef65dc58d87aa941b5b932a0cd1fdd)) + ### [3.1.1](https://github.com/googleapis/java-dataproc/compare/v3.1.0...v3.1.1) (2022-05-25) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 741e6979..8efae019 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.2-SNAPSHOT + 3.1.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.2-SNAPSHOT + 3.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 4d501f6a..823515c3 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.2-SNAPSHOT + 3.1.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.2-SNAPSHOT + 3.1.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index d80c2212..e572090a 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.2-SNAPSHOT + 3.1.2 diff --git a/pom.xml b/pom.xml index 6facf91b..f7b3fbe6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.2-SNAPSHOT + 3.1.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2 com.google.cloud google-cloud-dataproc - 3.1.2-SNAPSHOT + 3.1.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 77fd9180..4e9161f5 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2-SNAPSHOT + 3.1.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.2-SNAPSHOT + 3.1.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4ade2443..df456d2b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.2-SNAPSHOT + 3.1.2 diff --git a/versions.txt b/versions.txt index a990b820..64cf9566 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.1:3.1.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.1.1:3.1.2-SNAPSHOT -proto-google-cloud-dataproc-v1:3.1.1:3.1.2-SNAPSHOT +google-cloud-dataproc:3.1.2:3.1.2 +grpc-google-cloud-dataproc-v1:3.1.2:3.1.2 +proto-google-cloud-dataproc-v1:3.1.2:3.1.2 From 63d3d8fce1c04fd0962a98a42b09558a511163a8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:58:11 +0000 Subject: [PATCH 448/519] chore(main): release 3.1.3-SNAPSHOT (#872) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8efae019..fbcfca30 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.2 + 3.1.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.2 + 3.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 823515c3..8c347ebe 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.2 + 3.1.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.2 + 3.1.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index e572090a..52022e19 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.2 + 3.1.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index f7b3fbe6..be056ecd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.2 + 3.1.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 3.1.2 + 3.1.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 4e9161f5..e5715ad4 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.2 + 3.1.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.2 + 3.1.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index df456d2b..9122f2bb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.2 + 3.1.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 64cf9566..a9ab643d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.2:3.1.2 -grpc-google-cloud-dataproc-v1:3.1.2:3.1.2 -proto-google-cloud-dataproc-v1:3.1.2:3.1.2 +google-cloud-dataproc:3.1.2:3.1.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:3.1.2:3.1.3-SNAPSHOT +proto-google-cloud-dataproc-v1:3.1.2:3.1.3-SNAPSHOT From 4cc5676e8ee05f1bf7e856c01ff50b8f1ac920c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 24 Jun 2022 17:02:16 +0200 Subject: [PATCH 449/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v3.1.2 (#873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `3.1.1` -> `3.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.2/compatibility-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/3.1.2/confidence-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0bf35c96..8a5ddb14 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.1.1' +implementation 'com.google.cloud:google-cloud-dataproc:3.1.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.2" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7cc05da5..b00277cb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.1.1 + 3.1.2 From 88b0239f746c8540b99e41746dbae40e9af19b42 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:32:34 +0000 Subject: [PATCH 450/519] chore: update dependencies for regapic (#1467) (#874) * chore: update dependencies for regapic * add more dependencies and trigger comment * update goldens * fix indentation * remove duplicate gax-httpjson dependency * remove duplicated dependencies Source-Link: https://github.com/googleapis/synthtool/commit/fa54eb2a78c6ee48613fd33152e2130e949dcbd9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/common.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a79f0627..f0625e4d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 -# created: 2022-05-19T15:12:45.278246753Z + digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 +# created: 2022-06-27T15:01:06.405564326Z diff --git a/.kokoro/common.sh b/.kokoro/common.sh index ace89f45..f8f957af 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -55,4 +55,6 @@ function retry_with_backoff { ## Helper functionss function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file +function println() { printf '%s\n' "$(now) $*"; } + +## Helper comment to trigger updated repo dependency release \ No newline at end of file From dd6bebbff4d0f0949d2435b88b801f1353a698b3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:14:21 +0000 Subject: [PATCH 451/519] fix: update gapic-generator-java with mock service generation fixes (#833) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 chore(bazel): update version of Protobuf to v3.20.1 PiperOrigin-RevId: 444328399 Source-Link: https://github.com/googleapis/googleapis/commit/c7ca416c2856aad6a3f7092924e56b8cf0cb2534 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 fix: Move `yarn_config` into a `oneof` Committer: @harwayne PiperOrigin-RevId: 440226213 Source-Link: https://github.com/googleapis/googleapis/commit/c782e45288c42c411c41a2eca30bf4937c1e4edb Source-Link: https://github.com/googleapis/googleapis-gen/commit/d45c242ee81ffcbbb9eb985318ce897ac0d778af Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDQ1YzI0MmVlODFmZmNiYmI5ZWI5ODUzMThjZTg5N2FjMGQ3NzhhZiJ9 fix!: Remove `temp_bucket` from VirtualClusterConfig, as its value was not used Committer: @harwayne PiperOrigin-RevId: 440224385 Source-Link: https://github.com/googleapis/googleapis/commit/afc5066d9c3133493b93f83d39c03f10524efcaf Source-Link: https://github.com/googleapis/googleapis-gen/commit/07cf54aa66638cb92e2db6a6624cb3da9929740a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDdjZjU0YWE2NjYzOGNiOTJlMmRiNmE2NjI0Y2IzZGE5OTI5NzQwYSJ9 --- google-cloud-dataproc/pom.xml | 16 + .../v1/AutoscalingPolicyServiceClient.java | 73 +- .../v1/AutoscalingPolicyServiceSettings.java | 27 +- .../dataproc/v1/BatchControllerClient.java | 88 +- .../dataproc/v1/BatchControllerSettings.java | 27 +- .../dataproc/v1/ClusterControllerClient.java | 112 +- .../v1/ClusterControllerSettings.java | 27 +- .../dataproc/v1/JobControllerClient.java | 97 +- .../dataproc/v1/JobControllerSettings.java | 27 +- .../v1/WorkflowTemplateServiceClient.java | 166 ++- .../v1/WorkflowTemplateServiceSettings.java | 27 +- .../cloud/dataproc/v1/package-info.java | 12 +- .../v1/stub/AutoscalingPolicyServiceStub.java | 2 +- .../AutoscalingPolicyServiceStubSettings.java | 58 +- .../dataproc/v1/stub/BatchControllerStub.java | 8 +- .../v1/stub/BatchControllerStubSettings.java | 58 +- .../v1/stub/ClusterControllerStub.java | 8 +- .../stub/ClusterControllerStubSettings.java | 58 +- ...toscalingPolicyServiceCallableFactory.java | 2 +- .../GrpcAutoscalingPolicyServiceStub.java | 2 +- .../GrpcBatchControllerCallableFactory.java | 2 +- .../v1/stub/GrpcBatchControllerStub.java | 2 +- .../GrpcClusterControllerCallableFactory.java | 2 +- .../v1/stub/GrpcClusterControllerStub.java | 2 +- .../GrpcJobControllerCallableFactory.java | 2 +- .../v1/stub/GrpcJobControllerStub.java | 2 +- ...orkflowTemplateServiceCallableFactory.java | 2 +- .../stub/GrpcWorkflowTemplateServiceStub.java | 2 +- ...toscalingPolicyServiceCallableFactory.java | 105 ++ .../HttpJsonAutoscalingPolicyServiceStub.java | 452 +++++++ ...ttpJsonBatchControllerCallableFactory.java | 105 ++ .../v1/stub/HttpJsonBatchControllerStub.java | 389 +++++++ ...pJsonClusterControllerCallableFactory.java | 105 ++ .../stub/HttpJsonClusterControllerStub.java | 739 ++++++++++++ .../HttpJsonJobControllerCallableFactory.java | 105 ++ .../v1/stub/HttpJsonJobControllerStub.java | 563 +++++++++ ...orkflowTemplateServiceCallableFactory.java | 105 ++ .../HttpJsonWorkflowTemplateServiceStub.java | 626 ++++++++++ .../dataproc/v1/stub/JobControllerStub.java | 8 +- .../v1/stub/JobControllerStubSettings.java | 58 +- .../v1/stub/WorkflowTemplateServiceStub.java | 8 +- .../WorkflowTemplateServiceStubSettings.java | 58 +- ...calingPolicyServiceClientHttpJsonTest.java | 653 +++++++++++ .../AutoscalingPolicyServiceClientTest.java | 2 +- .../v1/BatchControllerClientHttpJsonTest.java | 502 ++++++++ .../v1/BatchControllerClientTest.java | 2 +- .../ClusterControllerClientHttpJsonTest.java | 616 ++++++++++ .../v1/ClusterControllerClientTest.java | 2 +- .../v1/JobControllerClientHttpJsonTest.java | 539 +++++++++ .../dataproc/v1/JobControllerClientTest.java | 2 +- .../v1/MockAutoscalingPolicyService.java | 2 +- .../v1/MockAutoscalingPolicyServiceImpl.java | 2 +- .../dataproc/v1/MockBatchController.java | 2 +- .../dataproc/v1/MockBatchControllerImpl.java | 2 +- .../dataproc/v1/MockClusterController.java | 2 +- .../v1/MockClusterControllerImpl.java | 2 +- .../cloud/dataproc/v1/MockJobController.java | 2 +- .../dataproc/v1/MockJobControllerImpl.java | 2 +- .../v1/MockWorkflowTemplateService.java | 2 +- .../v1/MockWorkflowTemplateServiceImpl.java | 2 +- ...flowTemplateServiceClientHttpJsonTest.java | 1037 +++++++++++++++++ .../v1/WorkflowTemplateServiceClientTest.java | 46 +- .../cloud/dataproc/v1/AcceleratorConfig.java | 2 + .../cloud/dataproc/v1/AutoscalingConfig.java | 2 + .../dataproc/v1/AutoscalingPoliciesProto.java | 150 +-- .../cloud/dataproc/v1/AutoscalingPolicy.java | 24 +- .../dataproc/v1/AutoscalingPolicyName.java | 2 +- .../v1/AutoscalingPolicyOrBuilder.java | 7 +- .../dataproc/v1/AuxiliaryServicesConfig.java | 2 + .../v1/BasicAutoscalingAlgorithm.java | 239 ++-- .../BasicAutoscalingAlgorithmOrBuilder.java | 2 + .../v1/BasicYarnAutoscalingConfig.java | 18 +- .../com/google/cloud/dataproc/v1/Batch.java | 35 +- .../google/cloud/dataproc/v1/BatchName.java | 2 +- .../dataproc/v1/BatchOperationMetadata.java | 21 +- .../v1/BatchOperationMetadataOrBuilder.java | 7 +- .../cloud/dataproc/v1/BatchOrBuilder.java | 7 +- .../cloud/dataproc/v1/CancelJobRequest.java | 2 + .../com/google/cloud/dataproc/v1/Cluster.java | 21 +- .../cloud/dataproc/v1/ClusterConfig.java | 2 + .../cloud/dataproc/v1/ClusterMetrics.java | 34 +- .../cloud/dataproc/v1/ClusterOperation.java | 2 + .../dataproc/v1/ClusterOperationMetadata.java | 21 +- .../v1/ClusterOperationMetadataOrBuilder.java | 7 +- .../dataproc/v1/ClusterOperationStatus.java | 2 + .../cloud/dataproc/v1/ClusterOrBuilder.java | 7 +- .../cloud/dataproc/v1/ClusterSelector.java | 21 +- .../dataproc/v1/ClusterSelectorOrBuilder.java | 7 +- .../cloud/dataproc/v1/ClusterStatus.java | 2 + .../cloud/dataproc/v1/ClustersProto.java | 470 ++++---- .../v1/ConfidentialInstanceConfig.java | 2 + .../v1/CreateAutoscalingPolicyRequest.java | 2 + .../cloud/dataproc/v1/CreateBatchRequest.java | 2 + .../dataproc/v1/CreateClusterRequest.java | 2 + .../v1/CreateWorkflowTemplateRequest.java | 2 + .../v1/DeleteAutoscalingPolicyRequest.java | 2 + .../cloud/dataproc/v1/DeleteBatchRequest.java | 2 + .../dataproc/v1/DeleteClusterRequest.java | 2 + .../cloud/dataproc/v1/DeleteJobRequest.java | 2 + .../v1/DeleteWorkflowTemplateRequest.java | 2 + .../dataproc/v1/DiagnoseClusterRequest.java | 2 + .../dataproc/v1/DiagnoseClusterResults.java | 2 + .../google/cloud/dataproc/v1/DiskConfig.java | 2 + .../cloud/dataproc/v1/EncryptionConfig.java | 2 + .../cloud/dataproc/v1/EndpointConfig.java | 21 +- .../dataproc/v1/EndpointConfigOrBuilder.java | 7 +- .../cloud/dataproc/v1/EnvironmentConfig.java | 2 + .../cloud/dataproc/v1/ExecutionConfig.java | 2 + .../cloud/dataproc/v1/GceClusterConfig.java | 21 +- .../v1/GceClusterConfigOrBuilder.java | 7 +- .../v1/GetAutoscalingPolicyRequest.java | 2 + .../cloud/dataproc/v1/GetBatchRequest.java | 2 + .../cloud/dataproc/v1/GetClusterRequest.java | 2 + .../cloud/dataproc/v1/GetJobRequest.java | 2 + .../v1/GetWorkflowTemplateRequest.java | 2 + .../cloud/dataproc/v1/GkeClusterConfig.java | 2 + .../cloud/dataproc/v1/GkeNodePoolConfig.java | 8 + .../cloud/dataproc/v1/GkeNodePoolTarget.java | 2 + .../google/cloud/dataproc/v1/HadoopJob.java | 21 +- .../cloud/dataproc/v1/HadoopJobOrBuilder.java | 7 +- .../com/google/cloud/dataproc/v1/HiveJob.java | 43 +- .../cloud/dataproc/v1/HiveJobOrBuilder.java | 14 +- .../cloud/dataproc/v1/IdentityConfig.java | 21 +- .../dataproc/v1/IdentityConfigOrBuilder.java | 6 +- .../InstanceGroupAutoscalingPolicyConfig.java | 2 + .../dataproc/v1/InstanceGroupConfig.java | 2 + ...tantiateInlineWorkflowTemplateRequest.java | 2 + .../InstantiateWorkflowTemplateRequest.java | 21 +- ...tiateWorkflowTemplateRequestOrBuilder.java | 7 +- .../com/google/cloud/dataproc/v1/Job.java | 45 +- .../google/cloud/dataproc/v1/JobMetadata.java | 2 + .../cloud/dataproc/v1/JobOrBuilder.java | 7 +- .../cloud/dataproc/v1/JobPlacement.java | 21 +- .../dataproc/v1/JobPlacementOrBuilder.java | 7 +- .../cloud/dataproc/v1/JobReference.java | 2 + .../cloud/dataproc/v1/JobScheduling.java | 2 + .../google/cloud/dataproc/v1/JobStatus.java | 2 + .../cloud/dataproc/v1/KerberosConfig.java | 2 + .../dataproc/v1/KubernetesClusterConfig.java | 5 +- .../dataproc/v1/KubernetesSoftwareConfig.java | 40 +- .../v1/KubernetesSoftwareConfigOrBuilder.java | 13 +- .../cloud/dataproc/v1/LifecycleConfig.java | 8 +- .../v1/ListAutoscalingPoliciesRequest.java | 2 + .../v1/ListAutoscalingPoliciesResponse.java | 2 + .../cloud/dataproc/v1/ListBatchesRequest.java | 2 + .../dataproc/v1/ListBatchesResponse.java | 2 + .../dataproc/v1/ListClustersRequest.java | 2 + .../dataproc/v1/ListClustersResponse.java | 2 + .../cloud/dataproc/v1/ListJobsRequest.java | 2 + .../cloud/dataproc/v1/ListJobsResponse.java | 2 + .../v1/ListWorkflowTemplatesRequest.java | 2 + .../v1/ListWorkflowTemplatesResponse.java | 2 + .../cloud/dataproc/v1/LocationName.java | 2 +- .../cloud/dataproc/v1/LoggingConfig.java | 47 +- .../dataproc/v1/LoggingConfigOrBuilder.java | 5 +- .../cloud/dataproc/v1/ManagedCluster.java | 21 +- .../dataproc/v1/ManagedClusterOrBuilder.java | 7 +- .../cloud/dataproc/v1/ManagedGroupConfig.java | 2 + .../cloud/dataproc/v1/MetastoreConfig.java | 2 + .../cloud/dataproc/v1/NodeGroupAffinity.java | 2 + .../dataproc/v1/NodeInitializationAction.java | 2 + .../google/cloud/dataproc/v1/OrderedJob.java | 45 +- .../dataproc/v1/OrderedJobOrBuilder.java | 7 +- .../dataproc/v1/ParameterValidation.java | 8 +- .../cloud/dataproc/v1/PeripheralsConfig.java | 2 + .../com/google/cloud/dataproc/v1/PigJob.java | 43 +- .../cloud/dataproc/v1/PigJobOrBuilder.java | 14 +- .../google/cloud/dataproc/v1/PrestoJob.java | 24 +- .../cloud/dataproc/v1/PrestoJobOrBuilder.java | 7 +- .../cloud/dataproc/v1/PySparkBatch.java | 2 + .../google/cloud/dataproc/v1/PySparkJob.java | 21 +- .../dataproc/v1/PySparkJobOrBuilder.java | 7 +- .../google/cloud/dataproc/v1/QueryList.java | 2 + .../cloud/dataproc/v1/RegexValidation.java | 2 + .../google/cloud/dataproc/v1/RegionName.java | 2 +- .../dataproc/v1/ReservationAffinity.java | 2 + .../cloud/dataproc/v1/RuntimeConfig.java | 21 +- .../dataproc/v1/RuntimeConfigOrBuilder.java | 7 +- .../google/cloud/dataproc/v1/RuntimeInfo.java | 21 +- .../dataproc/v1/RuntimeInfoOrBuilder.java | 7 +- .../cloud/dataproc/v1/SecurityConfig.java | 2 + .../dataproc/v1/ShieldedInstanceConfig.java | 2 + .../cloud/dataproc/v1/SoftwareConfig.java | 21 +- .../dataproc/v1/SoftwareConfigOrBuilder.java | 7 +- .../google/cloud/dataproc/v1/SparkBatch.java | 2 + .../dataproc/v1/SparkHistoryServerConfig.java | 2 + .../google/cloud/dataproc/v1/SparkJob.java | 21 +- .../cloud/dataproc/v1/SparkJobOrBuilder.java | 7 +- .../google/cloud/dataproc/v1/SparkRBatch.java | 2 + .../google/cloud/dataproc/v1/SparkRJob.java | 21 +- .../cloud/dataproc/v1/SparkRJobOrBuilder.java | 7 +- .../cloud/dataproc/v1/SparkSqlBatch.java | 21 +- .../dataproc/v1/SparkSqlBatchOrBuilder.java | 7 +- .../google/cloud/dataproc/v1/SparkSqlJob.java | 43 +- .../dataproc/v1/SparkSqlJobOrBuilder.java | 14 +- .../dataproc/v1/StartClusterRequest.java | 2 + .../cloud/dataproc/v1/StopClusterRequest.java | 2 + .../cloud/dataproc/v1/SubmitJobRequest.java | 2 + .../cloud/dataproc/v1/TemplateParameter.java | 2 + .../v1/UpdateAutoscalingPolicyRequest.java | 2 + .../dataproc/v1/UpdateClusterRequest.java | 2 + .../cloud/dataproc/v1/UpdateJobRequest.java | 2 + .../v1/UpdateWorkflowTemplateRequest.java | 2 + .../cloud/dataproc/v1/ValueValidation.java | 2 + .../dataproc/v1/VirtualClusterConfig.java | 268 +---- .../v1/VirtualClusterConfigOrBuilder.java | 49 - .../cloud/dataproc/v1/WorkflowGraph.java | 2 + .../cloud/dataproc/v1/WorkflowMetadata.java | 21 +- .../v1/WorkflowMetadataOrBuilder.java | 7 +- .../cloud/dataproc/v1/WorkflowNode.java | 2 + .../cloud/dataproc/v1/WorkflowTemplate.java | 21 +- .../dataproc/v1/WorkflowTemplateName.java | 2 +- .../v1/WorkflowTemplateOrBuilder.java | 7 +- .../v1/WorkflowTemplatePlacement.java | 8 +- .../cloud/dataproc/v1/YarnApplication.java | 6 +- .../dataproc/v1/autoscaling_policies.proto | 6 +- .../google/cloud/dataproc/v1/clusters.proto | 15 - .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../AsyncCreateAutoscalingPolicy.java | 49 + .../SyncCreateAutoscalingPolicy.java | 45 + ...ngPolicyLocationnameAutoscalingpolicy.java | 44 + ...lingPolicyRegionnameAutoscalingpolicy.java | 44 + ...oscalingPolicyStringAutoscalingpolicy.java | 44 + .../AsyncDeleteAutoscalingPolicy.java | 51 + .../SyncDeleteAutoscalingPolicy.java | 46 + ...utoscalingPolicyAutoscalingpolicyname.java | 43 + .../SyncDeleteAutoscalingPolicyString.java | 42 + .../AsyncGetAutoscalingPolicy.java | 51 + .../SyncGetAutoscalingPolicy.java | 47 + ...utoscalingPolicyAutoscalingpolicyname.java | 44 + .../SyncGetAutoscalingPolicyString.java | 43 + .../AsyncListAutoscalingPolicies.java | 52 + .../AsyncListAutoscalingPoliciesPaged.java | 60 + .../SyncListAutoscalingPolicies.java | 49 + ...ncListAutoscalingPoliciesLocationname.java | 45 + ...SyncListAutoscalingPoliciesRegionname.java | 45 + .../SyncListAutoscalingPoliciesString.java | 43 + .../AsyncUpdateAutoscalingPolicy.java | 47 + .../SyncUpdateAutoscalingPolicy.java | 43 + ...ateAutoscalingPolicyAutoscalingpolicy.java | 41 + .../SyncCreateAutoscalingPolicy.java | 47 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createbatch/AsyncCreateBatch.java | 50 + .../createbatch/AsyncCreateBatchLRO.java | 51 + .../createbatch/SyncCreateBatch.java | 46 + ...yncCreateBatchLocationnameBatchString.java | 41 + .../SyncCreateBatchStringBatchString.java | 41 + .../deletebatch/AsyncDeleteBatch.java | 46 + .../deletebatch/SyncDeleteBatch.java | 42 + .../deletebatch/SyncDeleteBatchBatchname.java | 38 + .../deletebatch/SyncDeleteBatchString.java | 38 + .../getbatch/AsyncGetBatch.java | 46 + .../getbatch/SyncGetBatch.java | 43 + .../getbatch/SyncGetBatchBatchname.java | 39 + .../getbatch/SyncGetBatchString.java | 39 + .../listbatches/AsyncListBatches.java | 51 + .../listbatches/AsyncListBatchesPaged.java | 58 + .../listbatches/SyncListBatches.java | 47 + .../SyncListBatchesLocationname.java | 41 + .../listbatches/SyncListBatchesString.java | 41 + .../getbatch/SyncGetBatch.java | 46 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createcluster/AsyncCreateCluster.java | 52 + .../createcluster/AsyncCreateClusterLRO.java | 52 + .../createcluster/SyncCreateCluster.java | 47 + .../SyncCreateClusterStringStringCluster.java | 41 + .../deletecluster/AsyncDeleteCluster.java | 50 + .../deletecluster/AsyncDeleteClusterLRO.java | 51 + .../deletecluster/SyncDeleteCluster.java | 45 + .../SyncDeleteClusterStringStringString.java | 39 + .../diagnosecluster/AsyncDiagnoseCluster.java | 48 + .../AsyncDiagnoseClusterLRO.java | 49 + .../diagnosecluster/SyncDiagnoseCluster.java | 44 + ...SyncDiagnoseClusterStringStringString.java | 41 + .../getcluster/AsyncGetCluster.java | 47 + .../getcluster/SyncGetCluster.java | 44 + .../SyncGetClusterStringStringString.java | 40 + .../listclusters/AsyncListClusters.java | 52 + .../listclusters/AsyncListClustersPaged.java | 60 + .../listclusters/SyncListClusters.java | 48 + .../SyncListClustersStringString.java | 41 + .../SyncListClustersStringStringString.java | 43 + .../startcluster/AsyncStartCluster.java | 50 + .../startcluster/AsyncStartClusterLRO.java | 51 + .../startcluster/SyncStartCluster.java | 46 + .../stopcluster/AsyncStopCluster.java | 50 + .../stopcluster/AsyncStopClusterLRO.java | 51 + .../stopcluster/SyncStopCluster.java | 46 + .../updatecluster/AsyncUpdateCluster.java | 55 + .../updatecluster/AsyncUpdateClusterLRO.java | 55 + .../updatecluster/SyncUpdateCluster.java | 50 + ...terStringStringStringClusterFieldmask.java | 48 + .../getcluster/SyncGetCluster.java | 46 + .../canceljob/AsyncCancelJob.java | 47 + .../canceljob/SyncCancelJob.java | 44 + .../SyncCancelJobStringStringString.java | 40 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../deletejob/AsyncDeleteJob.java | 47 + .../deletejob/SyncDeleteJob.java | 43 + .../SyncDeleteJobStringStringString.java | 39 + .../getjob/AsyncGetJob.java | 47 + .../getjob/SyncGetJob.java | 44 + .../getjob/SyncGetJobStringStringString.java | 40 + .../listjobs/AsyncListJobs.java | 52 + .../listjobs/AsyncListJobsPaged.java | 60 + .../listjobs/SyncListJobs.java | 49 + .../listjobs/SyncListJobsStringString.java | 41 + .../SyncListJobsStringStringString.java | 42 + .../submitjob/AsyncSubmitJob.java | 48 + .../submitjob/SyncSubmitJob.java | 45 + .../SyncSubmitJobStringStringJob.java | 40 + .../AsyncSubmitJobAsOperation.java | 50 + .../AsyncSubmitJobAsOperationLRO.java | 50 + .../SyncSubmitJobAsOperation.java | 45 + ...ncSubmitJobAsOperationStringStringJob.java | 40 + .../updatejob/AsyncUpdateJob.java | 50 + .../updatejob/SyncUpdateJob.java | 47 + .../submitjob/SyncSubmitJob.java | 45 + .../SyncCreateAutoscalingPolicy.java | 47 + .../getbatch/SyncGetBatch.java | 46 + .../getcluster/SyncGetCluster.java | 47 + .../submitjob/SyncSubmitJob.java | 46 + .../SyncCreateWorkflowTemplate.java | 47 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../AsyncCreateWorkflowTemplate.java | 49 + .../SyncCreateWorkflowTemplate.java | 45 + ...wTemplateLocationnameWorkflowtemplate.java | 44 + ...lowTemplateRegionnameWorkflowtemplate.java | 44 + ...orkflowTemplateStringWorkflowtemplate.java | 44 + .../AsyncDeleteWorkflowTemplate.java | 52 + .../SyncDeleteWorkflowTemplate.java | 47 + .../SyncDeleteWorkflowTemplateString.java | 42 + ...eWorkflowTemplateWorkflowtemplatename.java | 43 + .../AsyncGetWorkflowTemplate.java | 52 + .../SyncGetWorkflowTemplate.java | 48 + .../SyncGetWorkflowTemplateString.java | 43 + ...tWorkflowTemplateWorkflowtemplatename.java | 44 + ...syncInstantiateInlineWorkflowTemplate.java | 54 + ...cInstantiateInlineWorkflowTemplateLRO.java | 56 + ...SyncInstantiateInlineWorkflowTemplate.java | 47 + ...wTemplateLocationnameWorkflowtemplate.java | 44 + ...lowTemplateRegionnameWorkflowtemplate.java | 44 + ...orkflowTemplateStringWorkflowtemplate.java | 44 + .../AsyncInstantiateWorkflowTemplate.java | 55 + .../AsyncInstantiateWorkflowTemplateLRO.java | 58 + .../SyncInstantiateWorkflowTemplate.java | 50 + ...SyncInstantiateWorkflowTemplateString.java | 43 + ...WorkflowTemplateStringMapstringstring.java | 47 + ...eWorkflowTemplateWorkflowtemplatename.java | 43 + ...teWorkflowtemplatenameMapstringstring.java | 47 + .../AsyncListWorkflowTemplates.java | 52 + .../AsyncListWorkflowTemplatesPaged.java | 60 + .../SyncListWorkflowTemplates.java | 49 + ...SyncListWorkflowTemplatesLocationname.java | 44 + .../SyncListWorkflowTemplatesRegionname.java | 43 + .../SyncListWorkflowTemplatesString.java | 43 + .../AsyncUpdateWorkflowTemplate.java | 47 + .../SyncUpdateWorkflowTemplate.java | 43 + ...pdateWorkflowTemplateWorkflowtemplate.java | 41 + .../SyncCreateWorkflowTemplate.java | 47 + 370 files changed, 15991 insertions(+), 1286 deletions(-) create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java create mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java create mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java create mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 8c347ebe..91f6ded0 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -58,6 +58,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -81,12 +85,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index af011a44..9f4bfa44 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ 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; @@ -42,6 +41,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -81,6 +82,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -92,12 +95,29 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
  * }
* + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
+ *     AutoscalingPolicyServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             AutoscalingPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
+ *     AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -124,7 +144,6 @@ public static final AutoscalingPolicyServiceClient create( * Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making * calls. This is for advanced usage - prefer using create(AutoscalingPolicyServiceSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub) { return new AutoscalingPolicyServiceClient(stub); } @@ -140,7 +159,6 @@ protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceSettings settin this.stub = ((AutoscalingPolicyServiceStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub) { this.settings = null; this.stub = stub; @@ -150,7 +168,6 @@ public final AutoscalingPolicyServiceSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AutoscalingPolicyServiceStub getStub() { return stub; } @@ -162,6 +179,8 @@ public AutoscalingPolicyServiceStub getStub() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -202,6 +221,8 @@ public final AutoscalingPolicy createAutoscalingPolicy(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -242,6 +263,8 @@ public final AutoscalingPolicy createAutoscalingPolicy(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -278,6 +301,8 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
@@ -303,6 +328,8 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
@@ -331,6 +358,8 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
@@ -356,6 +385,8 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   UpdateAutoscalingPolicyRequest request =
@@ -382,6 +413,8 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   UpdateAutoscalingPolicyRequest request =
@@ -407,6 +440,8 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicyName name =
@@ -446,6 +481,8 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String name =
@@ -484,6 +521,8 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   GetAutoscalingPolicyRequest request =
@@ -511,6 +550,8 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   GetAutoscalingPolicyRequest request =
@@ -539,6 +580,8 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -577,6 +620,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -615,6 +660,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -651,6 +698,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -681,6 +730,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -710,6 +761,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -721,7 +774,7 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    *   while (true) {
    *     ListAutoscalingPoliciesResponse response =
    *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
-   *     for (AutoscalingPolicy element : response.getResponsesList()) {
+   *     for (AutoscalingPolicy element : response.getPoliciesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -747,6 +800,8 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicyName name =
@@ -787,6 +842,8 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String name =
@@ -826,6 +883,8 @@ public final void deleteAutoscalingPolicy(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   DeleteAutoscalingPolicyRequest request =
@@ -854,6 +913,8 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   DeleteAutoscalingPolicyRequest request =
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
index 28bc9d98..44d8018c 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
@@ -53,6 +54,8 @@
  * 

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
@@ -135,11 +138,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     return AutoscalingPolicyServiceStubSettings.defaultCredentialsProviderBuilder();
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return AutoscalingPolicyServiceStubSettings.defaultGrpcTransportProviderBuilder();
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return AutoscalingPolicyServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return AutoscalingPolicyServiceStubSettings.defaultTransportChannelProvider();
   }
@@ -149,11 +159,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
     return AutoscalingPolicyServiceStubSettings.defaultApiClientHeaderProviderBuilder();
   }
 
-  /** Returns a new builder for this class. */
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  @BetaApi
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -192,6 +208,11 @@ private static Builder createDefault() {
       return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
     }
 
+    @BetaApi
+    private static Builder createHttpJsonDefault() {
+      return new Builder(AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder());
+    }
+
     public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
       return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
     }
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
index 6a52d75e..c8f26d1d 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
@@ -31,7 +32,6 @@
 import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.longrunning.Operation;
-import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
 import java.io.IOException;
 import java.util.List;
@@ -46,6 +46,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
  *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
  *   Batch response = batchControllerClient.getBatch(name);
@@ -82,6 +84,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BatchControllerSettings batchControllerSettings =
  *     BatchControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,19 +97,37 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BatchControllerSettings batchControllerSettings =
  *     BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BatchControllerClient batchControllerClient =
  *     BatchControllerClient.create(batchControllerSettings);
  * }
* + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * BatchControllerSettings batchControllerSettings =
+ *     BatchControllerSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             BatchControllerSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * BatchControllerClient batchControllerClient =
+ *     BatchControllerClient.create(batchControllerSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class BatchControllerClient implements BackgroundResource { private final BatchControllerSettings settings; private final BatchControllerStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of BatchControllerClient with default settings. */ public static final BatchControllerClient create() throws IOException { @@ -125,7 +147,6 @@ public static final BatchControllerClient create(BatchControllerSettings setting * Constructs an instance of BatchControllerClient, using the given stub for making calls. This is * for advanced usage - prefer using create(BatchControllerSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final BatchControllerClient create(BatchControllerStub stub) { return new BatchControllerClient(stub); } @@ -138,21 +159,23 @@ public static final BatchControllerClient create(BatchControllerStub stub) { protected BatchControllerClient(BatchControllerSettings settings) throws IOException { this.settings = settings; this.stub = ((BatchControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BatchControllerClient(BatchControllerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final BatchControllerSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public BatchControllerStub getStub() { return stub; } @@ -161,10 +184,19 @@ public BatchControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a batch workload that executes asynchronously. @@ -172,6 +204,8 @@ public final OperationsClient getOperationsClient() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Batch batch = Batch.newBuilder().build();
@@ -205,6 +239,8 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Batch batch = Batch.newBuilder().build();
@@ -238,6 +274,8 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -265,6 +303,8 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -292,6 +332,8 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -317,6 +359,8 @@ public final UnaryCallable createBatchCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
    *   Batch response = batchControllerClient.getBatch(name);
@@ -339,6 +383,8 @@ public final Batch getBatch(BatchName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
    *   Batch response = batchControllerClient.getBatch(name);
@@ -360,6 +406,8 @@ public final Batch getBatch(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   GetBatchRequest request =
    *       GetBatchRequest.newBuilder()
@@ -383,6 +431,8 @@ public final Batch getBatch(GetBatchRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   GetBatchRequest request =
    *       GetBatchRequest.newBuilder()
@@ -405,6 +455,8 @@ public final UnaryCallable getBatchCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
@@ -431,6 +483,8 @@ public final ListBatchesPagedResponse listBatches(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
@@ -454,6 +508,8 @@ public final ListBatchesPagedResponse listBatches(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -481,6 +537,8 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -509,6 +567,8 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -518,7 +578,7 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    *           .build();
    *   while (true) {
    *     ListBatchesResponse response = batchControllerClient.listBatchesCallable().call(request);
-   *     for (Batch element : response.getResponsesList()) {
+   *     for (Batch element : response.getBatchesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -543,6 +603,8 @@ public final UnaryCallable listBatchesC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
    *   batchControllerClient.deleteBatch(name);
@@ -566,6 +628,8 @@ public final void deleteBatch(BatchName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
    *   batchControllerClient.deleteBatch(name);
@@ -588,6 +652,8 @@ public final void deleteBatch(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   DeleteBatchRequest request =
    *       DeleteBatchRequest.newBuilder()
@@ -612,6 +678,8 @@ public final void deleteBatch(DeleteBatchRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   DeleteBatchRequest request =
    *       DeleteBatchRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
index 0aceb61d..a52bdd7d 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
@@ -55,6 +56,8 @@
  * 

For example, to set the total timeout of getBatch to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BatchControllerSettings.Builder batchControllerSettingsBuilder =
  *     BatchControllerSettings.newBuilder();
  * batchControllerSettingsBuilder
@@ -124,11 +127,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     return BatchControllerStubSettings.defaultCredentialsProviderBuilder();
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return BatchControllerStubSettings.defaultGrpcTransportProviderBuilder();
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return BatchControllerStubSettings.defaultHttpJsonTransportProviderBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return BatchControllerStubSettings.defaultTransportChannelProvider();
   }
@@ -138,11 +148,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
     return BatchControllerStubSettings.defaultApiClientHeaderProviderBuilder();
   }
 
-  /** Returns a new builder for this class. */
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  @BetaApi
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -180,6 +196,11 @@ private static Builder createDefault() {
       return new Builder(BatchControllerStubSettings.newBuilder());
     }
 
+    @BetaApi
+    private static Builder createHttpJsonDefault() {
+      return new Builder(BatchControllerStubSettings.newHttpJsonBuilder());
+    }
+
     public BatchControllerStubSettings.Builder getStubSettingsBuilder() {
       return ((BatchControllerStubSettings.Builder) getStubSettings());
     }
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
index 9cf9ec25..5cecf320 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
@@ -31,7 +32,6 @@
 import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.longrunning.Operation;
-import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
 import com.google.protobuf.FieldMask;
 import java.io.IOException;
@@ -48,6 +48,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -86,6 +88,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,19 +101,37 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ClusterControllerClient clusterControllerClient =
  *     ClusterControllerClient.create(clusterControllerSettings);
  * }
* + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ClusterControllerSettings clusterControllerSettings =
+ *     ClusterControllerSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ClusterControllerSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ClusterControllerClient clusterControllerClient =
+ *     ClusterControllerClient.create(clusterControllerSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class ClusterControllerClient implements BackgroundResource { private final ClusterControllerSettings settings; private final ClusterControllerStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of ClusterControllerClient with default settings. */ public static final ClusterControllerClient create() throws IOException { @@ -129,7 +151,6 @@ public static final ClusterControllerClient create(ClusterControllerSettings set * Constructs an instance of ClusterControllerClient, using the given stub for making calls. This * is for advanced usage - prefer using create(ClusterControllerSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final ClusterControllerClient create(ClusterControllerStub stub) { return new ClusterControllerClient(stub); } @@ -142,21 +163,23 @@ public static final ClusterControllerClient create(ClusterControllerStub stub) { protected ClusterControllerClient(ClusterControllerSettings settings) throws IOException { this.settings = settings; this.stub = ((ClusterControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ClusterControllerClient(ClusterControllerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final ClusterControllerSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ClusterControllerStub getStub() { return stub; } @@ -165,10 +188,19 @@ public ClusterControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a cluster in a project. The returned @@ -178,6 +210,8 @@ public final OperationsClient getOperationsClient() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -213,6 +247,8 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -243,6 +279,8 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -273,6 +311,8 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -304,6 +344,8 @@ public final UnaryCallable createClusterCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -368,6 +410,8 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -402,6 +446,8 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -436,6 +482,8 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -465,6 +513,8 @@ public final UnaryCallable updateClusterCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -493,6 +543,8 @@ public final OperationFuture stopClusterAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -521,6 +573,8 @@ public final OperationFuture stopClusterAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -548,6 +602,8 @@ public final UnaryCallable stopClusterCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -576,6 +632,8 @@ public final OperationFuture startClusterAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -604,6 +662,8 @@ public final OperationFuture startClusterAsyn
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -633,6 +693,8 @@ public final UnaryCallable startClusterCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -667,6 +729,8 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -697,6 +761,8 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -727,6 +793,8 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -754,6 +822,8 @@ public final UnaryCallable deleteClusterCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -785,6 +855,8 @@ public final Cluster getCluster(String projectId, String region, String clusterN
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   GetClusterRequest request =
    *       GetClusterRequest.newBuilder()
@@ -810,6 +882,8 @@ public final Cluster getCluster(GetClusterRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   GetClusterRequest request =
    *       GetClusterRequest.newBuilder()
@@ -834,6 +908,8 @@ public final UnaryCallable getClusterCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -861,6 +937,8 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -909,6 +987,8 @@ public final ListClustersPagedResponse listClusters(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -938,6 +1018,8 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -968,6 +1050,8 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -980,7 +1064,7 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
    *   while (true) {
    *     ListClustersResponse response =
    *         clusterControllerClient.listClustersCallable().call(request);
-   *     for (Cluster element : response.getResponsesList()) {
+   *     for (Cluster element : response.getClustersList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1009,6 +1093,8 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -1047,6 +1133,8 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
@@ -1078,6 +1166,8 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
@@ -1110,6 +1200,8 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
index b608594b..55d39d98 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
@@ -55,6 +56,8 @@
  * 

For example, to set the total timeout of getCluster to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerSettings.newBuilder();
  * clusterControllerSettingsBuilder
@@ -175,11 +178,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     return ClusterControllerStubSettings.defaultCredentialsProviderBuilder();
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return ClusterControllerStubSettings.defaultGrpcTransportProviderBuilder();
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return ClusterControllerStubSettings.defaultHttpJsonTransportProviderBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return ClusterControllerStubSettings.defaultTransportChannelProvider();
   }
@@ -189,11 +199,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
     return ClusterControllerStubSettings.defaultApiClientHeaderProviderBuilder();
   }
 
-  /** Returns a new builder for this class. */
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  @BetaApi
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -231,6 +247,11 @@ private static Builder createDefault() {
       return new Builder(ClusterControllerStubSettings.newBuilder());
     }
 
+    @BetaApi
+    private static Builder createHttpJsonDefault() {
+      return new Builder(ClusterControllerStubSettings.newHttpJsonBuilder());
+    }
+
     public ClusterControllerStubSettings.Builder getStubSettingsBuilder() {
       return ((ClusterControllerStubSettings.Builder) getStubSettings());
     }
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
index d052c400..58cfd102 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
@@ -31,7 +32,6 @@
 import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.longrunning.Operation;
-import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
 import java.io.IOException;
 import java.util.List;
@@ -46,6 +46,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -83,6 +85,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,18 +97,35 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
  * }
* + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * JobControllerSettings jobControllerSettings =
+ *     JobControllerSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             JobControllerSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class JobControllerClient implements BackgroundResource { private final JobControllerSettings settings; private final JobControllerStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of JobControllerClient with default settings. */ public static final JobControllerClient create() throws IOException { @@ -124,7 +145,6 @@ public static final JobControllerClient create(JobControllerSettings settings) * Constructs an instance of JobControllerClient, using the given stub for making calls. This is * for advanced usage - prefer using create(JobControllerSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final JobControllerClient create(JobControllerStub stub) { return new JobControllerClient(stub); } @@ -137,21 +157,23 @@ public static final JobControllerClient create(JobControllerStub stub) { protected JobControllerClient(JobControllerSettings settings) throws IOException { this.settings = settings; this.stub = ((JobControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected JobControllerClient(JobControllerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final JobControllerSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public JobControllerStub getStub() { return stub; } @@ -160,10 +182,19 @@ public JobControllerStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Submits a job to a cluster. @@ -171,6 +202,8 @@ public final OperationsClient getOperationsClient() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -197,6 +230,8 @@ public final Job submitJob(String projectId, String region, Job job) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -223,6 +258,8 @@ public final Job submitJob(SubmitJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -248,6 +285,8 @@ public final UnaryCallable submitJobCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -275,6 +314,8 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -302,6 +343,8 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -329,6 +372,8 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -355,6 +400,8 @@ public final UnaryCallable submitJobAsOperationCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -385,6 +432,8 @@ public final Job getJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   GetJobRequest request =
    *       GetJobRequest.newBuilder()
@@ -410,6 +459,8 @@ public final Job getJob(GetJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   GetJobRequest request =
    *       GetJobRequest.newBuilder()
@@ -434,6 +485,8 @@ public final UnaryCallable getJobCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -460,6 +513,8 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -500,6 +555,8 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -530,6 +587,8 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -559,6 +618,8 @@ public final UnaryCallable listJobsPaged
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -571,7 +632,7 @@ public final UnaryCallable listJobsPaged
    *           .build();
    *   while (true) {
    *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
-   *     for (Job element : response.getResponsesList()) {
+   *     for (Job element : response.getJobsList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -595,6 +656,8 @@ public final UnaryCallable listJobsCallable()
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   UpdateJobRequest request =
    *       UpdateJobRequest.newBuilder()
@@ -622,6 +685,8 @@ public final Job updateJob(UpdateJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   UpdateJobRequest request =
    *       UpdateJobRequest.newBuilder()
@@ -651,6 +716,8 @@ public final UnaryCallable updateJobCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -684,6 +751,8 @@ public final Job cancelJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   CancelJobRequest request =
    *       CancelJobRequest.newBuilder()
@@ -712,6 +781,8 @@ public final Job cancelJob(CancelJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   CancelJobRequest request =
    *       CancelJobRequest.newBuilder()
@@ -737,6 +808,8 @@ public final UnaryCallable cancelJobCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -768,6 +841,8 @@ public final void deleteJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   DeleteJobRequest request =
    *       DeleteJobRequest.newBuilder()
@@ -794,6 +869,8 @@ public final void deleteJob(DeleteJobRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   DeleteJobRequest request =
    *       DeleteJobRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
index 4a443d10..71bc0b5e 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
@@ -55,6 +56,8 @@
  * 

For example, to set the total timeout of submitJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
@@ -138,11 +141,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     return JobControllerStubSettings.defaultCredentialsProviderBuilder();
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return JobControllerStubSettings.defaultGrpcTransportProviderBuilder();
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return JobControllerStubSettings.defaultHttpJsonTransportProviderBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return JobControllerStubSettings.defaultTransportChannelProvider();
   }
@@ -152,11 +162,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
     return JobControllerStubSettings.defaultApiClientHeaderProviderBuilder();
   }
 
-  /** Returns a new builder for this class. */
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  @BetaApi
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -194,6 +210,11 @@ private static Builder createDefault() {
       return new Builder(JobControllerStubSettings.newBuilder());
     }
 
+    @BetaApi
+    private static Builder createHttpJsonDefault() {
+      return new Builder(JobControllerStubSettings.newHttpJsonBuilder());
+    }
+
     public JobControllerStubSettings.Builder getStubSettingsBuilder() {
       return ((JobControllerStubSettings.Builder) getStubSettings());
     }
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
index c9478f49..8d065098 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
 import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
@@ -31,7 +32,6 @@
 import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.longrunning.Operation;
-import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
 import java.io.IOException;
 import java.util.List;
@@ -47,6 +47,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -86,6 +88,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,19 +101,37 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
  * }
* + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
+ *     WorkflowTemplateServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             WorkflowTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * WorkflowTemplateServiceClient workflowTemplateServiceClient =
+ *     WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class WorkflowTemplateServiceClient implements BackgroundResource { private final WorkflowTemplateServiceSettings settings; private final WorkflowTemplateServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of WorkflowTemplateServiceClient with default settings. */ public static final WorkflowTemplateServiceClient create() throws IOException { @@ -129,7 +151,6 @@ public static final WorkflowTemplateServiceClient create(WorkflowTemplateService * Constructs an instance of WorkflowTemplateServiceClient, using the given stub for making calls. * This is for advanced usage - prefer using create(WorkflowTemplateServiceSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final WorkflowTemplateServiceClient create(WorkflowTemplateServiceStub stub) { return new WorkflowTemplateServiceClient(stub); } @@ -143,21 +164,23 @@ protected WorkflowTemplateServiceClient(WorkflowTemplateServiceSettings settings throws IOException { this.settings = settings; this.stub = ((WorkflowTemplateServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected WorkflowTemplateServiceClient(WorkflowTemplateServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final WorkflowTemplateServiceSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public WorkflowTemplateServiceStub getStub() { return stub; } @@ -166,10 +189,19 @@ public WorkflowTemplateServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates new workflow template. @@ -177,6 +209,8 @@ public final OperationsClient getOperationsClient() { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -217,6 +251,8 @@ public final WorkflowTemplate createWorkflowTemplate(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -257,6 +293,8 @@ public final WorkflowTemplate createWorkflowTemplate(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -293,6 +331,8 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
@@ -318,6 +358,8 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
@@ -346,11 +388,13 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
    *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
    * }
    * }
@@ -387,6 +431,8 @@ public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -427,13 +473,15 @@ public final WorkflowTemplate getWorkflowTemplate(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   GetWorkflowTemplateRequest request =
    *       GetWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .build();
@@ -457,13 +505,15 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   GetWorkflowTemplateRequest request =
    *       GetWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .build();
@@ -502,11 +552,13 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
    *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
    * }
    * }
@@ -558,6 +610,8 @@ public final OperationFuture instantiateWorkflowTemplat *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -613,11 +667,13 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
    *   Map parameters = new HashMap<>();
    *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
    * }
@@ -673,6 +729,8 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -734,13 +792,15 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
    *       InstantiateWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .setRequestId("requestId693933066")
@@ -781,13 +841,15 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
    *       InstantiateWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .setRequestId("requestId693933066")
@@ -830,13 +892,15 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
    *       InstantiateWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .setRequestId("requestId693933066")
@@ -882,6 +946,8 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -942,6 +1008,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -1002,6 +1070,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -1062,6 +1132,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1110,6 +1182,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1160,6 +1234,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1190,6 +1266,8 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
@@ -1215,6 +1293,8 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   UpdateWorkflowTemplateRequest request =
@@ -1240,6 +1320,8 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   UpdateWorkflowTemplateRequest request =
@@ -1265,6 +1347,8 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1303,6 +1387,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -1341,6 +1427,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -1377,6 +1465,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1407,6 +1497,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1436,6 +1528,8 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1447,7 +1541,7 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    *   while (true) {
    *     ListWorkflowTemplatesResponse response =
    *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
-   *     for (WorkflowTemplate element : response.getResponsesList()) {
+   *     for (WorkflowTemplate element : response.getTemplatesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -1472,11 +1566,13 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *           "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
    *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
    * }
    * }
@@ -1511,6 +1607,8 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -1549,13 +1647,15 @@ public final void deleteWorkflowTemplate(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   DeleteWorkflowTemplateRequest request =
    *       DeleteWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .build();
@@ -1577,13 +1677,15 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   DeleteWorkflowTemplateRequest request =
    *       DeleteWorkflowTemplateRequest.newBuilder()
    *           .setName(
-   *               WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *                       "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
    *                   .toString())
    *           .setVersion(351608024)
    *           .build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
index 9502edcb..88c8dfc2 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
@@ -55,6 +56,8 @@
  * 

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
@@ -163,11 +166,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     return WorkflowTemplateServiceStubSettings.defaultCredentialsProviderBuilder();
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return WorkflowTemplateServiceStubSettings.defaultGrpcTransportProviderBuilder();
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return WorkflowTemplateServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return WorkflowTemplateServiceStubSettings.defaultTransportChannelProvider();
   }
@@ -177,11 +187,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
     return WorkflowTemplateServiceStubSettings.defaultApiClientHeaderProviderBuilder();
   }
 
-  /** Returns a new builder for this class. */
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  @BetaApi
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -220,6 +236,11 @@ private static Builder createDefault() {
       return new Builder(WorkflowTemplateServiceStubSettings.newBuilder());
     }
 
+    @BetaApi
+    private static Builder createHttpJsonDefault() {
+      return new Builder(WorkflowTemplateServiceStubSettings.newHttpJsonBuilder());
+    }
+
     public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() {
       return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings());
     }
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
index ff77c4df..df1f4105 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@
  * 

Sample for AutoscalingPolicyServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -40,6 +42,8 @@
  * 

Sample for BatchControllerClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
  *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
  *   Batch response = batchControllerClient.getBatch(name);
@@ -54,6 +58,8 @@
  * 

Sample for ClusterControllerClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -69,6 +75,8 @@
  * 

Sample for JobControllerClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -84,6 +92,8 @@
  * 

Sample for WorkflowTemplateServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java
index a4cb2d3b..71613b6d 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
index d32c58ce..1a2a5e94 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,6 +27,9 @@
 import com.google.api.gax.grpc.GaxGrpcProperties;
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.HttpJsonTransportChannel;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -75,6 +78,8 @@
  * 

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceStubSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
@@ -216,13 +221,17 @@ public ApiFuture getFuturePagedResponse(
     return deleteAutoscalingPolicySettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public AutoscalingPolicyServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
         .equals(GrpcTransportChannel.getGrpcTransportName())) {
       return GrpcAutoscalingPolicyServiceStub.create(this);
     }
+    if (getTransportChannelProvider()
+        .getTransportName()
+        .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+      return HttpJsonAutoscalingPolicyServiceStub.create(this);
+    }
     throw new UnsupportedOperationException(
         String.format(
             "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -255,18 +264,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
         .setUseJwtAccessWithScope(true);
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return InstantiatingGrpcChannelProvider.newBuilder()
         .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return InstantiatingHttpJsonChannelProvider.newBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return defaultGrpcTransportProviderBuilder().build();
   }
 
   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
-  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+  public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
     return ApiClientHeaderProvider.newBuilder()
         .setGeneratedLibToken(
             "gapic", GaxProperties.getLibraryVersion(AutoscalingPolicyServiceStubSettings.class))
@@ -274,11 +290,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
             GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
   }
 
-  /** Returns a new builder for this class. */
+  @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+  public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+    return ApiClientHeaderProvider.newBuilder()
+        .setGeneratedLibToken(
+            "gapic", GaxProperties.getLibraryVersion(AutoscalingPolicyServiceStubSettings.class))
+        .setTransportToken(
+            GaxHttpJsonProperties.getHttpJsonTokenName(),
+            GaxHttpJsonProperties.getHttpJsonVersion());
+  }
+
+  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+    return AutoscalingPolicyServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+  }
+
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -414,6 +449,19 @@ private static Builder createDefault() {
       return initDefaults(builder);
     }
 
+    private static Builder createHttpJsonDefault() {
+      Builder builder = new Builder(((ClientContext) null));
+
+      builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+      builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+      builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+      builder.setEndpoint(getDefaultEndpoint());
+      builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+      builder.setSwitchToMtlsEndpointAllowed(true);
+
+      return initDefaults(builder);
+    }
+
     private static Builder initDefaults(Builder builder) {
       builder
           .createAutoscalingPolicySettings()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java
index 3c8721b8..83554c32 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -43,7 +43,11 @@
 public abstract class BatchControllerStub implements BackgroundResource {
 
   public OperationsStub getOperationsStub() {
-    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+    return null;
+  }
+
+  public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+    return null;
   }
 
   public OperationCallable
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
index 793163de..832821dc 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,9 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.grpc.ProtoOperationTransformers;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.HttpJsonTransportChannel;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
@@ -80,6 +83,8 @@
  * 

For example, to set the total timeout of getBatch to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BatchControllerStubSettings.Builder batchControllerSettingsBuilder =
  *     BatchControllerStubSettings.newBuilder();
  * batchControllerSettingsBuilder
@@ -188,13 +193,17 @@ public UnaryCallSettings deleteBatchSettings() {
     return deleteBatchSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public BatchControllerStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
         .equals(GrpcTransportChannel.getGrpcTransportName())) {
       return GrpcBatchControllerStub.create(this);
     }
+    if (getTransportChannelProvider()
+        .getTransportName()
+        .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+      return HttpJsonBatchControllerStub.create(this);
+    }
     throw new UnsupportedOperationException(
         String.format(
             "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -227,18 +236,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
         .setUseJwtAccessWithScope(true);
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return InstantiatingGrpcChannelProvider.newBuilder()
         .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return InstantiatingHttpJsonChannelProvider.newBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return defaultGrpcTransportProviderBuilder().build();
   }
 
   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
-  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+  public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
     return ApiClientHeaderProvider.newBuilder()
         .setGeneratedLibToken(
             "gapic", GaxProperties.getLibraryVersion(BatchControllerStubSettings.class))
@@ -246,11 +262,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
             GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
   }
 
-  /** Returns a new builder for this class. */
+  @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+  public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+    return ApiClientHeaderProvider.newBuilder()
+        .setGeneratedLibToken(
+            "gapic", GaxProperties.getLibraryVersion(BatchControllerStubSettings.class))
+        .setTransportToken(
+            GaxHttpJsonProperties.getHttpJsonTokenName(),
+            GaxHttpJsonProperties.getHttpJsonVersion());
+  }
+
+  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+    return BatchControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+  }
+
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -348,6 +383,19 @@ private static Builder createDefault() {
       return initDefaults(builder);
     }
 
+    private static Builder createHttpJsonDefault() {
+      Builder builder = new Builder(((ClientContext) null));
+
+      builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+      builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+      builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+      builder.setEndpoint(getDefaultEndpoint());
+      builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+      builder.setSwitchToMtlsEndpointAllowed(true);
+
+      return initDefaults(builder);
+    }
+
     private static Builder initDefaults(Builder builder) {
       builder
           .createBatchSettings()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java
index 2cae1ff5..ba43eba8 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -48,7 +48,11 @@
 public abstract class ClusterControllerStub implements BackgroundResource {
 
   public OperationsStub getOperationsStub() {
-    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+    return null;
+  }
+
+  public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+    return null;
   }
 
   public OperationCallable
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
index 48194eb4..766ba611 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,9 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.grpc.ProtoOperationTransformers;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.HttpJsonTransportChannel;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
@@ -85,6 +88,8 @@
  * 

For example, to set the total timeout of getCluster to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerStubSettings.newBuilder();
  * clusterControllerSettingsBuilder
@@ -261,13 +266,17 @@ public UnaryCallSettings diagnoseClusterSetti
     return diagnoseClusterOperationSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public ClusterControllerStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
         .equals(GrpcTransportChannel.getGrpcTransportName())) {
       return GrpcClusterControllerStub.create(this);
     }
+    if (getTransportChannelProvider()
+        .getTransportName()
+        .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+      return HttpJsonClusterControllerStub.create(this);
+    }
     throw new UnsupportedOperationException(
         String.format(
             "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -300,18 +309,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
         .setUseJwtAccessWithScope(true);
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return InstantiatingGrpcChannelProvider.newBuilder()
         .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return InstantiatingHttpJsonChannelProvider.newBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return defaultGrpcTransportProviderBuilder().build();
   }
 
   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
-  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+  public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
     return ApiClientHeaderProvider.newBuilder()
         .setGeneratedLibToken(
             "gapic", GaxProperties.getLibraryVersion(ClusterControllerStubSettings.class))
@@ -319,11 +335,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
             GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
   }
 
-  /** Returns a new builder for this class. */
+  @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+  public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+    return ApiClientHeaderProvider.newBuilder()
+        .setGeneratedLibToken(
+            "gapic", GaxProperties.getLibraryVersion(ClusterControllerStubSettings.class))
+        .setTransportToken(
+            GaxHttpJsonProperties.getHttpJsonTokenName(),
+            GaxHttpJsonProperties.getHttpJsonVersion());
+  }
+
+  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+    return ClusterControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+  }
+
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -515,6 +550,19 @@ private static Builder createDefault() {
       return initDefaults(builder);
     }
 
+    private static Builder createHttpJsonDefault() {
+      Builder builder = new Builder(((ClientContext) null));
+
+      builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+      builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+      builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+      builder.setEndpoint(getDefaultEndpoint());
+      builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+      builder.setSwitchToMtlsEndpointAllowed(true);
+
+      return initDefaults(builder);
+    }
+
     private static Builder initDefaults(Builder builder) {
       builder
           .createClusterSettings()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java
index 8bb76da3..4d243b6f 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java
index 89dd2c65..1a8d03fa 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java
index 0a5ca6af..143a1c2d 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java
index c7b481b6..044146ba 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java
index 7e08bdaf..e4649a75 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java
index 7b9fb4cb..078395cc 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java
index 6c20d95a..b28a67de 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java
index 4eb3b09f..52b5ae89 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java
index 5899556e..0d576947 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java
index 405a7863..1efd3f92 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java
new file mode 100644
index 00000000..760e1347
--- /dev/null
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.HttpJsonCallSettings;
+import com.google.api.gax.httpjson.HttpJsonCallableFactory;
+import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
+import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.httpjson.longrunning.stub.OperationsStub;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * REST callable factory implementation for the AutoscalingPolicyService service API.
+ *
+ * 

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAutoscalingPolicyServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java new file mode 100644 index 00000000..ee4bb3b9 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java @@ -0,0 +1,452 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; +import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; +import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; +import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AutoscalingPolicyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createAutoscalingPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.AutoscalingPolicyService/CreateAutoscalingPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autoscalingPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/autoscalingPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAutoscalingPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.AutoscalingPolicyService/UpdateAutoscalingPolicy") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "policy.name", request.getPolicy().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAutoscalingPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.AutoscalingPolicyService/GetAutoscalingPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=projects/*/regions/*/autoscalingPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> + listAutoscalingPoliciesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.AutoscalingPolicyService/ListAutoscalingPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/autoscalingPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/autoscalingPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAutoscalingPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAutoscalingPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=projects/*/regions/*/autoscalingPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createAutoscalingPolicyCallable; + private final UnaryCallable + updateAutoscalingPolicyCallable; + private final UnaryCallable + getAutoscalingPolicyCallable; + private final UnaryCallable + listAutoscalingPoliciesCallable; + private final UnaryCallable + listAutoscalingPoliciesPagedCallable; + private final UnaryCallable + deleteAutoscalingPolicyCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAutoscalingPolicyServiceStub create( + AutoscalingPolicyServiceStubSettings settings) throws IOException { + return new HttpJsonAutoscalingPolicyServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAutoscalingPolicyServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAutoscalingPolicyServiceStub( + AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAutoscalingPolicyServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAutoscalingPolicyServiceStub( + AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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 HttpJsonAutoscalingPolicyServiceStub( + AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAutoscalingPolicyServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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 HttpJsonAutoscalingPolicyServiceStub( + AutoscalingPolicyServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createAutoscalingPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAutoscalingPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAutoscalingPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAutoscalingPoliciesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteAutoscalingPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createAutoscalingPolicyCallable = + callableFactory.createUnaryCallable( + createAutoscalingPolicyTransportSettings, + settings.createAutoscalingPolicySettings(), + clientContext); + this.updateAutoscalingPolicyCallable = + callableFactory.createUnaryCallable( + updateAutoscalingPolicyTransportSettings, + settings.updateAutoscalingPolicySettings(), + clientContext); + this.getAutoscalingPolicyCallable = + callableFactory.createUnaryCallable( + getAutoscalingPolicyTransportSettings, + settings.getAutoscalingPolicySettings(), + clientContext); + this.listAutoscalingPoliciesCallable = + callableFactory.createUnaryCallable( + listAutoscalingPoliciesTransportSettings, + settings.listAutoscalingPoliciesSettings(), + clientContext); + this.listAutoscalingPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAutoscalingPoliciesTransportSettings, + settings.listAutoscalingPoliciesSettings(), + clientContext); + this.deleteAutoscalingPolicyCallable = + callableFactory.createUnaryCallable( + deleteAutoscalingPolicyTransportSettings, + settings.deleteAutoscalingPolicySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createAutoscalingPolicyMethodDescriptor); + methodDescriptors.add(updateAutoscalingPolicyMethodDescriptor); + methodDescriptors.add(getAutoscalingPolicyMethodDescriptor); + methodDescriptors.add(listAutoscalingPoliciesMethodDescriptor); + methodDescriptors.add(deleteAutoscalingPolicyMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + createAutoscalingPolicyCallable() { + return createAutoscalingPolicyCallable; + } + + @Override + public UnaryCallable + updateAutoscalingPolicyCallable() { + return updateAutoscalingPolicyCallable; + } + + @Override + public UnaryCallable + getAutoscalingPolicyCallable() { + return getAutoscalingPolicyCallable; + } + + @Override + public UnaryCallable + listAutoscalingPoliciesCallable() { + return listAutoscalingPoliciesCallable; + } + + @Override + public UnaryCallable + listAutoscalingPoliciesPagedCallable() { + return listAutoscalingPoliciesPagedCallable; + } + + @Override + public UnaryCallable deleteAutoscalingPolicyCallable() { + return deleteAutoscalingPolicyCallable; + } + + @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java new file mode 100644 index 00000000..f994d281 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BatchController service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBatchControllerCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java new file mode 100644 index 00000000..aa10538c --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java @@ -0,0 +1,389 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchOperationMetadata; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.cloud.dataproc.v1.GetBatchRequest; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.ListBatchesResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BatchController service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBatchControllerStub extends BatchControllerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Batch.getDescriptor()) + .add(BatchOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createBatchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.BatchController/CreateBatch") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/batches", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "batchId", request.getBatchId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("batch", request.getBatch())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateBatchRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getBatchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.BatchController/GetBatch") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/batches/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Batch.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBatchesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.BatchController/ListBatches") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/batches", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBatchesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteBatchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.BatchController/DeleteBatch") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/batches/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createBatchCallable; + private final OperationCallable + createBatchOperationCallable; + private final UnaryCallable getBatchCallable; + private final UnaryCallable listBatchesCallable; + private final UnaryCallable + listBatchesPagedCallable; + private final UnaryCallable deleteBatchCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBatchControllerStub create(BatchControllerStubSettings settings) + throws IOException { + return new HttpJsonBatchControllerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBatchControllerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBatchControllerStub( + BatchControllerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBatchControllerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBatchControllerStub( + BatchControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBatchControllerStub, 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 HttpJsonBatchControllerStub( + BatchControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBatchControllerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBatchControllerStub, 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 HttpJsonBatchControllerStub( + BatchControllerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createBatchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBatchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getBatchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBatchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listBatchesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBatchesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteBatchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBatchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createBatchCallable = + callableFactory.createUnaryCallable( + createBatchTransportSettings, settings.createBatchSettings(), clientContext); + this.createBatchOperationCallable = + callableFactory.createOperationCallable( + createBatchTransportSettings, + settings.createBatchOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getBatchCallable = + callableFactory.createUnaryCallable( + getBatchTransportSettings, settings.getBatchSettings(), clientContext); + this.listBatchesCallable = + callableFactory.createUnaryCallable( + listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); + this.listBatchesPagedCallable = + callableFactory.createPagedCallable( + listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); + this.deleteBatchCallable = + callableFactory.createUnaryCallable( + deleteBatchTransportSettings, settings.deleteBatchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createBatchMethodDescriptor); + methodDescriptors.add(getBatchMethodDescriptor); + methodDescriptors.add(listBatchesMethodDescriptor); + methodDescriptors.add(deleteBatchMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createBatchCallable() { + return createBatchCallable; + } + + @Override + public OperationCallable + createBatchOperationCallable() { + return createBatchOperationCallable; + } + + @Override + public UnaryCallable getBatchCallable() { + return getBatchCallable; + } + + @Override + public UnaryCallable listBatchesCallable() { + return listBatchesCallable; + } + + @Override + public UnaryCallable listBatchesPagedCallable() { + return listBatchesPagedCallable; + } + + @Override + public UnaryCallable deleteBatchCallable() { + return deleteBatchCallable; + } + + @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java new file mode 100644 index 00000000..d3a8a4a6 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ClusterController service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonClusterControllerCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java new file mode 100644 index 00000000..e877794f --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java @@ -0,0 +1,739 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.CreateClusterRequest; +import com.google.cloud.dataproc.v1.DeleteClusterRequest; +import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; +import com.google.cloud.dataproc.v1.DiagnoseClusterResults; +import com.google.cloud.dataproc.v1.GetClusterRequest; +import com.google.cloud.dataproc.v1.ListClustersRequest; +import com.google.cloud.dataproc.v1.ListClustersResponse; +import com.google.cloud.dataproc.v1.StartClusterRequest; +import com.google.cloud.dataproc.v1.StopClusterRequest; +import com.google.cloud.dataproc.v1.UpdateClusterRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ClusterController service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonClusterControllerStub extends ClusterControllerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(ClusterOperationMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .add(Cluster.getDescriptor()) + .add(DiagnoseClusterResults.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/CreateCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "actionOnFailedPrimaryWorkers", + request.getActionOnFailedPrimaryWorkers()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("cluster", request.getCluster())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/UpdateCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "gracefulDecommissionTimeout", + request.getGracefulDecommissionTimeout()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("cluster", request.getCluster())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + stopClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StopCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterName() + .clearProjectId() + .clearRegion() + .build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StopClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + startClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StartCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterName() + .clearProjectId() + .clearRegion() + .build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StartClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DeleteCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "clusterUuid", request.getClusterUuid()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/GetCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Cluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listClustersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/ListClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + diagnoseClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DiagnoseCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "clusterName", request.getClusterName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterName() + .clearProjectId() + .clearRegion() + .build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DiagnoseClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable createClusterCallable; + private final OperationCallable + createClusterOperationCallable; + private final UnaryCallable updateClusterCallable; + private final OperationCallable + updateClusterOperationCallable; + private final UnaryCallable stopClusterCallable; + private final OperationCallable + stopClusterOperationCallable; + private final UnaryCallable startClusterCallable; + private final OperationCallable + startClusterOperationCallable; + private final UnaryCallable deleteClusterCallable; + private final OperationCallable + deleteClusterOperationCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable listClustersCallable; + private final UnaryCallable + listClustersPagedCallable; + private final UnaryCallable diagnoseClusterCallable; + private final OperationCallable< + DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> + diagnoseClusterOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonClusterControllerStub create(ClusterControllerStubSettings settings) + throws IOException { + return new HttpJsonClusterControllerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonClusterControllerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonClusterControllerStub( + ClusterControllerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonClusterControllerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonClusterControllerStub( + ClusterControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStub( + ClusterControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonClusterControllerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStub( + ClusterControllerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings stopClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(stopClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings startClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listClustersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings diagnoseClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(diagnoseClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.createClusterOperationCallable = + callableFactory.createOperationCallable( + createClusterTransportSettings, + settings.createClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateClusterOperationCallable = + callableFactory.createOperationCallable( + updateClusterTransportSettings, + settings.updateClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.stopClusterCallable = + callableFactory.createUnaryCallable( + stopClusterTransportSettings, settings.stopClusterSettings(), clientContext); + this.stopClusterOperationCallable = + callableFactory.createOperationCallable( + stopClusterTransportSettings, + settings.stopClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.startClusterCallable = + callableFactory.createUnaryCallable( + startClusterTransportSettings, settings.startClusterSettings(), clientContext); + this.startClusterOperationCallable = + callableFactory.createOperationCallable( + startClusterTransportSettings, + settings.startClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.deleteClusterOperationCallable = + callableFactory.createOperationCallable( + deleteClusterTransportSettings, + settings.deleteClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.listClustersPagedCallable = + callableFactory.createPagedCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.diagnoseClusterCallable = + callableFactory.createUnaryCallable( + diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); + this.diagnoseClusterOperationCallable = + callableFactory.createOperationCallable( + diagnoseClusterTransportSettings, + settings.diagnoseClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(stopClusterMethodDescriptor); + methodDescriptors.add(startClusterMethodDescriptor); + methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(getClusterMethodDescriptor); + methodDescriptors.add(listClustersMethodDescriptor); + methodDescriptors.add(diagnoseClusterMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public OperationCallable + createClusterOperationCallable() { + return createClusterOperationCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public OperationCallable + updateClusterOperationCallable() { + return updateClusterOperationCallable; + } + + @Override + public UnaryCallable stopClusterCallable() { + return stopClusterCallable; + } + + @Override + public OperationCallable + stopClusterOperationCallable() { + return stopClusterOperationCallable; + } + + @Override + public UnaryCallable startClusterCallable() { + return startClusterCallable; + } + + @Override + public OperationCallable + startClusterOperationCallable() { + return startClusterOperationCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public OperationCallable + deleteClusterOperationCallable() { + return deleteClusterOperationCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable listClustersPagedCallable() { + return listClustersPagedCallable; + } + + @Override + public UnaryCallable diagnoseClusterCallable() { + return diagnoseClusterCallable; + } + + @Override + public OperationCallable + diagnoseClusterOperationCallable() { + return diagnoseClusterOperationCallable; + } + + @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java new file mode 100644 index 00000000..720bec66 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the JobController service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobControllerCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java new file mode 100644 index 00000000..ddd18936 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java @@ -0,0 +1,563 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.CancelJobRequest; +import com.google.cloud.dataproc.v1.DeleteJobRequest; +import com.google.cloud.dataproc.v1.GetJobRequest; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobMetadata; +import com.google.cloud.dataproc.v1.ListJobsRequest; +import com.google.cloud.dataproc.v1.ListJobsResponse; +import com.google.cloud.dataproc.v1.SubmitJobRequest; +import com.google.cloud.dataproc.v1.UpdateJobRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the JobController service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobControllerStub extends JobControllerStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(JobMetadata.getDescriptor()).add(Job.getDescriptor()).build(); + + private static final ApiMethodDescriptor submitJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs:submit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearProjectId().clearRegion().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + submitJobAsOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJobAsOperation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request.toBuilder().clearProjectId().clearRegion().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SubmitJobRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/GetJob") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "jobId", request.getJobId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/ListJobs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "clusterName", request.getClusterName()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam( + fields, "jobStateMatcher", request.getJobStateMatcher()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/UpdateJob") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "jobId", request.getJobId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor cancelJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/CancelJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "jobId", request.getJobId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearJobId() + .clearProjectId() + .clearRegion() + .build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataproc.v1.JobController/DeleteJob") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "jobId", request.getJobId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "region", request.getRegion()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable submitJobCallable; + private final UnaryCallable submitJobAsOperationCallable; + private final OperationCallable + submitJobAsOperationOperationCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable cancelJobCallable; + private final UnaryCallable deleteJobCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonJobControllerStub create(JobControllerStubSettings settings) + throws IOException { + return new HttpJsonJobControllerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonJobControllerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonJobControllerStub( + JobControllerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonJobControllerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonJobControllerStub( + JobControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonJobControllerStub, 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 HttpJsonJobControllerStub( + JobControllerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonJobControllerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonJobControllerStub, 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 HttpJsonJobControllerStub( + JobControllerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings submitJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(submitJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings submitJobAsOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(submitJobAsOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings cancelJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(cancelJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.submitJobCallable = + callableFactory.createUnaryCallable( + submitJobTransportSettings, settings.submitJobSettings(), clientContext); + this.submitJobAsOperationCallable = + callableFactory.createUnaryCallable( + submitJobAsOperationTransportSettings, + settings.submitJobAsOperationSettings(), + clientContext); + this.submitJobAsOperationOperationCallable = + callableFactory.createOperationCallable( + submitJobAsOperationTransportSettings, + settings.submitJobAsOperationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.cancelJobCallable = + callableFactory.createUnaryCallable( + cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(submitJobMethodDescriptor); + methodDescriptors.add(submitJobAsOperationMethodDescriptor); + methodDescriptors.add(getJobMethodDescriptor); + methodDescriptors.add(listJobsMethodDescriptor); + methodDescriptors.add(updateJobMethodDescriptor); + methodDescriptors.add(cancelJobMethodDescriptor); + methodDescriptors.add(deleteJobMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable submitJobCallable() { + return submitJobCallable; + } + + @Override + public UnaryCallable submitJobAsOperationCallable() { + return submitJobAsOperationCallable; + } + + @Override + public OperationCallable + submitJobAsOperationOperationCallable() { + return submitJobAsOperationOperationCallable; + } + + @Override + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + @Override + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + @Override + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + @Override + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + @Override + public UnaryCallable cancelJobCallable() { + return cancelJobCallable; + } + + @Override + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java new file mode 100644 index 00000000..868d15f2 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the WorkflowTemplateService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonWorkflowTemplateServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java new file mode 100644 index 00000000..1e980390 --- /dev/null +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java @@ -0,0 +1,626 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub; + +import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; +import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowMetadata; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the WorkflowTemplateService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(WorkflowMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/CreateWorkflowTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/workflowTemplates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/workflowTemplates") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("template", request.getTemplate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/GetWorkflowTemplate") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workflowTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=projects/*/regions/*/workflowTemplates/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "version", request.getVersion()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + instantiateWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateWorkflowTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InstantiateWorkflowTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + instantiateInlineWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateInlineWorkflowTemplate") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("template", request.getTemplate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (InstantiateInlineWorkflowTemplateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/UpdateWorkflowTemplate") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "template.name", request.getTemplate().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{template.name=projects/*/regions/*/workflowTemplates/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("template", request.getTemplate())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse> + listWorkflowTemplatesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/ListWorkflowTemplates") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/workflowTemplates", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/workflowTemplates") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkflowTemplatesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteWorkflowTemplateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataproc.v1.WorkflowTemplateService/DeleteWorkflowTemplate") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workflowTemplates/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1/{name=projects/*/regions/*/workflowTemplates/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "version", request.getVersion()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createWorkflowTemplateCallable; + private final UnaryCallable + getWorkflowTemplateCallable; + private final UnaryCallable + instantiateWorkflowTemplateCallable; + private final OperationCallable + instantiateWorkflowTemplateOperationCallable; + private final UnaryCallable + instantiateInlineWorkflowTemplateCallable; + private final OperationCallable + instantiateInlineWorkflowTemplateOperationCallable; + private final UnaryCallable + updateWorkflowTemplateCallable; + private final UnaryCallable + listWorkflowTemplatesCallable; + private final UnaryCallable + listWorkflowTemplatesPagedCallable; + private final UnaryCallable deleteWorkflowTemplateCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonWorkflowTemplateServiceStub create( + WorkflowTemplateServiceStubSettings settings) throws IOException { + return new HttpJsonWorkflowTemplateServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonWorkflowTemplateServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonWorkflowTemplateServiceStub( + WorkflowTemplateServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonWorkflowTemplateServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonWorkflowTemplateServiceStub( + WorkflowTemplateServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonWorkflowTemplateServiceStub, 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 HttpJsonWorkflowTemplateServiceStub( + WorkflowTemplateServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonWorkflowTemplateServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonWorkflowTemplateServiceStub, 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 HttpJsonWorkflowTemplateServiceStub( + WorkflowTemplateServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings + createWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + instantiateWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + instantiateInlineWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkflowTemplatesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteWorkflowTemplateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + createWorkflowTemplateTransportSettings, + settings.createWorkflowTemplateSettings(), + clientContext); + this.getWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + getWorkflowTemplateTransportSettings, + settings.getWorkflowTemplateSettings(), + clientContext); + this.instantiateWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + instantiateWorkflowTemplateTransportSettings, + settings.instantiateWorkflowTemplateSettings(), + clientContext); + this.instantiateWorkflowTemplateOperationCallable = + callableFactory.createOperationCallable( + instantiateWorkflowTemplateTransportSettings, + settings.instantiateWorkflowTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.instantiateInlineWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + instantiateInlineWorkflowTemplateTransportSettings, + settings.instantiateInlineWorkflowTemplateSettings(), + clientContext); + this.instantiateInlineWorkflowTemplateOperationCallable = + callableFactory.createOperationCallable( + instantiateInlineWorkflowTemplateTransportSettings, + settings.instantiateInlineWorkflowTemplateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + updateWorkflowTemplateTransportSettings, + settings.updateWorkflowTemplateSettings(), + clientContext); + this.listWorkflowTemplatesCallable = + callableFactory.createUnaryCallable( + listWorkflowTemplatesTransportSettings, + settings.listWorkflowTemplatesSettings(), + clientContext); + this.listWorkflowTemplatesPagedCallable = + callableFactory.createPagedCallable( + listWorkflowTemplatesTransportSettings, + settings.listWorkflowTemplatesSettings(), + clientContext); + this.deleteWorkflowTemplateCallable = + callableFactory.createUnaryCallable( + deleteWorkflowTemplateTransportSettings, + settings.deleteWorkflowTemplateSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createWorkflowTemplateMethodDescriptor); + methodDescriptors.add(getWorkflowTemplateMethodDescriptor); + methodDescriptors.add(instantiateWorkflowTemplateMethodDescriptor); + methodDescriptors.add(instantiateInlineWorkflowTemplateMethodDescriptor); + methodDescriptors.add(updateWorkflowTemplateMethodDescriptor); + methodDescriptors.add(listWorkflowTemplatesMethodDescriptor); + methodDescriptors.add(deleteWorkflowTemplateMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + createWorkflowTemplateCallable() { + return createWorkflowTemplateCallable; + } + + @Override + public UnaryCallable getWorkflowTemplateCallable() { + return getWorkflowTemplateCallable; + } + + @Override + public UnaryCallable + instantiateWorkflowTemplateCallable() { + return instantiateWorkflowTemplateCallable; + } + + @Override + public OperationCallable + instantiateWorkflowTemplateOperationCallable() { + return instantiateWorkflowTemplateOperationCallable; + } + + @Override + public UnaryCallable + instantiateInlineWorkflowTemplateCallable() { + return instantiateInlineWorkflowTemplateCallable; + } + + @Override + public OperationCallable + instantiateInlineWorkflowTemplateOperationCallable() { + return instantiateInlineWorkflowTemplateOperationCallable; + } + + @Override + public UnaryCallable + updateWorkflowTemplateCallable() { + return updateWorkflowTemplateCallable; + } + + @Override + public UnaryCallable + listWorkflowTemplatesCallable() { + return listWorkflowTemplatesCallable; + } + + @Override + public UnaryCallable + listWorkflowTemplatesPagedCallable() { + return listWorkflowTemplatesPagedCallable; + } + + @Override + public UnaryCallable deleteWorkflowTemplateCallable() { + return deleteWorkflowTemplateCallable; + } + + @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java index d3613add..eea91495 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,7 +45,11 @@ public abstract class JobControllerStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable submitJobCallable() { diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java index cf723d6c..3d835842 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -82,6 +85,8 @@ *

For example, to set the total timeout of submitJob to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
  *     JobControllerStubSettings.newBuilder();
  * jobControllerSettingsBuilder
@@ -207,13 +212,17 @@ public UnaryCallSettings deleteJobSettings() {
     return deleteJobSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public JobControllerStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
         .equals(GrpcTransportChannel.getGrpcTransportName())) {
       return GrpcJobControllerStub.create(this);
     }
+    if (getTransportChannelProvider()
+        .getTransportName()
+        .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+      return HttpJsonJobControllerStub.create(this);
+    }
     throw new UnsupportedOperationException(
         String.format(
             "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -246,18 +255,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
         .setUseJwtAccessWithScope(true);
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return InstantiatingGrpcChannelProvider.newBuilder()
         .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return InstantiatingHttpJsonChannelProvider.newBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return defaultGrpcTransportProviderBuilder().build();
   }
 
   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
-  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+  public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
     return ApiClientHeaderProvider.newBuilder()
         .setGeneratedLibToken(
             "gapic", GaxProperties.getLibraryVersion(JobControllerStubSettings.class))
@@ -265,11 +281,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
             GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
   }
 
-  /** Returns a new builder for this class. */
+  @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+  public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+    return ApiClientHeaderProvider.newBuilder()
+        .setGeneratedLibToken(
+            "gapic", GaxProperties.getLibraryVersion(JobControllerStubSettings.class))
+        .setTransportToken(
+            GaxHttpJsonProperties.getHttpJsonTokenName(),
+            GaxHttpJsonProperties.getHttpJsonVersion());
+  }
+
+  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+    return JobControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+  }
+
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -423,6 +458,19 @@ private static Builder createDefault() {
       return initDefaults(builder);
     }
 
+    private static Builder createHttpJsonDefault() {
+      Builder builder = new Builder(((ClientContext) null));
+
+      builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+      builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+      builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+      builder.setEndpoint(getDefaultEndpoint());
+      builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+      builder.setSwitchToMtlsEndpointAllowed(true);
+
+      return initDefaults(builder);
+    }
+
     private static Builder initDefaults(Builder builder) {
       builder
           .submitJobSettings()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java
index ea75946b..364a75b8 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -46,7 +46,11 @@
 public abstract class WorkflowTemplateServiceStub implements BackgroundResource {
 
   public OperationsStub getOperationsStub() {
-    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+    return null;
+  }
+
+  public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
+    return null;
   }
 
   public UnaryCallable
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
index cc3a5f7e..06fc7711 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,9 @@
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
 import com.google.api.gax.grpc.ProtoOperationTransformers;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.HttpJsonTransportChannel;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
@@ -83,6 +86,8 @@
  * 

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceStubSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
@@ -249,13 +254,17 @@ public UnaryCallSettings deleteWorkflowTem
     return deleteWorkflowTemplateSettings;
   }
 
-  @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public WorkflowTemplateServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
         .getTransportName()
         .equals(GrpcTransportChannel.getGrpcTransportName())) {
       return GrpcWorkflowTemplateServiceStub.create(this);
     }
+    if (getTransportChannelProvider()
+        .getTransportName()
+        .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
+      return HttpJsonWorkflowTemplateServiceStub.create(this);
+    }
     throw new UnsupportedOperationException(
         String.format(
             "Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -288,18 +297,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
         .setUseJwtAccessWithScope(true);
   }
 
-  /** Returns a builder for the default ChannelProvider for this service. */
+  /** Returns a builder for the default gRPC ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
     return InstantiatingGrpcChannelProvider.newBuilder()
         .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
+  /** Returns a builder for the default REST ChannelProvider for this service. */
+  @BetaApi
+  public static InstantiatingHttpJsonChannelProvider.Builder
+      defaultHttpJsonTransportProviderBuilder() {
+    return InstantiatingHttpJsonChannelProvider.newBuilder();
+  }
+
   public static TransportChannelProvider defaultTransportChannelProvider() {
     return defaultGrpcTransportProviderBuilder().build();
   }
 
   @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
-  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+  public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
     return ApiClientHeaderProvider.newBuilder()
         .setGeneratedLibToken(
             "gapic", GaxProperties.getLibraryVersion(WorkflowTemplateServiceStubSettings.class))
@@ -307,11 +323,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
             GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
   }
 
-  /** Returns a new builder for this class. */
+  @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+  public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
+    return ApiClientHeaderProvider.newBuilder()
+        .setGeneratedLibToken(
+            "gapic", GaxProperties.getLibraryVersion(WorkflowTemplateServiceStubSettings.class))
+        .setTransportToken(
+            GaxHttpJsonProperties.getHttpJsonTokenName(),
+            GaxHttpJsonProperties.getHttpJsonVersion());
+  }
+
+  public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+    return WorkflowTemplateServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
+  }
+
+  /** Returns a new gRPC builder for this class. */
   public static Builder newBuilder() {
     return Builder.createDefault();
   }
 
+  /** Returns a new REST builder for this class. */
+  public static Builder newHttpJsonBuilder() {
+    return Builder.createHttpJsonDefault();
+  }
+
   /** Returns a new builder for this class. */
   public static Builder newBuilder(ClientContext clientContext) {
     return new Builder(clientContext);
@@ -487,6 +522,19 @@ private static Builder createDefault() {
       return initDefaults(builder);
     }
 
+    private static Builder createHttpJsonDefault() {
+      Builder builder = new Builder(((ClientContext) null));
+
+      builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
+      builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+      builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
+      builder.setEndpoint(getDefaultEndpoint());
+      builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
+      builder.setSwitchToMtlsEndpointAllowed(true);
+
+      return initDefaults(builder);
+    }
+
     private static Builder initDefaults(Builder builder) {
       builder
           .createWorkflowTemplateSettings()
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java
new file mode 100644
index 00000000..318c4985
--- /dev/null
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java
@@ -0,0 +1,653 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1;
+
+import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.dataproc.v1.stub.HttpJsonAutoscalingPolicyServiceStub;
+import com.google.common.collect.Lists;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class AutoscalingPolicyServiceClientHttpJsonTest {
+  private static MockHttpService mockService;
+  private static AutoscalingPolicyServiceClient client;
+
+  @BeforeClass
+  public static void startStaticServer() throws IOException {
+    mockService =
+        new MockHttpService(
+            HttpJsonAutoscalingPolicyServiceStub.getMethodDescriptors(),
+            AutoscalingPolicyServiceSettings.getDefaultEndpoint());
+    AutoscalingPolicyServiceSettings settings =
+        AutoscalingPolicyServiceSettings.newHttpJsonBuilder()
+            .setTransportChannelProvider(
+                AutoscalingPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder()
+                    .setHttpTransport(mockService)
+                    .build())
+            .setCredentialsProvider(NoCredentialsProvider.create())
+            .build();
+    client = AutoscalingPolicyServiceClient.create(settings);
+  }
+
+  @AfterClass
+  public static void stopServer() {
+    client.close();
+  }
+
+  @Before
+  public void setUp() {}
+
+  @After
+  public void tearDown() throws Exception {
+    mockService.reset();
+  }
+
+  @Test
+  public void createAutoscalingPolicyTest() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+    AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createAutoscalingPolicyExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+      client.createAutoscalingPolicy(parent, policy);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createAutoscalingPolicyTest2() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+    AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+    AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createAutoscalingPolicyExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+      AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+      client.createAutoscalingPolicy(parent, policy);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createAutoscalingPolicyTest3() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+    AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+    AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createAutoscalingPolicyExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+      client.createAutoscalingPolicy(parent, policy);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updateAutoscalingPolicyTest() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    AutoscalingPolicy policy =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+
+    AutoscalingPolicy actualResponse = client.updateAutoscalingPolicy(policy);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateAutoscalingPolicyExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      AutoscalingPolicy policy =
+          AutoscalingPolicy.newBuilder()
+              .setId("id3355")
+              .setName(
+                  AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                          "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                      .toString())
+              .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+              .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+              .putAllLabels(new HashMap())
+              .build();
+      client.updateAutoscalingPolicy(policy);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getAutoscalingPolicyTest() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    AutoscalingPolicyName name =
+        AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+            "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
+
+    AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getAutoscalingPolicyExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      AutoscalingPolicyName name =
+          AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+              "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
+      client.getAutoscalingPolicy(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getAutoscalingPolicyTest2() throws Exception {
+    AutoscalingPolicy expectedResponse =
+        AutoscalingPolicy.newBuilder()
+            .setId("id3355")
+            .setName(
+                AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+                        "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
+                    .toString())
+            .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686";
+
+    AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getAutoscalingPolicyExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686";
+      client.getAutoscalingPolicy(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listAutoscalingPoliciesTest() throws Exception {
+    AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build();
+    ListAutoscalingPoliciesResponse expectedResponse =
+        ListAutoscalingPoliciesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPolicies(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+    ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listAutoscalingPoliciesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      client.listAutoscalingPolicies(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listAutoscalingPoliciesTest2() throws Exception {
+    AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build();
+    ListAutoscalingPoliciesResponse expectedResponse =
+        ListAutoscalingPoliciesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPolicies(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+
+    ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listAutoscalingPoliciesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+      client.listAutoscalingPolicies(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listAutoscalingPoliciesTest3() throws Exception {
+    AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build();
+    ListAutoscalingPoliciesResponse expectedResponse =
+        ListAutoscalingPoliciesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllPolicies(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+
+    ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listAutoscalingPoliciesExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      client.listAutoscalingPolicies(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteAutoscalingPolicyTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    AutoscalingPolicyName name =
+        AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+            "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
+
+    client.deleteAutoscalingPolicy(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteAutoscalingPolicyExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      AutoscalingPolicyName name =
+          AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
+              "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
+      client.deleteAutoscalingPolicy(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteAutoscalingPolicyTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686";
+
+    client.deleteAutoscalingPolicy(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteAutoscalingPolicyExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686";
+      client.deleteAutoscalingPolicy(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+}
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java
index 000fcdf6..d95da302 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java
new file mode 100644
index 00000000..277b7332
--- /dev/null
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java
@@ -0,0 +1,502 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1;
+
+import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.dataproc.v1.stub.HttpJsonBatchControllerStub;
+import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Any;
+import com.google.protobuf.Empty;
+import com.google.protobuf.Timestamp;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class BatchControllerClientHttpJsonTest {
+  private static MockHttpService mockService;
+  private static BatchControllerClient client;
+
+  @BeforeClass
+  public static void startStaticServer() throws IOException {
+    mockService =
+        new MockHttpService(
+            HttpJsonBatchControllerStub.getMethodDescriptors(),
+            BatchControllerSettings.getDefaultEndpoint());
+    BatchControllerSettings settings =
+        BatchControllerSettings.newHttpJsonBuilder()
+            .setTransportChannelProvider(
+                BatchControllerSettings.defaultHttpJsonTransportProviderBuilder()
+                    .setHttpTransport(mockService)
+                    .build())
+            .setCredentialsProvider(NoCredentialsProvider.create())
+            .build();
+    client = BatchControllerClient.create(settings);
+  }
+
+  @AfterClass
+  public static void stopServer() {
+    client.close();
+  }
+
+  @Before
+  public void setUp() {}
+
+  @After
+  public void tearDown() throws Exception {
+    mockService.reset();
+  }
+
+  @Test
+  public void createBatchTest() throws Exception {
+    Batch expectedResponse =
+        Batch.newBuilder()
+            .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+            .setUuid("uuid3601339")
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setRuntimeInfo(RuntimeInfo.newBuilder().build())
+            .setStateMessage("stateMessage1128185398")
+            .setStateTime(Timestamp.newBuilder().build())
+            .setCreator("creator1028554796")
+            .putAllLabels(new HashMap())
+            .setRuntimeConfig(RuntimeConfig.newBuilder().build())
+            .setEnvironmentConfig(EnvironmentConfig.newBuilder().build())
+            .setOperation("operation1662702951")
+            .addAllStateHistory(new ArrayList())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createBatchTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    Batch batch = Batch.newBuilder().build();
+    String batchId = "batchId-331744779";
+
+    Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createBatchExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      Batch batch = Batch.newBuilder().build();
+      String batchId = "batchId-331744779";
+      client.createBatchAsync(parent, batch, batchId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void createBatchTest2() throws Exception {
+    Batch expectedResponse =
+        Batch.newBuilder()
+            .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+            .setUuid("uuid3601339")
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setRuntimeInfo(RuntimeInfo.newBuilder().build())
+            .setStateMessage("stateMessage1128185398")
+            .setStateTime(Timestamp.newBuilder().build())
+            .setCreator("creator1028554796")
+            .putAllLabels(new HashMap())
+            .setRuntimeConfig(RuntimeConfig.newBuilder().build())
+            .setEnvironmentConfig(EnvironmentConfig.newBuilder().build())
+            .setOperation("operation1662702951")
+            .addAllStateHistory(new ArrayList())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createBatchTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String parent = "projects/project-5833/locations/location-5833";
+    Batch batch = Batch.newBuilder().build();
+    String batchId = "batchId-331744779";
+
+    Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createBatchExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      Batch batch = Batch.newBuilder().build();
+      String batchId = "batchId-331744779";
+      client.createBatchAsync(parent, batch, batchId).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void getBatchTest() throws Exception {
+    Batch expectedResponse =
+        Batch.newBuilder()
+            .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+            .setUuid("uuid3601339")
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setRuntimeInfo(RuntimeInfo.newBuilder().build())
+            .setStateMessage("stateMessage1128185398")
+            .setStateTime(Timestamp.newBuilder().build())
+            .setCreator("creator1028554796")
+            .putAllLabels(new HashMap())
+            .setRuntimeConfig(RuntimeConfig.newBuilder().build())
+            .setEnvironmentConfig(EnvironmentConfig.newBuilder().build())
+            .setOperation("operation1662702951")
+            .addAllStateHistory(new ArrayList())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+
+    Batch actualResponse = client.getBatch(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getBatchExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+      client.getBatch(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getBatchTest2() throws Exception {
+    Batch expectedResponse =
+        Batch.newBuilder()
+            .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
+            .setUuid("uuid3601339")
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setRuntimeInfo(RuntimeInfo.newBuilder().build())
+            .setStateMessage("stateMessage1128185398")
+            .setStateTime(Timestamp.newBuilder().build())
+            .setCreator("creator1028554796")
+            .putAllLabels(new HashMap())
+            .setRuntimeConfig(RuntimeConfig.newBuilder().build())
+            .setEnvironmentConfig(EnvironmentConfig.newBuilder().build())
+            .setOperation("operation1662702951")
+            .addAllStateHistory(new ArrayList())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name = "projects/project-1682/locations/location-1682/batches/batche-1682";
+
+    Batch actualResponse = client.getBatch(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getBatchExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name = "projects/project-1682/locations/location-1682/batches/batche-1682";
+      client.getBatch(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listBatchesTest() throws Exception {
+    Batch responsesElement = Batch.newBuilder().build();
+    ListBatchesResponse expectedResponse =
+        ListBatchesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllBatches(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+    ListBatchesPagedResponse pagedListResponse = client.listBatches(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listBatchesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      client.listBatches(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listBatchesTest2() throws Exception {
+    Batch responsesElement = Batch.newBuilder().build();
+    ListBatchesResponse expectedResponse =
+        ListBatchesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllBatches(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+
+    ListBatchesPagedResponse pagedListResponse = client.listBatches(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listBatchesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      client.listBatches(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteBatchTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+
+    client.deleteBatch(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteBatchExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
+      client.deleteBatch(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteBatchTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    String name = "projects/project-1682/locations/location-1682/batches/batche-1682";
+
+    client.deleteBatch(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteBatchExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name = "projects/project-1682/locations/location-1682/batches/batche-1682";
+      client.deleteBatch(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+}
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java
index e8825b6f..842b662a 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java
new file mode 100644
index 00000000..64b8eb3d
--- /dev/null
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java
@@ -0,0 +1,616 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1;
+
+import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.dataproc.v1.stub.HttpJsonClusterControllerStub;
+import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Any;
+import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class ClusterControllerClientHttpJsonTest {
+  private static MockHttpService mockService;
+  private static ClusterControllerClient client;
+
+  @BeforeClass
+  public static void startStaticServer() throws IOException {
+    mockService =
+        new MockHttpService(
+            HttpJsonClusterControllerStub.getMethodDescriptors(),
+            ClusterControllerSettings.getDefaultEndpoint());
+    ClusterControllerSettings settings =
+        ClusterControllerSettings.newHttpJsonBuilder()
+            .setTransportChannelProvider(
+                ClusterControllerSettings.defaultHttpJsonTransportProviderBuilder()
+                    .setHttpTransport(mockService)
+                    .build())
+            .setCredentialsProvider(NoCredentialsProvider.create())
+            .build();
+    client = ClusterControllerClient.create(settings);
+  }
+
+  @AfterClass
+  public static void stopServer() {
+    client.close();
+  }
+
+  @Before
+  public void setUp() {}
+
+  @After
+  public void tearDown() throws Exception {
+    mockService.reset();
+  }
+
+  @Test
+  public void createClusterTest() throws Exception {
+    Cluster expectedResponse =
+        Cluster.newBuilder()
+            .setProjectId("projectId-894832108")
+            .setClusterName("clusterName-1141738587")
+            .setConfig(ClusterConfig.newBuilder().build())
+            .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setStatus(ClusterStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .setClusterUuid("clusterUuid-1141510955")
+            .setMetrics(ClusterMetrics.newBuilder().build())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("createClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    Cluster cluster = Cluster.newBuilder().build();
+
+    Cluster actualResponse = client.createClusterAsync(projectId, region, cluster).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      Cluster cluster = Cluster.newBuilder().build();
+      client.createClusterAsync(projectId, region, cluster).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void updateClusterTest() throws Exception {
+    Cluster expectedResponse =
+        Cluster.newBuilder()
+            .setProjectId("projectId-894832108")
+            .setClusterName("clusterName-1141738587")
+            .setConfig(ClusterConfig.newBuilder().build())
+            .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setStatus(ClusterStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .setClusterUuid("clusterUuid-1141510955")
+            .setMetrics(ClusterMetrics.newBuilder().build())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("updateClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String clusterName = "clusterName-7787";
+    Cluster cluster = Cluster.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    Cluster actualResponse =
+        client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String clusterName = "clusterName-7787";
+      Cluster cluster = Cluster.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void stopClusterTest() throws Exception {
+    Cluster expectedResponse =
+        Cluster.newBuilder()
+            .setProjectId("projectId-894832108")
+            .setClusterName("clusterName-1141738587")
+            .setConfig(ClusterConfig.newBuilder().build())
+            .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setStatus(ClusterStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .setClusterUuid("clusterUuid-1141510955")
+            .setMetrics(ClusterMetrics.newBuilder().build())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("stopClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    StopClusterRequest request =
+        StopClusterRequest.newBuilder()
+            .setProjectId("projectId-1530")
+            .setRegion("region-9622")
+            .setClusterName("clusterName-7787")
+            .setClusterUuid("clusterUuid-1141510955")
+            .setRequestId("requestId693933066")
+            .build();
+
+    Cluster actualResponse = client.stopClusterAsync(request).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void stopClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      StopClusterRequest request =
+          StopClusterRequest.newBuilder()
+              .setProjectId("projectId-1530")
+              .setRegion("region-9622")
+              .setClusterName("clusterName-7787")
+              .setClusterUuid("clusterUuid-1141510955")
+              .setRequestId("requestId693933066")
+              .build();
+      client.stopClusterAsync(request).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void startClusterTest() throws Exception {
+    Cluster expectedResponse =
+        Cluster.newBuilder()
+            .setProjectId("projectId-894832108")
+            .setClusterName("clusterName-1141738587")
+            .setConfig(ClusterConfig.newBuilder().build())
+            .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setStatus(ClusterStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .setClusterUuid("clusterUuid-1141510955")
+            .setMetrics(ClusterMetrics.newBuilder().build())
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("startClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    StartClusterRequest request =
+        StartClusterRequest.newBuilder()
+            .setProjectId("projectId-1530")
+            .setRegion("region-9622")
+            .setClusterName("clusterName-7787")
+            .setClusterUuid("clusterUuid-1141510955")
+            .setRequestId("requestId693933066")
+            .build();
+
+    Cluster actualResponse = client.startClusterAsync(request).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void startClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      StartClusterRequest request =
+          StartClusterRequest.newBuilder()
+              .setProjectId("projectId-1530")
+              .setRegion("region-9622")
+              .setClusterName("clusterName-7787")
+              .setClusterUuid("clusterUuid-1141510955")
+              .setRequestId("requestId693933066")
+              .build();
+      client.startClusterAsync(request).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void deleteClusterTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("deleteClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String clusterName = "clusterName-7787";
+
+    client.deleteClusterAsync(projectId, region, clusterName).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String clusterName = "clusterName-7787";
+      client.deleteClusterAsync(projectId, region, clusterName).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void getClusterTest() throws Exception {
+    Cluster expectedResponse =
+        Cluster.newBuilder()
+            .setProjectId("projectId-894832108")
+            .setClusterName("clusterName-1141738587")
+            .setConfig(ClusterConfig.newBuilder().build())
+            .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setStatus(ClusterStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .setClusterUuid("clusterUuid-1141510955")
+            .setMetrics(ClusterMetrics.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String clusterName = "clusterName-7787";
+
+    Cluster actualResponse = client.getCluster(projectId, region, clusterName);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String clusterName = "clusterName-7787";
+      client.getCluster(projectId, region, clusterName);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listClustersTest() throws Exception {
+    Cluster responsesElement = Cluster.newBuilder().build();
+    ListClustersResponse expectedResponse =
+        ListClustersResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllClusters(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+
+    ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listClustersExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      client.listClusters(projectId, region);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listClustersTest2() throws Exception {
+    Cluster responsesElement = Cluster.newBuilder().build();
+    ListClustersResponse expectedResponse =
+        ListClustersResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllClusters(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String filter = "filter-1274492040";
+
+    ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listClustersExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String filter = "filter-1274492040";
+      client.listClusters(projectId, region, filter);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void diagnoseClusterTest() throws Exception {
+    DiagnoseClusterResults expectedResponse =
+        DiagnoseClusterResults.newBuilder().setOutputUri("outputUri-2119300949").build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("diagnoseClusterTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String clusterName = "clusterName-7787";
+
+    DiagnoseClusterResults actualResponse =
+        client.diagnoseClusterAsync(projectId, region, clusterName).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void diagnoseClusterExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String clusterName = "clusterName-7787";
+      client.diagnoseClusterAsync(projectId, region, clusterName).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+}
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java
index b84fc4e3..74fb6df7 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java
new file mode 100644
index 00000000..0bcb2ad9
--- /dev/null
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java
@@ -0,0 +1,539 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1;
+
+import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.dataproc.v1.stub.HttpJsonJobControllerStub;
+import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Any;
+import com.google.protobuf.Empty;
+import com.google.protobuf.FieldMask;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class JobControllerClientHttpJsonTest {
+  private static MockHttpService mockService;
+  private static JobControllerClient client;
+
+  @BeforeClass
+  public static void startStaticServer() throws IOException {
+    mockService =
+        new MockHttpService(
+            HttpJsonJobControllerStub.getMethodDescriptors(),
+            JobControllerSettings.getDefaultEndpoint());
+    JobControllerSettings settings =
+        JobControllerSettings.newHttpJsonBuilder()
+            .setTransportChannelProvider(
+                JobControllerSettings.defaultHttpJsonTransportProviderBuilder()
+                    .setHttpTransport(mockService)
+                    .build())
+            .setCredentialsProvider(NoCredentialsProvider.create())
+            .build();
+    client = JobControllerClient.create(settings);
+  }
+
+  @AfterClass
+  public static void stopServer() {
+    client.close();
+  }
+
+  @Before
+  public void setUp() {}
+
+  @After
+  public void tearDown() throws Exception {
+    mockService.reset();
+  }
+
+  @Test
+  public void submitJobTest() throws Exception {
+    Job expectedResponse =
+        Job.newBuilder()
+            .setReference(JobReference.newBuilder().build())
+            .setPlacement(JobPlacement.newBuilder().build())
+            .setStatus(JobStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .addAllYarnApplications(new ArrayList())
+            .setDriverOutputResourceUri("driverOutputResourceUri794556277")
+            .setDriverControlFilesUri("driverControlFilesUri1491948202")
+            .putAllLabels(new HashMap())
+            .setScheduling(JobScheduling.newBuilder().build())
+            .setJobUuid("jobUuid-1437868776")
+            .setDone(true)
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    Job job = Job.newBuilder().build();
+
+    Job actualResponse = client.submitJob(projectId, region, job);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void submitJobExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      Job job = Job.newBuilder().build();
+      client.submitJob(projectId, region, job);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void submitJobAsOperationTest() throws Exception {
+    Job expectedResponse =
+        Job.newBuilder()
+            .setReference(JobReference.newBuilder().build())
+            .setPlacement(JobPlacement.newBuilder().build())
+            .setStatus(JobStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .addAllYarnApplications(new ArrayList())
+            .setDriverOutputResourceUri("driverOutputResourceUri794556277")
+            .setDriverControlFilesUri("driverControlFilesUri1491948202")
+            .putAllLabels(new HashMap())
+            .setScheduling(JobScheduling.newBuilder().build())
+            .setJobUuid("jobUuid-1437868776")
+            .setDone(true)
+            .build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("submitJobAsOperationTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    Job job = Job.newBuilder().build();
+
+    Job actualResponse = client.submitJobAsOperationAsync(projectId, region, job).get();
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void submitJobAsOperationExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      Job job = Job.newBuilder().build();
+      client.submitJobAsOperationAsync(projectId, region, job).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void getJobTest() throws Exception {
+    Job expectedResponse =
+        Job.newBuilder()
+            .setReference(JobReference.newBuilder().build())
+            .setPlacement(JobPlacement.newBuilder().build())
+            .setStatus(JobStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .addAllYarnApplications(new ArrayList())
+            .setDriverOutputResourceUri("driverOutputResourceUri794556277")
+            .setDriverControlFilesUri("driverControlFilesUri1491948202")
+            .putAllLabels(new HashMap())
+            .setScheduling(JobScheduling.newBuilder().build())
+            .setJobUuid("jobUuid-1437868776")
+            .setDone(true)
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String jobId = "jobId-3646";
+
+    Job actualResponse = client.getJob(projectId, region, jobId);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getJobExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String jobId = "jobId-3646";
+      client.getJob(projectId, region, jobId);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listJobsTest() throws Exception {
+    Job responsesElement = Job.newBuilder().build();
+    ListJobsResponse expectedResponse =
+        ListJobsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllJobs(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+
+    ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listJobsExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      client.listJobs(projectId, region);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listJobsTest2() throws Exception {
+    Job responsesElement = Job.newBuilder().build();
+    ListJobsResponse expectedResponse =
+        ListJobsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllJobs(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String filter = "filter-1274492040";
+
+    ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listJobsExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String filter = "filter-1274492040";
+      client.listJobs(projectId, region, filter);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void updateJobTest() throws Exception {
+    Job expectedResponse =
+        Job.newBuilder()
+            .setReference(JobReference.newBuilder().build())
+            .setPlacement(JobPlacement.newBuilder().build())
+            .setStatus(JobStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .addAllYarnApplications(new ArrayList())
+            .setDriverOutputResourceUri("driverOutputResourceUri794556277")
+            .setDriverControlFilesUri("driverControlFilesUri1491948202")
+            .putAllLabels(new HashMap())
+            .setScheduling(JobScheduling.newBuilder().build())
+            .setJobUuid("jobUuid-1437868776")
+            .setDone(true)
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    UpdateJobRequest request =
+        UpdateJobRequest.newBuilder()
+            .setProjectId("projectId-1530")
+            .setRegion("region-9622")
+            .setJobId("jobId-3646")
+            .setJob(Job.newBuilder().build())
+            .setUpdateMask(FieldMask.newBuilder().build())
+            .build();
+
+    Job actualResponse = client.updateJob(request);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateJobExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      UpdateJobRequest request =
+          UpdateJobRequest.newBuilder()
+              .setProjectId("projectId-1530")
+              .setRegion("region-9622")
+              .setJobId("jobId-3646")
+              .setJob(Job.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      client.updateJob(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void cancelJobTest() throws Exception {
+    Job expectedResponse =
+        Job.newBuilder()
+            .setReference(JobReference.newBuilder().build())
+            .setPlacement(JobPlacement.newBuilder().build())
+            .setStatus(JobStatus.newBuilder().build())
+            .addAllStatusHistory(new ArrayList())
+            .addAllYarnApplications(new ArrayList())
+            .setDriverOutputResourceUri("driverOutputResourceUri794556277")
+            .setDriverControlFilesUri("driverControlFilesUri1491948202")
+            .putAllLabels(new HashMap())
+            .setScheduling(JobScheduling.newBuilder().build())
+            .setJobUuid("jobUuid-1437868776")
+            .setDone(true)
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String jobId = "jobId-3646";
+
+    Job actualResponse = client.cancelJob(projectId, region, jobId);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void cancelJobExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String jobId = "jobId-3646";
+      client.cancelJob(projectId, region, jobId);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteJobTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    String projectId = "projectId-1530";
+    String region = "region-9622";
+    String jobId = "jobId-3646";
+
+    client.deleteJob(projectId, region, jobId);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteJobExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String projectId = "projectId-1530";
+      String region = "region-9622";
+      String jobId = "jobId-3646";
+      client.deleteJob(projectId, region, jobId);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+}
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java
index b2307912..ffa2b83b 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java
index fbceec8b..a5d46102 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
index 78357cb9..0352e3d7 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java
index 0d35efbd..3df2af0e 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java
index ae3b2c9d..a2c9a1da 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java
index 757fb4cf..4023cc68 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
index 90f5bdc3..fbf804c7 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java
index f585b65e..9b9096b1 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
index 682ba337..e2cdd8b6 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java
index f4881cc5..01061d84 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
index 12761ffe..b41de973 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java
new file mode 100644
index 00000000..147e97d9
--- /dev/null
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java
@@ -0,0 +1,1037 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.dataproc.v1;
+
+import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.cloud.dataproc.v1.stub.HttpJsonWorkflowTemplateServiceStub;
+import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
+import com.google.protobuf.Any;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Empty;
+import com.google.protobuf.Timestamp;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ExecutionException;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class WorkflowTemplateServiceClientHttpJsonTest {
+  private static MockHttpService mockService;
+  private static WorkflowTemplateServiceClient client;
+
+  @BeforeClass
+  public static void startStaticServer() throws IOException {
+    mockService =
+        new MockHttpService(
+            HttpJsonWorkflowTemplateServiceStub.getMethodDescriptors(),
+            WorkflowTemplateServiceSettings.getDefaultEndpoint());
+    WorkflowTemplateServiceSettings settings =
+        WorkflowTemplateServiceSettings.newHttpJsonBuilder()
+            .setTransportChannelProvider(
+                WorkflowTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder()
+                    .setHttpTransport(mockService)
+                    .build())
+            .setCredentialsProvider(NoCredentialsProvider.create())
+            .build();
+    client = WorkflowTemplateServiceClient.create(settings);
+  }
+
+  @AfterClass
+  public static void stopServer() {
+    client.close();
+  }
+
+  @Before
+  public void setUp() {}
+
+  @After
+  public void tearDown() throws Exception {
+    mockService.reset();
+  }
+
+  @Test
+  public void createWorkflowTemplateTest() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
+                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.createWorkflowTemplate(parent, template);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createWorkflowTemplateTest2() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
+                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createWorkflowTemplateExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.createWorkflowTemplate(parent, template);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createWorkflowTemplateTest3() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
+                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createWorkflowTemplateExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.createWorkflowTemplate(parent, template);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getWorkflowTemplateTest() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    WorkflowTemplateName name =
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+
+    WorkflowTemplate actualResponse = client.getWorkflowTemplate(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      WorkflowTemplateName name =
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+      client.getWorkflowTemplate(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getWorkflowTemplateTest2() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+
+    WorkflowTemplate actualResponse = client.getWorkflowTemplate(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getWorkflowTemplateExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+      client.getWorkflowTemplate(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    WorkflowTemplateName name =
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+
+    client.instantiateWorkflowTemplateAsync(name).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      WorkflowTemplateName name =
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+      client.instantiateWorkflowTemplateAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String name =
+        "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+
+    client.instantiateWorkflowTemplateAsync(name).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+      client.instantiateWorkflowTemplateAsync(name).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateTest3() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    WorkflowTemplateName name =
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+    Map parameters = new HashMap<>();
+
+    client.instantiateWorkflowTemplateAsync(name, parameters).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      WorkflowTemplateName name =
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+      Map parameters = new HashMap<>();
+      client.instantiateWorkflowTemplateAsync(name, parameters).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateTest4() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String name =
+        "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+    Map parameters = new HashMap<>();
+
+    client.instantiateWorkflowTemplateAsync(name, parameters).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateWorkflowTemplateExceptionTest4() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+      Map parameters = new HashMap<>();
+      client.instantiateWorkflowTemplateAsync(name, parameters).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateInlineWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateInlineWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateTest3() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    Operation resultOperation =
+        Operation.newBuilder()
+            .setName("instantiateInlineWorkflowTemplateTest")
+            .setDone(true)
+            .setResponse(Any.pack(expectedResponse))
+            .build();
+    mockService.addResponse(resultOperation);
+
+    String parent = "projects/project-5833/locations/location-5833";
+    WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+
+    client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+      client.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+      Assert.fail("No exception raised");
+    } catch (ExecutionException e) {
+    }
+  }
+
+  @Test
+  public void updateWorkflowTemplateTest() throws Exception {
+    WorkflowTemplate expectedResponse =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    WorkflowTemplate template =
+        WorkflowTemplate.newBuilder()
+            .setId("id3355")
+            .setName(
+                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
+                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                    .toString())
+            .setVersion(351608024)
+            .setCreateTime(Timestamp.newBuilder().build())
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .putAllLabels(new HashMap())
+            .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+            .addAllJobs(new ArrayList())
+            .addAllParameters(new ArrayList())
+            .setDagTimeout(Duration.newBuilder().build())
+            .build();
+
+    WorkflowTemplate actualResponse = client.updateWorkflowTemplate(template);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      WorkflowTemplate template =
+          WorkflowTemplate.newBuilder()
+              .setId("id3355")
+              .setName(
+                  WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
+                          "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                      .toString())
+              .setVersion(351608024)
+              .setCreateTime(Timestamp.newBuilder().build())
+              .setUpdateTime(Timestamp.newBuilder().build())
+              .putAllLabels(new HashMap())
+              .setPlacement(WorkflowTemplatePlacement.newBuilder().build())
+              .addAllJobs(new ArrayList())
+              .addAllParameters(new ArrayList())
+              .setDagTimeout(Duration.newBuilder().build())
+              .build();
+      client.updateWorkflowTemplate(template);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listWorkflowTemplatesTest() throws Exception {
+    WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build();
+    ListWorkflowTemplatesResponse expectedResponse =
+        ListWorkflowTemplatesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllTemplates(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+
+    ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listWorkflowTemplatesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      client.listWorkflowTemplates(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listWorkflowTemplatesTest2() throws Exception {
+    WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build();
+    ListWorkflowTemplatesResponse expectedResponse =
+        ListWorkflowTemplatesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllTemplates(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+
+    ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listWorkflowTemplatesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+      client.listWorkflowTemplates(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listWorkflowTemplatesTest3() throws Exception {
+    WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build();
+    ListWorkflowTemplatesResponse expectedResponse =
+        ListWorkflowTemplatesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllTemplates(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "projects/project-5833/locations/location-5833";
+
+    ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listWorkflowTemplatesExceptionTest3() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "projects/project-5833/locations/location-5833";
+      client.listWorkflowTemplates(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteWorkflowTemplateTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    WorkflowTemplateName name =
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+
+    client.deleteWorkflowTemplate(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteWorkflowTemplateExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      WorkflowTemplateName name =
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
+      client.deleteWorkflowTemplate(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteWorkflowTemplateTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+
+    client.deleteWorkflowTemplate(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteWorkflowTemplateExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104";
+      client.deleteWorkflowTemplate(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+}
diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java
index 1fd5977b..6cb1712a 100644
--- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java
+++ b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -257,8 +257,8 @@ public void getWorkflowTemplateTest() throws Exception {
         WorkflowTemplate.newBuilder()
             .setId("id3355")
             .setName(
-                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
                     .toString())
             .setVersion(351608024)
             .setCreateTime(Timestamp.newBuilder().build())
@@ -272,8 +272,8 @@ public void getWorkflowTemplateTest() throws Exception {
     mockWorkflowTemplateService.addResponse(expectedResponse);
 
     WorkflowTemplateName name =
-        WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-            "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
 
     WorkflowTemplate actualResponse = client.getWorkflowTemplate(name);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -296,8 +296,8 @@ public void getWorkflowTemplateExceptionTest() throws Exception {
 
     try {
       WorkflowTemplateName name =
-          WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-              "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
       client.getWorkflowTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -311,8 +311,8 @@ public void getWorkflowTemplateTest2() throws Exception {
         WorkflowTemplate.newBuilder()
             .setId("id3355")
             .setName(
-                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
                     .toString())
             .setVersion(351608024)
             .setCreateTime(Timestamp.newBuilder().build())
@@ -367,8 +367,8 @@ public void instantiateWorkflowTemplateTest() throws Exception {
     mockWorkflowTemplateService.addResponse(resultOperation);
 
     WorkflowTemplateName name =
-        WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-            "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
 
     client.instantiateWorkflowTemplateAsync(name).get();
 
@@ -391,8 +391,8 @@ public void instantiateWorkflowTemplateExceptionTest() throws Exception {
 
     try {
       WorkflowTemplateName name =
-          WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-              "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
       client.instantiateWorkflowTemplateAsync(name).get();
       Assert.fail("No exception raised");
     } catch (ExecutionException e) {
@@ -457,8 +457,8 @@ public void instantiateWorkflowTemplateTest3() throws Exception {
     mockWorkflowTemplateService.addResponse(resultOperation);
 
     WorkflowTemplateName name =
-        WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-            "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
     Map parameters = new HashMap<>();
 
     client.instantiateWorkflowTemplateAsync(name, parameters).get();
@@ -483,8 +483,8 @@ public void instantiateWorkflowTemplateExceptionTest3() throws Exception {
 
     try {
       WorkflowTemplateName name =
-          WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-              "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
       Map parameters = new HashMap<>();
       client.instantiateWorkflowTemplateAsync(name, parameters).get();
       Assert.fail("No exception raised");
@@ -685,8 +685,8 @@ public void updateWorkflowTemplateTest() throws Exception {
         WorkflowTemplate.newBuilder()
             .setId("id3355")
             .setName(
-                WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-                        "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
+                WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+                        "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
                     .toString())
             .setVersion(351608024)
             .setCreateTime(Timestamp.newBuilder().build())
@@ -871,8 +871,8 @@ public void deleteWorkflowTemplateTest() throws Exception {
     mockWorkflowTemplateService.addResponse(expectedResponse);
 
     WorkflowTemplateName name =
-        WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-            "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+        WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+            "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
 
     client.deleteWorkflowTemplate(name);
 
@@ -895,8 +895,8 @@ public void deleteWorkflowTemplateExceptionTest() throws Exception {
 
     try {
       WorkflowTemplateName name =
-          WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-              "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
+          WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
+              "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
       client.deleteWorkflowTemplate(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
index 46edc5f0..b3aebedd 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java
@@ -95,6 +95,8 @@ private AcceleratorConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
index e8601269..aea3e2cb 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java
@@ -88,6 +88,8 @@ private AutoscalingConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
index 838b0319..524fac61 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java
@@ -103,81 +103,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "on}/autoscalingPolicies/{autoscaling_pol"
           + "icy}\022Lprojects/{project}/regions/{region"
           + "}/autoscalingPolicies/{autoscaling_polic"
-          + "y}B\013\n\talgorithm\"\244\001\n\031BasicAutoscalingAlgo"
-          + "rithm\022N\n\013yarn_config\030\001 \001(\01324.google.clou"
+          + "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo"
+          + "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou"
           + "d.dataproc.v1.BasicYarnAutoscalingConfig"
-          + "B\003\340A\002\0227\n\017cooldown_period\030\002 \001(\0132\031.google."
-          + "protobuf.DurationB\003\340A\001\"\371\001\n\032BasicYarnAuto"
-          + "scalingConfig\022E\n\035graceful_decommission_t"
-          + "imeout\030\005 \001(\0132\031.google.protobuf.DurationB"
-          + "\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(\001B\003\340A\002\022\036\n\021sc"
-          + "ale_down_factor\030\002 \001(\001B\003\340A\002\022)\n\034scale_up_m"
-          + "in_worker_fraction\030\003 \001(\001B\003\340A\001\022+\n\036scale_d"
-          + "own_min_worker_fraction\030\004 \001(\001B\003\340A\001\"s\n$In"
-          + "stanceGroupAutoscalingPolicyConfig\022\032\n\rmi"
-          + "n_instances\030\001 \001(\005B\003\340A\001\022\032\n\rmax_instances\030"
-          + "\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003\340A\001\"\245\001\n\036Crea"
-          + "teAutoscalingPolicyRequest\022A\n\006parent\030\001 \001"
-          + "(\tB1\340A\002\372A+\022)dataproc.googleapis.com/Auto"
-          + "scalingPolicy\022@\n\006policy\030\002 \001(\0132+.google.c"
-          + "loud.dataproc.v1.AutoscalingPolicyB\003\340A\002\""
-          + "^\n\033GetAutoscalingPolicyRequest\022?\n\004name\030\001"
-          + " \001(\tB1\340A\002\372A+\n)dataproc.googleapis.com/Au"
-          + "toscalingPolicy\"b\n\036UpdateAutoscalingPoli"
-          + "cyRequest\022@\n\006policy\030\001 \001(\0132+.google.cloud"
-          + ".dataproc.v1.AutoscalingPolicyB\003\340A\002\"a\n\036D"
-          + "eleteAutoscalingPolicyRequest\022?\n\004name\030\001 "
-          + "\001(\tB1\340A\002\372A+\n)dataproc.googleapis.com/Aut"
-          + "oscalingPolicy\"\224\001\n\036ListAutoscalingPolici"
-          + "esRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)datap"
-          + "roc.googleapis.com/AutoscalingPolicy\022\026\n\t"
-          + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t"
-          + "B\003\340A\001\"\203\001\n\037ListAutoscalingPoliciesRespons"
-          + "e\022B\n\010policies\030\001 \003(\0132+.google.cloud.datap"
-          + "roc.v1.AutoscalingPolicyB\003\340A\003\022\034\n\017next_pa"
-          + "ge_token\030\002 \001(\tB\003\340A\0032\256\013\n\030AutoscalingPolic"
-          + "yService\022\234\002\n\027CreateAutoscalingPolicy\0228.g"
-          + "oogle.cloud.dataproc.v1.CreateAutoscalin"
-          + "gPolicyRequest\032+.google.cloud.dataproc.v"
-          + "1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202\001\"7/v1/{pare"
-          + "nt=projects/*/locations/*}/autoscalingPo"
-          + "licies:\006policyZ?\"5/v1/{parent=projects/*"
-          + "/regions/*}/autoscalingPolicies:\006policy\332"
-          + "A\rparent,policy\022\243\002\n\027UpdateAutoscalingPol"
-          + "icy\0228.google.cloud.dataproc.v1.UpdateAut"
-          + "oscalingPolicyRequest\032+.google.cloud.dat"
-          + "aproc.v1.AutoscalingPolicy\"\240\001\202\323\344\223\002\220\001\032>/v"
-          + "1/{policy.name=projects/*/locations/*/au"
-          + "toscalingPolicies/*}:\006policyZF\032/v1/{policy.name=projects/*/lo"
+          + "cations/*/autoscalingPolicies/*}:\006policy"
+          + "ZF\032 getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -626,7 +628,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -1483,8 +1485,9 @@ public Builder mergeBasicAlgorithm(
       } else {
         if (algorithmCase_ == 3) {
           basicAlgorithmBuilder_.mergeFrom(value);
+        } else {
+          basicAlgorithmBuilder_.setMessage(value);
         }
-        basicAlgorithmBuilder_.setMessage(value);
       }
       algorithmCase_ = 3;
       return this;
@@ -2029,7 +2032,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2077,7 +2080,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2100,7 +2103,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -2130,7 +2133,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -2157,11 +2160,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
index b0b09719..82c6ac7b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
index d859d06e..46ddc82e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java
@@ -266,7 +266,12 @@ public interface AutoscalingPolicyOrBuilder
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java
index 89635a5b..44a4a517 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java
@@ -112,6 +112,8 @@ private AuxiliaryServicesConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java
index 16c497a7..69de1a0f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java
@@ -71,18 +71,20 @@ private BasicAutoscalingAlgorithm(
           case 10:
             {
               com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder subBuilder = null;
-              if (yarnConfig_ != null) {
-                subBuilder = yarnConfig_.toBuilder();
+              if (configCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_).toBuilder();
               }
-              yarnConfig_ =
+              config_ =
                   input.readMessage(
                       com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.parser(),
                       extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom(yarnConfig_);
-                yarnConfig_ = subBuilder.buildPartial();
+                subBuilder.mergeFrom(
+                    (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_);
+                config_ = subBuilder.buildPartial();
               }
-
+              configCase_ = 1;
               break;
             }
           case 18:
@@ -111,6 +113,8 @@ private BasicAutoscalingAlgorithm(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -134,8 +138,51 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
             com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class);
   }
 
+  private int configCase_ = 0;
+  private java.lang.Object config_;
+
+  public enum ConfigCase
+      implements
+          com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+    YARN_CONFIG(1),
+    CONFIG_NOT_SET(0);
+    private final int value;
+
+    private ConfigCase(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 ConfigCase valueOf(int value) {
+      return forNumber(value);
+    }
+
+    public static ConfigCase forNumber(int value) {
+      switch (value) {
+        case 1:
+          return YARN_CONFIG;
+        case 0:
+          return CONFIG_NOT_SET;
+        default:
+          return null;
+      }
+    }
+
+    public int getNumber() {
+      return this.value;
+    }
+  };
+
+  public ConfigCase getConfigCase() {
+    return ConfigCase.forNumber(configCase_);
+  }
+
   public static final int YARN_CONFIG_FIELD_NUMBER = 1;
-  private com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarnConfig_;
   /**
    *
    *
@@ -151,7 +198,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    */
   @java.lang.Override
   public boolean hasYarnConfig() {
-    return yarnConfig_ != null;
+    return configCase_ == 1;
   }
   /**
    *
@@ -168,9 +215,10 @@ public boolean hasYarnConfig() {
    */
   @java.lang.Override
   public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() {
-    return yarnConfig_ == null
-        ? com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()
-        : yarnConfig_;
+    if (configCase_ == 1) {
+      return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_;
+    }
+    return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
   }
   /**
    *
@@ -185,7 +233,10 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() {
    */
   @java.lang.Override
   public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() {
-    return getYarnConfig();
+    if (configCase_ == 1) {
+      return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_;
+    }
+    return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
   }
 
   public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2;
@@ -259,8 +310,8 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (yarnConfig_ != null) {
-      output.writeMessage(1, getYarnConfig());
+    if (configCase_ == 1) {
+      output.writeMessage(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_);
     }
     if (cooldownPeriod_ != null) {
       output.writeMessage(2, getCooldownPeriod());
@@ -274,8 +325,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (yarnConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getYarnConfig());
+    if (configCase_ == 1) {
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_);
     }
     if (cooldownPeriod_ != null) {
       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod());
@@ -296,14 +349,18 @@ public boolean equals(final java.lang.Object obj) {
     com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other =
         (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj;
 
-    if (hasYarnConfig() != other.hasYarnConfig()) return false;
-    if (hasYarnConfig()) {
-      if (!getYarnConfig().equals(other.getYarnConfig())) return false;
-    }
     if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false;
     if (hasCooldownPeriod()) {
       if (!getCooldownPeriod().equals(other.getCooldownPeriod())) return false;
     }
+    if (!getConfigCase().equals(other.getConfigCase())) return false;
+    switch (configCase_) {
+      case 1:
+        if (!getYarnConfig().equals(other.getYarnConfig())) return false;
+        break;
+      case 0:
+      default:
+    }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -315,14 +372,18 @@ public int hashCode() {
     }
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
-    if (hasYarnConfig()) {
-      hash = (37 * hash) + YARN_CONFIG_FIELD_NUMBER;
-      hash = (53 * hash) + getYarnConfig().hashCode();
-    }
     if (hasCooldownPeriod()) {
       hash = (37 * hash) + COOLDOWN_PERIOD_FIELD_NUMBER;
       hash = (53 * hash) + getCooldownPeriod().hashCode();
     }
+    switch (configCase_) {
+      case 1:
+        hash = (37 * hash) + YARN_CONFIG_FIELD_NUMBER;
+        hash = (53 * hash) + getYarnConfig().hashCode();
+        break;
+      case 0:
+      default:
+    }
     hash = (29 * hash) + unknownFields.hashCode();
     memoizedHashCode = hash;
     return hash;
@@ -469,18 +530,14 @@ private void maybeForceBuilderInitialization() {
     @java.lang.Override
     public Builder clear() {
       super.clear();
-      if (yarnConfigBuilder_ == null) {
-        yarnConfig_ = null;
-      } else {
-        yarnConfig_ = null;
-        yarnConfigBuilder_ = null;
-      }
       if (cooldownPeriodBuilder_ == null) {
         cooldownPeriod_ = null;
       } else {
         cooldownPeriod_ = null;
         cooldownPeriodBuilder_ = null;
       }
+      configCase_ = 0;
+      config_ = null;
       return this;
     }
 
@@ -508,16 +565,19 @@ public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm build() {
     public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() {
       com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result =
           new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this);
-      if (yarnConfigBuilder_ == null) {
-        result.yarnConfig_ = yarnConfig_;
-      } else {
-        result.yarnConfig_ = yarnConfigBuilder_.build();
+      if (configCase_ == 1) {
+        if (yarnConfigBuilder_ == null) {
+          result.config_ = config_;
+        } else {
+          result.config_ = yarnConfigBuilder_.build();
+        }
       }
       if (cooldownPeriodBuilder_ == null) {
         result.cooldownPeriod_ = cooldownPeriod_;
       } else {
         result.cooldownPeriod_ = cooldownPeriodBuilder_.build();
       }
+      result.configCase_ = configCase_;
       onBuilt();
       return result;
     }
@@ -568,12 +628,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other) {
       if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance())
         return this;
-      if (other.hasYarnConfig()) {
-        mergeYarnConfig(other.getYarnConfig());
-      }
       if (other.hasCooldownPeriod()) {
         mergeCooldownPeriod(other.getCooldownPeriod());
       }
+      switch (other.getConfigCase()) {
+        case YARN_CONFIG:
+          {
+            mergeYarnConfig(other.getYarnConfig());
+            break;
+          }
+        case CONFIG_NOT_SET:
+          {
+            break;
+          }
+      }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -604,7 +672,20 @@ public Builder mergeFrom(
       return this;
     }
 
-    private com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarnConfig_;
+    private int configCase_ = 0;
+    private java.lang.Object config_;
+
+    public ConfigCase getConfigCase() {
+      return ConfigCase.forNumber(configCase_);
+    }
+
+    public Builder clearConfig() {
+      configCase_ = 0;
+      config_ = null;
+      onChanged();
+      return this;
+    }
+
     private com.google.protobuf.SingleFieldBuilderV3<
             com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig,
             com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder,
@@ -623,8 +704,9 @@ public Builder mergeFrom(
      *
      * @return Whether the yarnConfig field is set.
      */
+    @java.lang.Override
     public boolean hasYarnConfig() {
-      return yarnConfigBuilder_ != null || yarnConfig_ != null;
+      return configCase_ == 1;
     }
     /**
      *
@@ -639,13 +721,18 @@ public boolean hasYarnConfig() {
      *
      * @return The yarnConfig.
      */
+    @java.lang.Override
     public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() {
       if (yarnConfigBuilder_ == null) {
-        return yarnConfig_ == null
-            ? com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()
-            : yarnConfig_;
+        if (configCase_ == 1) {
+          return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_;
+        }
+        return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
       } else {
-        return yarnConfigBuilder_.getMessage();
+        if (configCase_ == 1) {
+          return yarnConfigBuilder_.getMessage();
+        }
+        return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
       }
     }
     /**
@@ -664,12 +751,12 @@ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingCo
         if (value == null) {
           throw new NullPointerException();
         }
-        yarnConfig_ = value;
+        config_ = value;
         onChanged();
       } else {
         yarnConfigBuilder_.setMessage(value);
       }
-
+      configCase_ = 1;
       return this;
     }
     /**
@@ -686,12 +773,12 @@ public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingCo
     public Builder setYarnConfig(
         com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder builderForValue) {
       if (yarnConfigBuilder_ == null) {
-        yarnConfig_ = builderForValue.build();
+        config_ = builderForValue.build();
         onChanged();
       } else {
         yarnConfigBuilder_.setMessage(builderForValue.build());
       }
-
+      configCase_ = 1;
       return this;
     }
     /**
@@ -707,19 +794,26 @@ public Builder setYarnConfig(
      */
     public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) {
       if (yarnConfigBuilder_ == null) {
-        if (yarnConfig_ != null) {
-          yarnConfig_ =
-              com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder(yarnConfig_)
+        if (configCase_ == 1
+            && config_
+                != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) {
+          config_ =
+              com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder(
+                      (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_)
                   .mergeFrom(value)
                   .buildPartial();
         } else {
-          yarnConfig_ = value;
+          config_ = value;
         }
         onChanged();
       } else {
-        yarnConfigBuilder_.mergeFrom(value);
+        if (configCase_ == 1) {
+          yarnConfigBuilder_.mergeFrom(value);
+        } else {
+          yarnConfigBuilder_.setMessage(value);
+        }
       }
-
+      configCase_ = 1;
       return this;
     }
     /**
@@ -735,13 +829,18 @@ public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscaling
      */
     public Builder clearYarnConfig() {
       if (yarnConfigBuilder_ == null) {
-        yarnConfig_ = null;
-        onChanged();
+        if (configCase_ == 1) {
+          configCase_ = 0;
+          config_ = null;
+          onChanged();
+        }
       } else {
-        yarnConfig_ = null;
-        yarnConfigBuilder_ = null;
+        if (configCase_ == 1) {
+          configCase_ = 0;
+          config_ = null;
+        }
+        yarnConfigBuilder_.clear();
       }
-
       return this;
     }
     /**
@@ -756,8 +855,6 @@ public Builder clearYarnConfig() {
      * 
      */
     public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder() {
-
-      onChanged();
       return getYarnConfigFieldBuilder().getBuilder();
     }
     /**
@@ -771,14 +868,16 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnCo
      * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
      * 
      */
+    @java.lang.Override
     public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder
         getYarnConfigOrBuilder() {
-      if (yarnConfigBuilder_ != null) {
+      if ((configCase_ == 1) && (yarnConfigBuilder_ != null)) {
         return yarnConfigBuilder_.getMessageOrBuilder();
       } else {
-        return yarnConfig_ == null
-            ? com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()
-            : yarnConfig_;
+        if (configCase_ == 1) {
+          return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_;
+        }
+        return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
       }
     }
     /**
@@ -798,14 +897,22 @@ public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnCo
             com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>
         getYarnConfigFieldBuilder() {
       if (yarnConfigBuilder_ == null) {
+        if (!(configCase_ == 1)) {
+          config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance();
+        }
         yarnConfigBuilder_ =
             new com.google.protobuf.SingleFieldBuilderV3<
                 com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig,
                 com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder,
                 com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>(
-                getYarnConfig(), getParentForChildren(), isClean());
-        yarnConfig_ = null;
+                (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_,
+                getParentForChildren(),
+                isClean());
+        config_ = null;
       }
+      configCase_ = 1;
+      onChanged();
+      ;
       return yarnConfigBuilder_;
     }
 
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java
index f33fcf90..788c995b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java
@@ -107,4 +107,6 @@ public interface BasicAutoscalingAlgorithmOrBuilder
    * 
    */
   com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder();
+
+  public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.ConfigCase getConfigCase();
 }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java
index ec79cd0a..ec6246ee 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java
@@ -114,6 +114,8 @@ private BasicYarnAutoscalingConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -316,16 +318,16 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (scaleUpFactor_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) {
       output.writeDouble(1, scaleUpFactor_);
     }
-    if (scaleDownFactor_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) {
       output.writeDouble(2, scaleDownFactor_);
     }
-    if (scaleUpMinWorkerFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) {
       output.writeDouble(3, scaleUpMinWorkerFraction_);
     }
-    if (scaleDownMinWorkerFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) {
       output.writeDouble(4, scaleDownMinWorkerFraction_);
     }
     if (gracefulDecommissionTimeout_ != null) {
@@ -340,16 +342,16 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (scaleUpFactor_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_);
     }
-    if (scaleDownFactor_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_);
     }
-    if (scaleUpMinWorkerFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_);
     }
-    if (scaleDownMinWorkerFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) {
       size +=
           com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_);
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java
index 56914113..3ab9332c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java
@@ -298,6 +298,8 @@ private Batch(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -773,6 +775,8 @@ private StateHistory(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2482,7 +2486,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -2529,7 +2533,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2552,7 +2556,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -4109,8 +4113,9 @@ public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value
       } else {
         if (batchConfigCase_ == 4) {
           pysparkBatchBuilder_.mergeFrom(value);
+        } else {
+          pysparkBatchBuilder_.setMessage(value);
         }
-        pysparkBatchBuilder_.setMessage(value);
       }
       batchConfigCase_ = 4;
       return this;
@@ -4335,8 +4340,9 @@ public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) {
       } else {
         if (batchConfigCase_ == 5) {
           sparkBatchBuilder_.mergeFrom(value);
+        } else {
+          sparkBatchBuilder_.setMessage(value);
         }
-        sparkBatchBuilder_.setMessage(value);
       }
       batchConfigCase_ = 5;
       return this;
@@ -4562,8 +4568,9 @@ public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value)
       } else {
         if (batchConfigCase_ == 6) {
           sparkRBatchBuilder_.mergeFrom(value);
+        } else {
+          sparkRBatchBuilder_.setMessage(value);
         }
-        sparkRBatchBuilder_.setMessage(value);
       }
       batchConfigCase_ = 6;
       return this;
@@ -4789,8 +4796,9 @@ public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch val
       } else {
         if (batchConfigCase_ == 7) {
           sparkSqlBatchBuilder_.mergeFrom(value);
+        } else {
+          sparkSqlBatchBuilder_.setMessage(value);
         }
-        sparkSqlBatchBuilder_.setMessage(value);
       }
       batchConfigCase_ = 7;
       return this;
@@ -5656,7 +5664,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -5704,7 +5712,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -5727,7 +5735,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -5757,7 +5765,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -5784,11 +5792,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java
index cc26cad6..0457babc 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java
index 9308ef78..0666d565 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java
@@ -167,6 +167,8 @@ private BatchOperationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -661,7 +663,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -696,7 +698,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -713,7 +715,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -2105,7 +2107,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2141,7 +2143,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2158,7 +2160,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -2182,7 +2184,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -2203,11 +2205,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java
index f9f3a377..0a1d94d0 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java
@@ -237,7 +237,12 @@ public interface BatchOperationMetadataOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java
index c8c898ce..1c5948fe 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java
@@ -503,7 +503,12 @@ public interface BatchOrBuilder
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java
index 01e1ca2d..6be9129d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java
@@ -104,6 +104,8 @@ private CancelJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java
index 42993786..00afd40b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java
@@ -197,6 +197,8 @@ private Cluster(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -510,7 +512,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -557,7 +559,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -580,7 +582,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -2134,7 +2136,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2182,7 +2184,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2205,7 +2207,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -2235,7 +2237,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -2262,11 +2264,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
index 1d78a9f8..d2df6e2f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java
@@ -288,6 +288,8 @@ private ClusterConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java
index 34679ea7..f223cf44 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java
@@ -112,6 +112,8 @@ private ClusterMetrics(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -185,7 +187,7 @@ public int getHdfsMetricsCount() {
   @java.lang.Override
   public boolean containsHdfsMetrics(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHdfsMetrics().getMap().containsKey(key);
   }
@@ -220,7 +222,7 @@ public java.util.Map getHdfsMetricsMap() {
   @java.lang.Override
   public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHdfsMetrics().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -237,7 +239,7 @@ public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) {
   @java.lang.Override
   public long getHdfsMetricsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHdfsMetrics().getMap();
     if (!map.containsKey(key)) {
@@ -283,7 +285,7 @@ public int getYarnMetricsCount() {
   @java.lang.Override
   public boolean containsYarnMetrics(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetYarnMetrics().getMap().containsKey(key);
   }
@@ -318,7 +320,7 @@ public java.util.Map getYarnMetricsMap() {
   @java.lang.Override
   public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetYarnMetrics().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -335,7 +337,7 @@ public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) {
   @java.lang.Override
   public long getYarnMetricsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetYarnMetrics().getMap();
     if (!map.containsKey(key)) {
@@ -755,7 +757,7 @@ public int getHdfsMetricsCount() {
     @java.lang.Override
     public boolean containsHdfsMetrics(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHdfsMetrics().getMap().containsKey(key);
     }
@@ -790,7 +792,7 @@ public java.util.Map getHdfsMetricsMap() {
     @java.lang.Override
     public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHdfsMetrics().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -807,7 +809,7 @@ public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) {
     @java.lang.Override
     public long getHdfsMetricsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHdfsMetrics().getMap();
       if (!map.containsKey(key)) {
@@ -831,7 +833,7 @@ public Builder clearHdfsMetrics() {
      */
     public Builder removeHdfsMetrics(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHdfsMetrics().getMutableMap().remove(key);
       return this;
@@ -852,7 +854,7 @@ public java.util.Map getMutableHdfsMetrics() {
      */
     public Builder putHdfsMetrics(java.lang.String key, long value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
 
       internalGetMutableHdfsMetrics().getMutableMap().put(key, value);
@@ -912,7 +914,7 @@ public int getYarnMetricsCount() {
     @java.lang.Override
     public boolean containsYarnMetrics(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetYarnMetrics().getMap().containsKey(key);
     }
@@ -947,7 +949,7 @@ public java.util.Map getYarnMetricsMap() {
     @java.lang.Override
     public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetYarnMetrics().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -964,7 +966,7 @@ public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) {
     @java.lang.Override
     public long getYarnMetricsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetYarnMetrics().getMap();
       if (!map.containsKey(key)) {
@@ -988,7 +990,7 @@ public Builder clearYarnMetrics() {
      */
     public Builder removeYarnMetrics(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableYarnMetrics().getMutableMap().remove(key);
       return this;
@@ -1009,7 +1011,7 @@ public java.util.Map getMutableYarnMetrics() {
      */
     public Builder putYarnMetrics(java.lang.String key, long value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
 
       internalGetMutableYarnMetrics().getMutableMap().put(key, value);
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java
index 1fd830b1..4b2bad8f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java
@@ -101,6 +101,8 @@ private ClusterOperation(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java
index 4058f305..95a1cc88 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java
@@ -168,6 +168,8 @@ private ClusterOperationMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -577,7 +579,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -614,7 +616,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -632,7 +634,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -2293,7 +2295,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -2331,7 +2333,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2349,7 +2351,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -2374,7 +2376,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -2396,11 +2398,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java
index 68614859..c9865b12 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java
@@ -272,7 +272,12 @@ public interface ClusterOperationMetadataOrBuilder
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    * 
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java
index 51a4ad97..d59a46f6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java
@@ -119,6 +119,8 @@ private ClusterOperationStatus(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java
index 88fb3d88..542813e6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java
@@ -247,7 +247,12 @@ public interface ClusterOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java
index 5b8cd799..8e042676 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java
@@ -106,6 +106,8 @@ private ClusterSelector(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -236,7 +238,7 @@ public int getClusterLabelsCount() {
   @java.lang.Override
   public boolean containsClusterLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetClusterLabels().getMap().containsKey(key);
   }
@@ -276,7 +278,7 @@ public java.util.Map getClusterLabelsMap() {
   public java.lang.String getClusterLabelsOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetClusterLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -295,7 +297,7 @@ public java.lang.String getClusterLabelsOrDefault(
   @java.lang.Override
   public java.lang.String getClusterLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetClusterLabels().getMap();
     if (!map.containsKey(key)) {
@@ -827,7 +829,7 @@ public int getClusterLabelsCount() {
     @java.lang.Override
     public boolean containsClusterLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetClusterLabels().getMap().containsKey(key);
     }
@@ -867,7 +869,7 @@ public java.util.Map getClusterLabelsMap() {
     public java.lang.String getClusterLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetClusterLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -886,7 +888,7 @@ public java.lang.String getClusterLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getClusterLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetClusterLabels().getMap();
       if (!map.containsKey(key)) {
@@ -912,7 +914,7 @@ public Builder clearClusterLabels() {
      */
     public Builder removeClusterLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableClusterLabels().getMutableMap().remove(key);
       return this;
@@ -935,11 +937,12 @@ public java.util.Map getMutableClusterLabels
      */
     public Builder putClusterLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableClusterLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java
index 27b47f2d..41485dec 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java
@@ -104,7 +104,12 @@ public interface ClusterSelectorOrBuilder
    * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
-  java.lang.String getClusterLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getClusterLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java
index 5ba77c15..1758d07b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java
@@ -119,6 +119,8 @@ private ClusterStatus(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java
index 17f1cf5a..87a31595 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java
@@ -251,243 +251,242 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "int_config\030\023 \001(\0132(.google.cloud.dataproc"
           + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con"
           + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met"
-          + "astoreConfigB\003\340A\001\"\236\002\n\024VirtualClusterConf"
-          + "ig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp_"
-          + "bucket\030\002 \001(\tB\003\340A\001\022[\n\031kubernetes_cluster_"
-          + "config\030\006 \001(\01321.google.cloud.dataproc.v1."
-          + "KubernetesClusterConfigB\003\340A\002H\000\022Y\n\031auxili"
-          + "ary_services_config\030\007 \001(\01321.google.cloud"
-          + ".dataproc.v1.AuxiliaryServicesConfigB\003\340A"
-          + "\001B\027\n\025infrastructure_config\"\301\001\n\027Auxiliary"
-          + "ServicesConfig\022H\n\020metastore_config\030\001 \001(\013"
-          + "2).google.cloud.dataproc.v1.MetastoreCon"
-          + "figB\003\340A\001\022\\\n\033spark_history_server_config\030"
-          + "\002 \001(\01322.google.cloud.dataproc.v1.SparkHi"
-          + "storyServerConfigB\003\340A\001\"\272\001\n\016EndpointConfi"
-          + "g\022P\n\nhttp_ports\030\001 \003(\01327.google.cloud.dat"
-          + "aproc.v1.EndpointConfig.HttpPortsEntryB\003"
-          + "\340A\003\022$\n\027enable_http_port_access\030\002 \001(\010B\003\340A"
-          + "\001\0320\n\016HttpPortsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
-          + "e\030\002 \001(\t:\0028\001\",\n\021AutoscalingConfig\022\027\n\npoli"
-          + "cy_uri\030\001 \001(\tB\003\340A\001\"4\n\020EncryptionConfig\022 \n"
-          + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\"\233\007\n\020GceC"
-          + "lusterConfig\022\025\n\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n\013n"
-          + "etwork_uri\030\002 \001(\tB\003\340A\001\022\033\n\016subnetwork_uri\030"
-          + "\006 \001(\tB\003\340A\001\022\035\n\020internal_ip_only\030\007 \001(\010B\003\340A"
-          + "\001\022k\n\032private_ipv6_google_access\030\014 \001(\0162B."
-          + "google.cloud.dataproc.v1.GceClusterConfi"
-          + "g.PrivateIpv6GoogleAccessB\003\340A\001\022\034\n\017servic"
-          + "e_account\030\010 \001(\tB\003\340A\001\022#\n\026service_account_"
-          + "scopes\030\003 \003(\tB\003\340A\001\022\014\n\004tags\030\004 \003(\t\022J\n\010metad"
-          + "ata\030\005 \003(\01328.google.cloud.dataproc.v1.Gce"
-          + "ClusterConfig.MetadataEntry\022P\n\024reservati"
-          + "on_affinity\030\013 \001(\0132-.google.cloud.datapro"
-          + "c.v1.ReservationAffinityB\003\340A\001\022M\n\023node_gr"
-          + "oup_affinity\030\r \001(\0132+.google.cloud.datapr"
-          + "oc.v1.NodeGroupAffinityB\003\340A\001\022W\n\030shielded"
-          + "_instance_config\030\016 \001(\01320.google.cloud.da"
-          + "taproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n"
-          + "\034confidential_instance_config\030\017 \001(\01324.go"
-          + "ogle.cloud.dataproc.v1.ConfidentialInsta"
-          + "nceConfigB\003\340A\001\032/\n\rMetadataEntry\022\013\n\003key\030\001"
-          + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001\n\027PrivateIpv6G"
-          + "oogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_ACCES"
-          + "S_UNSPECIFIED\020\000\022\033\n\027INHERIT_FROM_SUBNETWO"
-          + "RK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDIRECTIONAL\020\003\"0\n"
-          + "\021NodeGroupAffinity\022\033\n\016node_group_uri\030\001 \001"
-          + "(\tB\003\340A\002\"}\n\026ShieldedInstanceConfig\022\037\n\022ena"
-          + "ble_secure_boot\030\001 \001(\010B\003\340A\001\022\030\n\013enable_vtp"
-          + "m\030\002 \001(\010B\003\340A\001\022(\n\033enable_integrity_monitor"
-          + "ing\030\003 \001(\010B\003\340A\001\"F\n\032ConfidentialInstanceCo"
-          + "nfig\022(\n\033enable_confidential_compute\030\001 \001("
-          + "\010B\003\340A\001\"\315\004\n\023InstanceGroupConfig\022\032\n\rnum_in"
-          + "stances\030\001 \001(\005B\003\340A\001\022\033\n\016instance_names\030\002 \003"
-          + "(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n\020machi"
-          + "ne_type_uri\030\004 \001(\tB\003\340A\001\022>\n\013disk_config\030\005 "
-          + "\001(\0132$.google.cloud.dataproc.v1.DiskConfi"
-          + "gB\003\340A\001\022\033\n\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n\016p"
-          + "reemptibility\030\n \001(\0162<.google.cloud.datap"
-          + "roc.v1.InstanceGroupConfig.Preemptibilit"
-          + "yB\003\340A\001\022O\n\024managed_group_config\030\007 \001(\0132,.g"
-          + "oogle.cloud.dataproc.v1.ManagedGroupConf"
-          + "igB\003\340A\003\022F\n\014accelerators\030\010 \003(\0132+.google.c"
-          + "loud.dataproc.v1.AcceleratorConfigB\003\340A\001\022"
-          + "\035\n\020min_cpu_platform\030\t \001(\tB\003\340A\001\"V\n\016Preemp"
-          + "tibility\022\036\n\032PREEMPTIBILITY_UNSPECIFIED\020\000"
-          + "\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013PREEMPTIBLE\020\002\"c"
-          + "\n\022ManagedGroupConfig\022#\n\026instance_templat"
-          + "e_name\030\001 \001(\tB\003\340A\003\022(\n\033instance_group_mana"
-          + "ger_name\030\002 \001(\tB\003\340A\003\"L\n\021AcceleratorConfig"
-          + "\022\034\n\024accelerator_type_uri\030\001 \001(\t\022\031\n\021accele"
-          + "rator_count\030\002 \001(\005\"\210\001\n\nDiskConfig\022\033\n\016boot"
-          + "_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021boot_disk_size_"
-          + "gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_local_ssds\030\002 \001(\005B\003\340"
-          + "A\001\022 \n\023local_ssd_interface\030\004 \001(\tB\003\340A\001\"s\n\030"
-          + "NodeInitializationAction\022\034\n\017executable_f"
-          + "ile\030\001 \001(\tB\003\340A\002\0229\n\021execution_timeout\030\002 \001("
-          + "\0132\031.google.protobuf.DurationB\003\340A\001\"\307\003\n\rCl"
-          + "usterStatus\022A\n\005state\030\001 \001(\0162-.google.clou"
-          + "d.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026"
-          + "\n\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_ti"
-          + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A"
-          + "\003\022G\n\010substate\030\004 \001(\01620.google.cloud.datap"
-          + "roc.v1.ClusterStatus.SubstateB\003\340A\003\"\230\001\n\005S"
-          + "tate\022\013\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNI"
-          + "NG\020\002\022\t\n\005ERROR\020\003\022\027\n\023ERROR_DUE_TO_UPDATE\020\t"
-          + "\022\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005\022\014\n\010STOPPING"
-          + "\020\006\022\013\n\007STOPPED\020\007\022\014\n\010STARTING\020\010\"<\n\010Substat"
-          + "e\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STA"
-          + "LE_STATUS\020\002\"\240\001\n\016SecurityConfig\022F\n\017kerber"
-          + "os_config\030\001 \001(\0132(.google.cloud.dataproc."
-          + "v1.KerberosConfigB\003\340A\001\022F\n\017identity_confi"
-          + "g\030\002 \001(\0132(.google.cloud.dataproc.v1.Ident"
-          + "ityConfigB\003\340A\001\"\220\004\n\016KerberosConfig\022\034\n\017ena"
-          + "ble_kerberos\030\001 \001(\010B\003\340A\001\022(\n\033root_principa"
-          + "l_password_uri\030\002 \001(\tB\003\340A\001\022\030\n\013kms_key_uri"
-          + "\030\003 \001(\tB\003\340A\001\022\031\n\014keystore_uri\030\004 \001(\tB\003\340A\001\022\033"
-          + "\n\016truststore_uri\030\005 \001(\tB\003\340A\001\022\"\n\025keystore_"
-          + "password_uri\030\006 \001(\tB\003\340A\001\022\035\n\020key_password_"
-          + "uri\030\007 \001(\tB\003\340A\001\022$\n\027truststore_password_ur"
-          + "i\030\010 \001(\tB\003\340A\001\022$\n\027cross_realm_trust_realm\030"
-          + "\t \001(\tB\003\340A\001\022\"\n\025cross_realm_trust_kdc\030\n \001("
-          + "\tB\003\340A\001\022+\n\036cross_realm_trust_admin_server"
-          + "\030\013 \001(\tB\003\340A\001\0222\n%cross_realm_trust_shared_"
-          + "password_uri\030\014 \001(\tB\003\340A\001\022\033\n\016kdc_db_key_ur"
-          + "i\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifetime_hours\030\016 \001(\005"
-          + "B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n\016IdentityCo"
-          + "nfig\022r\n\034user_service_account_mapping\030\001 \003"
-          + "(\0132G.google.cloud.dataproc.v1.IdentityCo"
-          + "nfig.UserServiceAccountMappingEntryB\003\340A\002"
-          + "\032@\n\036UserServiceAccountMappingEntry\022\013\n\003ke"
-          + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\371\001\n\016SoftwareC"
-          + "onfig\022\032\n\rimage_version\030\001 \001(\tB\003\340A\001\022Q\n\npro"
-          + "perties\030\002 \003(\01328.google.cloud.dataproc.v1"
-          + ".SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n\023"
-          + "optional_components\030\003 \003(\0162#.google.cloud"
-          + ".dataproc.v1.ComponentB\003\340A\001\0321\n\017Propertie"
-          + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203"
-          + "\002\n\017LifecycleConfig\0227\n\017idle_delete_ttl\030\001 "
-          + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\022;\n\020a"
-          + "uto_delete_time\030\002 \001(\0132\032.google.protobuf."
-          + "TimestampB\003\340A\001H\000\0229\n\017auto_delete_ttl\030\003 \001("
-          + "\0132\031.google.protobuf.DurationB\003\340A\001H\000\0228\n\017i"
-          + "dle_start_time\030\004 \001(\0132\032.google.protobuf.T"
-          + "imestampB\003\340A\003B\005\n\003ttl\"_\n\017MetastoreConfig\022"
-          + "L\n\032dataproc_metastore_service\030\001 \001(\tB(\340A\002"
-          + "\372A\"\n metastore.googleapis.com/Service\"\232\002"
-          + "\n\016ClusterMetrics\022O\n\014hdfs_metrics\030\001 \003(\01329"
-          + ".google.cloud.dataproc.v1.ClusterMetrics"
-          + ".HdfsMetricsEntry\022O\n\014yarn_metrics\030\002 \003(\0132"
-          + "9.google.cloud.dataproc.v1.ClusterMetric"
-          + "s.YarnMetricsEntry\0322\n\020HdfsMetricsEntry\022\013"
-          + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMe"
-          + "tricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\002"
-          + "8\001\"\356\001\n\024CreateClusterRequest\022\027\n\nproject_i"
-          + "d\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227\n\007clu"
-          + "ster\030\002 \001(\0132!.google.cloud.dataproc.v1.Cl"
-          + "usterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022V\n a"
-          + "ction_on_failed_primary_workers\030\005 \001(\0162\'."
-          + "google.cloud.dataproc.v1.FailureActionB\003"
-          + "\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\nproject_"
-          + "id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022\031\n\014cl"
-          + "uster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 \001(\0132!"
-          + ".google.cloud.dataproc.v1.ClusterB\003\340A\002\022E"
-          + "\n\035graceful_decommission_timeout\030\006 \001(\0132\031."
-          + "google.protobuf.DurationB\003\340A\001\0224\n\013update_"
-          + "mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003"
-          + "\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022StopClu"
-          + "sterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006"
-          + "region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB"
-          + "\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nreque"
-          + "st_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartClusterRequest"
-          + "\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001("
-          + "\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n\014clu"
-          + "ster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\t"
-          + "B\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n\nprojec"
+          + "astoreConfigB\003\340A\001\"\204\002\n\024VirtualClusterConf"
+          + "ig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n\031kuber"
+          + "netes_cluster_config\030\006 \001(\01321.google.clou"
+          + "d.dataproc.v1.KubernetesClusterConfigB\003\340"
+          + "A\002H\000\022Y\n\031auxiliary_services_config\030\007 \001(\0132"
+          + "1.google.cloud.dataproc.v1.AuxiliaryServ"
+          + "icesConfigB\003\340A\001B\027\n\025infrastructure_config"
+          + "\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020metastor"
+          + "e_config\030\001 \001(\0132).google.cloud.dataproc.v"
+          + "1.MetastoreConfigB\003\340A\001\022\\\n\033spark_history_"
+          + "server_config\030\002 \001(\01322.google.cloud.datap"
+          + "roc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n"
+          + "\016EndpointConfig\022P\n\nhttp_ports\030\001 \003(\01327.go"
+          + "ogle.cloud.dataproc.v1.EndpointConfig.Ht"
+          + "tpPortsEntryB\003\340A\003\022$\n\027enable_http_port_ac"
+          + "cess\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013\n\003key"
+          + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Autoscaling"
+          + "Config\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020Encry"
+          + "ptionConfig\022 \n\023gce_pd_kms_key_name\030\001 \001(\t"
+          + "B\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zone_uri\030\001"
+          + " \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n\016s"
+          + "ubnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020internal_ip_"
+          + "only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_google_a"
+          + "ccess\030\014 \001(\0162B.google.cloud.dataproc.v1.G"
+          + "ceClusterConfig.PrivateIpv6GoogleAccessB"
+          + "\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001\022#\n\026se"
+          + "rvice_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004tags\030"
+          + "\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.cloud.d"
+          + "ataproc.v1.GceClusterConfig.MetadataEntr"
+          + "y\022P\n\024reservation_affinity\030\013 \001(\0132-.google"
+          + ".cloud.dataproc.v1.ReservationAffinityB\003"
+          + "\340A\001\022M\n\023node_group_affinity\030\r \001(\0132+.googl"
+          + "e.cloud.dataproc.v1.NodeGroupAffinityB\003\340"
+          + "A\001\022W\n\030shielded_instance_config\030\016 \001(\01320.g"
+          + "oogle.cloud.dataproc.v1.ShieldedInstance"
+          + "ConfigB\003\340A\001\022_\n\034confidential_instance_con"
+          + "fig\030\017 \001(\01324.google.cloud.dataproc.v1.Con"
+          + "fidentialInstanceConfigB\003\340A\001\032/\n\rMetadata"
+          + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001"
+          + "\n\027PrivateIpv6GoogleAccess\022*\n&PRIVATE_IPV"
+          + "6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027INHERIT"
+          + "_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDI"
+          + "RECTIONAL\020\003\"0\n\021NodeGroupAffinity\022\033\n\016node"
+          + "_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedInstanc"
+          + "eConfig\022\037\n\022enable_secure_boot\030\001 \001(\010B\003\340A\001"
+          + "\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enable_int"
+          + "egrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032Confiden"
+          + "tialInstanceConfig\022(\n\033enable_confidentia"
+          + "l_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023InstanceGroupCo"
+          + "nfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016inst"
+          + "ance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\t"
+          + "B\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n\013"
+          + "disk_config\030\005 \001(\0132$.google.cloud.datapro"
+          + "c.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemptible\030\006"
+          + " \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<.goog"
+          + "le.cloud.dataproc.v1.InstanceGroupConfig"
+          + ".PreemptibilityB\003\340A\001\022O\n\024managed_group_co"
+          + "nfig\030\007 \001(\0132,.google.cloud.dataproc.v1.Ma"
+          + "nagedGroupConfigB\003\340A\003\022F\n\014accelerators\030\010 "
+          + "\003(\0132+.google.cloud.dataproc.v1.Accelerat"
+          + "orConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t \001(\tB"
+          + "\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIBILITY"
+          + "_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013P"
+          + "REEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026in"
+          + "stance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033insta"
+          + "nce_group_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021Acc"
+          + "eleratorConfig\022\034\n\024accelerator_type_uri\030\001"
+          + " \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210\001\n\nDisk"
+          + "Config\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021b"
+          + "oot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_local"
+          + "_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_interface\030"
+          + "\004 \001(\tB\003\340A\001\"s\n\030NodeInitializationAction\022\034"
+          + "\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021executio"
+          + "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati"
+          + "onB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005state\030\001 \001(\016"
+          + "2-.google.cloud.dataproc.v1.ClusterStatu"
+          + "s.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020"
+          + "state_start_time\030\003 \001(\0132\032.google.protobuf"
+          + ".TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620.goog"
+          + "le.cloud.dataproc.v1.ClusterStatus.Subst"
+          + "ateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010CREAT"
+          + "ING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023ERROR_D"
+          + "UE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010UPDATING"
+          + "\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010STARTIN"
+          + "G\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHE"
+          + "ALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016SecurityCo"
+          + "nfig\022F\n\017kerberos_config\030\001 \001(\0132(.google.c"
+          + "loud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n\017"
+          + "identity_config\030\002 \001(\0132(.google.cloud.dat"
+          + "aproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016Kerbero"
+          + "sConfig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n"
+          + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022"
+          + "\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keystore_ur"
+          + "i\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(\tB\003\340A"
+          + "\001\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340A\001\022\035\n"
+          + "\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027truststo"
+          + "re_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross_real"
+          + "m_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_realm_"
+          + "trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm_trus"
+          + "t_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_realm"
+          + "_trust_shared_password_uri\030\014 \001(\tB\003\340A\001\022\033\n"
+          + "\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifeti"
+          + "me_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\""
+          + "\306\001\n\016IdentityConfig\022r\n\034user_service_accou"
+          + "nt_mapping\030\001 \003(\0132G.google.cloud.dataproc"
+          + ".v1.IdentityConfig.UserServiceAccountMap"
+          + "pingEntryB\003\340A\002\032@\n\036UserServiceAccountMapp"
+          + "ingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
+          + "\"\371\001\n\016SoftwareConfig\022\032\n\rimage_version\030\001 \001"
+          + "(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.google.clo"
+          + "ud.dataproc.v1.SoftwareConfig.Properties"
+          + "EntryB\003\340A\001\022E\n\023optional_components\030\003 \003(\0162"
+          + "#.google.cloud.dataproc.v1.ComponentB\003\340A"
+          + "\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+          + "ue\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n\017idle"
+          + "_delete_ttl\030\001 \001(\0132\031.google.protobuf.Dura"
+          + "tionB\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\0132\032.go"
+          + "ogle.protobuf.TimestampB\003\340A\001H\000\0229\n\017auto_d"
+          + "elete_ttl\030\003 \001(\0132\031.google.protobuf.Durati"
+          + "onB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132\032.goo"
+          + "gle.protobuf.TimestampB\003\340A\003B\005\n\003ttl\"_\n\017Me"
+          + "tastoreConfig\022L\n\032dataproc_metastore_serv"
+          + "ice\030\001 \001(\tB(\340A\002\372A\"\n metastore.googleapis."
+          + "com/Service\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_m"
+          + "etrics\030\001 \003(\01329.google.cloud.dataproc.v1."
+          + "ClusterMetrics.HdfsMetricsEntry\022O\n\014yarn_"
+          + "metrics\030\002 \003(\01329.google.cloud.dataproc.v1"
+          + ".ClusterMetrics.YarnMetricsEntry\0322\n\020Hdfs"
+          + "MetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003"
+          + ":\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+          + "\005value\030\002 \001(\003:\0028\001\"\356\001\n\024CreateClusterReques"
+          + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001"
+          + "(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.google.cloud."
+          + "dataproc.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004"
+          + " \001(\tB\003\340A\001\022V\n action_on_failed_primary_wo"
+          + "rkers\030\005 \001(\0162\'.google.cloud.dataproc.v1.F"
+          + "ailureActionB\003\340A\001\"\256\002\n\024UpdateClusterReque"
+          + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 "
+          + "\001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007c"
+          + "luster\030\003 \001(\0132!.google.cloud.dataproc.v1."
+          + "ClusterB\003\340A\002\022E\n\035graceful_decommission_ti"
+          + "meout\030\006 \001(\0132\031.google.protobuf.DurationB\003"
+          + "\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.google.protob"
+          + "uf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340"
+          + "A\001\"\221\001\n\022StopClusterRequest\022\027\n\nproject_id\030"
+          + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clust"
+          + "er_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\t"
+          + "B\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023Start"
+          + "ClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022"
+          + "\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001"
+          + "(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nre"
+          + "quest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterReq"
+          + "uest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030"
+          + "\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n"
+          + "\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005"
+          + " \001(\tB\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\nprojec"
           + "t_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014"
-          + "cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030"
-          + "\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\\\n\021G"
-          + "etClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A"
-          + "\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002"
-          + " \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest\022\027\n\npro"
-          + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB\003\340A\002\022"
-          + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B"
-          + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024ListClu"
-          + "stersResponse\0228\n\010clusters\030\001 \003(\0132!.google"
-          + ".cloud.dataproc.v1.ClusterB\003\340A\003\022\034\n\017next_"
-          + "page_token\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseCluster"
+          + "cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClusters"
           + "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi"
-          + "on\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002"
-          + "\"1\n\026DiagnoseClusterResults\022\027\n\noutput_uri"
-          + "\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity\022Y\n\030c"
-          + "onsume_reservation_type\030\001 \001(\01622.google.c"
-          + "loud.dataproc.v1.ReservationAffinity.Typ"
-          + "eB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\t"
-          + "B\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016N"
-          + "O_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024"
-          + "SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterContro"
-          + "ller\022\200\002\n\rCreateCluster\022..google.cloud.da"
-          + "taproc.v1.CreateClusterRequest\032\035.google."
-          + "longrunning.Operation\"\237\001\202\323\344\223\002>\"3/v1/proj"
-          + "ects/{project_id}/regions/{region}/clust"
-          + "ers:\007cluster\332A\031project_id,region,cluster"
-          + "\312A<\n\007Cluster\0221google.cloud.dataproc.v1.C"
-          + "lusterOperationMetadata\022\250\002\n\rUpdateCluste"
-          + "r\022..google.cloud.dataproc.v1.UpdateClust"
-          + "erRequest\032\035.google.longrunning.Operation"
-          + "\"\307\001\202\323\344\223\002M2B/v1/projects/{project_id}/reg"
-          + "ions/{region}/clusters/{cluster_name}:\007c"
-          + "luster\332A2project_id,region,cluster_name,"
-          + "cluster,update_mask\312A<\n\007Cluster\0221google."
-          + "cloud.dataproc.v1.ClusterOperationMetada"
-          + "ta\022\356\001\n\013StopCluster\022,.google.cloud.datapr"
-          + "oc.v1.StopClusterRequest\032\035.google.longru"
-          + "nning.Operation\"\221\001\202\323\344\223\002L\"G/v1/projects/{"
-          + "project_id}/regions/{region}/clusters/{c"
-          + "luster_name}:stop:\001*\312A<\n\007Cluster\0221google"
-          + ".cloud.dataproc.v1.ClusterOperationMetad"
-          + "ata\022\361\001\n\014StartCluster\022-.google.cloud.data"
-          + "proc.v1.StartClusterRequest\032\035.google.lon"
-          + "grunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/project"
-          + "s/{project_id}/regions/{region}/clusters"
-          + "/{cluster_name}:start:\001*\312A<\n\007Cluster\0221go"
-          + "ogle.cloud.dataproc.v1.ClusterOperationM"
-          + "etadata\022\231\002\n\rDeleteCluster\022..google.cloud"
-          + ".dataproc.v1.DeleteClusterRequest\032\035.goog"
-          + "le.longrunning.Operation\"\270\001\202\323\344\223\002D*B/v1/p"
-          + "rojects/{project_id}/regions/{region}/cl"
-          + "usters/{cluster_name}\332A\036project_id,regio"
-          + "n,cluster_name\312AJ\n\025google.protobuf.Empty"
-          + "\0221google.cloud.dataproc.v1.ClusterOperat"
-          + "ionMetadata\022\311\001\n\nGetCluster\022+.google.clou"
-          + "d.dataproc.v1.GetClusterRequest\032!.google"
-          + ".cloud.dataproc.v1.Cluster\"k\202\323\344\223\002D\022B/v1/"
-          + "projects/{project_id}/regions/{region}/c"
-          + "lusters/{cluster_name}\332A\036project_id,regi"
-          + "on,cluster_name\022\331\001\n\014ListClusters\022-.googl"
-          + "e.cloud.dataproc.v1.ListClustersRequest\032"
-          + "..google.cloud.dataproc.v1.ListClustersR"
-          + "esponse\"j\202\323\344\223\0025\0223/v1/projects/{project_i"
-          + "d}/regions/{region}/clusters\332A\021project_i"
-          + "d,region\332A\030project_id,region,filter\022\252\002\n\017"
-          + "DiagnoseCluster\0220.google.cloud.dataproc."
-          + "v1.DiagnoseClusterRequest\032\035.google.longr"
-          + "unning.Operation\"\305\001\202\323\344\223\002P\"K/v1/projects/"
-          + "{project_id}/regions/{region}/clusters/{"
-          + "cluster_name}:diagnose:\001*\332A\036project_id,r"
-          + "egion,cluster_name\312AK\n\026DiagnoseClusterRe"
-          + "sults\0221google.cloud.dataproc.v1.ClusterO"
-          + "perationMetadata\032K\312A\027dataproc.googleapis"
-          + ".com\322A.https://www.googleapis.com/auth/c"
-          + "loud-platformB\263\002\n\034com.google.cloud.datap"
-          + "roc.v1B\rClustersProtoP\001Z@google.golang.o"
-          + "rg/genproto/googleapis/cloud/dataproc/v1"
-          + ";dataproc\352A^\n container.googleapis.com/C"
-          + "luster\022:projects/{project}/locations/{lo"
-          + "cation}/clusters/{cluster}\352A^\n metastore"
-          + ".googleapis.com/Service\022:projects/{proje"
-          + "ct}/locations/{location}/services/{servi"
-          + "ce}b\006proto3"
+          + "on\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpa"
+          + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003"
+          + "\340A\001\"n\n\024ListClustersResponse\0228\n\010clusters\030"
+          + "\001 \003(\0132!.google.cloud.dataproc.v1.Cluster"
+          + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026D"
+          + "iagnoseClusterRequest\022\027\n\nproject_id\030\001 \001("
+          + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n"
+          + "ame\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClusterResults"
+          + "\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023Reservatio"
+          + "nAffinity\022Y\n\030consume_reservation_type\030\001 "
+          + "\001(\01622.google.cloud.dataproc.v1.Reservati"
+          + "onAffinity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023"
+          + "\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSP"
+          + "ECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RES"
+          + "ERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n"
+          + "\021ClusterController\022\200\002\n\rCreateCluster\022..g"
+          + "oogle.cloud.dataproc.v1.CreateClusterReq"
+          + "uest\032\035.google.longrunning.Operation\"\237\001\202\323"
+          + "\344\223\002>\"3/v1/projects/{project_id}/regions/"
+          + "{region}/clusters:\007cluster\332A\031project_id,"
+          + "region,cluster\312A<\n\007Cluster\0221google.cloud"
+          + ".dataproc.v1.ClusterOperationMetadata\022\250\002"
+          + "\n\rUpdateCluster\022..google.cloud.dataproc."
+          + "v1.UpdateClusterRequest\032\035.google.longrun"
+          + "ning.Operation\"\307\001\202\323\344\223\002M2B/v1/projects/{p"
+          + "roject_id}/regions/{region}/clusters/{cl"
+          + "uster_name}:\007cluster\332A2project_id,region"
+          + ",cluster_name,cluster,update_mask\312A<\n\007Cl"
+          + "uster\0221google.cloud.dataproc.v1.ClusterO"
+          + "perationMetadata\022\356\001\n\013StopCluster\022,.googl"
+          + "e.cloud.dataproc.v1.StopClusterRequest\032\035"
+          + ".google.longrunning.Operation\"\221\001\202\323\344\223\002L\"G"
+          + "/v1/projects/{project_id}/regions/{regio"
+          + "n}/clusters/{cluster_name}:stop:\001*\312A<\n\007C"
+          + "luster\0221google.cloud.dataproc.v1.Cluster"
+          + "OperationMetadata\022\361\001\n\014StartCluster\022-.goo"
+          + "gle.cloud.dataproc.v1.StartClusterReques"
+          + "t\032\035.google.longrunning.Operation\"\222\001\202\323\344\223\002"
+          + "M\"H/v1/projects/{project_id}/regions/{re"
+          + "gion}/clusters/{cluster_name}:start:\001*\312A"
+          + "<\n\007Cluster\0221google.cloud.dataproc.v1.Clu"
+          + "sterOperationMetadata\022\231\002\n\rDeleteCluster\022"
+          + "..google.cloud.dataproc.v1.DeleteCluster"
+          + "Request\032\035.google.longrunning.Operation\"\270"
+          + "\001\202\323\344\223\002D*B/v1/projects/{project_id}/regio"
+          + "ns/{region}/clusters/{cluster_name}\332A\036pr"
+          + "oject_id,region,cluster_name\312AJ\n\025google."
+          + "protobuf.Empty\0221google.cloud.dataproc.v1"
+          + ".ClusterOperationMetadata\022\311\001\n\nGetCluster"
+          + "\022+.google.cloud.dataproc.v1.GetClusterRe"
+          + "quest\032!.google.cloud.dataproc.v1.Cluster"
+          + "\"k\202\323\344\223\002D\022B/v1/projects/{project_id}/regi"
+          + "ons/{region}/clusters/{cluster_name}\332A\036p"
+          + "roject_id,region,cluster_name\022\331\001\n\014ListCl"
+          + "usters\022-.google.cloud.dataproc.v1.ListCl"
+          + "ustersRequest\032..google.cloud.dataproc.v1"
+          + ".ListClustersResponse\"j\202\323\344\223\0025\0223/v1/proje"
+          + "cts/{project_id}/regions/{region}/cluste"
+          + "rs\332A\021project_id,region\332A\030project_id,regi"
+          + "on,filter\022\252\002\n\017DiagnoseCluster\0220.google.c"
+          + "loud.dataproc.v1.DiagnoseClusterRequest\032"
+          + "\035.google.longrunning.Operation\"\305\001\202\323\344\223\002P\""
+          + "K/v1/projects/{project_id}/regions/{regi"
+          + "on}/clusters/{cluster_name}:diagnose:\001*\332"
+          + "A\036project_id,region,cluster_name\312AK\n\026Dia"
+          + "gnoseClusterResults\0221google.cloud.datapr"
+          + "oc.v1.ClusterOperationMetadata\032K\312A\027datap"
+          + "roc.googleapis.com\322A.https://www.googlea"
+          + "pis.com/auth/cloud-platformB\263\002\n\034com.goog"
+          + "le.cloud.dataproc.v1B\rClustersProtoP\001Z@g"
+          + "oogle.golang.org/genproto/googleapis/clo"
+          + "ud/dataproc/v1;dataproc\352A^\n container.go"
+          + "ogleapis.com/Cluster\022:projects/{project}"
+          + "/locations/{location}/clusters/{cluster}"
+          + "\352A^\n metastore.googleapis.com/Service\022:p"
+          + "rojects/{project}/locations/{location}/s"
+          + "ervices/{service}b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -555,7 +554,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
             internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor,
             new java.lang.String[] {
               "StagingBucket",
-              "TempBucket",
               "KubernetesClusterConfig",
               "AuxiliaryServicesConfig",
               "InfrastructureConfig",
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java
index 7b030cfe..74792b0f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java
@@ -85,6 +85,8 @@ private ConfidentialInstanceConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java
index 77fc7589..82bf38fa 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java
@@ -105,6 +105,8 @@ private CreateAutoscalingPolicyRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java
index 29c5ec47..f2bd55e5 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java
@@ -119,6 +119,8 @@ private CreateBatchRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java
index 1297095d..012de032 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java
@@ -128,6 +128,8 @@ private CreateClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java
index 0ba83f6e..fe2dd04e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java
@@ -104,6 +104,8 @@ private CreateWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java
index 080c604e..4640ae31 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java
@@ -90,6 +90,8 @@ private DeleteAutoscalingPolicyRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java
index 7efd27a9..c35a2c93 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java
@@ -88,6 +88,8 @@ private DeleteBatchRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
index 0069a512..3445f6fa 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java
@@ -120,6 +120,8 @@ private DeleteClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java
index 99c4e88a..86d2febe 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java
@@ -104,6 +104,8 @@ private DeleteJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java
index 5e2b10b7..c6bc36e7 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java
@@ -94,6 +94,8 @@ private DeleteWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java
index 7ef1d4f7..ca36b01b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java
@@ -104,6 +104,8 @@ private DiagnoseClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java
index ba86b5e5..8b53152e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java
@@ -88,6 +88,8 @@ private DiagnoseClusterResults(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
index 756752ac..d3b30aa3 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java
@@ -106,6 +106,8 @@ private DiskConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java
index 08ea3971..93fc085f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java
@@ -88,6 +88,8 @@ private EncryptionConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java
index da50cb51..42f84224 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java
@@ -100,6 +100,8 @@ private EndpointConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -173,7 +175,7 @@ public int getHttpPortsCount() {
   @java.lang.Override
   public boolean containsHttpPorts(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHttpPorts().getMap().containsKey(key);
   }
@@ -213,7 +215,7 @@ public java.util.Map getHttpPortsMap() {
   public java.lang.String getHttpPortsOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHttpPorts().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -232,7 +234,7 @@ public java.lang.String getHttpPortsOrDefault(
   @java.lang.Override
   public java.lang.String getHttpPortsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHttpPorts().getMap();
     if (!map.containsKey(key)) {
@@ -660,7 +662,7 @@ public int getHttpPortsCount() {
     @java.lang.Override
     public boolean containsHttpPorts(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHttpPorts().getMap().containsKey(key);
     }
@@ -700,7 +702,7 @@ public java.util.Map getHttpPortsMap() {
     public java.lang.String getHttpPortsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHttpPorts().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -719,7 +721,7 @@ public java.lang.String getHttpPortsOrDefault(
     @java.lang.Override
     public java.lang.String getHttpPortsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHttpPorts().getMap();
       if (!map.containsKey(key)) {
@@ -745,7 +747,7 @@ public Builder clearHttpPorts() {
      */
     public Builder removeHttpPorts(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHttpPorts().getMutableMap().remove(key);
       return this;
@@ -768,11 +770,12 @@ public java.util.Map getMutableHttpPorts() {
      */
     public Builder putHttpPorts(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHttpPorts().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java
index 8e8f93fc..1facc5b8 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java
@@ -73,7 +73,12 @@ public interface EndpointConfigOrBuilder
    * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    * 
    */
-  java.lang.String getHttpPortsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHttpPortsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java
index 3c01d524..9a029911 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java
@@ -111,6 +111,8 @@ private EnvironmentConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java
index 3e17a568..32cf5c0d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java
@@ -122,6 +122,8 @@ private ExecutionConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java
index fb7e418e..8a5dafe4 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java
@@ -230,6 +230,8 @@ private GceClusterConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1000,7 +1002,7 @@ public int getMetadataCount() {
   @java.lang.Override
   public boolean containsMetadata(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetMetadata().getMap().containsKey(key);
   }
@@ -1040,7 +1042,7 @@ public java.util.Map getMetadataMap() {
   public java.lang.String getMetadataOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1059,7 +1061,7 @@ public java.lang.String getMetadataOrDefault(
   @java.lang.Override
   public java.lang.String getMetadataOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
@@ -3158,7 +3160,7 @@ public int getMetadataCount() {
     @java.lang.Override
     public boolean containsMetadata(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetMetadata().getMap().containsKey(key);
     }
@@ -3198,7 +3200,7 @@ public java.util.Map getMetadataMap() {
     public java.lang.String getMetadataOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -3217,7 +3219,7 @@ public java.lang.String getMetadataOrDefault(
     @java.lang.Override
     public java.lang.String getMetadataOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
@@ -3243,7 +3245,7 @@ public Builder clearMetadata() {
      */
     public Builder removeMetadata(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
@@ -3266,11 +3268,12 @@ public java.util.Map getMutableMetadata() {
      */
     public Builder putMetadata(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java
index 3b3b2fbd..407610fa 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java
@@ -433,7 +433,12 @@ public interface GceClusterConfigOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java
index 6da1a8f1..7f4be413 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java
@@ -88,6 +88,8 @@ private GetAutoscalingPolicyRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java
index 9e300434..52ab078c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java
@@ -88,6 +88,8 @@ private GetBatchRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java
index fa0ae6bb..8ecc2108 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java
@@ -104,6 +104,8 @@ private GetClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java
index 37f0748a..d5b0dd4e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java
@@ -104,6 +104,8 @@ private GetJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java
index fa305956..07062bf8 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java
@@ -93,6 +93,8 @@ private GetWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java
index 23b7bdf6..677d4c16 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java
@@ -102,6 +102,8 @@ private GkeClusterConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java
index 9bb277bd..3b13ae7e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java
@@ -130,6 +130,8 @@ private GkeNodePoolConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -434,6 +436,8 @@ private GkeNodeConfig(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2121,6 +2125,8 @@ private GkeNodePoolAcceleratorConfig(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2892,6 +2898,8 @@ private GkeNodePoolAutoscalingConfig(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java
index 5d501e88..1e35fc6b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java
@@ -131,6 +131,8 @@ private GkeNodePoolTarget(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java
index 6a5663db..c2ced3db 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java
@@ -174,6 +174,8 @@ private HadoopJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -739,7 +741,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -783,7 +785,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -804,7 +806,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -2538,7 +2540,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -2582,7 +2584,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2603,7 +2605,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2631,7 +2633,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -2656,11 +2658,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java
index 2ac0697f..8d14389a 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java
@@ -406,7 +406,12 @@ public interface HadoopJobOrBuilder
    * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java
index f93e4aca..5dab6b48 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java
@@ -153,6 +153,8 @@ private HiveJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -421,7 +423,7 @@ public int getScriptVariablesCount() {
   @java.lang.Override
   public boolean containsScriptVariables(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetScriptVariables().getMap().containsKey(key);
   }
@@ -461,7 +463,7 @@ public java.util.Map getScriptVariablesMap()
   public java.lang.String getScriptVariablesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -480,7 +482,7 @@ public java.lang.String getScriptVariablesOrDefault(
   @java.lang.Override
   public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     if (!map.containsKey(key)) {
@@ -530,7 +532,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -574,7 +576,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -595,7 +597,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1415,8 +1417,9 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) {
       } else {
         if (queriesCase_ == 2) {
           queryListBuilder_.mergeFrom(value);
+        } else {
+          queryListBuilder_.setMessage(value);
         }
-        queryListBuilder_.setMessage(value);
       }
       queriesCase_ = 2;
       return this;
@@ -1614,7 +1617,7 @@ public int getScriptVariablesCount() {
     @java.lang.Override
     public boolean containsScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetScriptVariables().getMap().containsKey(key);
     }
@@ -1656,7 +1659,7 @@ public java.util.Map getScriptVariablesMap()
     public java.lang.String getScriptVariablesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1676,7 +1679,7 @@ public java.lang.String getScriptVariablesOrDefault(
     @java.lang.Override
     public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       if (!map.containsKey(key)) {
@@ -1703,7 +1706,7 @@ public Builder clearScriptVariables() {
      */
     public Builder removeScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableScriptVariables().getMutableMap().remove(key);
       return this;
@@ -1727,11 +1730,12 @@ public java.util.Map getMutableScriptVariabl
      */
     public Builder putScriptVariables(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableScriptVariables().getMutableMap().put(key, value);
       return this;
     }
@@ -1796,7 +1800,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1840,7 +1844,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1861,7 +1865,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1889,7 +1893,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1914,11 +1918,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java
index 56fbdebf..3ec98208 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java
@@ -160,7 +160,12 @@ public interface HiveJobOrBuilder
    * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getScriptVariablesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -232,7 +237,12 @@ public interface HiveJobOrBuilder
    * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java
index ead588db..e809b540 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java
@@ -101,6 +101,8 @@ private IdentityConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -177,7 +179,7 @@ public int getUserServiceAccountMappingCount() {
   @java.lang.Override
   public boolean containsUserServiceAccountMapping(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetUserServiceAccountMapping().getMap().containsKey(key);
   }
@@ -217,7 +219,7 @@ public java.util.Map getUserServiceAccountMa
   public java.lang.String getUserServiceAccountMappingOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map =
         internalGetUserServiceAccountMapping().getMap();
@@ -237,7 +239,7 @@ public java.lang.String getUserServiceAccountMappingOrDefault(
   @java.lang.Override
   public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map =
         internalGetUserServiceAccountMapping().getMap();
@@ -642,7 +644,7 @@ public int getUserServiceAccountMappingCount() {
     @java.lang.Override
     public boolean containsUserServiceAccountMapping(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetUserServiceAccountMapping().getMap().containsKey(key);
     }
@@ -682,7 +684,7 @@ public java.util.Map getUserServiceAccountMa
     public java.lang.String getUserServiceAccountMappingOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetUserServiceAccountMapping().getMap();
@@ -702,7 +704,7 @@ public java.lang.String getUserServiceAccountMappingOrDefault(
     @java.lang.Override
     public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetUserServiceAccountMapping().getMap();
@@ -729,7 +731,7 @@ public Builder clearUserServiceAccountMapping() {
      */
     public Builder removeUserServiceAccountMapping(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableUserServiceAccountMapping().getMutableMap().remove(key);
       return this;
@@ -752,11 +754,12 @@ public java.util.Map getMutableUserServiceAc
      */
     public Builder putUserServiceAccountMapping(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableUserServiceAccountMapping().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java
index 8e42dfec..023e87a5 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java
@@ -73,8 +73,12 @@ public interface IdentityConfigOrBuilder
    * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED];
    * 
    */
+
+  /* nullable */
   java.lang.String getUserServiceAccountMappingOrDefault(
-      java.lang.String key, java.lang.String defaultValue);
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java
index e1ed8a7d..4195c712 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java
@@ -97,6 +97,8 @@ private InstanceGroupAutoscalingPolicyConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java
index 202f4c4e..64c77a10 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java
@@ -180,6 +180,8 @@ private InstanceGroupConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java
index 8cf503ad..0c641e2d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java
@@ -114,6 +114,8 @@ private InstantiateInlineWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java
index 10c1b251..9df925b6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java
@@ -118,6 +118,8 @@ private InstantiateWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -341,7 +343,7 @@ public int getParametersCount() {
   @java.lang.Override
   public boolean containsParameters(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetParameters().getMap().containsKey(key);
   }
@@ -381,7 +383,7 @@ public java.util.Map getParametersMap() {
   public java.lang.String getParametersOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetParameters().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -400,7 +402,7 @@ public java.lang.String getParametersOrDefault(
   @java.lang.Override
   public java.lang.String getParametersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetParameters().getMap();
     if (!map.containsKey(key)) {
@@ -1200,7 +1202,7 @@ public int getParametersCount() {
     @java.lang.Override
     public boolean containsParameters(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetParameters().getMap().containsKey(key);
     }
@@ -1240,7 +1242,7 @@ public java.util.Map getParametersMap() {
     public java.lang.String getParametersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetParameters().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1259,7 +1261,7 @@ public java.lang.String getParametersOrDefault(
     @java.lang.Override
     public java.lang.String getParametersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetParameters().getMap();
       if (!map.containsKey(key)) {
@@ -1285,7 +1287,7 @@ public Builder clearParameters() {
      */
     public Builder removeParameters(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableParameters().getMutableMap().remove(key);
       return this;
@@ -1308,11 +1310,12 @@ public java.util.Map getMutableParameters()
      */
     public Builder putParameters(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableParameters().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java
index cd7510b5..5ef0491f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java
@@ -170,7 +170,12 @@ public interface InstantiateWorkflowTemplateRequestOrBuilder
    * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getParametersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getParametersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java
index 44b4de43..a8db524b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java
@@ -340,6 +340,8 @@ private Job(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1390,7 +1392,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -1437,7 +1439,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1460,7 +1462,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -3034,8 +3036,9 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) {
       } else {
         if (typeJobCase_ == 3) {
           hadoopJobBuilder_.mergeFrom(value);
+        } else {
+          hadoopJobBuilder_.setMessage(value);
         }
-        hadoopJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 3;
       return this;
@@ -3260,8 +3263,9 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) {
       } else {
         if (typeJobCase_ == 4) {
           sparkJobBuilder_.mergeFrom(value);
+        } else {
+          sparkJobBuilder_.setMessage(value);
         }
-        sparkJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 4;
       return this;
@@ -3486,8 +3490,9 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) {
       } else {
         if (typeJobCase_ == 5) {
           pysparkJobBuilder_.mergeFrom(value);
+        } else {
+          pysparkJobBuilder_.setMessage(value);
         }
-        pysparkJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 5;
       return this;
@@ -3712,8 +3717,9 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) {
       } else {
         if (typeJobCase_ == 6) {
           hiveJobBuilder_.mergeFrom(value);
+        } else {
+          hiveJobBuilder_.setMessage(value);
         }
-        hiveJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 6;
       return this;
@@ -3931,8 +3937,9 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) {
       } else {
         if (typeJobCase_ == 7) {
           pigJobBuilder_.mergeFrom(value);
+        } else {
+          pigJobBuilder_.setMessage(value);
         }
-        pigJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 7;
       return this;
@@ -4151,8 +4158,9 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) {
       } else {
         if (typeJobCase_ == 21) {
           sparkRJobBuilder_.mergeFrom(value);
+        } else {
+          sparkRJobBuilder_.setMessage(value);
         }
-        sparkRJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 21;
       return this;
@@ -4378,8 +4386,9 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value)
       } else {
         if (typeJobCase_ == 12) {
           sparkSqlJobBuilder_.mergeFrom(value);
+        } else {
+          sparkSqlJobBuilder_.setMessage(value);
         }
-        sparkSqlJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 12;
       return this;
@@ -4604,8 +4613,9 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) {
       } else {
         if (typeJobCase_ == 23) {
           prestoJobBuilder_.mergeFrom(value);
+        } else {
+          prestoJobBuilder_.setMessage(value);
         }
-        prestoJobBuilder_.setMessage(value);
       }
       typeJobCase_ = 23;
       return this;
@@ -6032,7 +6042,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -6080,7 +6090,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -6103,7 +6113,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -6133,7 +6143,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -6160,11 +6170,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java
index 2c6d86a9..c2bd5a13 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java
@@ -127,6 +127,8 @@ private JobMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java
index f70e389f..4747c1e2 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java
@@ -744,7 +744,12 @@ public interface JobOrBuilder
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java
index 70878de8..8ba4bdd6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java
@@ -114,6 +114,8 @@ private JobPlacement(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -288,7 +290,7 @@ public int getClusterLabelsCount() {
   @java.lang.Override
   public boolean containsClusterLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetClusterLabels().getMap().containsKey(key);
   }
@@ -326,7 +328,7 @@ public java.util.Map getClusterLabelsMap() {
   public java.lang.String getClusterLabelsOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetClusterLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -344,7 +346,7 @@ public java.lang.String getClusterLabelsOrDefault(
   @java.lang.Override
   public java.lang.String getClusterLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetClusterLabels().getMap();
     if (!map.containsKey(key)) {
@@ -987,7 +989,7 @@ public int getClusterLabelsCount() {
     @java.lang.Override
     public boolean containsClusterLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetClusterLabels().getMap().containsKey(key);
     }
@@ -1025,7 +1027,7 @@ public java.util.Map getClusterLabelsMap() {
     public java.lang.String getClusterLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetClusterLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1043,7 +1045,7 @@ public java.lang.String getClusterLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getClusterLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetClusterLabels().getMap();
       if (!map.containsKey(key)) {
@@ -1068,7 +1070,7 @@ public Builder clearClusterLabels() {
      */
     public Builder removeClusterLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableClusterLabels().getMutableMap().remove(key);
       return this;
@@ -1090,11 +1092,12 @@ public java.util.Map getMutableClusterLabels
      */
     public Builder putClusterLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableClusterLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java
index d6e90b3e..fb61780d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java
@@ -121,7 +121,12 @@ public interface JobPlacementOrBuilder
    * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getClusterLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getClusterLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java
index 315aa424..b0848a3c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java
@@ -96,6 +96,8 @@ private JobReference(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java
index 9d61996c..8f552710 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java
@@ -89,6 +89,8 @@ private JobScheduling(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java
index 63b2e415..6d6fc357 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java
@@ -119,6 +119,8 @@ private JobStatus(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java
index 904932ab..35ff9ffd 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java
@@ -194,6 +194,8 @@ private KerberosConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java
index 73587a1b..e3d7e36c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java
@@ -121,6 +121,8 @@ private KubernetesClusterConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1005,8 +1007,9 @@ public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConf
       } else {
         if (configCase_ == 2) {
           gkeClusterConfigBuilder_.mergeFrom(value);
+        } else {
+          gkeClusterConfigBuilder_.setMessage(value);
         }
-        gkeClusterConfigBuilder_.setMessage(value);
       }
       configCase_ = 2;
       return this;
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java
index 9780b0ba..60ac1aa0 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java
@@ -112,6 +112,8 @@ private KubernetesSoftwareConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -190,7 +192,7 @@ public int getComponentVersionCount() {
   @java.lang.Override
   public boolean containsComponentVersion(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetComponentVersion().getMap().containsKey(key);
   }
@@ -232,7 +234,7 @@ public java.util.Map getComponentVersionMap(
   public java.lang.String getComponentVersionOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetComponentVersion().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -252,7 +254,7 @@ public java.lang.String getComponentVersionOrDefault(
   @java.lang.Override
   public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetComponentVersion().getMap();
     if (!map.containsKey(key)) {
@@ -304,7 +306,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -352,7 +354,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -375,7 +377,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -800,7 +802,7 @@ public int getComponentVersionCount() {
     @java.lang.Override
     public boolean containsComponentVersion(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetComponentVersion().getMap().containsKey(key);
     }
@@ -842,7 +844,7 @@ public java.util.Map getComponentVersionMap(
     public java.lang.String getComponentVersionOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetComponentVersion().getMap();
@@ -863,7 +865,7 @@ public java.lang.String getComponentVersionOrDefault(
     @java.lang.Override
     public java.lang.String getComponentVersionOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetComponentVersion().getMap();
@@ -891,7 +893,7 @@ public Builder clearComponentVersion() {
      */
     public Builder removeComponentVersion(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableComponentVersion().getMutableMap().remove(key);
       return this;
@@ -915,11 +917,12 @@ public java.util.Map getMutableComponentVers
      */
     public Builder putComponentVersion(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableComponentVersion().getMutableMap().put(key, value);
       return this;
     }
@@ -987,7 +990,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1035,7 +1038,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1058,7 +1061,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1088,7 +1091,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1115,11 +1118,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
index 05673c71..e6db7aaf 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java
@@ -77,8 +77,12 @@ public interface KubernetesSoftwareConfigOrBuilder
    *
    * map<string, string> component_version = 1;
    */
+
+  /* nullable */
   java.lang.String getComponentVersionOrDefault(
-      java.lang.String key, java.lang.String defaultValue);
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -159,7 +163,12 @@ java.lang.String getComponentVersionOrDefault(
    *
    * map<string, string> properties = 2;
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
index 92751d87..4ea8d850 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java
@@ -137,6 +137,8 @@ private LifecycleConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1261,8 +1263,9 @@ public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) {
       } else {
         if (ttlCase_ == 2) {
           autoDeleteTimeBuilder_.mergeFrom(value);
+        } else {
+          autoDeleteTimeBuilder_.setMessage(value);
         }
-        autoDeleteTimeBuilder_.setMessage(value);
       }
       ttlCase_ = 2;
       return this;
@@ -1502,8 +1505,9 @@ public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) {
       } else {
         if (ttlCase_ == 3) {
           autoDeleteTtlBuilder_.mergeFrom(value);
+        } else {
+          autoDeleteTtlBuilder_.setMessage(value);
         }
-        autoDeleteTtlBuilder_.setMessage(value);
       }
       ttlCase_ = 3;
       return this;
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java
index 46f1fec5..f8bbeff9 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java
@@ -102,6 +102,8 @@ private ListAutoscalingPoliciesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java
index 60d48fe3..8cc59446 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java
@@ -103,6 +103,8 @@ private ListAutoscalingPoliciesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java
index 09cd5aa3..c454294e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java
@@ -101,6 +101,8 @@ private ListBatchesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java
index 4106275b..e006f437 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java
@@ -101,6 +101,8 @@ private ListBatchesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java
index 5d9143b6..725a89b8 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java
@@ -117,6 +117,8 @@ private ListClustersRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java
index 4fcfb831..a3de71b6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java
@@ -101,6 +101,8 @@ private ListClustersResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java
index 965f8861..bf330f97 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java
@@ -133,6 +133,8 @@ private ListJobsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java
index 81d200aa..278b87b5 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java
@@ -100,6 +100,8 @@ private ListJobsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java
index abbdffc5..4c6bcd69 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java
@@ -101,6 +101,8 @@ private ListWorkflowTemplatesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java
index 7bad489a..231e3007 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java
@@ -102,6 +102,8 @@ private ListWorkflowTemplatesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
index 3539c904..fc7f3a62 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java
index c64e22d8..1b0141d9 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java
@@ -97,6 +97,8 @@ private LoggingConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -480,7 +482,7 @@ public int getDriverLogLevelsCount() {
   @java.lang.Override
   public boolean containsDriverLogLevels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetDriverLogLevels().getMap().containsKey(key);
   }
@@ -523,10 +525,13 @@ public boolean containsDriverLogLevels(java.lang.String key) {
    * 
    */
   @java.lang.Override
-  public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
-      java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) {
+  public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level
+      getDriverLogLevelsOrDefault(
+          java.lang.String key,
+          /* nullable */
+          com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetDriverLogLevels().getMap();
     return map.containsKey(key)
@@ -550,7 +555,7 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefa
   public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(
       java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetDriverLogLevels().getMap();
     if (!map.containsKey(key)) {
@@ -597,7 +602,7 @@ public java.util.Map getDriverLogLevelsValu
   @java.lang.Override
   public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetDriverLogLevels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -618,7 +623,7 @@ public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultVal
   @java.lang.Override
   public int getDriverLogLevelsValueOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetDriverLogLevels().getMap();
     if (!map.containsKey(key)) {
@@ -1016,7 +1021,7 @@ public int getDriverLogLevelsCount() {
     @java.lang.Override
     public boolean containsDriverLogLevels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetDriverLogLevels().getMap().containsKey(key);
     }
@@ -1059,10 +1064,13 @@ public boolean containsDriverLogLevels(java.lang.String key) {
      * 
      */
     @java.lang.Override
-    public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
-        java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) {
+    public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level
+        getDriverLogLevelsOrDefault(
+            java.lang.String key,
+            /* nullable */
+            com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetDriverLogLevels().getMap();
@@ -1087,7 +1095,7 @@ public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefa
     public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(
         java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetDriverLogLevels().getMap();
@@ -1135,7 +1143,7 @@ public java.util.Map getDriverLogLevelsValu
     @java.lang.Override
     public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetDriverLogLevels().getMap();
@@ -1157,7 +1165,7 @@ public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultVal
     @java.lang.Override
     public int getDriverLogLevelsValueOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map =
           internalGetDriverLogLevels().getMap();
@@ -1186,7 +1194,7 @@ public Builder clearDriverLogLevels() {
      */
     public Builder removeDriverLogLevels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableDriverLogLevels().getMutableMap().remove(key);
       return this;
@@ -1214,11 +1222,9 @@ public Builder removeDriverLogLevels(java.lang.String key) {
     public Builder putDriverLogLevels(
         java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
+
       internalGetMutableDriverLogLevels()
           .getMutableMap()
           .put(key, driverLogLevelsValueConverter.doBackward(value));
@@ -1263,8 +1269,9 @@ public java.util.Map getMutableDriverLogLev
      */
     public Builder putDriverLogLevelsValue(java.lang.String key, int value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
+
       internalGetMutableDriverLogLevels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java
index 6c70fe8d..334f6721 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java
@@ -83,8 +83,11 @@ public interface LoggingConfigOrBuilder
    * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2;
    * 
    */
+  /* nullable */
   com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault(
-      java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue);
+      java.lang.String key,
+      /* nullable */
+      com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java
index c4cc8ccf..a0ccdd60 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java
@@ -118,6 +118,8 @@ private ManagedCluster(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -306,7 +308,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -353,7 +355,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -376,7 +378,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -1145,7 +1147,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -1193,7 +1195,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1216,7 +1218,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -1246,7 +1248,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -1273,11 +1275,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
index 7800131f..056f9205 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java
@@ -163,7 +163,12 @@ public interface ManagedClusterOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
index 8bf61946..695afe43 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java
@@ -96,6 +96,8 @@ private ManagedGroupConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java
index 05dd108f..c57f28b8 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java
@@ -88,6 +88,8 @@ private MetastoreConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
index 39cadb8e..13cd15fe 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java
@@ -88,6 +88,8 @@ private NodeGroupAffinity(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
index 9c947e59..23334254 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java
@@ -104,6 +104,8 @@ private NodeInitializationAction(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java
index fb07a402..61e90de5 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java
@@ -257,6 +257,8 @@ private OrderedJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -917,7 +919,7 @@ public int getLabelsCount() {
   @java.lang.Override
   public boolean containsLabels(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetLabels().getMap().containsKey(key);
   }
@@ -964,7 +966,7 @@ public java.util.Map getLabelsMap() {
   @java.lang.Override
   public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -987,7 +989,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
   @java.lang.Override
   public java.lang.String getLabelsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
@@ -2055,8 +2057,9 @@ public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) {
       } else {
         if (jobTypeCase_ == 2) {
           hadoopJobBuilder_.mergeFrom(value);
+        } else {
+          hadoopJobBuilder_.setMessage(value);
         }
-        hadoopJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 2;
       return this;
@@ -2281,8 +2284,9 @@ public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) {
       } else {
         if (jobTypeCase_ == 3) {
           sparkJobBuilder_.mergeFrom(value);
+        } else {
+          sparkJobBuilder_.setMessage(value);
         }
-        sparkJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 3;
       return this;
@@ -2507,8 +2511,9 @@ public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) {
       } else {
         if (jobTypeCase_ == 4) {
           pysparkJobBuilder_.mergeFrom(value);
+        } else {
+          pysparkJobBuilder_.setMessage(value);
         }
-        pysparkJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 4;
       return this;
@@ -2733,8 +2738,9 @@ public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) {
       } else {
         if (jobTypeCase_ == 5) {
           hiveJobBuilder_.mergeFrom(value);
+        } else {
+          hiveJobBuilder_.setMessage(value);
         }
-        hiveJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 5;
       return this;
@@ -2952,8 +2958,9 @@ public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) {
       } else {
         if (jobTypeCase_ == 6) {
           pigJobBuilder_.mergeFrom(value);
+        } else {
+          pigJobBuilder_.setMessage(value);
         }
-        pigJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 6;
       return this;
@@ -3172,8 +3179,9 @@ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) {
       } else {
         if (jobTypeCase_ == 11) {
           sparkRJobBuilder_.mergeFrom(value);
+        } else {
+          sparkRJobBuilder_.setMessage(value);
         }
-        sparkRJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 11;
       return this;
@@ -3399,8 +3407,9 @@ public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value)
       } else {
         if (jobTypeCase_ == 7) {
           sparkSqlJobBuilder_.mergeFrom(value);
+        } else {
+          sparkSqlJobBuilder_.setMessage(value);
         }
-        sparkSqlJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 7;
       return this;
@@ -3625,8 +3634,9 @@ public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) {
       } else {
         if (jobTypeCase_ == 12) {
           prestoJobBuilder_.mergeFrom(value);
+        } else {
+          prestoJobBuilder_.setMessage(value);
         }
-        prestoJobBuilder_.setMessage(value);
       }
       jobTypeCase_ = 12;
       return this;
@@ -3773,7 +3783,7 @@ public int getLabelsCount() {
     @java.lang.Override
     public boolean containsLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetLabels().getMap().containsKey(key);
     }
@@ -3821,7 +3831,7 @@ public java.util.Map getLabelsMap() {
     public java.lang.String getLabelsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -3844,7 +3854,7 @@ public java.lang.String getLabelsOrDefault(
     @java.lang.Override
     public java.lang.String getLabelsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
@@ -3874,7 +3884,7 @@ public Builder clearLabels() {
      */
     public Builder removeLabels(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableLabels().getMutableMap().remove(key);
       return this;
@@ -3901,11 +3911,12 @@ public java.util.Map getMutableLabels() {
      */
     public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java
index 198e4fca..d810593c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java
@@ -452,7 +452,12 @@ public interface OrderedJobOrBuilder
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java
index 34f525c5..72fa4a90 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java
@@ -115,6 +115,8 @@ private ParameterValidation(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -786,8 +788,9 @@ public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) {
       } else {
         if (validationTypeCase_ == 1) {
           regexBuilder_.mergeFrom(value);
+        } else {
+          regexBuilder_.setMessage(value);
         }
-        regexBuilder_.setMessage(value);
       }
       validationTypeCase_ = 1;
       return this;
@@ -995,8 +998,9 @@ public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) {
       } else {
         if (validationTypeCase_ == 2) {
           valuesBuilder_.mergeFrom(value);
+        } else {
+          valuesBuilder_.setMessage(value);
         }
-        valuesBuilder_.setMessage(value);
       }
       validationTypeCase_ = 2;
       return this;
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java
index 0b2be90d..67051b0f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java
@@ -105,6 +105,8 @@ private PeripheralsConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java
index 6eed2768..c8d2a6b1 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java
@@ -169,6 +169,8 @@ private PigJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -437,7 +439,7 @@ public int getScriptVariablesCount() {
   @java.lang.Override
   public boolean containsScriptVariables(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetScriptVariables().getMap().containsKey(key);
   }
@@ -477,7 +479,7 @@ public java.util.Map getScriptVariablesMap()
   public java.lang.String getScriptVariablesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -496,7 +498,7 @@ public java.lang.String getScriptVariablesOrDefault(
   @java.lang.Override
   public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     if (!map.containsKey(key)) {
@@ -546,7 +548,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -590,7 +592,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -611,7 +613,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1509,8 +1511,9 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) {
       } else {
         if (queriesCase_ == 2) {
           queryListBuilder_.mergeFrom(value);
+        } else {
+          queryListBuilder_.setMessage(value);
         }
-        queryListBuilder_.setMessage(value);
       }
       queriesCase_ = 2;
       return this;
@@ -1708,7 +1711,7 @@ public int getScriptVariablesCount() {
     @java.lang.Override
     public boolean containsScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetScriptVariables().getMap().containsKey(key);
     }
@@ -1750,7 +1753,7 @@ public java.util.Map getScriptVariablesMap()
     public java.lang.String getScriptVariablesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1770,7 +1773,7 @@ public java.lang.String getScriptVariablesOrDefault(
     @java.lang.Override
     public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       if (!map.containsKey(key)) {
@@ -1797,7 +1800,7 @@ public Builder clearScriptVariables() {
      */
     public Builder removeScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableScriptVariables().getMutableMap().remove(key);
       return this;
@@ -1821,11 +1824,12 @@ public java.util.Map getMutableScriptVariabl
      */
     public Builder putScriptVariables(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableScriptVariables().getMutableMap().put(key, value);
       return this;
     }
@@ -1890,7 +1894,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1934,7 +1938,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1955,7 +1959,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1983,7 +1987,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -2008,11 +2012,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java
index 63d44fe8..6c621bef 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java
@@ -160,7 +160,12 @@ public interface PigJobOrBuilder
    * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getScriptVariablesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -232,7 +237,12 @@ public interface PigJobOrBuilder
    * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java
index 8d244b26..9232f3de 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java
@@ -163,6 +163,8 @@ private PrestoJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -540,7 +542,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -582,7 +584,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -602,7 +604,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1431,8 +1433,9 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) {
       } else {
         if (queriesCase_ == 2) {
           queryListBuilder_.mergeFrom(value);
+        } else {
+          queryListBuilder_.setMessage(value);
         }
-        queryListBuilder_.setMessage(value);
       }
       queriesCase_ = 2;
       return this;
@@ -1908,7 +1911,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1950,7 +1953,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1970,7 +1973,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1997,7 +2000,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -2021,11 +2024,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java
index acd54f71..c1ad6cda 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java
@@ -242,7 +242,12 @@ public interface PrestoJobOrBuilder
    * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java
index 01199b11..a6d9a001 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java
@@ -147,6 +147,8 @@ private PySparkBatch(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java
index 1afcb043..b33f558f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java
@@ -178,6 +178,8 @@ private PySparkJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -652,7 +654,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -696,7 +698,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -717,7 +719,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -2393,7 +2395,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -2437,7 +2439,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2458,7 +2460,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2486,7 +2488,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -2511,11 +2513,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java
index 89648ac7..4542b0e7 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java
@@ -391,7 +391,12 @@ public interface PySparkJobOrBuilder
    * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java
index 1f47fc8a..c1a76947 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java
@@ -92,6 +92,8 @@ private QueryList(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java
index c7d2c233..a57315eb 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java
@@ -92,6 +92,8 @@ private RegexValidation(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
index f73d1f21..7558381f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java
index 24344364..cfdc128d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java
@@ -108,6 +108,8 @@ private ReservationAffinity(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java
index 4cf2f48a..9e33684d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java
@@ -112,6 +112,8 @@ private RuntimeConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -285,7 +287,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -325,7 +327,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -344,7 +346,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -988,7 +990,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1028,7 +1030,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1047,7 +1049,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1073,7 +1075,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1096,11 +1098,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java
index 2b60b9b3..f7a1a09d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java
@@ -125,7 +125,12 @@ public interface RuntimeConfigOrBuilder
    * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java
index d8bcda15..3c8d9edd 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java
@@ -112,6 +112,8 @@ private RuntimeInfo(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -185,7 +187,7 @@ public int getEndpointsCount() {
   @java.lang.Override
   public boolean containsEndpoints(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetEndpoints().getMap().containsKey(key);
   }
@@ -225,7 +227,7 @@ public java.util.Map getEndpointsMap() {
   public java.lang.String getEndpointsOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetEndpoints().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -244,7 +246,7 @@ public java.lang.String getEndpointsOrDefault(
   @java.lang.Override
   public java.lang.String getEndpointsOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetEndpoints().getMap();
     if (!map.containsKey(key)) {
@@ -767,7 +769,7 @@ public int getEndpointsCount() {
     @java.lang.Override
     public boolean containsEndpoints(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetEndpoints().getMap().containsKey(key);
     }
@@ -807,7 +809,7 @@ public java.util.Map getEndpointsMap() {
     public java.lang.String getEndpointsOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetEndpoints().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -826,7 +828,7 @@ public java.lang.String getEndpointsOrDefault(
     @java.lang.Override
     public java.lang.String getEndpointsOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetEndpoints().getMap();
       if (!map.containsKey(key)) {
@@ -852,7 +854,7 @@ public Builder clearEndpoints() {
      */
     public Builder removeEndpoints(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableEndpoints().getMutableMap().remove(key);
       return this;
@@ -875,11 +877,12 @@ public java.util.Map getMutableEndpoints() {
      */
     public Builder putEndpoints(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableEndpoints().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java
index 0c52ec1c..9d8377cb 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java
@@ -73,7 +73,12 @@ public interface RuntimeInfoOrBuilder
    * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    * 
    */
-  java.lang.String getEndpointsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getEndpointsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
index 1cf38ac7..a262b783 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java
@@ -111,6 +111,8 @@ private SecurityConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java
index 01d8b14f..223e9fe4 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java
@@ -95,6 +95,8 @@ private ShieldedInstanceConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java
index dcec205e..0bc4e63e 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java
@@ -130,6 +130,8 @@ private SoftwareConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -280,7 +282,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -346,7 +348,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -378,7 +380,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1087,7 +1089,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1153,7 +1155,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1185,7 +1187,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1224,7 +1226,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1260,11 +1262,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java
index 427f8991..f9f2c6d6 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java
@@ -162,7 +162,12 @@ public interface SoftwareConfigOrBuilder
    * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java
index 0f00a9d6..ca8d9c43 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java
@@ -140,6 +140,8 @@ private SparkBatch(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java
index 309d3884..5b3c0fbf 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java
@@ -88,6 +88,8 @@ private SparkHistoryServerConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java
index eec98138..786f9e66 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java
@@ -171,6 +171,8 @@ private SparkJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -716,7 +718,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -760,7 +762,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -781,7 +783,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -2469,7 +2471,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -2513,7 +2515,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2534,7 +2536,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2562,7 +2564,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -2587,11 +2589,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java
index 4505f598..0017ad02 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java
@@ -386,7 +386,12 @@ public interface SparkJobOrBuilder
    * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java
index f694d617..560e8fec 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java
@@ -124,6 +124,8 @@ private SparkRBatch(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java
index 069616e6..3104de02 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java
@@ -155,6 +155,8 @@ private SparkRJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -493,7 +495,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -537,7 +539,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -558,7 +560,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1813,7 +1815,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1857,7 +1859,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1878,7 +1880,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1906,7 +1908,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1931,11 +1933,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java
index 583317e7..63185648 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java
@@ -281,7 +281,12 @@ public interface SparkRJobOrBuilder
    * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java
index 170cbce5..e872004b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java
@@ -118,6 +118,8 @@ private SparkSqlBatch(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -245,7 +247,7 @@ public int getQueryVariablesCount() {
   @java.lang.Override
   public boolean containsQueryVariables(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetQueryVariables().getMap().containsKey(key);
   }
@@ -285,7 +287,7 @@ public java.util.Map getQueryVariablesMap()
   public java.lang.String getQueryVariablesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetQueryVariables().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -304,7 +306,7 @@ public java.lang.String getQueryVariablesOrDefault(
   @java.lang.Override
   public java.lang.String getQueryVariablesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetQueryVariables().getMap();
     if (!map.containsKey(key)) {
@@ -917,7 +919,7 @@ public int getQueryVariablesCount() {
     @java.lang.Override
     public boolean containsQueryVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetQueryVariables().getMap().containsKey(key);
     }
@@ -959,7 +961,7 @@ public java.util.Map getQueryVariablesMap()
     public java.lang.String getQueryVariablesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetQueryVariables().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -979,7 +981,7 @@ public java.lang.String getQueryVariablesOrDefault(
     @java.lang.Override
     public java.lang.String getQueryVariablesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetQueryVariables().getMap();
       if (!map.containsKey(key)) {
@@ -1006,7 +1008,7 @@ public Builder clearQueryVariables() {
      */
     public Builder removeQueryVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableQueryVariables().getMutableMap().remove(key);
       return this;
@@ -1030,11 +1032,12 @@ public java.util.Map getMutableQueryVariable
      */
     public Builder putQueryVariables(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableQueryVariables().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java
index ed8a233c..7d6a5214 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java
@@ -98,7 +98,12 @@ public interface SparkSqlBatchOrBuilder
    * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getQueryVariablesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getQueryVariablesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java
index 1a337c17..5fb415ab 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java
@@ -164,6 +164,8 @@ private SparkSqlJob(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -412,7 +414,7 @@ public int getScriptVariablesCount() {
   @java.lang.Override
   public boolean containsScriptVariables(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetScriptVariables().getMap().containsKey(key);
   }
@@ -452,7 +454,7 @@ public java.util.Map getScriptVariablesMap()
   public java.lang.String getScriptVariablesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -471,7 +473,7 @@ public java.lang.String getScriptVariablesOrDefault(
   @java.lang.Override
   public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetScriptVariables().getMap();
     if (!map.containsKey(key)) {
@@ -520,7 +522,7 @@ public int getPropertiesCount() {
   @java.lang.Override
   public boolean containsProperties(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetProperties().getMap().containsKey(key);
   }
@@ -562,7 +564,7 @@ public java.util.Map getPropertiesMap() {
   public java.lang.String getPropertiesOrDefault(
       java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -582,7 +584,7 @@ public java.lang.String getPropertiesOrDefault(
   @java.lang.Override
   public java.lang.String getPropertiesOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1463,8 +1465,9 @@ public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) {
       } else {
         if (queriesCase_ == 2) {
           queryListBuilder_.mergeFrom(value);
+        } else {
+          queryListBuilder_.setMessage(value);
         }
-        queryListBuilder_.setMessage(value);
       }
       queriesCase_ = 2;
       return this;
@@ -1604,7 +1607,7 @@ public int getScriptVariablesCount() {
     @java.lang.Override
     public boolean containsScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetScriptVariables().getMap().containsKey(key);
     }
@@ -1646,7 +1649,7 @@ public java.util.Map getScriptVariablesMap()
     public java.lang.String getScriptVariablesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1666,7 +1669,7 @@ public java.lang.String getScriptVariablesOrDefault(
     @java.lang.Override
     public java.lang.String getScriptVariablesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetScriptVariables().getMap();
       if (!map.containsKey(key)) {
@@ -1693,7 +1696,7 @@ public Builder clearScriptVariables() {
      */
     public Builder removeScriptVariables(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableScriptVariables().getMutableMap().remove(key);
       return this;
@@ -1717,11 +1720,12 @@ public java.util.Map getMutableScriptVariabl
      */
     public Builder putScriptVariables(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableScriptVariables().getMutableMap().put(key, value);
       return this;
     }
@@ -1785,7 +1789,7 @@ public int getPropertiesCount() {
     @java.lang.Override
     public boolean containsProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetProperties().getMap().containsKey(key);
     }
@@ -1827,7 +1831,7 @@ public java.util.Map getPropertiesMap() {
     public java.lang.String getPropertiesOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1847,7 +1851,7 @@ public java.lang.String getPropertiesOrDefault(
     @java.lang.Override
     public java.lang.String getPropertiesOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetProperties().getMap();
       if (!map.containsKey(key)) {
@@ -1874,7 +1878,7 @@ public Builder clearProperties() {
      */
     public Builder removeProperties(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableProperties().getMutableMap().remove(key);
       return this;
@@ -1898,11 +1902,12 @@ public java.util.Map getMutableProperties()
      */
     public Builder putProperties(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableProperties().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java
index 3ba69d14..5c89007c 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java
@@ -145,7 +145,12 @@ public interface SparkSqlJobOrBuilder
    * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getScriptVariablesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getScriptVariablesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
@@ -213,7 +218,12 @@ public interface SparkSqlJobOrBuilder
    * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    * 
    */
-  java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getPropertiesOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java
index a3f346c9..cbb9dfa8 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java
@@ -120,6 +120,8 @@ private StartClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java
index 8edd0a3a..2d22eda2 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java
@@ -120,6 +120,8 @@ private StopClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java
index c46e7489..d74e447d 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java
@@ -119,6 +119,8 @@ private SubmitJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
index 274a900d..eb043098 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java
@@ -132,6 +132,8 @@ private TemplateParameter(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java
index 1e68b8c1..7d655b32 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java
@@ -96,6 +96,8 @@ private UpdateAutoscalingPolicyRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
index d8ab4c54..8508729b 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java
@@ -158,6 +158,8 @@ private UpdateClusterRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java
index 44377c07..eb84f58a 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java
@@ -134,6 +134,8 @@ private UpdateJobRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java
index 65daaf53..d3a51177 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java
@@ -95,6 +95,8 @@ private UpdateWorkflowTemplateRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java
index 18e6f135..beefc815 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java
@@ -92,6 +92,8 @@ private ValueValidation(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java
index 808a0cc1..2033228f 100644
--- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java
+++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java
@@ -41,7 +41,6 @@ private VirtualClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder b
 
   private VirtualClusterConfig() {
     stagingBucket_ = "";
-    tempBucket_ = "";
   }
 
   @java.lang.Override
@@ -80,13 +79,6 @@ private VirtualClusterConfig(
               stagingBucket_ = s;
               break;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              tempBucket_ = s;
-              break;
-            }
           case 50:
             {
               com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder subBuilder = null;
@@ -135,6 +127,8 @@ private VirtualClusterConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -271,79 +265,6 @@ public com.google.protobuf.ByteString getStagingBucketBytes() {
     }
   }
 
-  public static final int TEMP_BUCKET_FIELD_NUMBER = 2;
-  private volatile java.lang.Object tempBucket_;
-  /**
-   *
-   *
-   * 
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - @java.lang.Override - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER = 6; /** * @@ -474,9 +395,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stagingBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stagingBucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); - } if (infrastructureConfigCase_ == 6) { output.writeMessage( 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); @@ -496,9 +414,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stagingBucket_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stagingBucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); - } if (infrastructureConfigCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -525,7 +440,6 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; if (!getStagingBucket().equals(other.getStagingBucket())) return false; - if (!getTempBucket().equals(other.getTempBucket())) return false; if (hasAuxiliaryServicesConfig() != other.hasAuxiliaryServicesConfig()) return false; if (hasAuxiliaryServicesConfig()) { if (!getAuxiliaryServicesConfig().equals(other.getAuxiliaryServicesConfig())) return false; @@ -551,8 +465,6 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STAGING_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getStagingBucket().hashCode(); - hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getTempBucket().hashCode(); if (hasAuxiliaryServicesConfig()) { hash = (37 * hash) + AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAuxiliaryServicesConfig().hashCode(); @@ -714,8 +626,6 @@ public Builder clear() { super.clear(); stagingBucket_ = ""; - tempBucket_ = ""; - if (auxiliaryServicesConfigBuilder_ == null) { auxiliaryServicesConfig_ = null; } else { @@ -752,7 +662,6 @@ public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() { com.google.cloud.dataproc.v1.VirtualClusterConfig result = new com.google.cloud.dataproc.v1.VirtualClusterConfig(this); result.stagingBucket_ = stagingBucket_; - result.tempBucket_ = tempBucket_; if (infrastructureConfigCase_ == 6) { if (kubernetesClusterConfigBuilder_ == null) { result.infrastructureConfig_ = infrastructureConfig_; @@ -820,10 +729,6 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other stagingBucket_ = other.stagingBucket_; onChanged(); } - if (!other.getTempBucket().isEmpty()) { - tempBucket_ = other.tempBucket_; - onChanged(); - } if (other.hasAuxiliaryServicesConfig()) { mergeAuxiliaryServicesConfig(other.getAuxiliaryServicesConfig()); } @@ -1038,172 +943,6 @@ public Builder setStagingBucketBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object tempBucket_ = ""; - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tempBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTempBucket() { - - tempBucket_ = getDefaultInstance().getTempBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tempBucket_ = value; - onChanged(); - return this; - } - private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataproc.v1.KubernetesClusterConfig, com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, @@ -1329,8 +1068,9 @@ public Builder mergeKubernetesClusterConfig( } else { if (infrastructureConfigCase_ == 6) { kubernetesClusterConfigBuilder_.mergeFrom(value); + } else { + kubernetesClusterConfigBuilder_.setMessage(value); } - kubernetesClusterConfigBuilder_.setMessage(value); } infrastructureConfigCase_ = 6; return this; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java index cd4563e8..83736cd2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java @@ -68,55 +68,6 @@ public interface VirtualClusterConfigOrBuilder */ com.google.protobuf.ByteString getStagingBucketBytes(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - java.lang.String getTempBucket(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - com.google.protobuf.ByteString getTempBucketBytes(); - /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java index 48b82a3d..0407748d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java @@ -93,6 +93,8 @@ private WorkflowGraph( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java index 81adc0ed..d0ab53e1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java @@ -256,6 +256,8 @@ private WorkflowMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -841,7 +843,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -877,7 +879,7 @@ public java.util.Map getParametersMap() { public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -894,7 +896,7 @@ public java.lang.String getParametersOrDefault( @java.lang.Override public java.lang.String getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { @@ -2916,7 +2918,7 @@ public int getParametersCount() { @java.lang.Override public boolean containsParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetParameters().getMap().containsKey(key); } @@ -2952,7 +2954,7 @@ public java.util.Map getParametersMap() { public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2969,7 +2971,7 @@ public java.lang.String getParametersOrDefault( @java.lang.Override public java.lang.String getParametersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); if (!map.containsKey(key)) { @@ -2993,7 +2995,7 @@ public Builder clearParameters() { */ public Builder removeParameters(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableParameters().getMutableMap().remove(key); return this; @@ -3014,11 +3016,12 @@ public java.util.Map getMutableParameters() */ public Builder putParameters(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableParameters().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java index c6c1db05..f015e14e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java @@ -295,7 +295,12 @@ public interface WorkflowMetadataOrBuilder * * map<string, string> parameters = 8; */ - java.lang.String getParametersOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getParametersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java index 445865f9..a93bdbdf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java @@ -124,6 +124,8 @@ private WorkflowNode( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index 280f0bb4..6e738fc9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java @@ -202,6 +202,8 @@ private WorkflowTemplate( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -510,7 +512,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -561,7 +563,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -586,7 +588,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2242,7 +2244,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2294,7 +2296,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2319,7 +2321,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2351,7 +2353,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2380,11 +2382,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java index 6bbd109d..21925bca 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java index 5ad42f18..5e314eb2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java @@ -245,7 +245,12 @@ public interface WorkflowTemplateOrBuilder * * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java index 849040ec..5aff8f21 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java @@ -113,6 +113,8 @@ private WorkflowTemplatePlacement( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -793,8 +795,9 @@ public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster v } else { if (placementCase_ == 1) { managedClusterBuilder_.mergeFrom(value); + } else { + managedClusterBuilder_.setMessage(value); } - managedClusterBuilder_.setMessage(value); } placementCase_ = 1; return this; @@ -1012,8 +1015,9 @@ public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector } else { if (placementCase_ == 2) { clusterSelectorBuilder_.mergeFrom(value); + } else { + clusterSelectorBuilder_.setMessage(value); } - clusterSelectorBuilder_.setMessage(value); } placementCase_ = 2; return this; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java index e7f0c676..92fca525 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java @@ -112,6 +112,8 @@ private YarnApplication( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -610,7 +612,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } - if (progress_ != 0F) { + if (java.lang.Float.floatToRawIntBits(progress_) != 0) { output.writeFloat(3, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { @@ -632,7 +634,7 @@ public int getSerializedSize() { != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } - if (progress_ != 0F) { + if (java.lang.Float.floatToRawIntBits(progress_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto index 94b225a4..18b2f7df 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto @@ -153,8 +153,10 @@ message AutoscalingPolicy { // Basic algorithm for autoscaling. message BasicAutoscalingAlgorithm { - // Required. YARN autoscaling configuration. - BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED]; + oneof config { + // Required. YARN autoscaling configuration. + BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED]; + } // Optional. Duration between scaling events. A scaling period starts after // the update operation from the previous event has completed. diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 0b9f0a02..2b650c13 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -303,21 +303,6 @@ message VirtualClusterConfig { // a Cloud Storage bucket.** string staging_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, - // such as Spark and MapReduce history files. - // If you do not specify a temp bucket, - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's temp bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket. The default bucket has - // a TTL of 90 days, but you can use any TTL (or none) if you specify a - // bucket (see - // [Dataproc staging and temp - // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to - // a Cloud Storage bucket.** - string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; - oneof infrastructure_config { // Required. The configuration for running the Dataproc cluster on Kubernetes. KubernetesClusterConfig kubernetes_cluster_config = 6 [(google.api.field_behavior) = REQUIRED]; diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..62e0ffa8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + AutoscalingPolicyServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..29234b18 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + AutoscalingPolicyServiceSettings.newBuilder() + .setTransportChannelProvider( + AutoscalingPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..605bda4d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setendpoint_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java new file mode 100644 index 00000000..0f089a3b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class AsyncCreateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAutoscalingPolicy(); + } + + public static void asyncCreateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + CreateAutoscalingPolicyRequest request = + CreateAutoscalingPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPolicy(AutoscalingPolicy.newBuilder().build()) + .build(); + ApiFuture future = + autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request); + // Do something. + AutoscalingPolicy response = future.get(); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java new file mode 100644 index 00000000..2b81972c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicy(); + } + + public static void syncCreateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + CreateAutoscalingPolicyRequest request = + CreateAutoscalingPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPolicy(AutoscalingPolicy.newBuilder().build()) + .build(); + AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(request); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java new file mode 100644 index 00000000..b945d3f9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy(); + } + + public static void syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy response = + autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java new file mode 100644 index 00000000..46aebc7c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.RegionName; + +public class SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy(); + } + + public static void syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy response = + autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java new file mode 100644 index 00000000..2300f67b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateAutoscalingPolicyStringAutoscalingpolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicyStringAutoscalingpolicy(); + } + + public static void syncCreateAutoscalingPolicyStringAutoscalingpolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy response = + autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java new file mode 100644 index 00000000..bc4ffec2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAutoscalingPolicy(); + } + + public static void asyncDeleteAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + DeleteAutoscalingPolicyRequest request = + DeleteAutoscalingPolicyRequest.newBuilder() + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .build(); + ApiFuture future = + autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java new file mode 100644 index 00000000..ff83b8b2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; + +public class SyncDeleteAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAutoscalingPolicy(); + } + + public static void syncDeleteAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + DeleteAutoscalingPolicyRequest request = + DeleteAutoscalingPolicyRequest.newBuilder() + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .build(); + autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java new file mode 100644 index 00000000..9dc278cb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; + +public class SyncDeleteAutoscalingPolicyAutoscalingpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAutoscalingPolicyAutoscalingpolicyname(); + } + + public static void syncDeleteAutoscalingPolicyAutoscalingpolicyname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + AutoscalingPolicyName name = + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java new file mode 100644 index 00000000..d0c0a8a3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_string_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; + +public class SyncDeleteAutoscalingPolicyString { + + public static void main(String[] args) throws Exception { + syncDeleteAutoscalingPolicyString(); + } + + public static void syncDeleteAutoscalingPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + String name = + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString(); + autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java new file mode 100644 index 00000000..00784823 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; + +public class AsyncGetAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + asyncGetAutoscalingPolicy(); + } + + public static void asyncGetAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + GetAutoscalingPolicyRequest request = + GetAutoscalingPolicyRequest.newBuilder() + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .build(); + ApiFuture future = + autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request); + // Do something. + AutoscalingPolicy response = future.get(); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java new file mode 100644 index 00000000..3e05d1c4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; + +public class SyncGetAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncGetAutoscalingPolicy(); + } + + public static void syncGetAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + GetAutoscalingPolicyRequest request = + GetAutoscalingPolicyRequest.newBuilder() + .setName( + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString()) + .build(); + AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(request); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java new file mode 100644 index 00000000..b25f80b6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; + +public class SyncGetAutoscalingPolicyAutoscalingpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAutoscalingPolicyAutoscalingpolicyname(); + } + + public static void syncGetAutoscalingPolicyAutoscalingpolicyname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + AutoscalingPolicyName name = + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); + AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java new file mode 100644 index 00000000..da79dbb9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_string_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; + +public class SyncGetAutoscalingPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAutoscalingPolicyString(); + } + + public static void syncGetAutoscalingPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + String name = + AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( + "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") + .toString(); + AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java new file mode 100644 index 00000000..c0c5dcb8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class AsyncListAutoscalingPolicies { + + public static void main(String[] args) throws Exception { + asyncListAutoscalingPolicies(); + } + + public static void asyncListAutoscalingPolicies() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + ListAutoscalingPoliciesRequest request = + ListAutoscalingPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request); + // Do something. + for (AutoscalingPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java new file mode 100644 index 00000000..644690ba --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_paged_async] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; +import com.google.cloud.dataproc.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAutoscalingPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAutoscalingPoliciesPaged(); + } + + public static void asyncListAutoscalingPoliciesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + ListAutoscalingPoliciesRequest request = + ListAutoscalingPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAutoscalingPoliciesResponse response = + autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request); + for (AutoscalingPolicy element : response.getPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java new file mode 100644 index 00000000..e3c92d37 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListAutoscalingPolicies { + + public static void main(String[] args) throws Exception { + syncListAutoscalingPolicies(); + } + + public static void syncListAutoscalingPolicies() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + ListAutoscalingPoliciesRequest request = + ListAutoscalingPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AutoscalingPolicy element : + autoscalingPolicyServiceClient.listAutoscalingPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java new file mode 100644 index 00000000..b38cfb05 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListAutoscalingPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAutoscalingPoliciesLocationname(); + } + + public static void syncListAutoscalingPoliciesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AutoscalingPolicy element : + autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java new file mode 100644 index 00000000..97baf7e3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.RegionName; + +public class SyncListAutoscalingPoliciesRegionname { + + public static void main(String[] args) throws Exception { + syncListAutoscalingPoliciesRegionname(); + } + + public static void syncListAutoscalingPoliciesRegionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + for (AutoscalingPolicy element : + autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java new file mode 100644 index 00000000..ffdcb024 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_string_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListAutoscalingPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAutoscalingPoliciesString(); + } + + public static void syncListAutoscalingPoliciesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AutoscalingPolicy element : + autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java new file mode 100644 index 00000000..960be01b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; + +public class AsyncUpdateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAutoscalingPolicy(); + } + + public static void asyncUpdateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + UpdateAutoscalingPolicyRequest request = + UpdateAutoscalingPolicyRequest.newBuilder() + .setPolicy(AutoscalingPolicy.newBuilder().build()) + .build(); + ApiFuture future = + autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request); + // Do something. + AutoscalingPolicy response = future.get(); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java new file mode 100644 index 00000000..853d3888 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; + +public class SyncUpdateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAutoscalingPolicy(); + } + + public static void syncUpdateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + UpdateAutoscalingPolicyRequest request = + UpdateAutoscalingPolicyRequest.newBuilder() + .setPolicy(AutoscalingPolicy.newBuilder().build()) + .build(); + AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(request); + } + } +} +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java new file mode 100644 index 00000000..a73a1463 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicy; +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; + +public class SyncUpdateAutoscalingPolicyAutoscalingpolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAutoscalingPolicyAutoscalingpolicy(); + } + + public static void syncUpdateAutoscalingPolicyAutoscalingpolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = + AutoscalingPolicyServiceClient.create()) { + AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); + AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy); + } + } +} +// [END +// dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java new file mode 100644 index 00000000..afc5ad75 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_autoscalingpolicyservicesettings_createautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; +import java.time.Duration; + +public class SyncCreateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicy(); + } + + public static void syncCreateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder = + AutoscalingPolicyServiceSettings.newBuilder(); + autoscalingPolicyServiceSettingsBuilder + .createAutoscalingPolicySettings() + .setRetrySettings( + autoscalingPolicyServiceSettingsBuilder + .createAutoscalingPolicySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = + autoscalingPolicyServiceSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_autoscalingpolicyservicesettings_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..0373f3a6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchControllerSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BatchControllerSettings batchControllerSettings = + BatchControllerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BatchControllerClient batchControllerClient = + BatchControllerClient.create(batchControllerSettings); + } +} +// [END dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..99b4414b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider1_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchControllerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BatchControllerSettings batchControllerSettings = + BatchControllerSettings.newBuilder() + .setTransportChannelProvider( + BatchControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + BatchControllerClient batchControllerClient = + BatchControllerClient.create(batchControllerSettings); + } +} +// [END dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..0377155d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_create_setendpoint_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchControllerSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BatchControllerSettings batchControllerSettings = + BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); + BatchControllerClient batchControllerClient = + BatchControllerClient.create(batchControllerSettings); + } +} +// [END dataproc_v1_generated_batchcontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java new file mode 100644 index 00000000..839fea7c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_createbatch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateBatch { + + public static void main(String[] args) throws Exception { + asyncCreateBatch(); + } + + public static void asyncCreateBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + CreateBatchRequest request = + CreateBatchRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBatch(Batch.newBuilder().build()) + .setBatchId("batchId-331744779") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = batchControllerClient.createBatchCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_createbatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java new file mode 100644 index 00000000..0f98a0ab --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_createbatch_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchOperationMetadata; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class AsyncCreateBatchLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBatchLRO(); + } + + public static void asyncCreateBatchLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + CreateBatchRequest request = + CreateBatchRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBatch(Batch.newBuilder().build()) + .setBatchId("batchId-331744779") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + batchControllerClient.createBatchOperationCallable().futureCall(request); + // Do something. + Batch response = future.get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_createbatch_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java new file mode 100644 index 00000000..17e8e588 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_createbatch_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.CreateBatchRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateBatch { + + public static void main(String[] args) throws Exception { + syncCreateBatch(); + } + + public static void syncCreateBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + CreateBatchRequest request = + CreateBatchRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBatch(Batch.newBuilder().build()) + .setBatchId("batchId-331744779") + .setRequestId("requestId693933066") + .build(); + Batch response = batchControllerClient.createBatchAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_createbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java new file mode 100644 index 00000000..508180fd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_createbatch_locationnamebatchstring_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateBatchLocationnameBatchString { + + public static void main(String[] args) throws Exception { + syncCreateBatchLocationnameBatchString(); + } + + public static void syncCreateBatchLocationnameBatchString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_createbatch_locationnamebatchstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java new file mode 100644 index 00000000..2793e455 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_createbatch_stringbatchstring_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncCreateBatchStringBatchString { + + public static void main(String[] args) throws Exception { + syncCreateBatchStringBatchString(); + } + + public static void syncCreateBatchStringBatchString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Batch batch = Batch.newBuilder().build(); + String batchId = "batchId-331744779"; + Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_createbatch_stringbatchstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java new file mode 100644 index 00000000..cd0e119e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteBatch { + + public static void main(String[] args) throws Exception { + asyncDeleteBatch(); + } + + public static void asyncDeleteBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + DeleteBatchRequest request = + DeleteBatchRequest.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .build(); + ApiFuture future = batchControllerClient.deleteBatchCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java new file mode 100644 index 00000000..8b73d560 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; +import com.google.cloud.dataproc.v1.DeleteBatchRequest; + +public class SyncDeleteBatch { + + public static void main(String[] args) throws Exception { + syncDeleteBatch(); + } + + public static void syncDeleteBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + DeleteBatchRequest request = + DeleteBatchRequest.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .build(); + batchControllerClient.deleteBatch(request); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java new file mode 100644 index 00000000..4dda92f8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_batchname_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; + +public class SyncDeleteBatchBatchname { + + public static void main(String[] args) throws Exception { + syncDeleteBatchBatchname(); + } + + public static void syncDeleteBatchBatchname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + batchControllerClient.deleteBatch(name); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_batchname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java new file mode 100644 index 00000000..490094e5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_string_sync] +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; + +public class SyncDeleteBatchString { + + public static void main(String[] args) throws Exception { + syncDeleteBatchString(); + } + + public static void syncDeleteBatchString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); + batchControllerClient.deleteBatch(name); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java new file mode 100644 index 00000000..5405d3a8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_getbatch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; +import com.google.cloud.dataproc.v1.GetBatchRequest; + +public class AsyncGetBatch { + + public static void main(String[] args) throws Exception { + asyncGetBatch(); + } + + public static void asyncGetBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + GetBatchRequest request = + GetBatchRequest.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .build(); + ApiFuture future = batchControllerClient.getBatchCallable().futureCall(request); + // Do something. + Batch response = future.get(); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_getbatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java new file mode 100644 index 00000000..26e423cb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_getbatch_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; +import com.google.cloud.dataproc.v1.GetBatchRequest; + +public class SyncGetBatch { + + public static void main(String[] args) throws Exception { + syncGetBatch(); + } + + public static void syncGetBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + GetBatchRequest request = + GetBatchRequest.newBuilder() + .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) + .build(); + Batch response = batchControllerClient.getBatch(request); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java new file mode 100644 index 00000000..5fe46c90 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_getbatch_batchname_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; + +public class SyncGetBatchBatchname { + + public static void main(String[] args) throws Exception { + syncGetBatchBatchname(); + } + + public static void syncGetBatchBatchname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); + Batch response = batchControllerClient.getBatch(name); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_getbatch_batchname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java new file mode 100644 index 00000000..a47944e4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_getbatch_string_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.BatchName; + +public class SyncGetBatchString { + + public static void main(String[] args) throws Exception { + syncGetBatchString(); + } + + public static void syncGetBatchString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); + Batch response = batchControllerClient.getBatch(name); + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_getbatch_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java new file mode 100644 index 00000000..ccb2e46e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_listbatches_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class AsyncListBatches { + + public static void main(String[] args) throws Exception { + asyncListBatches(); + } + + public static void asyncListBatches() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + ListBatchesRequest request = + ListBatchesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + batchControllerClient.listBatchesPagedCallable().futureCall(request); + // Do something. + for (Batch element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_listbatches_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java new file mode 100644 index 00000000..06e83f3b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_listbatches_paged_async] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.ListBatchesResponse; +import com.google.cloud.dataproc.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListBatchesPaged { + + public static void main(String[] args) throws Exception { + asyncListBatchesPaged(); + } + + public static void asyncListBatchesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + ListBatchesRequest request = + ListBatchesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBatchesResponse response = batchControllerClient.listBatchesCallable().call(request); + for (Batch element : response.getBatchesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_listbatches_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java new file mode 100644 index 00000000..b8f07cbf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_listbatches_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.ListBatchesRequest; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListBatches { + + public static void main(String[] args) throws Exception { + syncListBatches(); + } + + public static void syncListBatches() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + ListBatchesRequest request = + ListBatchesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Batch element : batchControllerClient.listBatches(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_listbatches_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java new file mode 100644 index 00000000..b2824ecd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_listbatches_locationname_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListBatchesLocationname { + + public static void main(String[] args) throws Exception { + syncListBatchesLocationname(); + } + + public static void syncListBatchesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_listbatches_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java new file mode 100644 index 00000000..c7829608 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollerclient_listbatches_string_sync] +import com.google.cloud.dataproc.v1.Batch; +import com.google.cloud.dataproc.v1.BatchControllerClient; +import com.google.cloud.dataproc.v1.LocationName; + +public class SyncListBatchesString { + + public static void main(String[] args) throws Exception { + syncListBatchesString(); + } + + public static void syncListBatchesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_batchcontrollerclient_listbatches_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java new file mode 100644 index 00000000..8dd2ff32 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_batchcontrollersettings_getbatch_sync] +import com.google.cloud.dataproc.v1.BatchControllerSettings; +import java.time.Duration; + +public class SyncGetBatch { + + public static void main(String[] args) throws Exception { + syncGetBatch(); + } + + public static void syncGetBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BatchControllerSettings.Builder batchControllerSettingsBuilder = + BatchControllerSettings.newBuilder(); + batchControllerSettingsBuilder + .getBatchSettings() + .setRetrySettings( + batchControllerSettingsBuilder + .getBatchSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_batchcontrollersettings_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..e0671460 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterControllerSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ClusterControllerSettings clusterControllerSettings = + ClusterControllerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ClusterControllerClient clusterControllerClient = + ClusterControllerClient.create(clusterControllerSettings); + } +} +// [END dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..5fb0af6a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider1_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterControllerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ClusterControllerSettings clusterControllerSettings = + ClusterControllerSettings.newBuilder() + .setTransportChannelProvider( + ClusterControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + ClusterControllerClient clusterControllerClient = + ClusterControllerClient.create(clusterControllerSettings); + } +} +// [END dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..fdf73a94 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_create_setendpoint_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterControllerSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ClusterControllerSettings clusterControllerSettings = + ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); + ClusterControllerClient clusterControllerClient = + ClusterControllerClient.create(clusterControllerSettings); + } +} +// [END dataproc_v1_generated_clustercontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java new file mode 100644 index 00000000..03bc07b8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_createcluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.CreateClusterRequest; +import com.google.cloud.dataproc.v1.FailureAction; +import com.google.longrunning.Operation; + +public class AsyncCreateCluster { + + public static void main(String[] args) throws Exception { + asyncCreateCluster(); + } + + public static void asyncCreateCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setCluster(Cluster.newBuilder().build()) + .setRequestId("requestId693933066") + .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) + .build(); + ApiFuture future = + clusterControllerClient.createClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_createcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java new file mode 100644 index 00000000..9d82a33f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_createcluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.CreateClusterRequest; +import com.google.cloud.dataproc.v1.FailureAction; + +public class AsyncCreateClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateClusterLRO(); + } + + public static void asyncCreateClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setCluster(Cluster.newBuilder().build()) + .setRequestId("requestId693933066") + .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) + .build(); + OperationFuture future = + clusterControllerClient.createClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_createcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java new file mode 100644 index 00000000..77d68833 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_createcluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.CreateClusterRequest; +import com.google.cloud.dataproc.v1.FailureAction; + +public class SyncCreateCluster { + + public static void main(String[] args) throws Exception { + syncCreateCluster(); + } + + public static void syncCreateCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setCluster(Cluster.newBuilder().build()) + .setRequestId("requestId693933066") + .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) + .build(); + Cluster response = clusterControllerClient.createClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_createcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java new file mode 100644 index 00000000..57fc3d08 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_createcluster_stringstringcluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; + +public class SyncCreateClusterStringStringCluster { + + public static void main(String[] args) throws Exception { + syncCreateClusterStringStringCluster(); + } + + public static void syncCreateClusterStringStringCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + Cluster cluster = Cluster.newBuilder().build(); + Cluster response = + clusterControllerClient.createClusterAsync(projectId, region, cluster).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_createcluster_stringstringcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java new file mode 100644 index 00000000..6711e235 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.DeleteClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteCluster(); + } + + public static void asyncDeleteCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + clusterControllerClient.deleteClusterCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java new file mode 100644 index 00000000..02704096 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.DeleteClusterRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteClusterLRO(); + } + + public static void asyncDeleteClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + clusterControllerClient.deleteClusterOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java new file mode 100644 index 00000000..9df6e95a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.DeleteClusterRequest; + +public class SyncDeleteCluster { + + public static void main(String[] args) throws Exception { + syncDeleteCluster(); + } + + public static void syncDeleteCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + clusterControllerClient.deleteClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java new file mode 100644 index 00000000..8c2e6477 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_stringstringstring_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; + +public class SyncDeleteClusterStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteClusterStringStringString(); + } + + public static void syncDeleteClusterStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; + clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java new file mode 100644 index 00000000..1da70de6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncDiagnoseCluster { + + public static void main(String[] args) throws Exception { + asyncDiagnoseCluster(); + } + + public static void asyncDiagnoseCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DiagnoseClusterRequest request = + DiagnoseClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .build(); + ApiFuture future = + clusterControllerClient.diagnoseClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java new file mode 100644 index 00000000..7d636db1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; +import com.google.cloud.dataproc.v1.DiagnoseClusterResults; + +public class AsyncDiagnoseClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDiagnoseClusterLRO(); + } + + public static void asyncDiagnoseClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DiagnoseClusterRequest request = + DiagnoseClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .build(); + OperationFuture future = + clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); + // Do something. + DiagnoseClusterResults response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java new file mode 100644 index 00000000..20300a90 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; +import com.google.cloud.dataproc.v1.DiagnoseClusterResults; + +public class SyncDiagnoseCluster { + + public static void main(String[] args) throws Exception { + syncDiagnoseCluster(); + } + + public static void syncDiagnoseCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + DiagnoseClusterRequest request = + DiagnoseClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .build(); + DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java new file mode 100644 index 00000000..faeb2316 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_stringstringstring_sync] +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.DiagnoseClusterResults; + +public class SyncDiagnoseClusterStringStringString { + + public static void main(String[] args) throws Exception { + syncDiagnoseClusterStringStringString(); + } + + public static void syncDiagnoseClusterStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; + DiagnoseClusterResults response = + clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java new file mode 100644 index 00000000..2d38e4eb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_getcluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.GetClusterRequest; + +public class AsyncGetCluster { + + public static void main(String[] args) throws Exception { + asyncGetCluster(); + } + + public static void asyncGetCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + GetClusterRequest request = + GetClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .build(); + ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_getcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java new file mode 100644 index 00000000..28a3eafc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_getcluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.GetClusterRequest; + +public class SyncGetCluster { + + public static void main(String[] args) throws Exception { + syncGetCluster(); + } + + public static void syncGetCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + GetClusterRequest request = + GetClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .build(); + Cluster response = clusterControllerClient.getCluster(request); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java new file mode 100644 index 00000000..bcc209a9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_getcluster_stringstringstring_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; + +public class SyncGetClusterStringStringString { + + public static void main(String[] args) throws Exception { + syncGetClusterStringStringString(); + } + + public static void syncGetClusterStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; + Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_getcluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java new file mode 100644 index 00000000..ea1429e8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_listclusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ListClustersRequest; + +public class AsyncListClusters { + + public static void main(String[] args) throws Exception { + asyncListClusters(); + } + + public static void asyncListClusters() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + ListClustersRequest request = + ListClustersRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + clusterControllerClient.listClustersPagedCallable().futureCall(request); + // Do something. + for (Cluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_listclusters_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java new file mode 100644 index 00000000..ed2f2ee4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_listclusters_paged_async] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ListClustersRequest; +import com.google.cloud.dataproc.v1.ListClustersResponse; +import com.google.common.base.Strings; + +public class AsyncListClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListClustersPaged(); + } + + public static void asyncListClustersPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + ListClustersRequest request = + ListClustersRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListClustersResponse response = + clusterControllerClient.listClustersCallable().call(request); + for (Cluster element : response.getClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_listclusters_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java new file mode 100644 index 00000000..169a3997 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_listclusters_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ListClustersRequest; + +public class SyncListClusters { + + public static void main(String[] args) throws Exception { + syncListClusters(); + } + + public static void syncListClusters() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + ListClustersRequest request = + ListClustersRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Cluster element : clusterControllerClient.listClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_listclusters_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java new file mode 100644 index 00000000..0edd1e44 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_listclusters_stringstring_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; + +public class SyncListClustersStringString { + + public static void main(String[] args) throws Exception { + syncListClustersStringString(); + } + + public static void syncListClustersStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_listclusters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java new file mode 100644 index 00000000..304cf133 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_listclusters_stringstringstring_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; + +public class SyncListClustersStringStringString { + + public static void main(String[] args) throws Exception { + syncListClustersStringStringString(); + } + + public static void syncListClustersStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String filter = "filter-1274492040"; + for (Cluster element : + clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_listclusters_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java new file mode 100644 index 00000000..1a67986b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_startcluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.StartClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncStartCluster { + + public static void main(String[] args) throws Exception { + asyncStartCluster(); + } + + public static void asyncStartCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StartClusterRequest request = + StartClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + clusterControllerClient.startClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_startcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java new file mode 100644 index 00000000..af670b25 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_startcluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.StartClusterRequest; + +public class AsyncStartClusterLRO { + + public static void main(String[] args) throws Exception { + asyncStartClusterLRO(); + } + + public static void asyncStartClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StartClusterRequest request = + StartClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + clusterControllerClient.startClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_startcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java new file mode 100644 index 00000000..3d52d1c9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_startcluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.StartClusterRequest; + +public class SyncStartCluster { + + public static void main(String[] args) throws Exception { + syncStartCluster(); + } + + public static void syncStartCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StartClusterRequest request = + StartClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + Cluster response = clusterControllerClient.startClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_startcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java new file mode 100644 index 00000000..126ffe30 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.StopClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncStopCluster { + + public static void main(String[] args) throws Exception { + asyncStopCluster(); + } + + public static void asyncStopCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StopClusterRequest request = + StopClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + clusterControllerClient.stopClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java new file mode 100644 index 00000000..fdc31376 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.StopClusterRequest; + +public class AsyncStopClusterLRO { + + public static void main(String[] args) throws Exception { + asyncStopClusterLRO(); + } + + public static void asyncStopClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StopClusterRequest request = + StopClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + clusterControllerClient.stopClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java new file mode 100644 index 00000000..108b7265 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.StopClusterRequest; + +public class SyncStopCluster { + + public static void main(String[] args) throws Exception { + syncStopCluster(); + } + + public static void syncStopCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + StopClusterRequest request = + StopClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setClusterUuid("clusterUuid-1141510955") + .setRequestId("requestId693933066") + .build(); + Cluster response = clusterControllerClient.stopClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java new file mode 100644 index 00000000..ed57bc59 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.UpdateClusterRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCluster { + + public static void main(String[] args) throws Exception { + asyncUpdateCluster(); + } + + public static void asyncUpdateCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setCluster(Cluster.newBuilder().build()) + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + clusterControllerClient.updateClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java new file mode 100644 index 00000000..dca39c3f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; +import com.google.cloud.dataproc.v1.UpdateClusterRequest; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateClusterLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateClusterLRO(); + } + + public static void asyncUpdateClusterLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setCluster(Cluster.newBuilder().build()) + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + clusterControllerClient.updateClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java new file mode 100644 index 00000000..3fa4c064 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.cloud.dataproc.v1.UpdateClusterRequest; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCluster { + + public static void main(String[] args) throws Exception { + syncUpdateCluster(); + } + + public static void syncUpdateCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setClusterName("clusterName-1141738587") + .setCluster(Cluster.newBuilder().build()) + .setGracefulDecommissionTimeout(Duration.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Cluster response = clusterControllerClient.updateClusterAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java new file mode 100644 index 00000000..9a8c039a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] +import com.google.cloud.dataproc.v1.Cluster; +import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateClusterStringStringStringClusterFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateClusterStringStringStringClusterFieldmask(); + } + + public static void syncUpdateClusterStringStringStringClusterFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String clusterName = "clusterName-1141738587"; + Cluster cluster = Cluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Cluster response = + clusterControllerClient + .updateClusterAsync(projectId, region, clusterName, cluster, updateMask) + .get(); + } + } +} +// [END +// dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java new file mode 100644 index 00000000..796b86ee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_clustercontrollersettings_getcluster_sync] +import com.google.cloud.dataproc.v1.ClusterControllerSettings; +import java.time.Duration; + +public class SyncGetCluster { + + public static void main(String[] args) throws Exception { + syncGetCluster(); + } + + public static void syncGetCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ClusterControllerSettings.Builder clusterControllerSettingsBuilder = + ClusterControllerSettings.newBuilder(); + clusterControllerSettingsBuilder + .getClusterSettings() + .setRetrySettings( + clusterControllerSettingsBuilder + .getClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_clustercontrollersettings_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java new file mode 100644 index 00000000..e63d9946 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_canceljob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.CancelJobRequest; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class AsyncCancelJob { + + public static void main(String[] args) throws Exception { + asyncCancelJob(); + } + + public static void asyncCancelJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + CancelJobRequest request = + CancelJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_canceljob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java new file mode 100644 index 00000000..325abde7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_canceljob_sync] +import com.google.cloud.dataproc.v1.CancelJobRequest; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncCancelJob { + + public static void main(String[] args) throws Exception { + syncCancelJob(); + } + + public static void syncCancelJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + CancelJobRequest request = + CancelJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + Job response = jobControllerClient.cancelJob(request); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_canceljob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java new file mode 100644 index 00000000..25db1d5b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_canceljob_stringstringstring_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncCancelJobStringStringString { + + public static void main(String[] args) throws Exception { + syncCancelJobStringStringString(); + } + + public static void syncCancelJobStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String jobId = "jobId101296568"; + Job response = jobControllerClient.cancelJob(projectId, region, jobId); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_canceljob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..76b8afcc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.JobControllerSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + JobControllerSettings jobControllerSettings = + JobControllerSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + } +} +// [END dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..25e3519a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider1_sync] +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.JobControllerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + JobControllerSettings jobControllerSettings = + JobControllerSettings.newBuilder() + .setTransportChannelProvider( + JobControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + } +} +// [END dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..e1592969 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_create_setendpoint_sync] +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.JobControllerSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + JobControllerSettings jobControllerSettings = + JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); + JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); + } +} +// [END dataproc_v1_generated_jobcontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java new file mode 100644 index 00000000..5daa0298 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_deletejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.DeleteJobRequest; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteJob { + + public static void main(String[] args) throws Exception { + asyncDeleteJob(); + } + + public static void asyncDeleteJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_deletejob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java new file mode 100644 index 00000000..10c00374 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_deletejob_sync] +import com.google.cloud.dataproc.v1.DeleteJobRequest; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncDeleteJob { + + public static void main(String[] args) throws Exception { + syncDeleteJob(); + } + + public static void syncDeleteJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + jobControllerClient.deleteJob(request); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_deletejob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java new file mode 100644 index 00000000..f9017217 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_deletejob_stringstringstring_sync] +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncDeleteJobStringStringString { + + public static void main(String[] args) throws Exception { + syncDeleteJobStringStringString(); + } + + public static void syncDeleteJobStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String jobId = "jobId101296568"; + jobControllerClient.deleteJob(projectId, region, jobId); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_deletejob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java new file mode 100644 index 00000000..46c3dfb7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_getjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.GetJobRequest; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class AsyncGetJob { + + public static void main(String[] args) throws Exception { + asyncGetJob(); + } + + public static void asyncGetJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + ApiFuture future = jobControllerClient.getJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_getjob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java new file mode 100644 index 00000000..9da587f6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_getjob_sync] +import com.google.cloud.dataproc.v1.GetJobRequest; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + public static void syncGetJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .build(); + Job response = jobControllerClient.getJob(request); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_getjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java new file mode 100644 index 00000000..d7b2d64f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_getjob_stringstringstring_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncGetJobStringStringString { + + public static void main(String[] args) throws Exception { + syncGetJobStringStringString(); + } + + public static void syncGetJobStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String jobId = "jobId101296568"; + Job response = jobControllerClient.getJob(projectId, region, jobId); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_getjob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java new file mode 100644 index 00000000..54911a3e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_listjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.ListJobsRequest; + +public class AsyncListJobs { + + public static void main(String[] args) throws Exception { + asyncListJobs(); + } + + public static void asyncListJobs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setClusterName("clusterName-1141738587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request); + // Do something. + for (Job element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_listjobs_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java new file mode 100644 index 00000000..30faa053 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_listjobs_paged_async] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.ListJobsRequest; +import com.google.cloud.dataproc.v1.ListJobsResponse; +import com.google.common.base.Strings; + +public class AsyncListJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListJobsPaged(); + } + + public static void asyncListJobsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setClusterName("clusterName-1141738587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListJobsResponse response = jobControllerClient.listJobsCallable().call(request); + for (Job element : response.getJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_listjobs_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java new file mode 100644 index 00000000..91d707ce --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_listjobs_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.ListJobsRequest; + +public class SyncListJobs { + + public static void main(String[] args) throws Exception { + syncListJobs(); + } + + public static void syncListJobs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setClusterName("clusterName-1141738587") + .setFilter("filter-1274492040") + .build(); + for (Job element : jobControllerClient.listJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_listjobs_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java new file mode 100644 index 00000000..f0ecd6c2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_listjobs_stringstring_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncListJobsStringString { + + public static void main(String[] args) throws Exception { + syncListJobsStringString(); + } + + public static void syncListJobsStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_listjobs_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java new file mode 100644 index 00000000..a597c7af --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_listjobs_stringstringstring_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncListJobsStringStringString { + + public static void main(String[] args) throws Exception { + syncListJobsStringStringString(); + } + + public static void syncListJobsStringStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + String filter = "filter-1274492040"; + for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_listjobs_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java new file mode 100644 index 00000000..43d0c9f6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.SubmitJobRequest; + +public class AsyncSubmitJob { + + public static void main(String[] args) throws Exception { + asyncSubmitJob(); + } + + public static void asyncSubmitJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + SubmitJobRequest request = + SubmitJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJob(Job.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java new file mode 100644 index 00000000..4af2efbe --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjob_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.SubmitJobRequest; + +public class SyncSubmitJob { + + public static void main(String[] args) throws Exception { + syncSubmitJob(); + } + + public static void syncSubmitJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + SubmitJobRequest request = + SubmitJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJob(Job.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Job response = jobControllerClient.submitJob(request); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java new file mode 100644 index 00000000..c64a0f42 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjob_stringstringjob_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncSubmitJobStringStringJob { + + public static void main(String[] args) throws Exception { + syncSubmitJobStringStringJob(); + } + + public static void syncSubmitJobStringStringJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + Job job = Job.newBuilder().build(); + Job response = jobControllerClient.submitJob(projectId, region, job); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjob_stringstringjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java new file mode 100644 index 00000000..a00a67e4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.SubmitJobRequest; +import com.google.longrunning.Operation; + +public class AsyncSubmitJobAsOperation { + + public static void main(String[] args) throws Exception { + asyncSubmitJobAsOperation(); + } + + public static void asyncSubmitJobAsOperation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + SubmitJobRequest request = + SubmitJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJob(Job.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + jobControllerClient.submitJobAsOperationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java new file mode 100644 index 00000000..18f8f52f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.JobMetadata; +import com.google.cloud.dataproc.v1.SubmitJobRequest; + +public class AsyncSubmitJobAsOperationLRO { + + public static void main(String[] args) throws Exception { + asyncSubmitJobAsOperationLRO(); + } + + public static void asyncSubmitJobAsOperationLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + SubmitJobRequest request = + SubmitJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJob(Job.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java new file mode 100644 index 00000000..8b7bd1a4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.SubmitJobRequest; + +public class SyncSubmitJobAsOperation { + + public static void main(String[] args) throws Exception { + syncSubmitJobAsOperation(); + } + + public static void syncSubmitJobAsOperation() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + SubmitJobRequest request = + SubmitJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJob(Job.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Job response = jobControllerClient.submitJobAsOperationAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java new file mode 100644 index 00000000..8a9a022d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_stringstringjob_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; + +public class SyncSubmitJobAsOperationStringStringJob { + + public static void main(String[] args) throws Exception { + syncSubmitJobAsOperationStringStringJob(); + } + + public static void syncSubmitJobAsOperationStringStringJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + String projectId = "projectId-894832108"; + String region = "region-934795532"; + Job job = Job.newBuilder().build(); + Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_stringstringjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java new file mode 100644 index 00000000..c19716b0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_updatejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateJob { + + public static void main(String[] args) throws Exception { + asyncUpdateJob(); + } + + public static void asyncUpdateJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_updatejob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java new file mode 100644 index 00000000..9822c85e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollerclient_updatejob_sync] +import com.google.cloud.dataproc.v1.Job; +import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.cloud.dataproc.v1.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateJob { + + public static void main(String[] args) throws Exception { + syncUpdateJob(); + } + + public static void syncUpdateJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (JobControllerClient jobControllerClient = JobControllerClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setProjectId("projectId-894832108") + .setRegion("region-934795532") + .setJobId("jobId101296568") + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Job response = jobControllerClient.updateJob(request); + } + } +} +// [END dataproc_v1_generated_jobcontrollerclient_updatejob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java new file mode 100644 index 00000000..ddeebe21 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_jobcontrollersettings_submitjob_sync] +import com.google.cloud.dataproc.v1.JobControllerSettings; +import java.time.Duration; + +public class SyncSubmitJob { + + public static void main(String[] args) throws Exception { + syncSubmitJob(); + } + + public static void syncSubmitJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder(); + jobControllerSettingsBuilder + .submitJobSettings() + .setRetrySettings( + jobControllerSettingsBuilder + .submitJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_jobcontrollersettings_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java new file mode 100644 index 00000000..84d38258 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_autoscalingpolicyservicestubsettings_createautoscalingpolicy_sync] +import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStubSettings; +import java.time.Duration; + +public class SyncCreateAutoscalingPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAutoscalingPolicy(); + } + + public static void syncCreateAutoscalingPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder = + AutoscalingPolicyServiceStubSettings.newBuilder(); + autoscalingPolicyServiceSettingsBuilder + .createAutoscalingPolicySettings() + .setRetrySettings( + autoscalingPolicyServiceSettingsBuilder + .createAutoscalingPolicySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = + autoscalingPolicyServiceSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_autoscalingpolicyservicestubsettings_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java new file mode 100644 index 00000000..1871ca99 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_batchcontrollerstubsettings_getbatch_sync] +import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; +import java.time.Duration; + +public class SyncGetBatch { + + public static void main(String[] args) throws Exception { + syncGetBatch(); + } + + public static void syncGetBatch() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BatchControllerStubSettings.Builder batchControllerSettingsBuilder = + BatchControllerStubSettings.newBuilder(); + batchControllerSettingsBuilder + .getBatchSettings() + .setRetrySettings( + batchControllerSettingsBuilder + .getBatchSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_batchcontrollerstubsettings_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java new file mode 100644 index 00000000..62e2cd8e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_clustercontrollerstubsettings_getcluster_sync] +import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; +import java.time.Duration; + +public class SyncGetCluster { + + public static void main(String[] args) throws Exception { + syncGetCluster(); + } + + public static void syncGetCluster() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder = + ClusterControllerStubSettings.newBuilder(); + clusterControllerSettingsBuilder + .getClusterSettings() + .setRetrySettings( + clusterControllerSettingsBuilder + .getClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ClusterControllerStubSettings clusterControllerSettings = + clusterControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_clustercontrollerstubsettings_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java new file mode 100644 index 00000000..72479b32 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_jobcontrollerstubsettings_submitjob_sync] +import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; +import java.time.Duration; + +public class SyncSubmitJob { + + public static void main(String[] args) throws Exception { + syncSubmitJob(); + } + + public static void syncSubmitJob() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + JobControllerStubSettings.Builder jobControllerSettingsBuilder = + JobControllerStubSettings.newBuilder(); + jobControllerSettingsBuilder + .submitJobSettings() + .setRetrySettings( + jobControllerSettingsBuilder + .submitJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_jobcontrollerstubsettings_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java new file mode 100644 index 00000000..ad713e86 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.stub.samples; + +// [START dataproc_v1_generated_workflowtemplateservicestubsettings_createworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; +import java.time.Duration; + +public class SyncCreateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplate(); + } + + public static void syncCreateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder = + WorkflowTemplateServiceStubSettings.newBuilder(); + workflowTemplateServiceSettingsBuilder + .createWorkflowTemplateSettings() + .setRetrySettings( + workflowTemplateServiceSettingsBuilder + .createWorkflowTemplateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = + workflowTemplateServiceSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_workflowtemplateservicestubsettings_createworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..55958c39 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; +import com.google.cloud.dataproc.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + WorkflowTemplateServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..e0bbbaf0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + WorkflowTemplateServiceSettings.newBuilder() + .setTransportChannelProvider( + WorkflowTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..4367186b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setendpoint_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; +import com.google.cloud.dataproc.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java new file mode 100644 index 00000000..645e7741 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class AsyncCreateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncCreateWorkflowTemplate(); + } + + public static void asyncCreateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setTemplate(WorkflowTemplate.newBuilder().build()) + .build(); + ApiFuture future = + workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request); + // Do something. + WorkflowTemplate response = future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java new file mode 100644 index 00000000..6b266663 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncCreateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplate(); + } + + public static void syncCreateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + CreateWorkflowTemplateRequest request = + CreateWorkflowTemplateRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setTemplate(WorkflowTemplate.newBuilder().build()) + .build(); + WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(request); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java new file mode 100644 index 00000000..33e5470a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.LocationName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncCreateWorkflowTemplateLocationnameWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplateLocationnameWorkflowtemplate(); + } + + public static void syncCreateWorkflowTemplateLocationnameWorkflowtemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + WorkflowTemplate response = + workflowTemplateServiceClient.createWorkflowTemplate(parent, template); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java new file mode 100644 index 00000000..cf35bb05 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncCreateWorkflowTemplateRegionnameWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplateRegionnameWorkflowtemplate(); + } + + public static void syncCreateWorkflowTemplateRegionnameWorkflowtemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + WorkflowTemplate response = + workflowTemplateServiceClient.createWorkflowTemplate(parent, template); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java new file mode 100644 index 00000000..2f4f08a4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncCreateWorkflowTemplateStringWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplateStringWorkflowtemplate(); + } + + public static void syncCreateWorkflowTemplateStringWorkflowtemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + WorkflowTemplate response = + workflowTemplateServiceClient.createWorkflowTemplate(parent, template); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java new file mode 100644 index 00000000..9df64c99 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkflowTemplate(); + } + + public static void asyncDeleteWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + DeleteWorkflowTemplateRequest request = + DeleteWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .build(); + ApiFuture future = + workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java new file mode 100644 index 00000000..1a507e1e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncDeleteWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowTemplate(); + } + + public static void syncDeleteWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + DeleteWorkflowTemplateRequest request = + DeleteWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .build(); + workflowTemplateServiceClient.deleteWorkflowTemplate(request); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java new file mode 100644 index 00000000..42458d48 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_string_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncDeleteWorkflowTemplateString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowTemplateString(); + } + + public static void syncDeleteWorkflowTemplateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString(); + workflowTemplateServiceClient.deleteWorkflowTemplate(name); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java new file mode 100644 index 00000000..11b4a2ca --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncDeleteWorkflowTemplateWorkflowtemplatename { + + public static void main(String[] args) throws Exception { + syncDeleteWorkflowTemplateWorkflowtemplatename(); + } + + public static void syncDeleteWorkflowTemplateWorkflowtemplatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); + workflowTemplateServiceClient.deleteWorkflowTemplate(name); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java new file mode 100644 index 00000000..1f447d47 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class AsyncGetWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncGetWorkflowTemplate(); + } + + public static void asyncGetWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .build(); + ApiFuture future = + workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request); + // Do something. + WorkflowTemplate response = future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java new file mode 100644 index 00000000..b71d233a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncGetWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncGetWorkflowTemplate(); + } + + public static void syncGetWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + GetWorkflowTemplateRequest request = + GetWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .build(); + WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(request); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java new file mode 100644 index 00000000..ef6e3294 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_string_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncGetWorkflowTemplateString { + + public static void main(String[] args) throws Exception { + syncGetWorkflowTemplateString(); + } + + public static void syncGetWorkflowTemplateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString(); + WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java new file mode 100644 index 00000000..0a298e88 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncGetWorkflowTemplateWorkflowtemplatename { + + public static void main(String[] args) throws Exception { + syncGetWorkflowTemplateWorkflowtemplatename(); + } + + public static void syncGetWorkflowTemplateWorkflowtemplatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); + WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java new file mode 100644 index 00000000..fdf5cc10 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.longrunning.Operation; + +public class AsyncInstantiateInlineWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncInstantiateInlineWorkflowTemplate(); + } + + public static void asyncInstantiateInlineWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateInlineWorkflowTemplateRequest request = + InstantiateInlineWorkflowTemplateRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setTemplate(WorkflowTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + workflowTemplateServiceClient + .instantiateInlineWorkflowTemplateCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java new file mode 100644 index 00000000..d80de992 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowMetadata; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; + +public class AsyncInstantiateInlineWorkflowTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncInstantiateInlineWorkflowTemplateLRO(); + } + + public static void asyncInstantiateInlineWorkflowTemplateLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateInlineWorkflowTemplateRequest request = + InstantiateInlineWorkflowTemplateRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setTemplate(WorkflowTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + workflowTemplateServiceClient + .instantiateInlineWorkflowTemplateOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java new file mode 100644 index 00000000..c23cf5e7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateInlineWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncInstantiateInlineWorkflowTemplate(); + } + + public static void syncInstantiateInlineWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateInlineWorkflowTemplateRequest request = + InstantiateInlineWorkflowTemplateRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setTemplate(WorkflowTemplate.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java new file mode 100644 index 00000000..0c5710ec --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.LocationName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate(); + } + + public static void syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java new file mode 100644 index 00000000..ab06515a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate(); + } + + public static void syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java new file mode 100644 index 00000000..d9a3dace --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate(); + } + + public static void syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java new file mode 100644 index 00000000..2a5f4ed1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.longrunning.Operation; +import java.util.HashMap; + +public class AsyncInstantiateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncInstantiateWorkflowTemplate(); + } + + public static void asyncInstantiateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateWorkflowTemplateRequest request = + InstantiateWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setRequestId("requestId693933066") + .putAllParameters(new HashMap()) + .build(); + ApiFuture future = + workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java new file mode 100644 index 00000000..a5fd09a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowMetadata; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; +import java.util.HashMap; + +public class AsyncInstantiateWorkflowTemplateLRO { + + public static void main(String[] args) throws Exception { + asyncInstantiateWorkflowTemplateLRO(); + } + + public static void asyncInstantiateWorkflowTemplateLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateWorkflowTemplateRequest request = + InstantiateWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setRequestId("requestId693933066") + .putAllParameters(new HashMap()) + .build(); + OperationFuture future = + workflowTemplateServiceClient + .instantiateWorkflowTemplateOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java new file mode 100644 index 00000000..239177dd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import java.util.HashMap; + +public class SyncInstantiateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncInstantiateWorkflowTemplate(); + } + + public static void syncInstantiateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + InstantiateWorkflowTemplateRequest request = + InstantiateWorkflowTemplateRequest.newBuilder() + .setName( + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") + .toString()) + .setVersion(351608024) + .setRequestId("requestId693933066") + .putAllParameters(new HashMap()) + .build(); + workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java new file mode 100644 index 00000000..be5ea360 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateWorkflowTemplateString { + + public static void main(String[] args) throws Exception { + syncInstantiateWorkflowTemplateString(); + } + + public static void syncInstantiateWorkflowTemplateString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString(); + workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java new file mode 100644 index 00000000..58415442 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import java.util.HashMap; +import java.util.Map; + +public class SyncInstantiateWorkflowTemplateStringMapstringstring { + + public static void main(String[] args) throws Exception { + syncInstantiateWorkflowTemplateStringMapstringstring(); + } + + public static void syncInstantiateWorkflowTemplateStringMapstringstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String name = + WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( + "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") + .toString(); + Map parameters = new HashMap<>(); + workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java new file mode 100644 index 00000000..816521f3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncInstantiateWorkflowTemplateWorkflowtemplatename { + + public static void main(String[] args) throws Exception { + syncInstantiateWorkflowTemplateWorkflowtemplatename(); + } + + public static void syncInstantiateWorkflowTemplateWorkflowtemplatename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); + workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java new file mode 100644 index 00000000..56ebcc7a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateName; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import java.util.HashMap; +import java.util.Map; + +public class SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring { + + public static void main(String[] args) throws Exception { + syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring(); + } + + public static void syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + WorkflowTemplateName name = + WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( + "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); + Map parameters = new HashMap<>(); + workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java new file mode 100644 index 00000000..9cbc33d3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class AsyncListWorkflowTemplates { + + public static void main(String[] args) throws Exception { + asyncListWorkflowTemplates(); + } + + public static void asyncListWorkflowTemplates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + ListWorkflowTemplatesRequest request = + ListWorkflowTemplatesRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request); + // Do something. + for (WorkflowTemplate element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java new file mode 100644 index 00000000..601674e8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_paged_async] +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.common.base.Strings; + +public class AsyncListWorkflowTemplatesPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkflowTemplatesPaged(); + } + + public static void asyncListWorkflowTemplatesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + ListWorkflowTemplatesRequest request = + ListWorkflowTemplatesRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListWorkflowTemplatesResponse response = + workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request); + for (WorkflowTemplate element : response.getTemplatesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java new file mode 100644 index 00000000..87013245 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_sync] +import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncListWorkflowTemplates { + + public static void main(String[] args) throws Exception { + syncListWorkflowTemplates(); + } + + public static void syncListWorkflowTemplates() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + ListWorkflowTemplatesRequest request = + ListWorkflowTemplatesRequest.newBuilder() + .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (WorkflowTemplate element : + workflowTemplateServiceClient.listWorkflowTemplates(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java new file mode 100644 index 00000000..986db7ee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] +import com.google.cloud.dataproc.v1.LocationName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncListWorkflowTemplatesLocationname { + + public static void main(String[] args) throws Exception { + syncListWorkflowTemplatesLocationname(); + } + + public static void syncListWorkflowTemplatesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (WorkflowTemplate element : + workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java new file mode 100644 index 00000000..1a22892b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_regionname_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncListWorkflowTemplatesRegionname { + + public static void main(String[] args) throws Exception { + syncListWorkflowTemplatesRegionname(); + } + + public static void syncListWorkflowTemplatesRegionname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); + for (WorkflowTemplate element : + workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_regionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java new file mode 100644 index 00000000..5104956a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_string_sync] +import com.google.cloud.dataproc.v1.RegionName; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncListWorkflowTemplatesString { + + public static void main(String[] args) throws Exception { + syncListWorkflowTemplatesString(); + } + + public static void syncListWorkflowTemplatesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); + for (WorkflowTemplate element : + workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java new file mode 100644 index 00000000..519415e6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class AsyncUpdateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkflowTemplate(); + } + + public static void asyncUpdateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + UpdateWorkflowTemplateRequest request = + UpdateWorkflowTemplateRequest.newBuilder() + .setTemplate(WorkflowTemplate.newBuilder().build()) + .build(); + ApiFuture future = + workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request); + // Do something. + WorkflowTemplate response = future.get(); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java new file mode 100644 index 00000000..fbea63d2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncUpdateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncUpdateWorkflowTemplate(); + } + + public static void syncUpdateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + UpdateWorkflowTemplateRequest request = + UpdateWorkflowTemplateRequest.newBuilder() + .setTemplate(WorkflowTemplate.newBuilder().build()) + .build(); + WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(request); + } + } +} +// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java new file mode 100644 index 00000000..54295b8b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START +// dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplate; +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; + +public class SyncUpdateWorkflowTemplateWorkflowtemplate { + + public static void main(String[] args) throws Exception { + syncUpdateWorkflowTemplateWorkflowtemplate(); + } + + public static void syncUpdateWorkflowTemplateWorkflowtemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (WorkflowTemplateServiceClient workflowTemplateServiceClient = + WorkflowTemplateServiceClient.create()) { + WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); + WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template); + } + } +} +// [END +// dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java new file mode 100644 index 00000000..cf63ba11 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataproc.v1.samples; + +// [START dataproc_v1_generated_workflowtemplateservicesettings_createworkflowtemplate_sync] +import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; +import java.time.Duration; + +public class SyncCreateWorkflowTemplate { + + public static void main(String[] args) throws Exception { + syncCreateWorkflowTemplate(); + } + + public static void syncCreateWorkflowTemplate() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder = + WorkflowTemplateServiceSettings.newBuilder(); + workflowTemplateServiceSettingsBuilder + .createWorkflowTemplateSettings() + .setRetrySettings( + workflowTemplateServiceSettingsBuilder + .createWorkflowTemplateSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + WorkflowTemplateServiceSettings workflowTemplateServiceSettings = + workflowTemplateServiceSettingsBuilder.build(); + } +} +// [END dataproc_v1_generated_workflowtemplateservicesettings_createworkflowtemplate_sync] From babb3de88b69c79ed607332256ae00d265358ff0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:07:26 -0400 Subject: [PATCH 452/519] chore: Disable CLIRR checks on releas (#1474) (#878) Source-Link: https://github.com/googleapis/synthtool/commit/7a220e27993a25ab3cda26510d5619d97b6952a9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/release/stage.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f0625e4d..a454a61e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 -# created: 2022-06-27T15:01:06.405564326Z + digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 +# created: 2022-06-29T23:17:33.110417661Z diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 77dc4e8f..1dba8de1 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -32,6 +32,7 @@ retry_with_backoff 3 10 \ mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ + -Dclirr.skip=true \ -DperformRelease=true \ -Dgpg.executable=gpg \ -Dgpg.passphrase=${GPG_PASSPHRASE} \ @@ -42,4 +43,4 @@ then mvn nexus-staging:release -B \ -DperformRelease=true \ --settings=settings.xml -fi \ No newline at end of file +fi From 339135cb024f1089920dd94057e211e9bfcd3212 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 1 Jul 2022 11:48:21 -0400 Subject: [PATCH 453/519] ci: removing clirr from required checks (#875) --- .github/sync-repo-settings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6f09d695..dd5626f3 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -11,7 +11,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (8) - units (11) - 'Kokoro - Test: Integration' @@ -26,7 +25,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (7) - units (8) - units (11) From a403ec0c2cbfefd561e81d8523a9f2ee4fe30142 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:32:33 +0000 Subject: [PATCH 454/519] chore(main): release 4.0.0 (#876) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release *beep* *boop* --- ## [4.0.0](https://github.com/googleapis/java-dataproc/compare/v3.1.2...v4.0.0) (2022-07-01) ### ⚠ BREAKING CHANGES * Remove `temp_bucket` from VirtualClusterConfig, as its value was not used ### Features * Enable REST transport for most of Java and Go clients ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) ### Bug Fixes * Move `yarn_config` into a `oneof` ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) * Remove `temp_bucket` from VirtualClusterConfig, as its value was not used ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) * update gapic-generator-java with mock service generation fixes ([#833](https://github.com/googleapis/java-dataproc/issues/833)) ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 18 ++++++++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 36 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a841089..04974a52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [4.0.0](https://github.com/googleapis/java-dataproc/compare/v3.1.2...v4.0.0) (2022-07-01) + + +### ⚠ BREAKING CHANGES + +* Remove `temp_bucket` from VirtualClusterConfig, as its value was not used + +### Features + +* Enable REST transport for most of Java and Go clients ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) + + +### Bug Fixes + +* Move `yarn_config` into a `oneof` ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) +* Remove `temp_bucket` from VirtualClusterConfig, as its value was not used ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) +* update gapic-generator-java with mock service generation fixes ([#833](https://github.com/googleapis/java-dataproc/issues/833)) ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) + ## [3.1.2](https://github.com/googleapis/java-dataproc/compare/v3.1.1...v3.1.2) (2022-06-23) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index fbcfca30..5472c19a 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 3.1.3-SNAPSHOT + 4.0.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 3.1.3-SNAPSHOT + 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 91f6ded0..be053fa9 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.3-SNAPSHOT + 4.0.0 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 3.1.3-SNAPSHOT + 4.0.0 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 52022e19..25df7314 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.3-SNAPSHOT + 4.0.0 diff --git a/pom.xml b/pom.xml index be056ecd..2bcf8600 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 3.1.3-SNAPSHOT + 4.0.0 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 com.google.cloud google-cloud-dataproc - 3.1.3-SNAPSHOT + 4.0.0 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index e5715ad4..24ebbc53 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 3.1.3-SNAPSHOT + 4.0.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 3.1.3-SNAPSHOT + 4.0.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9122f2bb..ff36f467 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 3.1.3-SNAPSHOT + 4.0.0 diff --git a/versions.txt b/versions.txt index a9ab643d..f4da4126 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:3.1.2:3.1.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:3.1.2:3.1.3-SNAPSHOT -proto-google-cloud-dataproc-v1:3.1.2:3.1.3-SNAPSHOT +google-cloud-dataproc:4.0.0:4.0.0 +grpc-google-cloud-dataproc-v1:4.0.0:4.0.0 +proto-google-cloud-dataproc-v1:4.0.0:4.0.0 From 1cfa5ba887d770535c54fc7f78c7e5c022bb33dc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:50:20 +0000 Subject: [PATCH 455/519] chore(main): release 4.0.1-SNAPSHOT (#879) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 5472c19a..41706183 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.0 + 4.0.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index be053fa9..fc77c37e 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.1-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.0 + 4.0.1-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 25df7314..ffe7135d 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.0 + 4.0.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2bcf8600..0b81e809 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.0 + 4.0.1-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.1-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 24ebbc53..6634448c 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.0 + 4.0.1-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.0 + 4.0.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ff36f467..246463b8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index f4da4126..eb57b9b9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.0:4.0.0 -grpc-google-cloud-dataproc-v1:4.0.0:4.0.0 -proto-google-cloud-dataproc-v1:4.0.0:4.0.0 +google-cloud-dataproc:4.0.0:4.0.1-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.0:4.0.1-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.0:4.0.1-SNAPSHOT From 66489aac3f27e16db38610ec9a5f3a3c2b981134 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:02:30 +0000 Subject: [PATCH 456/519] chore: fix minor typos in README and pom templates (#1479) (#882) Source-Link: https://github.com/googleapis/synthtool/commit/18d4e9bb50d0dfb3291de18c51b96a2c835e2446 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 --- .github/.OwlBot.lock.yaml | 4 ++-- README.md | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a454a61e..1b645c01 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 -# created: 2022-06-29T23:17:33.110417661Z + digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 +# created: 2022-07-07T14:26:11.880812641Z diff --git a/README.md b/README.md index 8a5ddb14..6ff49ac8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Java idiomatic client for [Dataproc][product-docs]. ## Quickstart -If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -47,23 +47,23 @@ If you are using Maven without BOM, add this to your dependencies: ``` -If you are using Gradle 5.x or later, add this to your dependencies +If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy implementation platform('com.google.cloud:libraries-bom:25.4.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` -If you are using Gradle without BOM, add this to your dependencies +If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:3.1.2' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.0' ``` -If you are using SBT, add this to your dependencies +If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "3.1.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.0" ``` ## Authentication From df255acb2a18cd2a517e03e98a0e145199ef91b6 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 11 Jul 2022 17:34:38 -0400 Subject: [PATCH 457/519] chore: mark native image checks as required (#877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: add native image checks as required * Update sync-repo-settings.yaml remove clirr checks * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> Co-authored-by: Owl Bot --- .github/sync-repo-settings.yaml | 2 ++ README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index dd5626f3..0501f63f 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -16,6 +16,8 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - cla/google - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 diff --git a/README.md b/README.md index 6ff49ac8..327a19f2 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.4.0') +implementation platform('com.google.cloud:libraries-bom:26.0.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` From 4526e595100d74fb15f252a48cbe9916f5f3ad50 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 23:34:56 +0200 Subject: [PATCH 458/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 (#880) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 41706183..9cdbb8de 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index 0b81e809..aa953f92 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 From fd5c83be877191ea98040466d59e708bdb5e8424 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 12 Jul 2022 17:53:00 +0200 Subject: [PATCH 459/519] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 327a19f2..5171dde0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 35561dbf..3a9f3f35 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From a97436a1f2234b7f9967a1e2262610f856810435 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 12 Jul 2022 18:26:20 +0200 Subject: [PATCH 460/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4 (#881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5171dde0..97cac05e 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 3.1.2 + 4.0.0 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b00277cb..fbff01a5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 3.1.2 + 4.0.0 From 79ea3aaea253356a95656e0acca50293eefd979a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Jul 2022 19:34:29 +0000 Subject: [PATCH 461/519] fix: enable longpaths support for windows test (#1485) (#884) Source-Link: https://github.com/googleapis/synthtool/commit/73365620c41d96e97ff474b2c4d39b890ad51967 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/ci.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1b645c01..de9173d9 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 -# created: 2022-07-07T14:26:11.880812641Z + digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 +# created: 2022-07-13T13:53:17.676447481Z diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83ef7f9c..e3bb26e3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,6 +39,8 @@ jobs: windows: runs-on: windows-latest steps: + - name: Support longpaths + run: git config --system core.longpaths true - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: From a851336a8ad1330284fad4a6825ba1b80b505384 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:04:29 +0000 Subject: [PATCH 462/519] chore(main): release 4.0.1 (#885) :robot: I have created a release *beep* *boop* --- ## [4.0.1](https://github.com/googleapis/java-dataproc/compare/v4.0.0...v4.0.1) (2022-07-13) ### Bug Fixes * enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-dataproc/issues/1485)) ([#884](https://github.com/googleapis/java-dataproc/issues/884)) ([79ea3aa](https://github.com/googleapis/java-dataproc/commit/79ea3aaea253356a95656e0acca50293eefd979a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04974a52..f8d0cf59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.1](https://github.com/googleapis/java-dataproc/compare/v4.0.0...v4.0.1) (2022-07-13) + + +### Bug Fixes + +* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-dataproc/issues/1485)) ([#884](https://github.com/googleapis/java-dataproc/issues/884)) ([79ea3aa](https://github.com/googleapis/java-dataproc/commit/79ea3aaea253356a95656e0acca50293eefd979a)) + ## [4.0.0](https://github.com/googleapis/java-dataproc/compare/v3.1.2...v4.0.0) (2022-07-01) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 9cdbb8de..ae40ba3f 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.1-SNAPSHOT + 4.0.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.1-SNAPSHOT + 4.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index fc77c37e..ef0f529c 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.1-SNAPSHOT + 4.0.1 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.1-SNAPSHOT + 4.0.1 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index ffe7135d..84334327 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.1-SNAPSHOT + 4.0.1 diff --git a/pom.xml b/pom.xml index aa953f92..88ab86c8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.1-SNAPSHOT + 4.0.1 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 com.google.cloud google-cloud-dataproc - 4.0.1-SNAPSHOT + 4.0.1 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 6634448c..2666f580 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1-SNAPSHOT + 4.0.1 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.1-SNAPSHOT + 4.0.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 246463b8..da04bde5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.1-SNAPSHOT + 4.0.1 diff --git a/versions.txt b/versions.txt index eb57b9b9..acc58821 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.0:4.0.1-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.0:4.0.1-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.0:4.0.1-SNAPSHOT +google-cloud-dataproc:4.0.1:4.0.1 +grpc-google-cloud-dataproc-v1:4.0.1:4.0.1 +proto-google-cloud-dataproc-v1:4.0.1:4.0.1 From 88bd561d2f4de29a3874446db97bb29e5bbe6c4f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 17:04:15 +0200 Subject: [PATCH 463/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 88ab86c8..eb4da26b 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From a10d2e1df5b55c29790c75f65195a5e2f2a06dfc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:36:16 +0000 Subject: [PATCH 464/519] ci: update template so GAPIC_AUTO repos do not require special approvers for Java code (#1494) (#889) Source-Link: https://github.com/googleapis/synthtool/commit/da89e53878d92467eb648c610e64f94a614915cc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/CODEOWNERS | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..6610882f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 +# created: 2022-07-18T21:44:23.94208526Z diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d0d7c99f..140b3a10 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,7 +6,7 @@ # The @googleapis/api-dataproc is the default owner for changes in this repo * @googleapis/yoshi-java @googleapis/api-dataproc -**/*.java @googleapis/api-dataproc + # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers From 5184e3f9d79e023bbb3812e00d793596980ebe98 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:20:16 +0200 Subject: [PATCH 465/519] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index fae88916..ff6b4dfb 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From 789c687fb4e009641160024067f7ecf21987ebf9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:26:52 +0000 Subject: [PATCH 466/519] chore(bazel): update protobuf to v3.21.3 (#891) - [ ] Regenerate this pull request now. chore(bazel): update gax-java to 2.18.4 PiperOrigin-RevId: 463115700 Source-Link: https://github.com/googleapis/googleapis/commit/52130a9c3c289e6bc4ab1784bdde6081abdf3dd9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6a4d9d9bb3afb20b0f5fa4f5d9f6740b1d0eb19a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmE0ZDlkOWJiM2FmYjIwYjBmNWZhNGY1ZDlmNjc0MGIxZDBlYjE5YSJ9 --- .../com/google/cloud/dataproc/v1/GkeNodePoolTarget.java | 4 ++-- .../java/com/google/cloud/dataproc/v1/SoftwareConfig.java | 4 ++-- ...eateAutoscalingPolicyLocationnameAutoscalingpolicy.java | 6 ++---- ...CreateAutoscalingPolicyRegionnameAutoscalingpolicy.java | 6 ++---- ...SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java | 6 ++---- .../SyncDeleteAutoscalingPolicy.java | 1 + .../SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java | 7 +++---- .../SyncDeleteAutoscalingPolicyString.java | 1 + .../SyncGetAutoscalingPolicyAutoscalingpolicyname.java | 6 ++---- .../SyncListAutoscalingPoliciesLocationname.java | 6 ++---- .../SyncListAutoscalingPoliciesRegionname.java | 6 ++---- .../SyncUpdateAutoscalingPolicyAutoscalingpolicy.java | 6 ++---- .../batchcontrollerclient/deletebatch/SyncDeleteBatch.java | 1 + .../deletebatch/SyncDeleteBatchBatchname.java | 1 + .../deletebatch/SyncDeleteBatchString.java | 1 + .../deletecluster/SyncDeleteCluster.java | 1 + .../deletecluster/SyncDeleteClusterStringStringString.java | 1 + ...yncUpdateClusterStringStringStringClusterFieldmask.java | 6 ++---- .../v1/jobcontrollerclient/deletejob/SyncDeleteJob.java | 1 + .../deletejob/SyncDeleteJobStringStringString.java | 1 + ...CreateWorkflowTemplateLocationnameWorkflowtemplate.java | 6 ++---- ...ncCreateWorkflowTemplateRegionnameWorkflowtemplate.java | 6 ++---- .../SyncCreateWorkflowTemplateStringWorkflowtemplate.java | 6 ++---- .../deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java | 1 + .../SyncDeleteWorkflowTemplateString.java | 1 + .../SyncDeleteWorkflowTemplateWorkflowtemplatename.java | 7 +++---- .../SyncGetWorkflowTemplateWorkflowtemplatename.java | 6 ++---- .../AsyncInstantiateInlineWorkflowTemplate.java | 3 +-- .../AsyncInstantiateInlineWorkflowTemplateLRO.java | 6 ++---- .../SyncInstantiateInlineWorkflowTemplate.java | 4 ++-- ...InlineWorkflowTemplateLocationnameWorkflowtemplate.java | 7 +++---- ...teInlineWorkflowTemplateRegionnameWorkflowtemplate.java | 7 +++---- ...ntiateInlineWorkflowTemplateStringWorkflowtemplate.java | 7 +++---- .../SyncInstantiateWorkflowTemplate.java | 1 + .../SyncInstantiateWorkflowTemplateString.java | 4 ++-- ...ncInstantiateWorkflowTemplateStringMapstringstring.java | 7 +++---- ...yncInstantiateWorkflowTemplateWorkflowtemplatename.java | 7 +++---- ...orkflowTemplateWorkflowtemplatenameMapstringstring.java | 7 +++---- .../SyncListWorkflowTemplatesLocationname.java | 3 +-- .../SyncUpdateWorkflowTemplateWorkflowtemplate.java | 6 ++---- 40 files changed, 74 insertions(+), 100 deletions(-) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java index 1e35fc6b..06b158b6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java @@ -1299,8 +1299,8 @@ public int getRolesValue(int index) { * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of roles at the given index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for roles to set. * @return This builder for chaining. */ public Builder setRolesValue(int index, int value) { diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java index 0bc4e63e..94fe3991 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java @@ -1493,8 +1493,8 @@ public int getOptionalComponentsValue(int index) { * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for optionalComponents to set. * @return This builder for chaining. */ public Builder setOptionalComponentsValue(int index, int value) { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java index b945d3f9..2d08b959 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.LocationName; @@ -40,5 +39,4 @@ public static void syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy() th } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java index 46aebc7c..8b70651c 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.RegionName; @@ -40,5 +39,4 @@ public static void syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy() thro } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java index 2300f67b..05afde5f 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.LocationName; @@ -40,5 +39,4 @@ public static void syncCreateAutoscalingPolicyStringAutoscalingpolicy() throws E } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java index ff83b8b2..a5ba2c2c 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java @@ -20,6 +20,7 @@ import com.google.cloud.dataproc.v1.AutoscalingPolicyName; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; +import com.google.protobuf.Empty; public class SyncDeleteAutoscalingPolicy { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java index 9dc278cb..c30f1a49 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicyName; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteAutoscalingPolicyAutoscalingpolicyname { @@ -39,5 +39,4 @@ public static void syncDeleteAutoscalingPolicyAutoscalingpolicyname() throws Exc } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java index d0c0a8a3..6b0c3cd9 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_string_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicyName; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteAutoscalingPolicyString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java index b25f80b6..e9d14580 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyName; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; @@ -40,5 +39,4 @@ public static void syncGetAutoscalingPolicyAutoscalingpolicyname() throws Except } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java index b38cfb05..7c32f189 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.LocationName; @@ -41,5 +40,4 @@ public static void syncListAutoscalingPoliciesLocationname() throws Exception { } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java index 97baf7e3..577c18c9 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; import com.google.cloud.dataproc.v1.RegionName; @@ -41,5 +40,4 @@ public static void syncListAutoscalingPoliciesRegionname() throws Exception { } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java index a73a1463..8688d747 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] +// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] import com.google.cloud.dataproc.v1.AutoscalingPolicy; import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; @@ -37,5 +36,4 @@ public static void syncUpdateAutoscalingPolicyAutoscalingpolicy() throws Excepti } } } -// [END -// dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] +// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java index 8b73d560..2917b430 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java @@ -20,6 +20,7 @@ import com.google.cloud.dataproc.v1.BatchControllerClient; import com.google.cloud.dataproc.v1.BatchName; import com.google.cloud.dataproc.v1.DeleteBatchRequest; +import com.google.protobuf.Empty; public class SyncDeleteBatch { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java index 4dda92f8..05bc0eb6 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_batchcontrollerclient_deletebatch_batchname_sync] import com.google.cloud.dataproc.v1.BatchControllerClient; import com.google.cloud.dataproc.v1.BatchName; +import com.google.protobuf.Empty; public class SyncDeleteBatchBatchname { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java index 490094e5..8c02f3cd 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_batchcontrollerclient_deletebatch_string_sync] import com.google.cloud.dataproc.v1.BatchControllerClient; import com.google.cloud.dataproc.v1.BatchName; +import com.google.protobuf.Empty; public class SyncDeleteBatchString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java index 9df6e95a..b56f7168 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_clustercontrollerclient_deletecluster_sync] import com.google.cloud.dataproc.v1.ClusterControllerClient; import com.google.cloud.dataproc.v1.DeleteClusterRequest; +import com.google.protobuf.Empty; public class SyncDeleteCluster { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java index 8c2e6477..1e98763d 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java @@ -18,6 +18,7 @@ // [START dataproc_v1_generated_clustercontrollerclient_deletecluster_stringstringstring_sync] import com.google.cloud.dataproc.v1.ClusterControllerClient; +import com.google.protobuf.Empty; public class SyncDeleteClusterStringStringString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java index 9a8c039a..cceeaf22 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] +// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] import com.google.cloud.dataproc.v1.Cluster; import com.google.cloud.dataproc.v1.ClusterControllerClient; import com.google.protobuf.FieldMask; @@ -44,5 +43,4 @@ public static void syncUpdateClusterStringStringStringClusterFieldmask() throws } } } -// [END -// dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] +// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java index 10c00374..150a024f 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_jobcontrollerclient_deletejob_sync] import com.google.cloud.dataproc.v1.DeleteJobRequest; import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.protobuf.Empty; public class SyncDeleteJob { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java index f9017217..b1492388 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java @@ -18,6 +18,7 @@ // [START dataproc_v1_generated_jobcontrollerclient_deletejob_stringstringstring_sync] import com.google.cloud.dataproc.v1.JobControllerClient; +import com.google.protobuf.Empty; public class SyncDeleteJobStringStringString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java index 33e5470a..46316bb8 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] import com.google.cloud.dataproc.v1.LocationName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; @@ -40,5 +39,4 @@ public static void syncCreateWorkflowTemplateLocationnameWorkflowtemplate() thro } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java index cf35bb05..d94b034f 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] import com.google.cloud.dataproc.v1.RegionName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; @@ -40,5 +39,4 @@ public static void syncCreateWorkflowTemplateRegionnameWorkflowtemplate() throws } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java index 2f4f08a4..9599406f 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] import com.google.cloud.dataproc.v1.RegionName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; @@ -40,5 +39,4 @@ public static void syncCreateWorkflowTemplateStringWorkflowtemplate() throws Exc } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java index 1a507e1e..a43b0f57 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java @@ -20,6 +20,7 @@ import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteWorkflowTemplate { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java index 42458d48..b4829ea6 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java @@ -19,6 +19,7 @@ // [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_string_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteWorkflowTemplateString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java index 11b4a2ca..5e859046 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteWorkflowTemplateWorkflowtemplatename { @@ -39,5 +39,4 @@ public static void syncDeleteWorkflowTemplateWorkflowtemplatename() throws Excep } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java index 0a298e88..48256068 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; @@ -40,5 +39,4 @@ public static void syncGetWorkflowTemplateWorkflowtemplatename() throws Exceptio } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java index fdf5cc10..132e38f7 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.RegionName; diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java index d80de992..b486fc8f 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] import com.google.api.gax.longrunning.OperationFuture; import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.RegionName; @@ -52,5 +51,4 @@ public static void asyncInstantiateInlineWorkflowTemplateLRO() throws Exception } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java index c23cf5e7..a7c1f7a4 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java @@ -16,12 +16,12 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.RegionName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateInlineWorkflowTemplate { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java index 0c5710ec..a77df730 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java @@ -16,11 +16,11 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] import com.google.cloud.dataproc.v1.LocationName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate { @@ -40,5 +40,4 @@ public static void syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemp } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java index ab06515a..66bc4858 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java @@ -16,11 +16,11 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] import com.google.cloud.dataproc.v1.RegionName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate { @@ -40,5 +40,4 @@ public static void syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtempla } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java index d9a3dace..611bcc2d 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java @@ -16,11 +16,11 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] import com.google.cloud.dataproc.v1.RegionName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate { @@ -40,5 +40,4 @@ public static void syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate() } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java index 239177dd..bf702bf2 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java @@ -20,6 +20,7 @@ import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; import java.util.HashMap; public class SyncInstantiateWorkflowTemplate { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java index be5ea360..55c193f4 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateWorkflowTemplateString { diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java index 58415442..9e46f781 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; import java.util.HashMap; import java.util.Map; @@ -43,5 +43,4 @@ public static void syncInstantiateWorkflowTemplateStringMapstringstring() throws } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java index 816521f3..11d52b7a 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; public class SyncInstantiateWorkflowTemplateWorkflowtemplatename { @@ -39,5 +39,4 @@ public static void syncInstantiateWorkflowTemplateWorkflowtemplatename() throws } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java index 56ebcc7a..a0381f9b 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java @@ -16,10 +16,10 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] import com.google.cloud.dataproc.v1.WorkflowTemplateName; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; +import com.google.protobuf.Empty; import java.util.HashMap; import java.util.Map; @@ -43,5 +43,4 @@ public static void syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstrings } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java index 986db7ee..ec3b0181 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] import com.google.cloud.dataproc.v1.LocationName; import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java index 54295b8b..2a8badde 100644 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java +++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java @@ -16,8 +16,7 @@ package com.google.cloud.dataproc.v1.samples; -// [START -// dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] +// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] import com.google.cloud.dataproc.v1.WorkflowTemplate; import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; @@ -37,5 +36,4 @@ public static void syncUpdateWorkflowTemplateWorkflowtemplate() throws Exception } } } -// [END -// dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] +// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] From 5b958b630e7fd27d9c70b8f53a577bfad570a1de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:44:30 +0200 Subject: [PATCH 467/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.10.0 (#894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.7.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.10.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-storagecomparev293v2100-2022-07-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.3...v2.10.0) ##### Features - Custom Placement Config Dual Region Support ([#​1470](https://togithub.com/googleapis/java-storage/issues/1470)) ([36440fc](https://togithub.com/googleapis/java-storage/commit/36440fc587976acc78f4dae480214b80ad3fc477)) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-storage/issues/1485)) ([#​1506](https://togithub.com/googleapis/java-storage/issues/1506)) ([e36e809](https://togithub.com/googleapis/java-storage/commit/e36e80934644ccd5e873754c625367f24e5fc7f3)) ##### Documentation - **sample:** upgrade maven-surefire and remove junit-platform-native ([#​1476](https://togithub.com/googleapis/java-storage/issues/1476)) ([9b222e4](https://togithub.com/googleapis/java-storage/commit/9b222e483937bd0639123899442c1e863683718a)) ##### Dependencies - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​1501](https://togithub.com/googleapis/java-storage/issues/1501)) ([36e3898](https://togithub.com/googleapis/java-storage/commit/36e389857ea3f86350af5763c829e5f1caaaa3ec)) ### [`v2.9.3`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​293-httpsgithubcomgoogleapisjava-storagecomparev292v293-2022-07-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.2...v2.9.3) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220705-1.32.1 ([#​1494](https://togithub.com/googleapis/java-storage/issues/1494)) ([5612f0f](https://togithub.com/googleapis/java-storage/commit/5612f0f929582c9e720d67683f9441d96080fb14)) ### [`v2.9.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​292-httpsgithubcomgoogleapisjava-storagecomparev291v292-2022-07-06) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.1...v2.9.2) ##### Dependencies - update kms.version to v0.97.0 ([#​1488](https://togithub.com/googleapis/java-storage/issues/1488)) ([852cafe](https://togithub.com/googleapis/java-storage/commit/852cafe7db018a6fd666c3490c96eeca34c4a1ed)) ### [`v2.9.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​291-httpsgithubcomgoogleapisjava-storagecomparev290v291-2022-07-06) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.0...v2.9.1) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.0 ([#​1487](https://togithub.com/googleapis/java-storage/issues/1487)) ([5a8f6e5](https://togithub.com/googleapis/java-storage/commit/5a8f6e5f29e4dfb2dc03cad8c77e4b504bc83019)) ### [`v2.9.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-storagecomparev281v290-2022-06-27) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.8.1...v2.9.0) ##### Features - Enable REST transport for most of Java and Go clients ([#​1469](https://togithub.com/googleapis/java-storage/issues/1469)) ([cfb6fd8](https://togithub.com/googleapis/java-storage/commit/cfb6fd8c1f13cb2115e5ff7ea7af41a9e27986b1)) ##### Documentation - Clarified how clients should work with resumable uploads ([#​1457](https://togithub.com/googleapis/java-storage/issues/1457)) ([15baa27](https://togithub.com/googleapis/java-storage/commit/15baa27c97aacca115981f5c14d942a8ddd6cb1f)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#​1468](https://togithub.com/googleapis/java-storage/issues/1468)) ([1a817fe](https://togithub.com/googleapis/java-storage/commit/1a817fef87e626e74dab47eaff33c1d9d3c56bb5)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#​1463](https://togithub.com/googleapis/java-storage/issues/1463)) ([d42c570](https://togithub.com/googleapis/java-storage/commit/d42c5704e4fe7341dfdd0562fa0bdbcd4bc99c7e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#​1464](https://togithub.com/googleapis/java-storage/issues/1464)) ([2f35a4f](https://togithub.com/googleapis/java-storage/commit/2f35a4f597870a4506119946510ba82fbb7f9449)) - update kms.version to v0.96.3 ([#​1471](https://togithub.com/googleapis/java-storage/issues/1471)) ([ceb7fa6](https://togithub.com/googleapis/java-storage/commit/ceb7fa665c35f6b00aebaa665246597b9ee4632a)) ### [`v2.8.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​281-httpsgithubcomgoogleapisjava-storagecomparev280v281-2022-06-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.8.0...v2.8.1) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220608-1.32.1 ([#​1448](https://togithub.com/googleapis/java-storage/issues/1448)) ([96676cd](https://togithub.com/googleapis/java-storage/commit/96676cd830aca27c23c08e02e8cc7c58dece686c)) ### [`v2.8.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-storagecomparev272v280-2022-06-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.2...v2.8.0) ##### Features - Prefix/Suffix Matches Lifecycle Condition ([#​1389](https://togithub.com/googleapis/java-storage/issues/1389)) ([20c8848](https://togithub.com/googleapis/java-storage/commit/20c88489d80d716da28f78fed628b54345f32ca4)) - Support AbortIncompleteMultipartUpload LifecycleAction ([#​1347](https://togithub.com/googleapis/java-storage/issues/1347)) ([7c3aba2](https://togithub.com/googleapis/java-storage/commit/7c3aba2f0a26ac550e4f37f9287ed6b041d75919)) ##### Bug Fixes - update request method of HttpStorageRpc to properly configure offset on requests ([#​1434](https://togithub.com/googleapis/java-storage/issues/1434)) ([72dc0df](https://togithub.com/googleapis/java-storage/commit/72dc0dff20d76875401dac721c0268c32e475e39)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220604-1.32.1 ([#​1438](https://togithub.com/googleapis/java-storage/issues/1438)) ([df8fcd9](https://togithub.com/googleapis/java-storage/commit/df8fcd9925ef06c91ebebe0a3a7b5aedeb15ec4d)) - update dependency com.google.cloud:google-cloud-pubsub to v1.119.0 ([#​1426](https://togithub.com/googleapis/java-storage/issues/1426)) ([93ba28c](https://togithub.com/googleapis/java-storage/commit/93ba28cff16d428e0222078dc60dbf49fda7632a)) ##### [2.7.2](https://togithub.com/googleapis/java-storage/compare/v2.7.1...v2.7.2) (2022-05-27) ##### Dependencies - update kms.version to v0.96.1 ([#​1418](https://togithub.com/googleapis/java-storage/issues/1418)) ([d2f325b](https://togithub.com/googleapis/java-storage/commit/d2f325b3d31ac5da367873be1fb530fb6356036a)) ##### [2.7.1](https://togithub.com/googleapis/java-storage/compare/v2.7.0...v2.7.1) (2022-05-24) ##### Dependencies - update kms.version to v0.96.0 ([#​1408](https://togithub.com/googleapis/java-storage/issues/1408)) ([7501ffc](https://togithub.com/googleapis/java-storage/commit/7501ffc97d5a7943d3852ea26133b6c62cbbff1f)) ### [`v2.7.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​272-httpsgithubcomgoogleapisjava-storagecomparev271v272-2022-05-27) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.1...v2.7.2) ### [`v2.7.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​271-httpsgithubcomgoogleapisjava-storagecomparev270v271-2022-05-24) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.0...v2.7.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fbff01a5..cc444676 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.7.0 + 2.10.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index da04bde5..26463cb1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.7.0 + 2.10.0 junit From 5e5accc258f54686c924fec12cf19041792b44de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:46:38 +0200 Subject: [PATCH 468/519] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#893) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.1` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisjava-shared-configcomparev152v153-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​497](https://togithub.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://togithub.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) - Update doclet to latest version 1.6.0 ([38fb7c3](https://togithub.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) ### [`v1.5.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​152-httpsgithubcomgoogleapisjava-shared-configcomparev151v152-2022-07-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v10 ([#​435](https://togithub.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://togithub.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​488](https://togithub.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://togithub.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​489](https://togithub.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://togithub.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- google-cloud-dataproc-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index ae40ba3f..2196c0f9 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Cloud Dataproc BOM diff --git a/pom.xml b/pom.xml index eb4da26b..e95579d0 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 From 6eded42a2af6d511430681b3d97c56aabdd61197 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:52:20 +0200 Subject: [PATCH 469/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#892) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1) ##### Dependencies - update dependency com.google.code.gson:gson to v2.9.1 ([#​766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a)) - update gax.version to v2.18.7 ([#​767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712)) - update google.core.version to v2.8.6 ([#​770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55)) ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e95579d0..6c0bd69f 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.1 pom import From 213a20c8dbe6d20c1608928bb622ef8fcbd44e1a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 07:04:29 +0200 Subject: [PATCH 470/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.0 (#895) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-storagecomparev2100v2110-2022-08-03) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.10.0...v2.11.0) ##### Features - introduce RPC CancelResumableWriteRequest ([#​1518](https://togithub.com/googleapis/java-storage/issues/1518)) ([f8811c6](https://togithub.com/googleapis/java-storage/commit/f8811c654109516116bbbe142f4b27ec7f63b5fb)) ##### Documentation - Refactor Custom Dual Region sample to work with API changes ([#​1516](https://togithub.com/googleapis/java-storage/issues/1516)) ([a60cace](https://togithub.com/googleapis/java-storage/commit/a60caced9584855f12cdb7cac8ad7606ba32a60a)) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.5 ([#​1527](https://togithub.com/googleapis/java-storage/issues/1527)) ([77072e3](https://togithub.com/googleapis/java-storage/commit/77072e3835bbeb802299fec1359c5f3ca13e3c8a)) - update dependency com.google.cloud:google-cloud-pubsub to v1.120.7 ([#​1530](https://togithub.com/googleapis/java-storage/issues/1530)) ([8c2ebad](https://togithub.com/googleapis/java-storage/commit/8c2ebad79affb766d842615aa30cc2a3dbe7d0de)) - update dependency com.google.cloud:google-cloud-pubsub to v1.120.8 ([#​1534](https://togithub.com/googleapis/java-storage/issues/1534)) ([723b100](https://togithub.com/googleapis/java-storage/commit/723b10014cafae257fa75d9c0bfd3fb0c34b9943)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#​1526](https://togithub.com/googleapis/java-storage/issues/1526)) ([f7fc0d2](https://togithub.com/googleapis/java-storage/commit/f7fc0d2f301bd22e96a0b43f8657cc738f49f278)) - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​1524](https://togithub.com/googleapis/java-storage/issues/1524)) ([0e74093](https://togithub.com/googleapis/java-storage/commit/0e74093f3dffd829f8fb9f2525c1502e1910fbe6))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index cc444676..1a5a6b72 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.10.0 + 2.11.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 26463cb1..290e77d2 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.10.0 + 2.11.0 junit From c530fb61c1f5adcbe65450dd04ee073ca1cbf9f8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 19:10:33 +0200 Subject: [PATCH 471/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.1 (#896) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.0` -> `2.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2111-httpsgithubcomgoogleapisjava-storagecomparev2110v2111-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.0...v2.11.1) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.9 ([#​1537](https://togithub.com/googleapis/java-storage/issues/1537)) ([ae17737](https://togithub.com/googleapis/java-storage/commit/ae17737342e262f7afd404e4c758a7fbf5530da5))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1a5a6b72..d80ffebb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.0 + 2.11.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 290e77d2..84a323a9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.0 + 2.11.1 junit From b47b000285be94dafbf98c7025637dc04703244c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Aug 2022 17:52:16 +0200 Subject: [PATCH 472/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.2 (#897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.1` -> `2.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/compatibility-slim/2.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/confidence-slim/2.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2112-httpsgithubcomgoogleapisjava-storagecomparev2111v2112-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.1...v2.11.2) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.10 ([#​1543](https://togithub.com/googleapis/java-storage/issues/1543)) ([8ff1dff](https://togithub.com/googleapis/java-storage/commit/8ff1dffb07141411daaf49ac9af570a1654eb2da))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d80ffebb..d7ee12d1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.1 + 2.11.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 84a323a9..522bbb72 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.1 + 2.11.2 junit From 829faaffb5a262977c92a3ee1a1627afbc23b887 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:06:16 +0000 Subject: [PATCH 473/519] chore(main): release 4.0.2-SNAPSHOT (#886) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 2196c0f9..77e1e310 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.1 + 4.0.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.1 + 4.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index ef0f529c..13079074 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.1 + 4.0.2-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.1 + 4.0.2-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 84334327..851c9630 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.1 + 4.0.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6c0bd69f..9928a667 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.1 + 4.0.2-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.1 + 4.0.2-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 2666f580..0ac2a36f 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.1 + 4.0.2-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.1 + 4.0.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 522bbb72..ea288d73 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.1 + 4.0.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index acc58821..366890d5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.1:4.0.1 -grpc-google-cloud-dataproc-v1:4.0.1:4.0.1 -proto-google-cloud-dataproc-v1:4.0.1:4.0.1 +google-cloud-dataproc:4.0.1:4.0.2-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.1:4.0.2-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.1:4.0.2-SNAPSHOT From 6709e60c6304fb77396384fe86aa37b381c5bab5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:36:14 +0000 Subject: [PATCH 474/519] chore(main): release 4.0.2 (#899) :robot: I have created a release *beep* *boop* --- ## [4.0.2](https://github.com/googleapis/java-dataproc/compare/v4.0.1...v4.0.2) (2022-08-09) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#892](https://github.com/googleapis/java-dataproc/issues/892)) ([6eded42](https://github.com/googleapis/java-dataproc/commit/6eded42a2af6d511430681b3d97c56aabdd61197)) * update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#894](https://github.com/googleapis/java-dataproc/issues/894)) ([5b958b6](https://github.com/googleapis/java-dataproc/commit/5b958b630e7fd27d9c70b8f53a577bfad570a1de)) * update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#895](https://github.com/googleapis/java-dataproc/issues/895)) ([213a20c](https://github.com/googleapis/java-dataproc/commit/213a20c8dbe6d20c1608928bb622ef8fcbd44e1a)) * update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#896](https://github.com/googleapis/java-dataproc/issues/896)) ([c530fb6](https://github.com/googleapis/java-dataproc/commit/c530fb61c1f5adcbe65450dd04ee073ca1cbf9f8)) * update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#897](https://github.com/googleapis/java-dataproc/issues/897)) ([b47b000](https://github.com/googleapis/java-dataproc/commit/b47b000285be94dafbf98c7025637dc04703244c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 11 +++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8d0cf59..f757d197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [4.0.2](https://github.com/googleapis/java-dataproc/compare/v4.0.1...v4.0.2) (2022-08-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#892](https://github.com/googleapis/java-dataproc/issues/892)) ([6eded42](https://github.com/googleapis/java-dataproc/commit/6eded42a2af6d511430681b3d97c56aabdd61197)) +* update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#894](https://github.com/googleapis/java-dataproc/issues/894)) ([5b958b6](https://github.com/googleapis/java-dataproc/commit/5b958b630e7fd27d9c70b8f53a577bfad570a1de)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#895](https://github.com/googleapis/java-dataproc/issues/895)) ([213a20c](https://github.com/googleapis/java-dataproc/commit/213a20c8dbe6d20c1608928bb622ef8fcbd44e1a)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#896](https://github.com/googleapis/java-dataproc/issues/896)) ([c530fb6](https://github.com/googleapis/java-dataproc/commit/c530fb61c1f5adcbe65450dd04ee073ca1cbf9f8)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#897](https://github.com/googleapis/java-dataproc/issues/897)) ([b47b000](https://github.com/googleapis/java-dataproc/commit/b47b000285be94dafbf98c7025637dc04703244c)) + ## [4.0.1](https://github.com/googleapis/java-dataproc/compare/v4.0.0...v4.0.1) (2022-07-13) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 77e1e310..043f45c3 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.2-SNAPSHOT + 4.0.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.2-SNAPSHOT + 4.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 13079074..2adfd6f1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.2-SNAPSHOT + 4.0.2 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.2-SNAPSHOT + 4.0.2 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 851c9630..28a37434 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.2-SNAPSHOT + 4.0.2 diff --git a/pom.xml b/pom.xml index 9928a667..317261e9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.2-SNAPSHOT + 4.0.2 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 com.google.cloud google-cloud-dataproc - 4.0.2-SNAPSHOT + 4.0.2 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 0ac2a36f..ebc7c0c4 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2-SNAPSHOT + 4.0.2 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.2-SNAPSHOT + 4.0.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ea288d73..fe236af0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.2-SNAPSHOT + 4.0.2 diff --git a/versions.txt b/versions.txt index 366890d5..efcccc1e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.1:4.0.2-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.1:4.0.2-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.1:4.0.2-SNAPSHOT +google-cloud-dataproc:4.0.2:4.0.2 +grpc-google-cloud-dataproc-v1:4.0.2:4.0.2 +proto-google-cloud-dataproc-v1:4.0.2:4.0.2 From eb43cf12da1491ce1b8b9dd7342a06bce3c5da77 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 19:06:16 +0200 Subject: [PATCH 475/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.2 (#901) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.0` -> `4.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.2/compatibility-slim/4.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.2/confidence-slim/4.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 97cac05e..0d70c01f 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.2 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.2" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d7ee12d1..3fa7f76a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.0 + 4.0.2 From e3516698177fe5b5d3e62ccf8a07960deea8897c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 19:40:11 +0200 Subject: [PATCH 476/519] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#902) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d70c01f..60fcc127 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.0.0') +implementation platform('com.google.cloud:libraries-bom:26.1.0') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3a9f3f35..5469158f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 71bc050953ffc0807f2a3acf966783df9c5e724a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 16:38:36 +0200 Subject: [PATCH 477/519] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 317261e9..43431b77 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From 2427af409ffd13c45d9cea61bc51b055d3b305ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 17:10:13 +0200 Subject: [PATCH 478/519] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 43431b77..ae00527b 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From d1b284a5eba0d40d13b94a8e651fb1c90b680292 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 22 Aug 2022 19:50:14 +0200 Subject: [PATCH 479/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.3 (#898) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.2` -> `2.11.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.3/compatibility-slim/2.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.3/confidence-slim/2.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.3`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2113-httpsgithubcomgoogleapisjava-storagecomparev2112v2113-2022-08-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.2...v2.11.3) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.11 ([#​1551](https://togithub.com/googleapis/java-storage/issues/1551)) ([0fc2d33](https://togithub.com/googleapis/java-storage/commit/0fc2d336c536deb3efe95e770d47fc898af12323))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3fa7f76a..73054640 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.2 + 2.11.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fe236af0..7c981ce7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.2 + 2.11.3 junit From 5dadf7f0baccfe9c10ef4e63a2aa1d709520dc8c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Sep 2022 23:32:16 +0200 Subject: [PATCH 480/519] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 4 ++-- samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60fcc127..90040f8c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import @@ -50,7 +50,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.0') +implementation platform('com.google.cloud:libraries-bom:26.1.1') implementation 'com.google.cloud:google-cloud-dataproc' ``` diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5469158f..f9f9a4c8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From f8f35e4377308421f7d1f0bb890adb1f69cc327c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Sep 2022 14:42:38 +0000 Subject: [PATCH 481/519] chore(main): release 4.0.3-SNAPSHOT (#900) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 043f45c3..79dbbb5b 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.2 + 4.0.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 2adfd6f1..d7796710 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.2 + 4.0.3-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 28a37434..de94fed3 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.2 + 4.0.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index ae00527b..2d4c512d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.2 + 4.0.3-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index ebc7c0c4..24d4e7f9 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.2 + 4.0.3-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.2 + 4.0.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7c981ce7..8913db0e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index efcccc1e..3be4f908 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.2:4.0.2 -grpc-google-cloud-dataproc-v1:4.0.2:4.0.2 -proto-google-cloud-dataproc-v1:4.0.2:4.0.2 +google-cloud-dataproc:4.0.2:4.0.3-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.2:4.0.3-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.2:4.0.3-SNAPSHOT From 3d2499480381281d107b4116254bb422fcfbc32a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Sep 2022 16:02:21 +0000 Subject: [PATCH 482/519] chore(main): release 4.0.3 (#906) :robot: I have created a release *beep* *boop* --- ## [4.0.3](https://github.com/googleapis/java-dataproc/compare/v4.0.2...v4.0.3) (2022-09-06) ### Dependencies * Update dependency com.google.cloud ([d1b284a](https://github.com/googleapis/java-dataproc/commit/d1b284a5eba0d40d13b94a8e651fb1c90b680292)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f757d197..1c030965 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.3](https://github.com/googleapis/java-dataproc/compare/v4.0.2...v4.0.3) (2022-09-06) + + +### Dependencies + +* Update dependency com.google.cloud ([d1b284a](https://github.com/googleapis/java-dataproc/commit/d1b284a5eba0d40d13b94a8e651fb1c90b680292)) + ## [4.0.2](https://github.com/googleapis/java-dataproc/compare/v4.0.1...v4.0.2) (2022-08-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 79dbbb5b..648ab6dc 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.3-SNAPSHOT + 4.0.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.3-SNAPSHOT + 4.0.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index d7796710..88218179 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.3-SNAPSHOT + 4.0.3 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.3-SNAPSHOT + 4.0.3 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index de94fed3..c11be5f6 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.3-SNAPSHOT + 4.0.3 diff --git a/pom.xml b/pom.xml index 2d4c512d..351d13b9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.3-SNAPSHOT + 4.0.3 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 com.google.cloud google-cloud-dataproc - 4.0.3-SNAPSHOT + 4.0.3 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 24d4e7f9..f28c79f6 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3-SNAPSHOT + 4.0.3 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.3-SNAPSHOT + 4.0.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8913db0e..0b8fc0be 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.3-SNAPSHOT + 4.0.3 diff --git a/versions.txt b/versions.txt index 3be4f908..3709d936 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.2:4.0.3-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.2:4.0.3-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.2:4.0.3-SNAPSHOT +google-cloud-dataproc:4.0.3:4.0.3 +grpc-google-cloud-dataproc-v1:4.0.3:4.0.3 +proto-google-cloud-dataproc-v1:4.0.3:4.0.3 From b76dfa91b5a5beeb5db727c59657dd248fae821c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Sep 2022 16:48:17 +0000 Subject: [PATCH 483/519] chore(main): release 4.0.4-SNAPSHOT (#907) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 648ab6dc..8e2ff41a 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.3 + 4.0.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.3 + 4.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 88218179..1d29fb6f 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.3 + 4.0.4-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.3 + 4.0.4-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index c11be5f6..abce5361 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.3 + 4.0.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 351d13b9..41fc9cfc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.3 + 4.0.4-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.3 + 4.0.4-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index f28c79f6..88bb3d0a 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.3 + 4.0.4-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.3 + 4.0.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0b8fc0be..25cab45f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.3 + 4.0.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3709d936..0bb6fa6c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.3:4.0.3 -grpc-google-cloud-dataproc-v1:4.0.3:4.0.3 -proto-google-cloud-dataproc-v1:4.0.3:4.0.3 +google-cloud-dataproc:4.0.3:4.0.4-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.3:4.0.4-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.3:4.0.4-SNAPSHOT From 258b5b577b7a2e01e1f2e53972dcf6cf8af7656a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 8 Sep 2022 03:32:32 +0200 Subject: [PATCH 484/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.3 (#908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.2` -> `4.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.3/compatibility-slim/4.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.3/confidence-slim/4.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 90040f8c..94a7056a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.2' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.2" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.3" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 73054640..f6c61329 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.2 + 4.0.3 From 687be3034d0ced2a43091da2e160fddf487513a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:40:31 +0200 Subject: [PATCH 485/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 41fc9cfc..1448d6c5 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From d5e3a8277936a12f1602faac53f8a05f09a9a165 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 04:04:16 +0000 Subject: [PATCH 486/519] chore(main): release 4.0.4 (#911) :robot: I have created a release *beep* *boop* --- ## [4.0.4](https://github.com/googleapis/java-dataproc/compare/v4.0.3...v4.0.4) (2022-09-09) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#910](https://github.com/googleapis/java-dataproc/issues/910)) ([687be30](https://github.com/googleapis/java-dataproc/commit/687be3034d0ced2a43091da2e160fddf487513a1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c030965..4ed4d744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.4](https://github.com/googleapis/java-dataproc/compare/v4.0.3...v4.0.4) (2022-09-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#910](https://github.com/googleapis/java-dataproc/issues/910)) ([687be30](https://github.com/googleapis/java-dataproc/commit/687be3034d0ced2a43091da2e160fddf487513a1)) + ## [4.0.3](https://github.com/googleapis/java-dataproc/compare/v4.0.2...v4.0.3) (2022-09-06) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 8e2ff41a..3b6e9574 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.4-SNAPSHOT + 4.0.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.4-SNAPSHOT + 4.0.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 1d29fb6f..47bdb7a1 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.4-SNAPSHOT + 4.0.4 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.4-SNAPSHOT + 4.0.4 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index abce5361..f6818549 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.4-SNAPSHOT + 4.0.4 diff --git a/pom.xml b/pom.xml index 1448d6c5..aa515da7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.4-SNAPSHOT + 4.0.4 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4 com.google.cloud google-cloud-dataproc - 4.0.4-SNAPSHOT + 4.0.4 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 88bb3d0a..4cd33d86 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4-SNAPSHOT + 4.0.4 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.4-SNAPSHOT + 4.0.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 25cab45f..4c8b1220 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.4-SNAPSHOT + 4.0.4 diff --git a/versions.txt b/versions.txt index 0bb6fa6c..deaac26a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.3:4.0.4-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.3:4.0.4-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.3:4.0.4-SNAPSHOT +google-cloud-dataproc:4.0.4:4.0.4 +grpc-google-cloud-dataproc-v1:4.0.4:4.0.4 +proto-google-cloud-dataproc-v1:4.0.4:4.0.4 From 710dd866ec7762dcef0c3f382ed0bd67286d6194 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:48:14 +0000 Subject: [PATCH 487/519] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#909) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- README.md | 4 +- .../v1/AutoscalingPolicyServiceClient.java | 182 ++++++++---- .../v1/AutoscalingPolicyServiceSettings.java | 7 +- .../dataproc/v1/BatchControllerClient.java | 154 +++++++--- .../dataproc/v1/BatchControllerSettings.java | 12 +- .../dataproc/v1/ClusterControllerClient.java | 238 ++++++++++----- .../v1/ClusterControllerSettings.java | 12 +- .../dataproc/v1/JobControllerClient.java | 189 ++++++++---- .../dataproc/v1/JobControllerSettings.java | 12 +- .../v1/WorkflowTemplateServiceClient.java | 273 +++++++++++++----- .../v1/WorkflowTemplateServiceSettings.java | 7 +- .../cloud/dataproc/v1/package-info.java | 35 ++- .../AutoscalingPolicyServiceStubSettings.java | 7 +- .../v1/stub/BatchControllerStubSettings.java | 12 +- .../stub/ClusterControllerStubSettings.java | 12 +- .../HttpJsonAutoscalingPolicyServiceStub.java | 6 +- .../v1/stub/HttpJsonBatchControllerStub.java | 3 +- .../stub/HttpJsonClusterControllerStub.java | 15 +- .../v1/stub/HttpJsonJobControllerStub.java | 13 +- .../HttpJsonWorkflowTemplateServiceStub.java | 8 +- .../v1/stub/JobControllerStubSettings.java | 12 +- .../WorkflowTemplateServiceStubSettings.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateAutoscalingPolicy.java | 7 +- .../SyncCreateAutoscalingPolicy.java | 7 +- ...ngPolicyLocationnameAutoscalingpolicy.java | 7 +- ...lingPolicyRegionnameAutoscalingpolicy.java | 7 +- ...oscalingPolicyStringAutoscalingpolicy.java | 7 +- .../AsyncDeleteAutoscalingPolicy.java | 7 +- .../SyncDeleteAutoscalingPolicy.java | 7 +- ...utoscalingPolicyAutoscalingpolicyname.java | 7 +- .../SyncDeleteAutoscalingPolicyString.java | 7 +- .../AsyncGetAutoscalingPolicy.java | 7 +- .../SyncGetAutoscalingPolicy.java | 7 +- ...utoscalingPolicyAutoscalingpolicyname.java | 7 +- .../SyncGetAutoscalingPolicyString.java | 7 +- .../AsyncListAutoscalingPolicies.java | 7 +- .../AsyncListAutoscalingPoliciesPaged.java | 7 +- .../SyncListAutoscalingPolicies.java | 7 +- ...ncListAutoscalingPoliciesLocationname.java | 7 +- ...SyncListAutoscalingPoliciesRegionname.java | 7 +- .../SyncListAutoscalingPoliciesString.java | 7 +- .../AsyncUpdateAutoscalingPolicy.java | 7 +- .../SyncUpdateAutoscalingPolicy.java | 7 +- ...ateAutoscalingPolicyAutoscalingpolicy.java | 7 +- .../SyncCreateAutoscalingPolicy.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createbatch/AsyncCreateBatch.java | 7 +- .../createbatch/AsyncCreateBatchLRO.java | 7 +- .../createbatch/SyncCreateBatch.java | 7 +- ...yncCreateBatchLocationnameBatchString.java | 7 +- .../SyncCreateBatchStringBatchString.java | 7 +- .../deletebatch/AsyncDeleteBatch.java | 7 +- .../deletebatch/SyncDeleteBatch.java | 7 +- .../deletebatch/SyncDeleteBatchBatchname.java | 7 +- .../deletebatch/SyncDeleteBatchString.java | 7 +- .../getbatch/AsyncGetBatch.java | 7 +- .../getbatch/SyncGetBatch.java | 7 +- .../getbatch/SyncGetBatchBatchname.java | 7 +- .../getbatch/SyncGetBatchString.java | 7 +- .../listbatches/AsyncListBatches.java | 7 +- .../listbatches/AsyncListBatchesPaged.java | 7 +- .../listbatches/SyncListBatches.java | 7 +- .../SyncListBatchesLocationname.java | 7 +- .../listbatches/SyncListBatchesString.java | 7 +- .../getbatch/SyncGetBatch.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createcluster/AsyncCreateCluster.java | 7 +- .../createcluster/AsyncCreateClusterLRO.java | 7 +- .../createcluster/SyncCreateCluster.java | 7 +- .../SyncCreateClusterStringStringCluster.java | 7 +- .../deletecluster/AsyncDeleteCluster.java | 7 +- .../deletecluster/AsyncDeleteClusterLRO.java | 7 +- .../deletecluster/SyncDeleteCluster.java | 7 +- .../SyncDeleteClusterStringStringString.java | 7 +- .../diagnosecluster/AsyncDiagnoseCluster.java | 7 +- .../AsyncDiagnoseClusterLRO.java | 7 +- .../diagnosecluster/SyncDiagnoseCluster.java | 7 +- ...SyncDiagnoseClusterStringStringString.java | 7 +- .../getcluster/AsyncGetCluster.java | 7 +- .../getcluster/SyncGetCluster.java | 7 +- .../SyncGetClusterStringStringString.java | 7 +- .../listclusters/AsyncListClusters.java | 7 +- .../listclusters/AsyncListClustersPaged.java | 7 +- .../listclusters/SyncListClusters.java | 7 +- .../SyncListClustersStringString.java | 7 +- .../SyncListClustersStringStringString.java | 7 +- .../startcluster/AsyncStartCluster.java | 7 +- .../startcluster/AsyncStartClusterLRO.java | 7 +- .../startcluster/SyncStartCluster.java | 7 +- .../stopcluster/AsyncStopCluster.java | 7 +- .../stopcluster/AsyncStopClusterLRO.java | 7 +- .../stopcluster/SyncStopCluster.java | 7 +- .../updatecluster/AsyncUpdateCluster.java | 7 +- .../updatecluster/AsyncUpdateClusterLRO.java | 7 +- .../updatecluster/SyncUpdateCluster.java | 7 +- ...terStringStringStringClusterFieldmask.java | 7 +- .../getcluster/SyncGetCluster.java | 12 +- .../canceljob/AsyncCancelJob.java | 7 +- .../canceljob/SyncCancelJob.java | 7 +- .../SyncCancelJobStringStringString.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../deletejob/AsyncDeleteJob.java | 7 +- .../deletejob/SyncDeleteJob.java | 7 +- .../SyncDeleteJobStringStringString.java | 7 +- .../getjob/AsyncGetJob.java | 7 +- .../getjob/SyncGetJob.java | 7 +- .../getjob/SyncGetJobStringStringString.java | 7 +- .../listjobs/AsyncListJobs.java | 7 +- .../listjobs/AsyncListJobsPaged.java | 7 +- .../listjobs/SyncListJobs.java | 7 +- .../listjobs/SyncListJobsStringString.java | 7 +- .../SyncListJobsStringStringString.java | 7 +- .../submitjob/AsyncSubmitJob.java | 7 +- .../submitjob/SyncSubmitJob.java | 7 +- .../SyncSubmitJobStringStringJob.java | 7 +- .../AsyncSubmitJobAsOperation.java | 7 +- .../AsyncSubmitJobAsOperationLRO.java | 7 +- .../SyncSubmitJobAsOperation.java | 7 +- ...ncSubmitJobAsOperationStringStringJob.java | 7 +- .../updatejob/AsyncUpdateJob.java | 7 +- .../updatejob/SyncUpdateJob.java | 7 +- .../submitjob/SyncSubmitJob.java | 12 +- .../SyncCreateAutoscalingPolicy.java | 7 +- .../getbatch/SyncGetBatch.java | 12 +- .../getcluster/SyncGetCluster.java | 12 +- .../submitjob/SyncSubmitJob.java | 12 +- .../SyncCreateWorkflowTemplate.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncCreateWorkflowTemplate.java | 7 +- .../SyncCreateWorkflowTemplate.java | 7 +- ...wTemplateLocationnameWorkflowtemplate.java | 7 +- ...lowTemplateRegionnameWorkflowtemplate.java | 7 +- ...orkflowTemplateStringWorkflowtemplate.java | 7 +- .../AsyncDeleteWorkflowTemplate.java | 7 +- .../SyncDeleteWorkflowTemplate.java | 7 +- .../SyncDeleteWorkflowTemplateString.java | 7 +- ...eWorkflowTemplateWorkflowtemplatename.java | 7 +- .../AsyncGetWorkflowTemplate.java | 7 +- .../SyncGetWorkflowTemplate.java | 7 +- .../SyncGetWorkflowTemplateString.java | 7 +- ...tWorkflowTemplateWorkflowtemplatename.java | 7 +- ...syncInstantiateInlineWorkflowTemplate.java | 7 +- ...cInstantiateInlineWorkflowTemplateLRO.java | 7 +- ...SyncInstantiateInlineWorkflowTemplate.java | 7 +- ...wTemplateLocationnameWorkflowtemplate.java | 7 +- ...lowTemplateRegionnameWorkflowtemplate.java | 7 +- ...orkflowTemplateStringWorkflowtemplate.java | 7 +- .../AsyncInstantiateWorkflowTemplate.java | 7 +- .../AsyncInstantiateWorkflowTemplateLRO.java | 7 +- .../SyncInstantiateWorkflowTemplate.java | 7 +- ...SyncInstantiateWorkflowTemplateString.java | 7 +- ...WorkflowTemplateStringMapstringstring.java | 7 +- ...eWorkflowTemplateWorkflowtemplatename.java | 7 +- ...teWorkflowtemplatenameMapstringstring.java | 7 +- .../AsyncListWorkflowTemplates.java | 7 +- .../AsyncListWorkflowTemplatesPaged.java | 7 +- .../SyncListWorkflowTemplates.java | 7 +- ...SyncListWorkflowTemplatesLocationname.java | 7 +- .../SyncListWorkflowTemplatesRegionname.java | 7 +- .../SyncListWorkflowTemplatesString.java | 7 +- .../AsyncUpdateWorkflowTemplate.java | 7 +- .../SyncUpdateWorkflowTemplate.java | 7 +- ...pdateWorkflowTemplateWorkflowtemplate.java | 7 +- .../SyncCreateWorkflowTemplate.java | 7 +- 175 files changed, 1623 insertions(+), 698 deletions(-) diff --git a/README.md b/README.md index 94a7056a..6fb63bac 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.3' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.3" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.4" ``` ## Authentication diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java index 9f4bfa44..3657881d 100644 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java @@ -41,8 +41,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -82,8 +85,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,8 +101,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
@@ -107,8 +116,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
  *     AutoscalingPolicyServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -179,8 +191,11 @@ public AutoscalingPolicyServiceStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -221,8 +236,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -263,8 +281,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -301,8 +322,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(String parent, Autoscalin
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
@@ -328,8 +352,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   CreateAutoscalingPolicyRequest request =
@@ -358,8 +385,11 @@ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
@@ -385,8 +415,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   UpdateAutoscalingPolicyRequest request =
@@ -413,8 +446,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   UpdateAutoscalingPolicyRequest request =
@@ -440,8 +476,11 @@ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRe
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicyName name =
@@ -481,8 +520,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String name =
@@ -521,8 +563,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   GetAutoscalingPolicyRequest request =
@@ -550,8 +595,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   GetAutoscalingPolicyRequest request =
@@ -580,8 +628,11 @@ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -620,8 +671,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Locati
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -660,8 +714,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(Region
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -698,8 +755,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -730,8 +790,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -761,8 +824,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   ListAutoscalingPoliciesRequest request =
@@ -800,8 +866,11 @@ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   AutoscalingPolicyName name =
@@ -842,8 +911,11 @@ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   String name =
@@ -883,8 +955,11 @@ public final void deleteAutoscalingPolicy(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   DeleteAutoscalingPolicyRequest request =
@@ -913,8 +988,11 @@ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
    *     AutoscalingPolicyServiceClient.create()) {
    *   DeleteAutoscalingPolicyRequest request =
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
index 44d8018c..038b6554 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
@@ -54,8 +54,11 @@
  * 

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
index c8f26d1d..c389df85 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java
@@ -46,8 +46,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
  *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
  *   Batch response = batchControllerClient.getBatch(name);
@@ -84,8 +87,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BatchControllerSettings batchControllerSettings =
  *     BatchControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BatchControllerSettings batchControllerSettings =
  *     BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BatchControllerClient batchControllerClient =
@@ -109,8 +118,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BatchControllerSettings batchControllerSettings =
  *     BatchControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Batch batch = Batch.newBuilder().build();
@@ -239,8 +254,11 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Batch batch = Batch.newBuilder().build();
@@ -274,8 +292,11 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -303,8 +324,11 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -332,8 +356,11 @@ public final OperationFuture createBatchAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   CreateBatchRequest request =
    *       CreateBatchRequest.newBuilder()
@@ -359,8 +386,11 @@ public final UnaryCallable createBatchCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
    *   Batch response = batchControllerClient.getBatch(name);
@@ -383,8 +413,11 @@ public final Batch getBatch(BatchName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
    *   Batch response = batchControllerClient.getBatch(name);
@@ -406,8 +439,11 @@ public final Batch getBatch(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   GetBatchRequest request =
    *       GetBatchRequest.newBuilder()
@@ -431,8 +467,11 @@ public final Batch getBatch(GetBatchRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   GetBatchRequest request =
    *       GetBatchRequest.newBuilder()
@@ -455,8 +494,11 @@ public final UnaryCallable getBatchCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
@@ -483,8 +525,11 @@ public final ListBatchesPagedResponse listBatches(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
@@ -508,8 +553,11 @@ public final ListBatchesPagedResponse listBatches(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -537,8 +585,11 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -567,8 +618,11 @@ public final ListBatchesPagedResponse listBatches(ListBatchesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   ListBatchesRequest request =
    *       ListBatchesRequest.newBuilder()
@@ -603,8 +657,11 @@ public final UnaryCallable listBatchesC
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
    *   batchControllerClient.deleteBatch(name);
@@ -628,8 +685,11 @@ public final void deleteBatch(BatchName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
    *   batchControllerClient.deleteBatch(name);
@@ -652,8 +712,11 @@ public final void deleteBatch(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   DeleteBatchRequest request =
    *       DeleteBatchRequest.newBuilder()
@@ -678,8 +741,11 @@ public final void deleteBatch(DeleteBatchRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
    *   DeleteBatchRequest request =
    *       DeleteBatchRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
index a52bdd7d..951ae345 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java
@@ -56,17 +56,17 @@
  * 

For example, to set the total timeout of getBatch to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BatchControllerSettings.Builder batchControllerSettingsBuilder =
  *     BatchControllerSettings.newBuilder();
  * batchControllerSettingsBuilder
  *     .getBatchSettings()
  *     .setRetrySettings(
- *         batchControllerSettingsBuilder
- *             .getBatchSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
index 5cecf320..12812a0b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
@@ -48,8 +48,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -88,8 +91,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,8 +107,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * ClusterControllerClient clusterControllerClient =
@@ -113,8 +122,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ClusterControllerSettings clusterControllerSettings =
  *     ClusterControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -210,8 +222,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -247,8 +262,11 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -279,8 +297,11 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -311,8 +332,11 @@ public final OperationFuture createClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   CreateClusterRequest request =
    *       CreateClusterRequest.newBuilder()
@@ -344,8 +368,11 @@ public final UnaryCallable createClusterCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -410,8 +437,11 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -446,8 +476,11 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -482,8 +515,11 @@ public final OperationFuture updateClusterAsy
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   UpdateClusterRequest request =
    *       UpdateClusterRequest.newBuilder()
@@ -513,8 +549,11 @@ public final UnaryCallable updateClusterCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -543,8 +582,11 @@ public final OperationFuture stopClusterAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -573,8 +615,11 @@ public final OperationFuture stopClusterAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StopClusterRequest request =
    *       StopClusterRequest.newBuilder()
@@ -602,8 +647,11 @@ public final UnaryCallable stopClusterCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -632,8 +680,11 @@ public final OperationFuture startClusterAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -662,8 +713,11 @@ public final OperationFuture startClusterAsyn
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   StartClusterRequest request =
    *       StartClusterRequest.newBuilder()
@@ -693,8 +747,11 @@ public final UnaryCallable startClusterCallable(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -729,8 +786,11 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -761,8 +821,11 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -793,8 +856,11 @@ public final OperationFuture deleteClusterAsync
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DeleteClusterRequest request =
    *       DeleteClusterRequest.newBuilder()
@@ -822,8 +888,11 @@ public final UnaryCallable deleteClusterCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -855,8 +924,11 @@ public final Cluster getCluster(String projectId, String region, String clusterN
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   GetClusterRequest request =
    *       GetClusterRequest.newBuilder()
@@ -882,8 +954,11 @@ public final Cluster getCluster(GetClusterRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   GetClusterRequest request =
    *       GetClusterRequest.newBuilder()
@@ -908,8 +983,11 @@ public final UnaryCallable getClusterCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -937,8 +1015,11 @@ public final ListClustersPagedResponse listClusters(String projectId, String reg
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -987,8 +1068,11 @@ public final ListClustersPagedResponse listClusters(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -1018,8 +1102,11 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -1050,8 +1137,11 @@ public final ListClustersPagedResponse listClusters(ListClustersRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   ListClustersRequest request =
    *       ListClustersRequest.newBuilder()
@@ -1093,8 +1183,11 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -1133,8 +1226,11 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
@@ -1166,8 +1262,11 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
@@ -1200,8 +1299,11 @@ public final UnaryCallable listCluste
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
    *   DiagnoseClusterRequest request =
    *       DiagnoseClusterRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
index 55d39d98..f2fc2a9a 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
@@ -56,17 +56,17 @@
  * 

For example, to set the total timeout of getCluster to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder
- *             .getClusterSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
index 58cfd102..688040ac 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
@@ -46,8 +46,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -85,8 +88,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
@@ -108,8 +117,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * JobControllerSettings jobControllerSettings =
  *     JobControllerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -202,8 +214,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -230,8 +245,11 @@ public final Job submitJob(String projectId, String region, Job job) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -258,8 +276,11 @@ public final Job submitJob(SubmitJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -285,8 +306,11 @@ public final UnaryCallable submitJobCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -314,8 +338,11 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -343,8 +370,11 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -372,8 +402,11 @@ public final OperationFuture submitJobAsOperationAsync(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   SubmitJobRequest request =
    *       SubmitJobRequest.newBuilder()
@@ -400,8 +433,11 @@ public final UnaryCallable submitJobAsOperationCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -432,8 +468,11 @@ public final Job getJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   GetJobRequest request =
    *       GetJobRequest.newBuilder()
@@ -459,8 +498,11 @@ public final Job getJob(GetJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   GetJobRequest request =
    *       GetJobRequest.newBuilder()
@@ -485,8 +527,11 @@ public final UnaryCallable getJobCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -513,8 +558,11 @@ public final ListJobsPagedResponse listJobs(String projectId, String region) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -555,8 +603,11 @@ public final ListJobsPagedResponse listJobs(String projectId, String region, Str
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -587,8 +638,11 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -618,8 +672,11 @@ public final UnaryCallable listJobsPaged
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   ListJobsRequest request =
    *       ListJobsRequest.newBuilder()
@@ -656,8 +713,11 @@ public final UnaryCallable listJobsCallable()
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   UpdateJobRequest request =
    *       UpdateJobRequest.newBuilder()
@@ -685,8 +745,11 @@ public final Job updateJob(UpdateJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   UpdateJobRequest request =
    *       UpdateJobRequest.newBuilder()
@@ -716,8 +779,11 @@ public final UnaryCallable updateJobCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -751,8 +817,11 @@ public final Job cancelJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   CancelJobRequest request =
    *       CancelJobRequest.newBuilder()
@@ -781,8 +850,11 @@ public final Job cancelJob(CancelJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   CancelJobRequest request =
    *       CancelJobRequest.newBuilder()
@@ -808,8 +880,11 @@ public final UnaryCallable cancelJobCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   String projectId = "projectId-894832108";
    *   String region = "region-934795532";
@@ -841,8 +916,11 @@ public final void deleteJob(String projectId, String region, String jobId) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   DeleteJobRequest request =
    *       DeleteJobRequest.newBuilder()
@@ -869,8 +947,11 @@ public final void deleteJob(DeleteJobRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
    *   DeleteJobRequest request =
    *       DeleteJobRequest.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
index 71bc0b5e..f2e480e9 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
@@ -56,16 +56,16 @@
  * 

For example, to set the total timeout of submitJob to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder
- *             .submitJobSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
index 8d065098..001a4918 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
@@ -47,8 +47,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -88,8 +91,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,8 +107,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * WorkflowTemplateServiceClient workflowTemplateServiceClient =
@@ -113,8 +122,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
  *     WorkflowTemplateServiceSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -209,8 +221,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -251,8 +266,11 @@ public final WorkflowTemplate createWorkflowTemplate(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -293,8 +311,11 @@ public final WorkflowTemplate createWorkflowTemplate(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -331,8 +352,11 @@ public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemp
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
@@ -358,8 +382,11 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   CreateWorkflowTemplateRequest request =
@@ -388,8 +415,11 @@ public final WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateReque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
@@ -431,8 +461,11 @@ public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -473,8 +506,11 @@ public final WorkflowTemplate getWorkflowTemplate(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   GetWorkflowTemplateRequest request =
@@ -505,8 +541,11 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   GetWorkflowTemplateRequest request =
@@ -552,8 +591,11 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
@@ -610,8 +652,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -667,8 +712,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
@@ -729,8 +777,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -792,8 +843,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
@@ -841,8 +895,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
@@ -892,8 +949,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateWorkflowTemplateRequest request =
@@ -946,8 +1006,11 @@ public final OperationFuture instantiateWorkflowTemplat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1008,8 +1071,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -1070,8 +1136,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -1132,8 +1201,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1182,8 +1254,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1234,8 +1309,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   InstantiateInlineWorkflowTemplateRequest request =
@@ -1266,8 +1344,11 @@ public final OperationFuture instantiateInlineWorkflowT
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
@@ -1293,8 +1374,11 @@ public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   UpdateWorkflowTemplateRequest request =
@@ -1320,8 +1404,11 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   UpdateWorkflowTemplateRequest request =
@@ -1347,8 +1434,11 @@ public final WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateReque
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -1387,8 +1477,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationNa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
@@ -1427,8 +1520,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
@@ -1465,8 +1561,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String par
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1497,8 +1596,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1528,8 +1630,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   ListWorkflowTemplatesRequest request =
@@ -1566,8 +1671,11 @@ public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name =
@@ -1607,8 +1715,11 @@ public final void deleteWorkflowTemplate(WorkflowTemplateName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   String name =
@@ -1647,8 +1758,11 @@ public final void deleteWorkflowTemplate(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   DeleteWorkflowTemplateRequest request =
@@ -1677,8 +1791,11 @@ public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request)
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
    *     WorkflowTemplateServiceClient.create()) {
    *   DeleteWorkflowTemplateRequest request =
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
index 88c8dfc2..9224a7d5 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
@@ -56,8 +56,11 @@
  * 

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
index df1f4105..7f608efc 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for AutoscalingPolicyServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
  *     AutoscalingPolicyServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -42,8 +45,11 @@
  * 

Sample for BatchControllerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
  *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
  *   Batch response = batchControllerClient.getBatch(name);
@@ -58,8 +64,11 @@
  * 

Sample for ClusterControllerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -75,8 +84,11 @@
  * 

Sample for JobControllerClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
  *   String projectId = "projectId-894832108";
  *   String region = "region-934795532";
@@ -92,8 +104,11 @@
  * 

Sample for WorkflowTemplateServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
  *     WorkflowTemplateServiceClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
index 1a2a5e94..9394126b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
@@ -78,8 +78,11 @@
  * 

For example, to set the total timeout of createAutoscalingPolicy to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
  *     AutoscalingPolicyServiceStubSettings.newBuilder();
  * autoscalingPolicyServiceSettingsBuilder
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
index 832821dc..6dc2d972 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java
@@ -83,17 +83,17 @@
  * 

For example, to set the total timeout of getBatch to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BatchControllerStubSettings.Builder batchControllerSettingsBuilder =
  *     BatchControllerStubSettings.newBuilder();
  * batchControllerSettingsBuilder
  *     .getBatchSettings()
  *     .setRetrySettings(
- *         batchControllerSettingsBuilder
- *             .getBatchSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
index 766ba611..3c06e344 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
@@ -88,17 +88,17 @@
  * 

For example, to set the total timeout of getCluster to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
  *     ClusterControllerStubSettings.newBuilder();
  * clusterControllerSettingsBuilder
  *     .getClusterSettings()
  *     .setRetrySettings(
- *         clusterControllerSettingsBuilder
- *             .getClusterSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * ClusterControllerStubSettings clusterControllerSettings =
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java
index ee4bb3b9..20d94992 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java
@@ -86,7 +86,8 @@ public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServi
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("policy", request.getPolicy()))
+                              ProtoRestSerializer.create()
+                                  .toBody("policy", request.getPolicy(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -125,7 +126,8 @@ public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServi
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("policy", request.getPolicy()))
+                              ProtoRestSerializer.create()
+                                  .toBody("policy", request.getPolicy(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java
index aa10538c..20b8454e 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java
@@ -94,7 +94,8 @@ public class HttpJsonBatchControllerStub extends BatchControllerStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("batch", request.getBatch()))
+                              ProtoRestSerializer.create()
+                                  .toBody("batch", request.getBatch(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java
index e877794f..5b2bb414 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java
@@ -105,7 +105,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("cluster", request.getCluster()))
+                              ProtoRestSerializer.create()
+                                  .toBody("cluster", request.getCluster(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -152,7 +153,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("cluster", request.getCluster()))
+                              ProtoRestSerializer.create()
+                                  .toBody("cluster", request.getCluster(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -201,7 +203,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub {
                                           .clearClusterName()
                                           .clearProjectId()
                                           .clearRegion()
-                                          .build()))
+                                          .build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -250,7 +253,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub {
                                           .clearClusterName()
                                           .clearProjectId()
                                           .clearRegion()
-                                          .build()))
+                                          .build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -412,7 +416,8 @@ public class HttpJsonClusterControllerStub extends ClusterControllerStub {
                                           .clearClusterName()
                                           .clearProjectId()
                                           .clearRegion()
-                                          .build()))
+                                          .build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java
index ddd18936..7d26c11b 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java
@@ -93,7 +93,9 @@ public class HttpJsonJobControllerStub extends JobControllerStub {
                       request ->
                           ProtoRestSerializer.create()
                               .toBody(
-                                  "*", request.toBuilder().clearProjectId().clearRegion().build()))
+                                  "*",
+                                  request.toBuilder().clearProjectId().clearRegion().build(),
+                                  false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -132,7 +134,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub {
                               ProtoRestSerializer.create()
                                   .toBody(
                                       "*",
-                                      request.toBuilder().clearProjectId().clearRegion().build()))
+                                      request.toBuilder().clearProjectId().clearRegion().build(),
+                                      false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -246,7 +249,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("job", request.getJob()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("job", request.getJob(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -290,7 +294,8 @@ public class HttpJsonJobControllerStub extends JobControllerStub {
                                       .clearJobId()
                                       .clearProjectId()
                                       .clearRegion()
-                                      .build()))
+                                      .build(),
+                                  false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java
index 1e980390..4a07f7bd 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java
@@ -98,7 +98,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("template", request.getTemplate()))
+                                  .toBody("template", request.getTemplate(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -173,7 +173,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -217,7 +217,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("template", request.getTemplate()))
+                                  .toBody("template", request.getTemplate(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -260,7 +260,7 @@ public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateService
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("template", request.getTemplate()))
+                                  .toBody("template", request.getTemplate(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
index 3d835842..75758665 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
@@ -85,17 +85,17 @@
  * 

For example, to set the total timeout of submitJob to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
  *     JobControllerStubSettings.newBuilder();
  * jobControllerSettingsBuilder
  *     .submitJobSettings()
  *     .setRetrySettings(
- *         jobControllerSettingsBuilder
- *             .submitJobSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
index 06fc7711..a039aab0 100644
--- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
+++ b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
@@ -86,8 +86,11 @@
  * 

For example, to set the total timeout of createWorkflowTemplate to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
  *     WorkflowTemplateServiceStubSettings.newBuilder();
  * workflowTemplateServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java
index 62e0ffa8..6dba06e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
         AutoscalingPolicyServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 29234b18..e9a19dd5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
         AutoscalingPolicyServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java
index 605bda4d..af255984 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
         AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java
index 0f089a3b..49243ea2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       CreateAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index 2b81972c..efb75168 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       CreateAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java
index 2d08b959..8892b60e 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java
index 8b70651c..c0cddcf7 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java
index 05afde5f..6f2f6dcf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicyStringAutoscalingpolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java
index bc4ffec2..9dc50aa3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       DeleteAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java
index a5ba2c2c..15c755e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       DeleteAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java
index c30f1a49..61c04fad 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteAutoscalingPolicyAutoscalingpolicyname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       AutoscalingPolicyName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java
index 6b0c3cd9..de19adf3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteAutoscalingPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java
index 00784823..1787aa6d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       GetAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java
index 3e05d1c4..e303e2be 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       GetAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java
index e9d14580..594fd119 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetAutoscalingPolicyAutoscalingpolicyname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       AutoscalingPolicyName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java
index da79dbb9..39f6afec 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetAutoscalingPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java
index c0c5dcb8..b455040d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListAutoscalingPolicies() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       ListAutoscalingPoliciesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java
index 644690ba..9a20618d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListAutoscalingPoliciesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       ListAutoscalingPoliciesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java
index e3c92d37..1db78e7c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListAutoscalingPolicies() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       ListAutoscalingPoliciesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java
index 7c32f189..38236be6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListAutoscalingPoliciesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java
index 577c18c9..0290c1f0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListAutoscalingPoliciesRegionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java
index ffdcb024..de1088cd 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListAutoscalingPoliciesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java
index 960be01b..7a19f36d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       UpdateAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java
index 853d3888..9cb872bc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       UpdateAutoscalingPolicyRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java
index 8688d747..3718e929 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateAutoscalingPolicyAutoscalingpolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
         AutoscalingPolicyServiceClient.create()) {
       AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index afc5ad75..c6b3fc92 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
         AutoscalingPolicyServiceSettings.newBuilder();
     autoscalingPolicyServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java
index 0373f3a6..2b057710 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     BatchControllerSettings batchControllerSettings =
         BatchControllerSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 99b4414b..459694d6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     BatchControllerSettings batchControllerSettings =
         BatchControllerSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java
index 0377155d..1059c281 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     BatchControllerSettings batchControllerSettings =
         BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
     BatchControllerClient batchControllerClient =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java
index 839fea7c..38d10f86 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       CreateBatchRequest request =
           CreateBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java
index 0f98a0ab..5cd5f071 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateBatchLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       CreateBatchRequest request =
           CreateBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java
index 17e8e588..f46c5943 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       CreateBatchRequest request =
           CreateBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java
index 508180fd..c6e05597 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateBatchLocationnameBatchString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Batch batch = Batch.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java
index 2793e455..e4f4f205 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateBatchStringBatchString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Batch batch = Batch.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java
index cd0e119e..7fbeef35 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       DeleteBatchRequest request =
           DeleteBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java
index 2917b430..ad4f86ab 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       DeleteBatchRequest request =
           DeleteBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java
index 05bc0eb6..6dac6713 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteBatchBatchname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
       batchControllerClient.deleteBatch(name);
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java
index 8c02f3cd..894deb0d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteBatchString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
       batchControllerClient.deleteBatch(name);
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java
index 5405d3a8..a4590f1e 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       GetBatchRequest request =
           GetBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java
index 26e423cb..64269a7a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       GetBatchRequest request =
           GetBatchRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java
index 5fe46c90..beb75c0d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetBatchBatchname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
       Batch response = batchControllerClient.getBatch(name);
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java
index a47944e4..2f7cbbf4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetBatchString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
       Batch response = batchControllerClient.getBatch(name);
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java
index ccb2e46e..132b745c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListBatches() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       ListBatchesRequest request =
           ListBatchesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java
index 06e83f3b..e57dd257 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListBatchesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       ListBatchesRequest request =
           ListBatchesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java
index b8f07cbf..ec73dc9d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListBatches() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       ListBatchesRequest request =
           ListBatchesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java
index b2824ecd..ea5f95c7 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListBatchesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java
index c7829608..09b7a2ca 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListBatchesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java
index 8dd2ff32..215f14ea 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     BatchControllerSettings.Builder batchControllerSettingsBuilder =
         BatchControllerSettings.newBuilder();
     batchControllerSettingsBuilder
         .getBatchSettings()
         .setRetrySettings(
-            batchControllerSettingsBuilder
-                .getBatchSettings()
-                .getRetrySettings()
-                .toBuilder()
+            batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java
index e0671460..03a9b2c8 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ClusterControllerSettings clusterControllerSettings =
         ClusterControllerSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 5fb0af6a..bce4ec53 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ClusterControllerSettings clusterControllerSettings =
         ClusterControllerSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java
index fdf73a94..a7bb3572 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ClusterControllerSettings clusterControllerSettings =
         ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
     ClusterControllerClient clusterControllerClient =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java
index 03bc07b8..73ef3c06 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       CreateClusterRequest request =
           CreateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java
index 9d82a33f..80080978 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       CreateClusterRequest request =
           CreateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java
index 77d68833..f6539d10 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       CreateClusterRequest request =
           CreateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java
index 57fc3d08..f1f4cbcc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateClusterStringStringCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java
index 6711e235..3607e858 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DeleteClusterRequest request =
           DeleteClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java
index 02704096..60ad729d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DeleteClusterRequest request =
           DeleteClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java
index b56f7168..a36a8e9b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DeleteClusterRequest request =
           DeleteClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java
index 1e98763d..7627ed7d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteClusterStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java
index 1da70de6..61c6d98d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDiagnoseCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DiagnoseClusterRequest request =
           DiagnoseClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java
index 7d636db1..587ec060 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDiagnoseClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DiagnoseClusterRequest request =
           DiagnoseClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java
index 20300a90..b4a471eb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDiagnoseCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       DiagnoseClusterRequest request =
           DiagnoseClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java
index faeb2316..ad2cc77b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDiagnoseClusterStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java
index 2d38e4eb..3d22bb33 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       GetClusterRequest request =
           GetClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java
index 28a3eafc..d8ad3563 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       GetClusterRequest request =
           GetClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java
index bcc209a9..9e32532d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetClusterStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java
index ea1429e8..e01a5ea4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListClusters() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       ListClustersRequest request =
           ListClustersRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java
index ed2f2ee4..4aa54ed4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListClustersPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       ListClustersRequest request =
           ListClustersRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java
index 169a3997..9d8daac4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListClusters() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       ListClustersRequest request =
           ListClustersRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java
index 0edd1e44..1f4ea8cc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListClustersStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java
index 304cf133..879cbc98 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListClustersStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java
index 1a67986b..cad0e58d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StartClusterRequest request =
           StartClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java
index af670b25..d2778710 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStartClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StartClusterRequest request =
           StartClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java
index 3d52d1c9..6432ccef 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStartCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StartClusterRequest request =
           StartClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java
index 126ffe30..8097b461 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StopClusterRequest request =
           StopClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java
index fdc31376..b612438b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncStopClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StopClusterRequest request =
           StopClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java
index 108b7265..3d57330b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncStopCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       StopClusterRequest request =
           StopClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java
index ed57bc59..9bbb6292 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       UpdateClusterRequest request =
           UpdateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java
index dca39c3f..43a018fc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateClusterLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       UpdateClusterRequest request =
           UpdateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java
index 3fa4c064..712a54c2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       UpdateClusterRequest request =
           UpdateClusterRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java
index cceeaf22..ced977a1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateClusterStringStringStringClusterFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java
index 796b86ee..f2b10742 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
         ClusterControllerSettings.newBuilder();
     clusterControllerSettingsBuilder
         .getClusterSettings()
         .setRetrySettings(
-            clusterControllerSettingsBuilder
-                .getClusterSettings()
-                .getRetrySettings()
-                .toBuilder()
+            clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java
index e63d9946..fc9cdc57 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCancelJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       CancelJobRequest request =
           CancelJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java
index 325abde7..e9830ec1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       CancelJobRequest request =
           CancelJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java
index 25db1d5b..3c91149c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelJobStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java
index 76b8afcc..22eb7bb1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     JobControllerSettings jobControllerSettings =
         JobControllerSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
index 25e3519a..a6efe8d6 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     JobControllerSettings jobControllerSettings =
         JobControllerSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java
index e1592969..ae69fd15 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     JobControllerSettings jobControllerSettings =
         JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build();
     JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings);
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java
index 5daa0298..e241b6f4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       DeleteJobRequest request =
           DeleteJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java
index 150a024f..0a20d89c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       DeleteJobRequest request =
           DeleteJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java
index b1492388..fa617990 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteJobStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java
index 46c3dfb7..356e2fe2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       GetJobRequest request =
           GetJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java
index 9da587f6..021464e1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       GetJobRequest request =
           GetJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java
index d7b2d64f..deee5c1a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetJobStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java
index 54911a3e..826dbd55 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListJobs() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java
index 30faa053..8429398d 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListJobsPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java
index 91d707ce..7594cb3c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListJobs() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       ListJobsRequest request =
           ListJobsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java
index f0ecd6c2..8f83eff0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListJobsStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java
index a597c7af..c252d179 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListJobsStringStringString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java
index 43d0c9f6..56253c50 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSubmitJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       SubmitJobRequest request =
           SubmitJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java
index 4af2efbe..173126ea 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       SubmitJobRequest request =
           SubmitJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java
index c64a0f42..e31a0387 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJobStringStringJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java
index a00a67e4..f3e0b2fb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSubmitJobAsOperation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       SubmitJobRequest request =
           SubmitJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java
index 18f8f52f..eef0a858 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSubmitJobAsOperationLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       SubmitJobRequest request =
           SubmitJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java
index 8b7bd1a4..9d4f552b 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJobAsOperation() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       SubmitJobRequest request =
           SubmitJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java
index 8a9a022d..7cb37a53 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJobAsOperationStringStringJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       String projectId = "projectId-894832108";
       String region = "region-934795532";
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java
index c19716b0..ea47c817 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       UpdateJobRequest request =
           UpdateJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java
index 9822c85e..da44260a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
       UpdateJobRequest request =
           UpdateJobRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java
index ddeebe21..5e5ccc31 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
     jobControllerSettingsBuilder
         .submitJobSettings()
         .setRetrySettings(
-            jobControllerSettingsBuilder
-                .submitJobSettings()
-                .getRetrySettings()
-                .toBuilder()
+            jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
index 84d38258..bb760089 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateAutoscalingPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
         AutoscalingPolicyServiceStubSettings.newBuilder();
     autoscalingPolicyServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java
index 1871ca99..53a3558c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetBatch() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     BatchControllerStubSettings.Builder batchControllerSettingsBuilder =
         BatchControllerStubSettings.newBuilder();
     batchControllerSettingsBuilder
         .getBatchSettings()
         .setRetrySettings(
-            batchControllerSettingsBuilder
-                .getBatchSettings()
-                .getRetrySettings()
-                .toBuilder()
+            batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java
index 62e2cd8e..c5105059 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetCluster() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
         ClusterControllerStubSettings.newBuilder();
     clusterControllerSettingsBuilder
         .getClusterSettings()
         .setRetrySettings(
-            clusterControllerSettingsBuilder
-                .getClusterSettings()
-                .getRetrySettings()
-                .toBuilder()
+            clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ClusterControllerStubSettings clusterControllerSettings =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java
index 72479b32..53fb9930 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSubmitJob() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     JobControllerStubSettings.Builder jobControllerSettingsBuilder =
         JobControllerStubSettings.newBuilder();
     jobControllerSettingsBuilder
         .submitJobSettings()
         .setRetrySettings(
-            jobControllerSettingsBuilder
-                .submitJobSettings()
-                .getRetrySettings()
-                .toBuilder()
+            jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index ad713e86..3471fd8f 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
         WorkflowTemplateServiceStubSettings.newBuilder();
     workflowTemplateServiceSettingsBuilder
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java
index 55958c39..754f1f86 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
         WorkflowTemplateServiceSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java
index e0bbbaf0..ae334e36 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
         WorkflowTemplateServiceSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java
index 4367186b..47cd3ba0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
         WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
     WorkflowTemplateServiceClient workflowTemplateServiceClient =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java
index 645e7741..964b8a63 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       CreateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index 6b266663..b2fe56e3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       CreateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java
index 46316bb8..ea1a78df 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplateLocationnameWorkflowtemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java
index d94b034f..b87ea4e5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplateRegionnameWorkflowtemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java
index 9599406f..c0be3faf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplateStringWorkflowtemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java
index 9df64c99..b8321ec4 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       DeleteWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java
index a43b0f57..c5fc0aa5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       DeleteWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java
index b4829ea6..10084786 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteWorkflowTemplateString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java
index 5e859046..b8090102 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteWorkflowTemplateWorkflowtemplatename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       WorkflowTemplateName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java
index 1f447d47..217de1fc 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       GetWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java
index b71d233a..e58e1462 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       GetWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java
index ef6e3294..58057efb 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetWorkflowTemplateString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java
index 48256068..72b38ae5 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetWorkflowTemplateWorkflowtemplatename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       WorkflowTemplateName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java
index 132e38f7..abf86815 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncInstantiateInlineWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateInlineWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java
index b486fc8f..e03f8b8c 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncInstantiateInlineWorkflowTemplateLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateInlineWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java
index a7c1f7a4..b5c22ed1 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInstantiateInlineWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateInlineWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java
index a77df730..e18ff625 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java
index 66bc4858..e6213b28 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java
index 611bcc2d..e6516ae3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java
index 2a5f4ed1..78e3bb55 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncInstantiateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java
index a5fd09a5..c06b53df 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncInstantiateWorkflowTemplateLRO() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java
index bf702bf2..15ade861 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInstantiateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       InstantiateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java
index 55c193f4..821758e0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInstantiateWorkflowTemplateString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java
index 9e46f781..88d1052a 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInstantiateWorkflowTemplateStringMapstringstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java
index 11d52b7a..1d0b0654 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncInstantiateWorkflowTemplateWorkflowtemplatename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       WorkflowTemplateName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java
index a0381f9b..fd8d9b00 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
 
   public static void syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring()
       throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       WorkflowTemplateName name =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java
index 9cbc33d3..41ce3319 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListWorkflowTemplates() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       ListWorkflowTemplatesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java
index 601674e8..24a77013 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListWorkflowTemplatesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       ListWorkflowTemplatesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java
index 87013245..b848c496 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListWorkflowTemplates() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       ListWorkflowTemplatesRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java
index ec3b0181..e66ff851 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListWorkflowTemplatesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java
index 1a22892b..87648142 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListWorkflowTemplatesRegionname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java
index 5104956a..e71da5a2 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListWorkflowTemplatesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java
index 519415e6..2a598bcf 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       UpdateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java
index fbea63d2..5dfbf675 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       UpdateWorkflowTemplateRequest request =
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java
index 2a8badde..73ca1be0 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateWorkflowTemplateWorkflowtemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
         WorkflowTemplateServiceClient.create()) {
       WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
index cf63ba11..f7f7fec3 100644
--- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
+++ b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateWorkflowTemplate() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
         WorkflowTemplateServiceSettings.newBuilder();
     workflowTemplateServiceSettingsBuilder

From 81cce69ca6fd0c12749c59df0fad74f2a1bee3d1 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 9 Sep 2022 17:42:16 +0200
Subject: [PATCH 488/519] chore(deps): update dependency
 com.google.cloud:google-cloud-dataproc to v4.0.4 (#913)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.3` -> `4.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.4/compatibility-slim/4.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.4/confidence-slim/4.0.3)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc).

---
 README.md                           | 2 +-
 samples/install-without-bom/pom.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 6fb63bac..bd4b7ce5 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies:
 
   com.google.cloud
   google-cloud-dataproc
-  4.0.3
+  4.0.4
 
 
 ```
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index f6c61329..4a9ed40a 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
     
       com.google.cloud
       google-cloud-dataproc
-      4.0.3
+      4.0.4
     
     
     

From 8f4b9a08733527549beb338661df698528d7e31d Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:12:30 +0000
Subject: [PATCH 489/519] chore: Generated snippets should not be owned by
 samples reviewers (#1575) (#914)

Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
 .github/.OwlBot.lock.yaml | 3 +--
 .github/CODEOWNERS        | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 6610882f..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9
-# created: 2022-07-18T21:44:23.94208526Z
+  digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 140b3a10..31ab6dd1 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/       @googleapis/yoshi-java

From 60c1eeb4797ec497abade6525074469069700388 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 14:12:37 +0200
Subject: [PATCH 490/519] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#915)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aa515da7..7fc2ea9d 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 1a8bbc11f53b633bb3f73b2c4c817aecd75abbe4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 14:34:13 +0000 Subject: [PATCH 491/519] chore(main): release 4.0.5-SNAPSHOT (#912) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 3b6e9574..43f5e6d1 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.4 + 4.0.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 47bdb7a1..6312fbf0 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.4 + 4.0.5-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index f6818549..91c37d29 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.4 + 4.0.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7fc2ea9d..e985bfe0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.4 + 4.0.5-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 4cd33d86..0b362ac4 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.4 + 4.0.5-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.4 + 4.0.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4c8b1220..69bd0368 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index deaac26a..282e7281 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.4:4.0.4 -grpc-google-cloud-dataproc-v1:4.0.4:4.0.4 -proto-google-cloud-dataproc-v1:4.0.4:4.0.4 +google-cloud-dataproc:4.0.4:4.0.5-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT From e31d011a728de60dd4f10729a76b894397faf012 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 15:24:17 +0000 Subject: [PATCH 492/519] chore(main): release 4.0.5 (#917) :robot: I have created a release *beep* *boop* --- ## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#915](https://github.com/googleapis/java-dataproc/issues/915)) ([60c1eeb](https://github.com/googleapis/java-dataproc/commit/60c1eeb4797ec497abade6525074469069700388)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ed4d744..a9602bb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#915](https://github.com/googleapis/java-dataproc/issues/915)) ([60c1eeb](https://github.com/googleapis/java-dataproc/commit/60c1eeb4797ec497abade6525074469069700388)) + ## [4.0.4](https://github.com/googleapis/java-dataproc/compare/v4.0.3...v4.0.4) (2022-09-09) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 43f5e6d1..7d6321e8 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.5-SNAPSHOT + 4.0.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.5-SNAPSHOT + 4.0.5 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 6312fbf0..15423c67 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.5-SNAPSHOT + 4.0.5 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.5-SNAPSHOT + 4.0.5 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 91c37d29..0a989f4b 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.5-SNAPSHOT + 4.0.5 diff --git a/pom.xml b/pom.xml index e985bfe0..050c8afe 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.5-SNAPSHOT + 4.0.5 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 com.google.cloud google-cloud-dataproc - 4.0.5-SNAPSHOT + 4.0.5 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 0b362ac4..787f5e13 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5-SNAPSHOT + 4.0.5 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.5-SNAPSHOT + 4.0.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 69bd0368..2970a126 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.5-SNAPSHOT + 4.0.5 diff --git a/versions.txt b/versions.txt index 282e7281..692f6560 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.4:4.0.5-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.4:4.0.5-SNAPSHOT +google-cloud-dataproc:4.0.5:4.0.5 +grpc-google-cloud-dataproc-v1:4.0.5:4.0.5 +proto-google-cloud-dataproc-v1:4.0.5:4.0.5 From 52e4acec9eba58251b9b487c36de02ddd2734054 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 15:44:31 +0000 Subject: [PATCH 493/519] chore(main): release 4.0.6-SNAPSHOT (#918) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 7d6321e8..6b55b833 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.5 + 4.0.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 15423c67..665ac071 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.5 + 4.0.6-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 0a989f4b..53728901 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.5 + 4.0.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 050c8afe..1d7e157e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.5 + 4.0.6-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 787f5e13..04e73ad0 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.5 + 4.0.6-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.5 + 4.0.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2970a126..906b6b90 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index 692f6560..de27f50e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.5:4.0.5 -grpc-google-cloud-dataproc-v1:4.0.5:4.0.5 -proto-google-cloud-dataproc-v1:4.0.5:4.0.5 +google-cloud-dataproc:4.0.5:4.0.6-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.5:4.0.6-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.5:4.0.6-SNAPSHOT From 8c6efdd79c675eb2c2c0f89b65fa34f07483d5d3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:32:21 +0200 Subject: [PATCH 494/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.12.0 (#916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.3` -> `2.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.12.0/compatibility-slim/2.11.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.12.0/confidence-slim/2.11.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.12.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisjava-storagecomparev2113v2120-2022-09-15) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.3...v2.12.0) ##### Features - Add toString method for CustomPlacementConfig ([#​1602](https://togithub.com/googleapis/java-storage/issues/1602)) ([51aca10](https://togithub.com/googleapis/java-storage/commit/51aca10fafe685ed9e7cb41bc4ae79be10feb080)) ##### Documentation - Add batch sample ([#​1559](https://togithub.com/googleapis/java-storage/issues/1559)) ([583bf73](https://togithub.com/googleapis/java-storage/commit/583bf73f5d58aa5d79fbaa12b24407c558235eed)) - Document thread safety of library ([#​1566](https://togithub.com/googleapis/java-storage/issues/1566)) ([c740899](https://togithub.com/googleapis/java-storage/commit/c7408999e811ba917edb0c136432afa29075e0f2)) - Fix broken links in readme ([#​1520](https://togithub.com/googleapis/java-storage/issues/1520)) ([840b08a](https://togithub.com/googleapis/java-storage/commit/840b08a03fa7c0535855140244c282f79403b458)) ##### Dependencies - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#​1611](https://togithub.com/googleapis/java-storage/issues/1611)) ([8a48aea](https://togithub.com/googleapis/java-storage/commit/8a48aea7e0049c64ef944b532a2874115b1e2323)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#​1620](https://togithub.com/googleapis/java-storage/issues/1620)) ([20e6378](https://togithub.com/googleapis/java-storage/commit/20e63785462e7876a7ff0ceeeea1363007cc160f))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4a9ed40a..f17e3987 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.3 + 2.12.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 906b6b90..e778809b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.3 + 2.12.0 junit From e656803333452cb1b0cef0d35bca182af970fed4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 22:32:20 +0200 Subject: [PATCH 495/519] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#920) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 8 ++++---- samples/snippets/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bd4b7ce5..056662cf 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.1') +implementation platform('com.google.cloud:libraries-bom:26.1.2') implementation 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.4' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.4" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.5" ``` ## Authentication diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f9f9a4c8..9196dd0b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 4e28264ec84a41f48bb8f36d519319ab223223fd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 17:29:07 +0200 Subject: [PATCH 496/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.5 (#919) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 056662cf..397cc89b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f17e3987..03ea55bc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.4 + 4.0.5 From 5d7db80b13ecdb8e2dc9e3fc2c1ee27562e17f60 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:52:15 +0000 Subject: [PATCH 497/519] chore(main): release 4.0.6 (#921) :robot: I have created a release *beep* *boop* --- ## [4.0.6](https://github.com/googleapis/java-dataproc/compare/v4.0.5...v4.0.6) (2022-09-21) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.12.0 ([#916](https://github.com/googleapis/java-dataproc/issues/916)) ([8c6efdd](https://github.com/googleapis/java-dataproc/commit/8c6efdd79c675eb2c2c0f89b65fa34f07483d5d3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9602bb2..7c1ef041 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.6](https://github.com/googleapis/java-dataproc/compare/v4.0.5...v4.0.6) (2022-09-21) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.12.0 ([#916](https://github.com/googleapis/java-dataproc/issues/916)) ([8c6efdd](https://github.com/googleapis/java-dataproc/commit/8c6efdd79c675eb2c2c0f89b65fa34f07483d5d3)) + ## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 6b55b833..6f3af0a7 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.6-SNAPSHOT + 4.0.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.6-SNAPSHOT + 4.0.6 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 665ac071..87139dba 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.6-SNAPSHOT + 4.0.6 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.6-SNAPSHOT + 4.0.6 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 53728901..a8cbff84 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.6-SNAPSHOT + 4.0.6 diff --git a/pom.xml b/pom.xml index 1d7e157e..2b9c3408 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.6-SNAPSHOT + 4.0.6 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6 com.google.cloud google-cloud-dataproc - 4.0.6-SNAPSHOT + 4.0.6 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 04e73ad0..0db8ad52 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6-SNAPSHOT + 4.0.6 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.6-SNAPSHOT + 4.0.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e778809b..7d134bf3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.6-SNAPSHOT + 4.0.6 diff --git a/versions.txt b/versions.txt index de27f50e..ed6a6d0b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.5:4.0.6-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.5:4.0.6-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.5:4.0.6-SNAPSHOT +google-cloud-dataproc:4.0.6:4.0.6 +grpc-google-cloud-dataproc-v1:4.0.6:4.0.6 +proto-google-cloud-dataproc-v1:4.0.6:4.0.6 From ee2ca477526d0faa6913e717df47372f218f81ff Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 21:50:12 +0000 Subject: [PATCH 498/519] chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) (#927) * chore: pin versions of dependencies for compatibility with Python 3.6 * fix path of requirements file in synthtool Source-Link: https://github.com/googleapis/synthtool/commit/69cdb47824170d0b02bf694649ce66613c889040 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 3 +- .kokoro/requirements.in | 31 ++ .kokoro/requirements.txt | 452 +++++++++++++++++++++++++++ README.md | 4 +- 7 files changed, 490 insertions(+), 6 deletions(-) create mode 100644 .kokoro/requirements.in create mode 100644 .kokoro/requirements.txt diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 62592923..791e842d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index e8ab72fe..1eb7f098 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 0890a208..1b67d842 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 1dba8de1..61e714d6 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in new file mode 100644 index 00000000..cfdc2e7e --- /dev/null +++ b/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt new file mode 100644 index 00000000..170f1c63 --- /dev/null +++ b/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata diff --git a/README.md b/README.md index 397cc89b..ad343ebd 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.5' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.5" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.6" ``` ## Authentication From 5a6f72eeef5d426ed983b94b4380e075ac40d5a7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:51:37 -0400 Subject: [PATCH 499/519] chore: updated docs and code sturcture for Dataproc metric configuration (#922) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add support for Dataproc metric configuration Committer: @akshatbhargava PiperOrigin-RevId: 475750057 Source-Link: https://github.com/googleapis/googleapis/commit/30517fdc372db88146dd4e72b6309cc0b85e2e01 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a41cc2ab3df78ee0b84f67499e7562de02ab34c0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTQxY2MyYWIzZGY3OGVlMGI4NGY2NzQ5OWU3NTYyZGUwMmFiMzRjMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: updated docs and code sturcture for Dataproc metric configuration Committer: @akshatbhargava123 PiperOrigin-RevId: 477101789 Source-Link: https://github.com/googleapis/googleapis/commit/2e19de1a9735bad09e698011f20d4123abbd9117 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c12032a59778fdd173d4cfe82c472c0596043865 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzEyMDMyYTU5Nzc4ZmRkMTczZDRjZmU4MmM0NzJjMDU5NjA0Mzg2NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/dataproc/v1/ClusterConfig.java | 309 ++ .../dataproc/v1/ClusterConfigOrBuilder.java | 41 + .../cloud/dataproc/v1/ClustersProto.java | 533 ++-- .../dataproc/v1/DataprocMetricConfig.java | 2684 +++++++++++++++++ .../v1/DataprocMetricConfigOrBuilder.java | 87 + .../google/cloud/dataproc/v1/clusters.proto | 79 + 6 files changed, 3486 insertions(+), 247 deletions(-) create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java create mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index d2df6e2f..f172b124 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -275,6 +275,23 @@ private ClusterConfig( metastoreConfig_ = subBuilder.buildPartial(); } + break; + } + case 186: + { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder subBuilder = null; + if (dataprocMetricConfig_ != null) { + subBuilder = dataprocMetricConfig_.toBuilder(); + } + dataprocMetricConfig_ = + input.readMessage( + com.google.cloud.dataproc.v1.DataprocMetricConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataprocMetricConfig_); + dataprocMetricConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -1205,6 +1222,61 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO return getMetastoreConfig(); } + public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataprocMetricConfig field is set. + */ + @java.lang.Override + public boolean hasDataprocMetricConfig() { + return dataprocMetricConfig_ != null; + } + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataprocMetricConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; + } + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder + getDataprocMetricConfigOrBuilder() { + return getDataprocMetricConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1261,6 +1333,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metastoreConfig_ != null) { output.writeMessage(20, getMetastoreConfig()); } + if (dataprocMetricConfig_ != null) { + output.writeMessage(23, getDataprocMetricConfig()); + } unknownFields.writeTo(output); } @@ -1315,6 +1390,10 @@ public int getSerializedSize() { if (metastoreConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); } + if (dataprocMetricConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1378,6 +1457,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMetastoreConfig()) { if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; } + if (hasDataprocMetricConfig() != other.hasDataprocMetricConfig()) return false; + if (hasDataprocMetricConfig()) { + if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1441,6 +1524,10 @@ public int hashCode() { hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMetastoreConfig().hashCode(); } + if (hasDataprocMetricConfig()) { + hash = (37 * hash) + DATAPROC_METRIC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataprocMetricConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1664,6 +1751,12 @@ public Builder clear() { metastoreConfig_ = null; metastoreConfigBuilder_ = null; } + if (dataprocMetricConfigBuilder_ == null) { + dataprocMetricConfig_ = null; + } else { + dataprocMetricConfig_ = null; + dataprocMetricConfigBuilder_ = null; + } return this; } @@ -1758,6 +1851,11 @@ public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { } else { result.metastoreConfig_ = metastoreConfigBuilder_.build(); } + if (dataprocMetricConfigBuilder_ == null) { + result.dataprocMetricConfig_ = dataprocMetricConfig_; + } else { + result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1875,6 +1973,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.hasMetastoreConfig()) { mergeMetastoreConfig(other.getMetastoreConfig()); } + if (other.hasDataprocMetricConfig()) { + mergeDataprocMetricConfig(other.getDataprocMetricConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5121,6 +5222,214 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO return metastoreConfigBuilder_; } + private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> + dataprocMetricConfigBuilder_; + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataprocMetricConfig field is set. + */ + public boolean hasDataprocMetricConfig() { + return dataprocMetricConfigBuilder_ != null || dataprocMetricConfig_ != null; + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataprocMetricConfig. + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { + if (dataprocMetricConfigBuilder_ == null) { + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; + } else { + return dataprocMetricConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataprocMetricConfig( + com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + if (dataprocMetricConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataprocMetricConfig_ = value; + onChanged(); + } else { + dataprocMetricConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataprocMetricConfig( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue) { + if (dataprocMetricConfigBuilder_ == null) { + dataprocMetricConfig_ = builderForValue.build(); + onChanged(); + } else { + dataprocMetricConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataprocMetricConfig( + com.google.cloud.dataproc.v1.DataprocMetricConfig value) { + if (dataprocMetricConfigBuilder_ == null) { + if (dataprocMetricConfig_ != null) { + dataprocMetricConfig_ = + com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataprocMetricConfig_ = value; + } + onChanged(); + } else { + dataprocMetricConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataprocMetricConfig() { + if (dataprocMetricConfigBuilder_ == null) { + dataprocMetricConfig_ = null; + onChanged(); + } else { + dataprocMetricConfig_ = null; + dataprocMetricConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder + getDataprocMetricConfigBuilder() { + + onChanged(); + return getDataprocMetricConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder + getDataprocMetricConfigOrBuilder() { + if (dataprocMetricConfigBuilder_ != null) { + return dataprocMetricConfigBuilder_.getMessageOrBuilder(); + } else { + return dataprocMetricConfig_ == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() + : dataprocMetricConfig_; + } + } + /** + * + * + *
+     * Optional. The config for Dataproc metrics.
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> + getDataprocMetricConfigFieldBuilder() { + if (dataprocMetricConfigBuilder_ == null) { + dataprocMetricConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( + getDataprocMetricConfig(), getParentForChildren(), isClean()); + dataprocMetricConfig_ = null; + } + return dataprocMetricConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java index 848764d7..310c89b5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java @@ -701,4 +701,45 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization * */ com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataprocMetricConfig field is set. + */ + boolean hasDataprocMetricConfig(); + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataprocMetricConfig. + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig(); + /** + * + * + *
+   * Optional. The config for Dataproc metrics.
+   * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder(); } diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 87a31595..125c4937 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -139,6 +139,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -226,7 +234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\334\007\n\rClusterCo" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\261\010\n\rClusterCo" + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" @@ -251,242 +259,254 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "int_config\030\023 \001(\0132(.google.cloud.dataproc" + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" - + "astoreConfigB\003\340A\001\"\204\002\n\024VirtualClusterConf" - + "ig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n\031kuber" - + "netes_cluster_config\030\006 \001(\01321.google.clou" - + "d.dataproc.v1.KubernetesClusterConfigB\003\340" - + "A\002H\000\022Y\n\031auxiliary_services_config\030\007 \001(\0132" - + "1.google.cloud.dataproc.v1.AuxiliaryServ" - + "icesConfigB\003\340A\001B\027\n\025infrastructure_config" - + "\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020metastor" - + "e_config\030\001 \001(\0132).google.cloud.dataproc.v" - + "1.MetastoreConfigB\003\340A\001\022\\\n\033spark_history_" - + "server_config\030\002 \001(\01322.google.cloud.datap" - + "roc.v1.SparkHistoryServerConfigB\003\340A\001\"\272\001\n" - + "\016EndpointConfig\022P\n\nhttp_ports\030\001 \003(\01327.go" - + "ogle.cloud.dataproc.v1.EndpointConfig.Ht" - + "tpPortsEntryB\003\340A\003\022$\n\027enable_http_port_ac" - + "cess\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Autoscaling" - + "Config\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020Encry" - + "ptionConfig\022 \n\023gce_pd_kms_key_name\030\001 \001(\t" - + "B\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zone_uri\030\001" - + " \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n\016s" - + "ubnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020internal_ip_" - + "only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_google_a" - + "ccess\030\014 \001(\0162B.google.cloud.dataproc.v1.G" - + "ceClusterConfig.PrivateIpv6GoogleAccessB" - + "\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001\022#\n\026se" - + "rvice_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004tags\030" - + "\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.cloud.d" - + "ataproc.v1.GceClusterConfig.MetadataEntr" - + "y\022P\n\024reservation_affinity\030\013 \001(\0132-.google" - + ".cloud.dataproc.v1.ReservationAffinityB\003" - + "\340A\001\022M\n\023node_group_affinity\030\r \001(\0132+.googl" - + "e.cloud.dataproc.v1.NodeGroupAffinityB\003\340" - + "A\001\022W\n\030shielded_instance_config\030\016 \001(\01320.g" - + "oogle.cloud.dataproc.v1.ShieldedInstance" - + "ConfigB\003\340A\001\022_\n\034confidential_instance_con" - + "fig\030\017 \001(\01324.google.cloud.dataproc.v1.Con" - + "fidentialInstanceConfigB\003\340A\001\032/\n\rMetadata" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\203\001" - + "\n\027PrivateIpv6GoogleAccess\022*\n&PRIVATE_IPV" - + "6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027INHERIT" - + "_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n\rBIDI" - + "RECTIONAL\020\003\"0\n\021NodeGroupAffinity\022\033\n\016node" - + "_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedInstanc" - + "eConfig\022\037\n\022enable_secure_boot\030\001 \001(\010B\003\340A\001" - + "\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enable_int" - + "egrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032Confiden" - + "tialInstanceConfig\022(\n\033enable_confidentia" - + "l_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023InstanceGroupCo" - + "nfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n\016inst" - + "ance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030\003 \001(\t" - + "B\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n\013" - + "disk_config\030\005 \001(\0132$.google.cloud.datapro" - + "c.v1.DiskConfigB\003\340A\001\022\033\n\016is_preemptible\030\006" - + " \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<.goog" - + "le.cloud.dataproc.v1.InstanceGroupConfig" - + ".PreemptibilityB\003\340A\001\022O\n\024managed_group_co" - + "nfig\030\007 \001(\0132,.google.cloud.dataproc.v1.Ma" - + "nagedGroupConfigB\003\340A\003\022F\n\014accelerators\030\010 " - + "\003(\0132+.google.cloud.dataproc.v1.Accelerat" - + "orConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t \001(\tB" - + "\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIBILITY" - + "_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001\022\017\n\013P" - + "REEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022#\n\026in" - + "stance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033insta" - + "nce_group_manager_name\030\002 \001(\tB\003\340A\003\"L\n\021Acc" - + "eleratorConfig\022\034\n\024accelerator_type_uri\030\001" - + " \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210\001\n\nDisk" - + "Config\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001\022\036\n\021b" - + "oot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_local" - + "_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_interface\030" - + "\004 \001(\tB\003\340A\001\"s\n\030NodeInitializationAction\022\034" - + "\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021executio" - + "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005state\030\001 \001(\016" - + "2-.google.cloud.dataproc.v1.ClusterStatu" - + "s.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020" - + "state_start_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620.goog" - + "le.cloud.dataproc.v1.ClusterStatus.Subst" - + "ateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010CREAT" - + "ING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023ERROR_D" - + "UE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010UPDATING" - + "\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010STARTIN" - + "G\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHE" - + "ALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016SecurityCo" - + "nfig\022F\n\017kerberos_config\030\001 \001(\0132(.google.c" - + "loud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n\017" - + "identity_config\030\002 \001(\0132(.google.cloud.dat" - + "aproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016Kerbero" - + "sConfig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n" - + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022" - + "\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keystore_ur" - + "i\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(\tB\003\340A" - + "\001\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340A\001\022\035\n" - + "\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027truststo" - + "re_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross_real" - + "m_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_realm_" - + "trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm_trus" - + "t_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_realm" - + "_trust_shared_password_uri\030\014 \001(\tB\003\340A\001\022\033\n" - + "\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_lifeti" - + "me_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB\003\340A\001\"" - + "\306\001\n\016IdentityConfig\022r\n\034user_service_accou" - + "nt_mapping\030\001 \003(\0132G.google.cloud.dataproc" - + ".v1.IdentityConfig.UserServiceAccountMap" - + "pingEntryB\003\340A\002\032@\n\036UserServiceAccountMapp" - + "ingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"\371\001\n\016SoftwareConfig\022\032\n\rimage_version\030\001 \001" - + "(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.google.clo" - + "ud.dataproc.v1.SoftwareConfig.Properties" - + "EntryB\003\340A\001\022E\n\023optional_components\030\003 \003(\0162" - + "#.google.cloud.dataproc.v1.ComponentB\003\340A" - + "\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n\017idle" - + "_delete_ttl\030\001 \001(\0132\031.google.protobuf.Dura" - + "tionB\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\001H\000\0229\n\017auto_d" - + "elete_ttl\030\003 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003B\005\n\003ttl\"_\n\017Me" - + "tastoreConfig\022L\n\032dataproc_metastore_serv" - + "ice\030\001 \001(\tB(\340A\002\372A\"\n metastore.googleapis." - + "com/Service\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_m" - + "etrics\030\001 \003(\01329.google.cloud.dataproc.v1." - + "ClusterMetrics.HdfsMetricsEntry\022O\n\014yarn_" - + "metrics\030\002 \003(\01329.google.cloud.dataproc.v1" - + ".ClusterMetrics.YarnMetricsEntry\0322\n\020Hdfs" - + "MetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" - + ":\0028\001\0322\n\020YarnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\003:\0028\001\"\356\001\n\024CreateClusterReques" - + "t\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001" - + "(\tB\003\340A\002\0227\n\007cluster\030\002 \001(\0132!.google.cloud." - + "dataproc.v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\022V\n action_on_failed_primary_wo" - + "rkers\030\005 \001(\0162\'.google.cloud.dataproc.v1.F" - + "ailureActionB\003\340A\001\"\256\002\n\024UpdateClusterReque" - + "st\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 " - + "\001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007c" - + "luster\030\003 \001(\0132!.google.cloud.dataproc.v1." - + "ClusterB\003\340A\002\022E\n\035graceful_decommission_ti" - + "meout\030\006 \001(\0132\031.google.protobuf.DurationB\003" - + "\340A\001\0224\n\013update_mask\030\004 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340" - + "A\001\"\221\001\n\022StopClusterRequest\022\027\n\nproject_id\030" - + "\001 \001(\tB\003\340A\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014clust" - + "er_name\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\t" - + "B\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023Start" - + "ClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022" - + "\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001" - + "(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nre" - + "quest_id\030\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterReq" - + "uest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030" - + "\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005" - + " \001(\tB\003\340A\001\"\\\n\021GetClusterRequest\022\027\n\nprojec" - + "t_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014" - + "cluster_name\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClusters" - + "Request\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006regi" - + "on\030\004 \001(\tB\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpa" - + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" - + "\340A\001\"n\n\024ListClustersResponse\0228\n\010clusters\030" - + "\001 \003(\0132!.google.cloud.dataproc.v1.Cluster" - + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026D" - + "iagnoseClusterRequest\022\027\n\nproject_id\030\001 \001(" + + "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" + + "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" + + "aprocMetricConfigB\003\340A\001\"\204\002\n\024VirtualCluste" + + "rConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n\031" + + "kubernetes_cluster_config\030\006 \001(\01321.google" + + ".cloud.dataproc.v1.KubernetesClusterConf" + + "igB\003\340A\002H\000\022Y\n\031auxiliary_services_config\030\007" + + " \001(\01321.google.cloud.dataproc.v1.Auxiliar" + + "yServicesConfigB\003\340A\001B\027\n\025infrastructure_c" + + "onfig\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020met" + + "astore_config\030\001 \001(\0132).google.cloud.datap" + + "roc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_his" + + "tory_server_config\030\002 \001(\01322.google.cloud." + + "dataproc.v1.SparkHistoryServerConfigB\003\340A" + + "\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003(\013" + + "27.google.cloud.dataproc.v1.EndpointConf" + + "ig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_po" + + "rt_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Autosc" + + "alingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020" + + "EncryptionConfig\022 \n\023gce_pd_kms_key_name\030" + + "\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zone_" + + "uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001" + + "\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020interna" + + "l_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_goo" + + "gle_access\030\014 \001(\0162B.google.cloud.dataproc" + + ".v1.GceClusterConfig.PrivateIpv6GoogleAc" + + "cessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001\022" + + "#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004" + + "tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.cl" + + "oud.dataproc.v1.GceClusterConfig.Metadat" + + "aEntry\022P\n\024reservation_affinity\030\013 \001(\0132-.g" + + "oogle.cloud.dataproc.v1.ReservationAffin" + + "ityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132+." + + "google.cloud.dataproc.v1.NodeGroupAffini" + + "tyB\003\340A\001\022W\n\030shielded_instance_config\030\016 \001(" + + "\01320.google.cloud.dataproc.v1.ShieldedIns" + + "tanceConfigB\003\340A\001\022_\n\034confidential_instanc" + + "e_config\030\017 \001(\01324.google.cloud.dataproc.v" + + "1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rMet" + + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIVAT" + + "E_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027IN" + + "HERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n" + + "\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022\033\n" + + "\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedIn" + + "stanceConfig\022\037\n\022enable_secure_boot\030\001 \001(\010" + + "B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enabl" + + "e_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032Con" + + "fidentialInstanceConfig\022(\n\033enable_confid" + + "ential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023InstanceGr" + + "oupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n" + + "\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030" + + "\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A" + + "\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud.da" + + "taproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preempti" + + "ble\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<" + + ".google.cloud.dataproc.v1.InstanceGroupC" + + "onfig.PreemptibilityB\003\340A\001\022O\n\024managed_gro" + + "up_config\030\007 \001(\0132,.google.cloud.dataproc." + + "v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelerato" + + "rs\030\010 \003(\0132+.google.cloud.dataproc.v1.Acce" + + "leratorConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t" + + " \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIB" + + "ILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001" + + "\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022" + + "#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033" + + "instance_group_manager_name\030\002 \001(\tB\003\340A\003\"L" + + "\n\021AcceleratorConfig\022\034\n\024accelerator_type_" + + "uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210\001\n" + + "\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001" + + "\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_" + + "local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_inter" + + "face\030\004 \001(\tB\003\340A\001\"s\n\030NodeInitializationAct" + + "ion\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021exe" + + "cution_timeout\030\002 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005state\030" + + "\001 \001(\0162-.google.cloud.dataproc.v1.Cluster" + + "Status.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A" + + "\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620" + + ".google.cloud.dataproc.v1.ClusterStatus." + + "SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010" + + "CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023ER" + + "ROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010UPD" + + "ATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010ST" + + "ARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n" + + "\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Secur" + + "ityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.goo" + + "gle.cloud.dataproc.v1.KerberosConfigB\003\340A" + + "\001\022F\n\017identity_config\030\002 \001(\0132(.google.clou" + + "d.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016Ke" + + "rberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340" + + "A\001\022(\n\033root_principal_password_uri\030\002 \001(\tB" + + "\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keysto" + + "re_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(" + + "\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340" + + "A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027tru" + + "ststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross" + + "_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_r" + + "ealm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm" + + "_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_" + + "realm_trust_shared_password_uri\030\014 \001(\tB\003\340" + + "A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_l" + + "ifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB" + + "\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_service_" + + "account_mapping\030\001 \003(\0132G.google.cloud.dat" + + "aproc.v1.IdentityConfig.UserServiceAccou" + + "ntMappingEntryB\003\340A\002\032@\n\036UserServiceAccoun" + + "tMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_versio" + + "n\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.googl" + + "e.cloud.dataproc.v1.SoftwareConfig.Prope" + + "rtiesEntryB\003\340A\001\022E\n\023optional_components\030\003" + + " \003(\0162#.google.cloud.dataproc.v1.Componen" + + "tB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n" + + "\017idle_delete_ttl\030\001 \001(\0132\031.google.protobuf" + + ".DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n\017a" + + "uto_delete_ttl\030\003 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003B\005\n\003ttl\"" + + "_\n\017MetastoreConfig\022L\n\032dataproc_metastore" + + "_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.google" + + "apis.com/Service\"\377\002\n\024DataprocMetricConfi" + + "g\022K\n\007metrics\030\001 \003(\01325.google.cloud.datapr" + + "oc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200" + + "\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.googl" + + "e.cloud.dataproc.v1.DataprocMetricConfig" + + ".MetricSourceB\003\340A\002\022\035\n\020metric_overrides\030\002" + + " \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_SOU" + + "RCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_DE" + + "FAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020\004\022" + + "\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVER2" + + "\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030\001 " + + "\003(\01329.google.cloud.dataproc.v1.ClusterMe" + + "trics.HdfsMetricsEntry\022O\n\014yarn_metrics\030\002" + + " \003(\01329.google.cloud.dataproc.v1.ClusterM" + + "etrics.YarnMetricsEntry\0322\n\020HdfsMetricsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020Y" + + "arnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\nproj" + + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227" + + "\n\007cluster\030\002 \001(\0132!.google.cloud.dataproc." + + "v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\022V\n action_on_failed_primary_workers\030\005 \001" + + "(\0162\'.google.cloud.dataproc.v1.FailureAct" + + "ionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\npro" + + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022" + + "\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 " + + "\001(\0132!.google.cloud.dataproc.v1.ClusterB\003" + + "\340A\002\022E\n\035graceful_decommission_timeout\030\006 \001" + + "(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013up" + + "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022St" + + "opClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A" + + "\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003" + + " \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" + + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartClusterRe" + + "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region" + + "\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031" + + "\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030" + + "\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n\np" + + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" + + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_" + + "uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001" + + "\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 \001(" + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n" - + "ame\030\002 \001(\tB\003\340A\002\"1\n\026DiagnoseClusterResults" - + "\022\027\n\noutput_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023Reservatio" - + "nAffinity\022Y\n\030consume_reservation_type\030\001 " - + "\001(\01622.google.cloud.dataproc.v1.Reservati" - + "onAffinity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023" - + "\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSP" - + "ECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RES" - + "ERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n" - + "\021ClusterController\022\200\002\n\rCreateCluster\022..g" - + "oogle.cloud.dataproc.v1.CreateClusterReq" - + "uest\032\035.google.longrunning.Operation\"\237\001\202\323" - + "\344\223\002>\"3/v1/projects/{project_id}/regions/" - + "{region}/clusters:\007cluster\332A\031project_id," - + "region,cluster\312A<\n\007Cluster\0221google.cloud" - + ".dataproc.v1.ClusterOperationMetadata\022\250\002" - + "\n\rUpdateCluster\022..google.cloud.dataproc." - + "v1.UpdateClusterRequest\032\035.google.longrun" - + "ning.Operation\"\307\001\202\323\344\223\002M2B/v1/projects/{p" - + "roject_id}/regions/{region}/clusters/{cl" - + "uster_name}:\007cluster\332A2project_id,region" - + ",cluster_name,cluster,update_mask\312A<\n\007Cl" - + "uster\0221google.cloud.dataproc.v1.ClusterO" - + "perationMetadata\022\356\001\n\013StopCluster\022,.googl" - + "e.cloud.dataproc.v1.StopClusterRequest\032\035" - + ".google.longrunning.Operation\"\221\001\202\323\344\223\002L\"G" - + "/v1/projects/{project_id}/regions/{regio" - + "n}/clusters/{cluster_name}:stop:\001*\312A<\n\007C" - + "luster\0221google.cloud.dataproc.v1.Cluster" - + "OperationMetadata\022\361\001\n\014StartCluster\022-.goo" - + "gle.cloud.dataproc.v1.StartClusterReques" - + "t\032\035.google.longrunning.Operation\"\222\001\202\323\344\223\002" - + "M\"H/v1/projects/{project_id}/regions/{re" - + "gion}/clusters/{cluster_name}:start:\001*\312A" - + "<\n\007Cluster\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\022\231\002\n\rDeleteCluster\022" - + "..google.cloud.dataproc.v1.DeleteCluster" - + "Request\032\035.google.longrunning.Operation\"\270" - + "\001\202\323\344\223\002D*B/v1/projects/{project_id}/regio" - + "ns/{region}/clusters/{cluster_name}\332A\036pr" - + "oject_id,region,cluster_name\312AJ\n\025google." - + "protobuf.Empty\0221google.cloud.dataproc.v1" - + ".ClusterOperationMetadata\022\311\001\n\nGetCluster" - + "\022+.google.cloud.dataproc.v1.GetClusterRe" - + "quest\032!.google.cloud.dataproc.v1.Cluster" - + "\"k\202\323\344\223\002D\022B/v1/projects/{project_id}/regi" - + "ons/{region}/clusters/{cluster_name}\332A\036p" - + "roject_id,region,cluster_name\022\331\001\n\014ListCl" - + "usters\022-.google.cloud.dataproc.v1.ListCl" - + "ustersRequest\032..google.cloud.dataproc.v1" - + ".ListClustersResponse\"j\202\323\344\223\0025\0223/v1/proje" + + "ame\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest\022\027" + + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB" + + "\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024Li" + + "stClustersResponse\0228\n\010clusters\030\001 \003(\0132!.g" + + "oogle.cloud.dataproc.v1.ClusterB\003\340A\003\022\034\n\017" + + "next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseCl" + + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\t" + + "B\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\noutpu" + + "t_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity" + + "\022Y\n\030consume_reservation_type\030\001 \001(\01622.goo" + + "gle.cloud.dataproc.v1.ReservationAffinit" + + "y.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030" + + "\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" + + "\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020" + + "\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterC" + + "ontroller\022\200\002\n\rCreateCluster\022..google.clo" + + "ud.dataproc.v1.CreateClusterRequest\032\035.go" + + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/v1" + + "/projects/{project_id}/regions/{region}/" + + "clusters:\007cluster\332A\031project_id,region,cl" + + "uster\312A<\n\007Cluster\0221google.cloud.dataproc" + + ".v1.ClusterOperationMetadata\022\250\002\n\rUpdateC" + + "luster\022..google.cloud.dataproc.v1.Update" + + "ClusterRequest\032\035.google.longrunning.Oper" + + "ation\"\307\001\202\323\344\223\002M2B/v1/projects/{project_id" + + "}/regions/{region}/clusters/{cluster_nam" + + "e}:\007cluster\332A2project_id,region,cluster_" + + "name,cluster,update_mask\312A<\n\007Cluster\0221go" + + "ogle.cloud.dataproc.v1.ClusterOperationM" + + "etadata\022\356\001\n\013StopCluster\022,.google.cloud.d" + + "ataproc.v1.StopClusterRequest\032\035.google.l" + + "ongrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/proje" + "cts/{project_id}/regions/{region}/cluste" - + "rs\332A\021project_id,region\332A\030project_id,regi" - + "on,filter\022\252\002\n\017DiagnoseCluster\0220.google.c" - + "loud.dataproc.v1.DiagnoseClusterRequest\032" - + "\035.google.longrunning.Operation\"\305\001\202\323\344\223\002P\"" - + "K/v1/projects/{project_id}/regions/{regi" - + "on}/clusters/{cluster_name}:diagnose:\001*\332" - + "A\036project_id,region,cluster_name\312AK\n\026Dia" - + "gnoseClusterResults\0221google.cloud.datapr" - + "oc.v1.ClusterOperationMetadata\032K\312A\027datap" - + "roc.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\263\002\n\034com.goog" - + "le.cloud.dataproc.v1B\rClustersProtoP\001Z@g" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/dataproc/v1;dataproc\352A^\n container.go" - + "ogleapis.com/Cluster\022:projects/{project}" - + "/locations/{location}/clusters/{cluster}" - + "\352A^\n metastore.googleapis.com/Service\022:p" - + "rojects/{project}/locations/{location}/s" - + "ervices/{service}b\006proto3" + + "rs/{cluster_name}:stop:\001*\312A<\n\007Cluster\0221g" + + "oogle.cloud.dataproc.v1.ClusterOperation" + + "Metadata\022\361\001\n\014StartCluster\022-.google.cloud" + + ".dataproc.v1.StartClusterRequest\032\035.googl" + + "e.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/pr" + + "ojects/{project_id}/regions/{region}/clu" + + "sters/{cluster_name}:start:\001*\312A<\n\007Cluste" + + "r\0221google.cloud.dataproc.v1.ClusterOpera" + + "tionMetadata\022\231\002\n\rDeleteCluster\022..google." + + "cloud.dataproc.v1.DeleteClusterRequest\032\035" + + ".google.longrunning.Operation\"\270\001\202\323\344\223\002D*B" + + "/v1/projects/{project_id}/regions/{regio" + + "n}/clusters/{cluster_name}\332A\036project_id," + + "region,cluster_name\312AJ\n\025google.protobuf." + + "Empty\0221google.cloud.dataproc.v1.ClusterO" + + "perationMetadata\022\311\001\n\nGetCluster\022+.google" + + ".cloud.dataproc.v1.GetClusterRequest\032!.g" + + "oogle.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002D\022" + + "B/v1/projects/{project_id}/regions/{regi" + + "on}/clusters/{cluster_name}\332A\036project_id" + + ",region,cluster_name\022\331\001\n\014ListClusters\022-." + + "google.cloud.dataproc.v1.ListClustersReq" + + "uest\032..google.cloud.dataproc.v1.ListClus" + + "tersResponse\"j\202\323\344\223\0025\0223/v1/projects/{proj" + + "ect_id}/regions/{region}/clusters\332A\021proj" + + "ect_id,region\332A\030project_id,region,filter" + + "\022\252\002\n\017DiagnoseCluster\0220.google.cloud.data" + + "proc.v1.DiagnoseClusterRequest\032\035.google." + + "longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/proj" + + "ects/{project_id}/regions/{region}/clust" + + "ers/{cluster_name}:diagnose:\001*\332A\036project" + + "_id,region,cluster_name\312AK\n\026DiagnoseClus" + + "terResults\0221google.cloud.dataproc.v1.Clu" + + "sterOperationMetadata\032K\312A\027dataproc.googl" + + "eapis.com\322A.https://www.googleapis.com/a" + + "uth/cloud-platformB\263\002\n\034com.google.cloud." + + "dataproc.v1B\rClustersProtoP\001Z@google.gol" + + "ang.org/genproto/googleapis/cloud/datapr" + + "oc/v1;dataproc\352A^\n container.googleapis." + + "com/Cluster\022:projects/{project}/location" + + "s/{location}/clusters/{cluster}\352A^\n meta" + + "store.googleapis.com/Service\022:projects/{" + + "project}/locations/{location}/services/{" + + "service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -546,6 +566,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LifecycleConfig", "EndpointConfig", "MetastoreConfig", + "DataprocMetricConfig", }); internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); @@ -787,8 +808,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataprocMetastoreService", }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, + new java.lang.String[] { + "Metrics", + }); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, + new java.lang.String[] { + "MetricSource", "MetricOverrides", + }); + internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, @@ -812,7 +851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, @@ -820,7 +859,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", }); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, @@ -834,7 +873,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, @@ -842,7 +881,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, @@ -850,7 +889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, @@ -858,7 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", }); internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, @@ -866,7 +905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, @@ -874,7 +913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, @@ -882,7 +921,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "NextPageToken", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, @@ -890,7 +929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Region", "ClusterName", }); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, @@ -898,7 +937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputUri", }); internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java new file mode 100644 index 00000000..93219b2d --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java @@ -0,0 +1,2684 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +/** + * + * + *
+ * Dataproc metric config.
+ * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} + */ +public final class DataprocMetricConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig) + DataprocMetricConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataprocMetricConfig.newBuilder() to construct. + private DataprocMetricConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataprocMetricConfig() { + metrics_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataprocMetricConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataprocMetricConfig( + 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)) { + metrics_ = + new java.util.ArrayList< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric>(); + mutable_bitField0_ |= 0x00000001; + } + metrics_.add( + input.readMessage( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + } + + /** + * + * + *
+   * A source for the collection of Dataproc OSS metrics (see [available OSS
+   * metrics]
+   * (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
+   * 
+ * + * Protobuf enum {@code google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource} + */ + public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Required unspecified metric source.
+     * 
+ * + * METRIC_SOURCE_UNSPECIFIED = 0; + */ + METRIC_SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Default monitoring agent metrics. If this source is enabled,
+     * Dataproc enables the monitoring agent in Compute Engine,
+     * and collects default monitoring agent metrics, which are published
+     * with an `agent.googleapis.com` prefix.
+     * 
+ * + * MONITORING_AGENT_DEFAULTS = 1; + */ + MONITORING_AGENT_DEFAULTS(1), + /** + * + * + *
+     * HDFS metric source.
+     * 
+ * + * HDFS = 2; + */ + HDFS(2), + /** + * + * + *
+     * Spark metric source.
+     * 
+ * + * SPARK = 3; + */ + SPARK(3), + /** + * + * + *
+     * YARN metric source.
+     * 
+ * + * YARN = 4; + */ + YARN(4), + /** + * + * + *
+     * Spark History Server metric source.
+     * 
+ * + * SPARK_HISTORY_SERVER = 5; + */ + SPARK_HISTORY_SERVER(5), + /** + * + * + *
+     * Hiveserver2 metric source.
+     * 
+ * + * HIVESERVER2 = 6; + */ + HIVESERVER2(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Required unspecified metric source.
+     * 
+ * + * METRIC_SOURCE_UNSPECIFIED = 0; + */ + public static final int METRIC_SOURCE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Default monitoring agent metrics. If this source is enabled,
+     * Dataproc enables the monitoring agent in Compute Engine,
+     * and collects default monitoring agent metrics, which are published
+     * with an `agent.googleapis.com` prefix.
+     * 
+ * + * MONITORING_AGENT_DEFAULTS = 1; + */ + public static final int MONITORING_AGENT_DEFAULTS_VALUE = 1; + /** + * + * + *
+     * HDFS metric source.
+     * 
+ * + * HDFS = 2; + */ + public static final int HDFS_VALUE = 2; + /** + * + * + *
+     * Spark metric source.
+     * 
+ * + * SPARK = 3; + */ + public static final int SPARK_VALUE = 3; + /** + * + * + *
+     * YARN metric source.
+     * 
+ * + * YARN = 4; + */ + public static final int YARN_VALUE = 4; + /** + * + * + *
+     * Spark History Server metric source.
+     * 
+ * + * SPARK_HISTORY_SERVER = 5; + */ + public static final int SPARK_HISTORY_SERVER_VALUE = 5; + /** + * + * + *
+     * Hiveserver2 metric source.
+     * 
+ * + * HIVESERVER2 = 6; + */ + public static final int HIVESERVER2_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricSource 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 MetricSource forNumber(int value) { + switch (value) { + case 0: + return METRIC_SOURCE_UNSPECIFIED; + case 1: + return MONITORING_AGENT_DEFAULTS; + case 2: + return HDFS; + case 3: + return SPARK; + case 4: + return YARN; + case 5: + return SPARK_HISTORY_SERVER; + case 6: + return HIVESERVER2; + 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 MetricSource findValueByNumber(int number) { + return MetricSource.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.dataproc.v1.DataprocMetricConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MetricSource[] VALUES = values(); + + public static MetricSource 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 MetricSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource) + } + + public interface MetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Default metrics are collected unless `metricOverrides` are
+     * specified for the metric source (see [Available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * for more information).
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for metricSource. + */ + int getMetricSourceValue(); + /** + * + * + *
+     * Required. Default metrics are collected unless `metricOverrides` are
+     * specified for the metric source (see [Available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * for more information).
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSource. + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource(); + + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metricOverrides. + */ + java.util.List getMetricOverridesList(); + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metricOverrides. + */ + int getMetricOverridesCount(); + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metricOverrides at the given index. + */ + java.lang.String getMetricOverrides(int index); + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metricOverrides at the given index. + */ + com.google.protobuf.ByteString getMetricOverridesBytes(int index); + } + /** + * + * + *
+   * A Dataproc OSS metric.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} + */ + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metric() { + metricSource_ = 0; + metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Metric( + 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 8: + { + int rawValue = input.readEnum(); + + metricSource_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metricOverrides_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + metricOverrides_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + metricOverrides_ = metricOverrides_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + } + + public static final int METRIC_SOURCE_FIELD_NUMBER = 1; + private int metricSource_; + /** + * + * + *
+     * Required. Default metrics are collected unless `metricOverrides` are
+     * specified for the metric source (see [Available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * for more information).
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for metricSource. + */ + @java.lang.Override + public int getMetricSourceValue() { + return metricSource_; + } + /** + * + * + *
+     * Required. Default metrics are collected unless `metricOverrides` are
+     * specified for the metric source (see [Available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * for more information).
+     * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSource. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED + : result; + } + + public static final int METRIC_OVERRIDES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList metricOverrides_; + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metricOverrides. + */ + public com.google.protobuf.ProtocolStringList getMetricOverridesList() { + return metricOverrides_; + } + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metricOverrides. + */ + public int getMetricOverridesCount() { + return metricOverrides_.size(); + } + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metricOverrides at the given index. + */ + public java.lang.String getMetricOverrides(int index) { + return metricOverrides_.get(index); + } + /** + * + * + *
+     * Optional. Specify one or more [available OSS metrics]
+     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+     * to collect for the metric course (for the `SPARK` metric source, any
+     * [Spark metric]
+     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+     * specified).
+     * Provide metrics in the following format:
+     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+     * Use camelcase as appropriate.
+     * Examples:
+     * ```
+     * yarn:ResourceManager:QueueMetrics:AppsCompleted
+     * spark:driver:DAGScheduler:job.allJobs
+     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+     * ```
+     * Notes:
+     * * Only the specified overridden metrics will be collected for the
+     *   metric source. For example, if one or more `spark:executive` metrics
+     *   are listed as metric overrides, other `SPARK` metrics will not be
+     *   collected. The collection of the default metrics for other OSS metric
+     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+     *   sources are enabled, and overrides are provided for Spark metrics only,
+     *   all default YARN metrics will be collected.
+     * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metricOverrides at the given index. + */ + public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { + return metricOverrides_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (metricSource_ + != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource + .METRIC_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, metricSource_); + } + for (int i = 0; i < metricOverrides_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricOverrides_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metricSource_ + != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource + .METRIC_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, metricSource_); + } + { + int dataSize = 0; + for (int i = 0; i < metricOverrides_.size(); i++) { + dataSize += computeStringSizeNoTag(metricOverrides_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetricOverridesList().size(); + } + 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.dataproc.v1.DataprocMetricConfig.Metric)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = + (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; + + if (metricSource_ != other.metricSource_) return false; + if (!getMetricOverridesList().equals(other.getMetricOverridesList())) 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) + METRIC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + metricSource_; + if (getMetricOverridesCount() > 0) { + hash = (37 * hash) + METRIC_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getMetricOverridesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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 Dataproc OSS metric.
+     * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.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(); + metricSource_ = 0; + + metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric build() { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = + new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); + int from_bitField0_ = bitField0_; + result.metricSource_ = metricSource_; + if (((bitField0_ & 0x00000001) != 0)) { + metricOverrides_ = metricOverrides_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metricOverrides_ = metricOverrides_; + 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.dataproc.v1.DataprocMetricConfig.Metric) { + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other) { + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) + return this; + if (other.metricSource_ != 0) { + setMetricSourceValue(other.getMetricSourceValue()); + } + if (!other.metricOverrides_.isEmpty()) { + if (metricOverrides_.isEmpty()) { + metricOverrides_ = other.metricOverrides_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricOverridesIsMutable(); + metricOverrides_.addAll(other.metricOverrides_); + } + 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.dataproc.v1.DataprocMetricConfig.Metric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int metricSource_ = 0; + /** + * + * + *
+       * Required. Default metrics are collected unless `metricOverrides` are
+       * specified for the metric source (see [Available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * for more information).
+       * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for metricSource. + */ + @java.lang.Override + public int getMetricSourceValue() { + return metricSource_; + } + /** + * + * + *
+       * Required. Default metrics are collected unless `metricOverrides` are
+       * specified for the metric source (see [Available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * for more information).
+       * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for metricSource to set. + * @return This builder for chaining. + */ + public Builder setMetricSourceValue(int value) { + + metricSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Default metrics are collected unless `metricOverrides` are
+       * specified for the metric source (see [Available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * for more information).
+       * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSource. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { + @SuppressWarnings("deprecation") + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); + return result == null + ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. Default metrics are collected unless `metricOverrides` are
+       * specified for the metric source (see [Available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * for more information).
+       * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The metricSource to set. + * @return This builder for chaining. + */ + public Builder setMetricSource( + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { + if (value == null) { + throw new NullPointerException(); + } + + metricSource_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Default metrics are collected unless `metricOverrides` are
+       * specified for the metric source (see [Available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * for more information).
+       * 
+ * + * + * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricSource() { + + metricSource_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList metricOverrides_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMetricOverridesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metricOverrides_ = new com.google.protobuf.LazyStringArrayList(metricOverrides_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the metricOverrides. + */ + public com.google.protobuf.ProtocolStringList getMetricOverridesList() { + return metricOverrides_.getUnmodifiableView(); + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of metricOverrides. + */ + public int getMetricOverridesCount() { + return metricOverrides_.size(); + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The metricOverrides at the given index. + */ + public java.lang.String getMetricOverrides(int index) { + return metricOverrides_.get(index); + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the metricOverrides at the given index. + */ + public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { + return metricOverrides_.getByteString(index); + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The metricOverrides to set. + * @return This builder for chaining. + */ + public Builder setMetricOverrides(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); + metricOverrides_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metricOverrides to add. + * @return This builder for chaining. + */ + public Builder addMetricOverrides(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricOverridesIsMutable(); + metricOverrides_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The metricOverrides to add. + * @return This builder for chaining. + */ + public Builder addAllMetricOverrides(java.lang.Iterable values) { + ensureMetricOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricOverrides_); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetricOverrides() { + metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specify one or more [available OSS metrics]
+       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
+       * to collect for the metric course (for the `SPARK` metric source, any
+       * [Spark metric]
+       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
+       * specified).
+       * Provide metrics in the following format:
+       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
+       * Use camelcase as appropriate.
+       * Examples:
+       * ```
+       * yarn:ResourceManager:QueueMetrics:AppsCompleted
+       * spark:driver:DAGScheduler:job.allJobs
+       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
+       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
+       * ```
+       * Notes:
+       * * Only the specified overridden metrics will be collected for the
+       *   metric source. For example, if one or more `spark:executive` metrics
+       *   are listed as metric overrides, other `SPARK` metrics will not be
+       *   collected. The collection of the default metrics for other OSS metric
+       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
+       *   sources are enabled, and overrides are provided for Spark metrics only,
+       *   all default YARN metrics will be collected.
+       * 
+ * + * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the metricOverrides to add. + * @return This builder for chaining. + */ + public Builder addMetricOverridesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetricOverridesIsMutable(); + metricOverrides_.add(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.dataproc.v1.DataprocMetricConfig.Metric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) + private static final com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metric(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.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int METRICS_FIELD_NUMBER = 1; + private java.util.List metrics_; + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.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 < metrics_.size(); i++) { + output.writeMessage(1, metrics_.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 < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.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.dataproc.v1.DataprocMetricConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.DataprocMetricConfig other = + (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; + + if (!getMetricsList().equals(other.getMetricsList())) 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 (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.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; + } + /** + * + * + *
+   * Dataproc metric config.
+   * 
+ * + * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig) + com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.DataprocMetricConfig.class, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + metricsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig build() { + com.google.cloud.dataproc.v1.DataprocMetricConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { + com.google.cloud.dataproc.v1.DataprocMetricConfig result = + new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); + int from_bitField0_ = bitField0_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.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.dataproc.v1.DataprocMetricConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other) { + if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) + return this; + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + 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.dataproc.v1.DataprocMetricConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dataproc.v1.DataprocMetricConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList( + metrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetrics( + int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetrics( + int index, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetrics( + int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetrics( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetrics( + int index, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllMetrics( + java.lang.Iterable + values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Metrics sources to enable.
+     * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + @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.dataproc.v1.DataprocMetricConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig) + private static final com.google.cloud.dataproc.v1.DataprocMetricConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig(); + } + + public static com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataprocMetricConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataprocMetricConfig(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.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java new file mode 100644 index 00000000..63851c5b --- /dev/null +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/dataproc/v1/clusters.proto + +package com.google.cloud.dataproc.v1; + +public interface DataprocMetricConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMetricsCount(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * Required. Metrics sources to enable.
+   * 
+ * + * + * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder(int index); +} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index 2b650c13..9550278b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -284,6 +284,9 @@ message ClusterConfig { // Optional. Metastore configuration. MetastoreConfig metastore_config = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The config for Dataproc metrics. + DataprocMetricConfig dataproc_metric_config = 23 [(google.api.field_behavior) = OPTIONAL]; } // Dataproc cluster config for a cluster that does not directly control the @@ -942,6 +945,82 @@ message MetastoreConfig { ]; } + +// Dataproc metric config. +message DataprocMetricConfig { + // A source for the collection of Dataproc OSS metrics (see [available OSS + // metrics] + // (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)). + enum MetricSource { + // Required unspecified metric source. + METRIC_SOURCE_UNSPECIFIED = 0; + + // Default monitoring agent metrics. If this source is enabled, + // Dataproc enables the monitoring agent in Compute Engine, + // and collects default monitoring agent metrics, which are published + // with an `agent.googleapis.com` prefix. + MONITORING_AGENT_DEFAULTS = 1; + + // HDFS metric source. + HDFS = 2; + + // Spark metric source. + SPARK = 3; + + // YARN metric source. + YARN = 4; + + // Spark History Server metric source. + SPARK_HISTORY_SERVER = 5; + + // Hiveserver2 metric source. + HIVESERVER2 = 6; + } + + // A Dataproc OSS metric. + message Metric { + // Required. Default metrics are collected unless `metricOverrides` are + // specified for the metric source (see [Available OSS metrics] + // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) + // for more information). + MetricSource metric_source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specify one or more [available OSS metrics] + // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) + // to collect for the metric course (for the `SPARK` metric source, any + // [Spark metric] + // (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be + // specified). + // + // Provide metrics in the following format: + // METRIC_SOURCE:INSTANCE:GROUP:METRIC + // Use camelcase as appropriate. + // + // Examples: + // + // ``` + // yarn:ResourceManager:QueueMetrics:AppsCompleted + // spark:driver:DAGScheduler:job.allJobs + // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed + // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used + // ``` + // + // Notes: + // + // * Only the specified overridden metrics will be collected for the + // metric source. For example, if one or more `spark:executive` metrics + // are listed as metric overrides, other `SPARK` metrics will not be + // collected. The collection of the default metrics for other OSS metric + // sources is unaffected. For example, if both `SPARK` andd `YARN` metric + // sources are enabled, and overrides are provided for Spark metrics only, + // all default YARN metrics will be collected. + repeated string metric_overrides = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Metrics sources to enable. + repeated Metric metrics = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Contains cluster daemon metrics, such as HDFS and YARN stats. // // **Beta Feature**: This report is available for testing purposes only. It may From 434101b9eefe9acd2ec3f4f227bbeed35ba3cebe Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 09:48:37 -0400 Subject: [PATCH 500/519] chore: exclude requirements.txt file from renovate-bot (#1594) (#928) Source-Link: https://github.com/googleapis/synthtool/commit/f58d3135a2fab20e225d98741dbc06d57459b816 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 Co-authored-by: Owl Bot Co-authored-by: Diego Alonso Marquez Palacios --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 791e842d..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/renovate.json b/renovate.json index f9ea56e3..6d1a8dca 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From c05358a0bac5cb3db4159b2a09824e131d73626b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 19:54:31 -0400 Subject: [PATCH 501/519] chore: use require-hashes option for owlbot docker image (#1592) (#925) * chore: use require-hashes option for owlbot docker image Co-authored-by: Mike Eltsufin Source-Link: https://github.com/googleapis/synthtool/commit/d7d1a87a7f0df9dd494617283ec0fab4b094687d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:faab4ce05feb201db2dbbec4eff44b1f132d5e0316f7ba1c25e538516973fae3 Co-authored-by: Owl Bot Co-authored-by: Mike Eltsufin Co-authored-by: Diego Alonso Marquez Palacios --- .github/.OwlBot.lock.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 42327db5..2c3ef720 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -14,3 +14,4 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + From 339514326c8ae8469cbe69ca9271ae4ff3b80e1b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 19:55:35 -0400 Subject: [PATCH 502/519] docs: [owlbot-java] samples do not need deploy plugin and deps upgrade (#1583) (#926) * docs: samples do not need deploy plugin * deps: upgrading shared deps 3.0.3 * fixing golden test Source-Link: https://github.com/googleapis/synthtool/commit/b61387e715529d29c3fed889477081873524f4dc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:23f5a406dfc9a62e61c4fb11e343f7f9f21af15b5b1f23d0535a10294ee337fd Co-authored-by: Owl Bot Co-authored-by: Diego Alonso Marquez Palacios From e88b5054d0fecb3da27cb79a9289bcbe7814605b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 23:20:19 +0200 Subject: [PATCH 503/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.6 (#924) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.5` -> `4.0.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.6/compatibility-slim/4.0.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.6/confidence-slim/4.0.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ad343ebd..e096b308 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 03ea55bc..94a15a73 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.5 + 4.0.6 From 42e0c364ee0fb7705ff6246b99b064a17d85f6ed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 15:44:22 +0200 Subject: [PATCH 504/519] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 (#952) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.4`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-shared-dependenciescomparev303v304-2022-10-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.3...v3.0.4) ##### Dependencies - Update dependency cachetools to v5 ([#​816](https://togithub.com/googleapis/java-shared-dependencies/issues/816)) ([3f6c408](https://togithub.com/googleapis/java-shared-dependencies/commit/3f6c408210c931c286235f61c7aadea5bf5cfe4d)) - Update dependency certifi to v2022.9.24 ([#​818](https://togithub.com/googleapis/java-shared-dependencies/issues/818)) ([5f04b97](https://togithub.com/googleapis/java-shared-dependencies/commit/5f04b97c2343146600e8c9ee65afdeb58f5743a6)) - Update dependency charset-normalizer to v2.1.1 ([#​822](https://togithub.com/googleapis/java-shared-dependencies/issues/822)) ([6997c5a](https://togithub.com/googleapis/java-shared-dependencies/commit/6997c5acad937ebe3594330de73261a424d42cf3)) - Update dependency click to v8.1.3 ([#​823](https://togithub.com/googleapis/java-shared-dependencies/issues/823)) ([42bf9f8](https://togithub.com/googleapis/java-shared-dependencies/commit/42bf9f834fdafea60f2be7ccbf7d363e058cd7c2)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#​837](https://togithub.com/googleapis/java-shared-dependencies/issues/837)) ([d31e507](https://togithub.com/googleapis/java-shared-dependencies/commit/d31e5077c7e036de5e238e9a611df7ced527574a)) - Update dependency gcp-releasetool to v1.8.8 ([#​819](https://togithub.com/googleapis/java-shared-dependencies/issues/819)) ([8245d97](https://togithub.com/googleapis/java-shared-dependencies/commit/8245d975fb12e81454ec7664f9a7c9809bbac697)) - Update dependency gcp-releasetool to v1.8.9 ([#​846](https://togithub.com/googleapis/java-shared-dependencies/issues/846)) ([04e3283](https://togithub.com/googleapis/java-shared-dependencies/commit/04e32831c6e87c372444901013a747d2d02ce38d)) - Update dependency google-api-core to v2.10.1 ([#​824](https://togithub.com/googleapis/java-shared-dependencies/issues/824)) ([818b9aa](https://togithub.com/googleapis/java-shared-dependencies/commit/818b9aa2ac99d8b1f9b39a74b626122aed5f1d94)) - Update dependency google-auth to v2.12.0 ([#​825](https://togithub.com/googleapis/java-shared-dependencies/issues/825)) ([07c544b](https://togithub.com/googleapis/java-shared-dependencies/commit/07c544b5e0fa9f7110bbc957570f7a405962072e)) - Update dependency google-cloud-core to v2.3.2 ([#​820](https://togithub.com/googleapis/java-shared-dependencies/issues/820)) ([2a219e8](https://togithub.com/googleapis/java-shared-dependencies/commit/2a219e86f187ba5ad72f2570bd58ca6100128c43)) - Update dependency google-cloud-storage to v2.5.0 ([#​826](https://togithub.com/googleapis/java-shared-dependencies/issues/826)) ([bb10d18](https://togithub.com/googleapis/java-shared-dependencies/commit/bb10d1858a515f09d365362ffa0110a5b362c96b)) - Update dependency google-crc32c to v1.5.0 ([#​827](https://togithub.com/googleapis/java-shared-dependencies/issues/827)) ([7e5dae6](https://togithub.com/googleapis/java-shared-dependencies/commit/7e5dae60d667cb84b9ee4f6c977bdc35e79e4cf6)) - Update dependency google-resumable-media to v2.4.0 ([#​838](https://togithub.com/googleapis/java-shared-dependencies/issues/838)) ([ad82d63](https://togithub.com/googleapis/java-shared-dependencies/commit/ad82d6378f64039da383509638fb4782908eb4bc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​821](https://togithub.com/googleapis/java-shared-dependencies/issues/821)) ([93d7745](https://togithub.com/googleapis/java-shared-dependencies/commit/93d77458c9bbf84ec367cdb4caaa41e6f71675c6)) - Update dependency importlib-metadata to v4.12.0 ([#​832](https://togithub.com/googleapis/java-shared-dependencies/issues/832)) ([ee19fb1](https://togithub.com/googleapis/java-shared-dependencies/commit/ee19fb1ca5a2a2e1985297e3b72d44de68bc72e3)) - Update dependency importlib-metadata to v4.13.0 ([#​843](https://togithub.com/googleapis/java-shared-dependencies/issues/843)) ([d2ede60](https://togithub.com/googleapis/java-shared-dependencies/commit/d2ede601eee8c875780c7eb5924623537480c509)) - Update dependency importlib-metadata to v5 ([#​845](https://togithub.com/googleapis/java-shared-dependencies/issues/845)) ([03ac7e8](https://togithub.com/googleapis/java-shared-dependencies/commit/03ac7e800274c5f58d2bc4ddd0561bfcdea1bb27)) - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​802](https://togithub.com/googleapis/java-shared-dependencies/issues/802)) ([b8c54bf](https://togithub.com/googleapis/java-shared-dependencies/commit/b8c54bf8f1ddecc788cee151f8afe42de45bdc9d)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​842](https://togithub.com/googleapis/java-shared-dependencies/issues/842)) ([1b1cfa2](https://togithub.com/googleapis/java-shared-dependencies/commit/1b1cfa27d05f7732da12721305cf41dcbebda232)) - Update dependency jeepney to v0.8.0 ([#​833](https://togithub.com/googleapis/java-shared-dependencies/issues/833)) ([15d2f9f](https://togithub.com/googleapis/java-shared-dependencies/commit/15d2f9f52b5a3259db0813df3d2424e256ccb372)) - Update dependency jinja2 to v3.1.2 ([#​834](https://togithub.com/googleapis/java-shared-dependencies/issues/834)) ([c188f95](https://togithub.com/googleapis/java-shared-dependencies/commit/c188f95acdb3349f1c4b3ed56e5fffb75e8fbc8d)) - Update dependency keyring to v23.9.3 ([#​828](https://togithub.com/googleapis/java-shared-dependencies/issues/828)) ([b185aaa](https://togithub.com/googleapis/java-shared-dependencies/commit/b185aaae716d4d97cb64f0426cac0e778f11223d)) - Update dependency markupsafe to v2.1.1 ([#​829](https://togithub.com/googleapis/java-shared-dependencies/issues/829)) ([add2825](https://togithub.com/googleapis/java-shared-dependencies/commit/add2825bd34cd80f529dbe0dadb3c84219177916)) - Update dependency org.threeten:threetenbp to v1.6.2 ([#​808](https://togithub.com/googleapis/java-shared-dependencies/issues/808)) ([2d2eabd](https://togithub.com/googleapis/java-shared-dependencies/commit/2d2eabd14d8150207885ea47280c0f7ff3d2962f)) - Update dependency protobuf to v3.20.2 ([#​830](https://togithub.com/googleapis/java-shared-dependencies/issues/830)) ([5afa76f](https://togithub.com/googleapis/java-shared-dependencies/commit/5afa76f9ef4705aecba49abc7bb93982fb1ecf3e)) - Update dependency protobuf to v3.20.3 ([#​839](https://togithub.com/googleapis/java-shared-dependencies/issues/839)) ([d9fc7dd](https://togithub.com/googleapis/java-shared-dependencies/commit/d9fc7ddd3e663458e6ea3f78a3c6241377df0319)) - Update dependency protobuf to v4 ([#​817](https://togithub.com/googleapis/java-shared-dependencies/issues/817)) ([ee8d154](https://togithub.com/googleapis/java-shared-dependencies/commit/ee8d154287ccd256b4dcfa48f28f5ec61a91fe3e)) - Update dependency pyjwt to v2.5.0 ([#​812](https://togithub.com/googleapis/java-shared-dependencies/issues/812)) ([4d4528e](https://togithub.com/googleapis/java-shared-dependencies/commit/4d4528e8ce269d49b99d2dbc4fcda2dc37a058cb)) - Update dependency requests to v2.28.1 ([#​813](https://togithub.com/googleapis/java-shared-dependencies/issues/813)) ([a3a8d89](https://togithub.com/googleapis/java-shared-dependencies/commit/a3a8d89b0117007a7108553c70aa82dd289e1691)) - Update dependency typing-extensions to v4.3.0 ([#​814](https://togithub.com/googleapis/java-shared-dependencies/issues/814)) ([da875e5](https://togithub.com/googleapis/java-shared-dependencies/commit/da875e5e91fa9d8c177e6c3afc9e34242eb914b7)) - Update dependency zipp to v3.8.1 ([#​815](https://togithub.com/googleapis/java-shared-dependencies/issues/815)) ([15585fd](https://togithub.com/googleapis/java-shared-dependencies/commit/15585fd0216013fe93be011f93f391f6269aa777)) - Update gax.version to v2.19.2 ([#​847](https://togithub.com/googleapis/java-shared-dependencies/issues/847)) ([c4afe1f](https://togithub.com/googleapis/java-shared-dependencies/commit/c4afe1fdc88af29ab039cea618d52c15c90e43e9)) - Update google.common-protos.version to v2.9.3 ([#​803](https://togithub.com/googleapis/java-shared-dependencies/issues/803)) ([a3e8e5e](https://togithub.com/googleapis/java-shared-dependencies/commit/a3e8e5eb53a8da14abf3b8d81a4f34fbb2f3b8f9)) - Update google.common-protos.version to v2.9.5 ([#​831](https://togithub.com/googleapis/java-shared-dependencies/issues/831)) ([1c901db](https://togithub.com/googleapis/java-shared-dependencies/commit/1c901db8a7740afaec3e809e51d4d369fbf469c4)) - Update google.common-protos.version to v2.9.6 ([#​844](https://togithub.com/googleapis/java-shared-dependencies/issues/844)) ([9e156be](https://togithub.com/googleapis/java-shared-dependencies/commit/9e156be59bd89959f04252c3045b8cd7a8be8070)) - Update google.core.version to v2.8.13 ([#​804](https://togithub.com/googleapis/java-shared-dependencies/issues/804)) ([45ae571](https://togithub.com/googleapis/java-shared-dependencies/commit/45ae57142bd6d5334eedd46243736b200a459795)) - Update google.core.version to v2.8.14 ([#​805](https://togithub.com/googleapis/java-shared-dependencies/issues/805)) ([02c9397](https://togithub.com/googleapis/java-shared-dependencies/commit/02c9397a84bf3fcca8d04e4c9867cc47689abde2)) - Update google.core.version to v2.8.15 ([#​807](https://togithub.com/googleapis/java-shared-dependencies/issues/807)) ([980856c](https://togithub.com/googleapis/java-shared-dependencies/commit/980856c43981992a3d08f69eac83aeada752d244)) - Update google.core.version to v2.8.16 ([#​810](https://togithub.com/googleapis/java-shared-dependencies/issues/810)) ([c2b2c9a](https://togithub.com/googleapis/java-shared-dependencies/commit/c2b2c9a327fd588f69524bb93a17e5d4ae8f5a42)) - Update google.core.version to v2.8.17 ([#​835](https://togithub.com/googleapis/java-shared-dependencies/issues/835)) ([3def21d](https://togithub.com/googleapis/java-shared-dependencies/commit/3def21df2e4253e3df0da064b6c4e472df079d2b)) - Update google.core.version to v2.8.18 ([#​840](https://togithub.com/googleapis/java-shared-dependencies/issues/840)) ([46566dc](https://togithub.com/googleapis/java-shared-dependencies/commit/46566dc18c4b1ed41c482b4ce21b92651e2f9dc5)) - Update google.core.version to v2.8.19 ([#​841](https://togithub.com/googleapis/java-shared-dependencies/issues/841)) ([99afde9](https://togithub.com/googleapis/java-shared-dependencies/commit/99afde97ea498f549eb75cc58c4ed88edf81b20d)) - Update google.core.version to v2.8.20 ([#​848](https://togithub.com/googleapis/java-shared-dependencies/issues/848)) ([c980c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/c980c4fdfc8890d812b4881ba5b87bfd21269a5f)) - Update iam.version to v1.6.1 ([#​806](https://togithub.com/googleapis/java-shared-dependencies/issues/806)) ([a50158d](https://togithub.com/googleapis/java-shared-dependencies/commit/a50158d3b83cf8e02d8ee08c94e512b5669a927b)) - Update iam.version to v1.6.2 ([#​849](https://togithub.com/googleapis/java-shared-dependencies/issues/849)) ([e43ac96](https://togithub.com/googleapis/java-shared-dependencies/commit/e43ac96bc189a096a9311c9b03e85c86bea07e99))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2b9c3408..0de003e1 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.3 + 3.0.4 pom import From 630fb98a6d71c0dca083817139599f872e5e3fde Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 20:38:16 +0000 Subject: [PATCH 505/519] chore(bazel): update protobuf to v3.21.7 (#951) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 --- .../cloud/dataproc/v1/AcceleratorConfig.java | 123 ++-- .../cloud/dataproc/v1/AutoscalingConfig.java | 112 ++-- .../cloud/dataproc/v1/AutoscalingPolicy.java | 228 +++---- .../dataproc/v1/AuxiliaryServicesConfig.java | 146 ++--- .../v1/BasicAutoscalingAlgorithm.java | 149 ++--- .../v1/BasicYarnAutoscalingConfig.java | 166 ++--- .../com/google/cloud/dataproc/v1/Batch.java | 595 +++++++---------- .../dataproc/v1/BatchOperationMetadata.java | 239 +++---- .../cloud/dataproc/v1/CancelJobRequest.java | 138 ++-- .../com/google/cloud/dataproc/v1/Cluster.java | 286 ++++---- .../cloud/dataproc/v1/ClusterConfig.java | 432 +++++-------- .../cloud/dataproc/v1/ClusterMetrics.java | 152 ++--- .../cloud/dataproc/v1/ClusterOperation.java | 136 ++-- .../dataproc/v1/ClusterOperationMetadata.java | 255 +++----- .../dataproc/v1/ClusterOperationStatus.java | 160 ++--- .../cloud/dataproc/v1/ClusterSelector.java | 141 ++-- .../cloud/dataproc/v1/ClusterStatus.java | 159 ++--- .../v1/ConfidentialInstanceConfig.java | 111 ++-- .../v1/CreateAutoscalingPolicyRequest.java | 135 ++-- .../cloud/dataproc/v1/CreateBatchRequest.java | 159 ++--- .../dataproc/v1/CreateClusterRequest.java | 174 ++--- .../v1/CreateWorkflowTemplateRequest.java | 135 ++-- .../dataproc/v1/DataprocMetricConfig.java | 272 ++++---- .../v1/DeleteAutoscalingPolicyRequest.java | 113 ++-- .../cloud/dataproc/v1/DeleteBatchRequest.java | 112 ++-- .../dataproc/v1/DeleteClusterRequest.java | 165 ++--- .../cloud/dataproc/v1/DeleteJobRequest.java | 138 ++-- .../v1/DeleteWorkflowTemplateRequest.java | 124 ++-- .../dataproc/v1/DiagnoseClusterRequest.java | 139 ++-- .../dataproc/v1/DiagnoseClusterResults.java | 113 ++-- .../google/cloud/dataproc/v1/DiskConfig.java | 147 ++--- .../cloud/dataproc/v1/EncryptionConfig.java | 112 ++-- .../cloud/dataproc/v1/EndpointConfig.java | 137 ++-- .../cloud/dataproc/v1/EnvironmentConfig.java | 144 ++--- .../cloud/dataproc/v1/ExecutionConfig.java | 174 +++-- .../cloud/dataproc/v1/GceClusterConfig.java | 336 ++++------ .../v1/GetAutoscalingPolicyRequest.java | 113 ++-- .../cloud/dataproc/v1/GetBatchRequest.java | 112 ++-- .../cloud/dataproc/v1/GetClusterRequest.java | 138 ++-- .../cloud/dataproc/v1/GetJobRequest.java | 138 ++-- .../v1/GetWorkflowTemplateRequest.java | 124 ++-- .../cloud/dataproc/v1/GkeClusterConfig.java | 146 ++--- .../cloud/dataproc/v1/GkeNodePoolConfig.java | 611 +++++++----------- .../cloud/dataproc/v1/GkeNodePoolTarget.java | 182 ++---- .../google/cloud/dataproc/v1/HadoopJob.java | 256 +++----- .../com/google/cloud/dataproc/v1/HiveJob.java | 224 +++---- .../cloud/dataproc/v1/IdentityConfig.java | 135 ++-- .../InstanceGroupAutoscalingPolicyConfig.java | 134 ++-- .../dataproc/v1/InstanceGroupConfig.java | 272 ++++---- ...tantiateInlineWorkflowTemplateRequest.java | 149 ++--- .../InstantiateWorkflowTemplateRequest.java | 165 ++--- .../com/google/cloud/dataproc/v1/Job.java | 526 ++++++--------- .../google/cloud/dataproc/v1/JobMetadata.java | 168 ++--- .../cloud/dataproc/v1/JobPlacement.java | 154 ++--- .../cloud/dataproc/v1/JobReference.java | 125 ++-- .../cloud/dataproc/v1/JobScheduling.java | 121 ++-- .../google/cloud/dataproc/v1/JobStatus.java | 159 ++--- .../cloud/dataproc/v1/KerberosConfig.java | 290 ++++----- .../dataproc/v1/KubernetesClusterConfig.java | 163 ++--- .../dataproc/v1/KubernetesSoftwareConfig.java | 156 ++--- .../cloud/dataproc/v1/LifecycleConfig.java | 187 ++---- .../v1/ListAutoscalingPoliciesRequest.java | 137 ++-- .../v1/ListAutoscalingPoliciesResponse.java | 147 ++--- .../cloud/dataproc/v1/ListBatchesRequest.java | 136 ++-- .../dataproc/v1/ListBatchesResponse.java | 145 ++--- .../dataproc/v1/ListClustersRequest.java | 162 ++--- .../dataproc/v1/ListClustersResponse.java | 146 ++--- .../cloud/dataproc/v1/ListJobsRequest.java | 188 +++--- .../cloud/dataproc/v1/ListJobsResponse.java | 143 ++-- .../v1/ListWorkflowTemplatesRequest.java | 137 ++-- .../v1/ListWorkflowTemplatesResponse.java | 147 ++--- .../cloud/dataproc/v1/LoggingConfig.java | 129 ++-- .../cloud/dataproc/v1/ManagedCluster.java | 159 ++--- .../cloud/dataproc/v1/ManagedGroupConfig.java | 125 ++-- .../cloud/dataproc/v1/MetastoreConfig.java | 112 ++-- .../cloud/dataproc/v1/NodeGroupAffinity.java | 112 ++-- .../dataproc/v1/NodeInitializationAction.java | 135 ++-- .../google/cloud/dataproc/v1/OrderedJob.java | 379 ++++------- .../dataproc/v1/ParameterValidation.java | 153 ++--- .../cloud/dataproc/v1/PeripheralsConfig.java | 136 ++-- .../com/google/cloud/dataproc/v1/PigJob.java | 246 +++---- .../google/cloud/dataproc/v1/PrestoJob.java | 231 +++---- .../cloud/dataproc/v1/PySparkBatch.java | 213 +++--- .../google/cloud/dataproc/v1/PySparkJob.java | 261 +++----- .../google/cloud/dataproc/v1/QueryList.java | 120 ++-- .../cloud/dataproc/v1/RegexValidation.java | 120 ++-- .../dataproc/v1/ReservationAffinity.java | 146 ++--- .../cloud/dataproc/v1/RuntimeConfig.java | 152 ++--- .../google/cloud/dataproc/v1/RuntimeInfo.java | 152 ++--- .../cloud/dataproc/v1/SecurityConfig.java | 143 ++-- .../dataproc/v1/ShieldedInstanceConfig.java | 133 ++-- .../cloud/dataproc/v1/SoftwareConfig.java | 186 +++--- .../google/cloud/dataproc/v1/SparkBatch.java | 208 +++--- .../dataproc/v1/SparkHistoryServerConfig.java | 113 ++-- .../google/cloud/dataproc/v1/SparkJob.java | 256 +++----- .../google/cloud/dataproc/v1/SparkRBatch.java | 173 ++--- .../google/cloud/dataproc/v1/SparkRJob.java | 221 +++---- .../cloud/dataproc/v1/SparkSqlBatch.java | 161 ++--- .../google/cloud/dataproc/v1/SparkSqlJob.java | 235 +++---- .../dataproc/v1/StartClusterRequest.java | 164 ++--- .../cloud/dataproc/v1/StopClusterRequest.java | 164 ++--- .../cloud/dataproc/v1/SubmitJobRequest.java | 159 ++--- .../cloud/dataproc/v1/TemplateParameter.java | 168 ++--- .../v1/UpdateAutoscalingPolicyRequest.java | 122 ++-- .../dataproc/v1/UpdateClusterRequest.java | 217 +++---- .../cloud/dataproc/v1/UpdateJobRequest.java | 180 ++---- .../v1/UpdateWorkflowTemplateRequest.java | 122 ++-- .../cloud/dataproc/v1/ValueValidation.java | 120 ++-- .../dataproc/v1/VirtualClusterConfig.java | 167 ++--- .../cloud/dataproc/v1/WorkflowGraph.java | 132 ++-- .../cloud/dataproc/v1/WorkflowMetadata.java | 360 ++++------- .../cloud/dataproc/v1/WorkflowNode.java | 172 ++--- .../cloud/dataproc/v1/WorkflowTemplate.java | 311 ++++----- .../v1/WorkflowTemplatePlacement.java | 151 ++--- .../cloud/dataproc/v1/YarnApplication.java | 149 ++--- 115 files changed, 8166 insertions(+), 12595 deletions(-) diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java index b3aebedd..5a9d6ee7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java @@ -54,57 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AcceleratorConfig( - 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(); - - acceleratorTypeUri_ = s; - break; - } - case 16: - { - acceleratorCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; @@ -231,7 +180,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (acceleratorCount_ != 0) { output.writeInt32(2, acceleratorCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -246,7 +195,7 @@ public int getSerializedSize() { if (acceleratorCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -264,7 +213,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false; if (getAcceleratorCount() != other.getAcceleratorCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,7 +228,7 @@ public int hashCode() { hash = (53 * hash) + getAcceleratorTypeUri().hashCode(); hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -410,17 +359,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.AcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -515,7 +457,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AcceleratorConfig other) { if (other.getAcceleratorCount() != 0) { setAcceleratorCount(other.getAcceleratorCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -530,17 +472,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.AcceleratorConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + acceleratorTypeUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + acceleratorCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.AcceleratorConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -794,7 +762,18 @@ public AcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java index aea3e2cb..b222d07a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AutoscalingConfig( - 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(); - - policyUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; @@ -189,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +155,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -218,7 +172,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; if (!getPolicyUri().equals(other.getPolicyUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,7 +185,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; hash = (53 * hash) + getPolicyUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -360,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -459,7 +406,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingConfig other) { policyUri_ = other.policyUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,17 +421,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.AutoscalingConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + policyUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.AutoscalingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -651,7 +618,18 @@ public AutoscalingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoscalingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java index e690e976..18636a3e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java @@ -53,129 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AutoscalingPolicy( - 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(); - - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder subBuilder = null; - if (algorithmCase_ == 3) { - subBuilder = - ((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) - .toBuilder(); - } - algorithm_ = - input.readMessage( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_); - algorithm_ = subBuilder.buildPartial(); - } - algorithmCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder subBuilder = - null; - if (workerConfig_ != null) { - subBuilder = workerConfig_.toBuilder(); - } - workerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerConfig_); - workerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder subBuilder = - null; - if (secondaryWorkerConfig_ != null) { - subBuilder = secondaryWorkerConfig_.toBuilder(); - } - secondaryWorkerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryWorkerConfig_); - secondaryWorkerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; @@ -668,7 +545,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -705,7 +582,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -740,7 +617,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -775,7 +652,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -924,17 +801,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -944,6 +814,9 @@ public Builder clear() { name_ = ""; + if (basicAlgorithmBuilder_ != null) { + basicAlgorithmBuilder_.clear(); + } if (workerConfigBuilder_ == null) { workerConfig_ = null; } else { @@ -1084,7 +957,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1099,17 +972,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.AutoscalingPolicy parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getBasicAlgorithmFieldBuilder().getBuilder(), extensionRegistry); + algorithmCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.AutoscalingPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2221,7 +2150,18 @@ public AutoscalingPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoscalingPolicy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java index 44a4a517..af0e2ec8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java @@ -50,78 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AuxiliaryServicesConfig( - 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.dataproc.v1.MetastoreConfig.Builder subBuilder = null; - if (metastoreConfig_ != null) { - subBuilder = metastoreConfig_.toBuilder(); - } - metastoreConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.MetastoreConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metastoreConfig_); - metastoreConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder subBuilder = null; - if (sparkHistoryServerConfig_ != null) { - subBuilder = sparkHistoryServerConfig_.toBuilder(); - } - sparkHistoryServerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sparkHistoryServerConfig_); - sparkHistoryServerConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; @@ -266,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sparkHistoryServerConfig_ != null) { output.writeMessage(2, getSparkHistoryServerConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -283,7 +211,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSparkHistoryServerConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +235,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSparkHistoryServerConfig()) { if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,7 +254,7 @@ public int hashCode() { hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -455,17 +383,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -576,7 +497,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig ot if (other.hasSparkHistoryServerConfig()) { mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -591,18 +512,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1051,7 +998,18 @@ public AuxiliaryServicesConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AuxiliaryServicesConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java index 69de1a0f..a0b6f742 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java @@ -50,79 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BasicAutoscalingAlgorithm( - 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.dataproc.v1.BasicYarnAutoscalingConfig.Builder subBuilder = null; - if (configCase_ == 1) { - subBuilder = - ((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_).toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); - config_ = subBuilder.buildPartial(); - } - configCase_ = 1; - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (cooldownPeriod_ != null) { - subBuilder = cooldownPeriod_.toBuilder(); - } - cooldownPeriod_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cooldownPeriod_); - cooldownPeriod_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; @@ -316,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cooldownPeriod_ != null) { output.writeMessage(2, getCooldownPeriod()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -333,7 +260,7 @@ public int getSerializedSize() { if (cooldownPeriod_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -361,7 +288,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,7 +311,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -514,22 +441,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (yarnConfigBuilder_ != null) { + yarnConfigBuilder_.clear(); + } if (cooldownPeriodBuilder_ == null) { cooldownPeriod_ = null; } else { @@ -642,7 +565,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -657,18 +580,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getYarnConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCooldownPeriodFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1169,7 +1117,18 @@ public BasicAutoscalingAlgorithm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicAutoscalingAlgorithm(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java index ec6246ee..32a15e62 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java @@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BasicYarnAutoscalingConfig( - 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 9: - { - scaleUpFactor_ = input.readDouble(); - break; - } - case 17: - { - scaleDownFactor_ = input.readDouble(); - break; - } - case 25: - { - scaleUpMinWorkerFraction_ = input.readDouble(); - break; - } - case 33: - { - scaleDownMinWorkerFraction_ = input.readDouble(); - break; - } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (gracefulDecommissionTimeout_ != null) { - subBuilder = gracefulDecommissionTimeout_.toBuilder(); - } - gracefulDecommissionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gracefulDecommissionTimeout_); - gracefulDecommissionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; @@ -333,7 +259,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (gracefulDecommissionTimeout_ != null) { output.writeMessage(5, getGracefulDecommissionTimeout()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -360,7 +286,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getGracefulDecommissionTimeout()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -389,7 +315,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false; if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()) != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -424,7 +350,7 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -554,17 +480,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -685,7 +604,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig if (other.getScaleDownMinWorkerFraction() != 0D) { setScaleDownMinWorkerFraction(other.getScaleDownMinWorkerFraction()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -700,18 +619,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + scaleUpFactor_ = input.readDouble(); + + break; + } // case 9 + case 17: + { + scaleDownFactor_ = input.readDouble(); + + break; + } // case 17 + case 25: + { + scaleUpMinWorkerFraction_ = input.readDouble(); + + break; + } // case 25 + case 33: + { + scaleDownMinWorkerFraction_ = input.readDouble(); + + break; + } // case 33 + case 42: + { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1279,7 +1242,18 @@ public BasicYarnAutoscalingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BasicYarnAutoscalingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java index 3ab9332c..64d78176 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java @@ -58,259 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Batch( - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - - uuid_ = s; - break; - } - case 26: - { - 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 34: - { - com.google.cloud.dataproc.v1.PySparkBatch.Builder subBuilder = null; - if (batchConfigCase_ == 4) { - subBuilder = ((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_).toBuilder(); - } - batchConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.PySparkBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); - batchConfig_ = subBuilder.buildPartial(); - } - batchConfigCase_ = 4; - break; - } - case 42: - { - com.google.cloud.dataproc.v1.SparkBatch.Builder subBuilder = null; - if (batchConfigCase_ == 5) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_).toBuilder(); - } - batchConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); - batchConfig_ = subBuilder.buildPartial(); - } - batchConfigCase_ = 5; - break; - } - case 50: - { - com.google.cloud.dataproc.v1.SparkRBatch.Builder subBuilder = null; - if (batchConfigCase_ == 6) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_).toBuilder(); - } - batchConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkRBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); - batchConfig_ = subBuilder.buildPartial(); - } - batchConfigCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder subBuilder = null; - if (batchConfigCase_ == 7) { - subBuilder = - ((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_).toBuilder(); - } - batchConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkSqlBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); - batchConfig_ = subBuilder.buildPartial(); - } - batchConfigCase_ = 7; - break; - } - case 66: - { - com.google.cloud.dataproc.v1.RuntimeInfo.Builder subBuilder = null; - if (runtimeInfo_ != null) { - subBuilder = runtimeInfo_.toBuilder(); - } - runtimeInfo_ = - input.readMessage( - com.google.cloud.dataproc.v1.RuntimeInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtimeInfo_); - runtimeInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 72: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - stateMessage_ = s; - break; - } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateTime_ != null) { - subBuilder = stateTime_.toBuilder(); - } - stateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateTime_); - stateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 106: - { - 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 114: - { - com.google.cloud.dataproc.v1.RuntimeConfig.Builder subBuilder = null; - if (runtimeConfig_ != null) { - subBuilder = runtimeConfig_.toBuilder(); - } - runtimeConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.RuntimeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtimeConfig_); - runtimeConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder subBuilder = null; - if (environmentConfig_ != null) { - subBuilder = environmentConfig_.toBuilder(); - } - environmentConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.EnvironmentConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(environmentConfig_); - environmentConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - - operation_ = s; - break; - } - case 138: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - stateHistory_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - stateHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - stateHistory_ = java.util.Collections.unmodifiableList(stateHistory_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_Batch_descriptor; @@ -717,74 +464,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StateHistory( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - stateMessage_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; @@ -966,7 +645,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stateStartTime_ != null) { output.writeMessage(3, getStateStartTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -984,7 +663,7 @@ public int getSerializedSize() { if (stateStartTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1006,7 +685,7 @@ public boolean equals(final java.lang.Object obj) { if (hasStateStartTime()) { if (!getStateStartTime().equals(other.getStateStartTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1025,7 +704,7 @@ public int hashCode() { hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStateStartTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1156,17 +835,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.Batch.StateHistory.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1278,7 +950,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch.StateHistory other) if (other.hasStateStartTime()) { mergeStateStartTime(other.getStateStartTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1293,18 +965,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.Batch.StateHistory parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + stateMessage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage( + getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.Batch.StateHistory) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1751,7 +1455,19 @@ public StateHistory parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StateHistory(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2866,7 +2582,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < stateHistory_.size(); i++) { output.writeMessage(17, stateHistory_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2941,7 +2657,7 @@ public int getSerializedSize() { for (int i = 0; i < stateHistory_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, stateHistory_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3001,7 +2717,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3072,7 +2788,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3220,19 +2936,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.Batch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStateHistoryFieldBuilder(); - } } @java.lang.Override @@ -3248,6 +2955,18 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } + if (pysparkBatchBuilder_ != null) { + pysparkBatchBuilder_.clear(); + } + if (sparkBatchBuilder_ != null) { + sparkBatchBuilder_.clear(); + } + if (sparkRBatchBuilder_ != null) { + sparkRBatchBuilder_.clear(); + } + if (sparkSqlBatchBuilder_ != null) { + sparkSqlBatchBuilder_.clear(); + } if (runtimeInfoBuilder_ == null) { runtimeInfo_ = null; } else { @@ -3283,10 +3002,11 @@ public Builder clear() { if (stateHistoryBuilder_ == null) { stateHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + stateHistory_ = null; stateHistoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); batchConfigCase_ = 0; batchConfig_ = null; return this; @@ -3528,7 +3248,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3543,17 +3263,147 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.Batch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getPysparkBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getSparkBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getSparkRBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getSparkSqlBatchFieldBuilder().getBuilder(), extensionRegistry); + batchConfigCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getRuntimeInfoFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + + break; + } // case 72 + case 82: + { + stateMessage_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 98: + { + creator_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: + { + input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getEnvironmentConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + operation_ = input.readStringRequireUtf8(); + + break; + } // case 130 + case 138: + { + com.google.cloud.dataproc.v1.Batch.StateHistory m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), + extensionRegistry); + if (stateHistoryBuilder_ == null) { + ensureStateHistoryIsMutable(); + stateHistory_.add(m); + } else { + stateHistoryBuilder_.addMessage(m); + } + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.Batch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -6759,7 +6609,18 @@ public Batch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Batch(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java index 0666d565..2c0c2895 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java @@ -56,130 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private BatchOperationMetadata( - 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(); - - batch_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - batchUuid_ = s; - break; - } - case 26: - { - 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 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (doneTime_ != null) { - subBuilder = doneTime_.toBuilder(); - } - doneTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(doneTime_); - doneTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - operationType_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 66: - { - 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 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - warnings_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.OperationsProto .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; @@ -825,7 +701,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, warnings_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -873,7 +749,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -903,7 +779,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -938,7 +814,7 @@ public int hashCode() { hash = (37 * hash) + WARNINGS_FIELD_NUMBER; hash = (53 * hash) + getWarningsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1087,17 +963,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.BatchOperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1257,7 +1126,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata oth } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1272,18 +1141,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.BatchOperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + batch_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + batchUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getDoneTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 48: + { + operationType_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.BatchOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2428,7 +2364,18 @@ public BatchOperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchOperationMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java index 6be9129d..dc9d2d46 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CancelJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; @@ -301,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -319,7 +259,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -338,7 +278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getRegion().equals(other.getRegion())) return false; if (!getJobId().equals(other.getJobId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +295,7 @@ public int hashCode() { hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -484,17 +424,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.CancelJobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -597,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CancelJobRequest other) { jobId_ = other.jobId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -612,17 +545,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.CancelJobRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.CancelJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +946,18 @@ public CancelJobRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelJobRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java index 00afd40b..90cdc6c4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java @@ -56,160 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Cluster( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.ClusterConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.dataproc.v1.ClusterStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - statusHistory_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry)); - break; - } - case 66: - { - 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 74: - { - com.google.cloud.dataproc.v1.ClusterMetrics.Builder subBuilder = null; - if (metrics_ != null) { - subBuilder = metrics_.toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metrics_); - metrics_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder subBuilder = null; - if (virtualClusterConfig_ != null) { - subBuilder = virtualClusterConfig_.toBuilder(); - } - virtualClusterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.VirtualClusterConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(virtualClusterConfig_); - virtualClusterConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_Cluster_descriptor; @@ -875,7 +721,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (virtualClusterConfig_ != null) { output.writeMessage(10, getVirtualClusterConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -919,7 +765,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVirtualClusterConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -955,7 +801,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetrics()) { if (!getMetrics().equals(other.getMetrics())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -996,7 +842,7 @@ public int hashCode() { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetrics().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1145,19 +991,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - } } @java.lang.Override @@ -1188,10 +1025,11 @@ public Builder clear() { } if (statusHistoryBuilder_ == null) { statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + statusHistory_ = null; statusHistoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); clusterUuid_ = ""; if (metricsBuilder_ == null) { @@ -1362,7 +1200,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) { if (other.hasMetrics()) { mergeMetrics(other.getMetrics()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1377,17 +1215,98 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.Cluster parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 50: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + com.google.cloud.dataproc.v1.ClusterStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: + { + input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage( + getVirtualClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.Cluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3251,7 +3170,18 @@ public Cluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Cluster(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java index f172b124..303fd32c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java @@ -54,270 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterConfig( - 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(); - - configBucket_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tempBucket_ = s; - break; - } - case 66: - { - com.google.cloud.dataproc.v1.GceClusterConfig.Builder subBuilder = null; - if (gceClusterConfig_ != null) { - subBuilder = gceClusterConfig_.toBuilder(); - } - gceClusterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.GceClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gceClusterConfig_); - gceClusterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder subBuilder = null; - if (masterConfig_ != null) { - subBuilder = masterConfig_.toBuilder(); - } - masterConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.InstanceGroupConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterConfig_); - masterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder subBuilder = null; - if (workerConfig_ != null) { - subBuilder = workerConfig_.toBuilder(); - } - workerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.InstanceGroupConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerConfig_); - workerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - initializationActions_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1.NodeInitializationAction>(); - mutable_bitField0_ |= 0x00000001; - } - initializationActions_.add( - input.readMessage( - com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), - extensionRegistry)); - break; - } - case 98: - { - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder subBuilder = null; - if (secondaryWorkerConfig_ != null) { - subBuilder = secondaryWorkerConfig_.toBuilder(); - } - secondaryWorkerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.InstanceGroupConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(secondaryWorkerConfig_); - secondaryWorkerConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.dataproc.v1.SoftwareConfig.Builder subBuilder = null; - if (softwareConfig_ != null) { - subBuilder = softwareConfig_.toBuilder(); - } - softwareConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SoftwareConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(softwareConfig_); - softwareConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.dataproc.v1.EncryptionConfig.Builder subBuilder = null; - if (encryptionConfig_ != null) { - subBuilder = encryptionConfig_.toBuilder(); - } - encryptionConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.EncryptionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptionConfig_); - encryptionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - com.google.cloud.dataproc.v1.SecurityConfig.Builder subBuilder = null; - if (securityConfig_ != null) { - subBuilder = securityConfig_.toBuilder(); - } - securityConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SecurityConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityConfig_); - securityConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 138: - { - com.google.cloud.dataproc.v1.LifecycleConfig.Builder subBuilder = null; - if (lifecycleConfig_ != null) { - subBuilder = lifecycleConfig_.toBuilder(); - } - lifecycleConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LifecycleConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lifecycleConfig_); - lifecycleConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 146: - { - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder subBuilder = null; - if (autoscalingConfig_ != null) { - subBuilder = autoscalingConfig_.toBuilder(); - } - autoscalingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscalingConfig_); - autoscalingConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 154: - { - com.google.cloud.dataproc.v1.EndpointConfig.Builder subBuilder = null; - if (endpointConfig_ != null) { - subBuilder = endpointConfig_.toBuilder(); - } - endpointConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.EndpointConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endpointConfig_); - endpointConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 162: - { - com.google.cloud.dataproc.v1.MetastoreConfig.Builder subBuilder = null; - if (metastoreConfig_ != null) { - subBuilder = metastoreConfig_.toBuilder(); - } - metastoreConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.MetastoreConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metastoreConfig_); - metastoreConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 186: - { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder subBuilder = null; - if (dataprocMetricConfig_ != null) { - subBuilder = dataprocMetricConfig_.toBuilder(); - } - dataprocMetricConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.DataprocMetricConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataprocMetricConfig_); - dataprocMetricConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; @@ -1336,7 +1072,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataprocMetricConfig_ != null) { output.writeMessage(23, getDataprocMetricConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1394,7 +1130,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1461,7 +1197,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDataprocMetricConfig()) { if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1528,7 +1264,7 @@ public int hashCode() { hash = (37 * hash) + DATAPROC_METRIC_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDataprocMetricConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1657,19 +1393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInitializationActionsFieldBuilder(); - } } @java.lang.Override @@ -1711,10 +1438,11 @@ public Builder clear() { } if (initializationActionsBuilder_ == null) { initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + initializationActions_ = null; initializationActionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (encryptionConfigBuilder_ == null) { encryptionConfig_ = null; } else { @@ -1976,7 +1704,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { if (other.hasDataprocMetricConfig()) { mergeDataprocMetricConfig(other.getDataprocMetricConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1991,17 +1719,134 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + configBucket_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tempBucket_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 66: + { + input.readMessage( + getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + com.google.cloud.dataproc.v1.NodeInitializationAction m = + input.readMessage( + com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), + extensionRegistry); + if (initializationActionsBuilder_ == null) { + ensureInitializationActionsIsMutable(); + initializationActions_.add(m); + } else { + initializationActionsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: + { + input.readMessage( + getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 122: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + case 130: + { + input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + case 138: + { + input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 138 + case 146: + { + input.readMessage( + getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 146 + case 154: + { + input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 154 + case 162: + { + input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 186: + { + input.readMessage( + getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 186 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5462,7 +5307,18 @@ public ClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java index f223cf44..2fde391e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java @@ -52,76 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterMetrics( - 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)) { - hdfsMetrics_ = - com.google.protobuf.MapField.newMapField( - HdfsMetricsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry hdfsMetrics__ = - input.readMessage( - HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - hdfsMetrics_.getMutableMap().put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue()); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - yarnMetrics_ = - com.google.protobuf.MapField.newMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry yarnMetrics__ = - input.readMessage( - YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - yarnMetrics_.getMutableMap().put(yarnMetrics__.getKey(), yarnMetrics__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; @@ -364,7 +294,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output, internalGetHdfsMetrics(), HdfsMetricsDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetYarnMetrics(), YarnMetricsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -393,7 +323,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, yarnMetrics__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -411,7 +341,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetHdfsMetrics().equals(other.internalGetHdfsMetrics())) return false; if (!internalGetYarnMetrics().equals(other.internalGetYarnMetrics())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,7 +360,7 @@ public int hashCode() { hash = (37 * hash) + YARN_METRICS_FIELD_NUMBER; hash = (53 * hash) + internalGetYarnMetrics().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -585,17 +515,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -686,7 +609,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterMetrics other) { if (other == com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance()) return this; internalGetMutableHdfsMetrics().mergeFrom(other.internalGetHdfsMetrics()); internalGetMutableYarnMetrics().mergeFrom(other.internalGetYarnMetrics()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -701,17 +624,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterMetrics parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry hdfsMetrics__ = + input.readMessage( + HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHdfsMetrics() + .getMutableMap() + .put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue()); + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry yarnMetrics__ = + input.readMessage( + YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableYarnMetrics() + .getMutableMap() + .put(yarnMetrics__.getKey(), yarnMetrics__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ClusterMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1063,7 +1022,18 @@ public ClusterMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterMetrics(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java index 4b2bad8f..1d9c1ca3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterOperation( - 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(); - - operationId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - case 24: - { - done_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; @@ -265,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (done_ != false) { output.writeBool(3, done_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -283,7 +225,7 @@ public int getSerializedSize() { if (done_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -302,7 +244,7 @@ public boolean equals(final java.lang.Object obj) { if (!getOperationId().equals(other.getOperationId())) return false; if (!getError().equals(other.getError())) return false; if (getDone() != other.getDone()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,7 +261,7 @@ public int hashCode() { hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + DONE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -448,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ClusterOperation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -560,7 +495,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperation other) { if (other.getDone() != false) { setDone(other.getDone()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -575,17 +510,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterOperation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + operationId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + error_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + done_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ClusterOperation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -885,7 +852,18 @@ public ClusterOperation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java index 95a1cc88..608c9943 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java @@ -57,133 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterOperationMetadata( - 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 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 74: - { - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry)); - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationType_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - warnings_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.OperationsProto .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; @@ -741,7 +614,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warnings_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -786,7 +659,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWarningsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -813,7 +686,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -848,7 +721,7 @@ public int hashCode() { hash = (37 * hash) + WARNINGS_FIELD_NUMBER; hash = (53 * hash) + getWarningsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -998,19 +871,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.ClusterOperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - } } @java.lang.Override @@ -1028,10 +892,11 @@ public Builder clear() { } if (statusHistoryBuilder_ == null) { statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + statusHistory_ = null; statusHistoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); operationType_ = ""; description_ = ""; @@ -1199,7 +1064,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata o } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1214,18 +1079,93 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterOperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 58: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + com.google.cloud.dataproc.v1.ClusterOperationStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), + extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + operationType_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ClusterOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2622,7 +2562,18 @@ public ClusterOperationMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperationMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java index d59a46f6..1c40da9a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterOperationStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - innerState_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.OperationsProto .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; @@ -545,7 +470,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stateStartTime_ != null) { output.writeMessage(4, getStateStartTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -566,7 +491,7 @@ public int getSerializedSize() { if (stateStartTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateStartTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -589,7 +514,7 @@ public boolean equals(final java.lang.Object obj) { if (hasStateStartTime()) { if (!getStateStartTime().equals(other.getStateStartTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -610,7 +535,7 @@ public int hashCode() { hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStateStartTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -739,17 +664,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -866,7 +784,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationStatus oth if (other.hasStateStartTime()) { mergeStateStartTime(other.getStateStartTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -881,18 +799,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterOperationStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + innerState_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ClusterOperationStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1446,7 +1401,18 @@ public ClusterOperationStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterOperationStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java index 8e042676..e59022b6 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java @@ -52,70 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterSelector( - 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(); - - zone_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - clusterLabels_ - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; @@ -325,7 +261,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -347,7 +283,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, clusterLabels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -365,7 +301,7 @@ public boolean equals(final java.lang.Object obj) { if (!getZone().equals(other.getZone())) return false; if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -382,7 +318,7 @@ public int hashCode() { hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetClusterLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -531,17 +467,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.ClusterSelector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -635,7 +564,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterSelector other) { onChanged(); } internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -650,17 +579,48 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterSelector parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + zone_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry clusterLabels__ = + input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableClusterLabels() + .getMutableMap() + .put(clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ClusterSelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -994,7 +954,18 @@ public ClusterSelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterSelector(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java index 1758d07b..9dd67ad2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClusterStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - detail_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); - - substate_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; @@ -850,7 +775,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { output.writeEnum(4, substate_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -871,7 +796,7 @@ public int getSerializedSize() { if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, substate_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -894,7 +819,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -915,7 +840,7 @@ public int hashCode() { } hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; hash = (53 * hash) + substate_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1044,17 +969,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ClusterStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1169,7 +1087,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterStatus other) { if (other.substate_ != 0) { setSubstateValue(other.getSubstateValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1184,17 +1102,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ClusterStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + substate_ = input.readEnum(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ClusterStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1769,7 +1725,18 @@ public ClusterStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 74792b0f..911a7f76 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -51,50 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ConfidentialInstanceConfig( - 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 8: - { - enableConfidentialCompute_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; @@ -145,7 +101,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -157,7 +113,7 @@ public int getSerializedSize() { if (enableConfidentialCompute_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -174,7 +130,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,7 +143,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -318,17 +274,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -417,7 +366,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -432,18 +381,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableConfidentialCompute_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -531,7 +499,18 @@ public ConfidentialInstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfidentialInstanceConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java index 82bf38fa..f907627d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateAutoscalingPolicyRequest( - 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: - { - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; @@ -271,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (policy_ != null) { output.writeMessage(2, getPolicy()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -286,7 +224,7 @@ public int getSerializedSize() { if (policy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +245,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPolicy()) { if (!getPolicy().equals(other.getPolicy())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +262,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -454,17 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -568,7 +499,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyReq if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -583,18 +514,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -985,7 +941,18 @@ public CreateAutoscalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAutoscalingPolicyRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java index f2bd55e5..043efdce 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateBatchRequest( - 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: - { - com.google.cloud.dataproc.v1.Batch.Builder subBuilder = null; - if (batch_ != null) { - subBuilder = batch_.toBuilder(); - } - batch_ = - input.readMessage(com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(batch_); - batch_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - batchId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; @@ -392,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -413,7 +338,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -436,7 +361,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getBatchId().equals(other.getBatchId())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,7 +382,7 @@ public int hashCode() { hash = (53 * hash) + getBatchId().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -586,17 +511,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.CreateBatchRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -714,7 +632,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateBatchRequest other) requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -729,17 +647,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.CreateBatchRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getBatchFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + batchId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.CreateBatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1346,7 +1302,18 @@ public CreateBatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBatchRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java index 012de032..8d565493 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java @@ -55,89 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - actionOnFailedPrimaryWorkers_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; @@ -437,7 +354,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(5, actionOnFailedPrimaryWorkers_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -463,7 +380,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionOnFailedPrimaryWorkers_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -487,7 +404,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getRequestId().equals(other.getRequestId())) return false; if (actionOnFailedPrimaryWorkers_ != other.actionOnFailedPrimaryWorkers_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -510,7 +427,7 @@ public int hashCode() { hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER; hash = (53 * hash) + actionOnFailedPrimaryWorkers_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -639,17 +556,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.CreateClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -773,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateClusterRequest other if (other.actionOnFailedPrimaryWorkers_ != 0) { setActionOnFailedPrimaryWorkersValue(other.getActionOnFailedPrimaryWorkersValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -788,18 +698,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.CreateClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + actionOnFailedPrimaryWorkers_ = input.readEnum(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.CreateClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1503,7 +1456,18 @@ public CreateClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java index fe2dd04e..54383a35 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java @@ -52,68 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateWorkflowTemplateRequest( - 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: - { - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; @@ -270,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (template_ != null) { output.writeMessage(2, getTemplate()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -285,7 +223,7 @@ public int getSerializedSize() { if (template_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +244,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTemplate()) { if (!getTemplate().equals(other.getTemplate())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +261,7 @@ public int hashCode() { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -453,17 +391,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -567,7 +498,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequ if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -582,18 +513,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -984,7 +940,18 @@ public CreateWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java index 93219b2d..5215d1c9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DataprocMetricConfig( - 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)) { - metrics_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric>(); - mutable_bitField0_ |= 0x00000001; - } - metrics_.add( - input.readMessage( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; @@ -597,66 +540,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Metric( - 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 8: - { - int rawValue = input.readEnum(); - - metricSource_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metricOverrides_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - metricOverrides_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - metricOverrides_ = metricOverrides_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; @@ -896,7 +779,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metricOverrides_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricOverrides_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -919,7 +802,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMetricOverridesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -937,7 +820,7 @@ public boolean equals(final java.lang.Object obj) { if (metricSource_ != other.metricSource_) return false; if (!getMetricOverridesList().equals(other.getMetricOverridesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -954,7 +837,7 @@ public int hashCode() { hash = (37 * hash) + METRIC_OVERRIDES_FIELD_NUMBER; hash = (53 * hash) + getMetricOverridesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1086,17 +969,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1205,7 +1081,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metri } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1220,18 +1096,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + metricSource_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetricOverridesIsMutable(); + metricOverrides_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1773,7 +1675,19 @@ public Metric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metric(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1889,7 +1803,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1901,7 +1815,7 @@ public int getSerializedSize() { for (int i = 0; i < metrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1918,7 +1832,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1933,7 +1847,7 @@ public int hashCode() { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2062,19 +1976,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMetricsFieldBuilder(); - } } @java.lang.Override @@ -2082,10 +1987,11 @@ public Builder clear() { super.clear(); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2200,7 +2106,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2215,18 +2121,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DataprocMetricConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = + input.readMessage( + com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DataprocMetricConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2664,7 +2597,18 @@ public DataprocMetricConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataprocMetricConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java index 4640ae31..57592d4f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java @@ -54,52 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteAutoscalingPolicyRequest( - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; @@ -199,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -211,7 +165,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -228,7 +182,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,7 +195,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -372,17 +326,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -472,7 +419,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyReq name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -487,18 +434,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -685,7 +651,18 @@ public DeleteAutoscalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAutoscalingPolicyRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java index c35a2c93..6a9d419b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteBatchRequest( - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DeleteBatchRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteBatchRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -469,17 +416,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DeleteBatchRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.DeleteBatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -631,7 +598,18 @@ public DeleteBatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBatchRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java index 3445f6fa..9508dd27 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java @@ -56,80 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; @@ -441,7 +367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -465,7 +391,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -486,7 +412,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -507,7 +433,7 @@ public int hashCode() { hash = (53 * hash) + getClusterUuid().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -636,17 +562,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DeleteClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -764,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteClusterRequest other requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -779,18 +698,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DeleteClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DeleteClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1411,7 +1373,18 @@ public DeleteClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java index 86d2febe..6c4b1f96 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; @@ -301,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -319,7 +259,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -338,7 +278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getRegion().equals(other.getRegion())) return false; if (!getJobId().equals(other.getJobId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +295,7 @@ public int hashCode() { hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -484,17 +424,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DeleteJobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -597,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteJobRequest other) { jobId_ = other.jobId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -612,17 +545,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DeleteJobRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.DeleteJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +946,18 @@ public DeleteJobRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteJobRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java index c6bc36e7..a937bf79 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java @@ -53,57 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; @@ -226,7 +175,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (version_ != 0) { output.writeInt32(2, version_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -241,7 +190,7 @@ public int getSerializedSize() { if (version_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -259,7 +208,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getVersion() != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,7 +223,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -405,17 +354,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -511,7 +453,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequ if (other.getVersion() != 0) { setVersion(other.getVersion()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -526,18 +468,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -782,7 +749,18 @@ public DeleteWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java index ca36b01b..658ad524 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DiagnoseClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; @@ -301,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -319,7 +259,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -338,7 +278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getRegion().equals(other.getRegion())) return false; if (!getClusterName().equals(other.getClusterName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +295,7 @@ public int hashCode() { hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -484,17 +424,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -598,7 +531,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterRequest oth clusterName_ = other.clusterName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -613,18 +546,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DiagnoseClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -983,7 +947,18 @@ public DiagnoseClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DiagnoseClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java index 8b53152e..5af437c3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DiagnoseClusterResults( - 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(); - - outputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; if (!getOutputUri().equals(other.getOutputUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getOutputUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterResults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterResults oth outputUri_ = other.outputUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -469,18 +416,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DiagnoseClusterResults parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.DiagnoseClusterResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -632,7 +598,18 @@ public DiagnoseClusterResults parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DiagnoseClusterResults(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java index d3b30aa3..ac9db471 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DiskConfig( - 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 8: - { - bootDiskSizeGb_ = input.readInt32(); - break; - } - case 16: - { - numLocalSsds_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - bootDiskType_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - localSsdInterface_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; @@ -312,7 +249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localSsdInterface_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -333,7 +270,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localSsdInterface_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -352,7 +289,7 @@ public boolean equals(final java.lang.Object obj) { if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (getNumLocalSsds() != other.getNumLocalSsds()) return false; if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -371,7 +308,7 @@ public int hashCode() { hash = (53 * hash) + getNumLocalSsds(); hash = (37 * hash) + LOCAL_SSD_INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getLocalSsdInterface().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -500,17 +437,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.DiskConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -618,7 +548,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.DiskConfig other) { localSsdInterface_ = other.localSsdInterface_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -633,17 +563,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.DiskConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + bootDiskSizeGb_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + numLocalSsds_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + bootDiskType_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + localSsdInterface_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.DiskConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1050,7 +1018,18 @@ public DiskConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DiskConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java index 93fc085f..b0c5a190 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EncryptionConfig( - 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(); - - gcePdKmsKeyName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; @@ -181,7 +135,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +147,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcePdKmsKeyName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -210,7 +164,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.EncryptionConfig) obj; if (!getGcePdKmsKeyName().equals(other.getGcePdKmsKeyName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,7 +177,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GCE_PD_KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getGcePdKmsKeyName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -352,17 +306,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -451,7 +398,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.EncryptionConfig other) { gcePdKmsKeyName_ = other.gcePdKmsKeyName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -466,17 +413,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.EncryptionConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + gcePdKmsKeyName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.EncryptionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -623,7 +590,18 @@ public EncryptionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EncryptionConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java index 42f84224..bad319e4 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java @@ -50,66 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EndpointConfig( - 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)) { - httpPorts_ = - com.google.protobuf.MapField.newMapField( - HttpPortsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry httpPorts__ = - input.readMessage( - HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - httpPorts_.getMutableMap().put(httpPorts__.getKey(), httpPorts__.getValue()); - break; - } - case 16: - { - enableHttpPortAccess_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; @@ -281,7 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableHttpPortAccess_ != false) { output.writeBool(2, enableHttpPortAccess_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -303,7 +243,7 @@ public int getSerializedSize() { if (enableHttpPortAccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -321,7 +261,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false; if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,7 +278,7 @@ public int hashCode() { } hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -487,17 +427,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.EndpointConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -590,7 +523,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.EndpointConfig other) { if (other.getEnableHttpPortAccess() != false) { setEnableHttpPortAccess(other.getEnableHttpPortAccess()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -605,17 +538,48 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.EndpointConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry httpPorts__ = + input.readMessage( + HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHttpPorts() + .getMutableMap() + .put(httpPorts__.getKey(), httpPorts__.getValue()); + break; + } // case 10 + case 16: + { + enableHttpPortAccess_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.EndpointConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -882,7 +846,18 @@ public EndpointConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EndpointConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java index 9a029911..531a9b88 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EnvironmentConfig( - 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.dataproc.v1.ExecutionConfig.Builder subBuilder = null; - if (executionConfig_ != null) { - subBuilder = executionConfig_.toBuilder(); - } - executionConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.ExecutionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionConfig_); - executionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder subBuilder = null; - if (peripheralsConfig_ != null) { - subBuilder = peripheralsConfig_.toBuilder(); - } - peripheralsConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.PeripheralsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(peripheralsConfig_); - peripheralsConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; @@ -264,7 +193,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (peripheralsConfig_ != null) { output.writeMessage(2, getPeripheralsConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -279,7 +208,7 @@ public int getSerializedSize() { if (peripheralsConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeripheralsConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPeripheralsConfig()) { if (!getPeripheralsConfig().equals(other.getPeripheralsConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,7 +251,7 @@ public int hashCode() { hash = (37 * hash) + PERIPHERALS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPeripheralsConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -571,7 +493,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.EnvironmentConfig other) { if (other.hasPeripheralsConfig()) { mergePeripheralsConfig(other.getPeripheralsConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -586,17 +508,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.EnvironmentConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExecutionConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage( + getPeripheralsConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.EnvironmentConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1040,7 +989,18 @@ public EnvironmentConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvironmentConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java index 32cf5c0d..a3d13e0b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java @@ -54,87 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ExecutionConfig( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 4; - network_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 5; - network_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - networkTags_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - networkTags_ = networkTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; @@ -525,7 +444,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kmsKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -554,7 +473,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -584,7 +503,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -615,7 +534,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -744,17 +663,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -897,7 +809,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ExecutionConfig other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -912,17 +824,64 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ExecutionConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 4; + network_ = s; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + networkCase_ = 5; + network_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 50 + case 58: + { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ExecutionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1622,7 +1581,18 @@ public ExecutionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index 8a5dafe4..f92c6a6c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -59,193 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GceClusterConfig( - 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(); - - zoneUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - networkUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - serviceAccountScopes_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tags_.add(s); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnetworkUri_ = s; - break; - } - case 56: - { - internalIpOnly_ = input.readBool(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 90: - { - com.google.cloud.dataproc.v1.ReservationAffinity.Builder subBuilder = null; - if (reservationAffinity_ != null) { - subBuilder = reservationAffinity_.toBuilder(); - } - reservationAffinity_ = - input.readMessage( - com.google.cloud.dataproc.v1.ReservationAffinity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationAffinity_); - reservationAffinity_ = subBuilder.buildPartial(); - } - - break; - } - case 96: - { - int rawValue = input.readEnum(); - - privateIpv6GoogleAccess_ = rawValue; - break; - } - case 106: - { - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder subBuilder = null; - if (nodeGroupAffinity_ != null) { - subBuilder = nodeGroupAffinity_.toBuilder(); - } - nodeGroupAffinity_ = - input.readMessage( - com.google.cloud.dataproc.v1.NodeGroupAffinity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeGroupAffinity_); - nodeGroupAffinity_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder subBuilder = null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder subBuilder = null; - if (confidentialInstanceConfig_ != null) { - subBuilder = confidentialInstanceConfig_.toBuilder(); - } - confidentialInstanceConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confidentialInstanceConfig_); - confidentialInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; @@ -1351,7 +1164,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidentialInstanceConfig_ != null) { output.writeMessage(15, getConfidentialInstanceConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1423,7 +1236,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getConfidentialInstanceConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1465,7 +1278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1516,7 +1329,7 @@ public int hashCode() { hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1666,17 +1479,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1893,7 +1699,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.hasConfidentialInstanceConfig()) { mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1908,17 +1714,120 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GceClusterConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + zoneUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + networkUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 42 + case 50: + { + subnetworkUri_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + internalIpOnly_ = input.readBool(); + + break; + } // case 56 + case 66: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 90: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 96: + { + privateIpv6GoogleAccess_ = input.readEnum(); + + break; + } // case 96 + case 106: + { + input.readMessage( + getNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + case 122: + { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GceClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4172,7 +4081,18 @@ public GceClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GceClusterConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java index 7f4be413..7912ad40 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetAutoscalingPolicyRequest( - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; @@ -197,7 +151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -209,7 +163,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -226,7 +180,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,7 +193,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -369,17 +323,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -469,7 +416,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GetAutoscalingPolicyReques name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -484,18 +431,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -682,7 +648,18 @@ public GetAutoscalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAutoscalingPolicyRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java index 52ab078c..2f363951 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetBatchRequest( - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -212,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.GetBatchRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,7 +179,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GetBatchRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -453,7 +400,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GetBatchRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,17 +415,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GetBatchRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GetBatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -630,7 +597,18 @@ public GetBatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBatchRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java index 8ecc2108..153525a7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; @@ -301,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -319,7 +259,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -338,7 +278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getRegion().equals(other.getRegion())) return false; if (!getClusterName().equals(other.getClusterName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +295,7 @@ public int hashCode() { hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -484,17 +424,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GetClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -597,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GetClusterRequest other) { clusterName_ = other.clusterName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -612,17 +545,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GetClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GetClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +946,18 @@ public GetClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java index d5b0dd4e..1f16649a 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; @@ -301,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -319,7 +259,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -338,7 +278,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getRegion().equals(other.getRegion())) return false; if (!getJobId().equals(other.getJobId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +295,7 @@ public int hashCode() { hash = (53 * hash) + getRegion().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -484,17 +424,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GetJobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -597,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GetJobRequest other) { jobId_ = other.jobId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -612,17 +545,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GetJobRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GetJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +946,18 @@ public GetJobRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJobRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java index 07062bf8..eb818575 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java @@ -52,57 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; @@ -225,7 +174,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (version_ != 0) { output.writeInt32(2, version_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -240,7 +189,7 @@ public int getSerializedSize() { if (version_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -258,7 +207,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getVersion() != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,7 +222,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -403,17 +352,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -509,7 +451,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest if (other.getVersion() != 0) { setVersion(other.getVersion()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -524,18 +466,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -780,7 +747,18 @@ public GetWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java index 677d4c16..2cfbf5c7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeClusterConfig( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - gkeClusterTarget_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodePoolTarget_.add( - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = java.util.Collections.unmodifiableList(nodePoolTarget_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; @@ -303,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < nodePoolTarget_.size(); i++) { output.writeMessage(3, nodePoolTarget_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -318,7 +256,7 @@ public int getSerializedSize() { for (int i = 0; i < nodePoolTarget_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, nodePoolTarget_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -336,7 +274,7 @@ public boolean equals(final java.lang.Object obj) { if (!getGkeClusterTarget().equals(other.getGkeClusterTarget())) return false; if (!getNodePoolTargetList().equals(other.getNodePoolTargetList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,7 +291,7 @@ public int hashCode() { hash = (37 * hash) + NODE_POOL_TARGET_FIELD_NUMBER; hash = (53 * hash) + getNodePoolTargetList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -482,19 +420,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodePoolTargetFieldBuilder(); - } } @java.lang.Override @@ -504,10 +433,11 @@ public Builder clear() { if (nodePoolTargetBuilder_ == null) { nodePoolTarget_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + nodePoolTarget_ = null; nodePoolTargetBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -626,7 +556,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -641,17 +571,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeClusterConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + gkeClusterTarget_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.cloud.dataproc.v1.GkeNodePoolTarget m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry); + if (nodePoolTargetBuilder_ == null) { + ensureNodePoolTargetIsMutable(); + nodePoolTarget_.add(m); + } else { + nodePoolTargetBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GkeClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1273,7 +1236,18 @@ public GkeClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeClusterConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java index 3b13ae7e..a25537d1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java @@ -53,96 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeNodePoolConfig( - 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 18: - { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder subBuilder = - null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - subBuilder = null; - if (autoscaling_ != null) { - subBuilder = autoscaling_.toBuilder(); - } - autoscaling_ = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaling_); - autoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; @@ -366,89 +276,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeNodeConfig( - 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(); - - machineType_ = s; - break; - } - case 56: - { - localSsdCount_ = input.readInt32(); - break; - } - case 80: - { - preemptible_ = input.readBool(); - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - accelerators_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfig>(); - mutable_bitField0_ |= 0x00000001; - } - accelerators_.add( - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .parser(), - extensionRegistry)); - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - minCpuPlatform_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; @@ -738,7 +565,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -762,7 +589,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -783,7 +610,7 @@ public boolean equals(final java.lang.Object obj) { if (getLocalSsdCount() != other.getLocalSsdCount()) return false; if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -806,7 +633,7 @@ public int hashCode() { } hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -938,19 +765,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAcceleratorsFieldBuilder(); - } } @java.lang.Override @@ -964,10 +782,11 @@ public Builder clear() { if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + accelerators_ = null; acceleratorsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); minCpuPlatform_ = ""; return this; @@ -1106,7 +925,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeC minCpuPlatform_ = other.minCpuPlatform_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1121,19 +940,70 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + machineType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 56: + { + localSsdCount_ = input.readInt32(); + + break; + } // case 56 + case 80: + { + preemptible_ = input.readBool(); + + break; + } // case 80 + case 90: + { + com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = + input.readMessage( + com.google.cloud.dataproc.v1.GkeNodePoolConfig + .GkeNodePoolAcceleratorConfig.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 106: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1984,7 +1854,19 @@ public GkeNodeConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeNodeConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2084,57 +1966,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeNodePoolAcceleratorConfig( - 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 8: - { - acceleratorCount_ = input.readInt64(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - acceleratorType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; @@ -2238,7 +2069,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2253,7 +2084,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2272,7 +2103,7 @@ public boolean equals(final java.lang.Object obj) { if (getAcceleratorCount() != other.getAcceleratorCount()) return false; if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2287,7 +2118,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2428,17 +2259,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2545,7 +2369,7 @@ public Builder mergeFrom( acceleratorType_ = other.acceleratorType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2560,20 +2384,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + acceleratorCount_ = input.readInt64(); + + break; + } // case 8 + case 18: + { + acceleratorType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2771,7 +2618,19 @@ public GkeNodePoolAcceleratorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeNodePoolAcceleratorConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2859,55 +2718,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeNodePoolAutoscalingConfig( - 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 16: - { - minNodeCount_ = input.readInt32(); - break; - } - case 24: - { - maxNodeCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; @@ -2982,7 +2792,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxNodeCount_ != 0) { output.writeInt32(3, maxNodeCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2997,7 +2807,7 @@ public int getSerializedSize() { if (maxNodeCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3016,7 +2826,7 @@ public boolean equals(final java.lang.Object obj) { if (getMinNodeCount() != other.getMinNodeCount()) return false; if (getMaxNodeCount() != other.getMaxNodeCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3031,7 +2841,7 @@ public int hashCode() { hash = (53 * hash) + getMinNodeCount(); hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxNodeCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3172,17 +2982,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -3288,7 +3091,7 @@ public Builder mergeFrom( if (other.getMaxNodeCount() != 0) { setMaxNodeCount(other.getMaxNodeCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3303,20 +3106,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + minNodeCount_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxNodeCount_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3466,7 +3292,19 @@ public GkeNodePoolAutoscalingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeNodePoolAutoscalingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3705,7 +3543,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < locations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3728,7 +3566,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLocationsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3753,7 +3591,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAutoscaling()) { if (!getAutoscaling().equals(other.getAutoscaling())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3776,7 +3614,7 @@ public int hashCode() { hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getAutoscaling().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3906,17 +3744,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4044,7 +3875,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig other) { if (other.hasAutoscaling()) { mergeAutoscaling(other.getAutoscaling()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4059,17 +3890,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeNodePoolConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 34: + { + input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GkeNodePoolConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4749,7 +4613,18 @@ public GkeNodePoolConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeNodePoolConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java index 06b158b6..40aa3a4b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java @@ -53,97 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GkeNodePoolTarget( - 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(); - - nodePool_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - roles_.add(rawValue); - break; - } - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - roles_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 26: - { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder subBuilder = null; - if (nodePoolConfig_ != null) { - subBuilder = nodePoolConfig_.toBuilder(); - } - nodePoolConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodePoolConfig_); - nodePoolConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; @@ -630,7 +539,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nodePoolConfig_ != null) { output.writeMessage(3, getNodePoolConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -657,7 +566,7 @@ public int getSerializedSize() { if (nodePoolConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodePoolConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -679,7 +588,7 @@ public boolean equals(final java.lang.Object obj) { if (hasNodePoolConfig()) { if (!getNodePoolConfig().equals(other.getNodePoolConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -700,7 +609,7 @@ public int hashCode() { hash = (37 * hash) + NODE_POOL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNodePoolConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -829,17 +738,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.GkeNodePoolTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -960,7 +862,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolTarget other) { if (other.hasNodePoolConfig()) { mergeNodePoolConfig(other.getNodePoolConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -975,17 +877,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.GkeNodePoolTarget parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + nodePool_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRolesIsMutable(); + roles_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + case 26: + { + input.readMessage(getNodePoolConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.GkeNodePoolTarget) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1651,7 +1598,18 @@ public GkeNodePoolTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeNodePoolTarget(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java index c2ced3db..c0bd8537 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java @@ -59,143 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private HadoopJob( - 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(); - driverCase_ = 1; - driver_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; @@ -906,7 +769,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -966,7 +829,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1001,7 +864,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1048,7 +911,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1201,17 +1064,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.HadoopJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1409,7 +1265,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HadoopJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1424,17 +1280,90 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.HadoopJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 1; + driver_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 2; + driver_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 58 + case 66: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.HadoopJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2921,7 +2850,18 @@ public HadoopJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HadoopJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java index 5dab6b48..b8fac607 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java @@ -53,119 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private HiveJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; @@ -705,7 +592,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -753,7 +640,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getJarFileUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -783,7 +670,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -820,7 +707,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -973,22 +860,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.HiveJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (queryListBuilder_ != null) { + queryListBuilder_.clear(); + } continueOnFailure_ = false; internalGetMutableScriptVariables().clear(); @@ -1127,7 +1010,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1142,17 +1025,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.HiveJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + queriesCase_ = 1; + queries_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); + queriesCase_ = 2; + break; + } // case 18 + case 24: + { + continueOnFailure_ = input.readBool(); + + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry scriptVariables__ = + input.readMessage( + ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScriptVariables() + .getMutableMap() + .put(scriptVariables__.getKey(), scriptVariables__.getValue()); + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.HiveJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2163,7 +2108,18 @@ public HiveJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java index e809b540..6b707e4e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java @@ -51,66 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private IdentityConfig( - 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)) { - userServiceAccountMapping_ = - com.google.protobuf.MapField.newMapField( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - userServiceAccountMapping__ = - input.readMessage( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - userServiceAccountMapping_ - .getMutableMap() - .put( - userServiceAccountMapping__.getKey(), userServiceAccountMapping__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; @@ -268,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetUserServiceAccountMapping(), UserServiceAccountMappingDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -288,7 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userServiceAccountMapping__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetUserServiceAccountMapping() .equals(other.internalGetUserServiceAccountMapping())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +261,7 @@ public int hashCode() { hash = (37 * hash) + USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER; hash = (53 * hash) + internalGetUserServiceAccountMapping().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -471,17 +411,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.IdentityConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -569,7 +502,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.IdentityConfig other) { if (other == com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance()) return this; internalGetMutableUserServiceAccountMapping() .mergeFrom(other.internalGetUserServiceAccountMapping()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -584,17 +517,46 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.IdentityConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry + userServiceAccountMapping__ = + input.readMessage( + UserServiceAccountMappingDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableUserServiceAccountMapping() + .getMutableMap() + .put( + userServiceAccountMapping__.getKey(), + userServiceAccountMapping__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.IdentityConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -812,7 +774,18 @@ public IdentityConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentityConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java index 4195c712..6e4db50d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java @@ -53,60 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private InstanceGroupAutoscalingPolicyConfig( - 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 8: - { - minInstances_ = input.readInt32(); - break; - } - case 16: - { - maxInstances_ = input.readInt32(); - break; - } - case 24: - { - weight_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; @@ -220,7 +166,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (weight_ != 0) { output.writeInt32(3, weight_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -238,7 +184,7 @@ public int getSerializedSize() { if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -257,7 +203,7 @@ public boolean equals(final java.lang.Object obj) { if (getMinInstances() != other.getMinInstances()) return false; if (getMaxInstances() != other.getMaxInstances()) return false; if (getWeight() != other.getWeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,7 +220,7 @@ public int hashCode() { hash = (53 * hash) + getMaxInstances(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -407,17 +353,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -521,7 +460,7 @@ public Builder mergeFrom( if (other.getWeight() != 0) { setWeight(other.getWeight()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -536,19 +475,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + minInstances_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + maxInstances_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + weight_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -805,7 +774,18 @@ public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceGroupAutoscalingPolicyConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java index 64c77a10..3507efee 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java @@ -58,144 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private InstanceGroupConfig( - 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 8: - { - numInstances_ = input.readInt32(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instanceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instanceNames_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - imageUri_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - machineTypeUri_ = s; - break; - } - case 42: - { - com.google.cloud.dataproc.v1.DiskConfig.Builder subBuilder = null; - if (diskConfig_ != null) { - subBuilder = diskConfig_.toBuilder(); - } - diskConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.DiskConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(diskConfig_); - diskConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - isPreemptible_ = input.readBool(); - break; - } - case 58: - { - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder subBuilder = null; - if (managedGroupConfig_ != null) { - subBuilder = managedGroupConfig_.toBuilder(); - } - managedGroupConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.ManagedGroupConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(managedGroupConfig_); - managedGroupConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - accelerators_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - accelerators_.add( - input.readMessage( - com.google.cloud.dataproc.v1.AcceleratorConfig.parser(), extensionRegistry)); - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - minCpuPlatform_ = s; - break; - } - case 80: - { - int rawValue = input.readEnum(); - - preemptibility_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - instanceNames_ = instanceNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; @@ -973,7 +835,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(10, preemptibility_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1020,7 +882,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1052,7 +914,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1091,7 +953,7 @@ public int hashCode() { } hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1221,19 +1083,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAcceleratorsFieldBuilder(); - } } @java.lang.Override @@ -1265,10 +1118,11 @@ public Builder clear() { } if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + accelerators_ = null; acceleratorsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); minCpuPlatform_ = ""; return this; @@ -1443,7 +1297,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other) minCpuPlatform_ = other.minCpuPlatform_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1458,17 +1312,100 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.InstanceGroupConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + numInstances_ = input.readInt32(); + + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceNamesIsMutable(); + instanceNames_.add(s); + break; + } // case 18 + case 26: + { + imageUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + machineTypeUri_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getDiskConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + isPreemptible_ = input.readBool(); + + break; + } // case 48 + case 58: + { + input.readMessage( + getManagedGroupConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + com.google.cloud.dataproc.v1.AcceleratorConfig m = + input.readMessage( + com.google.cloud.dataproc.v1.AcceleratorConfig.parser(), extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + minCpuPlatform_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: + { + preemptibility_ = input.readEnum(); + + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.InstanceGroupConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3193,7 +3130,18 @@ public InstanceGroupConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InstanceGroupConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java index 0c641e2d..ef441e5b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java @@ -55,75 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private InstantiateInlineWorkflowTemplateRequest( - 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: - { - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; @@ -344,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -362,7 +293,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -384,7 +315,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTemplate().equals(other.getTemplate())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -403,7 +334,7 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -535,17 +466,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -661,7 +585,7 @@ public Builder mergeFrom( requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -676,19 +600,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1217,7 +1171,18 @@ public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InstantiateInlineWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java index 9df925b6..4118db20 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private InstantiateWorkflowTemplateRequest( - 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 16: - { - version_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = - com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; @@ -436,7 +362,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 6); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -464,7 +390,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, parameters__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -484,7 +410,7 @@ public boolean equals(final java.lang.Object obj) { if (getVersion() != other.getVersion()) return false; if (!getRequestId().equals(other.getRequestId())) return false; if (!internalGetParameters().equals(other.internalGetParameters())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,7 +431,7 @@ public int hashCode() { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetParameters().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -655,17 +581,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -776,7 +695,7 @@ public Builder mergeFrom( onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -791,19 +710,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1369,7 +1329,18 @@ public InstantiateWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InstantiateWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java index a8db524b..2c0babed 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java @@ -56,306 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Job( - 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: - { - com.google.cloud.dataproc.v1.JobReference.Builder subBuilder = null; - if (reference_ != null) { - subBuilder = reference_.toBuilder(); - } - reference_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reference_); - reference_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.dataproc.v1.JobPlacement.Builder subBuilder = null; - if (placement_ != null) { - subBuilder = placement_.toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobPlacement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(placement_); - placement_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.dataproc.v1.HadoopJob.Builder subBuilder = null; - if (typeJobCase_ == 3) { - subBuilder = ((com.google.cloud.dataproc.v1.HadoopJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.HadoopJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.HadoopJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1.SparkJob.Builder subBuilder = null; - if (typeJobCase_ == 4) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 4; - break; - } - case 42: - { - com.google.cloud.dataproc.v1.PySparkJob.Builder subBuilder = null; - if (typeJobCase_ == 5) { - subBuilder = ((com.google.cloud.dataproc.v1.PySparkJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.PySparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 5; - break; - } - case 50: - { - com.google.cloud.dataproc.v1.HiveJob.Builder subBuilder = null; - if (typeJobCase_ == 6) { - subBuilder = ((com.google.cloud.dataproc.v1.HiveJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.HiveJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.HiveJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1.PigJob.Builder subBuilder = null; - if (typeJobCase_ == 7) { - subBuilder = ((com.google.cloud.dataproc.v1.PigJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.PigJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PigJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 7; - break; - } - case 66: - { - com.google.cloud.dataproc.v1.JobStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - yarnApplications_.add( - input.readMessage( - com.google.cloud.dataproc.v1.YarnApplication.parser(), extensionRegistry)); - break; - } - case 98: - { - com.google.cloud.dataproc.v1.SparkSqlJob.Builder subBuilder = null; - if (typeJobCase_ == 12) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkSqlJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 12; - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - statusHistory_.add( - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry)); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - driverControlFilesUri_ = s; - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - - driverOutputResourceUri_ = s; - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 162: - { - com.google.cloud.dataproc.v1.JobScheduling.Builder subBuilder = null; - if (scheduling_ != null) { - subBuilder = scheduling_.toBuilder(); - } - scheduling_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobScheduling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduling_); - scheduling_ = subBuilder.buildPartial(); - } - - break; - } - case 170: - { - com.google.cloud.dataproc.v1.SparkRJob.Builder subBuilder = null; - if (typeJobCase_ == 21) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkRJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkRJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkRJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 21; - break; - } - case 178: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobUuid_ = s; - break; - } - case 186: - { - com.google.cloud.dataproc.v1.PrestoJob.Builder subBuilder = null; - if (typeJobCase_ == 23) { - subBuilder = ((com.google.cloud.dataproc.v1.PrestoJob) typeJob_).toBuilder(); - } - typeJob_ = - input.readMessage( - com.google.cloud.dataproc.v1.PrestoJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PrestoJob) typeJob_); - typeJob_ = subBuilder.buildPartial(); - } - typeJobCase_ = 23; - break; - } - case 192: - { - done_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_Job_descriptor; @@ -1669,7 +1369,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (done_ != false) { output.writeBool(24, done_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1759,7 +1459,7 @@ public int getSerializedSize() { if (done_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, done_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1826,7 +1526,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1909,7 +1609,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2057,20 +1757,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.Job.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStatusHistoryFieldBuilder(); - getYarnApplicationsFieldBuilder(); - } } @java.lang.Override @@ -2088,6 +1778,30 @@ public Builder clear() { placement_ = null; placementBuilder_ = null; } + if (hadoopJobBuilder_ != null) { + hadoopJobBuilder_.clear(); + } + if (sparkJobBuilder_ != null) { + sparkJobBuilder_.clear(); + } + if (pysparkJobBuilder_ != null) { + pysparkJobBuilder_.clear(); + } + if (hiveJobBuilder_ != null) { + hiveJobBuilder_.clear(); + } + if (pigJobBuilder_ != null) { + pigJobBuilder_.clear(); + } + if (sparkRJobBuilder_ != null) { + sparkRJobBuilder_.clear(); + } + if (sparkSqlJobBuilder_ != null) { + sparkSqlJobBuilder_.clear(); + } + if (prestoJobBuilder_ != null) { + prestoJobBuilder_.clear(); + } if (statusBuilder_ == null) { status_ = null; } else { @@ -2096,16 +1810,18 @@ public Builder clear() { } if (statusHistoryBuilder_ == null) { statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + statusHistory_ = null; statusHistoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (yarnApplicationsBuilder_ == null) { yarnApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + yarnApplications_ = null; yarnApplicationsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); driverOutputResourceUri_ = ""; driverControlFilesUri_ = ""; @@ -2428,7 +2144,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2443,17 +2159,164 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.Job parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReferenceFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + com.google.cloud.dataproc.v1.YarnApplication m = + input.readMessage( + com.google.cloud.dataproc.v1.YarnApplication.parser(), extensionRegistry); + if (yarnApplicationsBuilder_ == null) { + ensureYarnApplicationsIsMutable(); + yarnApplications_.add(m); + } else { + yarnApplicationsBuilder_.addMessage(m); + } + break; + } // case 74 + case 98: + { + input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 12; + break; + } // case 98 + case 106: + { + com.google.cloud.dataproc.v1.JobStatus m = + input.readMessage( + com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); + if (statusHistoryBuilder_ == null) { + ensureStatusHistoryIsMutable(); + statusHistory_.add(m); + } else { + statusHistoryBuilder_.addMessage(m); + } + break; + } // case 106 + case 122: + { + driverControlFilesUri_ = input.readStringRequireUtf8(); + + break; + } // case 122 + case 138: + { + driverOutputResourceUri_ = input.readStringRequireUtf8(); + + break; + } // case 138 + case 146: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 146 + case 162: + { + input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 21; + break; + } // case 170 + case 178: + { + jobUuid_ = input.readStringRequireUtf8(); + + break; + } // case 178 + case 186: + { + input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); + typeJobCase_ = 23; + break; + } // case 186 + case 192: + { + done_ = input.readBool(); + + break; + } // case 192 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.Job) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -6612,7 +6475,18 @@ public Job parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Job(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java index c2bd5a13..d3ca8880 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java @@ -53,90 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobMetadata( - 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(); - - jobId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.JobStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationType_ = s; - break; - } - case 34: - { - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; @@ -377,7 +293,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (startTime_ != null) { output.writeMessage(4, getStartTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -398,7 +314,7 @@ public int getSerializedSize() { if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -423,7 +339,7 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,7 +362,7 @@ public int hashCode() { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -575,17 +491,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.JobMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -709,7 +618,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobMetadata other) { if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,17 +633,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.JobMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + operationType_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.JobMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1373,7 +1320,18 @@ public JobMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java index 8ba4bdd6..b891a043 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java @@ -53,77 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobPlacement( - 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(); - - clusterName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - clusterLabels_ - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; @@ -377,7 +306,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -402,7 +331,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterLabels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -421,7 +350,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,7 +369,7 @@ public int hashCode() { hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetClusterLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -589,17 +518,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.JobPlacement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -700,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobPlacement other) { onChanged(); } internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -715,17 +637,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.JobPlacement parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry clusterLabels__ = + input.readMessage( + ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableClusterLabels() + .getMutableMap() + .put(clusterLabels__.getKey(), clusterLabels__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.JobPlacement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1148,7 +1107,18 @@ public JobPlacement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobPlacement(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java index b0848a3c..76579610 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobReference( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; @@ -247,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -262,7 +209,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -280,7 +227,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProjectId().equals(other.getProjectId())) return false; if (!getJobId().equals(other.getJobId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,7 +242,7 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -424,17 +371,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.JobReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -530,7 +470,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobReference other) { jobId_ = other.jobId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -545,17 +485,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.JobReference parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.JobReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -823,7 +789,18 @@ public JobReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobReference(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java index 8f552710..b5f85592 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java @@ -50,55 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobScheduling( - 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 8: - { - maxFailuresPerHour_ = input.readInt32(); - break; - } - case 16: - { - maxFailuresTotal_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; @@ -187,7 +138,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxFailuresTotal_ != 0) { output.writeInt32(2, maxFailuresTotal_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -202,7 +153,7 @@ public int getSerializedSize() { if (maxFailuresTotal_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFailuresTotal_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -220,7 +171,7 @@ public boolean equals(final java.lang.Object obj) { if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) return false; if (getMaxFailuresTotal() != other.getMaxFailuresTotal()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,7 +186,7 @@ public int hashCode() { hash = (53 * hash) + getMaxFailuresPerHour(); hash = (37 * hash) + MAX_FAILURES_TOTAL_FIELD_NUMBER; hash = (53 * hash) + getMaxFailuresTotal(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -364,17 +315,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.JobScheduling.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -468,7 +412,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobScheduling other) { if (other.getMaxFailuresTotal() != 0) { setMaxFailuresTotal(other.getMaxFailuresTotal()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -483,17 +427,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.JobScheduling parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxFailuresPerHour_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + maxFailuresTotal_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.JobScheduling) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -684,7 +654,18 @@ public JobScheduling parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobScheduling(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java index 6d6fc357..5f35f124 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private JobStatus( - 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 8: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (stateStartTime_ != null) { - subBuilder = stateStartTime_.toBuilder(); - } - stateStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateStartTime_); - stateStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - substate_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; @@ -873,7 +798,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { output.writeEnum(7, substate_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -894,7 +819,7 @@ public int getSerializedSize() { if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, substate_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -916,7 +841,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStateStartTime().equals(other.getStateStartTime())) return false; } if (substate_ != other.substate_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -937,7 +862,7 @@ public int hashCode() { } hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; hash = (53 * hash) + substate_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1066,17 +991,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.JobStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1191,7 +1109,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.JobStatus other) { if (other.substate_ != 0) { setSubstateValue(other.getSubstateValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1206,17 +1124,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.JobStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 50: + { + input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + substate_ = input.readEnum(); + + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.JobStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1783,7 +1739,18 @@ public JobStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java index 35ff9ffd..c04e38c2 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java @@ -64,146 +64,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private KerberosConfig( - 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 8: - { - enableKerberos_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - rootPrincipalPasswordUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKeyUri_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - keystoreUri_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - truststoreUri_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - keystorePasswordUri_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - keyPasswordUri_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - truststorePasswordUri_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustRealm_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustKdc_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustAdminServer_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - crossRealmTrustSharedPasswordUri_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - kdcDbKeyUri_ = s; - break; - } - case 112: - { - tgtLifetimeHours_ = input.readInt32(); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - realm_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; @@ -999,7 +859,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, realm_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1057,7 +917,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1090,7 +950,7 @@ public boolean equals(final java.lang.Object obj) { if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false; if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false; if (!getRealm().equals(other.getRealm())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1131,7 +991,7 @@ public int hashCode() { hash = (53 * hash) + getTgtLifetimeHours(); hash = (37 * hash) + REALM_FIELD_NUMBER; hash = (53 * hash) + getRealm().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1260,17 +1120,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.KerberosConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1455,7 +1308,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.KerberosConfig other) { realm_ = other.realm_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1470,17 +1323,121 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.KerberosConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableKerberos_ = input.readBool(); + + break; + } // case 8 + case 18: + { + rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + kmsKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + keystoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + truststoreUri_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + keystorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + keyPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + truststorePasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + crossRealmTrustRealm_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + crossRealmTrustKdc_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 106: + { + kdcDbKeyUri_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 112: + { + tgtLifetimeHours_ = input.readInt32(); + + break; + } // case 112 + case 122: + { + realm_ = input.readStringRequireUtf8(); + + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.KerberosConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3123,7 +3080,18 @@ public KerberosConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new KerberosConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java index e3d7e36c..338a6a85 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java @@ -52,85 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private KubernetesClusterConfig( - 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(); - - kubernetesNamespace_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder subBuilder = null; - if (configCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.GkeClusterConfig) config_).toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1.GkeClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) config_); - config_ = subBuilder.buildPartial(); - } - configCase_ = 2; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder subBuilder = null; - if (kubernetesSoftwareConfig_ != null) { - subBuilder = kubernetesSoftwareConfig_.toBuilder(); - } - kubernetesSoftwareConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kubernetesSoftwareConfig_); - kubernetesSoftwareConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; @@ -380,7 +301,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kubernetesSoftwareConfig_ != null) { output.writeMessage(3, getKubernetesSoftwareConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -402,7 +323,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getKubernetesSoftwareConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -431,7 +352,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -456,7 +377,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -585,17 +506,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -603,6 +517,9 @@ public Builder clear() { super.clear(); kubernetesNamespace_ = ""; + if (gkeClusterConfigBuilder_ != null) { + gkeClusterConfigBuilder_.clear(); + } if (kubernetesSoftwareConfigBuilder_ == null) { kubernetesSoftwareConfig_ = null; } else { @@ -720,7 +637,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig ot break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -735,18 +652,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.KubernetesClusterConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + kubernetesNamespace_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getGkeClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getKubernetesSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1354,7 +1304,18 @@ public KubernetesClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesClusterConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java index 60ac1aa0..2309d02b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java @@ -50,78 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private KubernetesSoftwareConfig( - 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)) { - componentVersion_ = - com.google.protobuf.MapField.newMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry componentVersion__ = - input.readMessage( - ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - componentVersion_ - .getMutableMap() - .put(componentVersion__.getKey(), componentVersion__.getValue()); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; @@ -404,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output, internalGetComponentVersion(), ComponentVersionDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -433,7 +361,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -451,7 +379,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetComponentVersion().equals(other.internalGetComponentVersion())) return false; if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -470,7 +398,7 @@ public int hashCode() { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -624,17 +552,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -726,7 +647,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig o return this; internalGetMutableComponentVersion().mergeFrom(other.internalGetComponentVersion()); internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -741,18 +662,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry + componentVersion__ = + input.readMessage( + ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableComponentVersion() + .getMutableMap() + .put(componentVersion__.getKey(), componentVersion__.getValue()); + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1179,7 +1136,18 @@ public KubernetesSoftwareConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesSoftwareConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java index 4ea8d850..da316116 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java @@ -50,103 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LifecycleConfig( - 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.protobuf.Duration.Builder subBuilder = null; - if (idleDeleteTtl_ != null) { - subBuilder = idleDeleteTtl_.toBuilder(); - } - idleDeleteTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(idleDeleteTtl_); - idleDeleteTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (ttlCase_ == 2) { - subBuilder = ((com.google.protobuf.Timestamp) ttl_).toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) ttl_); - ttl_ = subBuilder.buildPartial(); - } - ttlCase_ = 2; - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ttlCase_ == 3) { - subBuilder = ((com.google.protobuf.Duration) ttl_).toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) ttl_); - ttl_ = subBuilder.buildPartial(); - } - ttlCase_ = 3; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (idleStartTime_ != null) { - subBuilder = idleStartTime_.toBuilder(); - } - idleStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(idleStartTime_); - idleStartTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; @@ -484,7 +387,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (idleStartTime_ != null) { output.writeMessage(4, getIdleStartTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -509,7 +412,7 @@ public int getSerializedSize() { if (idleStartTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -544,7 +447,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -575,7 +478,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -704,17 +607,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -726,6 +622,12 @@ public Builder clear() { idleDeleteTtl_ = null; idleDeleteTtlBuilder_ = null; } + if (autoDeleteTimeBuilder_ != null) { + autoDeleteTimeBuilder_.clear(); + } + if (autoDeleteTtlBuilder_ != null) { + autoDeleteTtlBuilder_.clear(); + } if (idleStartTimeBuilder_ == null) { idleStartTime_ = null; } else { @@ -857,7 +759,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -872,17 +774,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.LifecycleConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getIdleDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getAutoDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + ttlCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAutoDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); + ttlCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getIdleStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.LifecycleConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1883,7 +1823,18 @@ public LifecycleConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LifecycleConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java index f8bbeff9..6ef5e8e9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java @@ -54,64 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListAutoscalingPoliciesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; @@ -287,7 +229,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -305,7 +247,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -324,7 +266,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,7 +283,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -471,17 +413,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -584,7 +519,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesReq pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -599,18 +534,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -963,7 +929,18 @@ public ListAutoscalingPoliciesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAutoscalingPoliciesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java index 8cc59446..e15564de 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java @@ -54,68 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListAutoscalingPoliciesResponse( - 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)) { - policies_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - policies_.add( - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; @@ -281,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -296,7 +234,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +252,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPoliciesList().equals(other.getPoliciesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +269,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -461,19 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPoliciesFieldBuilder(); - } } @java.lang.Override @@ -481,10 +410,11 @@ public Builder clear() { super.clear(); if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + policies_ = null; policiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -608,7 +538,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRes nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -623,18 +553,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.AutoscalingPolicy m = + input.readMessage( + com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1171,7 +1133,18 @@ public ListAutoscalingPoliciesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAutoscalingPoliciesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java index c454294e..b767ab90 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListBatchesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; @@ -273,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +233,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +252,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +269,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,17 +398,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListBatchesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -569,7 +504,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesRequest other) pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -584,17 +519,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListBatchesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ListBatchesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -915,7 +882,18 @@ public ListBatchesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBatchesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java index e006f437..9d9c9fc7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListBatchesResponse( - 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)) { - batches_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - batches_.add( - input.readMessage( - com.google.cloud.dataproc.v1.Batch.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - batches_ = java.util.Collections.unmodifiableList(batches_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; @@ -269,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -284,7 +223,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -302,7 +241,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBatchesList().equals(other.getBatchesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,7 +258,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -448,19 +387,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListBatchesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBatchesFieldBuilder(); - } } @java.lang.Override @@ -468,10 +398,11 @@ public Builder clear() { super.clear(); if (batchesBuilder_ == null) { batches_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + batches_ = null; batchesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -593,7 +524,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -608,17 +539,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListBatchesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.Batch m = + input.readMessage( + com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); + if (batchesBuilder_ == null) { + ensureBatchesIsMutable(); + batches_.add(m); + } else { + batchesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ListBatchesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1115,7 +1079,18 @@ public ListBatchesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBatchesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java index 725a89b8..58405752 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java @@ -55,78 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListClustersRequest( - 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(); - - projectId_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; @@ -415,7 +343,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -439,7 +367,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -460,7 +388,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -481,7 +409,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -610,17 +538,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListClustersRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -737,7 +658,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersRequest other) pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -752,17 +673,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListClustersRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ListClustersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1349,7 +1314,18 @@ public ListClustersRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClustersRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java index a3de71b6..1e7dc980 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListClustersResponse( - 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)) { - clusters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clusters_.add( - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; @@ -281,7 +220,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -296,7 +235,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -314,7 +253,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClustersList().equals(other.getClustersList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,7 +270,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -460,19 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListClustersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClustersFieldBuilder(); - } } @java.lang.Override @@ -480,10 +410,11 @@ public Builder clear() { super.clear(); if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + clusters_ = null; clustersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -605,7 +536,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -620,18 +551,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListClustersResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.Cluster m = + input.readMessage( + com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ListClustersResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1169,7 +1132,18 @@ public ListClustersResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListClustersResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java index bf330f97..340a4ecc 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java @@ -57,92 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListJobsRequest( - 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(); - - projectId_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - jobStateMatcher_ = rawValue; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; @@ -688,7 +602,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -719,7 +633,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -742,7 +656,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (jobStateMatcher_ != other.jobStateMatcher_) return false; if (!getFilter().equals(other.getFilter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -767,7 +681,7 @@ public int hashCode() { hash = (53 * hash) + jobStateMatcher_; hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -896,17 +810,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListJobsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1035,7 +942,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListJobsRequest other) { filter_ = other.filter_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1050,17 +957,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListJobsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + jobStateMatcher_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ListJobsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1852,7 +1815,18 @@ public ListJobsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java index 278b87b5..9705d25e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListJobsResponse( - 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)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - jobs_.add( - input.readMessage(com.google.cloud.dataproc.v1.Job.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; @@ -280,7 +220,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +235,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -313,7 +253,7 @@ public boolean equals(final java.lang.Object obj) { if (!getJobsList().equals(other.getJobsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -330,7 +270,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -459,19 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListJobsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getJobsFieldBuilder(); - } } @java.lang.Override @@ -479,10 +410,11 @@ public Builder clear() { super.clear(); if (jobsBuilder_ == null) { jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + jobs_ = null; jobsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -603,7 +535,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListJobsResponse other) { nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -618,17 +550,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListJobsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.Job m = + input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ListJobsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1164,7 +1128,18 @@ public ListJobsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java index 4c6bcd69..3faf421b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListWorkflowTemplatesRequest( - 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; @@ -285,7 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -303,7 +245,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -322,7 +264,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,7 +281,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -469,17 +411,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -582,7 +517,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesReque pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -597,18 +532,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -958,7 +924,18 @@ public ListWorkflowTemplatesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkflowTemplatesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java index 231e3007..cc8f1dbf 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java @@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListWorkflowTemplatesResponse( - 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)) { - templates_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - templates_.add( - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - templates_ = java.util.Collections.unmodifiableList(templates_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; @@ -282,7 +220,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -297,7 +235,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -315,7 +253,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTemplatesList().equals(other.getTemplatesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,7 +270,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -462,19 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTemplatesFieldBuilder(); - } } @java.lang.Override @@ -482,10 +411,11 @@ public Builder clear() { super.clear(); if (templatesBuilder_ == null) { templates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + templates_ = null; templatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -607,7 +537,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRespo nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -622,18 +552,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.WorkflowTemplate m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); + if (templatesBuilder_ == null) { + ensureTemplatesIsMutable(); + templates_.add(m); + } else { + templatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1174,7 +1136,18 @@ public ListWorkflowTemplatesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWorkflowTemplatesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java index 1b0141d9..ab4acd12 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java @@ -50,63 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LoggingConfig( - 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 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - driverLogLevels_ = - com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry driverLogLevels__ = - input.readMessage( - DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - driverLogLevels_ - .getMutableMap() - .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; @@ -648,7 +591,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDriverLogLevels(), DriverLogLevelsDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -667,7 +610,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, driverLogLevels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -684,7 +627,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.LoggingConfig) obj; if (!internalGetDriverLogLevels().equals(other.internalGetDriverLogLevels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -699,7 +642,7 @@ public int hashCode() { hash = (37 * hash) + DRIVER_LOG_LEVELS_FIELD_NUMBER; hash = (53 * hash) + internalGetDriverLogLevels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -848,17 +791,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.LoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -945,7 +881,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataproc.v1.LoggingConfig other) { if (other == com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance()) return this; internalGetMutableDriverLogLevels().mergeFrom(other.internalGetDriverLogLevels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -960,17 +896,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.LoggingConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.protobuf.MapEntry + driverLogLevels__ = + input.readMessage( + DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDriverLogLevels() + .getMutableMap() + .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.LoggingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1326,7 +1288,18 @@ public LoggingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LoggingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java index a0ccdd60..87e3064b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java @@ -52,82 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ManagedCluster( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.ClusterConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; @@ -409,7 +333,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -434,7 +358,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -456,7 +380,7 @@ public boolean equals(final java.lang.Object obj) { if (!getConfig().equals(other.getConfig())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,7 +401,7 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -626,17 +550,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.ManagedCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -744,7 +661,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedCluster other) { mergeConfig(other.getConfig()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -759,17 +676,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ManagedCluster parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ManagedCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1336,7 +1290,18 @@ public ManagedCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedCluster(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java index 695afe43..b38f4a94 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ManagedGroupConfig( - 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(); - - instanceTemplateName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - instanceGroupManagerName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; @@ -243,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupManagerName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -259,7 +206,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -277,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInstanceTemplateName().equals(other.getInstanceTemplateName())) return false; if (!getInstanceGroupManagerName().equals(other.getInstanceGroupManagerName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,7 +239,7 @@ public int hashCode() { hash = (53 * hash) + getInstanceTemplateName().hashCode(); hash = (37 * hash) + INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupManagerName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -421,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +468,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedGroupConfig other) instanceGroupManagerName_ = other.instanceGroupManagerName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,17 +483,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ManagedGroupConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instanceTemplateName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceGroupManagerName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ManagedGroupConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -811,7 +777,18 @@ public ManagedGroupConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedGroupConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java index c57f28b8..c4cc9ad9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private MetastoreConfig( - 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(); - - dataprocMetastoreService_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; @@ -187,7 +141,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -200,7 +154,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -217,7 +171,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.MetastoreConfig) obj; if (!getDataprocMetastoreService().equals(other.getDataprocMetastoreService())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,7 +184,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATAPROC_METASTORE_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getDataprocMetastoreService().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -359,17 +313,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -458,7 +405,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.MetastoreConfig other) { dataprocMetastoreService_ = other.dataprocMetastoreService_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -473,17 +420,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.MetastoreConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataprocMetastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.MetastoreConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -645,7 +612,18 @@ public MetastoreConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetastoreConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java index 13cd15fe..a503ed13 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private NodeGroupAffinity( - 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(); - - nodeGroupUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; @@ -193,7 +147,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -205,7 +159,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeGroupUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -222,7 +176,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; if (!getNodeGroupUri().equals(other.getNodeGroupUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,7 +189,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NODE_GROUP_URI_FIELD_NUMBER; hash = (53 * hash) + getNodeGroupUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -364,17 +318,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -463,7 +410,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupAffinity other) { nodeGroupUri_ = other.nodeGroupUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -478,17 +425,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.NodeGroupAffinity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + nodeGroupUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.NodeGroupAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -665,7 +632,18 @@ public NodeGroupAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeGroupAffinity(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java index 23334254..5817a83b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private NodeInitializationAction( - 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(); - - executableFile_ = s; - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (executionTimeout_ != null) { - subBuilder = executionTimeout_.toBuilder(); - } - executionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTimeout_); - executionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; @@ -267,7 +206,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (executionTimeout_ != null) { output.writeMessage(2, getExecutionTimeout()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -282,7 +221,7 @@ public int getSerializedSize() { if (executionTimeout_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExecutionTimeout()) { if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,7 +259,7 @@ public int hashCode() { hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getExecutionTimeout().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.NodeInitializationAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -565,7 +497,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeInitializationAction o if (other.hasExecutionTimeout()) { mergeExecutionTimeout(other.getExecutionTimeout()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -580,18 +512,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.NodeInitializationAction parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + executableFile_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.NodeInitializationAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +939,18 @@ public NodeInitializationAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInitializationAction(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java index 61e90de5..d34cfb85 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java @@ -53,223 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OrderedJob( - 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(); - - stepId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.HadoopJob.Builder subBuilder = null; - if (jobTypeCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.HadoopJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.HadoopJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.HadoopJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 2; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.SparkJob.Builder subBuilder = null; - if (jobTypeCase_ == 3) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 3; - break; - } - case 34: - { - com.google.cloud.dataproc.v1.PySparkJob.Builder subBuilder = null; - if (jobTypeCase_ == 4) { - subBuilder = ((com.google.cloud.dataproc.v1.PySparkJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.PySparkJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 4; - break; - } - case 42: - { - com.google.cloud.dataproc.v1.HiveJob.Builder subBuilder = null; - if (jobTypeCase_ == 5) { - subBuilder = ((com.google.cloud.dataproc.v1.HiveJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.HiveJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.HiveJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 5; - break; - } - case 50: - { - com.google.cloud.dataproc.v1.PigJob.Builder subBuilder = null; - if (jobTypeCase_ == 6) { - subBuilder = ((com.google.cloud.dataproc.v1.PigJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.PigJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PigJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1.SparkSqlJob.Builder subBuilder = null; - if (jobTypeCase_ == 7) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkSqlJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkSqlJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 7; - break; - } - case 66: - { - 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 74: - { - com.google.cloud.dataproc.v1.JobScheduling.Builder subBuilder = null; - if (scheduling_ != null) { - subBuilder = scheduling_.toBuilder(); - } - scheduling_ = - input.readMessage( - com.google.cloud.dataproc.v1.JobScheduling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduling_); - scheduling_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - prerequisiteStepIds_.add(s); - break; - } - case 90: - { - com.google.cloud.dataproc.v1.SparkRJob.Builder subBuilder = null; - if (jobTypeCase_ == 11) { - subBuilder = ((com.google.cloud.dataproc.v1.SparkRJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkRJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.SparkRJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 11; - break; - } - case 98: - { - com.google.cloud.dataproc.v1.PrestoJob.Builder subBuilder = null; - if (jobTypeCase_ == 12) { - subBuilder = ((com.google.cloud.dataproc.v1.PrestoJob) jobType_).toBuilder(); - } - jobType_ = - input.readMessage( - com.google.cloud.dataproc.v1.PrestoJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.PrestoJob) jobType_); - jobType_ = subBuilder.buildPartial(); - } - jobTypeCase_ = 12; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; @@ -1171,7 +954,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (jobTypeCase_ == 12) { output.writeMessage(12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1244,7 +1027,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1295,7 +1078,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1356,7 +1139,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1505,17 +1288,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.OrderedJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1523,6 +1299,30 @@ public Builder clear() { super.clear(); stepId_ = ""; + if (hadoopJobBuilder_ != null) { + hadoopJobBuilder_.clear(); + } + if (sparkJobBuilder_ != null) { + sparkJobBuilder_.clear(); + } + if (pysparkJobBuilder_ != null) { + pysparkJobBuilder_.clear(); + } + if (hiveJobBuilder_ != null) { + hiveJobBuilder_.clear(); + } + if (pigJobBuilder_ != null) { + pigJobBuilder_.clear(); + } + if (sparkRJobBuilder_ != null) { + sparkRJobBuilder_.clear(); + } + if (sparkSqlJobBuilder_ != null) { + sparkSqlJobBuilder_.clear(); + } + if (prestoJobBuilder_ != null) { + prestoJobBuilder_.clear(); + } internalGetMutableLabels().clear(); if (schedulingBuilder_ == null) { scheduling_ = null; @@ -1745,7 +1545,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1760,17 +1560,109 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.OrderedJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + stepId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 7; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 66 + case 74: + { + input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 82 + case 90: + { + input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); + jobTypeCase_ = 12; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.OrderedJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4362,7 +4254,18 @@ public OrderedJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderedJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java index 72fa4a90..8575719d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java @@ -50,81 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ParameterValidation( - 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.dataproc.v1.RegexValidation.Builder subBuilder = null; - if (validationTypeCase_ == 1) { - subBuilder = - ((com.google.cloud.dataproc.v1.RegexValidation) validationType_).toBuilder(); - } - validationType_ = - input.readMessage( - com.google.cloud.dataproc.v1.RegexValidation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1.RegexValidation) validationType_); - validationType_ = subBuilder.buildPartial(); - } - validationTypeCase_ = 1; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.ValueValidation.Builder subBuilder = null; - if (validationTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.dataproc.v1.ValueValidation) validationType_).toBuilder(); - } - validationType_ = - input.readMessage( - com.google.cloud.dataproc.v1.ValueValidation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1.ValueValidation) validationType_); - validationType_ = subBuilder.buildPartial(); - } - validationTypeCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; @@ -309,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (validationTypeCase_ == 2) { output.writeMessage(2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -328,7 +253,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -355,7 +280,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,7 +303,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -507,22 +432,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ParameterValidation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (regexBuilder_ != null) { + regexBuilder_.clear(); + } + if (valuesBuilder_ != null) { + valuesBuilder_.clear(); + } validationTypeCase_ = 0; validationType_ = null; return this; @@ -633,7 +557,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ParameterValidation other) break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -648,17 +572,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ParameterValidation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRegexFieldBuilder().getBuilder(), extensionRegistry); + validationTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getValuesFieldBuilder().getBuilder(), extensionRegistry); + validationTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ParameterValidation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1128,7 +1078,18 @@ public ParameterValidation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterValidation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java index 67051b0f..f49d93b1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PeripheralsConfig( - 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(); - - metastoreService_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder subBuilder = null; - if (sparkHistoryServerConfig_ != null) { - subBuilder = sparkHistoryServerConfig_.toBuilder(); - } - sparkHistoryServerConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sparkHistoryServerConfig_); - sparkHistoryServerConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; @@ -258,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sparkHistoryServerConfig_ != null) { output.writeMessage(2, getSparkHistoryServerConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -275,7 +212,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSparkHistoryServerConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSparkHistoryServerConfig()) { if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +250,7 @@ public int hashCode() { hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -442,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -555,7 +485,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PeripheralsConfig other) { if (other.hasSparkHistoryServerConfig()) { mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -570,17 +500,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.PeripheralsConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metastoreService_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.PeripheralsConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -941,7 +898,18 @@ public PeripheralsConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PeripheralsConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java index c8d2a6b1..6a0d2ba8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java @@ -53,135 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PigJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - case 58: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_PigJob_descriptor; @@ -774,7 +645,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(7, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -825,7 +696,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -859,7 +730,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -900,7 +771,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1053,22 +924,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.PigJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (queryListBuilder_ != null) { + queryListBuilder_.clear(); + } continueOnFailure_ = false; internalGetMutableScriptVariables().clear(); @@ -1221,7 +1088,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1236,17 +1103,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.PigJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + queriesCase_ = 1; + queries_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); + queriesCase_ = 2; + break; + } // case 18 + case 24: + { + continueOnFailure_ = input.readBool(); + + break; + } // case 24 + case 34: + { + com.google.protobuf.MapEntry scriptVariables__ = + input.readMessage( + ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScriptVariables() + .getMutableMap() + .put(scriptVariables__.getKey(), scriptVariables__.getValue()); + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 50 + case 58: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.PigJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2452,7 +2387,18 @@ public PigJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PigJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java index 9232f3de..05d899d3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java @@ -57,125 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PrestoJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 24: - { - continueOnFailure_ = input.readBool(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputFormat_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clientTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clientTags_.add(s); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 58: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - clientTags_ = clientTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; @@ -701,7 +582,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(7, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -745,7 +626,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -779,7 +660,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -818,7 +699,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -971,22 +852,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.PrestoJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (queryListBuilder_ != null) { + queryListBuilder_.clear(); + } continueOnFailure_ = false; outputFormat_ = ""; @@ -1143,7 +1020,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PrestoJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1158,17 +1035,80 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.PrestoJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + queriesCase_ = 1; + queries_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); + queriesCase_ = 2; + break; + } // case 18 + case 24: + { + continueOnFailure_ = input.readBool(); + + break; + } // case 24 + case 34: + { + outputFormat_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureClientTagsIsMutable(); + clientTags_.add(s); + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 50 + case 58: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.PrestoJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2286,7 +2226,18 @@ public PrestoJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PrestoJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java index a6d9a001..a5dd1586 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java @@ -60,118 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PySparkBatch( - 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(); - - mainPythonFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - pythonFileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - archiveUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; @@ -603,7 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -655,7 +543,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -677,7 +565,7 @@ public boolean equals(final java.lang.Object obj) { if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; if (!getFileUrisList().equals(other.getFileUrisList())) return false; if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -710,7 +598,7 @@ public int hashCode() { hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; hash = (53 * hash) + getArchiveUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -842,17 +730,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.PySparkBatch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1027,7 +908,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkBatch other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1042,17 +923,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.PySparkBatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mainPythonFileUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePythonFileUrisIsMutable(); + pythonFileUris_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.PySparkBatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2104,7 +2040,18 @@ public PySparkBatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PySparkBatch(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java index b33f558f..dcdfa8b1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java @@ -60,149 +60,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PySparkJob( - 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(); - - mainPythonFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - pythonFileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; @@ -819,7 +676,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -884,7 +741,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -910,7 +767,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -951,7 +808,7 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1103,17 +960,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.PySparkJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1306,7 +1156,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other) { if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1321,17 +1171,89 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.PySparkJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mainPythonFileUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePythonFileUrisIsMutable(); + pythonFileUris_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 58 + case 66: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.PySparkJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2776,7 +2698,18 @@ public PySparkJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PySparkJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java index c1a76947..c38582d1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueryList( - 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)) { - queries_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queries_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - queries_ = queries_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; @@ -246,7 +193,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < queries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -263,7 +210,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getQueriesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -279,7 +226,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataproc.v1.QueryList other = (com.google.cloud.dataproc.v1.QueryList) obj; if (!getQueriesList().equals(other.getQueriesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -294,7 +241,7 @@ public int hashCode() { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + getQueriesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -423,17 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.QueryList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -533,7 +473,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.QueryList other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -548,17 +488,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.QueryList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueriesIsMutable(); + queries_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.QueryList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -872,7 +833,18 @@ public QueryList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java index a57315eb..8246e4ed 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RegexValidation( - 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)) { - regexes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - regexes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - regexes_ = regexes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; @@ -206,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < regexes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regexes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -223,7 +170,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRegexesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -240,7 +187,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.RegexValidation) obj; if (!getRegexesList().equals(other.getRegexesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,7 +202,7 @@ public int hashCode() { hash = (37 * hash) + REGEXES_FIELD_NUMBER; hash = (53 * hash) + getRegexesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -384,17 +331,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.RegexValidation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -494,7 +434,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RegexValidation other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -509,17 +449,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.RegexValidation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegexesIsMutable(); + regexes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.RegexValidation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -743,7 +704,18 @@ public RegexValidation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RegexValidation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java index cfdc128d..3ce19c7b 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java @@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ReservationAffinity( - 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 8: - { - int rawValue = input.readEnum(); - - consumeReservationType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; @@ -477,7 +410,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -501,7 +434,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValuesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -520,7 +453,7 @@ public boolean equals(final java.lang.Object obj) { if (consumeReservationType_ != other.consumeReservationType_) return false; if (!getKey().equals(other.getKey())) return false; if (!getValuesList().equals(other.getValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,7 +472,7 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -668,17 +601,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -792,7 +718,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ReservationAffinity other) } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -807,17 +733,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ReservationAffinity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumeReservationType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ReservationAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1233,7 +1192,18 @@ public ReservationAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservationAffinity(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java index 9e33684d..6dc77af1 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeConfig( - 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(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - containerImage_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; @@ -377,7 +308,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -402,7 +333,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -421,7 +352,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVersion().equals(other.getVersion())) return false; if (!getContainerImage().equals(other.getContainerImage())) return false; if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,7 +371,7 @@ public int hashCode() { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -589,17 +520,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -700,7 +624,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { onChanged(); } internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -715,17 +639,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.RuntimeConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + containerImage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.RuntimeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1155,7 +1116,18 @@ public RuntimeConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java index 3c8d9edd..10875f96 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RuntimeInfo( - 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)) { - endpoints_ = - com.google.protobuf.MapField.newMapField( - EndpointsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry endpoints__ = - input.readMessage( - EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - endpoints_.getMutableMap().put(endpoints__.getKey(), endpoints__.getValue()); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - outputUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - diagnosticOutputUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; @@ -375,7 +306,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diagnosticOutputUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -400,7 +331,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diagnosticOutputUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -418,7 +349,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; if (!getOutputUri().equals(other.getOutputUri())) return false; if (!getDiagnosticOutputUri().equals(other.getDiagnosticOutputUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,7 +368,7 @@ public int hashCode() { hash = (53 * hash) + getOutputUri().hashCode(); hash = (37 * hash) + DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticOutputUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -586,17 +517,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -697,7 +621,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { diagnosticOutputUri_ = other.diagnosticOutputUri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -712,17 +636,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.RuntimeInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry endpoints__ = + input.readMessage( + EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEndpoints() + .getMutableMap() + .put(endpoints__.getKey(), endpoints__.getValue()); + break; + } // case 10 + case 18: + { + outputUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + diagnosticOutputUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.RuntimeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1146,7 +1107,18 @@ public RuntimeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeInfo(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java index a262b783..63b52a48 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java @@ -50,77 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SecurityConfig( - 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.dataproc.v1.KerberosConfig.Builder subBuilder = null; - if (kerberosConfig_ != null) { - subBuilder = kerberosConfig_.toBuilder(); - } - kerberosConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.KerberosConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kerberosConfig_); - kerberosConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.dataproc.v1.IdentityConfig.Builder subBuilder = null; - if (identityConfig_ != null) { - subBuilder = identityConfig_.toBuilder(); - } - identityConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.IdentityConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identityConfig_); - identityConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; @@ -267,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (identityConfig_ != null) { output.writeMessage(2, getIdentityConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -282,7 +211,7 @@ public int getSerializedSize() { if (identityConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentityConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +235,7 @@ public boolean equals(final java.lang.Object obj) { if (hasIdentityConfig()) { if (!getIdentityConfig().equals(other.getIdentityConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,7 +254,7 @@ public int hashCode() { hash = (37 * hash) + IDENTITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getIdentityConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -454,17 +383,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.SecurityConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -574,7 +496,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SecurityConfig other) { if (other.hasIdentityConfig()) { mergeIdentityConfig(other.getIdentityConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -589,17 +511,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SecurityConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getKerberosConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SecurityConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1052,7 +1000,18 @@ public SecurityConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java index 223e9fe4..dc124d97 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java @@ -51,60 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ShieldedInstanceConfig( - 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 8: - { - enableSecureBoot_ = input.readBool(); - break; - } - case 16: - { - enableVtpm_ = input.readBool(); - break; - } - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; @@ -197,7 +143,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableIntegrityMonitoring_ != false) { output.writeBool(3, enableIntegrityMonitoring_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +161,7 @@ public int getSerializedSize() { if (enableIntegrityMonitoring_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -234,7 +180,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; if (getEnableVtpm() != other.getEnableVtpm()) return false; if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,7 +197,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -381,17 +327,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -492,7 +431,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ShieldedInstanceConfig oth if (other.getEnableIntegrityMonitoring() != false) { setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -507,18 +446,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ShieldedInstanceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableSecureBoot_ = input.readBool(); + + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -710,7 +680,18 @@ public ShieldedInstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ShieldedInstanceConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java index 94fe3991..6441c29c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java @@ -53,96 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SoftwareConfig( - 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(); - - imageVersion_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 24: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - optionalComponents_.add(rawValue); - break; - } - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - optionalComponents_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; @@ -522,7 +432,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < optionalComponents_.size(); i++) { output.writeEnumNoTag(optionalComponents_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -557,7 +467,7 @@ public int getSerializedSize() { } optionalComponentsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -576,7 +486,7 @@ public boolean equals(final java.lang.Object obj) { if (!getImageVersion().equals(other.getImageVersion())) return false; if (!internalGetProperties().equals(other.internalGetProperties())) return false; if (!optionalComponents_.equals(other.optionalComponents_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -597,7 +507,7 @@ public int hashCode() { hash = (37 * hash) + OPTIONAL_COMPONENTS_FIELD_NUMBER; hash = (53 * hash) + optionalComponents_.hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -746,17 +656,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -867,7 +770,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SoftwareConfig other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -882,17 +785,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SoftwareConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + imageVersion_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureOptionalComponentsIsMutable(); + optionalComponents_.add(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureOptionalComponentsIsMutable(); + optionalComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SoftwareConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1578,7 +1531,18 @@ public SoftwareConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SoftwareConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java index ca8d9c43..0b801bc0 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java @@ -56,112 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkBatch( - 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(); - driverCase_ = 1; - driver_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - archiveUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; @@ -667,7 +561,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -714,7 +608,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -744,7 +638,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -783,7 +677,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -913,17 +807,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.SparkBatch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1103,7 +990,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkBatch other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1118,17 +1005,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkBatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 1; + driver_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 2; + driver_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkBatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2180,7 +2123,18 @@ public SparkBatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkBatch(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java index 5b3c0fbf..4b0482e8 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkHistoryServerConfig( - 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(); - - dataprocCluster_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.SharedProto .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocCluster_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; if (!getDataprocCluster().equals(other.getDataprocCluster())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATAPROC_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getDataprocCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -357,17 +311,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -457,7 +404,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkHistoryServerConfig o dataprocCluster_ = other.dataprocCluster_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -472,18 +419,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataprocCluster_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -640,7 +606,18 @@ public SparkHistoryServerConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkHistoryServerConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java index 786f9e66..1fda8ba5 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java @@ -56,143 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkJob( - 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(); - driverCase_ = 1; - driver_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fileUris_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - archiveUris_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 66: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; @@ -883,7 +746,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(8, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -943,7 +806,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -978,7 +841,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1025,7 +888,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1174,17 +1037,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.SparkJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1382,7 +1238,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1397,17 +1253,90 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 1; + driver_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + driverCase_ = 2; + driver_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 58 + case 66: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2852,7 +2781,18 @@ public SparkJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java index 560e8fec..255c7ba7 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java @@ -57,92 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkRBatch( - 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(); - - mainRFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - archiveUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; @@ -438,7 +352,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < archiveUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -474,7 +388,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArchiveUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -493,7 +407,7 @@ public boolean equals(final java.lang.Object obj) { if (!getArgsList().equals(other.getArgsList())) return false; if (!getFileUrisList().equals(other.getFileUrisList())) return false; if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -518,7 +432,7 @@ public int hashCode() { hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; hash = (53 * hash) + getArchiveUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -649,17 +563,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.SparkRBatch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -800,7 +707,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRBatch other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -815,17 +722,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkRBatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mainRFileUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkRBatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1523,7 +1471,18 @@ public SparkRBatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkRBatch(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java index 3104de02..75d698eb 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java @@ -57,123 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkRJob( - 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(); - - mainRFileUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fileUris_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - archiveUris_.add(s); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; @@ -654,7 +537,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (loggingConfig_ != null) { output.writeMessage(6, getLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -703,7 +586,7 @@ public int getSerializedSize() { if (loggingConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -727,7 +610,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -760,7 +643,7 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -911,17 +794,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.SparkRJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1080,7 +956,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRJob other) { if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1095,17 +971,75 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkRJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mainRFileUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFileUrisIsMutable(); + fileUris_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArchiveUrisIsMutable(); + archiveUris_.add(s); + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 42 + case 50: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkRJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2196,7 +2130,18 @@ public SparkRJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkRJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java index e872004b..2f60b5de 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java @@ -54,83 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkSqlBatch( - 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(); - - queryFileUri_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queryVariables_ = - com.google.protobuf.MapField.newMapField( - QueryVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry queryVariables__ = - input.readMessage( - QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - queryVariables_ - .getMutableMap() - .put(queryVariables__.getKey(), queryVariables__.getValue()); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jarFileUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.BatchesProto .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; @@ -398,7 +321,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jarFileUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -428,7 +351,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getJarFileUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -447,7 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; if (!internalGetQueryVariables().equals(other.internalGetQueryVariables())) return false; if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -468,7 +391,7 @@ public int hashCode() { hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; hash = (53 * hash) + getJarFileUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -618,17 +541,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -739,7 +655,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlBatch other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -754,17 +670,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkSqlBatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryFileUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry queryVariables__ = + input.readMessage( + QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableQueryVariables() + .getMutableMap() + .put(queryVariables__.getKey(), queryVariables__.getValue()); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkSqlBatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1258,7 +1212,18 @@ public SparkSqlBatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkSqlBatch(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java index 5fb415ab..4946523c 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java @@ -53,130 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SparkSqlJob( - 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(); - queriesCase_ = 1; - queries_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.QueryList.Builder subBuilder = null; - if (queriesCase_ == 2) { - subBuilder = ((com.google.cloud.dataproc.v1.QueryList) queries_).toBuilder(); - } - queries_ = - input.readMessage( - com.google.cloud.dataproc.v1.QueryList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.QueryList) queries_); - queries_ = subBuilder.buildPartial(); - } - queriesCase_ = 2; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - scriptVariables_ - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; - } - case 50: - { - com.google.cloud.dataproc.v1.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 450: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - jarFileUris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; @@ -738,7 +614,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < jarFileUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 56, jarFileUris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -786,7 +662,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getJarFileUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -819,7 +695,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -858,7 +734,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1012,22 +888,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (queryListBuilder_ != null) { + queryListBuilder_.clear(); + } internalGetMutableScriptVariables().clear(); internalGetMutableProperties().clear(); jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1175,7 +1047,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1190,17 +1062,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SparkSqlJob parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + queriesCase_ = 1; + queries_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); + queriesCase_ = 2; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry scriptVariables__ = + input.readMessage( + ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableScriptVariables() + .getMutableMap() + .put(scriptVariables__.getKey(), scriptVariables__.getValue()); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties() + .getMutableMap() + .put(properties__.getKey(), properties__.getValue()); + break; + } // case 34 + case 50: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 450: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureJarFileUrisIsMutable(); + jarFileUris_.add(s); + break; + } // case 450 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SparkSqlJob) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2332,7 +2266,18 @@ public SparkSqlJob parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkSqlJob(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java index cbb9dfa8..bce39498 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java @@ -56,80 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StartClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; @@ -441,7 +367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -465,7 +391,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -486,7 +412,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -507,7 +433,7 @@ public int hashCode() { hash = (53 * hash) + getClusterUuid().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -636,17 +562,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.StartClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -764,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.StartClusterRequest other) requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -779,17 +698,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.StartClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.StartClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1410,7 +1373,18 @@ public StartClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StartClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java index 2d22eda2..306a1a81 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java @@ -56,80 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StopClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; @@ -441,7 +367,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -465,7 +391,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -486,7 +412,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClusterName().equals(other.getClusterName())) return false; if (!getClusterUuid().equals(other.getClusterUuid())) return false; if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -507,7 +433,7 @@ public int hashCode() { hash = (53 * hash) + getClusterUuid().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -636,17 +562,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.StopClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -764,7 +683,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.StopClusterRequest other) requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -779,17 +698,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.StopClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.StopClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1410,7 +1373,18 @@ public StopClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StopClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java index d74e447d..b57b71ff 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java @@ -54,81 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SubmitJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; @@ -383,7 +308,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -404,7 +329,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -427,7 +352,7 @@ public boolean equals(final java.lang.Object obj) { if (!getJob().equals(other.getJob())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -448,7 +373,7 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -577,17 +502,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.SubmitJobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -704,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.SubmitJobRequest other) { requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -719,17 +637,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.SubmitJobRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.SubmitJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1311,7 +1267,18 @@ public SubmitJobRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SubmitJobRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java index eb043098..e40d43e9 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java @@ -62,89 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private TemplateParameter( - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - com.google.cloud.dataproc.v1.ParameterValidation.Builder subBuilder = null; - if (validation_ != null) { - subBuilder = validation_.toBuilder(); - } - validation_ = - input.readMessage( - com.google.cloud.dataproc.v1.ParameterValidation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validation_); - validation_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; @@ -553,7 +470,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (validation_ != null) { output.writeMessage(4, getValidation()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -579,7 +496,7 @@ public int getSerializedSize() { if (validation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getValidation()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -602,7 +519,7 @@ public boolean equals(final java.lang.Object obj) { if (hasValidation()) { if (!getValidation().equals(other.getValidation())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -625,7 +542,7 @@ public int hashCode() { hash = (37 * hash) + VALIDATION_FIELD_NUMBER; hash = (53 * hash) + getValidation().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -762,17 +679,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.TemplateParameter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -900,7 +810,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.TemplateParameter other) { if (other.hasValidation()) { mergeValidation(other.getValidation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -915,17 +825,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.TemplateParameter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getValidationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.TemplateParameter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1897,7 +1846,18 @@ public TemplateParameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TemplateParameter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java index 7d655b32..cfdd01c0 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java @@ -51,61 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateAutoscalingPolicyRequest( - 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.dataproc.v1.AutoscalingPolicy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.AutoscalingPoliciesProto .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; @@ -192,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (policy_ != null) { output.writeMessage(1, getPolicy()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -204,7 +149,7 @@ public int getSerializedSize() { if (policy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -224,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPolicy()) { if (!getPolicy().equals(other.getPolicy())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,7 +184,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -369,17 +314,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -476,7 +414,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyReq if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -491,18 +429,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -742,7 +699,18 @@ public UpdateAutoscalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAutoscalingPolicyRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java index 8508729b..ac73fe75 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java @@ -55,119 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateClusterRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 26: - { - com.google.cloud.dataproc.v1.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (gracefulDecommissionTimeout_ != null) { - subBuilder = gracefulDecommissionTimeout_.toBuilder(); - } - gracefulDecommissionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gracefulDecommissionTimeout_); - gracefulDecommissionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; @@ -748,7 +635,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -780,7 +667,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -813,7 +700,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getRequestId().equals(other.getRequestId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -844,7 +731,7 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -973,17 +860,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.UpdateClusterRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1136,7 +1016,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateClusterRequest other requestId_ = other.requestId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1151,18 +1031,74 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.UpdateClusterRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage( + getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + requestId_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.UpdateClusterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2757,7 +2693,18 @@ public UpdateClusterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateClusterRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java index eb84f58a..f13425dd 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java @@ -54,96 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateJobRequest( - 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(); - - projectId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - region_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 34: - { - com.google.cloud.dataproc.v1.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; @@ -447,7 +357,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(5, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -471,7 +381,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -498,7 +408,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,7 +433,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -652,17 +562,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.UpdateJobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -793,7 +696,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateJobRequest other) { if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -808,17 +711,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.UpdateJobRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.UpdateJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1592,7 +1539,18 @@ public UpdateJobRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateJobRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java index d3a51177..3feffb7f 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java @@ -50,61 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateWorkflowTemplateRequest( - 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.dataproc.v1.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; @@ -194,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (template_ != null) { output.writeMessage(1, getTemplate()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -206,7 +151,7 @@ public int getSerializedSize() { if (template_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemplate()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -226,7 +171,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTemplate()) { if (!getTemplate().equals(other.getTemplate())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,7 +186,7 @@ public int hashCode() { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -371,17 +316,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -478,7 +416,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequ if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -493,18 +431,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -753,7 +710,18 @@ public UpdateWorkflowTemplateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWorkflowTemplateRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java index beefc815..38fc0bcc 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ValueValidation( - 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)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; @@ -198,7 +145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +162,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValuesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -232,7 +179,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.ValueValidation) obj; if (!getValuesList().equals(other.getValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,7 +194,7 @@ public int hashCode() { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -376,17 +323,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.ValueValidation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -486,7 +426,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ValueValidation other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -501,17 +441,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.ValueValidation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.ValueValidation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -717,7 +678,18 @@ public ValueValidation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ValueValidation(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java index 2033228f..f6dfead3 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java @@ -54,89 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private VirtualClusterConfig( - 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(); - - stagingBucket_ = s; - break; - } - case 50: - { - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder subBuilder = null; - if (infrastructureConfigCase_ == 6) { - subBuilder = - ((com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) - .toBuilder(); - } - infrastructureConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); - infrastructureConfig_ = subBuilder.buildPartial(); - } - infrastructureConfigCase_ = 6; - break; - } - case 58: - { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder subBuilder = null; - if (auxiliaryServicesConfig_ != null) { - subBuilder = auxiliaryServicesConfig_.toBuilder(); - } - auxiliaryServicesConfig_ = - input.readMessage( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(auxiliaryServicesConfig_); - auxiliaryServicesConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.ClustersProto .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; @@ -402,7 +319,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (auxiliaryServicesConfig_ != null) { output.writeMessage(7, getAuxiliaryServicesConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -423,7 +340,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAuxiliaryServicesConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -452,7 +369,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,7 +394,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -608,17 +525,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -626,6 +536,9 @@ public Builder clear() { super.clear(); stagingBucket_ = ""; + if (kubernetesClusterConfigBuilder_ != null) { + kubernetesClusterConfigBuilder_.clear(); + } if (auxiliaryServicesConfigBuilder_ == null) { auxiliaryServicesConfig_ = null; } else { @@ -743,7 +656,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -758,18 +671,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.VirtualClusterConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + stagingBucket_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 50: + { + input.readMessage( + getKubernetesClusterConfigFieldBuilder().getBuilder(), extensionRegistry); + infrastructureConfigCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getAuxiliaryServicesConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.VirtualClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1418,7 +1364,18 @@ public VirtualClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VirtualClusterConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java index 0407748d..2676802e 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WorkflowGraph( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowNode.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; @@ -217,7 +163,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < nodes_.size(); i++) { output.writeMessage(1, nodes_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -229,7 +175,7 @@ public int getSerializedSize() { for (int i = 0; i < nodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -246,7 +192,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.WorkflowGraph) obj; if (!getNodesList().equals(other.getNodesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,7 +207,7 @@ public int hashCode() { hash = (37 * hash) + NODES_FIELD_NUMBER; hash = (53 * hash) + getNodesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -390,19 +336,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - } } @java.lang.Override @@ -410,10 +347,11 @@ public Builder clear() { super.clear(); if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + nodes_ = null; nodesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -527,7 +465,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowGraph other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -542,17 +480,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.WorkflowGraph parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataproc.v1.WorkflowNode m = + input.readMessage( + com.google.cloud.dataproc.v1.WorkflowNode.parser(), extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.WorkflowGraph) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -974,7 +939,18 @@ public WorkflowGraph parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowGraph(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java index d0ab53e1..71fa99cd 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java @@ -55,217 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WorkflowMetadata( - 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(); - - template_ = s; - break; - } - case 16: - { - version_ = input.readInt32(); - break; - } - case 26: - { - com.google.cloud.dataproc.v1.ClusterOperation.Builder subBuilder = null; - if (createCluster_ != null) { - subBuilder = createCluster_.toBuilder(); - } - createCluster_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createCluster_); - createCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.dataproc.v1.WorkflowGraph.Builder subBuilder = null; - if (graph_ != null) { - subBuilder = graph_.toBuilder(); - } - graph_ = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowGraph.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(graph_); - graph_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.dataproc.v1.ClusterOperation.Builder subBuilder = null; - if (deleteCluster_ != null) { - subBuilder = deleteCluster_.toBuilder(); - } - deleteCluster_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteCluster_); - deleteCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = - com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - parameters_.getMutableMap().put(parameters__.getKey(), parameters__.getValue()); - break; - } - case 74: - { - 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 82: - { - 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; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterUuid_ = s; - break; - } - case 98: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dagTimeout_ != null) { - subBuilder = dagTimeout_.toBuilder(); - } - dagTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagTimeout_); - dagTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dagStartTime_ != null) { - subBuilder = dagStartTime_.toBuilder(); - } - dagStartTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagStartTime_); - dagStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 114: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dagEndTime_ != null) { - subBuilder = dagEndTime_.toBuilder(); - } - dagEndTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagEndTime_); - dagEndTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; @@ -1271,7 +1060,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dagEndTime_ != null) { output.writeMessage(14, getDagEndTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1329,7 +1118,7 @@ public int getSerializedSize() { if (dagEndTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1383,7 +1172,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDagEndTime()) { if (!getDagEndTime().equals(other.getDagEndTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1440,7 +1229,7 @@ public int hashCode() { hash = (37 * hash) + DAG_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getDagEndTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1589,17 +1378,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.WorkflowMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1831,7 +1613,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) { if (other.hasDagEndTime()) { mergeDagEndTime(other.getDagEndTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1846,17 +1628,120 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.WorkflowMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + template_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + version_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + input.readMessage(getCreateClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getGraphFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getDeleteClusterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + clusterName_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry parameters__ = + input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParameters() + .getMutableMap() + .put(parameters__.getKey(), parameters__.getValue()); + break; + } // case 66 + case 74: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + clusterUuid_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getDagStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 106 + case 114: + { + input.readMessage(getDagEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.WorkflowMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4185,7 +4070,18 @@ public WorkflowMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java index a93bdbdf..0f4fcbca 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java @@ -56,87 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WorkflowNode( - 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(); - - stepId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - prerequisiteStepIds_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - error_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; @@ -661,7 +580,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -691,7 +610,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -712,7 +631,7 @@ public boolean equals(final java.lang.Object obj) { if (!getJobId().equals(other.getJobId())) return false; if (state_ != other.state_) return false; if (!getError().equals(other.getError())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -735,7 +654,7 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -864,17 +783,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.WorkflowNode.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1001,7 +913,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowNode other) { error_ = other.error_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1016,17 +928,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.WorkflowNode parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + stepId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrerequisiteStepIdsIsMutable(); + prerequisiteStepIds_.add(s); + break; + } // case 18 + case 26: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + error_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.WorkflowNode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1662,7 +1619,18 @@ public WorkflowNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNode(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java index 6e738fc9..8358e925 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java @@ -55,169 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WorkflowTemplate( - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 24: - { - version_ = input.readInt32(); - 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 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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 58: - { - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder subBuilder = null; - if (placement_ != null) { - subBuilder = placement_.toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(placement_); - placement_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jobs_.add( - input.readMessage( - com.google.cloud.dataproc.v1.OrderedJob.parser(), extensionRegistry)); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - parameters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - parameters_.add( - input.readMessage( - com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry)); - break; - } - case 82: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dagTimeout_ != null) { - subBuilder = dagTimeout_.toBuilder(); - } - dagTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dagTimeout_); - dagTimeout_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; @@ -938,7 +775,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dagTimeout_ != null) { output.writeMessage(10, getDagTimeout()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -984,7 +821,7 @@ public int getSerializedSize() { if (dagTimeout_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1022,7 +859,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDagTimeout()) { if (!getDagTimeout().equals(other.getDagTimeout())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1067,7 +904,7 @@ public int hashCode() { hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getDagTimeout().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1216,20 +1053,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getJobsFieldBuilder(); - getParametersFieldBuilder(); - } } @java.lang.Override @@ -1262,16 +1089,18 @@ public Builder clear() { } if (jobsBuilder_ == null) { jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + jobs_ = null; jobsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + parameters_ = null; parametersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (dagTimeoutBuilder_ == null) { dagTimeout_ = null; } else { @@ -1476,7 +1305,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { if (other.hasDagTimeout()) { mergeDagTimeout(other.getDagTimeout()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1491,17 +1320,110 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.WorkflowTemplate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + version_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 50 + case 58: + { + input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + com.google.cloud.dataproc.v1.OrderedJob m = + input.readMessage( + com.google.cloud.dataproc.v1.OrderedJob.parser(), extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.dataproc.v1.TemplateParameter m = + input.readMessage( + com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.WorkflowTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3730,7 +3652,18 @@ public WorkflowTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplate(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java index 5aff8f21..eeb2c01d 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java @@ -51,78 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private WorkflowTemplatePlacement( - 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.dataproc.v1.ManagedCluster.Builder subBuilder = null; - if (placementCase_ == 1) { - subBuilder = ((com.google.cloud.dataproc.v1.ManagedCluster) placement_).toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1.ManagedCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster) placement_); - placement_ = subBuilder.buildPartial(); - } - placementCase_ = 1; - break; - } - case 18: - { - com.google.cloud.dataproc.v1.ClusterSelector.Builder subBuilder = null; - if (placementCase_ == 2) { - subBuilder = - ((com.google.cloud.dataproc.v1.ClusterSelector) placement_).toBuilder(); - } - placement_ = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterSelector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector) placement_); - placement_ = subBuilder.buildPartial(); - } - placementCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.WorkflowTemplatesProto .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; @@ -313,7 +241,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (placementCase_ == 2) { output.writeMessage(2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -332,7 +260,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -359,7 +287,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -382,7 +310,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -513,22 +441,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} 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 (managedClusterBuilder_ != null) { + managedClusterBuilder_.clear(); + } + if (clusterSelectorBuilder_ != null) { + clusterSelectorBuilder_.clear(); + } placementCase_ = 0; placement_ = null; return this; @@ -639,7 +566,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -654,18 +581,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getManagedClusterFieldBuilder().getBuilder(), extensionRegistry); + placementCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getClusterSelectorFieldBuilder().getBuilder(), extensionRegistry); + placementCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1153,7 +1105,18 @@ public WorkflowTemplatePlacement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplatePlacement(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java index 92fca525..0a796743 100644 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java +++ b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java @@ -57,71 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private YarnApplication( - 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 16: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 29: - { - progress_ = input.readFloat(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - trackingUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().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.dataproc.v1.JobsProto .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; @@ -618,7 +553,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trackingUrl_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -640,7 +575,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -661,7 +596,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getProgress()) != java.lang.Float.floatToIntBits(other.getProgress())) return false; if (!getTrackingUrl().equals(other.getTrackingUrl())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -680,7 +615,7 @@ public int hashCode() { hash = (53 * hash) + java.lang.Float.floatToIntBits(getProgress()); hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; hash = (53 * hash) + getTrackingUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -812,17 +747,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataproc.v1.YarnApplication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -930,7 +858,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.YarnApplication other) { trackingUrl_ = other.trackingUrl_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -945,17 +873,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dataproc.v1.YarnApplication parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + + break; + } // case 16 + case 29: + { + progress_ = input.readFloat(); + + break; + } // case 29 + case 34: + { + trackingUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.dataproc.v1.YarnApplication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1373,7 +1339,18 @@ public YarnApplication parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new YarnApplication(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; From 17aaf0be8ff54314980af0e9470473f2d7495f0b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 00:52:44 +0000 Subject: [PATCH 506/519] chore(main): release 4.0.7-SNAPSHOT (#923) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 6f3af0a7..09f362d9 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.6 + 4.0.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT
diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 87139dba..e1cc8283 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.6 + 4.0.7-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index a8cbff84..28aea18f 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.6 + 4.0.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0de003e1..ba3810e6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.6 + 4.0.7-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 0db8ad52..4438678e 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.6 + 4.0.7-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.6 + 4.0.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7d134bf3..45454af1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index ed6a6d0b..c71b92d5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.6:4.0.6 -grpc-google-cloud-dataproc-v1:4.0.6:4.0.6 -proto-google-cloud-dataproc-v1:4.0.6:4.0.6 +google-cloud-dataproc:4.0.6:4.0.7-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.6:4.0.7-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.6:4.0.7-SNAPSHOT From 647ea9e5a64783c664f07308f171d3aab7468475 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:12:12 +0000 Subject: [PATCH 507/519] chore(main): release 4.0.7 (#953) :robot: I have created a release *beep* *boop* --- ## [4.0.7](https://togithub.com/googleapis/java-dataproc/compare/v4.0.6...v4.0.7) (2022-10-05) ### Documentation * [owlbot-java] samples do not need deploy plugin and deps upgrade ([#1583](https://togithub.com/googleapis/java-dataproc/issues/1583)) ([#926](https://togithub.com/googleapis/java-dataproc/issues/926)) ([3395143](https://togithub.com/googleapis/java-dataproc/commit/339514326c8ae8469cbe69ca9271ae4ff3b80e1b)) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#952](https://togithub.com/googleapis/java-dataproc/issues/952)) ([42e0c36](https://togithub.com/googleapis/java-dataproc/commit/42e0c364ee0fb7705ff6246b99b064a17d85f6ed)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1ef041..9c4f98a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [4.0.7](https://github.com/googleapis/java-dataproc/compare/v4.0.6...v4.0.7) (2022-10-05) + + +### Documentation + +* [owlbot-java] samples do not need deploy plugin and deps upgrade ([#1583](https://github.com/googleapis/java-dataproc/issues/1583)) ([#926](https://github.com/googleapis/java-dataproc/issues/926)) ([3395143](https://github.com/googleapis/java-dataproc/commit/339514326c8ae8469cbe69ca9271ae4ff3b80e1b)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#952](https://github.com/googleapis/java-dataproc/issues/952)) ([42e0c36](https://github.com/googleapis/java-dataproc/commit/42e0c364ee0fb7705ff6246b99b064a17d85f6ed)) + ## [4.0.6](https://github.com/googleapis/java-dataproc/compare/v4.0.5...v4.0.6) (2022-09-21) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 09f362d9..45cd88fe 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.7-SNAPSHOT + 4.0.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.7-SNAPSHOT + 4.0.7 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index e1cc8283..180ae39a 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.7-SNAPSHOT + 4.0.7 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.7-SNAPSHOT + 4.0.7 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 28aea18f..89a7fb15 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.7-SNAPSHOT + 4.0.7 diff --git a/pom.xml b/pom.xml index ba3810e6..42113a7e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.7-SNAPSHOT + 4.0.7 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 com.google.cloud google-cloud-dataproc - 4.0.7-SNAPSHOT + 4.0.7 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 4438678e..bae105ee 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7-SNAPSHOT + 4.0.7 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.7-SNAPSHOT + 4.0.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 45454af1..ca658dd7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.7-SNAPSHOT + 4.0.7 diff --git a/versions.txt b/versions.txt index c71b92d5..e26fa00a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.6:4.0.7-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.6:4.0.7-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.6:4.0.7-SNAPSHOT +google-cloud-dataproc:4.0.7:4.0.7 +grpc-google-cloud-dataproc-v1:4.0.7:4.0.7 +proto-google-cloud-dataproc-v1:4.0.7:4.0.7 From 0e2b6dd1f94c2e6b36f89ddbbd48e892be21a3ff Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 01:30:12 +0000 Subject: [PATCH 508/519] chore(main): release 4.0.8-SNAPSHOT (#954) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 45cd88fe..acf695a8 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.7 + 4.0.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 180ae39a..a5c09a66 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.7 + 4.0.8-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index 89a7fb15..eaa01f46 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.7 + 4.0.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index 42113a7e..c9d1328e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.7 + 4.0.8-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index bae105ee..3e0819cd 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.7 + 4.0.8-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.7 + 4.0.8-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ca658dd7..8eac421c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index e26fa00a..85fe5b43 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.7:4.0.7 -grpc-google-cloud-dataproc-v1:4.0.7:4.0.7 -proto-google-cloud-dataproc-v1:4.0.7:4.0.7 +google-cloud-dataproc:4.0.7:4.0.8-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.7:4.0.8-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.7:4.0.8-SNAPSHOT From 10b221d99b0f2c5e7ee2561bc09047f4f8d6c974 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 17:58:12 +0200 Subject: [PATCH 509/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.7 (#956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.6` -> `4.0.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.7/compatibility-slim/4.0.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.7/confidence-slim/4.0.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e096b308..b93bf0fe 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7 ``` @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.6' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.6" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.7" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 94a15a73..95cf58ce 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.6 + 4.0.7 From 1e7e0314992012a0c0639003c552f8d78e6a63af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 20:34:15 +0200 Subject: [PATCH 510/519] deps: update dependency com.google.cloud:google-cloud-storage to v2.13.0 (#955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 95cf58ce..61de035d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.12.0 + 2.13.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8eac421c..4a7a7619 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.12.0 + 2.13.0 junit From 36c739f82478b9e10e85fe262cea5f81f9550217 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 6 Oct 2022 19:00:22 +0000 Subject: [PATCH 511/519] chore(main): release 4.0.8 (#957) :robot: I have created a release *beep* *boop* --- ## [4.0.8](https://togithub.com/googleapis/java-dataproc/compare/v4.0.7...v4.0.8) (2022-10-06) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.13.0 ([#955](https://togithub.com/googleapis/java-dataproc/issues/955)) ([1e7e031](https://togithub.com/googleapis/java-dataproc/commit/1e7e0314992012a0c0639003c552f8d78e6a63af)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c4f98a2..e8bc457e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.0.8](https://github.com/googleapis/java-dataproc/compare/v4.0.7...v4.0.8) (2022-10-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.13.0 ([#955](https://github.com/googleapis/java-dataproc/issues/955)) ([1e7e031](https://github.com/googleapis/java-dataproc/commit/1e7e0314992012a0c0639003c552f8d78e6a63af)) + ## [4.0.7](https://github.com/googleapis/java-dataproc/compare/v4.0.6...v4.0.7) (2022-10-05) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index acf695a8..5c8b6a23 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.8-SNAPSHOT + 4.0.8 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.8-SNAPSHOT + 4.0.8 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index a5c09a66..343494e5 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.8-SNAPSHOT + 4.0.8 jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.8-SNAPSHOT + 4.0.8 google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index eaa01f46..ca026053 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.8-SNAPSHOT + 4.0.8 diff --git a/pom.xml b/pom.xml index c9d1328e..6dc8431e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.8-SNAPSHOT + 4.0.8 Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 com.google.cloud google-cloud-dataproc - 4.0.8-SNAPSHOT + 4.0.8 diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index 3e0819cd..adc634b8 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8-SNAPSHOT + 4.0.8 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.8-SNAPSHOT + 4.0.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4a7a7619..a302c2ba 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.8-SNAPSHOT + 4.0.8 diff --git a/versions.txt b/versions.txt index 85fe5b43..4a54dc1b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.7:4.0.8-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.7:4.0.8-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.7:4.0.8-SNAPSHOT +google-cloud-dataproc:4.0.8:4.0.8 +grpc-google-cloud-dataproc-v1:4.0.8:4.0.8 +proto-google-cloud-dataproc-v1:4.0.8:4.0.8 From de702eb64c990dafb1d4043d41f9b6ad868d481b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 6 Oct 2022 19:24:16 +0000 Subject: [PATCH 512/519] chore(main): release 4.0.9-SNAPSHOT (#958) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-dataproc-bom/pom.xml | 8 ++++---- google-cloud-dataproc/pom.xml | 4 ++-- grpc-google-cloud-dataproc-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-dataproc-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml index 5c8b6a23..29194d6c 100644 --- a/google-cloud-dataproc-bom/pom.xml +++ b/google-cloud-dataproc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.0.8 + 4.0.9-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-dataproc - 4.0.8 + 4.0.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml index 343494e5..251e2a88 100644 --- a/google-cloud-dataproc/pom.xml +++ b/google-cloud-dataproc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.0.8 + 4.0.9-SNAPSHOT jar Google Cloud Dataproc https://github.com/googleapis/java-dataproc @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dataproc-parent - 4.0.8 + 4.0.9-SNAPSHOT google-cloud-dataproc diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml index ca026053..316c2d36 100644 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ b/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.8 + 4.0.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6dc8431e..79c21a99 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.0.8 + 4.0.9-SNAPSHOT Google Cloud Dataproc Parent https://github.com/googleapis/java-dataproc @@ -61,17 +61,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.0.8 + 4.0.9-SNAPSHOT diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml index adc634b8..98bc1b18 100644 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ b/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.0.8 + 4.0.9-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.0.8 + 4.0.9-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a302c2ba..8c897a19 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dataproc - 4.0.8 + 4.0.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index 4a54dc1b..790455ed 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-dataproc:4.0.8:4.0.8 -grpc-google-cloud-dataproc-v1:4.0.8:4.0.8 -proto-google-cloud-dataproc-v1:4.0.8:4.0.8 +google-cloud-dataproc:4.0.8:4.0.9-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.0.8:4.0.9-SNAPSHOT +proto-google-cloud-dataproc-v1:4.0.8:4.0.9-SNAPSHOT From 49258a79a092c4b14973d1a360380d6346e46798 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 10 Oct 2022 16:38:15 +0200 Subject: [PATCH 513/519] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 8 ++++---- samples/snippets/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b93bf0fe..72ea714b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.2') +implementation platform('com.google.cloud:libraries-bom:26.1.3') implementation 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.7' +implementation 'com.google.cloud:google-cloud-dataproc:4.0.8' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.7" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.8" ``` ## Authentication diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9196dd0b..ee0ac83b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 0c898f1063bf05d16f74581c420efea6f75d0522 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 10 Oct 2022 17:20:28 +0200 Subject: [PATCH 514/519] chore(deps): update dependency com.google.cloud:google-cloud-dataproc to v4.0.8 (#959) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-dataproc](https://togithub.com/googleapis/java-dataproc) | `4.0.7` -> `4.0.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.8/compatibility-slim/4.0.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-dataproc/4.0.8/confidence-slim/4.0.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dataproc). --- README.md | 2 +- samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72ea714b..98baac40 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8 ``` diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 61de035d..56c289ea 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-dataproc - 4.0.7 + 4.0.8 From a76e520f613156f714169718b8d15eb75a39d1c6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:05:53 -0500 Subject: [PATCH 515/519] chore(java): add a note in README for migrated split repos (#1687) (#977) * chore(java): add a note in README for migrated split repos Disable renovate bot and flaky bot for split repositories that have moved to the Java monorepo. The Java monorepo will pass the "monorepo=True" parameter to java.common_templates method in its owlbot.py files so that the migration note will not appear in the README in the monorepo. Co-authored-by: Jeff Ching Source-Link: https://github.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a Co-authored-by: Owl Bot Co-authored-by: Jeff Ching --- .github/.OwlBot.lock.yaml | 3 +- .github/ISSUE_TEMPLATE/bug_report.md | 5 +++ .github/ISSUE_TEMPLATE/feature_request.md | 5 +++ .kokoro/dependencies.sh | 51 ----------------------- .kokoro/nightly/integration.cfg | 2 +- .kokoro/nightly/java11-integration.cfg | 2 +- .kokoro/nightly/samples.cfg | 2 +- .kokoro/requirements.in | 2 + .kokoro/requirements.txt | 14 ++++--- README.md | 13 ++++-- renovate.json | 1 + 11 files changed, 36 insertions(+), 64 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 2c3ef720..77cf6087 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 - + digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 748a88f1..8b73a6a1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,6 +4,11 @@ about: Create a report to help us improve --- +:bus: This library has moved to +[google-cloud-java/java-dataproc]( +https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 754e30c6..52b03dd3 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,6 +4,11 @@ about: Suggest an idea for this library --- +:bus: This library has moved to +[google-cloud-java/java-dataproc]( +https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index d7476cfe..bd896024 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -57,54 +57,3 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true - -echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" -## Run dependency list completeness check -function completenessCheck() { - # Output dep list with compile scope generated using the original pom - # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. - # This is stripped from the output as it is not present in the flattened pom. - # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. - msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt - - # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) - msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt - - # Compare two dependency lists - msg "Comparing dependency lists..." - diff .org-list.txt .new-list.txt >.diff.txt - if [[ $? == 0 ]] - then - msg "Success. No diff!" - else - msg "Diff found. See below: " - msg "You can also check .diff.txt file located in $1." - cat .diff.txt - return 1 - fi -} - -# Allow failures to continue running the script -set +e - -error_count=0 -for path in **/.flattened-pom.xml -do - # Check flattened pom in each dir that contains it for completeness - dir=$(dirname "$path") - pushd "$dir" - completenessCheck "$dir" - error_count=$(($error_count + $?)) - popd -done - -if [[ $error_count == 0 ]] -then - msg "All checks passed." - exit 0 -else - msg "Errors found. See log statements above." - exit 1 -fi diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index a2907a25..bd0297a3 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg index 58049cc3..dc51b65e 100644 --- a/.kokoro/nightly/java11-integration.cfg +++ b/.kokoro/nightly/java11-integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index 9761fd86..fee6a838 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -34,5 +34,5 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cfdc2e7e..6aa7cf2b 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -16,10 +16,12 @@ pycparser==2.21 pyperclip==1.8.2 python-dateutil==2.8.2 requests==2.27.1 +certifi==2022.9.24 importlib-metadata==4.8.3 zipp==3.6.0 google_api_core==2.8.2 google-cloud-storage==2.0.0 +google-resumable-media==2.3.3 google-cloud-core==2.3.1 typing-extensions==4.1.1 urllib3==1.26.12 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 170f1c63..02ae42bb 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -16,10 +16,12 @@ cachetools==4.2.4 \ # via # -r requirements.in # google-auth -certifi==2022.9.14 \ - --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ - --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 - # via requests +certifi==2022.9.24 \ + --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ + --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 + # via + # -r requirements.in + # requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -218,7 +220,9 @@ google-crc32c==1.3.0 \ google-resumable-media==2.3.3 \ --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via google-cloud-storage + # via + # -r requirements.in + # google-cloud-storage googleapis-common-protos==1.56.3 \ --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 diff --git a/README.md b/README.md index 98baac40..e124cb08 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,13 @@ Java idiomatic client for [Dataproc][product-docs]. - [Client Library Documentation][javadocs] +:bus: In October 2022, this library has moved to +[google-cloud-java/java-dataproc]( +https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc). +This repository will be archived in the future. +Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases). +The Maven artifact coordinates (`com.google.cloud:google-cloud-dataproc`) remain the same. + ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: @@ -50,20 +57,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.3') +implementation platform('com.google.cloud:libraries-bom:26.1.4') implementation 'com.google.cloud:google-cloud-dataproc' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.0.8' +implementation 'com.google.cloud:google-cloud-dataproc:4.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.8" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.2.0" ``` ## Authentication diff --git a/renovate.json b/renovate.json index 6d1a8dca..57506260 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,5 @@ { + "enabled": false, "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", From c79cd26011ef877e57d62e1fcd5c3a1e2eff6ad8 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:57:08 +0000 Subject: [PATCH 516/519] chore: Disabling owlbot (#995) --- .github/.OwlBot.lock.yaml | 16 ---------------- .github/.OwlBot.yaml | 35 ----------------------------------- owlbot.py | 24 ------------------------ 3 files changed, 75 deletions(-) delete mode 100644 .github/.OwlBot.lock.yaml delete mode 100644 .github/.OwlBot.yaml delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index 77cf6087..00000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml deleted file mode 100644 index 22519649..00000000 --- a/.github/.OwlBot.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# 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. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" - -deep-remove-regex: -- "/samples/snippets/generated" -- "/grpc-google-.*/src" -- "/proto-google-.*/src" -- "/google-.*/src" - -deep-preserve-regex: -- "/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" - -deep-copy-regex: -- source: "/google/cloud/dataproc/(v.*)/.*-java/proto-google-.*/src" - dest: "/owl-bot-staging/$1/proto-google-cloud-dataproc-$1/src" -- source: "/google/cloud/dataproc/(v.*)/.*-java/grpc-google-.*/src" - dest: "/owl-bot-staging/$1/grpc-google-cloud-dataproc-$1/src" -- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/$1/google-cloud-dataproc/src" -- source: "/google/cloud/dataproc/(v.*)/.*-java/samples/snippets/generated" - dest: "/owl-bot-staging/$1/samples/snippets/generated" diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index dca9d867..00000000 --- a/owlbot.py +++ /dev/null @@ -1,24 +0,0 @@ -# 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. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) - -s.remove_staging_dirs() -java.common_templates() From 5862e2c582a5a1a1d7fe423605b322ca7773feec Mon Sep 17 00:00:00 2001 From: meredithslota Date: Fri, 14 Apr 2023 21:04:58 +0000 Subject: [PATCH 517/519] chore: remove samples (#997) Samples have migrated to https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/dataproc --- .../snippets/src/main/java/CreateCluster.java | 84 --------- .../java/CreateClusterWithAutoscaling.java | 174 ------------------ .../InstantiateInlineWorkflowTemplate.java | 121 ------------ .../snippets/src/main/java/Quickstart.java | 151 --------------- .../src/main/java/SubmitHadoopFsJob.java | 101 ---------- samples/snippets/src/main/java/SubmitJob.java | 94 ---------- .../src/test/java/CreateClusterTest.java | 87 --------- .../CreateClusterWithAutoscalingTest.java | 105 ----------- ...InstantiateInlineWorkflowTemplateTest.java | 63 ------- .../src/test/java/QuickstartTest.java | 117 ------------ .../src/test/java/SubmitHadoopFsJobTest.java | 121 ------------ .../snippets/src/test/java/SubmitJobTest.java | 120 ------------ 12 files changed, 1338 deletions(-) delete mode 100644 samples/snippets/src/main/java/CreateCluster.java delete mode 100644 samples/snippets/src/main/java/CreateClusterWithAutoscaling.java delete mode 100644 samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java delete mode 100644 samples/snippets/src/main/java/Quickstart.java delete mode 100644 samples/snippets/src/main/java/SubmitHadoopFsJob.java delete mode 100644 samples/snippets/src/main/java/SubmitJob.java delete mode 100644 samples/snippets/src/test/java/CreateClusterTest.java delete mode 100644 samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java delete mode 100644 samples/snippets/src/test/java/InstantiateInlineWorkflowTemplateTest.java delete mode 100644 samples/snippets/src/test/java/QuickstartTest.java delete mode 100644 samples/snippets/src/test/java/SubmitHadoopFsJobTest.java delete mode 100644 samples/snippets/src/test/java/SubmitJobTest.java diff --git a/samples/snippets/src/main/java/CreateCluster.java b/samples/snippets/src/main/java/CreateCluster.java deleted file mode 100644 index 0623c8cc..00000000 --- a/samples/snippets/src/main/java/CreateCluster.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -// [START dataproc_create_cluster] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.InstanceGroupConfig; -import java.io.IOException; -import java.util.concurrent.ExecutionException; - -public class CreateCluster { - - public static void createCluster() throws IOException, InterruptedException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "your-project-id"; - String region = "your-project-region"; - String clusterName = "your-cluster-name"; - createCluster(projectId, region, clusterName); - } - - public static void createCluster(String projectId, String region, String clusterName) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the cluster controller client. - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create a cluster controller client with the configured settings. The client only needs to be - // created once and can be reused for multiple requests. Using a try-with-resources - // closes the client, but this can also be done manually with the .close() method. - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - // Configure the settings for our cluster. - InstanceGroupConfig masterConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(1) - .build(); - InstanceGroupConfig workerConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(2) - .build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder() - .setMasterConfig(masterConfig) - .setWorkerConfig(workerConfig) - .build(); - // Create the cluster object with the desired cluster config. - Cluster cluster = - Cluster.newBuilder().setClusterName(clusterName).setConfig(clusterConfig).build(); - - // Create the Cloud Dataproc cluster. - OperationFuture createClusterAsyncRequest = - clusterControllerClient.createClusterAsync(projectId, region, cluster); - Cluster response = createClusterAsyncRequest.get(); - - // Print out a success message. - System.out.printf("Cluster created successfully: %s", response.getClusterName()); - - } catch (ExecutionException e) { - System.err.println(String.format("Error executing createCluster: %s ", e.getMessage())); - } - } -} -// [END dataproc_create_cluster] diff --git a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java b/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java deleted file mode 100644 index 981721a4..00000000 --- a/samples/snippets/src/main/java/CreateClusterWithAutoscaling.java +++ /dev/null @@ -1,174 +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. -* -* This sample creates a Dataproc cluster with an autoscaling policy enabled. -* The policy we will be creating mirrors the following YAML representation: -* - workerConfig: - minInstances: 2 - maxInstances: 100 - weight: 1 - secondaryWorkerConfig: - minInstances: 0 - maxInstances: 100 - weight: 1 - basicAlgorithm: - cooldownPeriod: 4m - yarnConfig: - scaleUpFactor: 0.05 - scaleDownFactor: 1.0 - scaleUpMinWorkerFraction: 0.0 - scaleDownMinWorkerFraction: 0.0 - gracefulDecommissionTimeout: 1h -*/ - -// [START dataproc_create_autoscaling_cluster] - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.AutoscalingConfig; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; -import com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm; -import com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig; -import com.google.cloud.dataproc.v1.InstanceGroupConfig; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.protobuf.Duration; -import java.io.IOException; -import java.util.concurrent.ExecutionException; - -public class CreateClusterWithAutoscaling { - - public static void createClusterwithAutoscaling() throws IOException, InterruptedException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "your-project-id"; - String region = "your-project-region"; - String clusterName = "your-cluster-name"; - String autoscalingPolicyName = "your-autoscaling-policy"; - createClusterwithAutoscaling(projectId, region, clusterName, autoscalingPolicyName); - } - - public static void createClusterwithAutoscaling( - String projectId, String region, String clusterName, String autoscalingPolicyName) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the cluster controller client. - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Configure the settings for the autoscaling policy service client. - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create a cluster controller client and an autoscaling controller client with the configured - // settings. The clients only need to be created once and can be reused for multiple requests. - // Using a - // try-with-resources closes the client, but this can also be done manually with the .close() - // method. - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings)) { - - // Create the Autoscaling policy. - InstanceGroupAutoscalingPolicyConfig workerInstanceGroupAutoscalingPolicyConfig = - InstanceGroupAutoscalingPolicyConfig.newBuilder() - .setMinInstances(2) - .setMaxInstances(100) - .setWeight(1) - .build(); - InstanceGroupAutoscalingPolicyConfig secondaryWorkerInstanceGroupAutoscalingPolicyConfig = - InstanceGroupAutoscalingPolicyConfig.newBuilder() - .setMinInstances(0) - .setMaxInstances(100) - .setWeight(1) - .build(); - BasicYarnAutoscalingConfig basicYarnApplicationConfig = - BasicYarnAutoscalingConfig.newBuilder() - .setScaleUpFactor(0.05) - .setScaleDownFactor(1.0) - .setScaleUpMinWorkerFraction(0.0) - .setScaleUpMinWorkerFraction(0.0) - .setGracefulDecommissionTimeout(Duration.newBuilder().setSeconds(3600).build()) - .build(); - BasicAutoscalingAlgorithm basicAutoscalingAlgorithm = - BasicAutoscalingAlgorithm.newBuilder() - .setCooldownPeriod(Duration.newBuilder().setSeconds(240).build()) - .setYarnConfig(basicYarnApplicationConfig) - .build(); - AutoscalingPolicy autoscalingPolicy = - AutoscalingPolicy.newBuilder() - .setId(autoscalingPolicyName) - .setWorkerConfig(workerInstanceGroupAutoscalingPolicyConfig) - .setSecondaryWorkerConfig(secondaryWorkerInstanceGroupAutoscalingPolicyConfig) - .setBasicAlgorithm(basicAutoscalingAlgorithm) - .build(); - RegionName parent = RegionName.of(projectId, region); - - // Policy is uploaded here. - autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, autoscalingPolicy); - - // Now the policy can be referenced when creating a cluster. - String autoscalingPolicyUri = - String.format( - "projects/%s/locations/%s/autoscalingPolicies/%s", - projectId, region, autoscalingPolicyName); - AutoscalingConfig autoscalingConfig = - AutoscalingConfig.newBuilder().setPolicyUri(autoscalingPolicyUri).build(); - - // Configure the settings for our cluster. - InstanceGroupConfig masterConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(1) - .build(); - InstanceGroupConfig workerConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(2) - .build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder() - .setMasterConfig(masterConfig) - .setWorkerConfig(workerConfig) - .setAutoscalingConfig(autoscalingConfig) - .build(); - - // Create the cluster object with the desired cluster config. - Cluster cluster = - Cluster.newBuilder().setClusterName(clusterName).setConfig(clusterConfig).build(); - - // Create the Dataproc cluster. - OperationFuture createClusterAsyncRequest = - clusterControllerClient.createClusterAsync(projectId, region, cluster); - Cluster response = createClusterAsyncRequest.get(); - - // Print out a success message. - System.out.printf("Cluster created successfully: %s", response.getClusterName()); - - } catch (ExecutionException e) { - // If cluster creation does not complete successfully, print the error message. - System.err.println(String.format("createClusterWithAutoscaling: %s ", e.getMessage())); - } - } -} -// [END dataproc_create_autoscaling_cluster] diff --git a/samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java b/samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java deleted file mode 100644 index 4f3e7379..00000000 --- a/samples/snippets/src/main/java/InstantiateInlineWorkflowTemplate.java +++ /dev/null @@ -1,121 +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. - */ - -// [START dataproc_instantiate_inline_workflow_template] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.GceClusterConfig; -import com.google.cloud.dataproc.v1.HadoopJob; -import com.google.cloud.dataproc.v1.ManagedCluster; -import com.google.cloud.dataproc.v1.OrderedJob; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplatePlacement; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.concurrent.ExecutionException; - -public class InstantiateInlineWorkflowTemplate { - - public static void instantiateInlineWorkflowTemplate() throws IOException, InterruptedException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "your-project-id"; - String region = "your-project-region"; - instantiateInlineWorkflowTemplate(projectId, region); - } - - public static void instantiateInlineWorkflowTemplate(String projectId, String region) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the workflow template service client. - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create a workflow template service client with the configured settings. The client only - // needs to be created once and can be reused for multiple requests. Using a try-with-resources - // closes the client, but this can also be done manually with the .close() method. - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings)) { - - // Configure the jobs within the workflow. - HadoopJob teragenHadoopJob = - HadoopJob.newBuilder() - .setMainJarFileUri("file:///usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar") - .addArgs("teragen") - .addArgs("1000") - .addArgs("hdfs:///gen/") - .build(); - OrderedJob teragen = - OrderedJob.newBuilder().setHadoopJob(teragenHadoopJob).setStepId("teragen").build(); - - HadoopJob terasortHadoopJob = - HadoopJob.newBuilder() - .setMainJarFileUri("file:///usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar") - .addArgs("terasort") - .addArgs("hdfs:///gen/") - .addArgs("hdfs:///sort/") - .build(); - OrderedJob terasort = - OrderedJob.newBuilder() - .setHadoopJob(terasortHadoopJob) - .addPrerequisiteStepIds("teragen") - .setStepId("terasort") - .build(); - - // Configure the cluster placement for the workflow. - // Leave "ZoneUri" empty for "Auto Zone Placement". - // GceClusterConfig gceClusterConfig = - // GceClusterConfig.newBuilder().setZoneUri("").build(); - GceClusterConfig gceClusterConfig = - GceClusterConfig.newBuilder().setZoneUri("us-central1-a").build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder().setGceClusterConfig(gceClusterConfig).build(); - ManagedCluster managedCluster = - ManagedCluster.newBuilder() - .setClusterName("my-managed-cluster") - .setConfig(clusterConfig) - .build(); - WorkflowTemplatePlacement workflowTemplatePlacement = - WorkflowTemplatePlacement.newBuilder().setManagedCluster(managedCluster).build(); - - // Create the inline workflow template. - WorkflowTemplate workflowTemplate = - WorkflowTemplate.newBuilder() - .addJobs(teragen) - .addJobs(terasort) - .setPlacement(workflowTemplatePlacement) - .build(); - - // Submit the instantiated inline workflow template request. - String parent = RegionName.format(projectId, region); - OperationFuture instantiateInlineWorkflowTemplateAsync = - workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync( - parent, workflowTemplate); - instantiateInlineWorkflowTemplateAsync.get(); - - // Print out a success message. - System.out.printf("Workflow ran successfully."); - - } catch (ExecutionException e) { - System.err.println(String.format("Error running workflow: %s ", e.getMessage())); - } - } -} -// [END dataproc_instantiate_inline_workflow_template] diff --git a/samples/snippets/src/main/java/Quickstart.java b/samples/snippets/src/main/java/Quickstart.java deleted file mode 100644 index f7911313..00000000 --- a/samples/snippets/src/main/java/Quickstart.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -// [START dataproc_quickstart] -/* This quickstart sample walks a user through creating a Cloud Dataproc - * cluster, submitting a PySpark job from Google Cloud Storage to the - * cluster, reading the output of the job and deleting the cluster, all - * using the Java client library. - * - * Usage: - * mvn clean package -DskipTests - * - * mvn exec:java -Dexec.args=" " - * - * You can also set these arguments in the main function instead of providing them via the CLI. - */ - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.InstanceGroupConfig; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.JobPlacement; -import com.google.cloud.dataproc.v1.PySparkJob; -import com.google.cloud.storage.Blob; -import com.google.cloud.storage.Storage; -import com.google.cloud.storage.StorageOptions; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.concurrent.ExecutionException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class Quickstart { - - public static void quickstart( - String projectId, String region, String clusterName, String jobFilePath) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the cluster controller client. - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Configure the settings for the job controller client. - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create both a cluster controller client and job controller client with the - // configured settings. The client only needs to be created once and can be reused for - // multiple requests. Using a try-with-resources closes the client, but this can also be done - // manually with the .close() method. - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - JobControllerClient jobControllerClient = - JobControllerClient.create(jobControllerSettings)) { - // Configure the settings for our cluster. - InstanceGroupConfig masterConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(1) - .build(); - InstanceGroupConfig workerConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(2) - .build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder() - .setMasterConfig(masterConfig) - .setWorkerConfig(workerConfig) - .build(); - // Create the cluster object with the desired cluster config. - Cluster cluster = - Cluster.newBuilder().setClusterName(clusterName).setConfig(clusterConfig).build(); - - // Create the Cloud Dataproc cluster. - OperationFuture createClusterAsyncRequest = - clusterControllerClient.createClusterAsync(projectId, region, cluster); - Cluster clusterResponse = createClusterAsyncRequest.get(); - System.out.println( - String.format("Cluster created successfully: %s", clusterResponse.getClusterName())); - - // Configure the settings for our job. - JobPlacement jobPlacement = JobPlacement.newBuilder().setClusterName(clusterName).build(); - PySparkJob pySparkJob = PySparkJob.newBuilder().setMainPythonFileUri(jobFilePath).build(); - Job job = Job.newBuilder().setPlacement(jobPlacement).setPysparkJob(pySparkJob).build(); - - // Submit an asynchronous request to execute the job. - OperationFuture submitJobAsOperationAsyncRequest = - jobControllerClient.submitJobAsOperationAsync(projectId, region, job); - Job jobResponse = submitJobAsOperationAsyncRequest.get(); - - // Print output from Google Cloud Storage. - Matcher matches = - Pattern.compile("gs://(.*?)/(.*)").matcher(jobResponse.getDriverOutputResourceUri()); - matches.matches(); - - Storage storage = StorageOptions.getDefaultInstance().getService(); - Blob blob = storage.get(matches.group(1), String.format("%s.000000000", matches.group(2))); - - System.out.println( - String.format("Job finished successfully: %s", new String(blob.getContent()))); - - // Delete the cluster. - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(projectId, region, clusterName); - deleteClusterAsyncRequest.get(); - System.out.println(String.format("Cluster \"%s\" successfully deleted.", clusterName)); - - } catch (ExecutionException e) { - System.err.println(String.format("quickstart: %s ", e.getMessage())); - } - } - - public static void main(String... args) throws IOException, InterruptedException { - if (args.length != 4) { - System.err.println( - "Insufficient number of parameters provided. Please make sure a " - + "PROJECT_ID, REGION, CLUSTER_NAME and JOB_FILE_PATH are provided, in this order."); - return; - } - - String projectId = args[0]; // project-id of project to create the cluster in - String region = args[1]; // region to create the cluster - String clusterName = args[2]; // name of the cluster - String jobFilePath = args[3]; // location in GCS of the PySpark job - - quickstart(projectId, region, clusterName, jobFilePath); - } -} -// [END dataproc_quickstart] diff --git a/samples/snippets/src/main/java/SubmitHadoopFsJob.java b/samples/snippets/src/main/java/SubmitHadoopFsJob.java deleted file mode 100644 index 0c26416c..00000000 --- a/samples/snippets/src/main/java/SubmitHadoopFsJob.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 - * - * 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. - */ - -// [START dataproc_submit_hadoop_fs_job] - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.HadoopJob; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.JobPlacement; -import com.google.cloud.storage.Blob; -import com.google.cloud.storage.Storage; -import com.google.cloud.storage.StorageOptions; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.concurrent.ExecutionException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class SubmitHadoopFsJob { - - public static ArrayList stringToList(String s) { - return new ArrayList<>(Arrays.asList(s.split(" "))); - } - - public static void submitHadoopFsJob() throws IOException, InterruptedException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "your-project-id"; - String region = "your-project-region"; - String clusterName = "your-cluster-name"; - String hadoopFsQuery = "your-hadoop-fs-query"; - submitHadoopFsJob(projectId, region, clusterName, hadoopFsQuery); - } - - public static void submitHadoopFsJob( - String projectId, String region, String clusterName, String hadoopFsQuery) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the job controller client. - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create a job controller client with the configured settings. Using a try-with-resources - // closes the client, - // but this can also be done manually with the .close() method. - try (JobControllerClient jobControllerClient = - JobControllerClient.create(jobControllerSettings)) { - - // Configure cluster placement for the job. - JobPlacement jobPlacement = JobPlacement.newBuilder().setClusterName(clusterName).build(); - - // Configure Hadoop job settings. The HadoopFS query is set here. - HadoopJob hadoopJob = - HadoopJob.newBuilder() - .setMainClass("org.apache.hadoop.fs.FsShell") - .addAllArgs(stringToList(hadoopFsQuery)) - .build(); - - Job job = Job.newBuilder().setPlacement(jobPlacement).setHadoopJob(hadoopJob).build(); - - // Submit an asynchronous request to execute the job. - OperationFuture submitJobAsOperationAsyncRequest = - jobControllerClient.submitJobAsOperationAsync(projectId, region, job); - - Job response = submitJobAsOperationAsyncRequest.get(); - - // Print output from Google Cloud Storage. - Matcher matches = - Pattern.compile("gs://(.*?)/(.*)").matcher(response.getDriverOutputResourceUri()); - matches.matches(); - - Storage storage = StorageOptions.getDefaultInstance().getService(); - Blob blob = storage.get(matches.group(1), String.format("%s.000000000", matches.group(2))); - - System.out.println( - String.format("Job finished successfully: %s", new String(blob.getContent()))); - - } catch (ExecutionException e) { - // If the job does not complete successfully, print the error message. - System.err.println(String.format("submitHadoopFSJob: %s ", e.getMessage())); - } - } -} -// [END dataproc_submit_hadoop_fs_job] diff --git a/samples/snippets/src/main/java/SubmitJob.java b/samples/snippets/src/main/java/SubmitJob.java deleted file mode 100644 index 93193a7a..00000000 --- a/samples/snippets/src/main/java/SubmitJob.java +++ /dev/null @@ -1,94 +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. - */ - -// [START dataproc_submit_job] - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.JobPlacement; -import com.google.cloud.dataproc.v1.SparkJob; -import com.google.cloud.storage.Blob; -import com.google.cloud.storage.Storage; -import com.google.cloud.storage.StorageOptions; -import java.io.IOException; -import java.util.concurrent.ExecutionException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class SubmitJob { - - public static void submitJob() throws IOException, InterruptedException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "your-project-id"; - String region = "your-project-region"; - String clusterName = "your-cluster-name"; - submitJob(projectId, region, clusterName); - } - - public static void submitJob(String projectId, String region, String clusterName) - throws IOException, InterruptedException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", region); - - // Configure the settings for the job controller client. - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - // Create a job controller client with the configured settings. Using a try-with-resources - // closes the client, - // but this can also be done manually with the .close() method. - try (JobControllerClient jobControllerClient = - JobControllerClient.create(jobControllerSettings)) { - - // Configure cluster placement for the job. - JobPlacement jobPlacement = JobPlacement.newBuilder().setClusterName(clusterName).build(); - - // Configure Spark job settings. - SparkJob sparkJob = - SparkJob.newBuilder() - .setMainClass("org.apache.spark.examples.SparkPi") - .addJarFileUris("file:///usr/lib/spark/examples/jars/spark-examples.jar") - .addArgs("1000") - .build(); - - Job job = Job.newBuilder().setPlacement(jobPlacement).setSparkJob(sparkJob).build(); - - // Submit an asynchronous request to execute the job. - OperationFuture submitJobAsOperationAsyncRequest = - jobControllerClient.submitJobAsOperationAsync(projectId, region, job); - - Job response = submitJobAsOperationAsyncRequest.get(); - - // Print output from Google Cloud Storage. - Matcher matches = - Pattern.compile("gs://(.*?)/(.*)").matcher(response.getDriverOutputResourceUri()); - matches.matches(); - - Storage storage = StorageOptions.getDefaultInstance().getService(); - Blob blob = storage.get(matches.group(1), String.format("%s.000000000", matches.group(2))); - - System.out.println( - String.format("Job finished successfully: %s", new String(blob.getContent()))); - - } catch (ExecutionException e) { - // If the job does not complete successfully, print the error message. - System.err.println(String.format("submitJob: %s ", e.getMessage())); - } - } -} -// [END dataproc_submit_job] diff --git a/samples/snippets/src/test/java/CreateClusterTest.java b/samples/snippets/src/test/java/CreateClusterTest.java deleted file mode 100644 index 9e8cb1af..00000000 --- a/samples/snippets/src/test/java/CreateClusterTest.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.protobuf.Empty; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.hamcrest.CoreMatchers; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class CreateClusterTest { - - private static final String CLUSTER_NAME = - String.format("java-cc-test-%s", UUID.randomUUID().toString()); - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - // private static final String PROJECT_ID = "gcloud-devel"; - private ByteArrayOutputStream bout; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - /* - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - }*/ - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - } - - @Test - public void createClusterTest() throws IOException, InterruptedException { - CreateCluster.createCluster(PROJECT_ID, REGION, CLUSTER_NAME); - String output = bout.toString(); - - assertThat(output, CoreMatchers.containsString(CLUSTER_NAME)); - } - - @After - public void tearDown() throws IOException, InterruptedException, ExecutionException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", REGION); - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(PROJECT_ID, REGION, CLUSTER_NAME); - deleteClusterAsyncRequest.get(); - } - } -} diff --git a/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java b/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java deleted file mode 100644 index 1b8f1505..00000000 --- a/samples/snippets/src/test/java/CreateClusterWithAutoscalingTest.java +++ /dev/null @@ -1,105 +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. - */ - -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.protobuf.Empty; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.hamcrest.CoreMatchers; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class CreateClusterWithAutoscalingTest { - - private static final String CLUSTER_NAME = - String.format("java-as-test-%s", UUID.randomUUID().toString()); - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String AUTOSCALING_POLICY_NAME = - String.format("java-as-test-%s", UUID.randomUUID().toString()); - - private ByteArrayOutputStream bout; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - } - - @After - public void tearDown() throws IOException, InterruptedException, ExecutionException { - String myEndpoint = String.format("%s-dataproc.googleapis.com:443", REGION); - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings)) { - - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(PROJECT_ID, REGION, CLUSTER_NAME); - deleteClusterAsyncRequest.get(); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - PROJECT_ID, REGION, AUTOSCALING_POLICY_NAME); - autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name); - } - } - - @Test - public void createClusterWithAutoscalingTest() throws IOException, InterruptedException { - CreateClusterWithAutoscaling.createClusterwithAutoscaling( - PROJECT_ID, REGION, CLUSTER_NAME, AUTOSCALING_POLICY_NAME); - String output = bout.toString(); - - assertThat(output, CoreMatchers.containsString(CLUSTER_NAME)); - } -} diff --git a/samples/snippets/src/test/java/InstantiateInlineWorkflowTemplateTest.java b/samples/snippets/src/test/java/InstantiateInlineWorkflowTemplateTest.java deleted file mode 100644 index 0216ff36..00000000 --- a/samples/snippets/src/test/java/InstantiateInlineWorkflowTemplateTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import org.hamcrest.CoreMatchers; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class InstantiateInlineWorkflowTemplateTest { - - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - - private ByteArrayOutputStream bout; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - } - - @Test - public void instanstiateInlineWorkflowTest() throws IOException, InterruptedException { - InstantiateInlineWorkflowTemplate.instantiateInlineWorkflowTemplate(PROJECT_ID, REGION); - String output = bout.toString(); - - assertThat(output, CoreMatchers.containsString("successfully")); - } -} diff --git a/samples/snippets/src/test/java/QuickstartTest.java b/samples/snippets/src/test/java/QuickstartTest.java deleted file mode 100644 index eff7ed05..00000000 --- a/samples/snippets/src/test/java/QuickstartTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.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. - */ - -import static java.nio.charset.StandardCharsets.UTF_8; -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.storage.Blob; -import com.google.cloud.storage.Bucket; -import com.google.cloud.storage.BucketInfo; -import com.google.cloud.storage.Storage; -import com.google.cloud.storage.StorageOptions; -import com.google.cloud.testing.junit4.StdOutCaptureRule; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.hamcrest.CoreMatchers; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class QuickstartTest { - - private static final String MY_UUID = UUID.randomUUID().toString(); - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String ENDPOINT = String.format("%s-dataproc.googleapis.com:443", REGION); - private static final String CLUSTER_NAME = String.format("java-qs-test-%s", MY_UUID); - private static final String BUCKET_NAME = String.format("java-dataproc-qs-test-%s", MY_UUID); - private static final String JOB_FILE_NAME = "sum.py"; - private static final String JOB_FILE_PATH = - String.format("gs://%s/%s", BUCKET_NAME, JOB_FILE_NAME); - private static final String SORT_CODE = - "import pyspark\n" - + "sc = pyspark.SparkContext()\n" - + "rdd = sc.parallelize((1,2,3,4,5))\n" - + "sum = rdd.reduce(lambda x, y: x + y)\n"; - - @Rule public StdOutCaptureRule stdOutCapture = new StdOutCaptureRule(); - private Bucket bucket; - private Blob blob; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() { - Storage storage = StorageOptions.getDefaultInstance().getService(); - bucket = storage.create(BucketInfo.of(BUCKET_NAME)); - blob = bucket.create(JOB_FILE_NAME, SORT_CODE.getBytes(UTF_8), "text/plain"); - } - - @Test - public void quickstartTest() throws IOException, InterruptedException { - Quickstart.main(PROJECT_ID, REGION, CLUSTER_NAME, JOB_FILE_PATH); - String output = stdOutCapture.getCapturedOutputAsUtf8String(); - - assertThat(output, CoreMatchers.containsString("Cluster created successfully")); - assertThat(output, CoreMatchers.containsString("Job finished successfully:")); - assertThat(output, CoreMatchers.containsString("successfully deleted")); - } - - @After - public void teardown() throws IOException, InterruptedException, ExecutionException { - blob.delete(); - bucket.delete(); - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(ENDPOINT).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - for (Cluster element : - clusterControllerClient.listClusters(PROJECT_ID, REGION).iterateAll()) { - if (element.getClusterName() == CLUSTER_NAME) { - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(PROJECT_ID, REGION, CLUSTER_NAME); - deleteClusterAsyncRequest.get(); - break; - } - } - } - } -} diff --git a/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java b/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java deleted file mode 100644 index 341a3aab..00000000 --- a/samples/snippets/src/test/java/SubmitHadoopFsJobTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.InstanceGroupConfig; -import com.google.protobuf.Empty; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.hamcrest.CoreMatchers; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class SubmitHadoopFsJobTest { - - private static final String CLUSTER_NAME = - String.format("java-fs-test--%s", UUID.randomUUID().toString()); - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String ENDPOINT = String.format("%s-dataproc.googleapis.com:443", REGION); - private static final String HADOOP_FS_QUERY = "-ls /"; - - private ByteArrayOutputStream bout; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException, ExecutionException, InterruptedException { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(ENDPOINT).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - // Configure the settings for our cluster. - InstanceGroupConfig masterConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(1) - .build(); - InstanceGroupConfig workerConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(2) - .build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder() - .setMasterConfig(masterConfig) - .setWorkerConfig(workerConfig) - .build(); - // Create the Dataproc cluster. - Cluster cluster = - Cluster.newBuilder().setClusterName(CLUSTER_NAME).setConfig(clusterConfig).build(); - OperationFuture createClusterAsyncRequest = - clusterControllerClient.createClusterAsync(PROJECT_ID, REGION, cluster); - createClusterAsyncRequest.get(); - } - } - - @Test - public void submitHadoopFsJobTest() throws IOException, InterruptedException { - SubmitHadoopFsJob.submitHadoopFsJob(PROJECT_ID, REGION, CLUSTER_NAME, HADOOP_FS_QUERY); - String output = bout.toString(); - - assertThat(output, CoreMatchers.containsString("/tmp")); - } - - @After - public void tearDown() throws IOException, InterruptedException, ExecutionException { - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(ENDPOINT).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(PROJECT_ID, REGION, CLUSTER_NAME); - deleteClusterAsyncRequest.get(); - } - } -} diff --git a/samples/snippets/src/test/java/SubmitJobTest.java b/samples/snippets/src/test/java/SubmitJobTest.java deleted file mode 100644 index 837a4afc..00000000 --- a/samples/snippets/src/test/java/SubmitJobTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import static junit.framework.TestCase.assertNotNull; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.InstanceGroupConfig; -import com.google.protobuf.Empty; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import org.hamcrest.CoreMatchers; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class SubmitJobTest { - - private static final String CLUSTER_NAME = - String.format("java-sj-test--%s", UUID.randomUUID().toString()); - private static final String REGION = "us-central1"; - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String ENDPOINT = String.format("%s-dataproc.googleapis.com:443", REGION); - - private ByteArrayOutputStream bout; - - private static void requireEnv(String varName) { - assertNotNull( - String.format("Environment variable '%s' is required to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnv("GOOGLE_APPLICATION_CREDENTIALS"); - requireEnv("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException, ExecutionException, InterruptedException { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(ENDPOINT).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - // Configure the settings for our cluster. - InstanceGroupConfig masterConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(1) - .build(); - InstanceGroupConfig workerConfig = - InstanceGroupConfig.newBuilder() - .setMachineTypeUri("n1-standard-2") - .setNumInstances(2) - .build(); - ClusterConfig clusterConfig = - ClusterConfig.newBuilder() - .setMasterConfig(masterConfig) - .setWorkerConfig(workerConfig) - .build(); - // Create the Dataproc cluster. - Cluster cluster = - Cluster.newBuilder().setClusterName(CLUSTER_NAME).setConfig(clusterConfig).build(); - OperationFuture createClusterAsyncRequest = - clusterControllerClient.createClusterAsync(PROJECT_ID, REGION, cluster); - createClusterAsyncRequest.get(); - } - } - - @Test - public void submitJobTest() throws IOException, InterruptedException { - SubmitJob.submitJob(PROJECT_ID, REGION, CLUSTER_NAME); - String output = bout.toString(); - - assertThat(output, CoreMatchers.containsString("Job finished successfully")); - } - - @After - public void tearDown() throws IOException, InterruptedException, ExecutionException { - - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(ENDPOINT).build(); - - try (ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings)) { - OperationFuture deleteClusterAsyncRequest = - clusterControllerClient.deleteClusterAsync(PROJECT_ID, REGION, CLUSTER_NAME); - deleteClusterAsyncRequest.get(); - } - } -} From 9d70a1bcd6cc95c4facef0bbfd916ee771b4bf94 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 31 May 2023 12:22:32 -0700 Subject: [PATCH 518/519] build: enable multiScm for releases (#999) --- .github/release-trigger.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml index d4ca9418..67c70eb2 100644 --- a/.github/release-trigger.yml +++ b/.github/release-trigger.yml @@ -1 +1,2 @@ enabled: true +multiScmName: java-dataproc From 6f6030e4b18c577e6c5f7e51bd88f10600f7d0e2 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Wed, 5 Jul 2023 14:36:52 -0400 Subject: [PATCH 519/519] chore: removing outdated files in favor of https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc (#1002) --- .github/CODEOWNERS | 15 - .github/ISSUE_TEMPLATE/bug_report.md | 56 - .github/ISSUE_TEMPLATE/feature_request.md | 26 - .github/ISSUE_TEMPLATE/support_request.md | 7 - .github/PULL_REQUEST_TEMPLATE.md | 10 - .github/auto-label.yaml | 15 - .github/blunderbuss.yml | 7 - .github/generated-files-bot.yml | 12 - .github/snippet-bot.yml | 0 .github/sync-repo-settings.yaml | 42 - .github/trusted-contribution.yml | 3 - .github/workflows/approve-readme.yaml | 69 - .github/workflows/auto-release.yaml | 103 - .github/workflows/ci.yaml | 89 - .github/workflows/samples.yaml | 30 - .gitignore | 46 - .kokoro/build.bat | 18 - .kokoro/build.sh | 134 - .kokoro/coerce_logs.sh | 37 - .kokoro/common.cfg | 13 - .kokoro/common.sh | 60 - .kokoro/continuous/common.cfg | 25 - .kokoro/continuous/java8.cfg | 12 - .kokoro/continuous/propose_release.sh | 29 - .kokoro/dependencies.sh | 59 - .kokoro/nightly/common.cfg | 25 - .kokoro/nightly/integration.cfg | 37 - .kokoro/nightly/java11-integration.cfg | 37 - .kokoro/nightly/java11.cfg | 7 - .kokoro/nightly/java7.cfg | 7 - .kokoro/nightly/java8-osx.cfg | 3 - .kokoro/nightly/java8-win.cfg | 3 - .kokoro/nightly/java8.cfg | 12 - .kokoro/nightly/samples.cfg | 38 - .kokoro/populate-secrets.sh | 43 - .kokoro/presubmit/clirr.cfg | 13 - .kokoro/presubmit/common.cfg | 34 - .kokoro/presubmit/dependencies.cfg | 12 - .kokoro/presubmit/graalvm-native-17.cfg | 33 - .kokoro/presubmit/graalvm-native.cfg | 33 - .kokoro/presubmit/integration.cfg | 33 - .kokoro/presubmit/java11.cfg | 7 - .kokoro/presubmit/java7.cfg | 7 - .kokoro/presubmit/java8-osx.cfg | 3 - .kokoro/presubmit/java8-win.cfg | 3 - .kokoro/presubmit/java8.cfg | 12 - .kokoro/presubmit/linkage-monitor.cfg | 12 - .kokoro/presubmit/lint.cfg | 13 - .kokoro/presubmit/samples.cfg | 33 - .kokoro/readme.sh | 45 - .kokoro/release/bump_snapshot.cfg | 53 - .kokoro/release/bump_snapshot.sh | 30 - .kokoro/release/common.cfg | 49 - .kokoro/release/common.sh | 50 - .kokoro/release/drop.cfg | 6 - .kokoro/release/drop.sh | 32 - .kokoro/release/promote.cfg | 6 - .kokoro/release/promote.sh | 34 - .kokoro/release/publish_javadoc.cfg | 23 - .kokoro/release/publish_javadoc.sh | 53 - .kokoro/release/publish_javadoc11.cfg | 30 - .kokoro/release/publish_javadoc11.sh | 63 - .kokoro/release/snapshot.cfg | 6 - .kokoro/release/snapshot.sh | 33 - .kokoro/release/stage.cfg | 19 - .kokoro/release/stage.sh | 47 - .kokoro/requirements.in | 33 - .kokoro/requirements.txt | 456 -- .kokoro/trampoline.sh | 26 - .repo-metadata.json | 18 - CHANGELOG.md | 679 -- codecov.yaml | 4 - google-cloud-dataproc-bom/pom.xml | 81 - google-cloud-dataproc/pom.xml | 131 - .../v1/AutoscalingPolicyServiceClient.java | 1134 --- .../v1/AutoscalingPolicyServiceSettings.java | 273 - .../dataproc/v1/BatchControllerClient.java | 866 --- .../dataproc/v1/BatchControllerSettings.java | 253 - .../dataproc/v1/ClusterControllerClient.java | 1429 ---- .../v1/ClusterControllerSettings.java | 355 - .../dataproc/v1/JobControllerClient.java | 1064 --- .../dataproc/v1/JobControllerSettings.java | 281 - .../v1/WorkflowTemplateServiceClient.java | 1934 ----- .../v1/WorkflowTemplateServiceSettings.java | 327 - .../cloud/dataproc/v1/gapic_metadata.json | 147 - .../cloud/dataproc/v1/package-info.java | 124 - .../v1/stub/AutoscalingPolicyServiceStub.java | 74 - .../AutoscalingPolicyServiceStubSettings.java | 550 -- .../dataproc/v1/stub/BatchControllerStub.java | 80 - .../v1/stub/BatchControllerStubSettings.java | 496 -- .../v1/stub/ClusterControllerStub.java | 126 - .../stub/ClusterControllerStubSettings.java | 864 --- ...toscalingPolicyServiceCallableFactory.java | 113 - .../GrpcAutoscalingPolicyServiceStub.java | 333 - .../GrpcBatchControllerCallableFactory.java | 113 - .../v1/stub/GrpcBatchControllerStub.java | 277 - .../GrpcClusterControllerCallableFactory.java | 113 - .../v1/stub/GrpcClusterControllerStub.java | 484 -- .../GrpcJobControllerCallableFactory.java | 113 - .../v1/stub/GrpcJobControllerStub.java | 370 - ...orkflowTemplateServiceCallableFactory.java | 113 - .../stub/GrpcWorkflowTemplateServiceStub.java | 432 -- ...toscalingPolicyServiceCallableFactory.java | 105 - .../HttpJsonAutoscalingPolicyServiceStub.java | 454 -- ...ttpJsonBatchControllerCallableFactory.java | 105 - .../v1/stub/HttpJsonBatchControllerStub.java | 390 - ...pJsonClusterControllerCallableFactory.java | 105 - .../stub/HttpJsonClusterControllerStub.java | 744 -- .../HttpJsonJobControllerCallableFactory.java | 105 - .../v1/stub/HttpJsonJobControllerStub.java | 568 -- ...orkflowTemplateServiceCallableFactory.java | 105 - .../HttpJsonWorkflowTemplateServiceStub.java | 626 -- .../dataproc/v1/stub/JobControllerStub.java | 95 - .../v1/stub/JobControllerStubSettings.java | 599 -- .../v1/stub/WorkflowTemplateServiceStub.java | 111 - .../WorkflowTemplateServiceStubSettings.java | 713 -- ...calingPolicyServiceClientHttpJsonTest.java | 653 -- .../AutoscalingPolicyServiceClientTest.java | 581 -- .../v1/BatchControllerClientHttpJsonTest.java | 502 -- .../v1/BatchControllerClientTest.java | 468 -- .../ClusterControllerClientHttpJsonTest.java | 616 -- .../v1/ClusterControllerClientTest.java | 607 -- .../v1/JobControllerClientHttpJsonTest.java | 539 -- .../dataproc/v1/JobControllerClientTest.java | 515 -- .../v1/MockAutoscalingPolicyService.java | 59 - .../v1/MockAutoscalingPolicyServiceImpl.java | 167 - .../dataproc/v1/MockBatchController.java | 59 - .../dataproc/v1/MockBatchControllerImpl.java | 143 - .../dataproc/v1/MockClusterController.java | 59 - .../v1/MockClusterControllerImpl.java | 227 - .../cloud/dataproc/v1/MockJobController.java | 59 - .../dataproc/v1/MockJobControllerImpl.java | 203 - .../v1/MockWorkflowTemplateService.java | 59 - .../v1/MockWorkflowTemplateServiceImpl.java | 211 - ...flowTemplateServiceClientHttpJsonTest.java | 1037 --- .../v1/WorkflowTemplateServiceClientTest.java | 941 --- .../cloud/dataproc/v1/it/ITSystemTest.java | 137 - grpc-google-cloud-dataproc-v1/pom.xml | 69 - .../v1/AutoscalingPolicyServiceGrpc.java | 889 --- .../dataproc/v1/BatchControllerGrpc.java | 694 -- .../dataproc/v1/ClusterControllerGrpc.java | 1205 --- .../cloud/dataproc/v1/JobControllerGrpc.java | 1023 --- .../v1/WorkflowTemplateServiceGrpc.java | 1264 ---- java.header | 15 - license-checks.xml | 10 - pom.xml | 187 - .../clirr-ignored-differences.xml | 68 - proto-google-cloud-dataproc-v1/pom.xml | 42 - .../cloud/dataproc/v1/AcceleratorConfig.java | 793 -- .../v1/AcceleratorConfigOrBuilder.java | 87 - .../cloud/dataproc/v1/AutoscalingConfig.java | 649 -- .../v1/AutoscalingConfigOrBuilder.java | 60 - .../dataproc/v1/AutoscalingPoliciesProto.java | 314 - .../cloud/dataproc/v1/AutoscalingPolicy.java | 2181 ------ .../dataproc/v1/AutoscalingPolicyName.java | 364 - .../v1/AutoscalingPolicyOrBuilder.java | 293 - .../dataproc/v1/AuxiliaryServicesConfig.java | 1029 --- .../v1/AuxiliaryServicesConfigOrBuilder.java | 108 - .../v1/BasicAutoscalingAlgorithm.java | 1148 --- .../BasicAutoscalingAlgorithmOrBuilder.java | 112 - .../v1/BasicYarnAutoscalingConfig.java | 1273 ---- .../BasicYarnAutoscalingConfigOrBuilder.java | 157 - .../com/google/cloud/dataproc/v1/Batch.java | 6640 ----------------- .../google/cloud/dataproc/v1/BatchName.java | 223 - .../dataproc/v1/BatchOperationMetadata.java | 2395 ------ .../v1/BatchOperationMetadataOrBuilder.java | 307 - .../cloud/dataproc/v1/BatchOrBuilder.java | 699 -- .../cloud/dataproc/v1/BatchesProto.java | 357 - .../cloud/dataproc/v1/CancelJobRequest.java | 977 --- .../v1/CancelJobRequestOrBuilder.java | 102 - .../com/google/cloud/dataproc/v1/Cluster.java | 3201 -------- .../cloud/dataproc/v1/ClusterConfig.java | 5338 ------------- .../dataproc/v1/ClusterConfigOrBuilder.java | 745 -- .../cloud/dataproc/v1/ClusterMetrics.java | 1053 --- .../dataproc/v1/ClusterMetricsOrBuilder.java | 133 - .../cloud/dataproc/v1/ClusterOperation.java | 883 --- .../dataproc/v1/ClusterOperationMetadata.java | 2593 ------- .../v1/ClusterOperationMetadataOrBuilder.java | 343 - .../v1/ClusterOperationOrBuilder.java | 88 - .../dataproc/v1/ClusterOperationStatus.java | 1432 ---- .../v1/ClusterOperationStatusOrBuilder.java | 145 - .../cloud/dataproc/v1/ClusterOrBuilder.java | 449 -- .../cloud/dataproc/v1/ClusterSelector.java | 985 --- .../dataproc/v1/ClusterSelectorOrBuilder.java | 125 - .../cloud/dataproc/v1/ClusterStatus.java | 1756 ----- .../dataproc/v1/ClusterStatusOrBuilder.java | 158 - .../cloud/dataproc/v1/ClustersProto.java | 971 --- .../google/cloud/dataproc/v1/Component.java | 404 - .../v1/ConfidentialInstanceConfig.java | 530 -- .../ConfidentialInstanceConfigOrBuilder.java | 38 - .../v1/CreateAutoscalingPolicyRequest.java | 972 --- ...eateAutoscalingPolicyRequestOrBuilder.java | 109 - .../cloud/dataproc/v1/CreateBatchRequest.java | 1333 ---- .../v1/CreateBatchRequestOrBuilder.java | 164 - .../dataproc/v1/CreateClusterRequest.java | 1487 ---- .../v1/CreateClusterRequestOrBuilder.java | 185 - .../v1/CreateWorkflowTemplateRequest.java | 971 --- ...reateWorkflowTemplateRequestOrBuilder.java | 109 - .../dataproc/v1/DataprocMetricConfig.java | 2628 ------- .../v1/DataprocMetricConfigOrBuilder.java | 87 - .../v1/DeleteAutoscalingPolicyRequest.java | 682 -- ...leteAutoscalingPolicyRequestOrBuilder.java | 68 - .../cloud/dataproc/v1/DeleteBatchRequest.java | 629 -- .../v1/DeleteBatchRequestOrBuilder.java | 54 - .../dataproc/v1/DeleteClusterRequest.java | 1404 ---- .../v1/DeleteClusterRequestOrBuilder.java | 172 - .../cloud/dataproc/v1/DeleteJobRequest.java | 977 --- .../v1/DeleteJobRequestOrBuilder.java | 102 - .../v1/DeleteWorkflowTemplateRequest.java | 780 -- ...eleteWorkflowTemplateRequestOrBuilder.java | 83 - .../dataproc/v1/DiagnoseClusterRequest.java | 978 --- .../v1/DiagnoseClusterRequestOrBuilder.java | 102 - .../dataproc/v1/DiagnoseClusterResults.java | 629 -- .../v1/DiagnoseClusterResultsOrBuilder.java | 54 - .../google/cloud/dataproc/v1/DiskConfig.java | 1049 --- .../dataproc/v1/DiskConfigOrBuilder.java | 122 - .../cloud/dataproc/v1/EncryptionConfig.java | 621 -- .../v1/EncryptionConfigOrBuilder.java | 52 - .../cloud/dataproc/v1/EndpointConfig.java | 877 --- .../dataproc/v1/EndpointConfigOrBuilder.java | 108 - .../cloud/dataproc/v1/EnvironmentConfig.java | 1020 --- .../v1/EnvironmentConfigOrBuilder.java | 107 - .../cloud/dataproc/v1/ExecutionConfig.java | 1612 ---- .../dataproc/v1/ExecutionConfigOrBuilder.java | 202 - .../cloud/dataproc/v1/FailureAction.java | 178 - .../cloud/dataproc/v1/GceClusterConfig.java | 4112 ---------- .../v1/GceClusterConfigOrBuilder.java | 625 -- .../v1/GetAutoscalingPolicyRequest.java | 679 -- .../GetAutoscalingPolicyRequestOrBuilder.java | 68 - .../cloud/dataproc/v1/GetBatchRequest.java | 628 -- .../dataproc/v1/GetBatchRequestOrBuilder.java | 54 - .../cloud/dataproc/v1/GetClusterRequest.java | 977 --- .../v1/GetClusterRequestOrBuilder.java | 102 - .../cloud/dataproc/v1/GetJobRequest.java | 977 --- .../dataproc/v1/GetJobRequestOrBuilder.java | 102 - .../v1/GetWorkflowTemplateRequest.java | 778 -- .../GetWorkflowTemplateRequestOrBuilder.java | 83 - .../cloud/dataproc/v1/GkeClusterConfig.java | 1267 ---- .../v1/GkeClusterConfigOrBuilder.java | 136 - .../cloud/dataproc/v1/GkeNodePoolConfig.java | 4644 ------------ .../v1/GkeNodePoolConfigOrBuilder.java | 182 - .../cloud/dataproc/v1/GkeNodePoolTarget.java | 1629 ---- .../v1/GkeNodePoolTargetOrBuilder.java | 189 - .../google/cloud/dataproc/v1/HadoopJob.java | 2881 ------- .../cloud/dataproc/v1/HadoopJobOrBuilder.java | 472 -- .../com/google/cloud/dataproc/v1/HiveJob.java | 2139 ------ .../cloud/dataproc/v1/HiveJobOrBuilder.java | 321 - .../cloud/dataproc/v1/IdentityConfig.java | 805 -- .../dataproc/v1/IdentityConfigOrBuilder.java | 94 - .../InstanceGroupAutoscalingPolicyConfig.java | 806 -- ...GroupAutoscalingPolicyConfigOrBuilder.java | 85 - .../dataproc/v1/InstanceGroupConfig.java | 3161 -------- .../v1/InstanceGroupConfigOrBuilder.java | 423 -- ...tantiateInlineWorkflowTemplateRequest.java | 1203 --- ...nlineWorkflowTemplateRequestOrBuilder.java | 146 - .../InstantiateWorkflowTemplateRequest.java | 1361 ---- ...tiateWorkflowTemplateRequestOrBuilder.java | 191 - .../com/google/cloud/dataproc/v1/Job.java | 6506 ---------------- .../google/cloud/dataproc/v1/JobMetadata.java | 1351 ---- .../dataproc/v1/JobMetadataOrBuilder.java | 154 - .../cloud/dataproc/v1/JobOrBuilder.java | 857 --- .../cloud/dataproc/v1/JobPlacement.java | 1138 --- .../dataproc/v1/JobPlacementOrBuilder.java | 141 - .../cloud/dataproc/v1/JobReference.java | 820 -- .../dataproc/v1/JobReferenceOrBuilder.java | 83 - .../cloud/dataproc/v1/JobScheduling.java | 685 -- .../dataproc/v1/JobSchedulingOrBuilder.java | 68 - .../google/cloud/dataproc/v1/JobStatus.java | 1770 ----- .../cloud/dataproc/v1/JobStatusOrBuilder.java | 157 - .../google/cloud/dataproc/v1/JobsProto.java | 825 -- .../cloud/dataproc/v1/KerberosConfig.java | 3111 -------- .../dataproc/v1/KerberosConfigOrBuilder.java | 423 -- .../dataproc/v1/KubernetesClusterConfig.java | 1335 ---- .../v1/KubernetesClusterConfigOrBuilder.java | 141 - .../dataproc/v1/KubernetesSoftwareConfig.java | 1167 --- .../v1/KubernetesSoftwareConfigOrBuilder.java | 188 - .../cloud/dataproc/v1/LifecycleConfig.java | 1854 ----- .../dataproc/v1/LifecycleConfigOrBuilder.java | 218 - .../v1/ListAutoscalingPoliciesRequest.java | 960 --- ...stAutoscalingPoliciesRequestOrBuilder.java | 109 - .../v1/ListAutoscalingPoliciesResponse.java | 1164 --- ...tAutoscalingPoliciesResponseOrBuilder.java | 114 - .../cloud/dataproc/v1/ListBatchesRequest.java | 913 --- .../v1/ListBatchesRequestOrBuilder.java | 96 - .../dataproc/v1/ListBatchesResponse.java | 1110 --- .../v1/ListBatchesResponseOrBuilder.java | 103 - .../dataproc/v1/ListClustersRequest.java | 1345 ---- .../v1/ListClustersRequestOrBuilder.java | 168 - .../dataproc/v1/ListClustersResponse.java | 1163 --- .../v1/ListClustersResponseOrBuilder.java | 116 - .../cloud/dataproc/v1/ListJobsRequest.java | 1846 ----- .../dataproc/v1/ListJobsRequestOrBuilder.java | 220 - .../cloud/dataproc/v1/ListJobsResponse.java | 1159 --- .../v1/ListJobsResponseOrBuilder.java | 115 - .../v1/ListWorkflowTemplatesRequest.java | 955 --- ...ListWorkflowTemplatesRequestOrBuilder.java | 108 - .../v1/ListWorkflowTemplatesResponse.java | 1167 --- ...istWorkflowTemplatesResponseOrBuilder.java | 116 - .../cloud/dataproc/v1/LocationName.java | 192 - .../cloud/dataproc/v1/LoggingConfig.java | 1319 ---- .../dataproc/v1/LoggingConfigOrBuilder.java | 150 - .../cloud/dataproc/v1/ManagedCluster.java | 1321 ---- .../dataproc/v1/ManagedClusterOrBuilder.java | 188 - .../cloud/dataproc/v1/ManagedGroupConfig.java | 808 -- .../v1/ManagedGroupConfigOrBuilder.java | 79 - .../cloud/dataproc/v1/MetastoreConfig.java | 643 -- .../dataproc/v1/MetastoreConfigOrBuilder.java | 58 - .../cloud/dataproc/v1/NodeGroupAffinity.java | 663 -- .../v1/NodeGroupAffinityOrBuilder.java | 64 - .../dataproc/v1/NodeInitializationAction.java | 970 --- .../v1/NodeInitializationActionOrBuilder.java | 106 - .../cloud/dataproc/v1/OperationsProto.java | 172 - .../google/cloud/dataproc/v1/OrderedJob.java | 4285 ----------- .../dataproc/v1/OrderedJobOrBuilder.java | 579 -- .../dataproc/v1/ParameterValidation.java | 1109 --- .../v1/ParameterValidationOrBuilder.java | 98 - .../cloud/dataproc/v1/PeripheralsConfig.java | 929 --- .../v1/PeripheralsConfigOrBuilder.java | 96 - .../com/google/cloud/dataproc/v1/PigJob.java | 2418 ------ .../cloud/dataproc/v1/PigJobOrBuilder.java | 358 - .../google/cloud/dataproc/v1/PrestoJob.java | 2257 ------ .../cloud/dataproc/v1/PrestoJobOrBuilder.java | 307 - .../cloud/dataproc/v1/PySparkBatch.java | 2071 ----- .../dataproc/v1/PySparkBatchOrBuilder.java | 335 - .../google/cloud/dataproc/v1/PySparkJob.java | 2729 ------- .../dataproc/v1/PySparkJobOrBuilder.java | 455 -- .../google/cloud/dataproc/v1/QueryList.java | 864 --- .../cloud/dataproc/v1/QueryListOrBuilder.java | 124 - .../cloud/dataproc/v1/RegexValidation.java | 735 -- .../dataproc/v1/RegexValidationOrBuilder.java | 84 - .../google/cloud/dataproc/v1/RegionName.java | 191 - .../dataproc/v1/ReservationAffinity.java | 1223 --- .../v1/ReservationAffinityOrBuilder.java | 130 - .../cloud/dataproc/v1/RuntimeConfig.java | 1147 --- .../dataproc/v1/RuntimeConfigOrBuilder.java | 146 - .../google/cloud/dataproc/v1/RuntimeInfo.java | 1138 --- .../dataproc/v1/RuntimeInfoOrBuilder.java | 144 - .../cloud/dataproc/v1/SecurityConfig.java | 1031 --- .../dataproc/v1/SecurityConfigOrBuilder.java | 110 - .../google/cloud/dataproc/v1/SharedProto.java | 358 - .../dataproc/v1/ShieldedInstanceConfig.java | 711 -- .../v1/ShieldedInstanceConfigOrBuilder.java | 64 - .../cloud/dataproc/v1/SoftwareConfig.java | 1562 ---- .../dataproc/v1/SoftwareConfigOrBuilder.java | 269 - .../google/cloud/dataproc/v1/SparkBatch.java | 2154 ------ .../dataproc/v1/SparkBatchOrBuilder.java | 332 - .../dataproc/v1/SparkHistoryServerConfig.java | 637 -- .../v1/SparkHistoryServerConfigOrBuilder.java | 56 - .../google/cloud/dataproc/v1/SparkJob.java | 2812 ------- .../cloud/dataproc/v1/SparkJobOrBuilder.java | 452 -- .../google/cloud/dataproc/v1/SparkRBatch.java | 1502 ---- .../dataproc/v1/SparkRBatchOrBuilder.java | 225 - .../google/cloud/dataproc/v1/SparkRJob.java | 2161 ------ .../cloud/dataproc/v1/SparkRJobOrBuilder.java | 345 - .../cloud/dataproc/v1/SparkSqlBatch.java | 1243 --- .../dataproc/v1/SparkSqlBatchOrBuilder.java | 170 - .../google/cloud/dataproc/v1/SparkSqlJob.java | 2297 ------ .../dataproc/v1/SparkSqlJobOrBuilder.java | 334 - .../dataproc/v1/StartClusterRequest.java | 1404 ---- .../v1/StartClusterRequestOrBuilder.java | 172 - .../cloud/dataproc/v1/StopClusterRequest.java | 1404 ---- .../v1/StopClusterRequestOrBuilder.java | 172 - .../cloud/dataproc/v1/SubmitJobRequest.java | 1298 ---- .../v1/SubmitJobRequestOrBuilder.java | 155 - .../cloud/dataproc/v1/TemplateParameter.java | 1877 ----- .../v1/TemplateParameterOrBuilder.java | 321 - .../v1/UpdateAutoscalingPolicyRequest.java | 730 -- ...dateAutoscalingPolicyRequestOrBuilder.java | 66 - .../dataproc/v1/UpdateClusterRequest.java | 2724 ------- .../v1/UpdateClusterRequestOrBuilder.java | 424 -- .../cloud/dataproc/v1/UpdateJobRequest.java | 1570 ---- .../v1/UpdateJobRequestOrBuilder.java | 190 - .../v1/UpdateWorkflowTemplateRequest.java | 741 -- ...pdateWorkflowTemplateRequestOrBuilder.java | 69 - .../cloud/dataproc/v1/ValueValidation.java | 709 -- .../dataproc/v1/ValueValidationOrBuilder.java | 76 - .../dataproc/v1/VirtualClusterConfig.java | 1395 ---- .../v1/VirtualClusterConfigOrBuilder.java | 157 - .../cloud/dataproc/v1/WorkflowGraph.java | 970 --- .../dataproc/v1/WorkflowGraphOrBuilder.java | 87 - .../cloud/dataproc/v1/WorkflowMetadata.java | 4101 ---------- .../v1/WorkflowMetadataOrBuilder.java | 544 -- .../cloud/dataproc/v1/WorkflowNode.java | 1650 ---- .../dataproc/v1/WorkflowNodeOrBuilder.java | 184 - .../cloud/dataproc/v1/WorkflowTemplate.java | 3683 --------- .../dataproc/v1/WorkflowTemplateName.java | 361 - .../v1/WorkflowTemplateOrBuilder.java | 511 -- .../v1/WorkflowTemplatePlacement.java | 1136 --- .../WorkflowTemplatePlacementOrBuilder.java | 103 - .../dataproc/v1/WorkflowTemplatesProto.java | 640 -- .../cloud/dataproc/v1/YarnApplication.java | 1370 ---- .../dataproc/v1/YarnApplicationOrBuilder.java | 123 - .../dataproc/v1/autoscaling_policies.proto | 366 - .../google/cloud/dataproc/v1/batches.proto | 372 - .../google/cloud/dataproc/v1/clusters.proto | 1359 ---- .../proto/google/cloud/dataproc/v1/jobs.proto | 924 --- .../google/cloud/dataproc/v1/operations.proto | 118 - .../google/cloud/dataproc/v1/shared.proto | 341 - .../dataproc/v1/workflow_templates.proto | 807 -- renovate.json | 76 - samples/install-without-bom/pom.xml | 89 - samples/pom.xml | 56 - samples/snapshot/pom.xml | 87 - .../SyncCreateSetCredentialsProvider.java | 45 - .../SyncCreateSetCredentialsProvider1.java | 44 - .../create/SyncCreateSetEndpoint.java | 42 - .../AsyncCreateAutoscalingPolicy.java | 52 - .../SyncCreateAutoscalingPolicy.java | 48 - ...ngPolicyLocationnameAutoscalingpolicy.java | 45 - ...lingPolicyRegionnameAutoscalingpolicy.java | 45 - ...oscalingPolicyStringAutoscalingpolicy.java | 45 - .../AsyncDeleteAutoscalingPolicy.java | 54 - .../SyncDeleteAutoscalingPolicy.java | 50 - ...utoscalingPolicyAutoscalingpolicyname.java | 45 - .../SyncDeleteAutoscalingPolicyString.java | 46 - .../AsyncGetAutoscalingPolicy.java | 54 - .../SyncGetAutoscalingPolicy.java | 50 - ...utoscalingPolicyAutoscalingpolicyname.java | 45 - .../SyncGetAutoscalingPolicyString.java | 46 - .../AsyncListAutoscalingPolicies.java | 55 - .../AsyncListAutoscalingPoliciesPaged.java | 63 - .../SyncListAutoscalingPolicies.java | 52 - ...ncListAutoscalingPoliciesLocationname.java | 46 - ...SyncListAutoscalingPoliciesRegionname.java | 46 - .../SyncListAutoscalingPoliciesString.java | 46 - .../AsyncUpdateAutoscalingPolicy.java | 50 - .../SyncUpdateAutoscalingPolicy.java | 46 - ...ateAutoscalingPolicyAutoscalingpolicy.java | 42 - .../SyncCreateAutoscalingPolicy.java | 50 - .../SyncCreateSetCredentialsProvider.java | 45 - .../SyncCreateSetCredentialsProvider1.java | 44 - .../create/SyncCreateSetEndpoint.java | 42 - .../createbatch/AsyncCreateBatch.java | 53 - .../createbatch/AsyncCreateBatchLRO.java | 54 - .../createbatch/SyncCreateBatch.java | 49 - ...yncCreateBatchLocationnameBatchString.java | 44 - .../SyncCreateBatchStringBatchString.java | 44 - .../deletebatch/AsyncDeleteBatch.java | 49 - .../deletebatch/SyncDeleteBatch.java | 46 - .../deletebatch/SyncDeleteBatchBatchname.java | 42 - .../deletebatch/SyncDeleteBatchString.java | 42 - .../getbatch/AsyncGetBatch.java | 49 - .../getbatch/SyncGetBatch.java | 46 - .../getbatch/SyncGetBatchBatchname.java | 42 - .../getbatch/SyncGetBatchString.java | 42 - .../listbatches/AsyncListBatches.java | 54 - .../listbatches/AsyncListBatchesPaged.java | 61 - .../listbatches/SyncListBatches.java | 50 - .../SyncListBatchesLocationname.java | 44 - .../listbatches/SyncListBatchesString.java | 44 - .../getbatch/SyncGetBatch.java | 46 - .../SyncCreateSetCredentialsProvider.java | 45 - .../SyncCreateSetCredentialsProvider1.java | 44 - .../create/SyncCreateSetEndpoint.java | 42 - .../createcluster/AsyncCreateCluster.java | 55 - .../createcluster/AsyncCreateClusterLRO.java | 55 - .../createcluster/SyncCreateCluster.java | 50 - .../SyncCreateClusterStringStringCluster.java | 44 - .../deletecluster/AsyncDeleteCluster.java | 53 - .../deletecluster/AsyncDeleteClusterLRO.java | 54 - .../deletecluster/SyncDeleteCluster.java | 49 - .../SyncDeleteClusterStringStringString.java | 43 - .../diagnosecluster/AsyncDiagnoseCluster.java | 51 - .../AsyncDiagnoseClusterLRO.java | 52 - .../diagnosecluster/SyncDiagnoseCluster.java | 47 - ...SyncDiagnoseClusterStringStringString.java | 44 - .../getcluster/AsyncGetCluster.java | 50 - .../getcluster/SyncGetCluster.java | 47 - .../SyncGetClusterStringStringString.java | 43 - .../listclusters/AsyncListClusters.java | 55 - .../listclusters/AsyncListClustersPaged.java | 63 - .../listclusters/SyncListClusters.java | 51 - .../SyncListClustersStringString.java | 44 - .../SyncListClustersStringStringString.java | 46 - .../startcluster/AsyncStartCluster.java | 53 - .../startcluster/AsyncStartClusterLRO.java | 54 - .../startcluster/SyncStartCluster.java | 49 - .../stopcluster/AsyncStopCluster.java | 53 - .../stopcluster/AsyncStopClusterLRO.java | 54 - .../stopcluster/SyncStopCluster.java | 49 - .../updatecluster/AsyncUpdateCluster.java | 58 - .../updatecluster/AsyncUpdateClusterLRO.java | 58 - .../updatecluster/SyncUpdateCluster.java | 53 - ...terStringStringStringClusterFieldmask.java | 49 - .../getcluster/SyncGetCluster.java | 46 - .../canceljob/AsyncCancelJob.java | 50 - .../canceljob/SyncCancelJob.java | 47 - .../SyncCancelJobStringStringString.java | 43 - .../SyncCreateSetCredentialsProvider.java | 44 - .../SyncCreateSetCredentialsProvider1.java | 43 - .../create/SyncCreateSetEndpoint.java | 41 - .../deletejob/AsyncDeleteJob.java | 50 - .../deletejob/SyncDeleteJob.java | 47 - .../SyncDeleteJobStringStringString.java | 43 - .../getjob/AsyncGetJob.java | 50 - .../getjob/SyncGetJob.java | 47 - .../getjob/SyncGetJobStringStringString.java | 43 - .../listjobs/AsyncListJobs.java | 55 - .../listjobs/AsyncListJobsPaged.java | 63 - .../listjobs/SyncListJobs.java | 52 - .../listjobs/SyncListJobsStringString.java | 44 - .../SyncListJobsStringStringString.java | 45 - .../submitjob/AsyncSubmitJob.java | 51 - .../submitjob/SyncSubmitJob.java | 48 - .../SyncSubmitJobStringStringJob.java | 43 - .../AsyncSubmitJobAsOperation.java | 53 - .../AsyncSubmitJobAsOperationLRO.java | 53 - .../SyncSubmitJobAsOperation.java | 48 - ...ncSubmitJobAsOperationStringStringJob.java | 43 - .../updatejob/AsyncUpdateJob.java | 53 - .../updatejob/SyncUpdateJob.java | 50 - .../submitjob/SyncSubmitJob.java | 45 - .../SyncCreateAutoscalingPolicy.java | 50 - .../getbatch/SyncGetBatch.java | 46 - .../getcluster/SyncGetCluster.java | 47 - .../submitjob/SyncSubmitJob.java | 46 - .../SyncCreateWorkflowTemplate.java | 50 - .../SyncCreateSetCredentialsProvider.java | 45 - .../SyncCreateSetCredentialsProvider1.java | 44 - .../create/SyncCreateSetEndpoint.java | 42 - .../AsyncCreateWorkflowTemplate.java | 52 - .../SyncCreateWorkflowTemplate.java | 48 - ...wTemplateLocationnameWorkflowtemplate.java | 45 - ...lowTemplateRegionnameWorkflowtemplate.java | 45 - ...orkflowTemplateStringWorkflowtemplate.java | 45 - .../AsyncDeleteWorkflowTemplate.java | 55 - .../SyncDeleteWorkflowTemplate.java | 51 - .../SyncDeleteWorkflowTemplateString.java | 46 - ...eWorkflowTemplateWorkflowtemplatename.java | 45 - .../AsyncGetWorkflowTemplate.java | 55 - .../SyncGetWorkflowTemplate.java | 51 - .../SyncGetWorkflowTemplateString.java | 46 - ...tWorkflowTemplateWorkflowtemplatename.java | 45 - ...syncInstantiateInlineWorkflowTemplate.java | 56 - ...cInstantiateInlineWorkflowTemplateLRO.java | 57 - ...SyncInstantiateInlineWorkflowTemplate.java | 50 - ...wTemplateLocationnameWorkflowtemplate.java | 46 - ...lowTemplateRegionnameWorkflowtemplate.java | 46 - ...orkflowTemplateStringWorkflowtemplate.java | 46 - .../AsyncInstantiateWorkflowTemplate.java | 58 - .../AsyncInstantiateWorkflowTemplateLRO.java | 61 - .../SyncInstantiateWorkflowTemplate.java | 54 - ...SyncInstantiateWorkflowTemplateString.java | 46 - ...WorkflowTemplateStringMapstringstring.java | 49 - ...eWorkflowTemplateWorkflowtemplatename.java | 45 - ...teWorkflowtemplatenameMapstringstring.java | 49 - .../AsyncListWorkflowTemplates.java | 55 - .../AsyncListWorkflowTemplatesPaged.java | 63 - .../SyncListWorkflowTemplates.java | 52 - ...SyncListWorkflowTemplatesLocationname.java | 46 - .../SyncListWorkflowTemplatesRegionname.java | 46 - .../SyncListWorkflowTemplatesString.java | 46 - .../AsyncUpdateWorkflowTemplate.java | 50 - .../SyncUpdateWorkflowTemplate.java | 46 - ...pdateWorkflowTemplateWorkflowtemplate.java | 42 - .../SyncCreateWorkflowTemplate.java | 50 - samples/snippets/pom.xml | 65 - synth.metadata | 599 -- versions.txt | 6 - 559 files changed, 257390 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/support_request.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/auto-label.yaml delete mode 100644 .github/blunderbuss.yml delete mode 100644 .github/generated-files-bot.yml delete mode 100644 .github/snippet-bot.yml delete mode 100644 .github/sync-repo-settings.yaml delete mode 100644 .github/trusted-contribution.yml delete mode 100644 .github/workflows/approve-readme.yaml delete mode 100644 .github/workflows/auto-release.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/samples.yaml delete mode 100644 .gitignore delete mode 100644 .kokoro/build.bat delete mode 100755 .kokoro/build.sh delete mode 100755 .kokoro/coerce_logs.sh delete mode 100644 .kokoro/common.cfg delete mode 100644 .kokoro/common.sh delete mode 100644 .kokoro/continuous/common.cfg delete mode 100644 .kokoro/continuous/java8.cfg delete mode 100755 .kokoro/continuous/propose_release.sh delete mode 100755 .kokoro/dependencies.sh delete mode 100644 .kokoro/nightly/common.cfg delete mode 100644 .kokoro/nightly/integration.cfg delete mode 100644 .kokoro/nightly/java11-integration.cfg delete mode 100644 .kokoro/nightly/java11.cfg delete mode 100644 .kokoro/nightly/java7.cfg delete mode 100644 .kokoro/nightly/java8-osx.cfg delete mode 100644 .kokoro/nightly/java8-win.cfg delete mode 100644 .kokoro/nightly/java8.cfg delete mode 100644 .kokoro/nightly/samples.cfg delete mode 100755 .kokoro/populate-secrets.sh delete mode 100644 .kokoro/presubmit/clirr.cfg delete mode 100644 .kokoro/presubmit/common.cfg delete mode 100644 .kokoro/presubmit/dependencies.cfg delete mode 100644 .kokoro/presubmit/graalvm-native-17.cfg delete mode 100644 .kokoro/presubmit/graalvm-native.cfg delete mode 100644 .kokoro/presubmit/integration.cfg delete mode 100644 .kokoro/presubmit/java11.cfg delete mode 100644 .kokoro/presubmit/java7.cfg delete mode 100644 .kokoro/presubmit/java8-osx.cfg delete mode 100644 .kokoro/presubmit/java8-win.cfg delete mode 100644 .kokoro/presubmit/java8.cfg delete mode 100644 .kokoro/presubmit/linkage-monitor.cfg delete mode 100644 .kokoro/presubmit/lint.cfg delete mode 100644 .kokoro/presubmit/samples.cfg delete mode 100755 .kokoro/readme.sh delete mode 100644 .kokoro/release/bump_snapshot.cfg delete mode 100755 .kokoro/release/bump_snapshot.sh delete mode 100644 .kokoro/release/common.cfg delete mode 100755 .kokoro/release/common.sh delete mode 100644 .kokoro/release/drop.cfg delete mode 100755 .kokoro/release/drop.sh delete mode 100644 .kokoro/release/promote.cfg delete mode 100755 .kokoro/release/promote.sh delete mode 100644 .kokoro/release/publish_javadoc.cfg delete mode 100755 .kokoro/release/publish_javadoc.sh delete mode 100644 .kokoro/release/publish_javadoc11.cfg delete mode 100755 .kokoro/release/publish_javadoc11.sh delete mode 100644 .kokoro/release/snapshot.cfg delete mode 100755 .kokoro/release/snapshot.sh delete mode 100644 .kokoro/release/stage.cfg delete mode 100755 .kokoro/release/stage.sh delete mode 100644 .kokoro/requirements.in delete mode 100644 .kokoro/requirements.txt delete mode 100644 .kokoro/trampoline.sh delete mode 100644 .repo-metadata.json delete mode 100644 CHANGELOG.md delete mode 100644 codecov.yaml delete mode 100644 google-cloud-dataproc-bom/pom.xml delete mode 100644 google-cloud-dataproc/pom.xml delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java delete mode 100644 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java delete mode 100644 google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/it/ITSystemTest.java delete mode 100644 grpc-google-cloud-dataproc-v1/pom.xml delete mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java delete mode 100644 grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java delete mode 100644 java.header delete mode 100644 license-checks.xml delete mode 100644 pom.xml delete mode 100644 proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-dataproc-v1/pom.xml delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto delete mode 100644 proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto delete mode 100644 renovate.json delete mode 100644 samples/install-without-bom/pom.xml delete mode 100644 samples/pom.xml delete mode 100644 samples/snapshot/pom.xml delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java delete mode 100644 samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java delete mode 100644 samples/snippets/pom.xml delete mode 100644 synth.metadata delete mode 100644 versions.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 31ab6dd1..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,15 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/api-dataproc is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/api-dataproc - - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 8b73a6a1..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -:bus: This library has moved to -[google-cloud-java/java-dataproc]( -https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-dataproc/issues - - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform - -If you are still having issues, please include as much information as possible: - -#### Environment details - -1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). - General, Core, and Other are also allowed as types -2. OS type and version: -3. Java version: -4. version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 52b03dd3..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -:bus: This library has moved to -[google-cloud-java/java-dataproc]( -https://github.com/googleapis/google-cloud-java/tree/main/java-dataproc). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4c345b28..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-dataproc/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 4caef688..00000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# 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. -requestsize: - enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 2176b054..00000000 --- a/.github/blunderbuss.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml deleted file mode 100644 index 0501f63f..00000000 --- a/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,42 +0,0 @@ -rebaseMergeAllowed: false -squashMergeAllowed: true -mergeCommitAllowed: false -branchProtectionRules: - - pattern: main - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (7) - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: yoshi-java - permission: push diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml deleted file mode 100644 index a0ba1f7d..00000000 --- a/.github/trusted-contribution.yml +++ /dev/null @@ -1,3 +0,0 @@ -trustedContributors: -- renovate-bot -- gcf-owl-bot[bot] diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml deleted file mode 100644 index f5fc7d51..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 7a106d00..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e3bb26e3..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index 912ed8b2..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 1956161c..00000000 --- a/.gitignore +++ /dev/null @@ -1,46 +0,0 @@ -.gitignore - -# Packages -dist -bin -var -sdist -target - -# Unit test / coverage reports -.coverage -.tox -nosetests.xml - -# Translations -*.mo - -# Mr Developer -.mr.developer.cfg - -.metadata -.project -.pydevproject -*.iml -.idea -.settings -.DS_Store -.classpath - -# Built documentation -docs/ - - -# Wheel directory used in Travis builds. -gcloud-java-wheels/ -src/test/resources/gcd-head.zip -src/test/resources/gcd-v1beta2-rev1-2.1.1.zip - -# API key file containing value of GOOGLE_API_KEY for integration tests -api_key - -# Python utilities -*.pyc -artman-genfiles - -.flattened-pom.xml diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 067cf4a4..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index baf6bb6d..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Maven & Java version -mvn -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check -B -ntp - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc -B -ntp - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -ntp \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - 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=$? - ;; -graalvm17) - # 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. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snapshot - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -ntp -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_FLAKYBOT}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-dataproc -fi - -echo "exiting with ${RETURN_CODE}" -exit ${RETURN_CODE} diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh deleted file mode 100755 index 46edbf7f..00000000 --- a/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -# This script finds and moves sponge logs so that they can be found by placer -# and are not flagged as flaky by sponge. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -job=$(basename ${KOKORO_JOB_NAME}) - -echo "coercing sponge logs..." -for xml in `find . -name *-sponge_log.xml` -do - class=$(basename ${xml} | cut -d- -f2) - dir=$(dirname ${xml})/${job}/${class} - text=$(dirname ${xml})/${class}-sponge_log.txt - mkdir -p ${dir} - mv ${xml} ${dir}/sponge_log.xml - mv ${text} ${dir}/sponge_log.txt -done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg deleted file mode 100644 index 1de7c956..00000000 --- a/.kokoro/common.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# All builds use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index f8f957af..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# 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. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 3bf031d0..00000000 --- a/.kokoro/continuous/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/continuous/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/continuous/propose_release.sh b/.kokoro/continuous/propose_release.sh deleted file mode 100755 index ac879db3..00000000 --- a/.kokoro/continuous/propose_release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the release PR as new commits are merged. - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-dataproc \ - --package-name="dataproc" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --release-type=java-yoshi -fi diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh deleted file mode 100755 index bd896024..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -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 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 3bf031d0..00000000 --- a/.kokoro/nightly/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg deleted file mode 100644 index bd0297a3..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -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/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index dc51b65e..00000000 --- a/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# 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: "ENABLE_FLAKYBOT" - value: "false" -} - -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/nightly/java11.cfg b/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# 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/java7" -} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index 9dd53731..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-dataproc/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index 29a47726..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-dataproc/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/nightly/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg deleted file mode 100644 index fee6a838..00000000 --- a/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# 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. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index 2fea3234..00000000 --- a/.kokoro/presubmit/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg deleted file mode 100644 index b3dc0718..00000000 --- a/.kokoro/presubmit/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/dependencies.sh" -} diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg deleted file mode 100644 index a3f7fb9d..00000000 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# 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/graalvm17" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm17" -} - -# 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" -} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg deleted file mode 100644 index 4c7225ec..00000000 --- a/.kokoro/presubmit/graalvm-native.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# 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/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg deleted file mode 100644 index dded67a9..00000000 --- a/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# 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/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# 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/java7" -} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index 9dd53731..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-dataproc/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index 29a47726..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-dataproc/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/presubmit/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/presubmit/linkage-monitor.cfg b/.kokoro/presubmit/linkage-monitor.cfg deleted file mode 100644 index 458a3b73..00000000 --- a/.kokoro/presubmit/linkage-monitor.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/linkage-monitor.sh" -} \ No newline at end of file diff --git a/.kokoro/presubmit/lint.cfg b/.kokoro/presubmit/lint.cfg deleted file mode 100644 index 6d323c8a..00000000 --- a/.kokoro/presubmit/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg deleted file mode 100644 index 01e09600..00000000 --- a/.kokoro/presubmit/samples.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# 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/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} \ No newline at end of file diff --git a/.kokoro/readme.sh b/.kokoro/readme.sh deleted file mode 100755 index 19b977e6..00000000 --- a/.kokoro/readme.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# 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. - -set -eo pipefail - -cd ${KOKORO_ARTIFACTS_DIR}/github/java-dataproc - -# Disable buffering, so that the logs stream through. -export PYTHONUNBUFFERED=1 - -# Kokoro exposes this as a file, but the scripts expect just a plain variable. -export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) - -# Setup git credentials -echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials -git config --global credential.helper 'store --file ~/.git-credentials' - -python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool - -set +e -python3.6 -m autosynth.synth \ - --repository=googleapis/java-dataproc \ - --synth-file-name=.github/readme/synth.py \ - --metadata-path=.github/readme/synth.metadata \ - --pr-title="chore: regenerate README" \ - --branch-suffix="readme" - -# autosynth returns 28 to signal there are no changes -RETURN_CODE=$? -if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] -then - exit ${RETURN_CODE} -fi diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg deleted file mode 100644 index 0aa62eed..00000000 --- a/.kokoro/release/bump_snapshot.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/bump_snapshot.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh deleted file mode 100755 index a6422a52..00000000 --- a/.kokoro/release/bump_snapshot.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the snapshot release PR immediately after publishing a release - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-dataproc \ - --package-name="dataproc" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --snapshot \ - --release-type=java-auth-yoshi -fi diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg deleted file mode 100644 index c161698a..00000000 --- a/.kokoro/release/common.cfg +++ /dev/null @@ -1,49 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-dataproc/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee41..00000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg deleted file mode 100644 index f9764cb2..00000000 --- a/.kokoro/release/drop.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a8..00000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg deleted file mode 100644 index ce611a84..00000000 --- a/.kokoro/release/promote.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a..00000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index 5e9f8e43..00000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index 1eb7f098..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-dataproc -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index 41ce051b..00000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/publish_javadoc11.sh" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh deleted file mode 100755 index 1b67d842..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# 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. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-dataproc -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# 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 - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index 3c27185e..00000000 --- a/.kokoro/release/snapshot.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b770..00000000 --- a/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg deleted file mode 100644 index 8d302abc..00000000 --- a/.kokoro/release/stage.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-dataproc/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-dataproc/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-dataproc" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 6aa7cf2b..00000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,33 +0,0 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.11.0 -idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 02ae42bb..00000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,456 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: -# -# pip-compile --allow-unsafe --generate-hashes requirements.in -# -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b - # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d - # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 - # via - # -r requirements.in - # google-cloud-core - # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 - # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in - # keyring - # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 - # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool - # google-api-core - # google-cloud-storage - # googleapis-common-protos -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # -r requirements.in - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.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. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.repo-metadata.json b/.repo-metadata.json deleted file mode 100644 index 23421b0c..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_shortname": "dataproc", - "name_pretty": "Dataproc", - "product_documentation": "https://cloud.google.com/dataproc", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/history", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559745", - "release_level": "stable", - "language": "java", - "repo": "googleapis/java-dataproc", - "repo_short": "java-dataproc", - "distribution_name": "com.google.cloud:google-cloud-dataproc", - "codeowner_team": "@googleapis/api-dataproc", - "api_id": "dataproc.googleapis.com", - "transport": "grpc", - "requires_billing": true, - "api_description": "is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop.", - "library_type": "GAPIC_AUTO" - } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e8bc457e..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,679 +0,0 @@ -# Changelog - -## [4.0.8](https://github.com/googleapis/java-dataproc/compare/v4.0.7...v4.0.8) (2022-10-06) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-storage to v2.13.0 ([#955](https://github.com/googleapis/java-dataproc/issues/955)) ([1e7e031](https://github.com/googleapis/java-dataproc/commit/1e7e0314992012a0c0639003c552f8d78e6a63af)) - -## [4.0.7](https://github.com/googleapis/java-dataproc/compare/v4.0.6...v4.0.7) (2022-10-05) - - -### Documentation - -* [owlbot-java] samples do not need deploy plugin and deps upgrade ([#1583](https://github.com/googleapis/java-dataproc/issues/1583)) ([#926](https://github.com/googleapis/java-dataproc/issues/926)) ([3395143](https://github.com/googleapis/java-dataproc/commit/339514326c8ae8469cbe69ca9271ae4ff3b80e1b)) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#952](https://github.com/googleapis/java-dataproc/issues/952)) ([42e0c36](https://github.com/googleapis/java-dataproc/commit/42e0c364ee0fb7705ff6246b99b064a17d85f6ed)) - -## [4.0.6](https://github.com/googleapis/java-dataproc/compare/v4.0.5...v4.0.6) (2022-09-21) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-storage to v2.12.0 ([#916](https://github.com/googleapis/java-dataproc/issues/916)) ([8c6efdd](https://github.com/googleapis/java-dataproc/commit/8c6efdd79c675eb2c2c0f89b65fa34f07483d5d3)) - -## [4.0.5](https://github.com/googleapis/java-dataproc/compare/v4.0.4...v4.0.5) (2022-09-16) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#915](https://github.com/googleapis/java-dataproc/issues/915)) ([60c1eeb](https://github.com/googleapis/java-dataproc/commit/60c1eeb4797ec497abade6525074469069700388)) - -## [4.0.4](https://github.com/googleapis/java-dataproc/compare/v4.0.3...v4.0.4) (2022-09-09) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#910](https://github.com/googleapis/java-dataproc/issues/910)) ([687be30](https://github.com/googleapis/java-dataproc/commit/687be3034d0ced2a43091da2e160fddf487513a1)) - -## [4.0.3](https://github.com/googleapis/java-dataproc/compare/v4.0.2...v4.0.3) (2022-09-06) - - -### Dependencies - -* Update dependency com.google.cloud ([d1b284a](https://github.com/googleapis/java-dataproc/commit/d1b284a5eba0d40d13b94a8e651fb1c90b680292)) - -## [4.0.2](https://github.com/googleapis/java-dataproc/compare/v4.0.1...v4.0.2) (2022-08-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#892](https://github.com/googleapis/java-dataproc/issues/892)) ([6eded42](https://github.com/googleapis/java-dataproc/commit/6eded42a2af6d511430681b3d97c56aabdd61197)) -* update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#894](https://github.com/googleapis/java-dataproc/issues/894)) ([5b958b6](https://github.com/googleapis/java-dataproc/commit/5b958b630e7fd27d9c70b8f53a577bfad570a1de)) -* update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#895](https://github.com/googleapis/java-dataproc/issues/895)) ([213a20c](https://github.com/googleapis/java-dataproc/commit/213a20c8dbe6d20c1608928bb622ef8fcbd44e1a)) -* update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#896](https://github.com/googleapis/java-dataproc/issues/896)) ([c530fb6](https://github.com/googleapis/java-dataproc/commit/c530fb61c1f5adcbe65450dd04ee073ca1cbf9f8)) -* update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#897](https://github.com/googleapis/java-dataproc/issues/897)) ([b47b000](https://github.com/googleapis/java-dataproc/commit/b47b000285be94dafbf98c7025637dc04703244c)) - -## [4.0.1](https://github.com/googleapis/java-dataproc/compare/v4.0.0...v4.0.1) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-dataproc/issues/1485)) ([#884](https://github.com/googleapis/java-dataproc/issues/884)) ([79ea3aa](https://github.com/googleapis/java-dataproc/commit/79ea3aaea253356a95656e0acca50293eefd979a)) - -## [4.0.0](https://github.com/googleapis/java-dataproc/compare/v3.1.2...v4.0.0) (2022-07-01) - - -### ⚠ BREAKING CHANGES - -* Remove `temp_bucket` from VirtualClusterConfig, as its value was not used - -### Features - -* Enable REST transport for most of Java and Go clients ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) - - -### Bug Fixes - -* Move `yarn_config` into a `oneof` ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) -* Remove `temp_bucket` from VirtualClusterConfig, as its value was not used ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) -* update gapic-generator-java with mock service generation fixes ([#833](https://github.com/googleapis/java-dataproc/issues/833)) ([dd6bebb](https://github.com/googleapis/java-dataproc/commit/dd6bebbff4d0f0949d2435b88b801f1353a698b3)) - -## [3.1.2](https://github.com/googleapis/java-dataproc/compare/v3.1.1...v3.1.2) (2022-06-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#870](https://github.com/googleapis/java-dataproc/issues/870)) ([de2c213](https://github.com/googleapis/java-dataproc/commit/de2c2133fdef65dc58d87aa941b5b932a0cd1fdd)) - -### [3.1.1](https://github.com/googleapis/java-dataproc/compare/v3.1.0...v3.1.1) (2022-05-25) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.7.0 ([#862](https://github.com/googleapis/java-dataproc/issues/862)) ([29cd497](https://github.com/googleapis/java-dataproc/commit/29cd497e82b69249f1058be873c0312d2eb082ac)) - -## [3.1.0](https://github.com/googleapis/java-dataproc/compare/v3.0.4...v3.1.0) (2022-05-23) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-dataproc/issues/1440)) ([#854](https://github.com/googleapis/java-dataproc/issues/854)) ([90026af](https://github.com/googleapis/java-dataproc/commit/90026af3cc46b2db3dfdc2ebbc7dd5451d015312)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#853](https://github.com/googleapis/java-dataproc/issues/853)) ([00cdc4e](https://github.com/googleapis/java-dataproc/commit/00cdc4ef6c87347ce2229f8c8a62f6bce05ffed5)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#855](https://github.com/googleapis/java-dataproc/issues/855)) ([b5d889e](https://github.com/googleapis/java-dataproc/commit/b5d889e6e485c70f5cd893a0355a65b2a76bbdb7)) -* update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#840](https://github.com/googleapis/java-dataproc/issues/840)) ([fd91c06](https://github.com/googleapis/java-dataproc/commit/fd91c067b8c024cca89844f283e2d3d94563faa6)) - -### [3.0.4](https://github.com/googleapis/java-dataproc/compare/v3.0.3...v3.0.4) (2022-04-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#836](https://github.com/googleapis/java-dataproc/issues/836)) ([cdd75d5](https://github.com/googleapis/java-dataproc/commit/cdd75d56618bbbcabd919953cb231a364e25fb57)) - -### [3.0.3](https://github.com/googleapis/java-dataproc/compare/v3.0.2...v3.0.3) (2022-04-01) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#824](https://github.com/googleapis/java-dataproc/issues/824)) ([72500fd](https://github.com/googleapis/java-dataproc/commit/72500fd9d425dbad26395ebb8df93801d97ff6f0)) - -### [3.0.2](https://github.com/googleapis/java-dataproc/compare/v3.0.1...v3.0.2) (2022-03-29) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#820](https://github.com/googleapis/java-dataproc/issues/820)) ([7c2e28d](https://github.com/googleapis/java-dataproc/commit/7c2e28d6a49775f87136f355a9a780206d868601)) -* update dependency com.google.cloud:google-cloud-storage to v2.5.1 ([#818](https://github.com/googleapis/java-dataproc/issues/818)) ([ec6c607](https://github.com/googleapis/java-dataproc/commit/ec6c6079517451dd99ad0020007d3200ee60dc56)) - -### [3.0.1](https://github.com/googleapis/java-dataproc/compare/v3.0.0...v3.0.1) (2022-03-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.4.5 ([#811](https://github.com/googleapis/java-dataproc/issues/811)) ([9deba24](https://github.com/googleapis/java-dataproc/commit/9deba24ca7520e504b250a81cebfe1418ccbd248)) - -## [3.0.0](https://github.com/googleapis/java-dataproc/compare/v2.3.2...v3.0.0) (2022-03-03) - - -### ⚠ BREAKING CHANGES - -* add support for Virtual Dataproc cluster running on GKE cluster (#795) - -### Features - -* add support for Virtual Dataproc cluster running on GKE cluster ([#795](https://github.com/googleapis/java-dataproc/issues/795)) ([71aa406](https://github.com/googleapis/java-dataproc/commit/71aa40686cf1d7d9a9b3a15b2037392d3c1e6fd3)) - - -### Dependencies - -* update actions/github-script action to v6 ([#790](https://github.com/googleapis/java-dataproc/issues/790)) ([de5ac7b](https://github.com/googleapis/java-dataproc/commit/de5ac7b2693d3434c6369d2888e790383347bd39)) -* update actions/setup-java action to v3 ([#798](https://github.com/googleapis/java-dataproc/issues/798)) ([a054ce8](https://github.com/googleapis/java-dataproc/commit/a054ce8fb637f3452fd641a3f4689cbac3070456)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#804](https://github.com/googleapis/java-dataproc/issues/804)) ([4b4092b](https://github.com/googleapis/java-dataproc/commit/4b4092b14c592b09202e484028a696a408f976d0)) -* update dependency com.google.cloud:google-cloud-storage to v2.4.0 ([#782](https://github.com/googleapis/java-dataproc/issues/782)) ([4754aa0](https://github.com/googleapis/java-dataproc/commit/4754aa0321069b5b68bbc5cf6f237c44b317a84d)) -* update dependency com.google.cloud:google-cloud-storage to v2.4.4 ([#800](https://github.com/googleapis/java-dataproc/issues/800)) ([bfab095](https://github.com/googleapis/java-dataproc/commit/bfab0958ffc81615768d00bc8bc1e6af03a770e2)) - -### [2.3.2](https://github.com/googleapis/java-dataproc/compare/v2.3.1...v2.3.2) (2022-02-03) - - -### Dependencies - -* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-dataproc/issues/1339)) ([#777](https://github.com/googleapis/java-dataproc/issues/777)) ([2477ea5](https://github.com/googleapis/java-dataproc/commit/2477ea5fb5c8e35847d76b27f8359ca8c92ae47a)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#779](https://github.com/googleapis/java-dataproc/issues/779)) ([6040385](https://github.com/googleapis/java-dataproc/commit/6040385f4cec61ab7a5d443b864344308bec66ae)) -* update dependency com.google.cloud:google-cloud-storage to v2.2.3 ([#765](https://github.com/googleapis/java-dataproc/issues/765)) ([d4f4a2e](https://github.com/googleapis/java-dataproc/commit/d4f4a2ebb1a1f7d9fb71642f69d135f81798583e)) -* update dependency com.google.cloud:google-cloud-storage to v2.3.0 ([#775](https://github.com/googleapis/java-dataproc/issues/775)) ([b538d4d](https://github.com/googleapis/java-dataproc/commit/b538d4dc66131239ac988950d9e2b8b7006a1b9f)) - -### [2.3.1](https://www.github.com/googleapis/java-dataproc/compare/v2.3.0...v2.3.1) (2022-01-07) - - -### Bug Fixes - -* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-dataproc/issues/1299)) ([#746](https://www.github.com/googleapis/java-dataproc/issues/746)) ([1cfdaae](https://www.github.com/googleapis/java-dataproc/commit/1cfdaae5ef043a12c5bb9debf3bb8f1ffe366b5f)) -* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-dataproc/issues/1301)) ([#755](https://www.github.com/googleapis/java-dataproc/issues/755)) ([5035a44](https://www.github.com/googleapis/java-dataproc/commit/5035a44dcedf0d993c750086c78813b886fceca3)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#760](https://www.github.com/googleapis/java-dataproc/issues/760)) ([04a07b6](https://www.github.com/googleapis/java-dataproc/commit/04a07b6689f6a7df8410ddf7f454c2a639650939)) -* update dependency com.google.cloud:google-cloud-storage to v2.2.2 ([#748](https://www.github.com/googleapis/java-dataproc/issues/748)) ([e5cd53a](https://www.github.com/googleapis/java-dataproc/commit/e5cd53a670fe6efd712ee2415604feceb68ad3d0)) - -## [2.3.0](https://www.github.com/googleapis/java-dataproc/compare/v2.2.2...v2.3.0) (2021-12-03) - - -### Features - -* Add support for dataproc BatchController service ([#719](https://www.github.com/googleapis/java-dataproc/issues/719)) ([4556a3f](https://www.github.com/googleapis/java-dataproc/commit/4556a3fc0de8e432c0abd12b5ee0d6b013448b36)) - - -### Bug Fixes - -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-dataproc/issues/1266)) ([#727](https://www.github.com/googleapis/java-dataproc/issues/727)) ([9d9c9cf](https://www.github.com/googleapis/java-dataproc/commit/9d9c9cf8c70f845fc8f189644df1d64464d44492)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#737](https://www.github.com/googleapis/java-dataproc/issues/737)) ([e0ea4e9](https://www.github.com/googleapis/java-dataproc/commit/e0ea4e9ef10df26733ddba5a0eb084e32ee043e3)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#743](https://www.github.com/googleapis/java-dataproc/issues/743)) ([8efd821](https://www.github.com/googleapis/java-dataproc/commit/8efd821b00f1b64d35e78ccdf8f2ea72277575cf)) -* update dependency com.google.cloud:google-cloud-storage to v2.2.0 ([#729](https://www.github.com/googleapis/java-dataproc/issues/729)) ([dc2a3b4](https://www.github.com/googleapis/java-dataproc/commit/dc2a3b40bd2aa8a22483b6698c994940ebead9b1)) -* update dependency com.google.cloud:google-cloud-storage to v2.2.1 ([#738](https://www.github.com/googleapis/java-dataproc/issues/738)) ([9449a98](https://www.github.com/googleapis/java-dataproc/commit/9449a98d0293c0a3f426e2391068195d05e9df32)) - -### [2.2.2](https://www.github.com/googleapis/java-dataproc/compare/v2.2.1...v2.2.2) (2021-10-20) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.1.9 ([#721](https://www.github.com/googleapis/java-dataproc/issues/721)) ([376b0bf](https://www.github.com/googleapis/java-dataproc/commit/376b0bf38aaefe6f13ee604c830fa6967247bd6f)) - -### [2.2.1](https://www.github.com/googleapis/java-dataproc/compare/v2.2.0...v2.2.1) (2021-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#716](https://www.github.com/googleapis/java-dataproc/issues/716)) ([2ae9ae0](https://www.github.com/googleapis/java-dataproc/commit/2ae9ae0b4f222e67c32a2ea41f1dda6bf2d73cb9)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.6 ([#701](https://www.github.com/googleapis/java-dataproc/issues/701)) ([dc7de22](https://www.github.com/googleapis/java-dataproc/commit/dc7de2234aaff6582d9f3c302b7de97671838d4f)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.7 ([#709](https://www.github.com/googleapis/java-dataproc/issues/709)) ([dda0313](https://www.github.com/googleapis/java-dataproc/commit/dda03134149ba95f5061dbc60ad7ba9c05cedf38)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.8 ([#715](https://www.github.com/googleapis/java-dataproc/issues/715)) ([91cfd37](https://www.github.com/googleapis/java-dataproc/commit/91cfd376bce87b492fdb9319dffb5d109ec62526)) - -## [2.2.0](https://www.github.com/googleapis/java-dataproc/compare/v2.1.4...v2.2.0) (2021-09-22) - - -### Features - -* delete deprecated Dataproc v1beta2 API client ([#651](https://www.github.com/googleapis/java-dataproc/issues/651)) ([1415252](https://www.github.com/googleapis/java-dataproc/commit/1415252bc06133dfa2db43feccfcbc448e60672a)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#696](https://www.github.com/googleapis/java-dataproc/issues/696)) ([e0e66e1](https://www.github.com/googleapis/java-dataproc/commit/e0e66e1c3cf4bab0ac939343a4b35de4d3dce4b1)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.4 ([#693](https://www.github.com/googleapis/java-dataproc/issues/693)) ([d83fee0](https://www.github.com/googleapis/java-dataproc/commit/d83fee0d7c6f766324a01624c73b017488656129)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.5 ([#697](https://www.github.com/googleapis/java-dataproc/issues/697)) ([fcd23bf](https://www.github.com/googleapis/java-dataproc/commit/fcd23bf81f0de10084e20874f8bc5f6a07307612)) - -### [2.1.4](https://www.github.com/googleapis/java-dataproc/compare/v2.1.3...v2.1.4) (2021-09-16) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.1.3 ([#688](https://www.github.com/googleapis/java-dataproc/issues/688)) ([35f38a3](https://www.github.com/googleapis/java-dataproc/commit/35f38a3b3ad8de2c6ef4c0804c0b6f29f75c020c)) - -### [2.1.3](https://www.github.com/googleapis/java-dataproc/compare/v2.1.2...v2.1.3) (2021-09-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.1.2 ([#684](https://www.github.com/googleapis/java-dataproc/issues/684)) ([75390d1](https://www.github.com/googleapis/java-dataproc/commit/75390d1ada45101c679bbd271e98ac7070b22c20)) - -### [2.1.2](https://www.github.com/googleapis/java-dataproc/compare/v2.1.1...v2.1.2) (2021-09-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#679](https://www.github.com/googleapis/java-dataproc/issues/679)) ([31ab3b9](https://www.github.com/googleapis/java-dataproc/commit/31ab3b91450f0f6a8993182bda17e535abd3b1d6)) - -### [2.1.1](https://www.github.com/googleapis/java-dataproc/compare/v2.1.0...v2.1.1) (2021-09-03) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v2.1.1 ([#663](https://www.github.com/googleapis/java-dataproc/issues/663)) ([461cb95](https://www.github.com/googleapis/java-dataproc/commit/461cb9504957d3a6a11f53c019ed230bd1d8fac0)) - -## [2.1.0](https://www.github.com/googleapis/java-dataproc/compare/v2.0.2...v2.1.0) (2021-08-31) - - -### Features - -* Remove use of deprecated gradle command in java README ([#1196](https://www.github.com/googleapis/java-dataproc/issues/1196)) ([#655](https://www.github.com/googleapis/java-dataproc/issues/655)) ([abd29be](https://www.github.com/googleapis/java-dataproc/commit/abd29beeb85a2e2bf9063c54d51f7339fbfb1c42)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#658](https://www.github.com/googleapis/java-dataproc/issues/658)) ([313dab9](https://www.github.com/googleapis/java-dataproc/commit/313dab9c1f34626ca3c2f97a93891786426b04c3)) -* update dependency com.google.cloud:google-cloud-storage to v2.1.0 ([#652](https://www.github.com/googleapis/java-dataproc/issues/652)) ([3cc8f67](https://www.github.com/googleapis/java-dataproc/commit/3cc8f67b6695411043d01692b1cfcd1031437c1f)) - -### [2.0.2](https://www.github.com/googleapis/java-dataproc/compare/v2.0.1...v2.0.2) (2021-08-24) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#646](https://www.github.com/googleapis/java-dataproc/issues/646)) ([f150209](https://www.github.com/googleapis/java-dataproc/commit/f1502094726542302086beb76e3b371da2a36bf4)) -* update dependency com.google.cloud:google-cloud-storage to v2.0.2 ([#645](https://www.github.com/googleapis/java-dataproc/issues/645)) ([ca43a5b](https://www.github.com/googleapis/java-dataproc/commit/ca43a5b553403c3c2075da67f84733f522b488ae)) - -### [2.0.1](https://www.github.com/googleapis/java-dataproc/compare/v2.0.0...v2.0.1) (2021-08-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#635](https://www.github.com/googleapis/java-dataproc/issues/635)) ([bc5162a](https://www.github.com/googleapis/java-dataproc/commit/bc5162a46c5bef3829c18e32c93f7fc08c59c4da)) -* update dependency com.google.cloud:google-cloud-storage to v2.0.1 ([#636](https://www.github.com/googleapis/java-dataproc/issues/636)) ([12c182b](https://www.github.com/googleapis/java-dataproc/commit/12c182bae21b2a4a5ef38c09df729559380cc369)) - -## [2.0.0](https://www.github.com/googleapis/java-dataproc/compare/v1.5.4...v2.0.0) (2021-08-09) - - -### ⚠ BREAKING CHANGES - -* release gapic-generator-java v2.0.0 - -### Features - -* release gapic-generator-java v2.0.0 ([ff1784f](https://www.github.com/googleapis/java-dataproc/commit/ff1784fd5e2997fcf3cbbb69fcfd49cc29bcbd44)) - -### [1.5.4](https://www.github.com/googleapis/java-dataproc/compare/v1.5.3...v1.5.4) (2021-08-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#625](https://www.github.com/googleapis/java-dataproc/issues/625)) ([6c7c935](https://www.github.com/googleapis/java-dataproc/commit/6c7c9350381ba1543e05dd8f9804b545e7342a1c)) -* update dependency com.google.cloud:google-cloud-storage to v1.118.0 ([#604](https://www.github.com/googleapis/java-dataproc/issues/604)) ([e2fb23c](https://www.github.com/googleapis/java-dataproc/commit/e2fb23cd2bad3bce5d13a2891ff8a4f8d0085cc7)) -* update dependency com.google.cloud:google-cloud-storage to v2 ([#629](https://www.github.com/googleapis/java-dataproc/issues/629)) ([2541ee5](https://www.github.com/googleapis/java-dataproc/commit/2541ee5a9ef7d27c217355875bf5ae3d3699fe22)) - -### [1.5.3](https://www.github.com/googleapis/java-dataproc/compare/v1.5.2...v1.5.3) (2021-07-05) - - -### Bug Fixes - -* Add `shopt -s nullglob` to dependencies script ([#1130](https://www.github.com/googleapis/java-dataproc/issues/1130)) ([#588](https://www.github.com/googleapis/java-dataproc/issues/588)) ([f19587f](https://www.github.com/googleapis/java-dataproc/commit/f19587f164b3961095ee2ffd4f6e37b57f6f79f3)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#593](https://www.github.com/googleapis/java-dataproc/issues/593)) ([55fb5f4](https://www.github.com/googleapis/java-dataproc/commit/55fb5f42b7e06ca1b590c0f8bc8d8dd0f3677c75)) -* update dependency com.google.cloud:google-cloud-storage to v1.117.1 ([#592](https://www.github.com/googleapis/java-dataproc/issues/592)) ([c6e3f76](https://www.github.com/googleapis/java-dataproc/commit/c6e3f76289f6703c627b899ce9397ac5d3e2d338)) - -### [1.5.2](https://www.github.com/googleapis/java-dataproc/compare/v1.5.1...v1.5.2) (2021-06-04) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#572](https://www.github.com/googleapis/java-dataproc/issues/572)) ([525af16](https://www.github.com/googleapis/java-dataproc/commit/525af16403796180618787c4bca29777104a66bc)) - -### [1.5.1](https://www.github.com/googleapis/java-dataproc/compare/v1.5.0...v1.5.1) (2021-06-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v1.115.0 ([#565](https://www.github.com/googleapis/java-dataproc/issues/565)) ([9183a22](https://www.github.com/googleapis/java-dataproc/commit/9183a2251b9fbaf07b62ad6fa2e2dc04659ec779)) - -## [1.5.0](https://www.github.com/googleapis/java-dataproc/compare/v1.4.3...v1.5.0) (2021-05-31) - - -### Features - -* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#554](https://www.github.com/googleapis/java-dataproc/issues/554)) ([c6fbf45](https://www.github.com/googleapis/java-dataproc/commit/c6fbf45f964242cd249e6aebfd85b8d63cf1697c)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#553](https://www.github.com/googleapis/java-dataproc/issues/553)) ([2fe5a5d](https://www.github.com/googleapis/java-dataproc/commit/2fe5a5de5ad05ac83c948d59edb1fecb6f3f12d6)) - -### [1.4.3](https://www.github.com/googleapis/java-dataproc/compare/v1.4.2...v1.4.3) (2021-05-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#544](https://www.github.com/googleapis/java-dataproc/issues/544)) ([67fcadd](https://www.github.com/googleapis/java-dataproc/commit/67fcadd562407d01b8aca7551ea4bc4e57c5940f)) -* update dependency com.google.cloud:google-cloud-storage to v1.114.0 ([#545](https://www.github.com/googleapis/java-dataproc/issues/545)) ([94c963c](https://www.github.com/googleapis/java-dataproc/commit/94c963cf511c7a5e75bca7e145fad626bf8a5c5c)) - -### [1.4.2](https://www.github.com/googleapis/java-dataproc/compare/v1.4.1...v1.4.2) (2021-04-26) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v1.113.16 ([#526](https://www.github.com/googleapis/java-dataproc/issues/526)) ([779d5b5](https://www.github.com/googleapis/java-dataproc/commit/779d5b5e99b6124911784d5973aa66e47777845c)) - -### [1.4.1](https://www.github.com/googleapis/java-dataproc/compare/v1.4.0...v1.4.1) (2021-04-23) - - -### Bug Fixes - -* release scripts from issuing overlapping phases ([#512](https://www.github.com/googleapis/java-dataproc/issues/512)) ([077e71d](https://www.github.com/googleapis/java-dataproc/commit/077e71d177ce1cd2827006ab60f56f05888a8b1d)) -* typo ([#508](https://www.github.com/googleapis/java-dataproc/issues/508)) ([894ce84](https://www.github.com/googleapis/java-dataproc/commit/894ce84afaada6edeb85809802522e81d2ba1f9d)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#515](https://www.github.com/googleapis/java-dataproc/issues/515)) ([863dbc9](https://www.github.com/googleapis/java-dataproc/commit/863dbc99d71f67776e919c6c6eb832ecd6cf516b)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#524](https://www.github.com/googleapis/java-dataproc/issues/524)) ([95606d8](https://www.github.com/googleapis/java-dataproc/commit/95606d8a28e55271fff71f3323e260bf9210f7ee)) -* update dependency com.google.cloud:google-cloud-storage to v1.113.15 ([#510](https://www.github.com/googleapis/java-dataproc/issues/510)) ([917ea60](https://www.github.com/googleapis/java-dataproc/commit/917ea60907308ac84583cbeeb05b1f0b6583600c)) - -## [1.4.0](https://www.github.com/googleapis/java-dataproc/compare/v1.3.0...v1.4.0) (2021-04-09) - - -### Features - -* update the Dataproc V1 API client library ([#497](https://www.github.com/googleapis/java-dataproc/issues/497)) ([3c78a97](https://www.github.com/googleapis/java-dataproc/commit/3c78a971133b3809ac3c962a1c07951480047c31)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#500](https://www.github.com/googleapis/java-dataproc/issues/500)) ([bc31368](https://www.github.com/googleapis/java-dataproc/commit/bc31368719be3083b5bb8ffe80ea9f3db7c69907)) -* update dependency com.google.cloud:google-cloud-storage to v1.113.14 ([#479](https://www.github.com/googleapis/java-dataproc/issues/479)) ([81b26b1](https://www.github.com/googleapis/java-dataproc/commit/81b26b1b38536ab2fc4c52796a19b66646072ccc)) - -## [1.3.0](https://www.github.com/googleapis/java-dataproc/compare/v1.2.1...v1.3.0) (2021-03-11) - - -### Features - -* **generator:** update protoc to v3.15.3 ([#462](https://www.github.com/googleapis/java-dataproc/issues/462)) ([ef5f0bc](https://www.github.com/googleapis/java-dataproc/commit/ef5f0bcf9981a1f61ed460f798b932b1d74291c0)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#475](https://www.github.com/googleapis/java-dataproc/issues/475)) ([42f464a](https://www.github.com/googleapis/java-dataproc/commit/42f464a672c0b6a2595a847de689b0e4171ee7f9)) -* update dependency com.google.cloud:google-cloud-storage to v1.113.13 ([#465](https://www.github.com/googleapis/java-dataproc/issues/465)) ([096f64a](https://www.github.com/googleapis/java-dataproc/commit/096f64a1773f2bc20c348a7e28e225439b56faca)) - -### [1.2.1](https://www.github.com/googleapis/java-dataproc/compare/v1.2.0...v1.2.1) (2021-02-26) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#458](https://www.github.com/googleapis/java-dataproc/issues/458)) ([ed4e9eb](https://www.github.com/googleapis/java-dataproc/commit/ed4e9eb666896855a4fec07f996192d2c09004a6)) - -## [1.2.0](https://www.github.com/googleapis/java-dataproc/compare/v1.1.10...v1.2.0) (2021-02-22) - - -### Features - -* **v1beta2:** remove DOCKER/FLINK enums from Component, add fields to ClusterConfig, InstanceGroupConfig, WorkflowTemplate, WorkflowMetadata ([#411](https://www.github.com/googleapis/java-dataproc/issues/411)) ([e8025d4](https://www.github.com/googleapis/java-dataproc/commit/e8025d4a5dd68b430b25e60cac823f570bdab3f4)) - - -### Documentation - -* generate sample code in the Java microgenerator ([#437](https://www.github.com/googleapis/java-dataproc/issues/437)) ([bb35671](https://www.github.com/googleapis/java-dataproc/commit/bb356719e818b896259f399c084092c056549a6a)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#422](https://www.github.com/googleapis/java-dataproc/issues/422)) ([69a78e1](https://www.github.com/googleapis/java-dataproc/commit/69a78e192957f1c00943be624ce29fe2e2d333cb)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#448](https://www.github.com/googleapis/java-dataproc/issues/448)) ([db549f9](https://www.github.com/googleapis/java-dataproc/commit/db549f9a231eca393c0c1bfda8f004be8e0f7cd9)) -* update dependency com.google.cloud:google-cloud-storage to v1.113.9 ([#416](https://www.github.com/googleapis/java-dataproc/issues/416)) ([d7503e7](https://www.github.com/googleapis/java-dataproc/commit/d7503e7c005c240672741fbc5541a7281c55be23)) - -### [1.1.10](https://www.github.com/googleapis/java-dataproc/compare/v1.1.9...v1.1.10) (2020-12-16) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#404](https://www.github.com/googleapis/java-dataproc/issues/404)) ([6e73894](https://www.github.com/googleapis/java-dataproc/commit/6e738949e8aea8323e83a21d31e7cc26f397653b)) - -### [1.1.9](https://www.github.com/googleapis/java-dataproc/compare/v1.1.8...v1.1.9) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#399](https://www.github.com/googleapis/java-dataproc/issues/399)) ([2234430](https://www.github.com/googleapis/java-dataproc/commit/2234430a65e1efc416f75b275e922592f2d71ed2)) - -### [1.1.8](https://www.github.com/googleapis/java-dataproc/compare/v1.1.7...v1.1.8) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#388](https://www.github.com/googleapis/java-dataproc/issues/388)) ([71f7650](https://www.github.com/googleapis/java-dataproc/commit/71f76506ffbec57e1bf40bec7499652b9684e508)) - -### [1.1.7](https://www.github.com/googleapis/java-dataproc/compare/v1.1.6...v1.1.7) (2020-11-17) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#370](https://www.github.com/googleapis/java-dataproc/issues/370)) ([8b7cb8a](https://www.github.com/googleapis/java-dataproc/commit/8b7cb8a9f8f0d4148020ab919995d266fbd48f53)) -* update dependency com.google.cloud:google-cloud-storage to v1.113.4 ([#368](https://www.github.com/googleapis/java-dataproc/issues/368)) ([26d4171](https://www.github.com/googleapis/java-dataproc/commit/26d4171bccf35e92ac7d4fc235f356597bdd3438)) - -### [1.1.6](https://www.github.com/googleapis/java-dataproc/compare/v1.1.5...v1.1.6) (2020-10-31) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#358](https://www.github.com/googleapis/java-dataproc/issues/358)) ([6a5c477](https://www.github.com/googleapis/java-dataproc/commit/6a5c477a0705fd9dbcb3a82f7493001db9a6c85e)) - -### [1.1.5](https://www.github.com/googleapis/java-dataproc/compare/v1.1.4...v1.1.5) (2020-10-28) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-storage to v1.113.2 ([#346](https://www.github.com/googleapis/java-dataproc/issues/346)) ([59ffe90](https://www.github.com/googleapis/java-dataproc/commit/59ffe901cc71d845feaec13a99cc802e6655c54b)) - -### [1.1.4](https://www.github.com/googleapis/java-dataproc/compare/v1.1.3...v1.1.4) (2020-10-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#334](https://www.github.com/googleapis/java-dataproc/issues/334)) ([6b9af6c](https://www.github.com/googleapis/java-dataproc/commit/6b9af6c10faca6820f6faabeac0c1fa1c63acf93)) - -### [1.1.3](https://www.github.com/googleapis/java-dataproc/compare/v1.1.2...v1.1.3) (2020-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#326](https://www.github.com/googleapis/java-dataproc/issues/326)) ([31a6573](https://www.github.com/googleapis/java-dataproc/commit/31a6573fb32599020b4463643ba69847d23398c1)) - -### [1.1.2](https://www.github.com/googleapis/java-dataproc/compare/v1.1.1...v1.1.2) (2020-10-08) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#311](https://www.github.com/googleapis/java-dataproc/issues/311)) ([44ac709](https://www.github.com/googleapis/java-dataproc/commit/44ac709e95478f082260117672e82bc1f31d3d77)) - -### [1.1.1](https://www.github.com/googleapis/java-dataproc/compare/v1.1.0...v1.1.1) (2020-09-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#298](https://www.github.com/googleapis/java-dataproc/issues/298)) ([7f2088c](https://www.github.com/googleapis/java-dataproc/commit/7f2088c5faf83d74da6775d3a57f4cc9489a8838)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#278](https://www.github.com/googleapis/java-dataproc/issues/278)) ([73d38d9](https://www.github.com/googleapis/java-dataproc/commit/73d38d954a69cabd223d9df51c7b3ee7e9989a3c)) - -## [1.1.0](https://www.github.com/googleapis/java-dataproc/compare/v1.0.0...v1.1.0) (2020-08-10) - - -### Features - -* Additional fields for the `ClusterConfig` and `InstanceGroupConfig` messages. ([#253](https://www.github.com/googleapis/java-dataproc/issues/253)) ([9f43c64](https://www.github.com/googleapis/java-dataproc/commit/9f43c64e464c5ac2418e2d399e72584db885ec57)) - - -### Bug Fixes - -* fix LRO annotations for method `DiagnoseCluster`. ([#250](https://www.github.com/googleapis/java-dataproc/issues/250)) ([50f0ad0](https://www.github.com/googleapis/java-dataproc/commit/50f0ad0e3f3184d227927c172a1055bbaa8bdcb0)) -* migrate to grpc_service_config ([#248](https://www.github.com/googleapis/java-dataproc/issues/248)) ([bef1b0d](https://www.github.com/googleapis/java-dataproc/commit/bef1b0d43ffa90cf27303a87ce8e020083512841)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.2 ([#244](https://www.github.com/googleapis/java-dataproc/issues/244)) ([f5d3415](https://www.github.com/googleapis/java-dataproc/commit/f5d341507d78c4d9268dc1932808dfc53d4857c3)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#247](https://www.github.com/googleapis/java-dataproc/issues/247)) ([b2cb7c6](https://www.github.com/googleapis/java-dataproc/commit/b2cb7c689e440481a539fba9ac005959b4ca6ba7)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#259](https://www.github.com/googleapis/java-dataproc/issues/259)) ([96f955a](https://www.github.com/googleapis/java-dataproc/commit/96f955ad616e31a0e919d805503245423861c0b9)) - -## [1.0.0](https://www.github.com/googleapis/java-dataproc/compare/v0.122.3...v1.0.0) (2020-06-17) - - -### Features - -* promote to GA ([#226](https://www.github.com/googleapis/java-dataproc/issues/226)) ([3edcdfc](https://www.github.com/googleapis/java-dataproc/commit/3edcdfcb5ae060e4f83782dac8ae29bc3c26a5a6)) -* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#228](https://www.github.com/googleapis/java-dataproc/issues/228)) ([31a94aa](https://www.github.com/googleapis/java-dataproc/commit/31a94aa465e850258a23637588cc89db9f726825)) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java to v3.12.2 ([#192](https://www.github.com/googleapis/java-dataproc/issues/192)) ([7762282](https://www.github.com/googleapis/java-dataproc/commit/7762282f57212548d6091b34e8e1ce5bc90c711e)) -* update dependency io.grpc:grpc-bom to v1.30.0 ([#209](https://www.github.com/googleapis/java-dataproc/issues/209)) ([141db4b](https://www.github.com/googleapis/java-dataproc/commit/141db4b85428264b35dfa8a7501e90c09e06b2e4)) - -### [0.122.3](https://www.github.com/googleapis/java-dataproc/compare/v0.122.2...v0.122.3) (2020-06-09) - - -### Bug Fixes - -* fix LRO polling and workflow template timeouts ([#213](https://www.github.com/googleapis/java-dataproc/issues/213)) ([c8ebb39](https://www.github.com/googleapis/java-dataproc/commit/c8ebb39e33bc3c622878ecdc4191c80511f95490)) - -### [0.122.2](https://www.github.com/googleapis/java-dataproc/compare/v0.122.1...v0.122.2) (2020-06-06) - - -### Bug Fixes - -* dataproc/v1 raise timeouts in gapic v2 ([#207](https://www.github.com/googleapis/java-dataproc/issues/207)) ([0295e36](https://www.github.com/googleapis/java-dataproc/commit/0295e36c41b54d09e814d391f7e56349c91619ff)) - - -### Documentation - -* change relative URLs to absolute URLs to fix broken links. ([#202](https://www.github.com/googleapis/java-dataproc/issues/202)) ([8e2f707](https://www.github.com/googleapis/java-dataproc/commit/8e2f707becbd2302c4480b798a7d1d1335b79b3b)) - - -### Dependencies - -* update dependency com.google.api:api-common to v1.9.1 ([#195](https://www.github.com/googleapis/java-dataproc/issues/195)) ([6fe7813](https://www.github.com/googleapis/java-dataproc/commit/6fe7813949bf54af974768822ef24c17d0b20db9)) -* update dependency com.google.api:api-common to v1.9.2 ([#204](https://www.github.com/googleapis/java-dataproc/issues/204)) ([dbae656](https://www.github.com/googleapis/java-dataproc/commit/dbae656ca82d705e7f725f5fbae49ef24a12f5ef)) -* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#178](https://www.github.com/googleapis/java-dataproc/issues/178)) ([a70d3a5](https://www.github.com/googleapis/java-dataproc/commit/a70d3a5e75a195effe4be9f1d981178219ddcdf2)) -* update dependency com.google.cloud:google-cloud-core to v1.93.5 ([#196](https://www.github.com/googleapis/java-dataproc/issues/196)) ([8867d5a](https://www.github.com/googleapis/java-dataproc/commit/8867d5a224f885b9281ac7d95834ad66e0b0a9fc)) -* update dependency com.google.protobuf:protobuf-java to v3.12.0 ([#187](https://www.github.com/googleapis/java-dataproc/issues/187)) ([aa7379c](https://www.github.com/googleapis/java-dataproc/commit/aa7379c20b750acd59cdc521304c19e5b3b197da)) -* update dependency io.grpc:grpc-bom to v1.29.0 ([#170](https://www.github.com/googleapis/java-dataproc/issues/170)) ([6e256fd](https://www.github.com/googleapis/java-dataproc/commit/6e256fd8f2b7bb978fe598088f3ce1f04370bc46)) -* update dependency org.threeten:threetenbp to v1.4.4 ([#172](https://www.github.com/googleapis/java-dataproc/issues/172)) ([8514a2e](https://www.github.com/googleapis/java-dataproc/commit/8514a2e840403f226f1a9fee52d3c782b2744869)) - -### [0.122.1](https://www.github.com/googleapis/java-dataproc/compare/v0.122.0...v0.122.1) (2020-04-20) - - -### Dependencies - -* update dependency com.google.guava:guava-bom to v29 ([#147](https://www.github.com/googleapis/java-dataproc/issues/147)) ([dae5b3d](https://www.github.com/googleapis/java-dataproc/commit/dae5b3dee3213d309e6dd8adc92cd29bffadae2c)) - -## [0.122.0](https://www.github.com/googleapis/java-dataproc/compare/v0.121.0...v0.122.0) (2020-04-09) - - -### Features - -* **v1:** add Jobs.SubmitJobAsOperation, SparkR and Presto job types to WorkflowTemplates ([#137](https://www.github.com/googleapis/java-dataproc/issues/137)) ([ac18c87](https://www.github.com/googleapis/java-dataproc/commit/ac18c872f270d1a3248797ceceaf0923375bfc2f)) - - -### Dependencies - -* update core dependencies ([#91](https://www.github.com/googleapis/java-dataproc/issues/91)) ([2e8fce0](https://www.github.com/googleapis/java-dataproc/commit/2e8fce05b413f52efa7dc9b0c3d40e19d0d687ab)) -* update dependency com.google.cloud:google-cloud-core to v1.93.4 ([#127](https://www.github.com/googleapis/java-dataproc/issues/127)) ([9dd5f1a](https://www.github.com/googleapis/java-dataproc/commit/9dd5f1a28cf735a611a570026e4762137ac4b9e0)) -* update dependency org.threeten:threetenbp to v1.4.3 ([#111](https://www.github.com/googleapis/java-dataproc/issues/111)) ([3d7178b](https://www.github.com/googleapis/java-dataproc/commit/3d7178b323615d8ddde92b03349da2ec81aee809)) - -## [0.121.0](https://www.github.com/googleapis/java-dataproc/compare/v0.120.0...v0.121.0) (2020-04-01) - - -### ⚠ BREAKING CHANGES - -* Please use AutoscalingPolicyName$Builder.setLocation(String) - -### Bug Fixes - -* AutoscalingPolicyName now uses locations instead of regions ([#118](https://www.github.com/googleapis/java-dataproc/issues/118)) ([48110e6](https://www.github.com/googleapis/java-dataproc/commit/48110e6a7c6426172b81b126001a609650a4f3bd)) - - -### Dependencies - -* update dependency com.google.api:api-common to v1.9.0 ([#113](https://www.github.com/googleapis/java-dataproc/issues/113)) ([34b0ec6](https://www.github.com/googleapis/java-dataproc/commit/34b0ec60c21d76217d45b29410c1472ff8869ba0)) - -## [0.120.0](https://www.github.com/googleapis/java-dataproc/compare/v0.119.0...v0.120.0) (2020-03-13) - - -### Features - -* add LifecycleConfig, ReservationAffinity, SparkRJob, PrestoJob to v1 ([ce4bd91](https://www.github.com/googleapis/java-dataproc/commit/ce4bd9177439ff9431cec1f8e56ee2c07ab75870)) - - -### Dependencies - -* update core dependencies ([#89](https://www.github.com/googleapis/java-dataproc/issues/89)) ([0698b62](https://www.github.com/googleapis/java-dataproc/commit/0698b6262729cab28e9e95dc227669fc3f239b42)) -* update dependency com.google.cloud:google-cloud-core to v1.92.5 ([574c5c5](https://www.github.com/googleapis/java-dataproc/commit/574c5c55978b3930ac083c941fba4df251959084)) -* update dependency com.google.protobuf:protobuf-java to v3.11.4 ([86b32ba](https://www.github.com/googleapis/java-dataproc/commit/86b32baaeee93749e8e50f623ca405bd8167b32a)) -* update dependency io.grpc:grpc-bom to v1.27.1 ([cb1e4b7](https://www.github.com/googleapis/java-dataproc/commit/cb1e4b78c58079a6cc82fef62d993cf2b2259b38)) - - -### Documentation - -* **regen:** update sample code to set total timeout, add API client header test ([9d7dddc](https://www.github.com/googleapis/java-dataproc/commit/9d7dddc630a1b4c2d1b8330fdefd2297ac802019)) -* **regen:** updated docs from proto comments ([#87](https://www.github.com/googleapis/java-dataproc/issues/87)) ([b541715](https://www.github.com/googleapis/java-dataproc/commit/b5417153daf8238fcc0833d6148d2a6ec70e2b99)) - -## [0.119.0](https://www.github.com/googleapis/java-dataproc/compare/v0.118.1...v0.119.0) (2020-02-04) - - -### Features - -* add AutoscalingPolicyServiceClient ([#66](https://www.github.com/googleapis/java-dataproc/issues/66)) ([b612d8e](https://www.github.com/googleapis/java-dataproc/commit/b612d8e2ce9d133449a9eef8e760fe9f138e5a57)) - - -### Dependencies - -* update core dependencies ([#47](https://www.github.com/googleapis/java-dataproc/issues/47)) ([4a7e1de](https://www.github.com/googleapis/java-dataproc/commit/4a7e1de068246efd23129293170efdf417e4645b)) -* update core dependencies ([#65](https://www.github.com/googleapis/java-dataproc/issues/65)) ([521d6a2](https://www.github.com/googleapis/java-dataproc/commit/521d6a22d4c0be9af3df46c0b7186cdf13b5b8f9)) -* update dependency com.google.guava:guava-bom to v28.2-android ([#45](https://www.github.com/googleapis/java-dataproc/issues/45)) ([231844e](https://www.github.com/googleapis/java-dataproc/commit/231844e6340d251d1d08c745235dd2e87e445af2)) -* update dependency com.google.protobuf:protobuf-java to v3.11.3 ([#67](https://www.github.com/googleapis/java-dataproc/issues/67)) ([5321a0f](https://www.github.com/googleapis/java-dataproc/commit/5321a0fecd010fef6895b5f715794dd1f460aec7)) -* update dependency org.threeten:threetenbp to v1.4.1 ([d2af17b](https://www.github.com/googleapis/java-dataproc/commit/d2af17b6ee0672b8fa6d03d6f649415098d11127)) - - -### Documentation - -* **regen:** fix javadoc return annotation ([#60](https://www.github.com/googleapis/java-dataproc/issues/60)) ([28ff392](https://www.github.com/googleapis/java-dataproc/commit/28ff392d36a7a686750010ca860bf797b07fc312)) - -### [0.118.1](https://www.github.com/googleapis/java-dataproc/compare/v0.118.0...v0.118.1) (2020-01-07) - - -### Dependencies - -* update core dependencies ([#42](https://www.github.com/googleapis/java-dataproc/issues/42)) ([0f76b61](https://www.github.com/googleapis/java-dataproc/commit/0f76b61bdc53738e941da9fc6987c141bea4df68)) -* update dependency io.grpc:grpc-bom to v1.26.0 ([#39](https://www.github.com/googleapis/java-dataproc/issues/39)) ([1156a6b](https://www.github.com/googleapis/java-dataproc/commit/1156a6b21b8fde07a56d4ab4a8c280266ef78249)) -* update gax.version to v1.51.0 ([#28](https://www.github.com/googleapis/java-dataproc/issues/28)) ([45314dc](https://www.github.com/googleapis/java-dataproc/commit/45314dc50947d5375378baea07db76020940789f)) - - -### Documentation - -* **regen:** updated javadocs from protoc update ([#34](https://www.github.com/googleapis/java-dataproc/issues/34)) ([a87d161](https://www.github.com/googleapis/java-dataproc/commit/a87d1614eeacf5e1b5ff303f8e09ab930737061b)) -* **regen:** updated javadocs from protos ([#40](https://www.github.com/googleapis/java-dataproc/issues/40)) ([f174b99](https://www.github.com/googleapis/java-dataproc/commit/f174b992fa65dbade37dc1df210b477d44af6758)) - -## [0.118.0](https://www.github.com/googleapis/java-dataproc/compare/0.117.0...v0.118.0) (2019-12-05) - - -### Features - -* make repo releasable, add parent/bom ([#1](https://www.github.com/googleapis/java-dataproc/issues/1)) ([e186726](https://www.github.com/googleapis/java-dataproc/commit/e186726a8fd79e44c999e230f2566708d65619de)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-core to v1.91.3 ([#22](https://www.github.com/googleapis/java-dataproc/issues/22)) ([97c2a37](https://www.github.com/googleapis/java-dataproc/commit/97c2a377f3bdb45984f168b33e476591266ae83f)) -* update dependency com.google.protobuf:protobuf-java to v3.11.0 ([#23](https://www.github.com/googleapis/java-dataproc/issues/23)) ([da12d98](https://www.github.com/googleapis/java-dataproc/commit/da12d98d90d17e6b0583ec4849d6282c9d7f910e)) -* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([#27](https://www.github.com/googleapis/java-dataproc/issues/27)) ([243abd1](https://www.github.com/googleapis/java-dataproc/commit/243abd18e651ab6a0e6be7c54171f40732e38788)) -* update gax.version to v1.50.1 ([#5](https://www.github.com/googleapis/java-dataproc/issues/5)) ([c8aab8a](https://www.github.com/googleapis/java-dataproc/commit/c8aab8a44fe0f7f5848322749c5741ad4810d335)) diff --git a/codecov.yaml b/codecov.yaml deleted file mode 100644 index 5724ea94..00000000 --- a/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com diff --git a/google-cloud-dataproc-bom/pom.xml b/google-cloud-dataproc-bom/pom.xml deleted file mode 100644 index 29194d6c..00000000 --- a/google-cloud-dataproc-bom/pom.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-dataproc-bom - 4.0.9-SNAPSHOT - pom - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - Google Cloud Dataproc BOM - https://github.com/googleapis/java-dataproc - - BOM for Google Cloud Dataproc - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-dataproc.git - scm:git:git@github.com:googleapis/java-dataproc.git - https://github.com/googleapis/java-dataproc - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.cloud - google-cloud-dataproc - 4.0.9-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - diff --git a/google-cloud-dataproc/pom.xml b/google-cloud-dataproc/pom.xml deleted file mode 100644 index 251e2a88..00000000 --- a/google-cloud-dataproc/pom.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-dataproc - 4.0.9-SNAPSHOT - jar - Google Cloud Dataproc - https://github.com/googleapis/java-dataproc - Java idiomatic client for Google Cloud Dataproc - - com.google.cloud - google-cloud-dataproc-parent - 4.0.9-SNAPSHOT - - - google-cloud-dataproc - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.api - api-common - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - com.google.api.grpc - proto-google-cloud-dataproc-v1 - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - - - junit - junit - test - - - com.google.cloud - google-cloud-core - test - - - - com.google.api.grpc - grpc-google-cloud-dataproc-v1 - test - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java deleted file mode 100644 index 3657881d..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStub; -import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The API interface for managing autoscaling policies in the Dataproc API. - * - *

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

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

Note: close() needs to be called on the AutoscalingPolicyServiceClient 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 - * AutoscalingPolicyServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceClient implements BackgroundResource { - private final AutoscalingPolicyServiceSettings settings; - private final AutoscalingPolicyServiceStub stub; - - /** Constructs an instance of AutoscalingPolicyServiceClient with default settings. */ - public static final AutoscalingPolicyServiceClient create() throws IOException { - return create(AutoscalingPolicyServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AutoscalingPolicyServiceClient, 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 AutoscalingPolicyServiceClient create( - AutoscalingPolicyServiceSettings settings) throws IOException { - return new AutoscalingPolicyServiceClient(settings); - } - - /** - * Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer using create(AutoscalingPolicyServiceSettings). - */ - public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub) { - return new AutoscalingPolicyServiceClient(stub); - } - - /** - * Constructs an instance of AutoscalingPolicyServiceClient, 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 AutoscalingPolicyServiceClient(AutoscalingPolicyServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((AutoscalingPolicyServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final AutoscalingPolicyServiceSettings getSettings() { - return settings; - } - - public AutoscalingPolicyServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy( - LocationName parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicy(policy) - .build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy( - RegionName parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicy(policy) - .build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response =
-   *       autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.create`, the resource name of the region - * has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.create`, the resource name of the - * location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param policy Required. The autoscaling policy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy createAutoscalingPolicy(String parent, AutoscalingPolicy policy) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder().setParent(parent).setPolicy(policy).build(); - return createAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   CreateAutoscalingPolicyRequest request =
-   *       CreateAutoscalingPolicyRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(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 AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRequest request) { - return createAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new autoscaling policy. - * - *

Sample code: - * - *

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

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
-   * }
-   * }
- * - * @param policy Required. The updated autoscaling policy. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) { - UpdateAutoscalingPolicyRequest request = - UpdateAutoscalingPolicyRequest.newBuilder().setPolicy(policy).build(); - return updateAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) autoscaling policy. - * - *

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   UpdateAutoscalingPolicyRequest request =
-   *       UpdateAutoscalingPolicyRequest.newBuilder()
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(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 AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request) { - return updateAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) autoscaling policy. - * - *

Disabled check for update_mask, because all updates will be full replacements. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   UpdateAutoscalingPolicyRequest request =
-   *       UpdateAutoscalingPolicyRequest.newBuilder()
-   *           .setPolicy(AutoscalingPolicy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateAutoscalingPolicyCallable() { - return stub.updateAutoscalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.get`, the resource name of the policy has - * the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AutoscalingPolicy getAutoscalingPolicy(String name) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder().setName(name).build(); - return getAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   GetAutoscalingPolicyRequest request =
-   *       GetAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(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 AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest request) { - return getAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves autoscaling policy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   GetAutoscalingPolicyRequest request =
-   *       GetAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   AutoscalingPolicy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getAutoscalingPolicyCallable() { - return stub.getAutoscalingPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(LocationName parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The "resource name" of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder().setParent(parent).build(); - return listAutoscalingPolicies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   ListAutoscalingPoliciesRequest request =
-   *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AutoscalingPolicy element :
-   *       autoscalingPolicyServiceClient.listAutoscalingPolicies(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 ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies( - ListAutoscalingPoliciesRequest request) { - return listAutoscalingPoliciesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists autoscaling policies in the project. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   ListAutoscalingPoliciesRequest request =
-   *       ListAutoscalingPoliciesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAutoscalingPoliciesResponse response =
-   *         autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
-   *     for (AutoscalingPolicy element : response.getPoliciesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAutoscalingPoliciesCallable() { - return stub.listAutoscalingPoliciesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   AutoscalingPolicyName name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *           "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]");
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   String name =
-   *       AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *               "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *           .toString();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
-   * }
-   * }
- * - * @param name Required. The "resource name" of the autoscaling policy, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - *
- *
    - *
  • For `projects.locations.autoscalingPolicies.delete`, the resource name of the policy - * has the following format: - * `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(String name) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder().setName(name).build(); - deleteAutoscalingPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   DeleteAutoscalingPolicyRequest request =
-   *       DeleteAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) { - deleteAutoscalingPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by - * one or more clusters. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
-   *     AutoscalingPolicyServiceClient.create()) {
-   *   DeleteAutoscalingPolicyRequest request =
-   *       DeleteAutoscalingPolicyRequest.newBuilder()
-   *           .setName(
-   *               AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName(
-   *                       "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteAutoscalingPolicyCallable() { - return stub.deleteAutoscalingPolicyCallable(); - } - - @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 ListAutoscalingPoliciesPagedResponse - extends AbstractPagedListResponse< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage, - ListAutoscalingPoliciesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAutoscalingPoliciesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAutoscalingPoliciesPagedResponse(ListAutoscalingPoliciesPage page) { - super(page, ListAutoscalingPoliciesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAutoscalingPoliciesPage - extends AbstractPage< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage> { - - private ListAutoscalingPoliciesPage( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ListAutoscalingPoliciesResponse response) { - super(context, response); - } - - private static ListAutoscalingPoliciesPage createEmptyPage() { - return new ListAutoscalingPoliciesPage(null, null); - } - - @Override - protected ListAutoscalingPoliciesPage createPage( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ListAutoscalingPoliciesResponse response) { - return new ListAutoscalingPoliciesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAutoscalingPoliciesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy, - ListAutoscalingPoliciesPage, - ListAutoscalingPoliciesFixedSizeCollection> { - - private ListAutoscalingPoliciesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAutoscalingPoliciesFixedSizeCollection createEmptyCollection() { - return new ListAutoscalingPoliciesFixedSizeCollection(null, 0); - } - - @Override - protected ListAutoscalingPoliciesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAutoscalingPoliciesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java deleted file mode 100644 index 038b6554..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStubSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}. - * - *

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

    - *
  • The default service address (dataproc.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 createAutoscalingPolicy to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
- *     AutoscalingPolicyServiceSettings.newBuilder();
- * autoscalingPolicyServiceSettingsBuilder
- *     .createAutoscalingPolicySettings()
- *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder
- *             .createAutoscalingPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
- *     autoscalingPolicyServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ - public UnaryCallSettings - createAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .createAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings - updateAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .updateAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings - getAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .getAutoscalingPolicySettings(); - } - - /** Returns the object with the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .listAutoscalingPoliciesSettings(); - } - - /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings - deleteAutoscalingPolicySettings() { - return ((AutoscalingPolicyServiceStubSettings) getStubSettings()) - .deleteAutoscalingPolicySettings(); - } - - public static final AutoscalingPolicyServiceSettings create( - AutoscalingPolicyServiceStubSettings stub) throws IOException { - return new AutoscalingPolicyServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AutoscalingPolicyServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AutoscalingPolicyServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AutoscalingPolicyServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AutoscalingPolicyServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(AutoscalingPolicyServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder()); - } - - public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() { - return ((AutoscalingPolicyServiceStubSettings.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 createAutoscalingPolicy. */ - public UnaryCallSettings.Builder - createAutoscalingPolicySettings() { - return getStubSettingsBuilder().createAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings.Builder - updateAutoscalingPolicySettings() { - return getStubSettingsBuilder().updateAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings.Builder - getAutoscalingPolicySettings() { - return getStubSettingsBuilder().getAutoscalingPolicySettings(); - } - - /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return getStubSettingsBuilder().listAutoscalingPoliciesSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings.Builder - deleteAutoscalingPolicySettings() { - return getStubSettingsBuilder().deleteAutoscalingPolicySettings(); - } - - @Override - public AutoscalingPolicyServiceSettings build() throws IOException { - return new AutoscalingPolicyServiceSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java deleted file mode 100644 index c389df85..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerClient.java +++ /dev/null @@ -1,866 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.stub.BatchControllerStub; -import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The BatchController provides methods to manage batch workloads. - * - *

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

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

Note: close() needs to be called on the BatchControllerClient 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 BatchControllerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class BatchControllerClient implements BackgroundResource { - private final BatchControllerSettings settings; - private final BatchControllerStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of BatchControllerClient with default settings. */ - public static final BatchControllerClient create() throws IOException { - return create(BatchControllerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of BatchControllerClient, 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 BatchControllerClient create(BatchControllerSettings settings) - throws IOException { - return new BatchControllerClient(settings); - } - - /** - * Constructs an instance of BatchControllerClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(BatchControllerSettings). - */ - public static final BatchControllerClient create(BatchControllerStub stub) { - return new BatchControllerClient(stub); - } - - /** - * Constructs an instance of BatchControllerClient, 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 BatchControllerClient(BatchControllerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((BatchControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected BatchControllerClient(BatchControllerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final BatchControllerSettings getSettings() { - return settings; - } - - public BatchControllerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a batch workload that executes asynchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Batch batch = Batch.newBuilder().build();
-   *   String batchId = "batchId-331744779";
-   *   Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource where this batch will be created. - * @param batch Required. The batch to create. - * @param batchId Optional. The ID to use for the batch, which will become the final component of - * the batch's resource name. - *

This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createBatchAsync( - LocationName parent, Batch batch, String batchId) { - CreateBatchRequest request = - CreateBatchRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setBatch(batch) - .setBatchId(batchId) - .build(); - return createBatchAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a batch workload that executes asynchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Batch batch = Batch.newBuilder().build();
-   *   String batchId = "batchId-331744779";
-   *   Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get();
-   * }
-   * }
- * - * @param parent Required. The parent resource where this batch will be created. - * @param batch Required. The batch to create. - * @param batchId Optional. The ID to use for the batch, which will become the final component of - * the batch's resource name. - *

This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createBatchAsync( - String parent, Batch batch, String batchId) { - CreateBatchRequest request = - CreateBatchRequest.newBuilder() - .setParent(parent) - .setBatch(batch) - .setBatchId(batchId) - .build(); - return createBatchAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a batch workload that executes asynchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   CreateBatchRequest request =
-   *       CreateBatchRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBatch(Batch.newBuilder().build())
-   *           .setBatchId("batchId-331744779")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Batch response = batchControllerClient.createBatchAsync(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 createBatchAsync( - CreateBatchRequest request) { - return createBatchOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a batch workload that executes asynchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   CreateBatchRequest request =
-   *       CreateBatchRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBatch(Batch.newBuilder().build())
-   *           .setBatchId("batchId-331744779")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       batchControllerClient.createBatchOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Batch response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createBatchOperationCallable() { - return stub.createBatchOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a batch workload that executes asynchronously. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   CreateBatchRequest request =
-   *       CreateBatchRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBatch(Batch.newBuilder().build())
-   *           .setBatchId("batchId-331744779")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future = batchControllerClient.createBatchCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createBatchCallable() { - return stub.createBatchCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the batch workload resource representation. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of batches. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBatchesPagedResponse listBatches(LocationName parent) { - ListBatchesRequest request = - ListBatchesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBatches(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists batch workloads. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of batches. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBatchesPagedResponse listBatches(String parent) { - ListBatchesRequest request = ListBatchesRequest.newBuilder().setParent(parent).build(); - return listBatches(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists batch workloads. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   ListBatchesRequest request =
-   *       ListBatchesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Batch element : batchControllerClient.listBatches(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 ListBatchesPagedResponse listBatches(ListBatchesRequest request) { - return listBatchesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists batch workloads. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   ListBatchesRequest request =
-   *       ListBatchesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListBatchesResponse response = batchControllerClient.listBatchesCallable().call(request);
-   *     for (Batch element : response.getBatchesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listBatchesCallable() { - return stub.listBatchesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails - * and the response returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]");
-   *   batchControllerClient.deleteBatch(name);
-   * }
-   * }
- * - * @param name Required. The name of the batch resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteBatch(BatchName name) { - DeleteBatchRequest request = - DeleteBatchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteBatch(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails - * and the response returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString();
-   *   batchControllerClient.deleteBatch(name);
-   * }
-   * }
- * - * @param name Required. The name of the batch resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteBatch(String name) { - DeleteBatchRequest request = DeleteBatchRequest.newBuilder().setName(name).build(); - deleteBatch(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails - * and the response returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   DeleteBatchRequest request =
-   *       DeleteBatchRequest.newBuilder()
-   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
-   *           .build();
-   *   batchControllerClient.deleteBatch(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteBatch(DeleteBatchRequest request) { - deleteBatchCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the batch workload resource. If the batch is not in terminal state, the delete fails - * and the response returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) {
-   *   DeleteBatchRequest request =
-   *       DeleteBatchRequest.newBuilder()
-   *           .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString())
-   *           .build();
-   *   ApiFuture future = batchControllerClient.deleteBatchCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteBatchCallable() { - return stub.deleteBatchCallable(); - } - - @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 ListBatchesPagedResponse - extends AbstractPagedListResponse< - ListBatchesRequest, - ListBatchesResponse, - Batch, - ListBatchesPage, - ListBatchesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListBatchesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListBatchesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListBatchesPagedResponse(ListBatchesPage page) { - super(page, ListBatchesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListBatchesPage - extends AbstractPage { - - private ListBatchesPage( - PageContext context, - ListBatchesResponse response) { - super(context, response); - } - - private static ListBatchesPage createEmptyPage() { - return new ListBatchesPage(null, null); - } - - @Override - protected ListBatchesPage createPage( - PageContext context, - ListBatchesResponse response) { - return new ListBatchesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListBatchesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListBatchesRequest, - ListBatchesResponse, - Batch, - ListBatchesPage, - ListBatchesFixedSizeCollection> { - - private ListBatchesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListBatchesFixedSizeCollection createEmptyCollection() { - return new ListBatchesFixedSizeCollection(null, 0); - } - - @Override - protected ListBatchesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListBatchesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java deleted file mode 100644 index 951ae345..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/BatchControllerSettings.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link BatchControllerClient}. - * - *

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

    - *
  • The default service address (dataproc.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 getBatch to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BatchControllerSettings.Builder batchControllerSettingsBuilder =
- *     BatchControllerSettings.newBuilder();
- * batchControllerSettingsBuilder
- *     .getBatchSettings()
- *     .setRetrySettings(
- *         batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class BatchControllerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createBatch. */ - public UnaryCallSettings createBatchSettings() { - return ((BatchControllerStubSettings) getStubSettings()).createBatchSettings(); - } - - /** Returns the object with the settings used for calls to createBatch. */ - public OperationCallSettings - createBatchOperationSettings() { - return ((BatchControllerStubSettings) getStubSettings()).createBatchOperationSettings(); - } - - /** Returns the object with the settings used for calls to getBatch. */ - public UnaryCallSettings getBatchSettings() { - return ((BatchControllerStubSettings) getStubSettings()).getBatchSettings(); - } - - /** Returns the object with the settings used for calls to listBatches. */ - public PagedCallSettings - listBatchesSettings() { - return ((BatchControllerStubSettings) getStubSettings()).listBatchesSettings(); - } - - /** Returns the object with the settings used for calls to deleteBatch. */ - public UnaryCallSettings deleteBatchSettings() { - return ((BatchControllerStubSettings) getStubSettings()).deleteBatchSettings(); - } - - public static final BatchControllerSettings create(BatchControllerStubSettings stub) - throws IOException { - return new BatchControllerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return BatchControllerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return BatchControllerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return BatchControllerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return BatchControllerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return BatchControllerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return BatchControllerStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return BatchControllerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return BatchControllerStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BatchControllerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for BatchControllerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(BatchControllerStubSettings.newBuilder(clientContext)); - } - - protected Builder(BatchControllerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(BatchControllerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(BatchControllerStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(BatchControllerStubSettings.newHttpJsonBuilder()); - } - - public BatchControllerStubSettings.Builder getStubSettingsBuilder() { - return ((BatchControllerStubSettings.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 createBatch. */ - public UnaryCallSettings.Builder createBatchSettings() { - return getStubSettingsBuilder().createBatchSettings(); - } - - /** Returns the builder for the settings used for calls to createBatch. */ - public OperationCallSettings.Builder - createBatchOperationSettings() { - return getStubSettingsBuilder().createBatchOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getBatch. */ - public UnaryCallSettings.Builder getBatchSettings() { - return getStubSettingsBuilder().getBatchSettings(); - } - - /** Returns the builder for the settings used for calls to listBatches. */ - public PagedCallSettings.Builder< - ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> - listBatchesSettings() { - return getStubSettingsBuilder().listBatchesSettings(); - } - - /** Returns the builder for the settings used for calls to deleteBatch. */ - public UnaryCallSettings.Builder deleteBatchSettings() { - return getStubSettingsBuilder().deleteBatchSettings(); - } - - @Override - public BatchControllerSettings build() throws IOException { - return new BatchControllerSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java deleted file mode 100644 index 12812a0b..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ /dev/null @@ -1,1429 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.stub.ClusterControllerStub; -import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The ClusterControllerService provides methods to manage clusters of Compute - * Engine instances. - * - *

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   String clusterName = "clusterName-1141738587";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * }
- * - *

Note: close() needs to be called on the ClusterControllerClient 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 ClusterControllerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class ClusterControllerClient implements BackgroundResource { - private final ClusterControllerSettings settings; - private final ClusterControllerStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of ClusterControllerClient with default settings. */ - public static final ClusterControllerClient create() throws IOException { - return create(ClusterControllerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ClusterControllerClient, 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 ClusterControllerClient create(ClusterControllerSettings settings) - throws IOException { - return new ClusterControllerClient(settings); - } - - /** - * Constructs an instance of ClusterControllerClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(ClusterControllerSettings). - */ - public static final ClusterControllerClient create(ClusterControllerStub stub) { - return new ClusterControllerClient(stub); - } - - /** - * Constructs an instance of ClusterControllerClient, 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 ClusterControllerClient(ClusterControllerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ClusterControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected ClusterControllerClient(ClusterControllerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final ClusterControllerSettings getSettings() { - return settings; - } - - public ClusterControllerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Cluster response =
-   *       clusterControllerClient.createClusterAsync(projectId, region, cluster).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param cluster Required. The cluster to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createClusterAsync( - String projectId, String region, Cluster cluster) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setCluster(cluster) - .build(); - return createClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0))
-   *           .build();
-   *   Cluster response = clusterControllerClient.createClusterAsync(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 createClusterAsync( - CreateClusterRequest request) { - return createClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0))
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.createClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createClusterOperationCallable() { - return stub.createClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0))
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.createClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createClusterCallable() { - return stub.createClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an - * error is returned. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Cluster response =
-   *       clusterControllerClient
-   *           .updateClusterAsync(projectId, region, clusterName, cluster, updateMask)
-   *           .get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project the cluster belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @param cluster Required. The changes to the cluster. - * @param updateMask Required. Specifies the path, relative to `Cluster`, of the field to update. - * For example, to change the number of workers in a cluster to 5, the `update_mask` parameter - * would be specified as `config.worker_config.num_instances`, and the `PATCH` request body - * would specify the new value, as follows: - *

{ "config":{ "workerConfig":{ "numInstances":"5" } } } Similarly, to change the number - * of preemptible workers in a cluster to 5, the `update_mask` parameter would be - * `config.secondary_worker_config.num_instances`, and the `PATCH` request body would be set - * as follows: - *

{ "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } - * <strong>Note:</strong> Currently, only the following fields can be updated: - *

<table> <tbody> <tr> - * <td><strong>Mask</strong></td> - * <td><strong>Purpose</strong></td> </tr> <tr> - * <td><strong><em>labels</em></strong></td> - * <td>Update labels</td> </tr> <tr> - * <td><strong><em>config.worker_config.num_instances</em></strong></td> - * <td>Resize primary worker group</td> </tr> <tr> - * <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td> - * <td>Resize secondary worker group</td> </tr> <tr> - * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or - * change autoscaling policies</td> </tr> </tbody> </table> - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateClusterAsync( - String projectId, String region, String clusterName, Cluster cluster, FieldMask updateMask) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .setCluster(cluster) - .setUpdateMask(updateMask) - .build(); - return updateClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an - * error is returned. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Cluster response = clusterControllerClient.updateClusterAsync(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 updateClusterAsync( - UpdateClusterRequest request) { - return updateClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an - * error is returned. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.updateClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateClusterOperationCallable() { - return stub.updateClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an - * error is returned. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setGracefulDecommissionTimeout(Duration.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.updateClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateClusterCallable() { - return stub.updateClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StopClusterRequest request =
-   *       StopClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Cluster response = clusterControllerClient.stopClusterAsync(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 stopClusterAsync( - StopClusterRequest request) { - return stopClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StopClusterRequest request =
-   *       StopClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.stopClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - stopClusterOperationCallable() { - return stub.stopClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Stops a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StopClusterRequest request =
-   *       StopClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.stopClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable stopClusterCallable() { - return stub.stopClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StartClusterRequest request =
-   *       StartClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Cluster response = clusterControllerClient.startClusterAsync(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 startClusterAsync( - StartClusterRequest request) { - return startClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StartClusterRequest request =
-   *       StartClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.startClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - startClusterOperationCallable() { - return stub.startClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   StartClusterRequest request =
-   *       StartClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.startClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable startClusterCallable() { - return stub.startClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteClusterAsync( - String projectId, String region, String clusterName) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return deleteClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   clusterControllerClient.deleteClusterAsync(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 deleteClusterAsync( - DeleteClusterRequest request) { - return deleteClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.deleteClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteClusterOperationCallable() { - return stub.deleteClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a cluster in a project. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setClusterUuid("clusterUuid-1141510955")
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.deleteClusterCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Cluster getCluster(String projectId, String region, String clusterName) { - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return getCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   Cluster response = clusterControllerClient.getCluster(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 Cluster getCluster(GetClusterRequest request) { - return getClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a cluster in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersPagedResponse listClusters(String projectId, String region) { - ListClustersRequest request = - ListClustersRequest.newBuilder().setProjectId(projectId).setRegion(region).build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String filter = "filter-1274492040";
-   *   for (Cluster element :
-   *       clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param filter Optional. A filter constraining the clusters to list. Filters are case-sensitive - * and have the following syntax: - *

field = value [AND [field = value]] ... - *

where **field** is one of `status.state`, `clusterName`, or - * `labels.[KEY]`, and `[KEY]` is a label key. **value** can be `*` to - * match all values. `status.state` can be one of the following: `ACTIVE`, `INACTIVE`, - * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE` contains the - * `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE` contains the `DELETING` and - * `ERROR` states. `clusterName` is the name of the cluster provided at creation time. Only - * the logical `AND` operator is supported; space-separated items are treated as having an - * implicit `AND` operator. - *

Example filter: - *

status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND - * labels.starred = * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersPagedResponse listClusters( - String projectId, String region, String filter) { - ListClustersRequest request = - ListClustersRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setFilter(filter) - .build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Cluster element : clusterControllerClient.listClusters(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 ListClustersPagedResponse listClusters(ListClustersRequest request) { - return listClustersPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.listClustersPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Cluster element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listClustersPagedCallable() { - return stub.listClustersPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all regions/{region}/clusters in a project alphabetically. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListClustersResponse response =
-   *         clusterControllerClient.listClustersCallable().call(request);
-   *     for (Cluster element : response.getClustersList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listClustersCallable() { - return stub.listClustersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String clusterName = "clusterName-1141738587";
-   *   DiagnoseClusterResults response =
-   *       clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the cluster belongs - * to. - * @param region Required. The Dataproc region in which to handle the request. - * @param clusterName Required. The cluster name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture - diagnoseClusterAsync(String projectId, String region, String clusterName) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setClusterName(clusterName) - .build(); - return diagnoseClusterAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(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 - diagnoseClusterAsync(DiagnoseClusterRequest request) { - return diagnoseClusterOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   OperationFuture future =
-   *       clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DiagnoseClusterResults response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationCallable() { - return stub.diagnoseClusterOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets cluster diagnostic information. The returned - * [Operation.metadata][google.longrunning.Operation.metadata] will be - * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - * After the operation completes, [Operation.response][google.longrunning.Operation.response] - * contains - * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
-   *   DiagnoseClusterRequest request =
-   *       DiagnoseClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setClusterName("clusterName-1141738587")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterControllerClient.diagnoseClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable diagnoseClusterCallable() { - return stub.diagnoseClusterCallable(); - } - - @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 ListClustersPagedResponse - extends AbstractPagedListResponse< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListClustersPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListClustersPagedResponse(ListClustersPage page) { - super(page, ListClustersFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListClustersPage - extends AbstractPage { - - private ListClustersPage( - PageContext context, - ListClustersResponse response) { - super(context, response); - } - - private static ListClustersPage createEmptyPage() { - return new ListClustersPage(null, null); - } - - @Override - protected ListClustersPage createPage( - PageContext context, - ListClustersResponse response) { - return new ListClustersPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListClustersFixedSizeCollection - extends AbstractFixedSizeCollection< - ListClustersRequest, - ListClustersResponse, - Cluster, - ListClustersPage, - ListClustersFixedSizeCollection> { - - private ListClustersFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListClustersFixedSizeCollection createEmptyCollection() { - return new ListClustersFixedSizeCollection(null, 0); - } - - @Override - protected ListClustersFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListClustersFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java deleted file mode 100644 index f2fc2a9a..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ClusterControllerClient}. - * - *

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

    - *
  • The default service address (dataproc.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 getCluster to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ClusterControllerSettings.Builder clusterControllerSettingsBuilder =
- *     ClusterControllerSettings.newBuilder();
- * clusterControllerSettingsBuilder
- *     .getClusterSettings()
- *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ClusterControllerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createCluster. */ - public UnaryCallSettings createClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).createClusterSettings(); - } - - /** Returns the object with the settings used for calls to createCluster. */ - public OperationCallSettings - createClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).createClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public UnaryCallSettings updateClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).updateClusterSettings(); - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public OperationCallSettings - updateClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).updateClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to stopCluster. */ - public UnaryCallSettings stopClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).stopClusterSettings(); - } - - /** Returns the object with the settings used for calls to stopCluster. */ - public OperationCallSettings - stopClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).stopClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to startCluster. */ - public UnaryCallSettings startClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).startClusterSettings(); - } - - /** Returns the object with the settings used for calls to startCluster. */ - public OperationCallSettings - startClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).startClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public UnaryCallSettings deleteClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterSettings(); - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public OperationCallSettings - deleteClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).deleteClusterOperationSettings(); - } - - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).getClusterSettings(); - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).listClustersSettings(); - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterSettings(); - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public OperationCallSettings< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings() { - return ((ClusterControllerStubSettings) getStubSettings()).diagnoseClusterOperationSettings(); - } - - public static final ClusterControllerSettings create(ClusterControllerStubSettings stub) - throws IOException { - return new ClusterControllerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ClusterControllerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ClusterControllerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ClusterControllerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ClusterControllerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ClusterControllerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return ClusterControllerStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ClusterControllerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ClusterControllerStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ClusterControllerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ClusterControllerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ClusterControllerStubSettings.newBuilder(clientContext)); - } - - protected Builder(ClusterControllerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ClusterControllerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ClusterControllerStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(ClusterControllerStubSettings.newHttpJsonBuilder()); - } - - public ClusterControllerStubSettings.Builder getStubSettingsBuilder() { - return ((ClusterControllerStubSettings.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 createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return getStubSettingsBuilder().createClusterSettings(); - } - - /** Returns the builder for the settings used for calls to createCluster. */ - public OperationCallSettings.Builder - createClusterOperationSettings() { - return getStubSettingsBuilder().createClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public UnaryCallSettings.Builder updateClusterSettings() { - return getStubSettingsBuilder().updateClusterSettings(); - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public OperationCallSettings.Builder - updateClusterOperationSettings() { - return getStubSettingsBuilder().updateClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to stopCluster. */ - public UnaryCallSettings.Builder stopClusterSettings() { - return getStubSettingsBuilder().stopClusterSettings(); - } - - /** Returns the builder for the settings used for calls to stopCluster. */ - public OperationCallSettings.Builder - stopClusterOperationSettings() { - return getStubSettingsBuilder().stopClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to startCluster. */ - public UnaryCallSettings.Builder startClusterSettings() { - return getStubSettingsBuilder().startClusterSettings(); - } - - /** Returns the builder for the settings used for calls to startCluster. */ - public OperationCallSettings.Builder - startClusterOperationSettings() { - return getStubSettingsBuilder().startClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public UnaryCallSettings.Builder deleteClusterSettings() { - return getStubSettingsBuilder().deleteClusterSettings(); - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public OperationCallSettings.Builder - deleteClusterOperationSettings() { - return getStubSettingsBuilder().deleteClusterOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getStubSettingsBuilder().getClusterSettings(); - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return getStubSettingsBuilder().listClustersSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return getStubSettingsBuilder().diagnoseClusterSettings(); - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public OperationCallSettings.Builder< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings() { - return getStubSettingsBuilder().diagnoseClusterOperationSettings(); - } - - @Override - public ClusterControllerSettings build() throws IOException { - return new ClusterControllerSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java deleted file mode 100644 index 688040ac..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java +++ /dev/null @@ -1,1064 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.stub.JobControllerStub; -import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The JobController provides methods to manage jobs. - * - *

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * }
- * - *

Note: close() needs to be called on the JobControllerClient 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 JobControllerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class JobControllerClient implements BackgroundResource { - private final JobControllerSettings settings; - private final JobControllerStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of JobControllerClient with default settings. */ - public static final JobControllerClient create() throws IOException { - return create(JobControllerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of JobControllerClient, 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 JobControllerClient create(JobControllerSettings settings) - throws IOException { - return new JobControllerClient(settings); - } - - /** - * Constructs an instance of JobControllerClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(JobControllerSettings). - */ - public static final JobControllerClient create(JobControllerStub stub) { - return new JobControllerClient(stub); - } - - /** - * Constructs an instance of JobControllerClient, 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 JobControllerClient(JobControllerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((JobControllerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected JobControllerClient(JobControllerStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final JobControllerSettings getSettings() { - return settings; - } - - public JobControllerStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJob(projectId, region, job);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param job Required. The job resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job submitJob(String projectId, String region, Job job) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder().setProjectId(projectId).setRegion(region).setJob(job).build(); - return submitJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Job response = jobControllerClient.submitJob(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 Job submitJob(SubmitJobRequest request) { - return submitJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits a job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable submitJobCallable() { - return stub.submitJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   Job job = Job.newBuilder().build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get();
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param job Required. The job resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture submitJobAsOperationAsync( - String projectId, String region, Job job) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder().setProjectId(projectId).setRegion(region).setJob(job).build(); - return submitJobAsOperationAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   Job response = jobControllerClient.submitJobAsOperationAsync(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 submitJobAsOperationAsync( - SubmitJobRequest request) { - return submitJobAsOperationOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - submitJobAsOperationOperationCallable() { - return stub.submitJobAsOperationOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Submits job to a cluster. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   SubmitJobRequest request =
-   *       SubmitJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJob(Job.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       jobControllerClient.submitJobAsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable submitJobAsOperationCallable() { - return stub.submitJobAsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   Job response = jobControllerClient.getJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job getJob(String projectId, String region, String jobId) { - GetJobRequest request = - GetJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - return getJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   GetJobRequest request =
-   *       GetJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   Job response = jobControllerClient.getJob(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 Job getJob(GetJobRequest request) { - return getJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the resource representation for a job in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   GetJobRequest request =
-   *       GetJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.getJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getJobCallable() { - return stub.getJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobsPagedResponse listJobs(String projectId, String region) { - ListJobsRequest request = - ListJobsRequest.newBuilder().setProjectId(projectId).setRegion(region).build(); - return listJobs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String filter = "filter-1274492040";
-   *   for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param filter Optional. A filter constraining the jobs to list. Filters are case-sensitive and - * have the following syntax: - *

[field = value] AND [field [= value]] ... - *

where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a - * label key. **value** can be `*` to match all values. `status.state` can - * be either `ACTIVE` or `NON_ACTIVE`. Only the logical `AND` operator is supported; - * space-separated items are treated as having an implicit `AND` operator. - *

Example filter: - *

status.state = ACTIVE AND labels.env = staging AND labels.starred = * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobsPagedResponse listJobs(String projectId, String region, String filter) { - ListJobsRequest request = - ListJobsRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setFilter(filter) - .build(); - return listJobs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Job element : jobControllerClient.listJobs(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 ListJobsPagedResponse listJobs(ListJobsRequest request) { - return listJobsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Job element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listJobsPagedCallable() { - return stub.listJobsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists regions/{region}/jobs in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   ListJobsRequest request =
-   *       ListJobsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setClusterName("clusterName-1141738587")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   while (true) {
-   *     ListJobsResponse response = jobControllerClient.listJobsCallable().call(request);
-   *     for (Job element : response.getJobsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listJobsCallable() { - return stub.listJobsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a job in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   UpdateJobRequest request =
-   *       UpdateJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .setJob(Job.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Job response = jobControllerClient.updateJob(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 Job updateJob(UpdateJobRequest request) { - return updateJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a job in a project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   UpdateJobRequest request =
-   *       UpdateJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .setJob(Job.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateJobCallable() { - return stub.updateJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   Job response = jobControllerClient.cancelJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Job cancelJob(String projectId, String region, String jobId) { - CancelJobRequest request = - CancelJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - return cancelJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   CancelJobRequest request =
-   *       CancelJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   Job response = jobControllerClient.cancelJob(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 Job cancelJob(CancelJobRequest request) { - return cancelJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts a job cancellation request. To access the job resource after cancellation, call - * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) - * or - * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   CancelJobRequest request =
-   *       CancelJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request);
-   *   // Do something.
-   *   Job response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable cancelJobCallable() { - return stub.cancelJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String region = "region-934795532";
-   *   String jobId = "jobId101296568";
-   *   jobControllerClient.deleteJob(projectId, region, jobId);
-   * }
-   * }
- * - * @param projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param region Required. The Dataproc region in which to handle the request. - * @param jobId Required. The job ID. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteJob(String projectId, String region, String jobId) { - DeleteJobRequest request = - DeleteJobRequest.newBuilder() - .setProjectId(projectId) - .setRegion(region) - .setJobId(jobId) - .build(); - deleteJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   DeleteJobRequest request =
-   *       DeleteJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   jobControllerClient.deleteJob(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteJob(DeleteJobRequest request) { - deleteJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the job from the project. If the job is active, the delete fails, and the response - * returns `FAILED_PRECONDITION`. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
-   *   DeleteJobRequest request =
-   *       DeleteJobRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setRegion("region-934795532")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteJobCallable() { - return stub.deleteJobCallable(); - } - - @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 ListJobsPagedResponse - extends AbstractPagedListResponse< - ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListJobsPagedResponse(ListJobsPage page) { - super(page, ListJobsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListJobsPage - extends AbstractPage { - - private ListJobsPage( - PageContext context, ListJobsResponse response) { - super(context, response); - } - - private static ListJobsPage createEmptyPage() { - return new ListJobsPage(null, null); - } - - @Override - protected ListJobsPage createPage( - PageContext context, ListJobsResponse response) { - return new ListJobsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListJobsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListJobsRequest, ListJobsResponse, Job, ListJobsPage, ListJobsFixedSizeCollection> { - - private ListJobsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListJobsFixedSizeCollection createEmptyCollection() { - return new ListJobsFixedSizeCollection(null, 0); - } - - @Override - protected ListJobsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListJobsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java deleted file mode 100644 index f2e480e9..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link JobControllerClient}. - * - *

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

    - *
  • The default service address (dataproc.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 submitJob to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder();
- * jobControllerSettingsBuilder
- *     .submitJobSettings()
- *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class JobControllerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to submitJob. */ - public UnaryCallSettings submitJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobSettings(); - } - - /** Returns the object with the settings used for calls to submitJobAs. */ - public UnaryCallSettings submitJobAsOperationSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationSettings(); - } - - /** Returns the object with the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings - submitJobAsOperationOperationSettings() { - return ((JobControllerStubSettings) getStubSettings()).submitJobAsOperationOperationSettings(); - } - - /** Returns the object with the settings used for calls to getJob. */ - public UnaryCallSettings getJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).getJobSettings(); - } - - /** Returns the object with the settings used for calls to listJobs. */ - public PagedCallSettings - listJobsSettings() { - return ((JobControllerStubSettings) getStubSettings()).listJobsSettings(); - } - - /** Returns the object with the settings used for calls to updateJob. */ - public UnaryCallSettings updateJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).updateJobSettings(); - } - - /** Returns the object with the settings used for calls to cancelJob. */ - public UnaryCallSettings cancelJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).cancelJobSettings(); - } - - /** Returns the object with the settings used for calls to deleteJob. */ - public UnaryCallSettings deleteJobSettings() { - return ((JobControllerStubSettings) getStubSettings()).deleteJobSettings(); - } - - public static final JobControllerSettings create(JobControllerStubSettings stub) - throws IOException { - return new JobControllerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return JobControllerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return JobControllerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return JobControllerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return JobControllerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return JobControllerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return JobControllerStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return JobControllerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return JobControllerStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected JobControllerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for JobControllerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(JobControllerStubSettings.newBuilder(clientContext)); - } - - protected Builder(JobControllerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(JobControllerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(JobControllerStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(JobControllerStubSettings.newHttpJsonBuilder()); - } - - public JobControllerStubSettings.Builder getStubSettingsBuilder() { - return ((JobControllerStubSettings.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 submitJob. */ - public UnaryCallSettings.Builder submitJobSettings() { - return getStubSettingsBuilder().submitJobSettings(); - } - - /** Returns the builder for the settings used for calls to submitJobAs. */ - public UnaryCallSettings.Builder submitJobAsOperationSettings() { - return getStubSettingsBuilder().submitJobAsOperationSettings(); - } - - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings.Builder - submitJobAsOperationOperationSettings() { - return getStubSettingsBuilder().submitJobAsOperationOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getJob. */ - public UnaryCallSettings.Builder getJobSettings() { - return getStubSettingsBuilder().getJobSettings(); - } - - /** Returns the builder for the settings used for calls to listJobs. */ - public PagedCallSettings.Builder - listJobsSettings() { - return getStubSettingsBuilder().listJobsSettings(); - } - - /** Returns the builder for the settings used for calls to updateJob. */ - public UnaryCallSettings.Builder updateJobSettings() { - return getStubSettingsBuilder().updateJobSettings(); - } - - /** Returns the builder for the settings used for calls to cancelJob. */ - public UnaryCallSettings.Builder cancelJobSettings() { - return getStubSettingsBuilder().cancelJobSettings(); - } - - /** Returns the builder for the settings used for calls to deleteJob. */ - public UnaryCallSettings.Builder deleteJobSettings() { - return getStubSettingsBuilder().deleteJobSettings(); - } - - @Override - public JobControllerSettings build() throws IOException { - return new JobControllerSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java deleted file mode 100644 index 001a4918..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ /dev/null @@ -1,1934 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStub; -import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: The API interface for managing Workflow Templates in the Dataproc API. - * - *

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

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

Note: close() needs to be called on the WorkflowTemplateServiceClient 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 - * WorkflowTemplateServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceClient implements BackgroundResource { - private final WorkflowTemplateServiceSettings settings; - private final WorkflowTemplateServiceStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of WorkflowTemplateServiceClient with default settings. */ - public static final WorkflowTemplateServiceClient create() throws IOException { - return create(WorkflowTemplateServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, 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 WorkflowTemplateServiceClient create(WorkflowTemplateServiceSettings settings) - throws IOException { - return new WorkflowTemplateServiceClient(settings); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer using create(WorkflowTemplateServiceSettings). - */ - public static final WorkflowTemplateServiceClient create(WorkflowTemplateServiceStub stub) { - return new WorkflowTemplateServiceClient(stub); - } - - /** - * Constructs an instance of WorkflowTemplateServiceClient, 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 WorkflowTemplateServiceClient(WorkflowTemplateServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((WorkflowTemplateServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected WorkflowTemplateServiceClient(WorkflowTemplateServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final WorkflowTemplateServiceSettings getSettings() { - return settings; - } - - public WorkflowTemplateServiceStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - LocationName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate( - RegionName parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response =
-   *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.create`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.create`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The Dataproc workflow template to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate createWorkflowTemplate(String parent, WorkflowTemplate template) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder().setParent(parent).setTemplate(template).build(); - return createWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   CreateWorkflowTemplateRequest request =
-   *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(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 WorkflowTemplate createWorkflowTemplate(CreateWorkflowTemplateRequest request) { - return createWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new workflow template. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   CreateWorkflowTemplateRequest request =
-   *       CreateWorkflowTemplateRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createWorkflowTemplateCallable() { - return stub.createWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(WorkflowTemplateName name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.get`, the resource name of the template has - * the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate getWorkflowTemplate(String name) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder().setName(name).build(); - return getWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   GetWorkflowTemplateRequest request =
-   *       GetWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(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 WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest request) { - return getWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the latest workflow template. - * - *

Can retrieve previously instantiated template by specifying optional version parameter. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   GetWorkflowTemplateRequest request =
-   *       GetWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getWorkflowTemplateCallable() { - return stub.getWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - String name) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder().setName(name).build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
-   *   Map parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 1000 characters. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - WorkflowTemplateName name, Map parameters) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .putAllParameters(parameters) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   Map parameters = new HashMap<>();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get();
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @param parameters Optional. Map from parameter names to values that should be used for those - * parameters. Values may not exceed 1000 characters. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateWorkflowTemplateAsync( - String name, Map parameters) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName(name) - .putAllParameters(parameters) - .build(); - return instantiateWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(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 instantiateWorkflowTemplateAsync( - InstantiateWorkflowTemplateRequest request) { - return instantiateWorkflowTemplateOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   OperationFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateWorkflowTemplateOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return stub.instantiateWorkflowTemplateOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateWorkflowTemplateRequest request =
-   *       InstantiateWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .setRequestId("requestId693933066")
-   *           .putAllParameters(new HashMap())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - instantiateWorkflowTemplateCallable() { - return stub.instantiateWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - LocationName parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - RegionName parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,instantiateinline`, the resource name of the - * region has the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiateinline`, the resource name of - * the location has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @param template Required. The workflow template to instantiate. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture instantiateInlineWorkflowTemplateAsync( - String parent, WorkflowTemplate template) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(parent) - .setTemplate(template) - .build(); - return instantiateInlineWorkflowTemplateAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(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 instantiateInlineWorkflowTemplateAsync( - InstantiateInlineWorkflowTemplateRequest request) { - return instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateInlineWorkflowTemplateOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return stub.instantiateInlineWorkflowTemplateOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Instantiates a template and begins execution. - * - *

This method is equivalent to executing the sequence - * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], - * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - * - *

The returned Operation can be used to track execution of workflow by polling - * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when - * entire workflow is finished. - * - *

The running workflow can be aborted via - * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any - * inflight jobs to be cancelled and workflow-owned clusters to be deleted. - * - *

The [Operation.metadata][google.longrunning.Operation.metadata] will be - * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - * Also see [Using - * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - * - *

On successful completion, [Operation.response][google.longrunning.Operation.response] will - * be [Empty][google.protobuf.Empty]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   InstantiateInlineWorkflowTemplateRequest request =
-   *       InstantiateInlineWorkflowTemplateRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient
-   *           .instantiateInlineWorkflowTemplateCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - return stub.instantiateInlineWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template);
-   * }
-   * }
- * - * @param template Required. The updated workflow template. - *

The `template.version` field must match the current version. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WorkflowTemplate updateWorkflowTemplate(WorkflowTemplate template) { - UpdateWorkflowTemplateRequest request = - UpdateWorkflowTemplateRequest.newBuilder().setTemplate(template).build(); - return updateWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   UpdateWorkflowTemplateRequest request =
-   *       UpdateWorkflowTemplateRequest.newBuilder()
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(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 WorkflowTemplate updateWorkflowTemplate(UpdateWorkflowTemplateRequest request) { - return updateWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates (replaces) workflow template. The updated template must contain version that matches - * the current server version. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   UpdateWorkflowTemplateRequest request =
-   *       UpdateWorkflowTemplateRequest.newBuilder()
-   *           .setTemplate(WorkflowTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   WorkflowTemplate response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateWorkflowTemplateCallable() { - return stub.updateWorkflowTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(LocationName parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(RegionName parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String parent = RegionName.of("[PROJECT]", "[REGION]").toString();
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name of the region or location, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates,list`, the resource name of the region has - * the following format: `projects/{project_id}/regions/{region}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.list`, the resource name of the location - * has the following format: `projects/{project_id}/locations/{location}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWorkflowTemplatesPagedResponse listWorkflowTemplates(String parent) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder().setParent(parent).build(); - return listWorkflowTemplates(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (WorkflowTemplate element :
-   *       workflowTemplateServiceClient.listWorkflowTemplates(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 ListWorkflowTemplatesPagedResponse listWorkflowTemplates( - ListWorkflowTemplatesRequest request) { - return listWorkflowTemplatesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (WorkflowTemplate element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowTemplatesPagedCallable() { - return stub.listWorkflowTemplatesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists workflows that match the specified filter in the request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   ListWorkflowTemplatesRequest request =
-   *       ListWorkflowTemplatesRequest.newBuilder()
-   *           .setParent(RegionName.of("[PROJECT]", "[REGION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListWorkflowTemplatesResponse response =
-   *         workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request);
-   *     for (WorkflowTemplate element : response.getTemplatesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWorkflowTemplatesCallable() { - return stub.listWorkflowTemplatesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   WorkflowTemplateName name =
-   *       WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *           "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]");
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(WorkflowTemplateName name) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   String name =
-   *       WorkflowTemplateName.ofProjectRegionWorkflowTemplateName(
-   *               "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]")
-   *           .toString();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the workflow template, as described in - * https://cloud.google.com/apis/design/resource_names. - *
    - *
  • For `projects.regions.workflowTemplates.delete`, the resource name of the template - * has the following format: - * `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - *
- *
    - *
  • For `projects.locations.workflowTemplates.instantiate`, the resource name of the - * template has the following format: - * `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(String name) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder().setName(name).build(); - deleteWorkflowTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   DeleteWorkflowTemplateRequest request =
-   *       DeleteWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   workflowTemplateServiceClient.deleteWorkflowTemplate(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request) { - deleteWorkflowTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a workflow template. It does not cancel in-progress workflows. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
-   *     WorkflowTemplateServiceClient.create()) {
-   *   DeleteWorkflowTemplateRequest request =
-   *       DeleteWorkflowTemplateRequest.newBuilder()
-   *           .setName(
-   *               WorkflowTemplateName.ofProjectLocationWorkflowTemplateName(
-   *                       "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]")
-   *                   .toString())
-   *           .setVersion(351608024)
-   *           .build();
-   *   ApiFuture future =
-   *       workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteWorkflowTemplateCallable() { - return stub.deleteWorkflowTemplateCallable(); - } - - @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 ListWorkflowTemplatesPagedResponse - extends AbstractPagedListResponse< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage, - ListWorkflowTemplatesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListWorkflowTemplatesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListWorkflowTemplatesPagedResponse(ListWorkflowTemplatesPage page) { - super(page, ListWorkflowTemplatesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListWorkflowTemplatesPage - extends AbstractPage< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage> { - - private ListWorkflowTemplatesPage( - PageContext - context, - ListWorkflowTemplatesResponse response) { - super(context, response); - } - - private static ListWorkflowTemplatesPage createEmptyPage() { - return new ListWorkflowTemplatesPage(null, null); - } - - @Override - protected ListWorkflowTemplatesPage createPage( - PageContext - context, - ListWorkflowTemplatesResponse response) { - return new ListWorkflowTemplatesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListWorkflowTemplatesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - WorkflowTemplate, - ListWorkflowTemplatesPage, - ListWorkflowTemplatesFixedSizeCollection> { - - private ListWorkflowTemplatesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListWorkflowTemplatesFixedSizeCollection createEmptyCollection() { - return new ListWorkflowTemplatesFixedSizeCollection(null, 0); - } - - @Override - protected ListWorkflowTemplatesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListWorkflowTemplatesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java deleted file mode 100644 index 9224a7d5..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link WorkflowTemplateServiceClient}. - * - *

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

    - *
  • The default service address (dataproc.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 createWorkflowTemplate to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder =
- *     WorkflowTemplateServiceSettings.newBuilder();
- * workflowTemplateServiceSettingsBuilder
- *     .createWorkflowTemplateSettings()
- *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder
- *             .createWorkflowTemplateSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * WorkflowTemplateServiceSettings workflowTemplateServiceSettings =
- *     workflowTemplateServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .createWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()).getWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings - instantiateWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings - instantiateWorkflowTemplateOperationSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateWorkflowTemplateOperationSettings(); - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings - instantiateInlineWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateInlineWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings - instantiateInlineWorkflowTemplateOperationSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .instantiateInlineWorkflowTemplateOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings - updateWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .updateWorkflowTemplateSettings(); - } - - /** Returns the object with the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .listWorkflowTemplatesSettings(); - } - - /** Returns the object with the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings deleteWorkflowTemplateSettings() { - return ((WorkflowTemplateServiceStubSettings) getStubSettings()) - .deleteWorkflowTemplateSettings(); - } - - public static final WorkflowTemplateServiceSettings create( - WorkflowTemplateServiceStubSettings stub) throws IOException { - return new WorkflowTemplateServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return WorkflowTemplateServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return WorkflowTemplateServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return WorkflowTemplateServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected WorkflowTemplateServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for WorkflowTemplateServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(WorkflowTemplateServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(WorkflowTemplateServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(WorkflowTemplateServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(WorkflowTemplateServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(WorkflowTemplateServiceStubSettings.newHttpJsonBuilder()); - } - - public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() { - return ((WorkflowTemplateServiceStubSettings.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 createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return getStubSettingsBuilder().createWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getStubSettingsBuilder().getWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings() { - return getStubSettingsBuilder().instantiateWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings() { - return getStubSettingsBuilder().instantiateWorkflowTemplateOperationSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings() { - return getStubSettingsBuilder().instantiateInlineWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings() { - return getStubSettingsBuilder().instantiateInlineWorkflowTemplateOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings.Builder - updateWorkflowTemplateSettings() { - return getStubSettingsBuilder().updateWorkflowTemplateSettings(); - } - - /** Returns the builder for the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return getStubSettingsBuilder().listWorkflowTemplatesSettings(); - } - - /** Returns the builder for the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings.Builder - deleteWorkflowTemplateSettings() { - return getStubSettingsBuilder().deleteWorkflowTemplateSettings(); - } - - @Override - public WorkflowTemplateServiceSettings build() throws IOException { - return new WorkflowTemplateServiceSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json deleted file mode 100644 index 26e0eeb5..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.dataproc.v1", - "libraryPackage": "com.google.cloud.dataproc.v1", - "services": { - "AutoscalingPolicyService": { - "clients": { - "grpc": { - "libraryClient": "AutoscalingPolicyServiceClient", - "rpcs": { - "CreateAutoscalingPolicy": { - "methods": ["createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicy", "createAutoscalingPolicyCallable"] - }, - "DeleteAutoscalingPolicy": { - "methods": ["deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicy", "deleteAutoscalingPolicyCallable"] - }, - "GetAutoscalingPolicy": { - "methods": ["getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicy", "getAutoscalingPolicyCallable"] - }, - "ListAutoscalingPolicies": { - "methods": ["listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPolicies", "listAutoscalingPoliciesPagedCallable", "listAutoscalingPoliciesCallable"] - }, - "UpdateAutoscalingPolicy": { - "methods": ["updateAutoscalingPolicy", "updateAutoscalingPolicy", "updateAutoscalingPolicyCallable"] - } - } - } - } - }, - "BatchController": { - "clients": { - "grpc": { - "libraryClient": "BatchControllerClient", - "rpcs": { - "CreateBatch": { - "methods": ["createBatchAsync", "createBatchAsync", "createBatchAsync", "createBatchOperationCallable", "createBatchCallable"] - }, - "DeleteBatch": { - "methods": ["deleteBatch", "deleteBatch", "deleteBatch", "deleteBatchCallable"] - }, - "GetBatch": { - "methods": ["getBatch", "getBatch", "getBatch", "getBatchCallable"] - }, - "ListBatches": { - "methods": ["listBatches", "listBatches", "listBatches", "listBatchesPagedCallable", "listBatchesCallable"] - } - } - } - } - }, - "ClusterController": { - "clients": { - "grpc": { - "libraryClient": "ClusterControllerClient", - "rpcs": { - "CreateCluster": { - "methods": ["createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] - }, - "DeleteCluster": { - "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] - }, - "DiagnoseCluster": { - "methods": ["diagnoseClusterAsync", "diagnoseClusterAsync", "diagnoseClusterOperationCallable", "diagnoseClusterCallable"] - }, - "GetCluster": { - "methods": ["getCluster", "getCluster", "getClusterCallable"] - }, - "ListClusters": { - "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] - }, - "StartCluster": { - "methods": ["startClusterAsync", "startClusterOperationCallable", "startClusterCallable"] - }, - "StopCluster": { - "methods": ["stopClusterAsync", "stopClusterOperationCallable", "stopClusterCallable"] - }, - "UpdateCluster": { - "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] - } - } - } - } - }, - "JobController": { - "clients": { - "grpc": { - "libraryClient": "JobControllerClient", - "rpcs": { - "CancelJob": { - "methods": ["cancelJob", "cancelJob", "cancelJobCallable"] - }, - "DeleteJob": { - "methods": ["deleteJob", "deleteJob", "deleteJobCallable"] - }, - "GetJob": { - "methods": ["getJob", "getJob", "getJobCallable"] - }, - "ListJobs": { - "methods": ["listJobs", "listJobs", "listJobs", "listJobsPagedCallable", "listJobsCallable"] - }, - "SubmitJob": { - "methods": ["submitJob", "submitJob", "submitJobCallable"] - }, - "SubmitJobAsOperation": { - "methods": ["submitJobAsOperationAsync", "submitJobAsOperationAsync", "submitJobAsOperationOperationCallable", "submitJobAsOperationCallable"] - }, - "UpdateJob": { - "methods": ["updateJob", "updateJobCallable"] - } - } - } - } - }, - "WorkflowTemplateService": { - "clients": { - "grpc": { - "libraryClient": "WorkflowTemplateServiceClient", - "rpcs": { - "CreateWorkflowTemplate": { - "methods": ["createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplate", "createWorkflowTemplateCallable"] - }, - "DeleteWorkflowTemplate": { - "methods": ["deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplate", "deleteWorkflowTemplateCallable"] - }, - "GetWorkflowTemplate": { - "methods": ["getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplate", "getWorkflowTemplateCallable"] - }, - "InstantiateInlineWorkflowTemplate": { - "methods": ["instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateAsync", "instantiateInlineWorkflowTemplateOperationCallable", "instantiateInlineWorkflowTemplateCallable"] - }, - "InstantiateWorkflowTemplate": { - "methods": ["instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateAsync", "instantiateWorkflowTemplateOperationCallable", "instantiateWorkflowTemplateCallable"] - }, - "ListWorkflowTemplates": { - "methods": ["listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplates", "listWorkflowTemplatesPagedCallable", "listWorkflowTemplatesCallable"] - }, - "UpdateWorkflowTemplate": { - "methods": ["updateWorkflowTemplate", "updateWorkflowTemplate", "updateWorkflowTemplateCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java deleted file mode 100644 index 7f608efc..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= AutoscalingPolicyServiceClient ======================= - * - *

Service Description: The API interface for managing autoscaling policies in the Dataproc API. - * - *

Sample for AutoscalingPolicyServiceClient: - * - *

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

======================= BatchControllerClient ======================= - * - *

Service Description: The BatchController provides methods to manage batch workloads. - * - *

Sample for BatchControllerClient: - * - *

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

======================= ClusterControllerClient ======================= - * - *

Service Description: The ClusterControllerService provides methods to manage clusters of - * Compute Engine instances. - * - *

Sample for ClusterControllerClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   String clusterName = "clusterName-1141738587";
- *   Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName);
- * }
- * }
- * - *

======================= JobControllerClient ======================= - * - *

Service Description: The JobController provides methods to manage jobs. - * - *

Sample for JobControllerClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (JobControllerClient jobControllerClient = JobControllerClient.create()) {
- *   String projectId = "projectId-894832108";
- *   String region = "region-934795532";
- *   Job job = Job.newBuilder().build();
- *   Job response = jobControllerClient.submitJob(projectId, region, job);
- * }
- * }
- * - *

======================= WorkflowTemplateServiceClient ======================= - * - *

Service Description: The API interface for managing Workflow Templates in the Dataproc API. - * - *

Sample for WorkflowTemplateServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (WorkflowTemplateServiceClient workflowTemplateServiceClient =
- *     WorkflowTemplateServiceClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- *   WorkflowTemplate response =
- *       workflowTemplateServiceClient.createWorkflowTemplate(parent, template);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.dataproc.v1; - -import javax.annotation.Generated; diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java deleted file mode 100644 index 71613b6d..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class AutoscalingPolicyServiceStub implements BackgroundResource { - - public UnaryCallable - createAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: createAutoscalingPolicyCallable()"); - } - - public UnaryCallable - updateAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: updateAutoscalingPolicyCallable()"); - } - - public UnaryCallable - getAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getAutoscalingPolicyCallable()"); - } - - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listAutoscalingPoliciesPagedCallable()"); - } - - public UnaryCallable - listAutoscalingPoliciesCallable() { - throw new UnsupportedOperationException("Not implemented: listAutoscalingPoliciesCallable()"); - } - - public UnaryCallable deleteAutoscalingPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAutoscalingPolicyCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java deleted file mode 100644 index 9394126b..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -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 AutoscalingPolicyServiceStub}. - * - *

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

    - *
  • The default service address (dataproc.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 createAutoscalingPolicy to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
- *     AutoscalingPolicyServiceStubSettings.newBuilder();
- * autoscalingPolicyServiceSettingsBuilder
- *     .createAutoscalingPolicySettings()
- *     .setRetrySettings(
- *         autoscalingPolicyServiceSettingsBuilder
- *             .createAutoscalingPolicySettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings =
- *     autoscalingPolicyServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings - createAutoscalingPolicySettings; - private final UnaryCallSettings - updateAutoscalingPolicySettings; - private final UnaryCallSettings - getAutoscalingPolicySettings; - private final PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings; - private final UnaryCallSettings - deleteAutoscalingPolicySettings; - - private static final PagedListDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy> - LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC = - new PagedListDescriptor< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAutoscalingPoliciesRequest injectToken( - ListAutoscalingPoliciesRequest payload, String token) { - return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListAutoscalingPoliciesRequest injectPageSize( - ListAutoscalingPoliciesRequest payload, int pageSize) { - return ListAutoscalingPoliciesRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAutoscalingPoliciesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAutoscalingPoliciesResponse payload) { - return payload.getPoliciesList() == null - ? ImmutableList.of() - : payload.getPoliciesList(); - } - }; - - private static final PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAutoscalingPoliciesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - AutoscalingPolicy> - pageContext = - PageContext.create( - callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context); - return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createAutoscalingPolicy. */ - public UnaryCallSettings - createAutoscalingPolicySettings() { - return createAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings - updateAutoscalingPolicySettings() { - return updateAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings - getAutoscalingPolicySettings() { - return getAutoscalingPolicySettings; - } - - /** Returns the object with the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return listAutoscalingPoliciesSettings; - } - - /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings - deleteAutoscalingPolicySettings() { - return deleteAutoscalingPolicySettings; - } - - public AutoscalingPolicyServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAutoscalingPolicyServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonAutoscalingPolicyServiceStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AutoscalingPolicyServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AutoscalingPolicyServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AutoscalingPolicyServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AutoscalingPolicyServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createAutoscalingPolicySettings = settingsBuilder.createAutoscalingPolicySettings().build(); - updateAutoscalingPolicySettings = settingsBuilder.updateAutoscalingPolicySettings().build(); - getAutoscalingPolicySettings = settingsBuilder.getAutoscalingPolicySettings().build(); - listAutoscalingPoliciesSettings = settingsBuilder.listAutoscalingPoliciesSettings().build(); - deleteAutoscalingPolicySettings = settingsBuilder.deleteAutoscalingPolicySettings().build(); - } - - /** Builder for AutoscalingPolicyServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createAutoscalingPolicySettings; - private final UnaryCallSettings.Builder - updateAutoscalingPolicySettings; - private final UnaryCallSettings.Builder - getAutoscalingPolicySettings; - private final PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings; - private final UnaryCallSettings.Builder - deleteAutoscalingPolicySettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("no_retry_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAutoscalingPoliciesSettings = - PagedCallSettings.newBuilder(LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT); - deleteAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - initDefaults(this); - } - - protected Builder(AutoscalingPolicyServiceStubSettings settings) { - super(settings); - - createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder(); - updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder(); - getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder(); - listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder(); - deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createAutoscalingPolicySettings, - updateAutoscalingPolicySettings, - getAutoscalingPolicySettings, - listAutoscalingPoliciesSettings, - deleteAutoscalingPolicySettings); - } - - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .updateAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listAutoscalingPoliciesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .deleteAutoscalingPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_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 createAutoscalingPolicy. */ - public UnaryCallSettings.Builder - createAutoscalingPolicySettings() { - return createAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */ - public UnaryCallSettings.Builder - updateAutoscalingPolicySettings() { - return updateAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */ - public UnaryCallSettings.Builder - getAutoscalingPolicySettings() { - return getAutoscalingPolicySettings; - } - - /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */ - public PagedCallSettings.Builder< - ListAutoscalingPoliciesRequest, - ListAutoscalingPoliciesResponse, - ListAutoscalingPoliciesPagedResponse> - listAutoscalingPoliciesSettings() { - return listAutoscalingPoliciesSettings; - } - - /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */ - public UnaryCallSettings.Builder - deleteAutoscalingPolicySettings() { - return deleteAutoscalingPolicySettings; - } - - @Override - public AutoscalingPolicyServiceStubSettings build() throws IOException { - return new AutoscalingPolicyServiceStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java deleted file mode 100644 index 83554c32..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStub.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -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.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchOperationMetadata; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.cloud.dataproc.v1.GetBatchRequest; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.ListBatchesResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the BatchController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class BatchControllerStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public OperationCallable - createBatchOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createBatchOperationCallable()"); - } - - public UnaryCallable createBatchCallable() { - throw new UnsupportedOperationException("Not implemented: createBatchCallable()"); - } - - public UnaryCallable getBatchCallable() { - throw new UnsupportedOperationException("Not implemented: getBatchCallable()"); - } - - public UnaryCallable listBatchesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listBatchesPagedCallable()"); - } - - public UnaryCallable listBatchesCallable() { - throw new UnsupportedOperationException("Not implemented: listBatchesCallable()"); - } - - public UnaryCallable deleteBatchCallable() { - throw new UnsupportedOperationException("Not implemented: deleteBatchCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java deleted file mode 100644 index 6dc2d972..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/BatchControllerStubSettings.java +++ /dev/null @@ -1,496 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchOperationMetadata; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.cloud.dataproc.v1.GetBatchRequest; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.ListBatchesResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link BatchControllerStub}. - * - *

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

    - *
  • The default service address (dataproc.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 getBatch to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BatchControllerStubSettings.Builder batchControllerSettingsBuilder =
- *     BatchControllerStubSettings.newBuilder();
- * batchControllerSettingsBuilder
- *     .getBatchSettings()
- *     .setRetrySettings(
- *         batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class BatchControllerStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings createBatchSettings; - private final OperationCallSettings - createBatchOperationSettings; - private final UnaryCallSettings getBatchSettings; - private final PagedCallSettings - listBatchesSettings; - private final UnaryCallSettings deleteBatchSettings; - - private static final PagedListDescriptor - LIST_BATCHES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListBatchesRequest injectToken(ListBatchesRequest payload, String token) { - return ListBatchesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListBatchesRequest injectPageSize(ListBatchesRequest payload, int pageSize) { - return ListBatchesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListBatchesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListBatchesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListBatchesResponse payload) { - return payload.getBatchesList() == null - ? ImmutableList.of() - : payload.getBatchesList(); - } - }; - - private static final PagedListResponseFactory< - ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> - LIST_BATCHES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListBatchesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_BATCHES_PAGE_STR_DESC, request, context); - return ListBatchesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createBatch. */ - public UnaryCallSettings createBatchSettings() { - return createBatchSettings; - } - - /** Returns the object with the settings used for calls to createBatch. */ - public OperationCallSettings - createBatchOperationSettings() { - return createBatchOperationSettings; - } - - /** Returns the object with the settings used for calls to getBatch. */ - public UnaryCallSettings getBatchSettings() { - return getBatchSettings; - } - - /** Returns the object with the settings used for calls to listBatches. */ - public PagedCallSettings - listBatchesSettings() { - return listBatchesSettings; - } - - /** Returns the object with the settings used for calls to deleteBatch. */ - public UnaryCallSettings deleteBatchSettings() { - return deleteBatchSettings; - } - - public BatchControllerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcBatchControllerStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonBatchControllerStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BatchControllerStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BatchControllerStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return BatchControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BatchControllerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createBatchSettings = settingsBuilder.createBatchSettings().build(); - createBatchOperationSettings = settingsBuilder.createBatchOperationSettings().build(); - getBatchSettings = settingsBuilder.getBatchSettings().build(); - listBatchesSettings = settingsBuilder.listBatchesSettings().build(); - deleteBatchSettings = settingsBuilder.deleteBatchSettings().build(); - } - - /** Builder for BatchControllerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createBatchSettings; - private final OperationCallSettings.Builder - createBatchOperationSettings; - private final UnaryCallSettings.Builder getBatchSettings; - private final PagedCallSettings.Builder< - ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> - listBatchesSettings; - private final UnaryCallSettings.Builder deleteBatchSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createBatchOperationSettings = OperationCallSettings.newBuilder(); - getBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listBatchesSettings = PagedCallSettings.newBuilder(LIST_BATCHES_PAGE_STR_FACT); - deleteBatchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createBatchSettings, getBatchSettings, listBatchesSettings, deleteBatchSettings); - initDefaults(this); - } - - protected Builder(BatchControllerStubSettings settings) { - super(settings); - - createBatchSettings = settings.createBatchSettings.toBuilder(); - createBatchOperationSettings = settings.createBatchOperationSettings.toBuilder(); - getBatchSettings = settings.getBatchSettings.toBuilder(); - listBatchesSettings = settings.listBatchesSettings.toBuilder(); - deleteBatchSettings = settings.deleteBatchSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createBatchSettings, getBatchSettings, listBatchesSettings, deleteBatchSettings); - } - - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createBatchSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getBatchSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listBatchesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteBatchSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createBatchOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Batch.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BatchOperationMetadata.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; - } - - /** - * 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 createBatch. */ - public UnaryCallSettings.Builder createBatchSettings() { - return createBatchSettings; - } - - /** Returns the builder for the settings used for calls to createBatch. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createBatchOperationSettings() { - return createBatchOperationSettings; - } - - /** Returns the builder for the settings used for calls to getBatch. */ - public UnaryCallSettings.Builder getBatchSettings() { - return getBatchSettings; - } - - /** Returns the builder for the settings used for calls to listBatches. */ - public PagedCallSettings.Builder< - ListBatchesRequest, ListBatchesResponse, ListBatchesPagedResponse> - listBatchesSettings() { - return listBatchesSettings; - } - - /** Returns the builder for the settings used for calls to deleteBatch. */ - public UnaryCallSettings.Builder deleteBatchSettings() { - return deleteBatchSettings; - } - - @Override - public BatchControllerStubSettings build() throws IOException { - return new BatchControllerStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java deleted file mode 100644 index ba43eba8..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -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.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; -import com.google.cloud.dataproc.v1.GetClusterRequest; -import com.google.cloud.dataproc.v1.ListClustersRequest; -import com.google.cloud.dataproc.v1.ListClustersResponse; -import com.google.cloud.dataproc.v1.StartClusterRequest; -import com.google.cloud.dataproc.v1.StopClusterRequest; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ClusterController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class ClusterControllerStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public OperationCallable - createClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createClusterOperationCallable()"); - } - - public UnaryCallable createClusterCallable() { - throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); - } - - public OperationCallable - updateClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: updateClusterOperationCallable()"); - } - - public UnaryCallable updateClusterCallable() { - throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); - } - - public OperationCallable - stopClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: stopClusterOperationCallable()"); - } - - public UnaryCallable stopClusterCallable() { - throw new UnsupportedOperationException("Not implemented: stopClusterCallable()"); - } - - public OperationCallable - startClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: startClusterOperationCallable()"); - } - - public UnaryCallable startClusterCallable() { - throw new UnsupportedOperationException("Not implemented: startClusterCallable()"); - } - - public OperationCallable - deleteClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); - } - - public UnaryCallable deleteClusterCallable() { - throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); - } - - public UnaryCallable getClusterCallable() { - throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); - } - - public UnaryCallable listClustersPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listClustersPagedCallable()"); - } - - public UnaryCallable listClustersCallable() { - throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); - } - - public OperationCallable - diagnoseClusterOperationCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterOperationCallable()"); - } - - public UnaryCallable diagnoseClusterCallable() { - throw new UnsupportedOperationException("Not implemented: diagnoseClusterCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java deleted file mode 100644 index 3c06e344..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java +++ /dev/null @@ -1,864 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; -import com.google.cloud.dataproc.v1.GetClusterRequest; -import com.google.cloud.dataproc.v1.ListClustersRequest; -import com.google.cloud.dataproc.v1.ListClustersResponse; -import com.google.cloud.dataproc.v1.StartClusterRequest; -import com.google.cloud.dataproc.v1.StopClusterRequest; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ClusterControllerStub}. - * - *

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

    - *
  • The default service address (dataproc.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 getCluster to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder =
- *     ClusterControllerStubSettings.newBuilder();
- * clusterControllerSettingsBuilder
- *     .getClusterSettings()
- *     .setRetrySettings(
- *         clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterControllerStubSettings clusterControllerSettings =
- *     clusterControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ClusterControllerStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings createClusterSettings; - private final OperationCallSettings - createClusterOperationSettings; - private final UnaryCallSettings updateClusterSettings; - private final OperationCallSettings - updateClusterOperationSettings; - private final UnaryCallSettings stopClusterSettings; - private final OperationCallSettings - stopClusterOperationSettings; - private final UnaryCallSettings startClusterSettings; - private final OperationCallSettings - startClusterOperationSettings; - private final UnaryCallSettings deleteClusterSettings; - private final OperationCallSettings - deleteClusterOperationSettings; - private final UnaryCallSettings getClusterSettings; - private final PagedCallSettings< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private final UnaryCallSettings diagnoseClusterSettings; - private final OperationCallSettings< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings; - - private static final PagedListDescriptor - LIST_CLUSTERS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListClustersRequest injectToken(ListClustersRequest payload, String token) { - return ListClustersRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListClustersRequest injectPageSize(ListClustersRequest payload, int pageSize) { - return ListClustersRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListClustersRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListClustersResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListClustersResponse payload) { - return payload.getClustersList() == null - ? ImmutableList.of() - : payload.getClustersList(); - } - }; - - private static final PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - LIST_CLUSTERS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListClustersRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_CLUSTERS_PAGE_STR_DESC, request, context); - return ListClustersPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createCluster. */ - public UnaryCallSettings createClusterSettings() { - return createClusterSettings; - } - - /** Returns the object with the settings used for calls to createCluster. */ - public OperationCallSettings - createClusterOperationSettings() { - return createClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public UnaryCallSettings updateClusterSettings() { - return updateClusterSettings; - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public OperationCallSettings - updateClusterOperationSettings() { - return updateClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to stopCluster. */ - public UnaryCallSettings stopClusterSettings() { - return stopClusterSettings; - } - - /** Returns the object with the settings used for calls to stopCluster. */ - public OperationCallSettings - stopClusterOperationSettings() { - return stopClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to startCluster. */ - public UnaryCallSettings startClusterSettings() { - return startClusterSettings; - } - - /** Returns the object with the settings used for calls to startCluster. */ - public OperationCallSettings - startClusterOperationSettings() { - return startClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public UnaryCallSettings deleteClusterSettings() { - return deleteClusterSettings; - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public OperationCallSettings - deleteClusterOperationSettings() { - return deleteClusterOperationSettings; - } - - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return getClusterSettings; - } - - /** Returns the object with the settings used for calls to listClusters. */ - public PagedCallSettings - listClustersSettings() { - return listClustersSettings; - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings diagnoseClusterSettings() { - return diagnoseClusterSettings; - } - - /** Returns the object with the settings used for calls to diagnoseCluster. */ - public OperationCallSettings< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings() { - return diagnoseClusterOperationSettings; - } - - public ClusterControllerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcClusterControllerStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonClusterControllerStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ClusterControllerStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ClusterControllerStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ClusterControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ClusterControllerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createClusterSettings = settingsBuilder.createClusterSettings().build(); - createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); - updateClusterSettings = settingsBuilder.updateClusterSettings().build(); - updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); - stopClusterSettings = settingsBuilder.stopClusterSettings().build(); - stopClusterOperationSettings = settingsBuilder.stopClusterOperationSettings().build(); - startClusterSettings = settingsBuilder.startClusterSettings().build(); - startClusterOperationSettings = settingsBuilder.startClusterOperationSettings().build(); - deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); - deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); - getClusterSettings = settingsBuilder.getClusterSettings().build(); - listClustersSettings = settingsBuilder.listClustersSettings().build(); - diagnoseClusterSettings = settingsBuilder.diagnoseClusterSettings().build(); - diagnoseClusterOperationSettings = settingsBuilder.diagnoseClusterOperationSettings().build(); - } - - /** Builder for ClusterControllerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createClusterSettings; - private final OperationCallSettings.Builder< - CreateClusterRequest, Cluster, ClusterOperationMetadata> - createClusterOperationSettings; - private final UnaryCallSettings.Builder updateClusterSettings; - private final OperationCallSettings.Builder< - UpdateClusterRequest, Cluster, ClusterOperationMetadata> - updateClusterOperationSettings; - private final UnaryCallSettings.Builder stopClusterSettings; - private final OperationCallSettings.Builder< - StopClusterRequest, Cluster, ClusterOperationMetadata> - stopClusterOperationSettings; - private final UnaryCallSettings.Builder startClusterSettings; - private final OperationCallSettings.Builder< - StartClusterRequest, Cluster, ClusterOperationMetadata> - startClusterOperationSettings; - private final UnaryCallSettings.Builder deleteClusterSettings; - private final OperationCallSettings.Builder< - DeleteClusterRequest, Empty, ClusterOperationMetadata> - deleteClusterOperationSettings; - private final UnaryCallSettings.Builder getClusterSettings; - private final PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings; - private final UnaryCallSettings.Builder - diagnoseClusterSettings; - private final OperationCallSettings.Builder< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.INTERNAL, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_5_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(300000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(300000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createClusterOperationSettings = OperationCallSettings.newBuilder(); - updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateClusterOperationSettings = OperationCallSettings.newBuilder(); - stopClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - stopClusterOperationSettings = OperationCallSettings.newBuilder(); - startClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - startClusterOperationSettings = OperationCallSettings.newBuilder(); - deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteClusterOperationSettings = OperationCallSettings.newBuilder(); - getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listClustersSettings = PagedCallSettings.newBuilder(LIST_CLUSTERS_PAGE_STR_FACT); - diagnoseClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - diagnoseClusterOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - stopClusterSettings, - startClusterSettings, - deleteClusterSettings, - getClusterSettings, - listClustersSettings, - diagnoseClusterSettings); - initDefaults(this); - } - - protected Builder(ClusterControllerStubSettings settings) { - super(settings); - - createClusterSettings = settings.createClusterSettings.toBuilder(); - createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); - updateClusterSettings = settings.updateClusterSettings.toBuilder(); - updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); - stopClusterSettings = settings.stopClusterSettings.toBuilder(); - stopClusterOperationSettings = settings.stopClusterOperationSettings.toBuilder(); - startClusterSettings = settings.startClusterSettings.toBuilder(); - startClusterOperationSettings = settings.startClusterOperationSettings.toBuilder(); - deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); - deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); - getClusterSettings = settings.getClusterSettings.toBuilder(); - listClustersSettings = settings.listClustersSettings.toBuilder(); - diagnoseClusterSettings = settings.diagnoseClusterSettings.toBuilder(); - diagnoseClusterOperationSettings = settings.diagnoseClusterOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createClusterSettings, - updateClusterSettings, - stopClusterSettings, - startClusterSettings, - deleteClusterSettings, - getClusterSettings, - listClustersSettings, - diagnoseClusterSettings); - } - - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .updateClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .stopClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .startClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .getClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .listClustersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .diagnoseClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .createClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .updateClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .stopClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.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())); - - builder - .startClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.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())); - - builder - .deleteClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build())); - - builder - .diagnoseClusterOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DiagnoseClusterResults.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ClusterOperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return createClusterSettings; - } - - /** Returns the builder for the settings used for calls to createCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createClusterOperationSettings() { - return createClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - public UnaryCallSettings.Builder updateClusterSettings() { - return updateClusterSettings; - } - - /** Returns the builder for the settings used for calls to updateCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateClusterOperationSettings() { - return updateClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to stopCluster. */ - public UnaryCallSettings.Builder stopClusterSettings() { - return stopClusterSettings; - } - - /** Returns the builder for the settings used for calls to stopCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - stopClusterOperationSettings() { - return stopClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to startCluster. */ - public UnaryCallSettings.Builder startClusterSettings() { - return startClusterSettings; - } - - /** Returns the builder for the settings used for calls to startCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - startClusterOperationSettings() { - return startClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - public UnaryCallSettings.Builder deleteClusterSettings() { - return deleteClusterSettings; - } - - /** Returns the builder for the settings used for calls to deleteCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteClusterOperationSettings() { - return deleteClusterOperationSettings; - } - - /** Returns the builder for the settings used for calls to getCluster. */ - public UnaryCallSettings.Builder getClusterSettings() { - return getClusterSettings; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public PagedCallSettings.Builder< - ListClustersRequest, ListClustersResponse, ListClustersPagedResponse> - listClustersSettings() { - return listClustersSettings; - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - public UnaryCallSettings.Builder diagnoseClusterSettings() { - return diagnoseClusterSettings; - } - - /** Returns the builder for the settings used for calls to diagnoseCluster. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationSettings() { - return diagnoseClusterOperationSettings; - } - - @Override - public ClusterControllerStubSettings build() throws IOException { - return new ClusterControllerStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java deleted file mode 100644 index 4d243b6f..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcAutoscalingPolicyServiceCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java deleted file mode 100644 index 1a8d03fa..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java +++ /dev/null @@ -1,333 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { - private static final MethodDescriptor - createAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/CreateAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/UpdateAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/GetAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> - listAutoscalingPoliciesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/ListAutoscalingPolicies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAutoscalingPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAutoscalingPoliciesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteAutoscalingPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAutoscalingPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable - createAutoscalingPolicyCallable; - private final UnaryCallable - updateAutoscalingPolicyCallable; - private final UnaryCallable - getAutoscalingPolicyCallable; - private final UnaryCallable - listAutoscalingPoliciesCallable; - private final UnaryCallable - listAutoscalingPoliciesPagedCallable; - private final UnaryCallable - deleteAutoscalingPolicyCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAutoscalingPolicyServiceStub create( - AutoscalingPolicyServiceStubSettings settings) throws IOException { - return new GrpcAutoscalingPolicyServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAutoscalingPolicyServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAutoscalingPolicyServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAutoscalingPolicyServiceStub, 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 GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcAutoscalingPolicyServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcAutoscalingPolicyServiceStub, 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 GrpcAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - createAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("policy.name", String.valueOf(request.getPolicy().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listAutoscalingPoliciesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteAutoscalingPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.createAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - createAutoscalingPolicyTransportSettings, - settings.createAutoscalingPolicySettings(), - clientContext); - this.updateAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - updateAutoscalingPolicyTransportSettings, - settings.updateAutoscalingPolicySettings(), - clientContext); - this.getAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - getAutoscalingPolicyTransportSettings, - settings.getAutoscalingPolicySettings(), - clientContext); - this.listAutoscalingPoliciesCallable = - callableFactory.createUnaryCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.listAutoscalingPoliciesPagedCallable = - callableFactory.createPagedCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.deleteAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - deleteAutoscalingPolicyTransportSettings, - settings.deleteAutoscalingPolicySettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - createAutoscalingPolicyCallable() { - return createAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - updateAutoscalingPolicyCallable() { - return updateAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - getAutoscalingPolicyCallable() { - return getAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesCallable() { - return listAutoscalingPoliciesCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return listAutoscalingPoliciesPagedCallable; - } - - @Override - public UnaryCallable deleteAutoscalingPolicyCallable() { - return deleteAutoscalingPolicyCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java deleted file mode 100644 index 143a1c2d..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the BatchController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcBatchControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java deleted file mode 100644 index 044146ba..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcBatchControllerStub.java +++ /dev/null @@ -1,277 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchOperationMetadata; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.cloud.dataproc.v1.GetBatchRequest; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.ListBatchesResponse; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the BatchController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcBatchControllerStub extends BatchControllerStub { - private static final MethodDescriptor createBatchMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.BatchController/CreateBatch") - .setRequestMarshaller(ProtoUtils.marshaller(CreateBatchRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getBatchMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.BatchController/GetBatch") - .setRequestMarshaller(ProtoUtils.marshaller(GetBatchRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Batch.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listBatchesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.BatchController/ListBatches") - .setRequestMarshaller(ProtoUtils.marshaller(ListBatchesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListBatchesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteBatchMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.BatchController/DeleteBatch") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteBatchRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable createBatchCallable; - private final OperationCallable - createBatchOperationCallable; - private final UnaryCallable getBatchCallable; - private final UnaryCallable listBatchesCallable; - private final UnaryCallable - listBatchesPagedCallable; - private final UnaryCallable deleteBatchCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcBatchControllerStub create(BatchControllerStubSettings settings) - throws IOException { - return new GrpcBatchControllerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcBatchControllerStub create(ClientContext clientContext) - throws IOException { - return new GrpcBatchControllerStub( - BatchControllerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcBatchControllerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcBatchControllerStub( - BatchControllerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcBatchControllerStub, 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 GrpcBatchControllerStub( - BatchControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcBatchControllerCallableFactory()); - } - - /** - * Constructs an instance of GrpcBatchControllerStub, 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 GrpcBatchControllerStub( - BatchControllerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createBatchTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createBatchMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getBatchTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getBatchMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listBatchesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listBatchesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteBatchTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteBatchMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.createBatchCallable = - callableFactory.createUnaryCallable( - createBatchTransportSettings, settings.createBatchSettings(), clientContext); - this.createBatchOperationCallable = - callableFactory.createOperationCallable( - createBatchTransportSettings, - settings.createBatchOperationSettings(), - clientContext, - operationsStub); - this.getBatchCallable = - callableFactory.createUnaryCallable( - getBatchTransportSettings, settings.getBatchSettings(), clientContext); - this.listBatchesCallable = - callableFactory.createUnaryCallable( - listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); - this.listBatchesPagedCallable = - callableFactory.createPagedCallable( - listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); - this.deleteBatchCallable = - callableFactory.createUnaryCallable( - deleteBatchTransportSettings, settings.deleteBatchSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createBatchCallable() { - return createBatchCallable; - } - - @Override - public OperationCallable - createBatchOperationCallable() { - return createBatchOperationCallable; - } - - @Override - public UnaryCallable getBatchCallable() { - return getBatchCallable; - } - - @Override - public UnaryCallable listBatchesCallable() { - return listBatchesCallable; - } - - @Override - public UnaryCallable listBatchesPagedCallable() { - return listBatchesPagedCallable; - } - - @Override - public UnaryCallable deleteBatchCallable() { - return deleteBatchCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java deleted file mode 100644 index e4649a75..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the ClusterController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcClusterControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java deleted file mode 100644 index 078395cc..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; -import com.google.cloud.dataproc.v1.GetClusterRequest; -import com.google.cloud.dataproc.v1.ListClustersRequest; -import com.google.cloud.dataproc.v1.ListClustersResponse; -import com.google.cloud.dataproc.v1.StartClusterRequest; -import com.google.cloud.dataproc.v1.StopClusterRequest; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the ClusterController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcClusterControllerStub extends ClusterControllerStub { - private static final MethodDescriptor - createClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/CreateCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/UpdateCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor stopClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StopCluster") - .setRequestMarshaller(ProtoUtils.marshaller(StopClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - startClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StartCluster") - .setRequestMarshaller(ProtoUtils.marshaller(StartClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DeleteCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/GetCluster") - .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listClustersMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/ListClusters") - .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - diagnoseClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DiagnoseCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DiagnoseClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable createClusterCallable; - private final OperationCallable - createClusterOperationCallable; - private final UnaryCallable updateClusterCallable; - private final OperationCallable - updateClusterOperationCallable; - private final UnaryCallable stopClusterCallable; - private final OperationCallable - stopClusterOperationCallable; - private final UnaryCallable startClusterCallable; - private final OperationCallable - startClusterOperationCallable; - private final UnaryCallable deleteClusterCallable; - private final OperationCallable - deleteClusterOperationCallable; - private final UnaryCallable getClusterCallable; - private final UnaryCallable listClustersCallable; - private final UnaryCallable - listClustersPagedCallable; - private final UnaryCallable diagnoseClusterCallable; - private final OperationCallable< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings) - throws IOException { - return new GrpcClusterControllerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcClusterControllerStub create(ClientContext clientContext) - throws IOException { - return new GrpcClusterControllerStub( - ClusterControllerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcClusterControllerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcClusterControllerStub( - ClusterControllerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcClusterControllerStub, 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 GrpcClusterControllerStub( - ClusterControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcClusterControllerCallableFactory()); - } - - /** - * Constructs an instance of GrpcClusterControllerStub, 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 GrpcClusterControllerStub( - ClusterControllerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings stopClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(stopClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings startClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings listClustersTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listClustersMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings diagnoseClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(diagnoseClusterMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_name", String.valueOf(request.getClusterName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.createClusterOperationCallable = - callableFactory.createOperationCallable( - createClusterTransportSettings, - settings.createClusterOperationSettings(), - clientContext, - operationsStub); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateClusterOperationCallable = - callableFactory.createOperationCallable( - updateClusterTransportSettings, - settings.updateClusterOperationSettings(), - clientContext, - operationsStub); - this.stopClusterCallable = - callableFactory.createUnaryCallable( - stopClusterTransportSettings, settings.stopClusterSettings(), clientContext); - this.stopClusterOperationCallable = - callableFactory.createOperationCallable( - stopClusterTransportSettings, - settings.stopClusterOperationSettings(), - clientContext, - operationsStub); - this.startClusterCallable = - callableFactory.createUnaryCallable( - startClusterTransportSettings, settings.startClusterSettings(), clientContext); - this.startClusterOperationCallable = - callableFactory.createOperationCallable( - startClusterTransportSettings, - settings.startClusterOperationSettings(), - clientContext, - operationsStub); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.deleteClusterOperationCallable = - callableFactory.createOperationCallable( - deleteClusterTransportSettings, - settings.deleteClusterOperationSettings(), - clientContext, - operationsStub); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.listClustersPagedCallable = - callableFactory.createPagedCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.diagnoseClusterCallable = - callableFactory.createUnaryCallable( - diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); - this.diagnoseClusterOperationCallable = - callableFactory.createOperationCallable( - diagnoseClusterTransportSettings, - settings.diagnoseClusterOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createClusterCallable() { - return createClusterCallable; - } - - @Override - public OperationCallable - createClusterOperationCallable() { - return createClusterOperationCallable; - } - - @Override - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; - } - - @Override - public OperationCallable - updateClusterOperationCallable() { - return updateClusterOperationCallable; - } - - @Override - public UnaryCallable stopClusterCallable() { - return stopClusterCallable; - } - - @Override - public OperationCallable - stopClusterOperationCallable() { - return stopClusterOperationCallable; - } - - @Override - public UnaryCallable startClusterCallable() { - return startClusterCallable; - } - - @Override - public OperationCallable - startClusterOperationCallable() { - return startClusterOperationCallable; - } - - @Override - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @Override - public OperationCallable - deleteClusterOperationCallable() { - return deleteClusterOperationCallable; - } - - @Override - public UnaryCallable getClusterCallable() { - return getClusterCallable; - } - - @Override - public UnaryCallable listClustersCallable() { - return listClustersCallable; - } - - @Override - public UnaryCallable listClustersPagedCallable() { - return listClustersPagedCallable; - } - - @Override - public UnaryCallable diagnoseClusterCallable() { - return diagnoseClusterCallable; - } - - @Override - public OperationCallable - diagnoseClusterOperationCallable() { - return diagnoseClusterOperationCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java deleted file mode 100644 index b28a67de..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the JobController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcJobControllerCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java deleted file mode 100644 index 52b5ae89..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.ListJobsRequest; -import com.google.cloud.dataproc.v1.ListJobsResponse; -import com.google.cloud.dataproc.v1.SubmitJobRequest; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the JobController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcJobControllerStub extends JobControllerStub { - private static final MethodDescriptor submitJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJob") - .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - submitJobAsOperationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJobAsOperation") - .setRequestMarshaller(ProtoUtils.marshaller(SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/GetJob") - .setRequestMarshaller(ProtoUtils.marshaller(GetJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listJobsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/ListJobs") - .setRequestMarshaller(ProtoUtils.marshaller(ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListJobsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/UpdateJob") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor cancelJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/CancelJob") - .setRequestMarshaller(ProtoUtils.marshaller(CancelJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Job.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.dataproc.v1.JobController/DeleteJob") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable submitJobCallable; - private final UnaryCallable submitJobAsOperationCallable; - private final OperationCallable - submitJobAsOperationOperationCallable; - private final UnaryCallable getJobCallable; - private final UnaryCallable listJobsCallable; - private final UnaryCallable listJobsPagedCallable; - private final UnaryCallable updateJobCallable; - private final UnaryCallable cancelJobCallable; - private final UnaryCallable deleteJobCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcJobControllerStub create(JobControllerStubSettings settings) - throws IOException { - return new GrpcJobControllerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcJobControllerStub create(ClientContext clientContext) throws IOException { - return new GrpcJobControllerStub(JobControllerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcJobControllerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcJobControllerStub( - JobControllerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcJobControllerStub, 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 GrpcJobControllerStub(JobControllerStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcJobControllerCallableFactory()); - } - - /** - * Constructs an instance of GrpcJobControllerStub, 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 GrpcJobControllerStub( - JobControllerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings submitJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(submitJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings submitJobAsOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(submitJobAsOperationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings getJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings listJobsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listJobsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings updateJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings cancelJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("job_id", String.valueOf(request.getJobId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("region", String.valueOf(request.getRegion())); - return params.build(); - }) - .build(); - - this.submitJobCallable = - callableFactory.createUnaryCallable( - submitJobTransportSettings, settings.submitJobSettings(), clientContext); - this.submitJobAsOperationCallable = - callableFactory.createUnaryCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationSettings(), - clientContext); - this.submitJobAsOperationOperationCallable = - callableFactory.createOperationCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationOperationSettings(), - clientContext, - operationsStub); - this.getJobCallable = - callableFactory.createUnaryCallable( - getJobTransportSettings, settings.getJobSettings(), clientContext); - this.listJobsCallable = - callableFactory.createUnaryCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.listJobsPagedCallable = - callableFactory.createPagedCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.updateJobCallable = - callableFactory.createUnaryCallable( - updateJobTransportSettings, settings.updateJobSettings(), clientContext); - this.cancelJobCallable = - callableFactory.createUnaryCallable( - cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); - this.deleteJobCallable = - callableFactory.createUnaryCallable( - deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable submitJobCallable() { - return submitJobCallable; - } - - @Override - public UnaryCallable submitJobAsOperationCallable() { - return submitJobAsOperationCallable; - } - - @Override - public OperationCallable - submitJobAsOperationOperationCallable() { - return submitJobAsOperationOperationCallable; - } - - @Override - public UnaryCallable getJobCallable() { - return getJobCallable; - } - - @Override - public UnaryCallable listJobsCallable() { - return listJobsCallable; - } - - @Override - public UnaryCallable listJobsPagedCallable() { - return listJobsPagedCallable; - } - - @Override - public UnaryCallable updateJobCallable() { - return updateJobCallable; - } - - @Override - public UnaryCallable cancelJobCallable() { - return cancelJobCallable; - } - - @Override - public UnaryCallable deleteJobCallable() { - return deleteJobCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java deleted file mode 100644 index 0d576947..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the WorkflowTemplateService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcWorkflowTemplateServiceCallableFactory 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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java deleted file mode 100644 index 1efd3f92..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java +++ /dev/null @@ -1,432 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the WorkflowTemplateService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { - private static final MethodDescriptor - createWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/CreateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/GetWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - instantiateWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(InstantiateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - instantiateInlineWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateInlineWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller( - InstantiateInlineWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/UpdateWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WorkflowTemplate.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listWorkflowTemplatesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/ListWorkflowTemplates") - .setRequestMarshaller( - ProtoUtils.marshaller(ListWorkflowTemplatesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListWorkflowTemplatesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteWorkflowTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/DeleteWorkflowTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteWorkflowTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable - createWorkflowTemplateCallable; - private final UnaryCallable - getWorkflowTemplateCallable; - private final UnaryCallable - instantiateWorkflowTemplateCallable; - private final OperationCallable - instantiateWorkflowTemplateOperationCallable; - private final UnaryCallable - instantiateInlineWorkflowTemplateCallable; - private final OperationCallable - instantiateInlineWorkflowTemplateOperationCallable; - private final UnaryCallable - updateWorkflowTemplateCallable; - private final UnaryCallable - listWorkflowTemplatesCallable; - private final UnaryCallable - listWorkflowTemplatesPagedCallable; - private final UnaryCallable deleteWorkflowTemplateCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcWorkflowTemplateServiceStub create( - WorkflowTemplateServiceStubSettings settings) throws IOException { - return new GrpcWorkflowTemplateServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcWorkflowTemplateServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcWorkflowTemplateServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcWorkflowTemplateServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcWorkflowTemplateServiceStub, 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 GrpcWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - createWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - instantiateWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - instantiateInlineWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("template.name", String.valueOf(request.getTemplate().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listWorkflowTemplatesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteWorkflowTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.createWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - createWorkflowTemplateTransportSettings, - settings.createWorkflowTemplateSettings(), - clientContext); - this.getWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - getWorkflowTemplateTransportSettings, - settings.getWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateOperationSettings(), - clientContext, - operationsStub); - this.instantiateInlineWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateSettings(), - clientContext); - this.instantiateInlineWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateOperationSettings(), - clientContext, - operationsStub); - this.updateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - updateWorkflowTemplateTransportSettings, - settings.updateWorkflowTemplateSettings(), - clientContext); - this.listWorkflowTemplatesCallable = - callableFactory.createUnaryCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.listWorkflowTemplatesPagedCallable = - callableFactory.createPagedCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.deleteWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - deleteWorkflowTemplateTransportSettings, - settings.deleteWorkflowTemplateSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - createWorkflowTemplateCallable() { - return createWorkflowTemplateCallable; - } - - @Override - public UnaryCallable getWorkflowTemplateCallable() { - return getWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - instantiateWorkflowTemplateCallable() { - return instantiateWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return instantiateWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - return instantiateInlineWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return instantiateInlineWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - updateWorkflowTemplateCallable() { - return updateWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesCallable() { - return listWorkflowTemplatesCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - return listWorkflowTemplatesPagedCallable; - } - - @Override - public UnaryCallable deleteWorkflowTemplateCallable() { - return deleteWorkflowTemplateCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java deleted file mode 100644 index 760e1347..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonAutoscalingPolicyServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java deleted file mode 100644 index 20d94992..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonAutoscalingPolicyServiceStub.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the AutoscalingPolicyService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - createAutoscalingPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/CreateAutoscalingPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/autoscalingPolicies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/autoscalingPolicies") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policy", request.getPolicy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateAutoscalingPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/UpdateAutoscalingPolicy") - .setHttpMethod("PUT") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "policy.name", request.getPolicy().getName()); - return fields; - }) - .setAdditionalPaths( - "/v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policy", request.getPolicy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getAutoscalingPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/GetAutoscalingPolicy") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/regions/*/autoscalingPolicies/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AutoscalingPolicy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse> - listAutoscalingPoliciesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/ListAutoscalingPolicies") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/autoscalingPolicies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/autoscalingPolicies") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAutoscalingPoliciesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteAutoscalingPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.AutoscalingPolicyService/DeleteAutoscalingPolicy") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/regions/*/autoscalingPolicies/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable - createAutoscalingPolicyCallable; - private final UnaryCallable - updateAutoscalingPolicyCallable; - private final UnaryCallable - getAutoscalingPolicyCallable; - private final UnaryCallable - listAutoscalingPoliciesCallable; - private final UnaryCallable - listAutoscalingPoliciesPagedCallable; - private final UnaryCallable - deleteAutoscalingPolicyCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonAutoscalingPolicyServiceStub create( - AutoscalingPolicyServiceStubSettings settings) throws IOException { - return new HttpJsonAutoscalingPolicyServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonAutoscalingPolicyServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonAutoscalingPolicyServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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 HttpJsonAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonAutoscalingPolicyServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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 HttpJsonAutoscalingPolicyServiceStub( - AutoscalingPolicyServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings - createAutoscalingPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateAutoscalingPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getAutoscalingPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listAutoscalingPoliciesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteAutoscalingPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.createAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - createAutoscalingPolicyTransportSettings, - settings.createAutoscalingPolicySettings(), - clientContext); - this.updateAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - updateAutoscalingPolicyTransportSettings, - settings.updateAutoscalingPolicySettings(), - clientContext); - this.getAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - getAutoscalingPolicyTransportSettings, - settings.getAutoscalingPolicySettings(), - clientContext); - this.listAutoscalingPoliciesCallable = - callableFactory.createUnaryCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.listAutoscalingPoliciesPagedCallable = - callableFactory.createPagedCallable( - listAutoscalingPoliciesTransportSettings, - settings.listAutoscalingPoliciesSettings(), - clientContext); - this.deleteAutoscalingPolicyCallable = - callableFactory.createUnaryCallable( - deleteAutoscalingPolicyTransportSettings, - settings.deleteAutoscalingPolicySettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(createAutoscalingPolicyMethodDescriptor); - methodDescriptors.add(updateAutoscalingPolicyMethodDescriptor); - methodDescriptors.add(getAutoscalingPolicyMethodDescriptor); - methodDescriptors.add(listAutoscalingPoliciesMethodDescriptor); - methodDescriptors.add(deleteAutoscalingPolicyMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable - createAutoscalingPolicyCallable() { - return createAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - updateAutoscalingPolicyCallable() { - return updateAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - getAutoscalingPolicyCallable() { - return getAutoscalingPolicyCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesCallable() { - return listAutoscalingPoliciesCallable; - } - - @Override - public UnaryCallable - listAutoscalingPoliciesPagedCallable() { - return listAutoscalingPoliciesPagedCallable; - } - - @Override - public UnaryCallable deleteAutoscalingPolicyCallable() { - return deleteAutoscalingPolicyCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java deleted file mode 100644 index f994d281..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the BatchController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonBatchControllerCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java deleted file mode 100644 index 20b8454e..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonBatchControllerStub.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchOperationMetadata; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.cloud.dataproc.v1.GetBatchRequest; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.ListBatchesResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the BatchController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonBatchControllerStub extends BatchControllerStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(Batch.getDescriptor()) - .add(BatchOperationMetadata.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - createBatchMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.BatchController/CreateBatch") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/batches", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "batchId", request.getBatchId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("batch", request.getBatch(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateBatchRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor getBatchMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.BatchController/GetBatch") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/batches/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Batch.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listBatchesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.BatchController/ListBatches") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/batches", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListBatchesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteBatchMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.BatchController/DeleteBatch") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/batches/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable createBatchCallable; - private final OperationCallable - createBatchOperationCallable; - private final UnaryCallable getBatchCallable; - private final UnaryCallable listBatchesCallable; - private final UnaryCallable - listBatchesPagedCallable; - private final UnaryCallable deleteBatchCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonBatchControllerStub create(BatchControllerStubSettings settings) - throws IOException { - return new HttpJsonBatchControllerStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonBatchControllerStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonBatchControllerStub( - BatchControllerStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonBatchControllerStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonBatchControllerStub( - BatchControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonBatchControllerStub, 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 HttpJsonBatchControllerStub( - BatchControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonBatchControllerCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonBatchControllerStub, 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 HttpJsonBatchControllerStub( - BatchControllerStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings createBatchTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createBatchMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getBatchTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getBatchMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listBatchesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listBatchesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteBatchTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteBatchMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.createBatchCallable = - callableFactory.createUnaryCallable( - createBatchTransportSettings, settings.createBatchSettings(), clientContext); - this.createBatchOperationCallable = - callableFactory.createOperationCallable( - createBatchTransportSettings, - settings.createBatchOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.getBatchCallable = - callableFactory.createUnaryCallable( - getBatchTransportSettings, settings.getBatchSettings(), clientContext); - this.listBatchesCallable = - callableFactory.createUnaryCallable( - listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); - this.listBatchesPagedCallable = - callableFactory.createPagedCallable( - listBatchesTransportSettings, settings.listBatchesSettings(), clientContext); - this.deleteBatchCallable = - callableFactory.createUnaryCallable( - deleteBatchTransportSettings, settings.deleteBatchSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(createBatchMethodDescriptor); - methodDescriptors.add(getBatchMethodDescriptor); - methodDescriptors.add(listBatchesMethodDescriptor); - methodDescriptors.add(deleteBatchMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable createBatchCallable() { - return createBatchCallable; - } - - @Override - public OperationCallable - createBatchOperationCallable() { - return createBatchOperationCallable; - } - - @Override - public UnaryCallable getBatchCallable() { - return getBatchCallable; - } - - @Override - public UnaryCallable listBatchesCallable() { - return listBatchesCallable; - } - - @Override - public UnaryCallable listBatchesPagedCallable() { - return listBatchesPagedCallable; - } - - @Override - public UnaryCallable deleteBatchCallable() { - return deleteBatchCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java deleted file mode 100644 index d3a8a4a6..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the ClusterController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonClusterControllerCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java deleted file mode 100644 index 5b2bb414..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonClusterControllerStub.java +++ /dev/null @@ -1,744 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; -import com.google.cloud.dataproc.v1.GetClusterRequest; -import com.google.cloud.dataproc.v1.ListClustersRequest; -import com.google.cloud.dataproc.v1.ListClustersResponse; -import com.google.cloud.dataproc.v1.StartClusterRequest; -import com.google.cloud.dataproc.v1.StopClusterRequest; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the ClusterController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonClusterControllerStub extends ClusterControllerStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(ClusterOperationMetadata.getDescriptor()) - .add(Empty.getDescriptor()) - .add(Cluster.getDescriptor()) - .add(DiagnoseClusterResults.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - createClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/CreateCluster") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, - "actionOnFailedPrimaryWorkers", - request.getActionOnFailedPrimaryWorkers()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("cluster", request.getCluster(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - updateClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/UpdateCluster") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, - "gracefulDecommissionTimeout", - request.getGracefulDecommissionTimeout()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("cluster", request.getCluster(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - stopClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StopCluster") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request - .toBuilder() - .clearClusterName() - .clearProjectId() - .clearRegion() - .build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (StopClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - startClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/StartCluster") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request - .toBuilder() - .clearClusterName() - .clearProjectId() - .clearRegion() - .build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (StartClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DeleteCluster") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "clusterUuid", request.getClusterUuid()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor getClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/GetCluster") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Cluster.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listClustersMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/ListClusters") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListClustersResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - diagnoseClusterMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.ClusterController/DiagnoseCluster") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "clusterName", request.getClusterName()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request - .toBuilder() - .clearClusterName() - .clearProjectId() - .clearRegion() - .build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DiagnoseClusterRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private final UnaryCallable createClusterCallable; - private final OperationCallable - createClusterOperationCallable; - private final UnaryCallable updateClusterCallable; - private final OperationCallable - updateClusterOperationCallable; - private final UnaryCallable stopClusterCallable; - private final OperationCallable - stopClusterOperationCallable; - private final UnaryCallable startClusterCallable; - private final OperationCallable - startClusterOperationCallable; - private final UnaryCallable deleteClusterCallable; - private final OperationCallable - deleteClusterOperationCallable; - private final UnaryCallable getClusterCallable; - private final UnaryCallable listClustersCallable; - private final UnaryCallable - listClustersPagedCallable; - private final UnaryCallable diagnoseClusterCallable; - private final OperationCallable< - DiagnoseClusterRequest, DiagnoseClusterResults, ClusterOperationMetadata> - diagnoseClusterOperationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonClusterControllerStub create(ClusterControllerStubSettings settings) - throws IOException { - return new HttpJsonClusterControllerStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonClusterControllerStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonClusterControllerStub( - ClusterControllerStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonClusterControllerStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonClusterControllerStub( - ClusterControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStub( - ClusterControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonClusterControllerCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonClusterControllerStub, 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 HttpJsonClusterControllerStub( - ClusterControllerStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings createClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings stopClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(stopClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings startClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(startClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listClustersTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listClustersMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings diagnoseClusterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(diagnoseClusterMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.createClusterOperationCallable = - callableFactory.createOperationCallable( - createClusterTransportSettings, - settings.createClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateClusterOperationCallable = - callableFactory.createOperationCallable( - updateClusterTransportSettings, - settings.updateClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.stopClusterCallable = - callableFactory.createUnaryCallable( - stopClusterTransportSettings, settings.stopClusterSettings(), clientContext); - this.stopClusterOperationCallable = - callableFactory.createOperationCallable( - stopClusterTransportSettings, - settings.stopClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.startClusterCallable = - callableFactory.createUnaryCallable( - startClusterTransportSettings, settings.startClusterSettings(), clientContext); - this.startClusterOperationCallable = - callableFactory.createOperationCallable( - startClusterTransportSettings, - settings.startClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.deleteClusterOperationCallable = - callableFactory.createOperationCallable( - deleteClusterTransportSettings, - settings.deleteClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.listClustersPagedCallable = - callableFactory.createPagedCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.diagnoseClusterCallable = - callableFactory.createUnaryCallable( - diagnoseClusterTransportSettings, settings.diagnoseClusterSettings(), clientContext); - this.diagnoseClusterOperationCallable = - callableFactory.createOperationCallable( - diagnoseClusterTransportSettings, - settings.diagnoseClusterOperationSettings(), - clientContext, - httpJsonOperationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(createClusterMethodDescriptor); - methodDescriptors.add(updateClusterMethodDescriptor); - methodDescriptors.add(stopClusterMethodDescriptor); - methodDescriptors.add(startClusterMethodDescriptor); - methodDescriptors.add(deleteClusterMethodDescriptor); - methodDescriptors.add(getClusterMethodDescriptor); - methodDescriptors.add(listClustersMethodDescriptor); - methodDescriptors.add(diagnoseClusterMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable createClusterCallable() { - return createClusterCallable; - } - - @Override - public OperationCallable - createClusterOperationCallable() { - return createClusterOperationCallable; - } - - @Override - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; - } - - @Override - public OperationCallable - updateClusterOperationCallable() { - return updateClusterOperationCallable; - } - - @Override - public UnaryCallable stopClusterCallable() { - return stopClusterCallable; - } - - @Override - public OperationCallable - stopClusterOperationCallable() { - return stopClusterOperationCallable; - } - - @Override - public UnaryCallable startClusterCallable() { - return startClusterCallable; - } - - @Override - public OperationCallable - startClusterOperationCallable() { - return startClusterOperationCallable; - } - - @Override - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - @Override - public OperationCallable - deleteClusterOperationCallable() { - return deleteClusterOperationCallable; - } - - @Override - public UnaryCallable getClusterCallable() { - return getClusterCallable; - } - - @Override - public UnaryCallable listClustersCallable() { - return listClustersCallable; - } - - @Override - public UnaryCallable listClustersPagedCallable() { - return listClustersPagedCallable; - } - - @Override - public UnaryCallable diagnoseClusterCallable() { - return diagnoseClusterCallable; - } - - @Override - public OperationCallable - diagnoseClusterOperationCallable() { - return diagnoseClusterOperationCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java deleted file mode 100644 index 720bec66..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the JobController service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonJobControllerCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java deleted file mode 100644 index 7d26c11b..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonJobControllerStub.java +++ /dev/null @@ -1,568 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.ListJobsRequest; -import com.google.cloud.dataproc.v1.ListJobsResponse; -import com.google.cloud.dataproc.v1.SubmitJobRequest; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the JobController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonJobControllerStub extends JobControllerStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder().add(JobMetadata.getDescriptor()).add(Job.getDescriptor()).build(); - - private static final ApiMethodDescriptor submitJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJob") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs:submit", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request.toBuilder().clearProjectId().clearRegion().build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Job.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - submitJobAsOperationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/SubmitJobAsOperation") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request.toBuilder().clearProjectId().clearRegion().build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (SubmitJobRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor getJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/GetJob") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "jobId", request.getJobId()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Job.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listJobsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/ListJobs") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "clusterName", request.getClusterName()); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam( - fields, "jobStateMatcher", request.getJobStateMatcher()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListJobsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/UpdateJob") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "jobId", request.getJobId()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("job", request.getJob(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Job.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor cancelJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/CancelJob") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "jobId", request.getJobId()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", - request - .toBuilder() - .clearJobId() - .clearProjectId() - .clearRegion() - .build(), - false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Job.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.dataproc.v1.JobController/DeleteJob") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/projects/{projectId}/regions/{region}/jobs/{jobId}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "jobId", request.getJobId()); - serializer.putPathParam(fields, "projectId", request.getProjectId()); - serializer.putPathParam(fields, "region", request.getRegion()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable submitJobCallable; - private final UnaryCallable submitJobAsOperationCallable; - private final OperationCallable - submitJobAsOperationOperationCallable; - private final UnaryCallable getJobCallable; - private final UnaryCallable listJobsCallable; - private final UnaryCallable listJobsPagedCallable; - private final UnaryCallable updateJobCallable; - private final UnaryCallable cancelJobCallable; - private final UnaryCallable deleteJobCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonJobControllerStub create(JobControllerStubSettings settings) - throws IOException { - return new HttpJsonJobControllerStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonJobControllerStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonJobControllerStub( - JobControllerStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonJobControllerStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonJobControllerStub( - JobControllerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonJobControllerStub, 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 HttpJsonJobControllerStub( - JobControllerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonJobControllerCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonJobControllerStub, 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 HttpJsonJobControllerStub( - JobControllerStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings submitJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(submitJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings submitJobAsOperationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(submitJobAsOperationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listJobsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listJobsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings cancelJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(cancelJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.submitJobCallable = - callableFactory.createUnaryCallable( - submitJobTransportSettings, settings.submitJobSettings(), clientContext); - this.submitJobAsOperationCallable = - callableFactory.createUnaryCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationSettings(), - clientContext); - this.submitJobAsOperationOperationCallable = - callableFactory.createOperationCallable( - submitJobAsOperationTransportSettings, - settings.submitJobAsOperationOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.getJobCallable = - callableFactory.createUnaryCallable( - getJobTransportSettings, settings.getJobSettings(), clientContext); - this.listJobsCallable = - callableFactory.createUnaryCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.listJobsPagedCallable = - callableFactory.createPagedCallable( - listJobsTransportSettings, settings.listJobsSettings(), clientContext); - this.updateJobCallable = - callableFactory.createUnaryCallable( - updateJobTransportSettings, settings.updateJobSettings(), clientContext); - this.cancelJobCallable = - callableFactory.createUnaryCallable( - cancelJobTransportSettings, settings.cancelJobSettings(), clientContext); - this.deleteJobCallable = - callableFactory.createUnaryCallable( - deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(submitJobMethodDescriptor); - methodDescriptors.add(submitJobAsOperationMethodDescriptor); - methodDescriptors.add(getJobMethodDescriptor); - methodDescriptors.add(listJobsMethodDescriptor); - methodDescriptors.add(updateJobMethodDescriptor); - methodDescriptors.add(cancelJobMethodDescriptor); - methodDescriptors.add(deleteJobMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable submitJobCallable() { - return submitJobCallable; - } - - @Override - public UnaryCallable submitJobAsOperationCallable() { - return submitJobAsOperationCallable; - } - - @Override - public OperationCallable - submitJobAsOperationOperationCallable() { - return submitJobAsOperationOperationCallable; - } - - @Override - public UnaryCallable getJobCallable() { - return getJobCallable; - } - - @Override - public UnaryCallable listJobsCallable() { - return listJobsCallable; - } - - @Override - public UnaryCallable listJobsPagedCallable() { - return listJobsPagedCallable; - } - - @Override - public UnaryCallable updateJobCallable() { - return updateJobCallable; - } - - @Override - public UnaryCallable cancelJobCallable() { - return cancelJobCallable; - } - - @Override - public UnaryCallable deleteJobCallable() { - return deleteJobCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java deleted file mode 100644 index 868d15f2..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the WorkflowTemplateService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonWorkflowTemplateServiceCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java deleted file mode 100644 index 4a07f7bd..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/HttpJsonWorkflowTemplateServiceStub.java +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the WorkflowTemplateService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonWorkflowTemplateServiceStub extends WorkflowTemplateServiceStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(WorkflowMetadata.getDescriptor()) - .add(Empty.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - createWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/CreateWorkflowTemplate") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/workflowTemplates", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/workflowTemplates") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("template", request.getTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/GetWorkflowTemplate") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/workflowTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/regions/*/workflowTemplates/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "version", request.getVersion()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - instantiateWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateWorkflowTemplate") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths( - "/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (InstantiateWorkflowTemplateRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - instantiateInlineWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/InstantiateInlineWorkflowTemplate") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths( - "/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("template", request.getTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (InstantiateInlineWorkflowTemplateRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - updateWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/UpdateWorkflowTemplate") - .setHttpMethod("PUT") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "template.name", request.getTemplate().getName()); - return fields; - }) - .setAdditionalPaths( - "/v1/{template.name=projects/*/regions/*/workflowTemplates/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("template", request.getTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(WorkflowTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse> - listWorkflowTemplatesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/ListWorkflowTemplates") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/workflowTemplates", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/regions/*}/workflowTemplates") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListWorkflowTemplatesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteWorkflowTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.dataproc.v1.WorkflowTemplateService/DeleteWorkflowTemplate") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/workflowTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/regions/*/workflowTemplates/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "version", request.getVersion()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable - createWorkflowTemplateCallable; - private final UnaryCallable - getWorkflowTemplateCallable; - private final UnaryCallable - instantiateWorkflowTemplateCallable; - private final OperationCallable - instantiateWorkflowTemplateOperationCallable; - private final UnaryCallable - instantiateInlineWorkflowTemplateCallable; - private final OperationCallable - instantiateInlineWorkflowTemplateOperationCallable; - private final UnaryCallable - updateWorkflowTemplateCallable; - private final UnaryCallable - listWorkflowTemplatesCallable; - private final UnaryCallable - listWorkflowTemplatesPagedCallable; - private final UnaryCallable deleteWorkflowTemplateCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonWorkflowTemplateServiceStub create( - WorkflowTemplateServiceStubSettings settings) throws IOException { - return new HttpJsonWorkflowTemplateServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonWorkflowTemplateServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonWorkflowTemplateServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonWorkflowTemplateServiceStub, 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 HttpJsonWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonWorkflowTemplateServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonWorkflowTemplateServiceStub, 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 HttpJsonWorkflowTemplateServiceStub( - WorkflowTemplateServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings - createWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - instantiateWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(instantiateWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - instantiateInlineWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(instantiateInlineWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listWorkflowTemplatesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listWorkflowTemplatesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteWorkflowTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteWorkflowTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.createWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - createWorkflowTemplateTransportSettings, - settings.createWorkflowTemplateSettings(), - clientContext); - this.getWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - getWorkflowTemplateTransportSettings, - settings.getWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateSettings(), - clientContext); - this.instantiateWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateWorkflowTemplateTransportSettings, - settings.instantiateWorkflowTemplateOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.instantiateInlineWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateSettings(), - clientContext); - this.instantiateInlineWorkflowTemplateOperationCallable = - callableFactory.createOperationCallable( - instantiateInlineWorkflowTemplateTransportSettings, - settings.instantiateInlineWorkflowTemplateOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.updateWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - updateWorkflowTemplateTransportSettings, - settings.updateWorkflowTemplateSettings(), - clientContext); - this.listWorkflowTemplatesCallable = - callableFactory.createUnaryCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.listWorkflowTemplatesPagedCallable = - callableFactory.createPagedCallable( - listWorkflowTemplatesTransportSettings, - settings.listWorkflowTemplatesSettings(), - clientContext); - this.deleteWorkflowTemplateCallable = - callableFactory.createUnaryCallable( - deleteWorkflowTemplateTransportSettings, - settings.deleteWorkflowTemplateSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(createWorkflowTemplateMethodDescriptor); - methodDescriptors.add(getWorkflowTemplateMethodDescriptor); - methodDescriptors.add(instantiateWorkflowTemplateMethodDescriptor); - methodDescriptors.add(instantiateInlineWorkflowTemplateMethodDescriptor); - methodDescriptors.add(updateWorkflowTemplateMethodDescriptor); - methodDescriptors.add(listWorkflowTemplatesMethodDescriptor); - methodDescriptors.add(deleteWorkflowTemplateMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable - createWorkflowTemplateCallable() { - return createWorkflowTemplateCallable; - } - - @Override - public UnaryCallable getWorkflowTemplateCallable() { - return getWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - instantiateWorkflowTemplateCallable() { - return instantiateWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - return instantiateWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - return instantiateInlineWorkflowTemplateCallable; - } - - @Override - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - return instantiateInlineWorkflowTemplateOperationCallable; - } - - @Override - public UnaryCallable - updateWorkflowTemplateCallable() { - return updateWorkflowTemplateCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesCallable() { - return listWorkflowTemplatesCallable; - } - - @Override - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - return listWorkflowTemplatesPagedCallable; - } - - @Override - public UnaryCallable deleteWorkflowTemplateCallable() { - return deleteWorkflowTemplateCallable; - } - - @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-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java deleted file mode 100644 index eea91495..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -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.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.ListJobsRequest; -import com.google.cloud.dataproc.v1.ListJobsResponse; -import com.google.cloud.dataproc.v1.SubmitJobRequest; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the JobController service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class JobControllerStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable submitJobCallable() { - throw new UnsupportedOperationException("Not implemented: submitJobCallable()"); - } - - public OperationCallable - submitJobAsOperationOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: submitJobAsOperationOperationCallable()"); - } - - public UnaryCallable submitJobAsOperationCallable() { - throw new UnsupportedOperationException("Not implemented: submitJobAsOperationCallable()"); - } - - public UnaryCallable getJobCallable() { - throw new UnsupportedOperationException("Not implemented: getJobCallable()"); - } - - public UnaryCallable listJobsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listJobsPagedCallable()"); - } - - public UnaryCallable listJobsCallable() { - throw new UnsupportedOperationException("Not implemented: listJobsCallable()"); - } - - public UnaryCallable updateJobCallable() { - throw new UnsupportedOperationException("Not implemented: updateJobCallable()"); - } - - public UnaryCallable cancelJobCallable() { - throw new UnsupportedOperationException("Not implemented: cancelJobCallable()"); - } - - public UnaryCallable deleteJobCallable() { - throw new UnsupportedOperationException("Not implemented: deleteJobCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java deleted file mode 100644 index 75758665..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java +++ /dev/null @@ -1,599 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.ListJobsRequest; -import com.google.cloud.dataproc.v1.ListJobsResponse; -import com.google.cloud.dataproc.v1.SubmitJobRequest; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link JobControllerStub}. - * - *

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

    - *
  • The default service address (dataproc.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 submitJob to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * JobControllerStubSettings.Builder jobControllerSettingsBuilder =
- *     JobControllerStubSettings.newBuilder();
- * jobControllerSettingsBuilder
- *     .submitJobSettings()
- *     .setRetrySettings(
- *         jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class JobControllerStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings submitJobSettings; - private final UnaryCallSettings submitJobAsOperationSettings; - private final OperationCallSettings - submitJobAsOperationOperationSettings; - private final UnaryCallSettings getJobSettings; - private final PagedCallSettings - listJobsSettings; - private final UnaryCallSettings updateJobSettings; - private final UnaryCallSettings cancelJobSettings; - private final UnaryCallSettings deleteJobSettings; - - private static final PagedListDescriptor - LIST_JOBS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListJobsRequest injectToken(ListJobsRequest payload, String token) { - return ListJobsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListJobsRequest injectPageSize(ListJobsRequest payload, int pageSize) { - return ListJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListJobsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListJobsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListJobsResponse payload) { - return payload.getJobsList() == null - ? ImmutableList.of() - : payload.getJobsList(); - } - }; - - private static final PagedListResponseFactory< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - LIST_JOBS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListJobsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_JOBS_PAGE_STR_DESC, request, context); - return ListJobsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to submitJob. */ - public UnaryCallSettings submitJobSettings() { - return submitJobSettings; - } - - /** Returns the object with the settings used for calls to submitJobAs. */ - public UnaryCallSettings submitJobAsOperationSettings() { - return submitJobAsOperationSettings; - } - - /** Returns the object with the settings used for calls to submitJobAsOperation. */ - public OperationCallSettings - submitJobAsOperationOperationSettings() { - return submitJobAsOperationOperationSettings; - } - - /** Returns the object with the settings used for calls to getJob. */ - public UnaryCallSettings getJobSettings() { - return getJobSettings; - } - - /** Returns the object with the settings used for calls to listJobs. */ - public PagedCallSettings - listJobsSettings() { - return listJobsSettings; - } - - /** Returns the object with the settings used for calls to updateJob. */ - public UnaryCallSettings updateJobSettings() { - return updateJobSettings; - } - - /** Returns the object with the settings used for calls to cancelJob. */ - public UnaryCallSettings cancelJobSettings() { - return cancelJobSettings; - } - - /** Returns the object with the settings used for calls to deleteJob. */ - public UnaryCallSettings deleteJobSettings() { - return deleteJobSettings; - } - - public JobControllerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcJobControllerStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonJobControllerStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(JobControllerStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(JobControllerStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return JobControllerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected JobControllerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - submitJobSettings = settingsBuilder.submitJobSettings().build(); - submitJobAsOperationSettings = settingsBuilder.submitJobAsOperationSettings().build(); - submitJobAsOperationOperationSettings = - settingsBuilder.submitJobAsOperationOperationSettings().build(); - getJobSettings = settingsBuilder.getJobSettings().build(); - listJobsSettings = settingsBuilder.listJobsSettings().build(); - updateJobSettings = settingsBuilder.updateJobSettings().build(); - cancelJobSettings = settingsBuilder.cancelJobSettings().build(); - deleteJobSettings = settingsBuilder.deleteJobSettings().build(); - } - - /** Builder for JobControllerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder submitJobSettings; - private final UnaryCallSettings.Builder - submitJobAsOperationSettings; - private final OperationCallSettings.Builder - submitJobAsOperationOperationSettings; - private final UnaryCallSettings.Builder getJobSettings; - private final PagedCallSettings.Builder< - ListJobsRequest, ListJobsResponse, ListJobsPagedResponse> - listJobsSettings; - private final UnaryCallSettings.Builder updateJobSettings; - private final UnaryCallSettings.Builder cancelJobSettings; - private final UnaryCallSettings.Builder deleteJobSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_7_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - 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(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_7_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - submitJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - submitJobAsOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - submitJobAsOperationOperationSettings = OperationCallSettings.newBuilder(); - getJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listJobsSettings = PagedCallSettings.newBuilder(LIST_JOBS_PAGE_STR_FACT); - updateJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - initDefaults(this); - } - - protected Builder(JobControllerStubSettings settings) { - super(settings); - - submitJobSettings = settings.submitJobSettings.toBuilder(); - submitJobAsOperationSettings = settings.submitJobAsOperationSettings.toBuilder(); - submitJobAsOperationOperationSettings = - settings.submitJobAsOperationOperationSettings.toBuilder(); - getJobSettings = settings.getJobSettings.toBuilder(); - listJobsSettings = settings.listJobsSettings.toBuilder(); - updateJobSettings = settings.updateJobSettings.toBuilder(); - cancelJobSettings = settings.cancelJobSettings.toBuilder(); - deleteJobSettings = settings.deleteJobSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - submitJobSettings, - submitJobAsOperationSettings, - getJobSettings, - listJobsSettings, - updateJobSettings, - cancelJobSettings, - deleteJobSettings); - } - - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .submitJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .submitJobAsOperationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .getJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .listJobsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .updateJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .cancelJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - builder - .deleteJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); - - builder - .submitJobAsOperationOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")) - .build()) - .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Job.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(JobMetadata.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; - } - - /** - * 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 submitJob. */ - public UnaryCallSettings.Builder submitJobSettings() { - return submitJobSettings; - } - - /** Returns the builder for the settings used for calls to submitJobAs. */ - public UnaryCallSettings.Builder submitJobAsOperationSettings() { - return submitJobAsOperationSettings; - } - - /** Returns the builder for the settings used for calls to submitJobAsOperation. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - submitJobAsOperationOperationSettings() { - return submitJobAsOperationOperationSettings; - } - - /** Returns the builder for the settings used for calls to getJob. */ - public UnaryCallSettings.Builder getJobSettings() { - return getJobSettings; - } - - /** Returns the builder for the settings used for calls to listJobs. */ - public PagedCallSettings.Builder - listJobsSettings() { - return listJobsSettings; - } - - /** Returns the builder for the settings used for calls to updateJob. */ - public UnaryCallSettings.Builder updateJobSettings() { - return updateJobSettings; - } - - /** Returns the builder for the settings used for calls to cancelJob. */ - public UnaryCallSettings.Builder cancelJobSettings() { - return cancelJobSettings; - } - - /** Returns the builder for the settings used for calls to deleteJob. */ - public UnaryCallSettings.Builder deleteJobSettings() { - return deleteJobSettings; - } - - @Override - public JobControllerStubSettings build() throws IOException { - return new JobControllerStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java deleted file mode 100644 index 364a75b8..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -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.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the WorkflowTemplateService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class WorkflowTemplateServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable - createWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createWorkflowTemplateCallable()"); - } - - public UnaryCallable getWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getWorkflowTemplateCallable()"); - } - - public OperationCallable - instantiateWorkflowTemplateOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateWorkflowTemplateOperationCallable()"); - } - - public UnaryCallable - instantiateWorkflowTemplateCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateWorkflowTemplateCallable()"); - } - - public OperationCallable - instantiateInlineWorkflowTemplateOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateInlineWorkflowTemplateOperationCallable()"); - } - - public UnaryCallable - instantiateInlineWorkflowTemplateCallable() { - throw new UnsupportedOperationException( - "Not implemented: instantiateInlineWorkflowTemplateCallable()"); - } - - public UnaryCallable - updateWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: updateWorkflowTemplateCallable()"); - } - - public UnaryCallable - listWorkflowTemplatesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listWorkflowTemplatesPagedCallable()"); - } - - public UnaryCallable - listWorkflowTemplatesCallable() { - throw new UnsupportedOperationException("Not implemented: listWorkflowTemplatesCallable()"); - } - - public UnaryCallable deleteWorkflowTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: deleteWorkflowTemplateCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java b/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java deleted file mode 100644 index a039aab0..00000000 --- a/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java +++ /dev/null @@ -1,713 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -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.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link WorkflowTemplateServiceStub}. - * - *

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

    - *
  • The default service address (dataproc.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 createWorkflowTemplate to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder =
- *     WorkflowTemplateServiceStubSettings.newBuilder();
- * workflowTemplateServiceSettingsBuilder
- *     .createWorkflowTemplateSettings()
- *     .setRetrySettings(
- *         workflowTemplateServiceSettingsBuilder
- *             .createWorkflowTemplateSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings =
- *     workflowTemplateServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final UnaryCallSettings - createWorkflowTemplateSettings; - private final UnaryCallSettings - getWorkflowTemplateSettings; - private final UnaryCallSettings - instantiateWorkflowTemplateSettings; - private final OperationCallSettings - instantiateWorkflowTemplateOperationSettings; - private final UnaryCallSettings - instantiateInlineWorkflowTemplateSettings; - private final OperationCallSettings< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings - updateWorkflowTemplateSettings; - private final PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings; - private final UnaryCallSettings - deleteWorkflowTemplateSettings; - - private static final PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC = - new PagedListDescriptor< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWorkflowTemplatesRequest injectToken( - ListWorkflowTemplatesRequest payload, String token) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWorkflowTemplatesRequest injectPageSize( - ListWorkflowTemplatesRequest payload, int pageSize) { - return ListWorkflowTemplatesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWorkflowTemplatesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWorkflowTemplatesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListWorkflowTemplatesResponse payload) { - return payload.getTemplatesList() == null - ? ImmutableList.of() - : payload.getTemplatesList(); - } - }; - - private static final PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWorkflowTemplatesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse, WorkflowTemplate> - pageContext = - PageContext.create( - callable, LIST_WORKFLOW_TEMPLATES_PAGE_STR_DESC, request, context); - return ListWorkflowTemplatesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings - instantiateWorkflowTemplateSettings() { - return instantiateWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateWorkflowTemplate. */ - public OperationCallSettings - instantiateWorkflowTemplateOperationSettings() { - return instantiateWorkflowTemplateOperationSettings; - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings - instantiateInlineWorkflowTemplateSettings() { - return instantiateInlineWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to instantiateInlineWorkflowTemplate. */ - public OperationCallSettings - instantiateInlineWorkflowTemplateOperationSettings() { - return instantiateInlineWorkflowTemplateOperationSettings; - } - - /** Returns the object with the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings - updateWorkflowTemplateSettings() { - return updateWorkflowTemplateSettings; - } - - /** Returns the object with the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return listWorkflowTemplatesSettings; - } - - /** Returns the object with the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings deleteWorkflowTemplateSettings() { - return deleteWorkflowTemplateSettings; - } - - public WorkflowTemplateServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcWorkflowTemplateServiceStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonWorkflowTemplateServiceStub.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 "dataproc.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "dataproc.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(WorkflowTemplateServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(WorkflowTemplateServiceStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return WorkflowTemplateServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected WorkflowTemplateServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createWorkflowTemplateSettings = settingsBuilder.createWorkflowTemplateSettings().build(); - getWorkflowTemplateSettings = settingsBuilder.getWorkflowTemplateSettings().build(); - instantiateWorkflowTemplateSettings = - settingsBuilder.instantiateWorkflowTemplateSettings().build(); - instantiateWorkflowTemplateOperationSettings = - settingsBuilder.instantiateWorkflowTemplateOperationSettings().build(); - instantiateInlineWorkflowTemplateSettings = - settingsBuilder.instantiateInlineWorkflowTemplateSettings().build(); - instantiateInlineWorkflowTemplateOperationSettings = - settingsBuilder.instantiateInlineWorkflowTemplateOperationSettings().build(); - updateWorkflowTemplateSettings = settingsBuilder.updateWorkflowTemplateSettings().build(); - listWorkflowTemplatesSettings = settingsBuilder.listWorkflowTemplatesSettings().build(); - deleteWorkflowTemplateSettings = settingsBuilder.deleteWorkflowTemplateSettings().build(); - } - - /** Builder for WorkflowTemplateServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - getWorkflowTemplateSettings; - private final UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings; - private final OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings; - private final OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings; - private final UnaryCallSettings.Builder - updateWorkflowTemplateSettings; - private final PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings; - private final UnaryCallSettings.Builder - deleteWorkflowTemplateSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - 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(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_4_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - instantiateInlineWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = OperationCallSettings.newBuilder(); - updateWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWorkflowTemplatesSettings = - PagedCallSettings.newBuilder(LIST_WORKFLOW_TEMPLATES_PAGE_STR_FACT); - deleteWorkflowTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - initDefaults(this); - } - - protected Builder(WorkflowTemplateServiceStubSettings settings) { - super(settings); - - createWorkflowTemplateSettings = settings.createWorkflowTemplateSettings.toBuilder(); - getWorkflowTemplateSettings = settings.getWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateSettings = - settings.instantiateWorkflowTemplateSettings.toBuilder(); - instantiateWorkflowTemplateOperationSettings = - settings.instantiateWorkflowTemplateOperationSettings.toBuilder(); - instantiateInlineWorkflowTemplateSettings = - settings.instantiateInlineWorkflowTemplateSettings.toBuilder(); - instantiateInlineWorkflowTemplateOperationSettings = - settings.instantiateInlineWorkflowTemplateOperationSettings.toBuilder(); - updateWorkflowTemplateSettings = settings.updateWorkflowTemplateSettings.toBuilder(); - listWorkflowTemplatesSettings = settings.listWorkflowTemplatesSettings.toBuilder(); - deleteWorkflowTemplateSettings = settings.deleteWorkflowTemplateSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createWorkflowTemplateSettings, - getWorkflowTemplateSettings, - instantiateWorkflowTemplateSettings, - instantiateInlineWorkflowTemplateSettings, - updateWorkflowTemplateSettings, - listWorkflowTemplatesSettings, - deleteWorkflowTemplateSettings); - } - - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .getWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .instantiateWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .instantiateInlineWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .updateWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .listWorkflowTemplatesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); - - builder - .deleteWorkflowTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .instantiateWorkflowTemplateOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(WorkflowMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(43200000L)) - .build())); - - builder - .instantiateInlineWorkflowTemplateOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - . - newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(WorkflowMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(2.0) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(43200000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createWorkflowTemplate. */ - public UnaryCallSettings.Builder - createWorkflowTemplateSettings() { - return createWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to getWorkflowTemplate. */ - public UnaryCallSettings.Builder - getWorkflowTemplateSettings() { - return getWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateWorkflowTemplateSettings() { - return instantiateWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateWorkflowTemplate. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InstantiateWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateWorkflowTemplateOperationSettings() { - return instantiateWorkflowTemplateOperationSettings; - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - public UnaryCallSettings.Builder - instantiateInlineWorkflowTemplateSettings() { - return instantiateInlineWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to instantiateInlineWorkflowTemplate. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InstantiateInlineWorkflowTemplateRequest, Empty, WorkflowMetadata> - instantiateInlineWorkflowTemplateOperationSettings() { - return instantiateInlineWorkflowTemplateOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateWorkflowTemplate. */ - public UnaryCallSettings.Builder - updateWorkflowTemplateSettings() { - return updateWorkflowTemplateSettings; - } - - /** Returns the builder for the settings used for calls to listWorkflowTemplates. */ - public PagedCallSettings.Builder< - ListWorkflowTemplatesRequest, - ListWorkflowTemplatesResponse, - ListWorkflowTemplatesPagedResponse> - listWorkflowTemplatesSettings() { - return listWorkflowTemplatesSettings; - } - - /** Returns the builder for the settings used for calls to deleteWorkflowTemplate. */ - public UnaryCallSettings.Builder - deleteWorkflowTemplateSettings() { - return deleteWorkflowTemplateSettings; - } - - @Override - public WorkflowTemplateServiceStubSettings build() throws IOException { - return new WorkflowTemplateServiceStubSettings(this); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java deleted file mode 100644 index 318c4985..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientHttpJsonTest.java +++ /dev/null @@ -1,653 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataproc.v1.stub.HttpJsonAutoscalingPolicyServiceStub; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static AutoscalingPolicyServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonAutoscalingPolicyServiceStub.getMethodDescriptors(), - AutoscalingPolicyServiceSettings.getDefaultEndpoint()); - AutoscalingPolicyServiceSettings settings = - AutoscalingPolicyServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - AutoscalingPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AutoscalingPolicyServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createAutoscalingPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createAutoscalingPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest3() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createAutoscalingPolicyExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - AutoscalingPolicy policy = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - - AutoscalingPolicy actualResponse = client.updateAutoscalingPolicy(policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateAutoscalingPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AutoscalingPolicy policy = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - client.updateAutoscalingPolicy(policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAutoscalingPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686"; - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getAutoscalingPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686"; - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAutoscalingPoliciesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest2() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAutoscalingPoliciesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest3() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listAutoscalingPoliciesExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686"; - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-4686/locations/location-4686/autoscalingPolicies/autoscalingPolicie-4686"; - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java deleted file mode 100644 index d95da302..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java +++ /dev/null @@ -1,581 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse; - -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.Empty; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AutoscalingPolicyServiceClientTest { - private static MockAutoscalingPolicyService mockAutoscalingPolicyService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AutoscalingPolicyServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockAutoscalingPolicyService = new MockAutoscalingPolicyService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockAutoscalingPolicyService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AutoscalingPolicyServiceSettings settings = - AutoscalingPolicyServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AutoscalingPolicyServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAutoscalingPolicyTest3() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAutoscalingPolicyRequest actualRequest = - ((CreateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAutoscalingPolicyExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String parent = "parent-995424086"; - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.createAutoscalingPolicy(parent, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - - AutoscalingPolicy actualResponse = client.updateAutoscalingPolicy(policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAutoscalingPolicyRequest actualRequest = - ((UpdateAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - client.updateAutoscalingPolicy(policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = - ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAutoscalingPolicyTest2() throws Exception { - AutoscalingPolicy expectedResponse = - AutoscalingPolicy.newBuilder() - .setId("id3355") - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .setWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String name = "name3373707"; - - AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAutoscalingPolicyRequest actualRequest = - ((GetAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String name = "name3373707"; - client.getAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest2() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAutoscalingPoliciesTest3() throws Exception { - AutoscalingPolicy responsesElement = AutoscalingPolicy.newBuilder().build(); - ListAutoscalingPoliciesResponse expectedResponse = - ListAutoscalingPoliciesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicies(Arrays.asList(responsesElement)) - .build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListAutoscalingPoliciesPagedResponse pagedListResponse = client.listAutoscalingPolicies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPoliciesList().get(0), resources.get(0)); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAutoscalingPoliciesRequest actualRequest = - ((ListAutoscalingPoliciesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAutoscalingPoliciesExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listAutoscalingPolicies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAutoscalingPolicyRequest actualRequest = - ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAutoscalingPolicyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAutoscalingPolicyService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteAutoscalingPolicy(name); - - List actualRequests = mockAutoscalingPolicyService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAutoscalingPolicyRequest actualRequest = - ((DeleteAutoscalingPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAutoscalingPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAutoscalingPolicyService.addException(exception); - - try { - String name = "name3373707"; - client.deleteAutoscalingPolicy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java deleted file mode 100644 index 277b7332..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientHttpJsonTest.java +++ /dev/null @@ -1,502 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataproc.v1.stub.HttpJsonBatchControllerStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class BatchControllerClientHttpJsonTest { - private static MockHttpService mockService; - private static BatchControllerClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonBatchControllerStub.getMethodDescriptors(), - BatchControllerSettings.getDefaultEndpoint()); - BatchControllerSettings settings = - BatchControllerSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - BatchControllerSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = BatchControllerClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createBatchTest() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createBatchTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - - Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createBatchExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - client.createBatchAsync(parent, batch, batchId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createBatchTest2() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createBatchTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - - Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createBatchExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - client.createBatchAsync(parent, batch, batchId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void getBatchTest() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - - Batch actualResponse = client.getBatch(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getBatchExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - client.getBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getBatchTest2() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-1682/locations/location-1682/batches/batche-1682"; - - Batch actualResponse = client.getBatch(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getBatchExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-1682/locations/location-1682/batches/batche-1682"; - client.getBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBatchesTest() throws Exception { - Batch responsesElement = Batch.newBuilder().build(); - ListBatchesResponse expectedResponse = - ListBatchesResponse.newBuilder() - .setNextPageToken("") - .addAllBatches(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listBatchesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBatches(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBatchesTest2() throws Exception { - Batch responsesElement = Batch.newBuilder().build(); - ListBatchesResponse expectedResponse = - ListBatchesResponse.newBuilder() - .setNextPageToken("") - .addAllBatches(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listBatchesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listBatches(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteBatchTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - - client.deleteBatch(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteBatchExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - client.deleteBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteBatchTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-1682/locations/location-1682/batches/batche-1682"; - - client.deleteBatch(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteBatchExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-1682/locations/location-1682/batches/batche-1682"; - client.deleteBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java deleted file mode 100644 index 842b662a..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/BatchControllerClientTest.java +++ /dev/null @@ -1,468 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.BatchControllerClient.ListBatchesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class BatchControllerClientTest { - private static MockBatchController mockBatchController; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private BatchControllerClient client; - - @BeforeClass - public static void startStaticServer() { - mockBatchController = new MockBatchController(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockBatchController)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - BatchControllerSettings settings = - BatchControllerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = BatchControllerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createBatchTest() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createBatchTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockBatchController.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - - Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateBatchRequest actualRequest = ((CreateBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(batch, actualRequest.getBatch()); - Assert.assertEquals(batchId, actualRequest.getBatchId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createBatchExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - client.createBatchAsync(parent, batch, batchId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createBatchTest2() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createBatchTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockBatchController.addResponse(resultOperation); - - String parent = "parent-995424086"; - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - - Batch actualResponse = client.createBatchAsync(parent, batch, batchId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateBatchRequest actualRequest = ((CreateBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(batch, actualRequest.getBatch()); - Assert.assertEquals(batchId, actualRequest.getBatchId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createBatchExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - String parent = "parent-995424086"; - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - client.createBatchAsync(parent, batch, batchId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getBatchTest() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - mockBatchController.addResponse(expectedResponse); - - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - - Batch actualResponse = client.getBatch(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetBatchRequest actualRequest = ((GetBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getBatchExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - client.getBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getBatchTest2() throws Exception { - Batch expectedResponse = - Batch.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .setUuid("uuid3601339") - .setCreateTime(Timestamp.newBuilder().build()) - .setRuntimeInfo(RuntimeInfo.newBuilder().build()) - .setStateMessage("stateMessage1128185398") - .setStateTime(Timestamp.newBuilder().build()) - .setCreator("creator1028554796") - .putAllLabels(new HashMap()) - .setRuntimeConfig(RuntimeConfig.newBuilder().build()) - .setEnvironmentConfig(EnvironmentConfig.newBuilder().build()) - .setOperation("operation1662702951") - .addAllStateHistory(new ArrayList()) - .build(); - mockBatchController.addResponse(expectedResponse); - - String name = "name3373707"; - - Batch actualResponse = client.getBatch(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetBatchRequest actualRequest = ((GetBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getBatchExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - String name = "name3373707"; - client.getBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBatchesTest() throws Exception { - Batch responsesElement = Batch.newBuilder().build(); - ListBatchesResponse expectedResponse = - ListBatchesResponse.newBuilder() - .setNextPageToken("") - .addAllBatches(Arrays.asList(responsesElement)) - .build(); - mockBatchController.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBatchesRequest actualRequest = ((ListBatchesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBatchesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBatches(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBatchesTest2() throws Exception { - Batch responsesElement = Batch.newBuilder().build(); - ListBatchesResponse expectedResponse = - ListBatchesResponse.newBuilder() - .setNextPageToken("") - .addAllBatches(Arrays.asList(responsesElement)) - .build(); - mockBatchController.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListBatchesPagedResponse pagedListResponse = client.listBatches(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBatchesList().get(0), resources.get(0)); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBatchesRequest actualRequest = ((ListBatchesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBatchesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - String parent = "parent-995424086"; - client.listBatches(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteBatchTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockBatchController.addResponse(expectedResponse); - - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - - client.deleteBatch(name); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteBatchRequest actualRequest = ((DeleteBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteBatchExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - client.deleteBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteBatchTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockBatchController.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteBatch(name); - - List actualRequests = mockBatchController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteBatchRequest actualRequest = ((DeleteBatchRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteBatchExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockBatchController.addException(exception); - - try { - String name = "name3373707"; - client.deleteBatch(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java deleted file mode 100644 index 64b8eb3d..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientHttpJsonTest.java +++ /dev/null @@ -1,616 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataproc.v1.stub.HttpJsonClusterControllerStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ClusterControllerClientHttpJsonTest { - private static MockHttpService mockService; - private static ClusterControllerClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonClusterControllerStub.getMethodDescriptors(), - ClusterControllerSettings.getDefaultEndpoint()); - ClusterControllerSettings settings = - ClusterControllerSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - ClusterControllerSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ClusterControllerClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String projectId = "projectId-1530"; - String region = "region-9622"; - Cluster cluster = Cluster.newBuilder().build(); - - Cluster actualResponse = client.createClusterAsync(projectId, region, cluster).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - Cluster cluster = Cluster.newBuilder().build(); - client.createClusterAsync(projectId, region, cluster).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void updateClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Cluster actualResponse = - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void stopClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("stopClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setClusterName("clusterName-7787") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - - Cluster actualResponse = client.stopClusterAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void stopClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setClusterName("clusterName-7787") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - client.stopClusterAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void startClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("startClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setClusterName("clusterName-7787") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - - Cluster actualResponse = client.startClusterAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void startClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setClusterName("clusterName-7787") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - client.startClusterAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - - client.deleteClusterAsync(projectId, region, clusterName).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - client.deleteClusterAsync(projectId, region, clusterName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void getClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - - Cluster actualResponse = client.getCluster(projectId, region, clusterName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - client.getCluster(projectId, region, clusterName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listClustersExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - client.listClusters(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest2() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String filter = "filter-1274492040"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listClustersExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String filter = "filter-1274492040"; - client.listClusters(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void diagnoseClusterTest() throws Exception { - DiagnoseClusterResults expectedResponse = - DiagnoseClusterResults.newBuilder().setOutputUri("outputUri-2119300949").build(); - Operation resultOperation = - Operation.newBuilder() - .setName("diagnoseClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - - DiagnoseClusterResults actualResponse = - client.diagnoseClusterAsync(projectId, region, clusterName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void diagnoseClusterExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String clusterName = "clusterName-7787"; - client.diagnoseClusterAsync(projectId, region, clusterName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java deleted file mode 100644 index 74fb6df7..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java +++ /dev/null @@ -1,607 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.ClusterControllerClient.ListClustersPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ClusterControllerClientTest { - private static MockClusterController mockClusterController; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private ClusterControllerClient client; - - @BeforeClass - public static void startStaticServer() { - mockClusterController = new MockClusterController(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockClusterController)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ClusterControllerSettings settings = - ClusterControllerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ClusterControllerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Cluster cluster = Cluster.newBuilder().build(); - - Cluster actualResponse = client.createClusterAsync(projectId, region, cluster).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Cluster cluster = Cluster.newBuilder().build(); - client.createClusterAsync(projectId, region, cluster).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Cluster actualResponse = - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateClusterAsync(projectId, region, clusterName, cluster, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void stopClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("stopClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - - Cluster actualResponse = client.stopClusterAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StopClusterRequest actualRequest = ((StopClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); - Assert.assertEquals(request.getClusterName(), actualRequest.getClusterName()); - Assert.assertEquals(request.getClusterUuid(), actualRequest.getClusterUuid()); - Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void stopClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - client.stopClusterAsync(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()); - } - } - - @Test - public void startClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("startClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - - Cluster actualResponse = client.startClusterAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StartClusterRequest actualRequest = ((StartClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); - Assert.assertEquals(request.getClusterName(), actualRequest.getClusterName()); - Assert.assertEquals(request.getClusterUuid(), actualRequest.getClusterUuid()); - Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void startClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - client.startClusterAsync(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()); - } - } - - @Test - public void deleteClusterTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - client.deleteClusterAsync(projectId, region, clusterName).get(); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.deleteClusterAsync(projectId, region, clusterName).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setProjectId("projectId-894832108") - .setClusterName("clusterName-1141738587") - .setConfig(ClusterConfig.newBuilder().build()) - .setVirtualClusterConfig(VirtualClusterConfig.newBuilder().build()) - .putAllLabels(new HashMap()) - .setStatus(ClusterStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .setClusterUuid("clusterUuid-1141510955") - .setMetrics(ClusterMetrics.newBuilder().build()) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - Cluster actualResponse = client.getCluster(projectId, region, clusterName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.getCluster(projectId, region, clusterName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - client.listClusters(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest2() throws Exception { - Cluster responsesElement = Cluster.newBuilder().build(); - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .setNextPageToken("") - .addAllClusters(Arrays.asList(responsesElement)) - .build(); - mockClusterController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - - ListClustersPagedResponse pagedListResponse = client.listClusters(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getClustersList().get(0), resources.get(0)); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - client.listClusters(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void diagnoseClusterTest() throws Exception { - DiagnoseClusterResults expectedResponse = - DiagnoseClusterResults.newBuilder().setOutputUri("outputUri-2119300949").build(); - Operation resultOperation = - Operation.newBuilder() - .setName("diagnoseClusterTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockClusterController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - - DiagnoseClusterResults actualResponse = - client.diagnoseClusterAsync(projectId, region, clusterName).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DiagnoseClusterRequest actualRequest = ((DiagnoseClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(clusterName, actualRequest.getClusterName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void diagnoseClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - client.diagnoseClusterAsync(projectId, region, clusterName).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-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java deleted file mode 100644 index 0bcb2ad9..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientHttpJsonTest.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataproc.v1.stub.HttpJsonJobControllerStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class JobControllerClientHttpJsonTest { - private static MockHttpService mockService; - private static JobControllerClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonJobControllerStub.getMethodDescriptors(), - JobControllerSettings.getDefaultEndpoint()); - JobControllerSettings settings = - JobControllerSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - JobControllerSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = JobControllerClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void submitJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJob(projectId, region, job); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void submitJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - Job job = Job.newBuilder().build(); - client.submitJob(projectId, region, job); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void submitJobAsOperationTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("submitJobAsOperationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String projectId = "projectId-1530"; - String region = "region-9622"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void submitJobAsOperationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - Job job = Job.newBuilder().build(); - client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void getJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - - Job actualResponse = client.getJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - client.getJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listJobsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - client.listJobs(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest2() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String filter = "filter-1274492040"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listJobsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String filter = "filter-1274492040"; - client.listJobs(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockService.addResponse(expectedResponse); - - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setJobId("jobId-3646") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Job actualResponse = client.updateJob(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-1530") - .setRegion("region-9622") - .setJobId("jobId-3646") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateJob(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - - Job actualResponse = client.cancelJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void cancelJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - client.cancelJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteJobTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - - client.deleteJob(projectId, region, jobId); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String region = "region-9622"; - String jobId = "jobId-3646"; - client.deleteJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java deleted file mode 100644 index ffa2b83b..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.JobControllerClient.ListJobsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class JobControllerClientTest { - private static MockJobController mockJobController; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private JobControllerClient client; - - @BeforeClass - public static void startStaticServer() { - mockJobController = new MockJobController(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockJobController)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - JobControllerSettings settings = - JobControllerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = JobControllerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void submitJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJob(projectId, region, job); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void submitJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - client.submitJob(projectId, region, job); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void submitJobAsOperationTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("submitJobAsOperationTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockJobController.addResponse(resultOperation); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - - Job actualResponse = client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SubmitJobRequest actualRequest = ((SubmitJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(job, actualRequest.getJob()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void submitJobAsOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - client.submitJobAsOperationAsync(projectId, region, job).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - Job actualResponse = client.getJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetJobRequest actualRequest = ((GetJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.getJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - client.listJobs(projectId, region); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobsTest2() throws Exception { - Job responsesElement = Job.newBuilder().build(); - ListJobsResponse expectedResponse = - ListJobsResponse.newBuilder() - .setNextPageToken("") - .addAllJobs(Arrays.asList(responsesElement)) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - - ListJobsPagedResponse pagedListResponse = client.listJobs(projectId, region, filter); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobsRequest actualRequest = ((ListJobsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - client.listJobs(projectId, region, filter); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Job actualResponse = client.updateJob(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateJobRequest actualRequest = ((UpdateJobRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getRegion(), actualRequest.getRegion()); - Assert.assertEquals(request.getJobId(), actualRequest.getJobId()); - Assert.assertEquals(request.getJob(), actualRequest.getJob()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateJob(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelJobTest() throws Exception { - Job expectedResponse = - Job.newBuilder() - .setReference(JobReference.newBuilder().build()) - .setPlacement(JobPlacement.newBuilder().build()) - .setStatus(JobStatus.newBuilder().build()) - .addAllStatusHistory(new ArrayList()) - .addAllYarnApplications(new ArrayList()) - .setDriverOutputResourceUri("driverOutputResourceUri794556277") - .setDriverControlFilesUri("driverControlFilesUri1491948202") - .putAllLabels(new HashMap()) - .setScheduling(JobScheduling.newBuilder().build()) - .setJobUuid("jobUuid-1437868776") - .setDone(true) - .build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - Job actualResponse = client.cancelJob(projectId, region, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelJobRequest actualRequest = ((CancelJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.cancelJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteJobTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockJobController.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - - client.deleteJob(projectId, region, jobId); - - List actualRequests = mockJobController.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteJobRequest actualRequest = ((DeleteJobRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(region, actualRequest.getRegion()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockJobController.addException(exception); - - try { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - client.deleteJob(projectId, region, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java deleted file mode 100644 index a5d46102..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAutoscalingPolicyService implements MockGrpcService { - private final MockAutoscalingPolicyServiceImpl serviceImpl; - - public MockAutoscalingPolicyService() { - serviceImpl = new MockAutoscalingPolicyServiceImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java deleted file mode 100644 index 0352e3d7..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockAutoscalingPolicyServiceImpl extends AutoscalingPolicyServiceImplBase { - private List requests; - private Queue responses; - - public MockAutoscalingPolicyServiceImpl() { - 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 createAutoscalingPolicy( - CreateAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 CreateAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAutoscalingPolicy( - UpdateAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 UpdateAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAutoscalingPolicy( - GetAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AutoscalingPolicy) { - requests.add(request); - responseObserver.onNext(((AutoscalingPolicy) 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 GetAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AutoscalingPolicy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAutoscalingPolicies( - ListAutoscalingPoliciesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAutoscalingPoliciesResponse) { - requests.add(request); - responseObserver.onNext(((ListAutoscalingPoliciesResponse) 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 ListAutoscalingPolicies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAutoscalingPoliciesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteAutoscalingPolicy( - DeleteAutoscalingPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteAutoscalingPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java deleted file mode 100644 index 3df2af0e..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchController.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockBatchController implements MockGrpcService { - private final MockBatchControllerImpl serviceImpl; - - public MockBatchController() { - serviceImpl = new MockBatchControllerImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java deleted file mode 100644 index a2c9a1da..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockBatchControllerImpl.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1.BatchControllerGrpc.BatchControllerImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockBatchControllerImpl extends BatchControllerImplBase { - private List requests; - private Queue responses; - - public MockBatchControllerImpl() { - 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 createBatch(CreateBatchRequest 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 CreateBatch, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getBatch(GetBatchRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Batch) { - requests.add(request); - responseObserver.onNext(((Batch) 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 GetBatch, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Batch.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listBatches( - ListBatchesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListBatchesResponse) { - requests.add(request); - responseObserver.onNext(((ListBatchesResponse) 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 ListBatches, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListBatchesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteBatch(DeleteBatchRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteBatch, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java deleted file mode 100644 index 4023cc68..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockClusterController implements MockGrpcService { - private final MockClusterControllerImpl serviceImpl; - - public MockClusterController() { - serviceImpl = new MockClusterControllerImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java deleted file mode 100644 index fbf804c7..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1.ClusterControllerGrpc.ClusterControllerImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockClusterControllerImpl extends ClusterControllerImplBase { - private List requests; - private Queue responses; - - public MockClusterControllerImpl() { - 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 createCluster( - CreateClusterRequest 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 CreateCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCluster( - UpdateClusterRequest 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 UpdateCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void stopCluster(StopClusterRequest 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 StopCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void startCluster( - StartClusterRequest 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 StartCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteCluster( - DeleteClusterRequest 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 DeleteCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Cluster) { - requests.add(request); - responseObserver.onNext(((Cluster) 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 GetCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Cluster.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listClusters( - ListClustersRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListClustersResponse) { - requests.add(request); - responseObserver.onNext(((ListClustersResponse) 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 ListClusters, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListClustersResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void diagnoseCluster( - DiagnoseClusterRequest 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 DiagnoseCluster, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java deleted file mode 100644 index 9b9096b1..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockJobController implements MockGrpcService { - private final MockJobControllerImpl serviceImpl; - - public MockJobController() { - serviceImpl = new MockJobControllerImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java deleted file mode 100644 index e2cdd8b6..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1.JobControllerGrpc.JobControllerImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockJobControllerImpl extends JobControllerImplBase { - private List requests; - private Queue responses; - - public MockJobControllerImpl() { - 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 submitJob(SubmitJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 SubmitJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void submitJobAsOperation( - SubmitJobRequest 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 SubmitJobAsOperation, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getJob(GetJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 GetJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listJobs(ListJobsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListJobsResponse) { - requests.add(request); - responseObserver.onNext(((ListJobsResponse) 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 ListJobs, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListJobsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateJob(UpdateJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 UpdateJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void cancelJob(CancelJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Job) { - requests.add(request); - responseObserver.onNext(((Job) 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 CancelJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Job.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteJob(DeleteJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java deleted file mode 100644 index 01061d84..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockWorkflowTemplateService implements MockGrpcService { - private final MockWorkflowTemplateServiceImpl serviceImpl; - - public MockWorkflowTemplateService() { - serviceImpl = new MockWorkflowTemplateServiceImpl(); - } - - @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-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java deleted file mode 100644 index b41de973..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceGrpc.WorkflowTemplateServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockWorkflowTemplateServiceImpl extends WorkflowTemplateServiceImplBase { - private List requests; - private Queue responses; - - public MockWorkflowTemplateServiceImpl() { - 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 createWorkflowTemplate( - CreateWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 CreateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getWorkflowTemplate( - GetWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 GetWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void instantiateWorkflowTemplate( - InstantiateWorkflowTemplateRequest 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 InstantiateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void instantiateInlineWorkflowTemplate( - InstantiateInlineWorkflowTemplateRequest 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 InstantiateInlineWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateWorkflowTemplate( - UpdateWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WorkflowTemplate) { - requests.add(request); - responseObserver.onNext(((WorkflowTemplate) 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 UpdateWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WorkflowTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWorkflowTemplates( - ListWorkflowTemplatesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWorkflowTemplatesResponse) { - requests.add(request); - responseObserver.onNext(((ListWorkflowTemplatesResponse) 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 ListWorkflowTemplates, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWorkflowTemplatesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteWorkflowTemplate( - DeleteWorkflowTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteWorkflowTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java deleted file mode 100644 index 147e97d9..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientHttpJsonTest.java +++ /dev/null @@ -1,1037 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.dataproc.v1.stub.HttpJsonWorkflowTemplateServiceStub; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static WorkflowTemplateServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonWorkflowTemplateServiceStub.getMethodDescriptors(), - WorkflowTemplateServiceSettings.getDefaultEndpoint()); - WorkflowTemplateServiceSettings settings = - WorkflowTemplateServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - WorkflowTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = WorkflowTemplateServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createWorkflowTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest3() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createWorkflowTemplateExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getWorkflowTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void instantiateWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateWorkflowTemplateTest4() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void updateWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - WorkflowTemplate template = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - - WorkflowTemplate actualResponse = client.updateWorkflowTemplate(template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowTemplate template = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - client.updateWorkflowTemplate(template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listWorkflowTemplatesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest2() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listWorkflowTemplatesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest3() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listWorkflowTemplatesExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteWorkflowTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteWorkflowTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-5104/locations/location-5104/workflowTemplates/workflowTemplate-5104"; - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java deleted file mode 100644 index 6cb1712a..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java +++ /dev/null @@ -1,941 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import static com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class WorkflowTemplateServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockWorkflowTemplateService mockWorkflowTemplateService; - private LocalChannelProvider channelProvider; - private WorkflowTemplateServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockWorkflowTemplateService = new MockWorkflowTemplateService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockWorkflowTemplateService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - WorkflowTemplateServiceSettings settings = - WorkflowTemplateServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = WorkflowTemplateServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWorkflowTemplateTest3() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.createWorkflowTemplate(parent, template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWorkflowTemplateRequest actualRequest = - ((CreateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.createWorkflowTemplate(parent, template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkflowTemplateTest2() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String name = "name3373707"; - - WorkflowTemplate actualResponse = client.getWorkflowTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkflowTemplateRequest actualRequest = ((GetWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.getWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void instantiateWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String name = "name3373707"; - - client.instantiateWorkflowTemplateAsync(name).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.instantiateWorkflowTemplateAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(parameters, actualRequest.getParametersMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateWorkflowTemplateTest4() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String name = "name3373707"; - Map parameters = new HashMap<>(); - - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateWorkflowTemplateRequest actualRequest = - ((InstantiateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(parameters, actualRequest.getParametersMap()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateWorkflowTemplateExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - Map parameters = new HashMap<>(); - client.instantiateWorkflowTemplateAsync(name, parameters).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void instantiateInlineWorkflowTemplateTest3() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("instantiateInlineWorkflowTemplateTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockWorkflowTemplateService.addResponse(resultOperation); - - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - InstantiateInlineWorkflowTemplateRequest actualRequest = - ((InstantiateInlineWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void instantiateInlineWorkflowTemplateExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateWorkflowTemplateTest() throws Exception { - WorkflowTemplate expectedResponse = - WorkflowTemplate.newBuilder() - .setId("id3355") - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setPlacement(WorkflowTemplatePlacement.newBuilder().build()) - .addAllJobs(new ArrayList()) - .addAllParameters(new ArrayList()) - .setDagTimeout(Duration.newBuilder().build()) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - - WorkflowTemplate actualResponse = client.updateWorkflowTemplate(template); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateWorkflowTemplateRequest actualRequest = - ((UpdateWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(template, actualRequest.getTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - client.updateWorkflowTemplate(template); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest2() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkflowTemplatesTest3() throws Exception { - WorkflowTemplate responsesElement = WorkflowTemplate.newBuilder().build(); - ListWorkflowTemplatesResponse expectedResponse = - ListWorkflowTemplatesResponse.newBuilder() - .setNextPageToken("") - .addAllTemplates(Arrays.asList(responsesElement)) - .build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListWorkflowTemplatesPagedResponse pagedListResponse = client.listWorkflowTemplates(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTemplatesList().get(0), resources.get(0)); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkflowTemplatesRequest actualRequest = - ((ListWorkflowTemplatesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkflowTemplatesExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listWorkflowTemplates(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowTemplateRequest actualRequest = - ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWorkflowTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockWorkflowTemplateService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteWorkflowTemplate(name); - - List actualRequests = mockWorkflowTemplateService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWorkflowTemplateRequest actualRequest = - ((DeleteWorkflowTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWorkflowTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockWorkflowTemplateService.addException(exception); - - try { - String name = "name3373707"; - client.deleteWorkflowTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/it/ITSystemTest.java b/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/it/ITSystemTest.java deleted file mode 100644 index 013a04d2..00000000 --- a/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/it/ITSystemTest.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.dataproc.v1.it; - -import static org.junit.Assert.assertEquals; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterConfig; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.common.collect.Lists; -import java.util.Iterator; -import java.util.List; -import java.util.UUID; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ITSystemTest { - private static ClusterControllerClient clusterClient; - private static WorkflowTemplateServiceClient workflowClient; - - private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final String REGION = "global"; - private static final String ID = UUID.randomUUID().toString(); - private static final int VERSION = 1; - private static final String CLUSTER_NAME = - "test-cluster-" + UUID.randomUUID().toString().substring(0, 8); - private static final String CLUSTER_REGION = "us-central1"; - private static final ClusterControllerSettings.Builder CLUSTER_CONTROLLER_SETTINGS = - ClusterControllerSettings.newBuilder().setEndpoint("us-central1-dataproc.googleapis.com:443"); - private static final ClusterConfig CLUSTER_CONFIG = ClusterConfig.newBuilder().build(); - private static final Cluster CLUSTER = - Cluster.newBuilder() - .setProjectId(PROJECT_ID) - .setClusterName(CLUSTER_NAME) - .setClusterUuid(ID) - .setConfig(CLUSTER_CONFIG) - .build(); - private static final CreateClusterRequest CREATE_CLUSTER_REQUEST = - CreateClusterRequest.newBuilder() - .setProjectId(PROJECT_ID) - .setRegion(CLUSTER_REGION) - .setCluster(CLUSTER) - .build(); - private static final WorkflowTemplateName WORKFLOW_TEMPLATE_NAME = - WorkflowTemplateName.of(PROJECT_ID, REGION, ID); - private static final RegionName PARENT = RegionName.of(PROJECT_ID, REGION); - private static final WorkflowTemplate WORKFLOW_TEMPLATE = - WorkflowTemplate.newBuilder() - .setId(ID) - .setName(WORKFLOW_TEMPLATE_NAME.toString()) - .setVersion(VERSION) - .build(); - - @BeforeClass - public static void beforeClass() throws Exception { - /** create cluster */ - clusterClient = ClusterControllerClient.create(CLUSTER_CONTROLLER_SETTINGS.build()); - clusterClient.createClusterAsync(CREATE_CLUSTER_REQUEST).get(); - - /** create workflow */ - workflowClient = WorkflowTemplateServiceClient.create(); - workflowClient.createWorkflowTemplate(PARENT, WORKFLOW_TEMPLATE); - } - - @AfterClass - public static void afterClass() { - /** delete cluster */ - clusterClient.deleteClusterAsync(PROJECT_ID, CLUSTER_REGION, CLUSTER_NAME); - clusterClient.close(); - - /** delete workflow */ - workflowClient.deleteWorkflowTemplate(WORKFLOW_TEMPLATE_NAME); - workflowClient.close(); - } - - @Test - public void getClusterTest() { - Cluster cluster = clusterClient.getCluster(PROJECT_ID, CLUSTER_REGION, CLUSTER_NAME); - assertEquals(PROJECT_ID, cluster.getProjectId()); - assertEquals(CLUSTER_NAME, cluster.getClusterName()); - } - - @Test - public void listClustersTest() { - ClusterControllerClient.ListClustersPagedResponse pagedListResponse = - clusterClient.listClusters(PROJECT_ID, CLUSTER_REGION); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - int count = 0, cluster = 0; - while (cluster < resources.size()) { - count++; - cluster++; - } - assertEquals(count, resources.size()); - } - - @Test - public void getWorkflowTemplateTest() { - WorkflowTemplate response = workflowClient.getWorkflowTemplate(WORKFLOW_TEMPLATE_NAME); - assertEquals(ID, response.getId()); - assertEquals(WORKFLOW_TEMPLATE_NAME.toString(), response.getName()); - assertEquals(VERSION, response.getVersion()); - } - - @Test - public void listWorkflowTemplateTest() { - WorkflowTemplateServiceClient.ListWorkflowTemplatesPagedResponse response = - workflowClient.listWorkflowTemplates(PARENT); - Iterator templateIterator = response.iterateAll().iterator(); - int count = 0; - while (templateIterator.hasNext()) { - templateIterator.next(); - count++; - } - assertEquals(1, count); - } -} diff --git a/grpc-google-cloud-dataproc-v1/pom.xml b/grpc-google-cloud-dataproc-v1/pom.xml deleted file mode 100644 index 316c2d36..00000000 --- a/grpc-google-cloud-dataproc-v1/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - grpc-google-cloud-dataproc-v1 - GRPC library for grpc-google-cloud-dataproc-v1 - - com.google.cloud - google-cloud-dataproc-parent - 4.0.9-SNAPSHOT - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-dataproc-v1 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-common-protos - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java deleted file mode 100644 index cb0b6ad2..00000000 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java +++ /dev/null @@ -1,889 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API interface for managing autoscaling policies in the
- * Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/autoscaling_policies.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AutoscalingPolicyServiceGrpc { - - private AutoscalingPolicyServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.AutoscalingPolicyService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getCreateAutoscalingPolicyMethod; - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getCreateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = - getCreateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "CreateAutoscalingPolicy")) - .build(); - } - } - } - return getCreateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getUpdateAutoscalingPolicyMethod; - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getUpdateAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getUpdateAutoscalingPolicyMethod = - getUpdateAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "UpdateAutoscalingPolicy")) - .build(); - } - } - } - return getUpdateAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - responseType = com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getGetAutoscalingPolicyMethod; - if ((getGetAutoscalingPolicyMethod = AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getGetAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getGetAutoscalingPolicyMethod = - getGetAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "GetAutoscalingPolicy")) - .build(); - } - } - } - return getGetAutoscalingPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAutoscalingPolicies", - requestType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - getListAutoscalingPoliciesMethod; - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getListAutoscalingPoliciesMethod = - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod) - == null) { - AutoscalingPolicyServiceGrpc.getListAutoscalingPoliciesMethod = - getListAutoscalingPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAutoscalingPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "ListAutoscalingPolicies")) - .build(); - } - } - } - return getListAutoscalingPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAutoscalingPolicy", - requestType = com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, com.google.protobuf.Empty> - getDeleteAutoscalingPolicyMethod; - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - synchronized (AutoscalingPolicyServiceGrpc.class) { - if ((getDeleteAutoscalingPolicyMethod = - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod) - == null) { - AutoscalingPolicyServiceGrpc.getDeleteAutoscalingPolicyMethod = - getDeleteAutoscalingPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAutoscalingPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AutoscalingPolicyServiceMethodDescriptorSupplier( - "DeleteAutoscalingPolicy")) - .build(); - } - } - } - return getDeleteAutoscalingPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AutoscalingPolicyServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AutoscalingPolicyServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AutoscalingPolicyServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AutoscalingPolicyServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - }; - return AutoscalingPolicyServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public abstract static class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAutoscalingPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAutoscalingPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAutoscalingPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_CREATE_AUTOSCALING_POLICY))) - .addMethod( - getUpdateAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_UPDATE_AUTOSCALING_POLICY))) - .addMethod( - getGetAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest, - com.google.cloud.dataproc.v1.AutoscalingPolicy>( - this, METHODID_GET_AUTOSCALING_POLICY))) - .addMethod( - getListAutoscalingPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>( - this, METHODID_LIST_AUTOSCALING_POLICIES))) - .addMethod( - getDeleteAutoscalingPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_AUTOSCALING_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AutoscalingPolicyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public void createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public void updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public void getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public void listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public void deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AutoscalingPolicyServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getAutoscalingPolicy( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAutoscalingPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAutoscalingPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.protobuf.Empty deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAutoscalingPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API interface for managing autoscaling policies in the
-   * Dataproc API.
-   * 
- */ - public static final class AutoscalingPolicyServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AutoscalingPolicyServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AutoscalingPolicyServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AutoscalingPolicyServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - createAutoscalingPolicy( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates (replaces) autoscaling policy.
-     * Disabled check for update_mask, because all updates will be full
-     * replacements.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - updateAutoscalingPolicy( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves autoscaling policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.AutoscalingPolicy> - getAutoscalingPolicy(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAutoscalingPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists autoscaling policies in the project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse> - listAutoscalingPolicies( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAutoscalingPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an autoscaling policy. It is an error to delete an autoscaling
-     * policy that is in use by one or more clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAutoscalingPolicy( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAutoscalingPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_AUTOSCALING_POLICY = 0; - private static final int METHODID_UPDATE_AUTOSCALING_POLICY = 1; - private static final int METHODID_GET_AUTOSCALING_POLICY = 2; - private static final int METHODID_LIST_AUTOSCALING_POLICIES = 3; - private static final int METHODID_DELETE_AUTOSCALING_POLICY = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AutoscalingPolicyServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AutoscalingPolicyServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_AUTOSCALING_POLICY: - serviceImpl.createAutoscalingPolicy( - (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_AUTOSCALING_POLICY: - serviceImpl.updateAutoscalingPolicy( - (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_AUTOSCALING_POLICY: - serviceImpl.getAutoscalingPolicy( - (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_AUTOSCALING_POLICIES: - serviceImpl.listAutoscalingPolicies( - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse>) - responseObserver); - break; - case METHODID_DELETE_AUTOSCALING_POLICY: - serviceImpl.deleteAutoscalingPolicy( - (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) 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 AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AutoscalingPolicyServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AutoscalingPolicyService"); - } - } - - private static final class AutoscalingPolicyServiceFileDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier { - AutoscalingPolicyServiceFileDescriptorSupplier() {} - } - - private static final class AutoscalingPolicyServiceMethodDescriptorSupplier - extends AutoscalingPolicyServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AutoscalingPolicyServiceMethodDescriptorSupplier(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 (AutoscalingPolicyServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AutoscalingPolicyServiceFileDescriptorSupplier()) - .addMethod(getCreateAutoscalingPolicyMethod()) - .addMethod(getUpdateAutoscalingPolicyMethod()) - .addMethod(getGetAutoscalingPolicyMethod()) - .addMethod(getListAutoscalingPoliciesMethod()) - .addMethod(getDeleteAutoscalingPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java deleted file mode 100644 index a188740c..00000000 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchControllerGrpc.java +++ /dev/null @@ -1,694 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The BatchController provides methods to manage batch workloads.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/batches.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BatchControllerGrpc { - - private BatchControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.BatchController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBatch", - requestType = com.google.cloud.dataproc.v1.CreateBatchRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateBatchRequest, com.google.longrunning.Operation> - getCreateBatchMethod; - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getCreateBatchMethod = BatchControllerGrpc.getCreateBatchMethod) == null) { - BatchControllerGrpc.getCreateBatchMethod = - getCreateBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("CreateBatch")) - .build(); - } - } - } - return getCreateBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBatch", - requestType = com.google.cloud.dataproc.v1.GetBatchRequest.class, - responseType = com.google.cloud.dataproc.v1.Batch.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetBatchRequest, com.google.cloud.dataproc.v1.Batch> - getGetBatchMethod; - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getGetBatchMethod = BatchControllerGrpc.getGetBatchMethod) == null) { - BatchControllerGrpc.getGetBatchMethod = - getGetBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Batch.getDefaultInstance())) - .setSchemaDescriptor(new BatchControllerMethodDescriptorSupplier("GetBatch")) - .build(); - } - } - } - return getGetBatchMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBatches", - requestType = com.google.cloud.dataproc.v1.ListBatchesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListBatchesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse> - getListBatchesMethod; - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getListBatchesMethod = BatchControllerGrpc.getListBatchesMethod) == null) { - BatchControllerGrpc.getListBatchesMethod = - getListBatchesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBatches")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListBatchesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("ListBatches")) - .build(); - } - } - } - return getListBatchesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBatch", - requestType = com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty> - getDeleteBatchMethod; - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - synchronized (BatchControllerGrpc.class) { - if ((getDeleteBatchMethod = BatchControllerGrpc.getDeleteBatchMethod) == null) { - BatchControllerGrpc.getDeleteBatchMethod = - getDeleteBatchMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBatch")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new BatchControllerMethodDescriptorSupplier("DeleteBatch")) - .build(); - } - } - } - return getDeleteBatchMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BatchControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - }; - return BatchControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BatchControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - }; - return BatchControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BatchControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BatchControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - }; - return BatchControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public abstract static class BatchControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBatchMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBatchMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBatchesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBatchMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateBatchRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_BATCH))) - .addMethod( - getGetBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetBatchRequest, - com.google.cloud.dataproc.v1.Batch>(this, METHODID_GET_BATCH))) - .addMethod( - getListBatchesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListBatchesRequest, - com.google.cloud.dataproc.v1.ListBatchesResponse>( - this, METHODID_LIST_BATCHES))) - .addMethod( - getDeleteBatchMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteBatchRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_BATCH))) - .build(); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private BatchControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public void createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public void getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public void listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BatchControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.longrunning.Operation createBatch( - com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBatchMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.cloud.dataproc.v1.Batch getBatch( - com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBatchMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListBatchesResponse listBatches( - com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBatchesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteBatch( - com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBatchMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The BatchController provides methods to manage batch workloads.
-   * 
- */ - public static final class BatchControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BatchControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BatchControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BatchControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a batch workload that executes asynchronously.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createBatch(com.google.cloud.dataproc.v1.CreateBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBatchMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the batch workload resource representation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getBatch(com.google.cloud.dataproc.v1.GetBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBatchMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists batch workloads.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListBatchesResponse> - listBatches(com.google.cloud.dataproc.v1.ListBatchesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBatchesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the batch workload resource. If the batch is not in terminal state,
-     * the delete fails and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBatch(com.google.cloud.dataproc.v1.DeleteBatchRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBatchMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_BATCH = 0; - private static final int METHODID_GET_BATCH = 1; - private static final int METHODID_LIST_BATCHES = 2; - private static final int METHODID_DELETE_BATCH = 3; - - 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 BatchControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BatchControllerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_BATCH: - serviceImpl.createBatch( - (com.google.cloud.dataproc.v1.CreateBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BATCH: - serviceImpl.getBatch( - (com.google.cloud.dataproc.v1.GetBatchRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BATCHES: - serviceImpl.listBatches( - (com.google.cloud.dataproc.v1.ListBatchesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_BATCH: - serviceImpl.deleteBatch( - (com.google.cloud.dataproc.v1.DeleteBatchRequest) 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 BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BatchControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BatchController"); - } - } - - private static final class BatchControllerFileDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier { - BatchControllerFileDescriptorSupplier() {} - } - - private static final class BatchControllerMethodDescriptorSupplier - extends BatchControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BatchControllerMethodDescriptorSupplier(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 (BatchControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BatchControllerFileDescriptorSupplier()) - .addMethod(getCreateBatchMethod()) - .addMethod(getGetBatchMethod()) - .addMethod(getListBatchesMethod()) - .addMethod(getDeleteBatchMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java deleted file mode 100644 index 95cd8ec5..00000000 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java +++ /dev/null @@ -1,1205 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The ClusterControllerService provides methods to manage clusters
- * of Compute Engine instances.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/clusters.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ClusterControllerGrpc { - - private ClusterControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.ClusterController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCluster", - requestType = com.google.cloud.dataproc.v1.CreateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateClusterRequest, com.google.longrunning.Operation> - getCreateClusterMethod; - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getCreateClusterMethod = ClusterControllerGrpc.getCreateClusterMethod) == null) { - ClusterControllerGrpc.getCreateClusterMethod = - getCreateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("CreateCluster")) - .build(); - } - } - } - return getCreateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", - requestType = com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateClusterRequest, com.google.longrunning.Operation> - getUpdateClusterMethod; - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getUpdateClusterMethod = ClusterControllerGrpc.getUpdateClusterMethod) == null) { - ClusterControllerGrpc.getUpdateClusterMethod = - getUpdateClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("UpdateCluster")) - .build(); - } - } - } - return getUpdateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopCluster", - requestType = com.google.cloud.dataproc.v1.StopClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StopClusterRequest, com.google.longrunning.Operation> - getStopClusterMethod; - if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getStopClusterMethod = ClusterControllerGrpc.getStopClusterMethod) == null) { - ClusterControllerGrpc.getStopClusterMethod = - getStopClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("StopCluster")) - .build(); - } - } - } - return getStopClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartCluster", - requestType = com.google.cloud.dataproc.v1.StartClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.StartClusterRequest, com.google.longrunning.Operation> - getStartClusterMethod; - if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getStartClusterMethod = ClusterControllerGrpc.getStartClusterMethod) == null) { - ClusterControllerGrpc.getStartClusterMethod = - getStartClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.StartClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("StartCluster")) - .build(); - } - } - } - return getStartClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", - requestType = com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteClusterRequest, com.google.longrunning.Operation> - getDeleteClusterMethod; - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDeleteClusterMethod = ClusterControllerGrpc.getDeleteClusterMethod) == null) { - ClusterControllerGrpc.getDeleteClusterMethod = - getDeleteClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DeleteCluster")) - .build(); - } - } - } - return getDeleteClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCluster", - requestType = com.google.cloud.dataproc.v1.GetClusterRequest.class, - responseType = com.google.cloud.dataproc.v1.Cluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetClusterRequest, com.google.cloud.dataproc.v1.Cluster> - getGetClusterMethod; - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getGetClusterMethod = ClusterControllerGrpc.getGetClusterMethod) == null) { - ClusterControllerGrpc.getGetClusterMethod = - getGetClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Cluster.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("GetCluster")) - .build(); - } - } - } - return getGetClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClusters", - requestType = com.google.cloud.dataproc.v1.ListClustersRequest.class, - responseType = com.google.cloud.dataproc.v1.ListClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse> - getListClustersMethod; - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getListClustersMethod = ClusterControllerGrpc.getListClustersMethod) == null) { - ClusterControllerGrpc.getListClustersMethod = - getListClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("ListClusters")) - .build(); - } - } - } - return getListClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiagnoseCluster", - requestType = com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, com.google.longrunning.Operation> - getDiagnoseClusterMethod; - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - synchronized (ClusterControllerGrpc.class) { - if ((getDiagnoseClusterMethod = ClusterControllerGrpc.getDiagnoseClusterMethod) == null) { - ClusterControllerGrpc.getDiagnoseClusterMethod = - getDiagnoseClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterControllerMethodDescriptorSupplier("DiagnoseCluster")) - .build(); - } - } - } - return getDiagnoseClusterMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ClusterControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - }; - return ClusterControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ClusterControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - }; - return ClusterControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ClusterControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - }; - return ClusterControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public abstract static class ClusterControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public void stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public void startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDiagnoseClusterMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateClusterRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getStopClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StopClusterRequest, - com.google.longrunning.Operation>(this, METHODID_STOP_CLUSTER))) - .addMethod( - getStartClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.StartClusterRequest, - com.google.longrunning.Operation>(this, METHODID_START_CLUSTER))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CLUSTER))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetClusterRequest, - com.google.cloud.dataproc.v1.Cluster>(this, METHODID_GET_CLUSTER))) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListClustersRequest, - com.google.cloud.dataproc.v1.ListClustersResponse>( - this, METHODID_LIST_CLUSTERS))) - .addMethod( - getDiagnoseClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DiagnoseClusterRequest, - com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_CLUSTER))) - .build(); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private ClusterControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public void updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public void stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public void startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public void deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public void getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public void listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public void diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ClusterControllerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.longrunning.Operation createCluster( - com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public com.google.longrunning.Operation updateCluster( - com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public com.google.longrunning.Operation stopCluster( - com.google.cloud.dataproc.v1.StopClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public com.google.longrunning.Operation startCluster( - com.google.cloud.dataproc.v1.StartClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.longrunning.Operation deleteCluster( - com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Cluster getCluster( - com.google.cloud.dataproc.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListClustersResponse listClusters( - com.google.cloud.dataproc.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public com.google.longrunning.Operation diagnoseCluster( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiagnoseClusterMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The ClusterControllerService provides methods to manage clusters
-   * of Compute Engine instances.
-   * 
- */ - public static final class ClusterControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ClusterControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCluster(com.google.cloud.dataproc.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
-     * is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.cloud.dataproc.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopCluster(com.google.cloud.dataproc.v1.StopClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startCluster(com.google.cloud.dataproc.v1.StartClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a cluster in a project. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCluster(com.google.cloud.dataproc.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a cluster in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getCluster(com.google.cloud.dataproc.v1.GetClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all regions/{region}/clusters in a project alphabetically.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListClustersResponse> - listClusters(com.google.cloud.dataproc.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets cluster diagnostic information. The returned
-     * [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
-     * After the operation completes,
-     * [Operation.response][google.longrunning.Operation.response]
-     * contains
-     * [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - diagnoseCluster(com.google.cloud.dataproc.v1.DiagnoseClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiagnoseClusterMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CLUSTER = 0; - private static final int METHODID_UPDATE_CLUSTER = 1; - private static final int METHODID_STOP_CLUSTER = 2; - private static final int METHODID_START_CLUSTER = 3; - private static final int METHODID_DELETE_CLUSTER = 4; - private static final int METHODID_GET_CLUSTER = 5; - private static final int METHODID_LIST_CLUSTERS = 6; - private static final int METHODID_DIAGNOSE_CLUSTER = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ClusterControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterControllerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CLUSTER: - serviceImpl.createCluster( - (com.google.cloud.dataproc.v1.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster( - (com.google.cloud.dataproc.v1.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_CLUSTER: - serviceImpl.stopCluster( - (com.google.cloud.dataproc.v1.StopClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_CLUSTER: - serviceImpl.startCluster( - (com.google.cloud.dataproc.v1.StartClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster( - (com.google.cloud.dataproc.v1.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster( - (com.google.cloud.dataproc.v1.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters( - (com.google.cloud.dataproc.v1.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DIAGNOSE_CLUSTER: - serviceImpl.diagnoseCluster( - (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) 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 ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ClusterController"); - } - } - - private static final class ClusterControllerFileDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier { - ClusterControllerFileDescriptorSupplier() {} - } - - private static final class ClusterControllerMethodDescriptorSupplier - extends ClusterControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ClusterControllerMethodDescriptorSupplier(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 (ClusterControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterControllerFileDescriptorSupplier()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getStopClusterMethod()) - .addMethod(getStartClusterMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getListClustersMethod()) - .addMethod(getDiagnoseClusterMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java deleted file mode 100644 index f9c7c484..00000000 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java +++ /dev/null @@ -1,1023 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The JobController provides methods to manage jobs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/jobs.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class JobControllerGrpc { - - private JobControllerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.JobController"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJob", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.cloud.dataproc.v1.Job> - getSubmitJobMethod; - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobMethod = JobControllerGrpc.getSubmitJobMethod) == null) { - JobControllerGrpc.getSubmitJobMethod = - getSubmitJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("SubmitJob")) - .build(); - } - } - } - return getSubmitJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubmitJobAsOperation", - requestType = com.google.cloud.dataproc.v1.SubmitJobRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.SubmitJobRequest, com.google.longrunning.Operation> - getSubmitJobAsOperationMethod; - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getSubmitJobAsOperationMethod = JobControllerGrpc.getSubmitJobAsOperationMethod) - == null) { - JobControllerGrpc.getSubmitJobAsOperationMethod = - getSubmitJobAsOperationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SubmitJobAsOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new JobControllerMethodDescriptorSupplier("SubmitJobAsOperation")) - .build(); - } - } - } - return getSubmitJobAsOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJob", - requestType = com.google.cloud.dataproc.v1.GetJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job> - getGetJobMethod; - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getGetJobMethod = JobControllerGrpc.getGetJobMethod) == null) { - JobControllerGrpc.getGetJobMethod = - getGetJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("GetJob")) - .build(); - } - } - } - return getGetJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobs", - requestType = com.google.cloud.dataproc.v1.ListJobsRequest.class, - responseType = com.google.cloud.dataproc.v1.ListJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse> - getListJobsMethod; - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getListJobsMethod = JobControllerGrpc.getListJobsMethod) == null) { - JobControllerGrpc.getListJobsMethod = - getListJobsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListJobsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("ListJobs")) - .build(); - } - } - } - return getListJobsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateJob", - requestType = com.google.cloud.dataproc.v1.UpdateJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateJobRequest, com.google.cloud.dataproc.v1.Job> - getUpdateJobMethod; - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getUpdateJobMethod = JobControllerGrpc.getUpdateJobMethod) == null) { - JobControllerGrpc.getUpdateJobMethod = - getUpdateJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("UpdateJob")) - .build(); - } - } - } - return getUpdateJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelJob", - requestType = com.google.cloud.dataproc.v1.CancelJobRequest.class, - responseType = com.google.cloud.dataproc.v1.Job.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CancelJobRequest, com.google.cloud.dataproc.v1.Job> - getCancelJobMethod; - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getCancelJobMethod = JobControllerGrpc.getCancelJobMethod) == null) { - JobControllerGrpc.getCancelJobMethod = - getCancelJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.Job.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("CancelJob")) - .build(); - } - } - } - return getCancelJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteJob", - requestType = com.google.cloud.dataproc.v1.DeleteJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty> - getDeleteJobMethod; - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - synchronized (JobControllerGrpc.class) { - if ((getDeleteJobMethod = JobControllerGrpc.getDeleteJobMethod) == null) { - JobControllerGrpc.getDeleteJobMethod = - getDeleteJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteJobRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new JobControllerMethodDescriptorSupplier("DeleteJob")) - .build(); - } - } - } - return getDeleteJobMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static JobControllerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - }; - return JobControllerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static JobControllerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - }; - return JobControllerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static JobControllerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public JobControllerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - }; - return JobControllerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public abstract static class JobControllerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSubmitJobAsOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteJobMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getSubmitJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_SUBMIT_JOB))) - .addMethod( - getSubmitJobAsOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.SubmitJobRequest, - com.google.longrunning.Operation>(this, METHODID_SUBMIT_JOB_AS_OPERATION))) - .addMethod( - getGetJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetJobRequest, com.google.cloud.dataproc.v1.Job>( - this, METHODID_GET_JOB))) - .addMethod( - getListJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListJobsRequest, - com.google.cloud.dataproc.v1.ListJobsResponse>(this, METHODID_LIST_JOBS))) - .addMethod( - getUpdateJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_UPDATE_JOB))) - .addMethod( - getCancelJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CancelJobRequest, - com.google.cloud.dataproc.v1.Job>(this, METHODID_CANCEL_JOB))) - .addMethod( - getDeleteJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteJobRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_JOB))) - .build(); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerStub - extends io.grpc.stub.AbstractAsyncStub { - private JobControllerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public void submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public void submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public void getJob( - com.google.cloud.dataproc.v1.GetJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public void listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public void updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public void cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public void deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private JobControllerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job submitJob( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.longrunning.Operation submitJobAsOperation( - com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubmitJobAsOperationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job getJob( - com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListJobsResponse listJobs( - com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.cloud.dataproc.v1.Job updateJob( - com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.cloud.dataproc.v1.Job cancelJob( - com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.protobuf.Empty deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteJobMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The JobController provides methods to manage jobs.
-   * 
- */ - public static final class JobControllerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private JobControllerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected JobControllerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new JobControllerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Submits a job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJob(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Submits job to a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - submitJobAsOperation(com.google.cloud.dataproc.v1.SubmitJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubmitJobAsOperationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the resource representation for a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getJob(com.google.cloud.dataproc.v1.GetJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists regions/{region}/jobs in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListJobsResponse> - listJobs(com.google.cloud.dataproc.v1.ListJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a job in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateJob(com.google.cloud.dataproc.v1.UpdateJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a job cancellation request. To access the job resource
-     * after cancellation, call
-     * [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
-     * or
-     * [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelJob(com.google.cloud.dataproc.v1.CancelJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the job from the project. If the job is active, the delete fails,
-     * and the response returns `FAILED_PRECONDITION`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteJob( - com.google.cloud.dataproc.v1.DeleteJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteJobMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SUBMIT_JOB = 0; - private static final int METHODID_SUBMIT_JOB_AS_OPERATION = 1; - private static final int METHODID_GET_JOB = 2; - private static final int METHODID_LIST_JOBS = 3; - private static final int METHODID_UPDATE_JOB = 4; - private static final int METHODID_CANCEL_JOB = 5; - private static final int METHODID_DELETE_JOB = 6; - - 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 JobControllerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(JobControllerImplBase 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_SUBMIT_JOB: - serviceImpl.submitJob( - (com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBMIT_JOB_AS_OPERATION: - serviceImpl.submitJobAsOperation( - (com.google.cloud.dataproc.v1.SubmitJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB: - serviceImpl.getJob( - (com.google.cloud.dataproc.v1.GetJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOBS: - serviceImpl.listJobs( - (com.google.cloud.dataproc.v1.ListJobsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_JOB: - serviceImpl.updateJob( - (com.google.cloud.dataproc.v1.UpdateJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_JOB: - serviceImpl.cancelJob( - (com.google.cloud.dataproc.v1.CancelJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_JOB: - serviceImpl.deleteJob( - (com.google.cloud.dataproc.v1.DeleteJobRequest) 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 JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - JobControllerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("JobController"); - } - } - - private static final class JobControllerFileDescriptorSupplier - extends JobControllerBaseDescriptorSupplier { - JobControllerFileDescriptorSupplier() {} - } - - private static final class JobControllerMethodDescriptorSupplier - extends JobControllerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - JobControllerMethodDescriptorSupplier(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 (JobControllerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new JobControllerFileDescriptorSupplier()) - .addMethod(getSubmitJobMethod()) - .addMethod(getSubmitJobAsOperationMethod()) - .addMethod(getGetJobMethod()) - .addMethod(getListJobsMethod()) - .addMethod(getUpdateJobMethod()) - .addMethod(getCancelJobMethod()) - .addMethod(getDeleteJobMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java b/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java deleted file mode 100644 index 3b23792f..00000000 --- a/grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java +++ /dev/null @@ -1,1264 +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.dataproc.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API interface for managing Workflow Templates in the
- * Dataproc API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dataproc/v1/workflow_templates.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkflowTemplateServiceGrpc { - - private WorkflowTemplateServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dataproc.v1.WorkflowTemplateService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getCreateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getCreateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getCreateWorkflowTemplateMethod; - if ((getCreateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getCreateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getCreateWorkflowTemplateMethod = - getCreateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "CreateWorkflowTemplate")) - .build(); - } - } - } - return getCreateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getGetWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getGetWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getGetWorkflowTemplateMethod; - if ((getGetWorkflowTemplateMethod = WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getGetWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getGetWorkflowTemplateMethod = - getGetWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "GetWorkflowTemplate")) - .build(); - } - } - } - return getGetWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InstantiateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateWorkflowTemplateMethod; - if ((getInstantiateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getInstantiateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getInstantiateWorkflowTemplateMethod = - getInstantiateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "InstantiateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "InstantiateWorkflowTemplate")) - .build(); - } - } - } - return getInstantiateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InstantiateInlineWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation> - getInstantiateInlineWorkflowTemplateMethod; - if ((getInstantiateInlineWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getInstantiateInlineWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getInstantiateInlineWorkflowTemplateMethod = - getInstantiateInlineWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "InstantiateInlineWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "InstantiateInlineWorkflowTemplate")) - .build(); - } - } - } - return getInstantiateInlineWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getUpdateWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, - responseType = com.google.cloud.dataproc.v1.WorkflowTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getUpdateWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate> - getUpdateWorkflowTemplateMethod; - if ((getUpdateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getUpdateWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getUpdateWorkflowTemplateMethod = - getUpdateWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "UpdateWorkflowTemplate")) - .build(); - } - } - } - return getUpdateWorkflowTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkflowTemplates", - requestType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, - responseType = com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> - getListWorkflowTemplatesMethod; - if ((getListWorkflowTemplatesMethod = - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getListWorkflowTemplatesMethod = - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod) - == null) { - WorkflowTemplateServiceGrpc.getListWorkflowTemplatesMethod = - getListWorkflowTemplatesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkflowTemplates")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "ListWorkflowTemplates")) - .build(); - } - } - } - return getListWorkflowTemplatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflowTemplate", - requestType = com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, com.google.protobuf.Empty> - getDeleteWorkflowTemplateMethod; - if ((getDeleteWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) - == null) { - synchronized (WorkflowTemplateServiceGrpc.class) { - if ((getDeleteWorkflowTemplateMethod = - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod) - == null) { - WorkflowTemplateServiceGrpc.getDeleteWorkflowTemplateMethod = - getDeleteWorkflowTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkflowTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WorkflowTemplateServiceMethodDescriptorSupplier( - "DeleteWorkflowTemplate")) - .build(); - } - } - } - return getDeleteWorkflowTemplateMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WorkflowTemplateServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkflowTemplateServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceBlockingStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WorkflowTemplateServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkflowTemplateServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceFutureStub(channel, callOptions); - } - }; - return WorkflowTemplateServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public abstract static class WorkflowTemplateServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInstantiateInlineWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkflowTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowTemplatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowTemplateMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_CREATE_WORKFLOW_TEMPLATE))) - .addMethod( - getGetWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_GET_WORKFLOW_TEMPLATE))) - .addMethod( - getInstantiateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_WORKFLOW_TEMPLATE))) - .addMethod( - getInstantiateInlineWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest, - com.google.longrunning.Operation>( - this, METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE))) - .addMethod( - getUpdateWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest, - com.google.cloud.dataproc.v1.WorkflowTemplate>( - this, METHODID_UPDATE_WORKFLOW_TEMPLATE))) - .addMethod( - getListWorkflowTemplatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>( - this, METHODID_LIST_WORKFLOW_TEMPLATES))) - .addMethod( - getDeleteWorkflowTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WORKFLOW_TEMPLATE))) - .build(); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkflowTemplateServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public void createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public void getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public void instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public void updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public void listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public void deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkflowTemplateServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public com.google.cloud.dataproc.v1.WorkflowTemplate createWorkflowTemplate( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public com.google.cloud.dataproc.v1.WorkflowTemplate getWorkflowTemplate( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.longrunning.Operation instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInstantiateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.longrunning.Operation instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInstantiateInlineWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public com.google.cloud.dataproc.v1.WorkflowTemplate updateWorkflowTemplate( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkflowTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse listWorkflowTemplates( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkflowTemplatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public com.google.protobuf.Empty deleteWorkflowTemplate( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkflowTemplateMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API interface for managing Workflow Templates in the
-   * Dataproc API.
-   * 
- */ - public static final class WorkflowTemplateServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkflowTemplateServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkflowTemplateServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkflowTemplateServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates new workflow template.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - createWorkflowTemplate(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the latest workflow template.
-     * Can retrieve previously instantiated template by specifying optional
-     * version parameter.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - getWorkflowTemplate(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - instantiateWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstantiateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Instantiates a template and begins execution.
-     * This method is equivalent to executing the sequence
-     * [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
-     * [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
-     * The returned Operation can be used to track execution of
-     * workflow by polling
-     * [operations.get][google.longrunning.Operations.GetOperation].
-     * The Operation will complete when entire workflow is finished.
-     * The running workflow can be aborted via
-     * [operations.cancel][google.longrunning.Operations.CancelOperation].
-     * This will cause any inflight jobs to be cancelled and workflow-owned
-     * clusters to be deleted.
-     * The [Operation.metadata][google.longrunning.Operation.metadata] will be
-     * [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
-     * Also see [Using
-     * WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
-     * On successful completion,
-     * [Operation.response][google.longrunning.Operation.response] will be
-     * [Empty][google.protobuf.Empty].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - instantiateInlineWorkflowTemplate( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInstantiateInlineWorkflowTemplateMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Updates (replaces) workflow template. The updated template
-     * must contain version that matches the current server version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.WorkflowTemplate> - updateWorkflowTemplate(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkflowTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists workflows that match the specified filter in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse> - listWorkflowTemplates(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkflowTemplatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a workflow template. It does not cancel in-progress workflows.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflowTemplate(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkflowTemplateMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WORKFLOW_TEMPLATE = 0; - private static final int METHODID_GET_WORKFLOW_TEMPLATE = 1; - private static final int METHODID_INSTANTIATE_WORKFLOW_TEMPLATE = 2; - private static final int METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE = 3; - private static final int METHODID_UPDATE_WORKFLOW_TEMPLATE = 4; - private static final int METHODID_LIST_WORKFLOW_TEMPLATES = 5; - private static final int METHODID_DELETE_WORKFLOW_TEMPLATE = 6; - - 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 WorkflowTemplateServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WorkflowTemplateServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WORKFLOW_TEMPLATE: - serviceImpl.createWorkflowTemplate( - (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_WORKFLOW_TEMPLATE: - serviceImpl.getWorkflowTemplate( - (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_INSTANTIATE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateWorkflowTemplate( - (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INSTANTIATE_INLINE_WORKFLOW_TEMPLATE: - serviceImpl.instantiateInlineWorkflowTemplate( - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKFLOW_TEMPLATE: - serviceImpl.updateWorkflowTemplate( - (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKFLOW_TEMPLATES: - serviceImpl.listWorkflowTemplates( - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse>) - responseObserver); - break; - case METHODID_DELETE_WORKFLOW_TEMPLATE: - serviceImpl.deleteWorkflowTemplate( - (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) 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 WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkflowTemplateServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WorkflowTemplateService"); - } - } - - private static final class WorkflowTemplateServiceFileDescriptorSupplier - extends WorkflowTemplateServiceBaseDescriptorSupplier { - WorkflowTemplateServiceFileDescriptorSupplier() {} - } - - private static final class WorkflowTemplateServiceMethodDescriptorSupplier - extends WorkflowTemplateServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WorkflowTemplateServiceMethodDescriptorSupplier(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 (WorkflowTemplateServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowTemplateServiceFileDescriptorSupplier()) - .addMethod(getCreateWorkflowTemplateMethod()) - .addMethod(getGetWorkflowTemplateMethod()) - .addMethod(getInstantiateWorkflowTemplateMethod()) - .addMethod(getInstantiateInlineWorkflowTemplateMethod()) - .addMethod(getUpdateWorkflowTemplateMethod()) - .addMethod(getListWorkflowTemplatesMethod()) - .addMethod(getDeleteWorkflowTemplateMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java.header b/java.header deleted file mode 100644 index d0970ba7..00000000 --- a/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ -^ \*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License\.$ -^ \* You may obtain a copy of the License at$ -^ \*$ -^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ -^ \*$ -^ \* Unless required by applicable law or agreed to in writing, software$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ -^ \* See the License for the specific language governing permissions and$ -^ \* limitations under the License\.$ -^ \*/$ diff --git a/license-checks.xml b/license-checks.xml deleted file mode 100644 index 6597fced..00000000 --- a/license-checks.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 79c21a99..00000000 --- a/pom.xml +++ /dev/null @@ -1,187 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-dataproc-parent - pom - 4.0.9-SNAPSHOT - Google Cloud Dataproc Parent - https://github.com/googleapis/java-dataproc - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-dataproc.git - scm:git:git@github.com:googleapis/java-dataproc.git - https://github.com/googleapis/java-dataproc - HEAD - - - https://github.com/googleapis/java-dataproc/issues - GitHub Issues - - - - - Apache-2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-cloud-dataproc-parent - - - - - - com.google.api.grpc - proto-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - - - com.google.api.grpc - grpc-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - - - com.google.cloud - google-cloud-dataproc - 4.0.9-SNAPSHOT - - - - com.google.cloud - google-cloud-shared-dependencies - 3.0.4 - pom - import - - - - junit - junit - 4.13.2 - test - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-cloud-dataproc - grpc-google-cloud-dataproc-v1 - proto-google-cloud-dataproc-v1 - google-cloud-dataproc-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.4.1 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/ - - - - - - diff --git a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml b/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml deleted file mode 100644 index 7e2d1323..00000000 --- a/proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - 7012 - com/google/cloud/dataproc/v1/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/dataproc/v1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/dataproc/v1/*OrBuilder - boolean has*(*) - - - 7002 - com/google/cloud/dataproc/v1/ClusterConfig - * *GkeClusterConfig*(*) - - - 7002 - com/google/cloud/dataproc/v1/ClusterConfig$Builder - * GkeClusterConfig*(*) - - - 7002 - com/google/cloud/dataproc/v1/ClusterConfig$Builder - * *GkeCluster*(*) - - - 7002 - com/google/cloud/dataproc/v1/ClusterConfigOrBuilder - * *GkeCluster*(*) - - - 7002 - com/google/cloud/dataproc/v1/GkeClusterConfig - * *GkeDeploymentTarget*(*) - - - 7002 - com/google/cloud/dataproc/v1/GkeClusterConfig$Builder - * *NamespacedGkeDeploymentTarget*(*) - - - 8001 - com/google/cloud/dataproc/v1/GkeClusterConfig$NamespacedGkeDeploymentTarget* - - - 7002 - com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder - * *NamespacedGkeDeploymentTarget*(*) - - - 6011 - com/google/cloud/dataproc/v1/ClusterConfig - GKE_CLUSTER_CONFIG_FIELD_NUMBER - - - 6011 - com/google/cloud/dataproc/v1/GkeClusterConfig - NAMESPACED_GKE_DEPLOYMENT_TARGET_FIELD_NUMBER - - diff --git a/proto-google-cloud-dataproc-v1/pom.xml b/proto-google-cloud-dataproc-v1/pom.xml deleted file mode 100644 index 98bc1b18..00000000 --- a/proto-google-cloud-dataproc-v1/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-dataproc-v1 - 4.0.9-SNAPSHOT - proto-google-cloud-dataproc-v1 - PROTO library for proto-google-cloud-dataproc-v1 - - com.google.cloud - google-cloud-dataproc-parent - 4.0.9-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java deleted file mode 100644 index 5a9d6ee7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java +++ /dev/null @@ -1,793 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies the type and number of accelerator cards attached to the instances
- * of an instance. See [GPUs on Compute
- * Engine](https://cloud.google.com/compute/docs/gpus/).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig} - */ -public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AcceleratorConfig) - AcceleratorConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AcceleratorConfig.newBuilder() to construct. - private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AcceleratorConfig() { - acceleratorTypeUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcceleratorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AcceleratorConfig.class, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class); - } - - public static final int ACCELERATOR_TYPE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object acceleratorTypeUri_; - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-   * Examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - @java.lang.Override - public java.lang.String getAcceleratorTypeUri() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorTypeUri_ = s; - return s; - } - } - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-   * Examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 2; - private int acceleratorCount_; - /** - * - * - *
-   * The number of the accelerator cards of this type exposed to this instance.
-   * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public int getAcceleratorCount() { - return acceleratorCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(acceleratorTypeUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acceleratorTypeUri_); - } - if (acceleratorCount_ != 0) { - output.writeInt32(2, acceleratorCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorTypeUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acceleratorTypeUri_); - } - if (acceleratorCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, acceleratorCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.AcceleratorConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.AcceleratorConfig other = - (com.google.cloud.dataproc.v1.AcceleratorConfig) obj; - - if (!getAcceleratorTypeUri().equals(other.getAcceleratorTypeUri())) return false; - if (getAcceleratorCount() != other.getAcceleratorCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCELERATOR_TYPE_URI_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorTypeUri().hashCode(); - hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig 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.dataproc.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig 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.dataproc.v1.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig 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.dataproc.v1.AcceleratorConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the type and number of accelerator cards attached to the instances
-   * of an instance. See [GPUs on Compute
-   * Engine](https://cloud.google.com/compute/docs/gpus/).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AcceleratorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AcceleratorConfig) - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AcceleratorConfig.class, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.AcceleratorConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - acceleratorTypeUri_ = ""; - - acceleratorCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfig build() { - com.google.cloud.dataproc.v1.AcceleratorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfig buildPartial() { - com.google.cloud.dataproc.v1.AcceleratorConfig result = - new com.google.cloud.dataproc.v1.AcceleratorConfig(this); - result.acceleratorTypeUri_ = acceleratorTypeUri_; - result.acceleratorCount_ = acceleratorCount_; - 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.dataproc.v1.AcceleratorConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AcceleratorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.AcceleratorConfig other) { - if (other == com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()) return this; - if (!other.getAcceleratorTypeUri().isEmpty()) { - acceleratorTypeUri_ = other.acceleratorTypeUri_; - onChanged(); - } - if (other.getAcceleratorCount() != 0) { - setAcceleratorCount(other.getAcceleratorCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - acceleratorTypeUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - acceleratorCount_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object acceleratorTypeUri_ = ""; - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-     * Examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - public java.lang.String getAcceleratorTypeUri() { - java.lang.Object ref = acceleratorTypeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorTypeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-     * Examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() { - java.lang.Object ref = acceleratorTypeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-     * Examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @param value The acceleratorTypeUri to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acceleratorTypeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-     * Examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorTypeUri() { - - acceleratorTypeUri_ = getDefaultInstance().getAcceleratorTypeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Full URL, partial URI, or short name of the accelerator type resource to
-     * expose to this instance. See
-     * [Compute Engine
-     * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-     * Examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-     * * `nvidia-tesla-k80`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the accelerator type
-     * resource, for example, `nvidia-tesla-k80`.
-     * 
- * - * string accelerator_type_uri = 1; - * - * @param value The bytes for acceleratorTypeUri to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acceleratorTypeUri_ = value; - onChanged(); - return this; - } - - private int acceleratorCount_; - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public int getAcceleratorCount() { - return acceleratorCount_; - } - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @param value The acceleratorCount to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorCount(int value) { - - acceleratorCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of the accelerator cards of this type exposed to this instance.
-     * 
- * - * int32 accelerator_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorCount() { - - acceleratorCount_ = 0; - 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.dataproc.v1.AcceleratorConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AcceleratorConfig) - private static final com.google.cloud.dataproc.v1.AcceleratorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AcceleratorConfig(); - } - - public static com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java deleted file mode 100644 index 5e557214..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,87 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface AcceleratorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AcceleratorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-   * Examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The acceleratorTypeUri. - */ - java.lang.String getAcceleratorTypeUri(); - /** - * - * - *
-   * Full URL, partial URI, or short name of the accelerator type resource to
-   * expose to this instance. See
-   * [Compute Engine
-   * AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).
-   * Examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
-   * * `nvidia-tesla-k80`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the accelerator type
-   * resource, for example, `nvidia-tesla-k80`.
-   * 
- * - * string accelerator_type_uri = 1; - * - * @return The bytes for acceleratorTypeUri. - */ - com.google.protobuf.ByteString getAcceleratorTypeUriBytes(); - - /** - * - * - *
-   * The number of the accelerator cards of this type exposed to this instance.
-   * 
- * - * int32 accelerator_count = 2; - * - * @return The acceleratorCount. - */ - int getAcceleratorCount(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java deleted file mode 100644 index b222d07a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java +++ /dev/null @@ -1,649 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Autoscaling Policy config associated with the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} - */ -public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingConfig) - AutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscalingConfig.newBuilder() to construct. - private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscalingConfig() { - policyUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); - } - - public static final int POLICY_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object policyUri_; - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - @java.lang.Override - public java.lang.String getPolicyUri() { - java.lang.Object ref = policyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyUriBytes() { - java.lang.Object ref = policyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(policyUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.AutoscalingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.AutoscalingConfig other = - (com.google.cloud.dataproc.v1.AutoscalingConfig) obj; - - if (!getPolicyUri().equals(other.getPolicyUri())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + POLICY_URI_FIELD_NUMBER; - hash = (53 * hash) + getPolicyUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig 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.dataproc.v1.AutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig 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.dataproc.v1.AutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig 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.dataproc.v1.AutoscalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Autoscaling Policy config associated with the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingConfig) - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingConfig.class, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - policyUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfig build() { - com.google.cloud.dataproc.v1.AutoscalingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingConfig result = - new com.google.cloud.dataproc.v1.AutoscalingConfig(this); - result.policyUri_ = policyUri_; - 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.dataproc.v1.AutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingConfig other) { - if (other == com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance()) return this; - if (!other.getPolicyUri().isEmpty()) { - policyUri_ = other.policyUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - policyUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object policyUri_ = ""; - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - public java.lang.String getPolicyUri() { - java.lang.Object ref = policyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - public com.google.protobuf.ByteString getPolicyUriBytes() { - java.lang.Object ref = policyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The policyUri to set. - * @return This builder for chaining. - */ - public Builder setPolicyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - policyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyUri() { - - policyUri_ = getDefaultInstance().getPolicyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The autoscaling policy used by the cluster.
-     * Only resource names including projectid and location (region) are valid.
-     * Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-     * Note that the policy must be in the same project and Dataproc region.
-     * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for policyUri to set. - * @return This builder for chaining. - */ - public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - policyUri_ = 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.dataproc.v1.AutoscalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingConfig) - private static final com.google.cloud.dataproc.v1.AutoscalingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingConfig(); - } - - public static com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java deleted file mode 100644 index f9438be4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java +++ /dev/null @@ -1,60 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface AutoscalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyUri. - */ - java.lang.String getPolicyUri(); - /** - * - * - *
-   * Optional. The autoscaling policy used by the cluster.
-   * Only resource names including projectid and location (region) are valid.
-   * Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
-   * Note that the policy must be in the same project and Dataproc region.
-   * 
- * - * string policy_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyUri. - */ - com.google.protobuf.ByteString getPolicyUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java deleted file mode 100644 index 524fac61..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java +++ /dev/null @@ -1,314 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public final class AutoscalingPoliciesProto { - private AutoscalingPoliciesProto() {} - - 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_dataproc_v1_AutoscalingPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_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/dataproc/v1/autoscaling_p" - + "olicies.proto\022\030google.cloud.dataproc.v1\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\032\036goog" - + "le/protobuf/duration.proto\032\033google/proto" - + "buf/empty.proto\"\245\005\n\021AutoscalingPolicy\022\n\n" - + "\002id\030\001 \001(\t\022\021\n\004name\030\002 \001(\tB\003\340A\003\022S\n\017basic_al" - + "gorithm\030\003 \001(\01323.google.cloud.dataproc.v1" - + ".BasicAutoscalingAlgorithmB\003\340A\002H\000\022Z\n\rwor" - + "ker_config\030\004 \001(\0132>.google.cloud.dataproc" - + ".v1.InstanceGroupAutoscalingPolicyConfig" - + "B\003\340A\002\022d\n\027secondary_worker_config\030\005 \001(\0132>" - + ".google.cloud.dataproc.v1.InstanceGroupA" - + "utoscalingPolicyConfigB\003\340A\001\022L\n\006labels\030\006 " - + "\003(\01327.google.cloud.dataproc.v1.Autoscali" - + "ngPolicy.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\317\001\352A\313\001\n" - + ")dataproc.googleapis.com/AutoscalingPoli" - + "cy\022Pprojects/{project}/locations/{locati" - + "on}/autoscalingPolicies/{autoscaling_pol" - + "icy}\022Lprojects/{project}/regions/{region" - + "}/autoscalingPolicies/{autoscaling_polic" - + "y}B\013\n\talgorithm\"\260\001\n\031BasicAutoscalingAlgo" - + "rithm\022P\n\013yarn_config\030\001 \001(\01324.google.clou" - + "d.dataproc.v1.BasicYarnAutoscalingConfig" - + "B\003\340A\002H\000\0227\n\017cooldown_period\030\002 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\001B\010\n\006config\"\371\001\n\032B" - + "asicYarnAutoscalingConfig\022E\n\035graceful_de" - + "commission_timeout\030\005 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\002\022\034\n\017scale_up_factor\030\001 \001(" - + "\001B\003\340A\002\022\036\n\021scale_down_factor\030\002 \001(\001B\003\340A\002\022)" - + "\n\034scale_up_min_worker_fraction\030\003 \001(\001B\003\340A" - + "\001\022+\n\036scale_down_min_worker_fraction\030\004 \001(" - + "\001B\003\340A\001\"s\n$InstanceGroupAutoscalingPolicy" - + "Config\022\032\n\rmin_instances\030\001 \001(\005B\003\340A\001\022\032\n\rma" - + "x_instances\030\002 \001(\005B\003\340A\002\022\023\n\006weight\030\003 \001(\005B\003" - + "\340A\001\"\245\001\n\036CreateAutoscalingPolicyRequest\022A" - + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dataproc.googlea" - + "pis.com/AutoscalingPolicy\022@\n\006policy\030\002 \001(" - + "\0132+.google.cloud.dataproc.v1.Autoscaling" - + "PolicyB\003\340A\002\"^\n\033GetAutoscalingPolicyReque" - + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.googl" - + "eapis.com/AutoscalingPolicy\"b\n\036UpdateAut" - + "oscalingPolicyRequest\022@\n\006policy\030\001 \001(\0132+." - + "google.cloud.dataproc.v1.AutoscalingPoli" - + "cyB\003\340A\002\"a\n\036DeleteAutoscalingPolicyReques" - + "t\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dataproc.google" - + "apis.com/AutoscalingPolicy\"\224\001\n\036ListAutos" - + "calingPoliciesRequest\022A\n\006parent\030\001 \001(\tB1\340" - + "A\002\372A+\022)dataproc.googleapis.com/Autoscali" - + "ngPolicy\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"\203\001\n\037ListAutoscalingPol" - + "iciesResponse\022B\n\010policies\030\001 \003(\0132+.google" - + ".cloud.dataproc.v1.AutoscalingPolicyB\003\340A" - + "\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\0032\256\013\n\030Auto" - + "scalingPolicyService\022\234\002\n\027CreateAutoscali" - + "ngPolicy\0228.google.cloud.dataproc.v1.Crea" - + "teAutoscalingPolicyRequest\032+.google.clou" - + "d.dataproc.v1.AutoscalingPolicy\"\231\001\202\323\344\223\002\202" - + "\001\"7/v1/{parent=projects/*/locations/*}/a" - + "utoscalingPolicies:\006policyZ?\"5/v1/{paren" - + "t=projects/*/regions/*}/autoscalingPolic" - + "ies:\006policy\332A\rparent,policy\022\243\002\n\027UpdateAu" - + "toscalingPolicy\0228.google.cloud.dataproc." - + "v1.UpdateAutoscalingPolicyRequest\032+.goog" - + "le.cloud.dataproc.v1.AutoscalingPolicy\"\240" - + "\001\202\323\344\223\002\220\001\032>/v1/{policy.name=projects/*/lo" - + "cations/*/autoscalingPolicies/*}:\006policy" - + "ZF\032 - * Describes an autoscaling policy for Dataproc cluster autoscaler. - * - * - * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} - */ -public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutoscalingPolicy) - AutoscalingPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscalingPolicy.newBuilder() to construct. - private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscalingPolicy() { - id_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscalingPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); - } - - private int algorithmCase_ = 0; - private java.lang.Object algorithm_; - - public enum AlgorithmCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BASIC_ALGORITHM(3), - ALGORITHM_NOT_SET(0); - private final int value; - - private AlgorithmCase(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 AlgorithmCase valueOf(int value) { - return forNumber(value); - } - - public static AlgorithmCase forNumber(int value) { - switch (value) { - case 3: - return BASIC_ALGORITHM; - case 0: - return ALGORITHM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASIC_ALGORITHM_FIELD_NUMBER = 3; - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the basicAlgorithm field is set. - */ - @java.lang.Override - public boolean hasBasicAlgorithm() { - return algorithmCase_ == 3; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The basicAlgorithm. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm() { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - - public static final int WORKER_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - @java.lang.Override - public boolean hasWorkerConfig() { - return workerConfig_ != null; - } - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; - } - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { - return getWorkerConfig(); - } - - public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig_; - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - @java.lang.Override - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfig_ != null; - } - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - return getSecondaryWorkerConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 6; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (algorithmCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_); - } - if (workerConfig_ != null) { - output.writeMessage(4, getWorkerConfig()); - } - if (secondaryWorkerConfig_ != null) { - output.writeMessage(5, getSecondaryWorkerConfig()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (algorithmCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_); - } - if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkerConfig()); - } - if (secondaryWorkerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecondaryWorkerConfig()); - } - 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(6, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.AutoscalingPolicy)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.AutoscalingPolicy other = - (com.google.cloud.dataproc.v1.AutoscalingPolicy) obj; - - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (hasWorkerConfig() != other.hasWorkerConfig()) return false; - if (hasWorkerConfig()) { - if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; - } - if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; - if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false; - switch (algorithmCase_) { - case 3: - if (!getBasicAlgorithm().equals(other.getBasicAlgorithm())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasWorkerConfig()) { - hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkerConfig().hashCode(); - } - if (hasSecondaryWorkerConfig()) { - hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryWorkerConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - switch (algorithmCase_) { - case 3: - hash = (37 * hash) + BASIC_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + getBasicAlgorithm().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy 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.dataproc.v1.AutoscalingPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy 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.dataproc.v1.AutoscalingPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy 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.dataproc.v1.AutoscalingPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Describes an autoscaling policy for Dataproc cluster autoscaler.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AutoscalingPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutoscalingPolicy) - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AutoscalingPolicy.class, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - if (basicAlgorithmBuilder_ != null) { - basicAlgorithmBuilder_.clear(); - } - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - internalGetMutableLabels().clear(); - algorithmCase_ = 0; - algorithm_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_AutoscalingPolicy_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy build() { - com.google.cloud.dataproc.v1.AutoscalingPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy buildPartial() { - com.google.cloud.dataproc.v1.AutoscalingPolicy result = - new com.google.cloud.dataproc.v1.AutoscalingPolicy(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.name_ = name_; - if (algorithmCase_ == 3) { - if (basicAlgorithmBuilder_ == null) { - result.algorithm_ = algorithm_; - } else { - result.algorithm_ = basicAlgorithmBuilder_.build(); - } - } - if (workerConfigBuilder_ == null) { - result.workerConfig_ = workerConfig_; - } else { - result.workerConfig_ = workerConfigBuilder_.build(); - } - if (secondaryWorkerConfigBuilder_ == null) { - result.secondaryWorkerConfig_ = secondaryWorkerConfig_; - } else { - result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.algorithmCase_ = algorithmCase_; - 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.dataproc.v1.AutoscalingPolicy) { - return mergeFrom((com.google.cloud.dataproc.v1.AutoscalingPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.AutoscalingPolicy other) { - if (other == com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasWorkerConfig()) { - mergeWorkerConfig(other.getWorkerConfig()); - } - if (other.hasSecondaryWorkerConfig()) { - mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - switch (other.getAlgorithmCase()) { - case BASIC_ALGORITHM: - { - mergeBasicAlgorithm(other.getBasicAlgorithm()); - break; - } - case ALGORITHM_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - id_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getBasicAlgorithmFieldBuilder().getBuilder(), extensionRegistry); - algorithmCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int algorithmCase_ = 0; - private java.lang.Object algorithm_; - - public AlgorithmCase getAlgorithmCase() { - return AlgorithmCase.forNumber(algorithmCase_); - } - - public Builder clearAlgorithm() { - algorithmCase_ = 0; - algorithm_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1; - * - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The policy id.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string id = 1; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies`, the resource name of the
-     *   policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-     * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> - basicAlgorithmBuilder_; - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the basicAlgorithm field is set. - */ - @java.lang.Override - public boolean hasBasicAlgorithm() { - return algorithmCase_ == 3; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The basicAlgorithm. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm() { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } else { - if (algorithmCase_ == 3) { - return basicAlgorithmBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBasicAlgorithm(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { - if (basicAlgorithmBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - algorithm_ = value; - onChanged(); - } else { - basicAlgorithmBuilder_.setMessage(value); - } - algorithmCase_ = 3; - return this; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBasicAlgorithm( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder builderForValue) { - if (basicAlgorithmBuilder_ == null) { - algorithm_ = builderForValue.build(); - onChanged(); - } else { - basicAlgorithmBuilder_.setMessage(builderForValue.build()); - } - algorithmCase_ = 3; - return this; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeBasicAlgorithm( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm value) { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3 - && algorithm_ - != com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) { - algorithm_ = - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder( - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_) - .mergeFrom(value) - .buildPartial(); - } else { - algorithm_ = value; - } - onChanged(); - } else { - if (algorithmCase_ == 3) { - basicAlgorithmBuilder_.mergeFrom(value); - } else { - basicAlgorithmBuilder_.setMessage(value); - } - } - algorithmCase_ = 3; - return this; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearBasicAlgorithm() { - if (basicAlgorithmBuilder_ == null) { - if (algorithmCase_ == 3) { - algorithmCase_ = 0; - algorithm_ = null; - onChanged(); - } - } else { - if (algorithmCase_ == 3) { - algorithmCase_ = 0; - algorithm_ = null; - } - basicAlgorithmBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder - getBasicAlgorithmBuilder() { - return getBasicAlgorithmFieldBuilder().getBuilder(); - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder - getBasicAlgorithmOrBuilder() { - if ((algorithmCase_ == 3) && (basicAlgorithmBuilder_ != null)) { - return basicAlgorithmBuilder_.getMessageOrBuilder(); - } else { - if (algorithmCase_ == 3) { - return (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_; - } - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - } - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder> - getBasicAlgorithmFieldBuilder() { - if (basicAlgorithmBuilder_ == null) { - if (!(algorithmCase_ == 3)) { - algorithm_ = com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - basicAlgorithmBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder>( - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) algorithm_, - getParentForChildren(), - isClean()); - algorithm_ = null; - } - algorithmCase_ = 3; - onChanged(); - ; - return basicAlgorithmBuilder_; - } - - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig workerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - workerConfigBuilder_; - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - public boolean hasWorkerConfig() { - return workerConfigBuilder_ != null || workerConfig_ != null; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() { - if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; - } else { - return workerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { - if (workerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerConfig_ = value; - onChanged(); - } else { - workerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { - if (workerConfigBuilder_ == null) { - workerConfig_ = builderForValue.build(); - onChanged(); - } else { - workerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { - if (workerConfigBuilder_ == null) { - if (workerConfig_ != null) { - workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( - workerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workerConfig_ = value; - } - onChanged(); - } else { - workerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWorkerConfig() { - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - onChanged(); - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder - getWorkerConfigBuilder() { - - onChanged(); - return getWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder() { - if (workerConfigBuilder_ != null) { - return workerConfigBuilder_.getMessageOrBuilder(); - } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : workerConfig_; - } - } - /** - * - * - *
-     * Required. Describes how the autoscaler will operate for primary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - getWorkerConfigFieldBuilder() { - if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); - workerConfig_ = null; - } - return workerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - secondaryWorkerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - secondaryWorkerConfigBuilder_; - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } else { - return secondaryWorkerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - secondaryWorkerConfig_ = value; - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder builderForValue) { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = builderForValue.build(); - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (secondaryWorkerConfig_ != null) { - secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder( - secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - secondaryWorkerConfig_ = value; - } - onChanged(); - } else { - secondaryWorkerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - onChanged(); - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder - getSecondaryWorkerConfigBuilder() { - - onChanged(); - return getSecondaryWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - if (secondaryWorkerConfigBuilder_ != null) { - return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); - } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - } - /** - * - * - *
-     * Optional. Describes how the autoscaler will operate for secondary workers.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder> - getSecondaryWorkerConfigFieldBuilder() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); - secondaryWorkerConfig_ = null; - } - return secondaryWorkerConfigBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this autoscaling policy.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with an autoscaling policy.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - 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.dataproc.v1.AutoscalingPolicy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutoscalingPolicy) - private static final com.google.cloud.dataproc.v1.AutoscalingPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutoscalingPolicy(); - } - - public static com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscalingPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java deleted file mode 100644 index 82c6ac7b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AutoscalingPolicyName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_AUTOSCALING_POLICY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - private static final PathTemplate PROJECT_REGION_AUTOSCALING_POLICY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String location; - private final String autoscalingPolicy; - private final String region; - - @Deprecated - protected AutoscalingPolicyName() { - project = null; - location = null; - autoscalingPolicy = null; - region = null; - } - - private AutoscalingPolicyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy()); - region = null; - pathTemplate = PROJECT_LOCATION_AUTOSCALING_POLICY; - } - - private AutoscalingPolicyName(ProjectRegionAutoscalingPolicyBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy()); - location = null; - pathTemplate = PROJECT_REGION_AUTOSCALING_POLICY; - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public String getRegion() { - return region; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectLocationAutoscalingPolicyBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectRegionAutoscalingPolicyBuilder newProjectRegionAutoscalingPolicyBuilder() { - return new ProjectRegionAutoscalingPolicyBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AutoscalingPolicyName of( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static AutoscalingPolicyName ofProjectLocationAutoscalingPolicyName( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static AutoscalingPolicyName ofProjectRegionAutoscalingPolicyName( - String project, String region, String autoscalingPolicy) { - return newProjectRegionAutoscalingPolicyBuilder() - .setProject(project) - .setRegion(region) - .setAutoscalingPolicy(autoscalingPolicy) - .build(); - } - - public static String format(String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationAutoscalingPolicyName( - String project, String location, String autoscalingPolicy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectRegionAutoscalingPolicyName( - String project, String region, String autoscalingPolicy) { - return newProjectRegionAutoscalingPolicyBuilder() - .setProject(project) - .setRegion(region) - .setAutoscalingPolicy(autoscalingPolicy) - .build() - .toString(); - } - - public static AutoscalingPolicyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_AUTOSCALING_POLICY.match(formattedString); - return ofProjectLocationAutoscalingPolicyName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("autoscaling_policy")); - } else if (PROJECT_REGION_AUTOSCALING_POLICY.matches(formattedString)) { - Map matchMap = PROJECT_REGION_AUTOSCALING_POLICY.match(formattedString); - return ofProjectRegionAutoscalingPolicyName( - matchMap.get("project"), matchMap.get("region"), matchMap.get("autoscaling_policy")); - } - throw new ValidationException( - "AutoscalingPolicyName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (AutoscalingPolicyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_AUTOSCALING_POLICY.matches(formattedString) - || PROJECT_REGION_AUTOSCALING_POLICY.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 (autoscalingPolicy != null) { - fieldMapBuilder.put("autoscaling_policy", autoscalingPolicy); - } - if (region != null) { - fieldMapBuilder.put("region", region); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AutoscalingPolicyName that = ((AutoscalingPolicyName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.autoscalingPolicy, that.autoscalingPolicy) - && Objects.equals(this.region, that.region); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(autoscalingPolicy); - h *= 1000003; - h ^= Objects.hashCode(region); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}. - */ - public static class Builder { - private String project; - private String location; - private String autoscalingPolicy; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setAutoscalingPolicy(String autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - private Builder(AutoscalingPolicyName autoscalingPolicyName) { - Preconditions.checkArgument( - Objects.equals(autoscalingPolicyName.pathTemplate, PROJECT_LOCATION_AUTOSCALING_POLICY), - "toBuilder is only supported when AutoscalingPolicyName has the pattern of projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}"); - this.project = autoscalingPolicyName.project; - this.location = autoscalingPolicyName.location; - this.autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy; - } - - public AutoscalingPolicyName build() { - return new AutoscalingPolicyName(this); - } - } - - /** Builder for projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectRegionAutoscalingPolicyBuilder { - private String project; - private String region; - private String autoscalingPolicy; - - protected ProjectRegionAutoscalingPolicyBuilder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getAutoscalingPolicy() { - return autoscalingPolicy; - } - - public ProjectRegionAutoscalingPolicyBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectRegionAutoscalingPolicyBuilder setRegion(String region) { - this.region = region; - return this; - } - - public ProjectRegionAutoscalingPolicyBuilder setAutoscalingPolicy(String autoscalingPolicy) { - this.autoscalingPolicy = autoscalingPolicy; - return this; - } - - public AutoscalingPolicyName build() { - return new AutoscalingPolicyName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java deleted file mode 100644 index 46ddc82e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java +++ /dev/null @@ -1,293 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface AutoscalingPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutoscalingPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Required. The policy id.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string id = 1; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies`, the resource name of the
-   *   policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the basicAlgorithm field is set. - */ - boolean hasBasicAlgorithm(); - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The basicAlgorithm. - */ - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getBasicAlgorithm(); - /** - * - * .google.cloud.dataproc.v1.BasicAutoscalingAlgorithm basic_algorithm = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder(); - - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the workerConfig field is set. - */ - boolean hasWorkerConfig(); - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The workerConfig. - */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getWorkerConfig(); - /** - * - * - *
-   * Required. Describes how the autoscaler will operate for primary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - boolean hasSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. Describes how the autoscaler will operate for secondary workers.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder - getSecondaryWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this autoscaling policy.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with an autoscaling policy.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - public com.google.cloud.dataproc.v1.AutoscalingPolicy.AlgorithmCase getAlgorithmCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java deleted file mode 100644 index af0e2ec8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfig.java +++ /dev/null @@ -1,1029 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Auxiliary services configuration for a Cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} - */ -public final class AuxiliaryServicesConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) - AuxiliaryServicesConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuxiliaryServicesConfig.newBuilder() to construct. - private AuxiliaryServicesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuxiliaryServicesConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuxiliaryServicesConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); - } - - public static final int METASTORE_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - @java.lang.Override - public boolean hasMetastoreConfig() { - return metastoreConfig_ != null; - } - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { - return getMetastoreConfig(); - } - - public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - @java.lang.Override - public boolean hasSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { - return getSparkHistoryServerConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (metastoreConfig_ != null) { - output.writeMessage(1, getMetastoreConfig()); - } - if (sparkHistoryServerConfig_ != null) { - output.writeMessage(2, getSparkHistoryServerConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetastoreConfig()); - } - if (sparkHistoryServerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSparkHistoryServerConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.AuxiliaryServicesConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other = - (com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) obj; - - if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; - if (hasMetastoreConfig()) { - if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; - } - if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; - if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetastoreConfig()) { - hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMetastoreConfig().hashCode(); - } - if (hasSparkHistoryServerConfig()) { - hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig 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.dataproc.v1.AuxiliaryServicesConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Auxiliary services configuration for a Cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.AuxiliaryServicesConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AuxiliaryServicesConfig) - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.class, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = null; - } else { - metastoreConfig_ = null; - metastoreConfigBuilder_ = null; - } - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = null; - } else { - sparkHistoryServerConfig_ = null; - sparkHistoryServerConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig build() { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig buildPartial() { - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig result = - new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(this); - if (metastoreConfigBuilder_ == null) { - result.metastoreConfig_ = metastoreConfig_; - } else { - result.metastoreConfig_ = metastoreConfigBuilder_.build(); - } - if (sparkHistoryServerConfigBuilder_ == null) { - result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; - } else { - result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_.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.dataproc.v1.AuxiliaryServicesConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.AuxiliaryServicesConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.AuxiliaryServicesConfig other) { - if (other == com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance()) - return this; - if (other.hasMetastoreConfig()) { - mergeMetastoreConfig(other.getMetastoreConfig()); - } - if (other.hasSparkHistoryServerConfig()) { - mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - metastoreConfigBuilder_; - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - public boolean hasMetastoreConfig() { - return metastoreConfigBuilder_ != null || metastoreConfig_ != null; - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } else { - return metastoreConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { - if (metastoreConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metastoreConfig_ = value; - onChanged(); - } else { - metastoreConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMetastoreConfig( - com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = builderForValue.build(); - onChanged(); - } else { - metastoreConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { - if (metastoreConfigBuilder_ == null) { - if (metastoreConfig_ != null) { - metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - metastoreConfig_ = value; - } - onChanged(); - } else { - metastoreConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearMetastoreConfig() { - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = null; - onChanged(); - } else { - metastoreConfig_ = null; - metastoreConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - - onChanged(); - return getMetastoreConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { - if (metastoreConfigBuilder_ != null) { - return metastoreConfigBuilder_.getMessageOrBuilder(); - } else { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } - } - /** - * - * - *
-     * Optional. The Hive Metastore configuration for this workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - getMetastoreConfigFieldBuilder() { - if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), getParentForChildren(), isClean()); - metastoreConfig_ = null; - } - return metastoreConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - sparkHistoryServerConfigBuilder_; - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - public boolean hasSparkHistoryServerConfig() { - return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } else { - return sparkHistoryServerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { - if (sparkHistoryServerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sparkHistoryServerConfig_ = value; - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = builderForValue.build(); - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { - if (sparkHistoryServerConfigBuilder_ == null) { - if (sparkHistoryServerConfig_ != null) { - sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( - sparkHistoryServerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - sparkHistoryServerConfig_ = value; - } - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkHistoryServerConfig() { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = null; - onChanged(); - } else { - sparkHistoryServerConfig_ = null; - sparkHistoryServerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder - getSparkHistoryServerConfigBuilder() { - - onChanged(); - return getSparkHistoryServerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { - if (sparkHistoryServerConfigBuilder_ != null) { - return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); - } else { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - getSparkHistoryServerConfigFieldBuilder() { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), getParentForChildren(), isClean()); - sparkHistoryServerConfig_ = null; - } - return sparkHistoryServerConfigBuilder_; - } - - @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.dataproc.v1.AuxiliaryServicesConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AuxiliaryServicesConfig) - private static final com.google.cloud.dataproc.v1.AuxiliaryServicesConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AuxiliaryServicesConfig(); - } - - public static com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuxiliaryServicesConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java deleted file mode 100644 index 27a97b70..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AuxiliaryServicesConfigOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface AuxiliaryServicesConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AuxiliaryServicesConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - boolean hasMetastoreConfig(); - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); - /** - * - * - *
-   * Optional. The Hive Metastore configuration for this workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - boolean hasSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java deleted file mode 100644 index a0b6f742..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java +++ /dev/null @@ -1,1148 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Basic algorithm for autoscaling.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} - */ -public final class BasicAutoscalingAlgorithm extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) - BasicAutoscalingAlgorithmOrBuilder { - private static final long serialVersionUID = 0L; - // Use BasicAutoscalingAlgorithm.newBuilder() to construct. - private BasicAutoscalingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BasicAutoscalingAlgorithm() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BasicAutoscalingAlgorithm(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); - } - - private int configCase_ = 0; - private java.lang.Object config_; - - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - YARN_CONFIG(1), - CONFIG_NOT_SET(0); - private final int value; - - private ConfigCase(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 ConfigCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigCase forNumber(int value) { - switch (value) { - case 1: - return YARN_CONFIG; - case 0: - return CONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); - } - - public static final int YARN_CONFIG_FIELD_NUMBER = 1; - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - @java.lang.Override - public boolean hasYarnConfig() { - return configCase_ == 1; - } - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { - if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; - } - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder() { - if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; - } - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - - public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2; - private com.google.protobuf.Duration cooldownPeriod_; - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - @java.lang.Override - public boolean hasCooldownPeriod() { - return cooldownPeriod_ != null; - } - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - @java.lang.Override - public com.google.protobuf.Duration getCooldownPeriod() { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { - return getCooldownPeriod(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (configCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); - } - if (cooldownPeriod_ != null) { - output.writeMessage(2, getCooldownPeriod()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (configCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_); - } - if (cooldownPeriod_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other = - (com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) obj; - - if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false; - if (hasCooldownPeriod()) { - if (!getCooldownPeriod().equals(other.getCooldownPeriod())) return false; - } - if (!getConfigCase().equals(other.getConfigCase())) return false; - switch (configCase_) { - case 1: - if (!getYarnConfig().equals(other.getYarnConfig())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCooldownPeriod()) { - hash = (37 * hash) + COOLDOWN_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getCooldownPeriod().hashCode(); - } - switch (configCase_) { - case 1: - hash = (37 * hash) + YARN_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getYarnConfig().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm 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.dataproc.v1.BasicAutoscalingAlgorithm parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm 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.dataproc.v1.BasicAutoscalingAlgorithm parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm 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.dataproc.v1.BasicAutoscalingAlgorithm prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Basic algorithm for autoscaling.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BasicAutoscalingAlgorithm} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithmOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.class, - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (yarnConfigBuilder_ != null) { - yarnConfigBuilder_.clear(); - } - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = null; - } else { - cooldownPeriod_ = null; - cooldownPeriodBuilder_ = null; - } - configCase_ = 0; - config_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicAutoscalingAlgorithm_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm build() { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm buildPartial() { - com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm result = - new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(this); - if (configCase_ == 1) { - if (yarnConfigBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = yarnConfigBuilder_.build(); - } - } - if (cooldownPeriodBuilder_ == null) { - result.cooldownPeriod_ = cooldownPeriod_; - } else { - result.cooldownPeriod_ = cooldownPeriodBuilder_.build(); - } - result.configCase_ = configCase_; - 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.dataproc.v1.BasicAutoscalingAlgorithm) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm other) { - if (other == com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.getDefaultInstance()) - return this; - if (other.hasCooldownPeriod()) { - mergeCooldownPeriod(other.getCooldownPeriod()); - } - switch (other.getConfigCase()) { - case YARN_CONFIG: - { - mergeYarnConfig(other.getYarnConfig()); - break; - } - case CONFIG_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getYarnConfigFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCooldownPeriodFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int configCase_ = 0; - private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); - } - - public Builder clearConfig() { - configCase_ = 0; - config_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> - yarnConfigBuilder_; - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - @java.lang.Override - public boolean hasYarnConfig() { - return configCase_ == 1; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig() { - if (yarnConfigBuilder_ == null) { - if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; - } - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } else { - if (configCase_ == 1) { - return yarnConfigBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { - if (yarnConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - yarnConfigBuilder_.setMessage(value); - } - configCase_ = 1; - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setYarnConfig( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder builderForValue) { - if (yarnConfigBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - yarnConfigBuilder_.setMessage(builderForValue.build()); - } - configCase_ = 1; - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeYarnConfig(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig value) { - if (yarnConfigBuilder_ == null) { - if (configCase_ == 1 - && config_ - != com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) { - config_ = - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder( - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - if (configCase_ == 1) { - yarnConfigBuilder_.mergeFrom(value); - } else { - yarnConfigBuilder_.setMessage(value); - } - } - configCase_ = 1; - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearYarnConfig() { - if (yarnConfigBuilder_ == null) { - if (configCase_ == 1) { - configCase_ = 0; - config_ = null; - onChanged(); - } - } else { - if (configCase_ == 1) { - configCase_ = 0; - config_ = null; - } - yarnConfigBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder() { - return getYarnConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder - getYarnConfigOrBuilder() { - if ((configCase_ == 1) && (yarnConfigBuilder_ != null)) { - return yarnConfigBuilder_.getMessageOrBuilder(); - } else { - if (configCase_ == 1) { - return (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_; - } - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. YARN autoscaling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder> - getYarnConfigFieldBuilder() { - if (yarnConfigBuilder_ == null) { - if (!(configCase_ == 1)) { - config_ = com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - yarnConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder>( - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) config_, - getParentForChildren(), - isClean()); - config_ = null; - } - configCase_ = 1; - onChanged(); - ; - return yarnConfigBuilder_; - } - - private com.google.protobuf.Duration cooldownPeriod_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - cooldownPeriodBuilder_; - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - public boolean hasCooldownPeriod() { - return cooldownPeriodBuilder_ != null || cooldownPeriod_ != null; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - public com.google.protobuf.Duration getCooldownPeriod() { - if (cooldownPeriodBuilder_ == null) { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } else { - return cooldownPeriodBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCooldownPeriod(com.google.protobuf.Duration value) { - if (cooldownPeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cooldownPeriod_ = value; - onChanged(); - } else { - cooldownPeriodBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderForValue) { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = builderForValue.build(); - onChanged(); - } else { - cooldownPeriodBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) { - if (cooldownPeriodBuilder_ == null) { - if (cooldownPeriod_ != null) { - cooldownPeriod_ = - com.google.protobuf.Duration.newBuilder(cooldownPeriod_) - .mergeFrom(value) - .buildPartial(); - } else { - cooldownPeriod_ = value; - } - onChanged(); - } else { - cooldownPeriodBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearCooldownPeriod() { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriod_ = null; - onChanged(); - } else { - cooldownPeriod_ = null; - cooldownPeriodBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getCooldownPeriodBuilder() { - - onChanged(); - return getCooldownPeriodFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() { - if (cooldownPeriodBuilder_ != null) { - return cooldownPeriodBuilder_.getMessageOrBuilder(); - } else { - return cooldownPeriod_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : cooldownPeriod_; - } - } - /** - * - * - *
-     * Optional. Duration between scaling events. A scaling period starts after
-     * the update operation from the previous event has completed.
-     * Bounds: [2m, 1d]. Default: 2m.
-     * 
- * - * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getCooldownPeriodFieldBuilder() { - if (cooldownPeriodBuilder_ == null) { - cooldownPeriodBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getCooldownPeriod(), getParentForChildren(), isClean()); - cooldownPeriod_ = null; - } - return cooldownPeriodBuilder_; - } - - @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.dataproc.v1.BasicAutoscalingAlgorithm) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) - private static final com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm(); - } - - public static com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicAutoscalingAlgorithm parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java deleted file mode 100644 index 788c995b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java +++ /dev/null @@ -1,112 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface BasicAutoscalingAlgorithmOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the yarnConfig field is set. - */ - boolean hasYarnConfig(); - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The yarnConfig. - */ - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig(); - /** - * - * - *
-   * Required. YARN autoscaling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cooldownPeriod field is set. - */ - boolean hasCooldownPeriod(); - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cooldownPeriod. - */ - com.google.protobuf.Duration getCooldownPeriod(); - /** - * - * - *
-   * Optional. Duration between scaling events. A scaling period starts after
-   * the update operation from the previous event has completed.
-   * Bounds: [2m, 1d]. Default: 2m.
-   * 
- * - * .google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder(); - - public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.ConfigCase getConfigCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java deleted file mode 100644 index 32a15e62..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java +++ /dev/null @@ -1,1273 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Basic autoscaling configurations for YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} - */ -public final class BasicYarnAutoscalingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) - BasicYarnAutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use BasicYarnAutoscalingConfig.newBuilder() to construct. - private BasicYarnAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BasicYarnAutoscalingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BasicYarnAutoscalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); - } - - public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 5; - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - @java.lang.Override - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - return getGracefulDecommissionTimeout(); - } - - public static final int SCALE_UP_FACTOR_FIELD_NUMBER = 1; - private double scaleUpFactor_; - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown period
-   * for which to add workers. A scale-up factor of 1.0 will result in scaling
-   * up so that there is no pending memory remaining after the update (more
-   * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-   * magnitude of scaling up (less aggressive scaling).
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - @java.lang.Override - public double getScaleUpFactor() { - return scaleUpFactor_; - } - - public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER = 2; - private double scaleDownFactor_; - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown period
-   * for which to remove workers. A scale-down factor of 1 will result in
-   * scaling down so that there is no available memory remaining after the
-   * update (more aggressive scaling). A scale-down factor of 0 disables
-   * removing workers, which can be beneficial for autoscaling a single job.
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - @java.lang.Override - public double getScaleDownFactor() { - return scaleDownFactor_; - } - - public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER = 3; - private double scaleUpMinWorkerFraction_; - /** - * - * - *
-   * Optional. Minimum scale-up threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scaleUpMinWorkerFraction. - */ - @java.lang.Override - public double getScaleUpMinWorkerFraction() { - return scaleUpMinWorkerFraction_; - } - - public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER = 4; - private double scaleDownMinWorkerFraction_; - /** - * - * - *
-   * Optional. Minimum scale-down threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - @java.lang.Override - public double getScaleDownMinWorkerFraction() { - return scaleDownMinWorkerFraction_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { - output.writeDouble(1, scaleUpFactor_); - } - if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) { - output.writeDouble(2, scaleDownFactor_); - } - if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) { - output.writeDouble(3, scaleUpMinWorkerFraction_); - } - if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) { - output.writeDouble(4, scaleDownMinWorkerFraction_); - } - if (gracefulDecommissionTimeout_ != null) { - output.writeMessage(5, getGracefulDecommissionTimeout()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(scaleUpFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_); - } - if (java.lang.Double.doubleToRawLongBits(scaleDownFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_); - } - if (java.lang.Double.doubleToRawLongBits(scaleUpMinWorkerFraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_); - } - if (java.lang.Double.doubleToRawLongBits(scaleDownMinWorkerFraction_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_); - } - if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getGracefulDecommissionTimeout()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other = - (com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) obj; - - if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; - if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; - } - if (java.lang.Double.doubleToLongBits(getScaleUpFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleUpFactor())) return false; - if (java.lang.Double.doubleToLongBits(getScaleDownFactor()) - != java.lang.Double.doubleToLongBits(other.getScaleDownFactor())) return false; - if (java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false; - if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()) - != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGracefulDecommissionTimeout()) { - hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); - } - hash = (37 * hash) + SCALE_UP_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpFactor())); - hash = (37 * hash) + SCALE_DOWN_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownFactor())); - hash = (37 * hash) + SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())); - hash = (37 * hash) + SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig 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.dataproc.v1.BasicYarnAutoscalingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig 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.dataproc.v1.BasicYarnAutoscalingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig 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.dataproc.v1.BasicYarnAutoscalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Basic autoscaling configurations for YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BasicYarnAutoscalingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.class, - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - scaleUpFactor_ = 0D; - - scaleDownFactor_ = 0D; - - scaleUpMinWorkerFraction_ = 0D; - - scaleDownMinWorkerFraction_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_BasicYarnAutoscalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig build() { - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig buildPartial() { - com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig result = - new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(this); - if (gracefulDecommissionTimeoutBuilder_ == null) { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; - } else { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build(); - } - result.scaleUpFactor_ = scaleUpFactor_; - result.scaleDownFactor_ = scaleDownFactor_; - result.scaleUpMinWorkerFraction_ = scaleUpMinWorkerFraction_; - result.scaleDownMinWorkerFraction_ = scaleDownMinWorkerFraction_; - 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.dataproc.v1.BasicYarnAutoscalingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig other) { - if (other == com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig.getDefaultInstance()) - return this; - if (other.hasGracefulDecommissionTimeout()) { - mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); - } - if (other.getScaleUpFactor() != 0D) { - setScaleUpFactor(other.getScaleUpFactor()); - } - if (other.getScaleDownFactor() != 0D) { - setScaleDownFactor(other.getScaleDownFactor()); - } - if (other.getScaleUpMinWorkerFraction() != 0D) { - setScaleUpMinWorkerFraction(other.getScaleUpMinWorkerFraction()); - } - if (other.getScaleDownMinWorkerFraction() != 0D) { - setScaleDownMinWorkerFraction(other.getScaleDownMinWorkerFraction()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - scaleUpFactor_ = input.readDouble(); - - break; - } // case 9 - case 17: - { - scaleDownFactor_ = input.readDouble(); - - break; - } // case 17 - case 25: - { - scaleUpMinWorkerFraction_ = input.readDouble(); - - break; - } // case 25 - case 33: - { - scaleDownMinWorkerFraction_ = input.readDouble(); - - break; - } // case 33 - case 42: - { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } else { - return gracefulDecommissionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gracefulDecommissionTimeout_ = value; - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGracefulDecommissionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = builderForValue.build(); - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (gracefulDecommissionTimeout_ != null) { - gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - gracefulDecommissionTimeout_ = value; - } - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - onChanged(); - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - - onChanged(); - return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - if (gracefulDecommissionTimeoutBuilder_ != null) { - return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - } - /** - * - * - *
-     * Required. Timeout for YARN graceful decommissioning of Node Managers.
-     * Specifies the duration to wait for jobs to complete before forcefully
-     * removing workers (and potentially interrupting jobs). Only applicable to
-     * downscaling operations.
-     * Bounds: [0s, 1d].
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getGracefulDecommissionTimeoutFieldBuilder() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); - gracefulDecommissionTimeout_ = null; - } - return gracefulDecommissionTimeoutBuilder_; - } - - private double scaleUpFactor_; - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - @java.lang.Override - public double getScaleUpFactor() { - return scaleUpFactor_; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The scaleUpFactor to set. - * @return This builder for chaining. - */ - public Builder setScaleUpFactor(double value) { - - scaleUpFactor_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to add workers. A scale-up factor of 1.0 will result in scaling
-     * up so that there is no pending memory remaining after the update (more
-     * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-     * magnitude of scaling up (less aggressive scaling).
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearScaleUpFactor() { - - scaleUpFactor_ = 0D; - onChanged(); - return this; - } - - private double scaleDownFactor_; - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - @java.lang.Override - public double getScaleDownFactor() { - return scaleDownFactor_; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The scaleDownFactor to set. - * @return This builder for chaining. - */ - public Builder setScaleDownFactor(double value) { - - scaleDownFactor_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fraction of average YARN pending memory in the last cooldown period
-     * for which to remove workers. A scale-down factor of 1 will result in
-     * scaling down so that there is no available memory remaining after the
-     * update (more aggressive scaling). A scale-down factor of 0 disables
-     * removing workers, which can be beneficial for autoscaling a single job.
-     * See [How autoscaling
-     * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-     * for more information.
-     * Bounds: [0.0, 1.0].
-     * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearScaleDownFactor() { - - scaleDownFactor_ = 0D; - onChanged(); - return this; - } - - private double scaleUpMinWorkerFraction_; - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleUpMinWorkerFraction. - */ - @java.lang.Override - public double getScaleUpMinWorkerFraction() { - return scaleUpMinWorkerFraction_; - } - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The scaleUpMinWorkerFraction to set. - * @return This builder for chaining. - */ - public Builder setScaleUpMinWorkerFraction(double value) { - - scaleUpMinWorkerFraction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum scale-up threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearScaleUpMinWorkerFraction() { - - scaleUpMinWorkerFraction_ = 0D; - onChanged(); - return this; - } - - private double scaleDownMinWorkerFraction_; - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - @java.lang.Override - public double getScaleDownMinWorkerFraction() { - return scaleDownMinWorkerFraction_; - } - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The scaleDownMinWorkerFraction to set. - * @return This builder for chaining. - */ - public Builder setScaleDownMinWorkerFraction(double value) { - - scaleDownMinWorkerFraction_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum scale-down threshold as a fraction of total cluster size
-     * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-     * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-     * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-     * on any recommended change.
-     * Bounds: [0.0, 1.0]. Default: 0.0.
-     * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearScaleDownMinWorkerFraction() { - - scaleDownMinWorkerFraction_ = 0D; - 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.dataproc.v1.BasicYarnAutoscalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) - private static final com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig(); - } - - public static com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BasicYarnAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java deleted file mode 100644 index 142f7b30..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java +++ /dev/null @@ -1,157 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface BasicYarnAutoscalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicYarnAutoscalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - boolean hasGracefulDecommissionTimeout(); - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gracefulDecommissionTimeout. - */ - com.google.protobuf.Duration getGracefulDecommissionTimeout(); - /** - * - * - *
-   * Required. Timeout for YARN graceful decommissioning of Node Managers.
-   * Specifies the duration to wait for jobs to complete before forcefully
-   * removing workers (and potentially interrupting jobs). Only applicable to
-   * downscaling operations.
-   * Bounds: [0s, 1d].
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); - - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown period
-   * for which to add workers. A scale-up factor of 1.0 will result in scaling
-   * up so that there is no pending memory remaining after the update (more
-   * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
-   * magnitude of scaling up (less aggressive scaling).
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleUpFactor. - */ - double getScaleUpFactor(); - - /** - * - * - *
-   * Required. Fraction of average YARN pending memory in the last cooldown period
-   * for which to remove workers. A scale-down factor of 1 will result in
-   * scaling down so that there is no available memory remaining after the
-   * update (more aggressive scaling). A scale-down factor of 0 disables
-   * removing workers, which can be beneficial for autoscaling a single job.
-   * See [How autoscaling
-   * works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
-   * for more information.
-   * Bounds: [0.0, 1.0].
-   * 
- * - * double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The scaleDownFactor. - */ - double getScaleDownFactor(); - - /** - * - * - *
-   * Optional. Minimum scale-up threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale up
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scaleUpMinWorkerFraction. - */ - double getScaleUpMinWorkerFraction(); - - /** - * - * - *
-   * Optional. Minimum scale-down threshold as a fraction of total cluster size
-   * before scaling occurs. For example, in a 20-worker cluster, a threshold of
-   * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
-   * the cluster to scale. A threshold of 0 means the autoscaler will scale down
-   * on any recommended change.
-   * Bounds: [0.0, 1.0]. Default: 0.0.
-   * 
- * - * double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scaleDownMinWorkerFraction. - */ - double getScaleDownMinWorkerFraction(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java deleted file mode 100644 index 64d78176..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Batch.java +++ /dev/null @@ -1,6640 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A representation of a batch workload in the service.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Batch} - */ -public final class Batch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch) - BatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use Batch.newBuilder() to construct. - private Batch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Batch() { - name_ = ""; - uuid_ = ""; - state_ = 0; - stateMessage_ = ""; - creator_ = ""; - operation_ = ""; - stateHistory_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Batch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, - com.google.cloud.dataproc.v1.Batch.Builder.class); - } - - /** - * - * - *
-   * The batch state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.Batch.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The batch state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The batch is created before running.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The batch is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The batch is cancelling.
-     * 
- * - * CANCELLING = 3; - */ - CANCELLING(3), - /** - * - * - *
-     * The batch cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - CANCELLED(4), - /** - * - * - *
-     * The batch completed successfully.
-     * 
- * - * SUCCEEDED = 5; - */ - SUCCEEDED(5), - /** - * - * - *
-     * The batch is no longer running due to an error.
-     * 
- * - * FAILED = 6; - */ - FAILED(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The batch state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The batch is created before running.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The batch is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The batch is cancelling.
-     * 
- * - * CANCELLING = 3; - */ - public static final int CANCELLING_VALUE = 3; - /** - * - * - *
-     * The batch cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - public static final int CANCELLED_VALUE = 4; - /** - * - * - *
-     * The batch completed successfully.
-     * 
- * - * SUCCEEDED = 5; - */ - public static final int SUCCEEDED_VALUE = 5; - /** - * - * - *
-     * The batch is no longer running due to an error.
-     * 
- * - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static 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 PENDING; - case 2: - return RUNNING; - case 3: - return CANCELLING; - case 4: - return CANCELLED; - case 5: - return SUCCEEDED; - case 6: - 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.dataproc.v1.Batch.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.dataproc.v1.Batch.State) - } - - public interface StateHistoryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch.StateHistory) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. The state of the batch at this point in history.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-     * Output only. The state of the batch at this point in history.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.Batch.State getState(); - - /** - * - * - *
-     * Output only. Details about the state at this point in history.
-     * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - java.lang.String getStateMessage(); - /** - * - * - *
-     * Output only. Details about the state at this point in history.
-     * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - com.google.protobuf.ByteString getStateMessageBytes(); - - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); - } - /** - * - * - *
-   * Historical state information.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} - */ - public static final class StateHistory extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Batch.StateHistory) - StateHistoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use StateHistory.newBuilder() to construct. - private StateHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StateHistory() { - state_ = 0; - stateMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StateHistory(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-     * Output only. The state of the batch at this point in history.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the batch at this point in history.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; - } - - public static final int STATE_MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object stateMessage_; - /** - * - * - *
-     * Output only. Details about the state at this point in history.
-     * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - @java.lang.Override - public java.lang.String getStateMessage() { - java.lang.Object ref = stateMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateMessage_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. Details about the state at this point in history.
-     * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { - java.lang.Object ref = stateMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-     * Output only. The time when the batch entered the historical state.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_); - } - if (stateStartTime_ != null) { - output.writeMessage(3, getStateStartTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.Batch.StateHistory)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.Batch.StateHistory other = - (com.google.cloud.dataproc.v1.Batch.StateHistory) obj; - - if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStateMessage().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory 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.dataproc.v1.Batch.StateHistory prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-     * Historical state information.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Batch.StateHistory} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch.StateHistory) - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.StateHistory.class, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.Batch.StateHistory.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - stateMessage_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistory build() { - com.google.cloud.dataproc.v1.Batch.StateHistory result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistory buildPartial() { - com.google.cloud.dataproc.v1.Batch.StateHistory result = - new com.google.cloud.dataproc.v1.Batch.StateHistory(this); - result.state_ = state_; - result.stateMessage_ = stateMessage_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.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.dataproc.v1.Batch.StateHistory) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch.StateHistory) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch.StateHistory other) { - if (other == com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getStateMessage().isEmpty()) { - stateMessage_ = other.stateMessage_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - stateMessage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage( - getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int state_ = 0; - /** - * - * - *
-       * Output only. The state of the batch at this point in history.
-       * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-       * Output only. The state of the batch at this point in history.
-       * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The state of the batch at this point in history.
-       * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; - } - /** - * - * - *
-       * Output only. The state of the batch at this point in history.
-       * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. The state of the batch at this point in history.
-       * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object stateMessage_ = ""; - /** - * - * - *
-       * Output only. Details about the state at this point in history.
-       * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - public java.lang.String getStateMessage() { - java.lang.Object ref = stateMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. Details about the state at this point in history.
-       * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - public com.google.protobuf.ByteString getStateMessageBytes() { - java.lang.Object ref = stateMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. Details about the state at this point in history.
-       * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The stateMessage to set. - * @return This builder for chaining. - */ - public Builder setStateMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stateMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Details about the state at this point in history.
-       * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStateMessage() { - - stateMessage_ = getDefaultInstance().getStateMessage(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Details about the state at this point in history.
-       * 
- * - * string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for stateMessage to set. - * @return This builder for chaining. - */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stateMessage_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-       * Output only. The time when the batch entered the historical state.
-       * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - @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.dataproc.v1.Batch.StateHistory) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch.StateHistory) - private static final com.google.cloud.dataproc.v1.Batch.StateHistory DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch.StateHistory(); - } - - public static com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateHistory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistory getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int batchConfigCase_ = 0; - private java.lang.Object batchConfig_; - - public enum BatchConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PYSPARK_BATCH(4), - SPARK_BATCH(5), - SPARK_R_BATCH(6), - SPARK_SQL_BATCH(7), - BATCHCONFIG_NOT_SET(0); - private final int value; - - private BatchConfigCase(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 BatchConfigCase valueOf(int value) { - return forNumber(value); - } - - public static BatchConfigCase forNumber(int value) { - switch (value) { - case 4: - return PYSPARK_BATCH; - case 5: - return SPARK_BATCH; - case 6: - return SPARK_R_BATCH; - case 7: - return SPARK_SQL_BATCH; - case 0: - return BATCHCONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public BatchConfigCase getBatchConfigCase() { - return BatchConfigCase.forNumber(batchConfigCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The resource name of the batch.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the batch.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UUID_FIELD_NUMBER = 2; - private volatile java.lang.Object uuid_; - /** - * - * - *
-   * Output only. A batch UUID (Unique Universal Identifier). The service
-   * generates this value when it creates the batch.
-   * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uuid. - */ - @java.lang.Override - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A batch UUID (Unique Universal Identifier). The service
-   * generates this value when it creates the batch.
-   * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int PYSPARK_BATCH_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkBatch field is set. - */ - @java.lang.Override - public boolean hasPysparkBatch() { - return batchConfigCase_ == 4; - } - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { - if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { - if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - - public static final int SPARK_BATCH_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkBatch field is set. - */ - @java.lang.Override - public boolean hasSparkBatch() { - return batchConfigCase_ == 5; - } - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { - if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { - if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - - public static final int SPARK_R_BATCH_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRBatch field is set. - */ - @java.lang.Override - public boolean hasSparkRBatch() { - return batchConfigCase_ == 6; - } - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { - if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { - if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - - public static final int SPARK_SQL_BATCH_FIELD_NUMBER = 7; - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlBatch field is set. - */ - @java.lang.Override - public boolean hasSparkSqlBatch() { - return batchConfigCase_ == 7; - } - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { - if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { - if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - - public static final int RUNTIME_INFO_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the runtimeInfo field is set. - */ - @java.lang.Override - public boolean hasRuntimeInfo() { - return runtimeInfo_ != null; - } - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The runtimeInfo. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; - } - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { - return getRuntimeInfo(); - } - - public static final int STATE_FIELD_NUMBER = 9; - private int state_; - /** - * - * - *
-   * Output only. The state of the batch.
-   * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the batch.
-   * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; - } - - public static final int STATE_MESSAGE_FIELD_NUMBER = 10; - private volatile java.lang.Object stateMessage_; - /** - * - * - *
-   * Output only. Batch state details, such as a failure
-   * description if the state is `FAILED`.
-   * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - @java.lang.Override - public java.lang.String getStateMessage() { - java.lang.Object ref = stateMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateMessage_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Batch state details, such as a failure
-   * description if the state is `FAILED`.
-   * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { - java.lang.Object ref = stateMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_TIME_FIELD_NUMBER = 11; - private com.google.protobuf.Timestamp stateTime_; - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateTime field is set. - */ - @java.lang.Override - public boolean hasStateTime() { - return stateTime_ != null; - } - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateTime() { - return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; - } - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { - return getStateTime(); - } - - public static final int CREATOR_FIELD_NUMBER = 12; - private volatile java.lang.Object creator_; - /** - * - * - *
-   * Output only. The email address of the user who created the batch.
-   * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The creator. - */ - @java.lang.Override - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The email address of the user who created the batch.
-   * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for creator. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 13; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int RUNTIME_CONFIG_FIELD_NUMBER = 14; - private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_; - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the runtimeConfig field is set. - */ - @java.lang.Override - public boolean hasRuntimeConfig() { - return runtimeConfig_ != null; - } - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The runtimeConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; - } - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { - return getRuntimeConfig(); - } - - public static final int ENVIRONMENT_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the environmentConfig field is set. - */ - @java.lang.Override - public boolean hasEnvironmentConfig() { - return environmentConfig_ != null; - } - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The environmentConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; - } - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { - return getEnvironmentConfig(); - } - - public static final int OPERATION_FIELD_NUMBER = 16; - private volatile java.lang.Object operation_; - /** - * - * - *
-   * Output only. The resource name of the operation associated with this batch.
-   * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operation. - */ - @java.lang.Override - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the operation associated with this batch.
-   * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operation. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_HISTORY_FIELD_NUMBER = 17; - private java.util.List stateHistory_; - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getStateHistoryList() { - return stateHistory_; - } - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStateHistoryOrBuilderList() { - return stateHistory_; - } - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStateHistoryCount() { - return stateHistory_.size(); - } - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { - return stateHistory_.get(index); - } - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( - int index) { - return stateHistory_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (batchConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); - } - if (batchConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); - } - if (batchConfigCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); - } - if (batchConfigCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); - } - if (runtimeInfo_ != null) { - output.writeMessage(8, getRuntimeInfo()); - } - if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(9, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stateMessage_); - } - if (stateTime_ != null) { - output.writeMessage(11, getStateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, creator_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); - if (runtimeConfig_ != null) { - output.writeMessage(14, getRuntimeConfig()); - } - if (environmentConfig_ != null) { - output.writeMessage(15, getEnvironmentConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, operation_); - } - for (int i = 0; i < stateHistory_.size(); i++) { - output.writeMessage(17, stateHistory_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (batchConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_); - } - if (batchConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_); - } - if (batchConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_); - } - if (batchConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_); - } - if (runtimeInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRuntimeInfo()); - } - if (state_ != com.google.cloud.dataproc.v1.Batch.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stateMessage_); - } - if (stateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, creator_); - } - 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(13, labels__); - } - if (runtimeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRuntimeConfig()); - } - if (environmentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEnvironmentConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, operation_); - } - for (int i = 0; i < stateHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, stateHistory_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.Batch)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.Batch other = (com.google.cloud.dataproc.v1.Batch) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUuid().equals(other.getUuid())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasRuntimeInfo() != other.hasRuntimeInfo()) return false; - if (hasRuntimeInfo()) { - if (!getRuntimeInfo().equals(other.getRuntimeInfo())) return false; - } - if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; - if (hasStateTime() != other.hasStateTime()) return false; - if (hasStateTime()) { - if (!getStateTime().equals(other.getStateTime())) return false; - } - if (!getCreator().equals(other.getCreator())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasRuntimeConfig() != other.hasRuntimeConfig()) return false; - if (hasRuntimeConfig()) { - if (!getRuntimeConfig().equals(other.getRuntimeConfig())) return false; - } - if (hasEnvironmentConfig() != other.hasEnvironmentConfig()) return false; - if (hasEnvironmentConfig()) { - if (!getEnvironmentConfig().equals(other.getEnvironmentConfig())) return false; - } - if (!getOperation().equals(other.getOperation())) return false; - if (!getStateHistoryList().equals(other.getStateHistoryList())) return false; - if (!getBatchConfigCase().equals(other.getBatchConfigCase())) return false; - switch (batchConfigCase_) { - case 4: - if (!getPysparkBatch().equals(other.getPysparkBatch())) return false; - break; - case 5: - if (!getSparkBatch().equals(other.getSparkBatch())) return false; - break; - case 6: - if (!getSparkRBatch().equals(other.getSparkRBatch())) return false; - break; - case 7: - if (!getSparkSqlBatch().equals(other.getSparkSqlBatch())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasRuntimeInfo()) { - hash = (37 * hash) + RUNTIME_INFO_FIELD_NUMBER; - hash = (53 * hash) + getRuntimeInfo().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStateMessage().hashCode(); - if (hasStateTime()) { - hash = (37 * hash) + STATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateTime().hashCode(); - } - hash = (37 * hash) + CREATOR_FIELD_NUMBER; - hash = (53 * hash) + getCreator().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasRuntimeConfig()) { - hash = (37 * hash) + RUNTIME_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRuntimeConfig().hashCode(); - } - if (hasEnvironmentConfig()) { - hash = (37 * hash) + ENVIRONMENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentConfig().hashCode(); - } - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + getOperation().hashCode(); - if (getStateHistoryCount() > 0) { - hash = (37 * hash) + STATE_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStateHistoryList().hashCode(); - } - switch (batchConfigCase_) { - case 4: - hash = (37 * hash) + PYSPARK_BATCH_FIELD_NUMBER; - hash = (53 * hash) + getPysparkBatch().hashCode(); - break; - case 5: - hash = (37 * hash) + SPARK_BATCH_FIELD_NUMBER; - hash = (53 * hash) + getSparkBatch().hashCode(); - break; - case 6: - hash = (37 * hash) + SPARK_R_BATCH_FIELD_NUMBER; - hash = (53 * hash) + getSparkRBatch().hashCode(); - break; - case 7: - hash = (37 * hash) + SPARK_SQL_BATCH_FIELD_NUMBER; - hash = (53 * hash) + getSparkSqlBatch().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Batch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Batch 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.dataproc.v1.Batch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 representation of a batch workload in the service.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Batch} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Batch) - com.google.cloud.dataproc.v1.BatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Batch.class, - com.google.cloud.dataproc.v1.Batch.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.Batch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - uuid_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (pysparkBatchBuilder_ != null) { - pysparkBatchBuilder_.clear(); - } - if (sparkBatchBuilder_ != null) { - sparkBatchBuilder_.clear(); - } - if (sparkRBatchBuilder_ != null) { - sparkRBatchBuilder_.clear(); - } - if (sparkSqlBatchBuilder_ != null) { - sparkSqlBatchBuilder_.clear(); - } - if (runtimeInfoBuilder_ == null) { - runtimeInfo_ = null; - } else { - runtimeInfo_ = null; - runtimeInfoBuilder_ = null; - } - state_ = 0; - - stateMessage_ = ""; - - if (stateTimeBuilder_ == null) { - stateTime_ = null; - } else { - stateTime_ = null; - stateTimeBuilder_ = null; - } - creator_ = ""; - - internalGetMutableLabels().clear(); - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - } else { - runtimeConfig_ = null; - runtimeConfigBuilder_ = null; - } - if (environmentConfigBuilder_ == null) { - environmentConfig_ = null; - } else { - environmentConfig_ = null; - environmentConfigBuilder_ = null; - } - operation_ = ""; - - if (stateHistoryBuilder_ == null) { - stateHistory_ = java.util.Collections.emptyList(); - } else { - stateHistory_ = null; - stateHistoryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - batchConfigCase_ = 0; - batchConfig_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_Batch_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.Batch.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch build() { - com.google.cloud.dataproc.v1.Batch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch buildPartial() { - com.google.cloud.dataproc.v1.Batch result = new com.google.cloud.dataproc.v1.Batch(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uuid_ = uuid_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (batchConfigCase_ == 4) { - if (pysparkBatchBuilder_ == null) { - result.batchConfig_ = batchConfig_; - } else { - result.batchConfig_ = pysparkBatchBuilder_.build(); - } - } - if (batchConfigCase_ == 5) { - if (sparkBatchBuilder_ == null) { - result.batchConfig_ = batchConfig_; - } else { - result.batchConfig_ = sparkBatchBuilder_.build(); - } - } - if (batchConfigCase_ == 6) { - if (sparkRBatchBuilder_ == null) { - result.batchConfig_ = batchConfig_; - } else { - result.batchConfig_ = sparkRBatchBuilder_.build(); - } - } - if (batchConfigCase_ == 7) { - if (sparkSqlBatchBuilder_ == null) { - result.batchConfig_ = batchConfig_; - } else { - result.batchConfig_ = sparkSqlBatchBuilder_.build(); - } - } - if (runtimeInfoBuilder_ == null) { - result.runtimeInfo_ = runtimeInfo_; - } else { - result.runtimeInfo_ = runtimeInfoBuilder_.build(); - } - result.state_ = state_; - result.stateMessage_ = stateMessage_; - if (stateTimeBuilder_ == null) { - result.stateTime_ = stateTime_; - } else { - result.stateTime_ = stateTimeBuilder_.build(); - } - result.creator_ = creator_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (runtimeConfigBuilder_ == null) { - result.runtimeConfig_ = runtimeConfig_; - } else { - result.runtimeConfig_ = runtimeConfigBuilder_.build(); - } - if (environmentConfigBuilder_ == null) { - result.environmentConfig_ = environmentConfig_; - } else { - result.environmentConfig_ = environmentConfigBuilder_.build(); - } - result.operation_ = operation_; - if (stateHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - stateHistory_ = java.util.Collections.unmodifiableList(stateHistory_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.stateHistory_ = stateHistory_; - } else { - result.stateHistory_ = stateHistoryBuilder_.build(); - } - result.batchConfigCase_ = batchConfigCase_; - 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.dataproc.v1.Batch) { - return mergeFrom((com.google.cloud.dataproc.v1.Batch) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.Batch other) { - if (other == com.google.cloud.dataproc.v1.Batch.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getUuid().isEmpty()) { - uuid_ = other.uuid_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasRuntimeInfo()) { - mergeRuntimeInfo(other.getRuntimeInfo()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getStateMessage().isEmpty()) { - stateMessage_ = other.stateMessage_; - onChanged(); - } - if (other.hasStateTime()) { - mergeStateTime(other.getStateTime()); - } - if (!other.getCreator().isEmpty()) { - creator_ = other.creator_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasRuntimeConfig()) { - mergeRuntimeConfig(other.getRuntimeConfig()); - } - if (other.hasEnvironmentConfig()) { - mergeEnvironmentConfig(other.getEnvironmentConfig()); - } - if (!other.getOperation().isEmpty()) { - operation_ = other.operation_; - onChanged(); - } - if (stateHistoryBuilder_ == null) { - if (!other.stateHistory_.isEmpty()) { - if (stateHistory_.isEmpty()) { - stateHistory_ = other.stateHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStateHistoryIsMutable(); - stateHistory_.addAll(other.stateHistory_); - } - onChanged(); - } - } else { - if (!other.stateHistory_.isEmpty()) { - if (stateHistoryBuilder_.isEmpty()) { - stateHistoryBuilder_.dispose(); - stateHistoryBuilder_ = null; - stateHistory_ = other.stateHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - stateHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStateHistoryFieldBuilder() - : null; - } else { - stateHistoryBuilder_.addAllMessages(other.stateHistory_); - } - } - } - switch (other.getBatchConfigCase()) { - case PYSPARK_BATCH: - { - mergePysparkBatch(other.getPysparkBatch()); - break; - } - case SPARK_BATCH: - { - mergeSparkBatch(other.getSparkBatch()); - break; - } - case SPARK_R_BATCH: - { - mergeSparkRBatch(other.getSparkRBatch()); - break; - } - case SPARK_SQL_BATCH: - { - mergeSparkSqlBatch(other.getSparkSqlBatch()); - break; - } - case BATCHCONFIG_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - uuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getPysparkBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getSparkBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getSparkRBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getSparkSqlBatchFieldBuilder().getBuilder(), extensionRegistry); - batchConfigCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getRuntimeInfoFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 72: - { - state_ = input.readEnum(); - - break; - } // case 72 - case 82: - { - stateMessage_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: - { - input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 98: - { - creator_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: - { - input.readMessage(getRuntimeConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 114 - case 122: - { - input.readMessage( - getEnvironmentConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 122 - case 130: - { - operation_ = input.readStringRequireUtf8(); - - break; - } // case 130 - case 138: - { - com.google.cloud.dataproc.v1.Batch.StateHistory m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.StateHistory.parser(), - extensionRegistry); - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.add(m); - } else { - stateHistoryBuilder_.addMessage(m); - } - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int batchConfigCase_ = 0; - private java.lang.Object batchConfig_; - - public BatchConfigCase getBatchConfigCase() { - return BatchConfigCase.forNumber(batchConfigCase_); - } - - public Builder clearBatchConfig() { - batchConfigCase_ = 0; - batchConfig_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of the batch.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the batch.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the batch.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the batch.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the batch.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object uuid_ = ""; - /** - * - * - *
-     * Output only. A batch UUID (Unique Universal Identifier). The service
-     * generates this value when it creates the batch.
-     * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uuid. - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A batch UUID (Unique Universal Identifier). The service
-     * generates this value when it creates the batch.
-     * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uuid. - */ - public com.google.protobuf.ByteString getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A batch UUID (Unique Universal Identifier). The service
-     * generates this value when it creates the batch.
-     * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A batch UUID (Unique Universal Identifier). The service
-     * generates this value when it creates the batch.
-     * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUuid() { - - uuid_ = getDefaultInstance().getUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A batch UUID (Unique Universal Identifier). The service
-     * generates this value when it creates the batch.
-     * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for uuid to set. - * @return This builder for chaining. - */ - public Builder setUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uuid_ = value; - 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_; - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time when the batch was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> - pysparkBatchBuilder_; - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkBatch field is set. - */ - @java.lang.Override - public boolean hasPysparkBatch() { - return batchConfigCase_ == 4; - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch() { - if (pysparkBatchBuilder_ == null) { - if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } else { - if (batchConfigCase_ == 4) { - return pysparkBatchBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { - if (pysparkBatchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchConfig_ = value; - onChanged(); - } else { - pysparkBatchBuilder_.setMessage(value); - } - batchConfigCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkBatch( - com.google.cloud.dataproc.v1.PySparkBatch.Builder builderForValue) { - if (pysparkBatchBuilder_ == null) { - batchConfig_ = builderForValue.build(); - onChanged(); - } else { - pysparkBatchBuilder_.setMessage(builderForValue.build()); - } - batchConfigCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePysparkBatch(com.google.cloud.dataproc.v1.PySparkBatch value) { - if (pysparkBatchBuilder_ == null) { - if (batchConfigCase_ == 4 - && batchConfig_ != com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.PySparkBatch.newBuilder( - (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - batchConfig_ = value; - } - onChanged(); - } else { - if (batchConfigCase_ == 4) { - pysparkBatchBuilder_.mergeFrom(value); - } else { - pysparkBatchBuilder_.setMessage(value); - } - } - batchConfigCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPysparkBatch() { - if (pysparkBatchBuilder_ == null) { - if (batchConfigCase_ == 4) { - batchConfigCase_ = 0; - batchConfig_ = null; - onChanged(); - } - } else { - if (batchConfigCase_ == 4) { - batchConfigCase_ = 0; - batchConfig_ = null; - } - pysparkBatchBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PySparkBatch.Builder getPysparkBatchBuilder() { - return getPysparkBatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder() { - if ((batchConfigCase_ == 4) && (pysparkBatchBuilder_ != null)) { - return pysparkBatchBuilder_.getMessageOrBuilder(); - } else { - if (batchConfigCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. PySpark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder> - getPysparkBatchFieldBuilder() { - if (pysparkBatchBuilder_ == null) { - if (!(batchConfigCase_ == 4)) { - batchConfig_ = com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - pysparkBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkBatch, - com.google.cloud.dataproc.v1.PySparkBatch.Builder, - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder>( - (com.google.cloud.dataproc.v1.PySparkBatch) batchConfig_, - getParentForChildren(), - isClean()); - batchConfig_ = null; - } - batchConfigCase_ = 4; - onChanged(); - ; - return pysparkBatchBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder> - sparkBatchBuilder_; - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkBatch field is set. - */ - @java.lang.Override - public boolean hasSparkBatch() { - return batchConfigCase_ == 5; - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch getSparkBatch() { - if (sparkBatchBuilder_ == null) { - if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } else { - if (batchConfigCase_ == 5) { - return sparkBatchBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { - if (sparkBatchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchConfig_ = value; - onChanged(); - } else { - sparkBatchBuilder_.setMessage(value); - } - batchConfigCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkBatch(com.google.cloud.dataproc.v1.SparkBatch.Builder builderForValue) { - if (sparkBatchBuilder_ == null) { - batchConfig_ = builderForValue.build(); - onChanged(); - } else { - sparkBatchBuilder_.setMessage(builderForValue.build()); - } - batchConfigCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkBatch(com.google.cloud.dataproc.v1.SparkBatch value) { - if (sparkBatchBuilder_ == null) { - if (batchConfigCase_ == 5 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - batchConfig_ = value; - } - onChanged(); - } else { - if (batchConfigCase_ == 5) { - sparkBatchBuilder_.mergeFrom(value); - } else { - sparkBatchBuilder_.setMessage(value); - } - } - batchConfigCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkBatch() { - if (sparkBatchBuilder_ == null) { - if (batchConfigCase_ == 5) { - batchConfigCase_ = 0; - batchConfig_ = null; - onChanged(); - } - } else { - if (batchConfigCase_ == 5) { - batchConfigCase_ = 0; - batchConfig_ = null; - } - sparkBatchBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkBatch.Builder getSparkBatchBuilder() { - return getSparkBatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder() { - if ((batchConfigCase_ == 5) && (sparkBatchBuilder_ != null)) { - return sparkBatchBuilder_.getMessageOrBuilder(); - } else { - if (batchConfigCase_ == 5) { - return (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Spark batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder> - getSparkBatchFieldBuilder() { - if (sparkBatchBuilder_ == null) { - if (!(batchConfigCase_ == 5)) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - sparkBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkBatch, - com.google.cloud.dataproc.v1.SparkBatch.Builder, - com.google.cloud.dataproc.v1.SparkBatchOrBuilder>( - (com.google.cloud.dataproc.v1.SparkBatch) batchConfig_, - getParentForChildren(), - isClean()); - batchConfig_ = null; - } - batchConfigCase_ = 5; - onChanged(); - ; - return sparkBatchBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> - sparkRBatchBuilder_; - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRBatch field is set. - */ - @java.lang.Override - public boolean hasSparkRBatch() { - return batchConfigCase_ == 6; - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch() { - if (sparkRBatchBuilder_ == null) { - if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } else { - if (batchConfigCase_ == 6) { - return sparkRBatchBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { - if (sparkRBatchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchConfig_ = value; - onChanged(); - } else { - sparkRBatchBuilder_.setMessage(value); - } - batchConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRBatch( - com.google.cloud.dataproc.v1.SparkRBatch.Builder builderForValue) { - if (sparkRBatchBuilder_ == null) { - batchConfig_ = builderForValue.build(); - onChanged(); - } else { - sparkRBatchBuilder_.setMessage(builderForValue.build()); - } - batchConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkRBatch(com.google.cloud.dataproc.v1.SparkRBatch value) { - if (sparkRBatchBuilder_ == null) { - if (batchConfigCase_ == 6 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkRBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - batchConfig_ = value; - } - onChanged(); - } else { - if (batchConfigCase_ == 6) { - sparkRBatchBuilder_.mergeFrom(value); - } else { - sparkRBatchBuilder_.setMessage(value); - } - } - batchConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkRBatch() { - if (sparkRBatchBuilder_ == null) { - if (batchConfigCase_ == 6) { - batchConfigCase_ = 0; - batchConfig_ = null; - onChanged(); - } - } else { - if (batchConfigCase_ == 6) { - batchConfigCase_ = 0; - batchConfig_ = null; - } - sparkRBatchBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkRBatch.Builder getSparkRBatchBuilder() { - return getSparkRBatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder() { - if ((batchConfigCase_ == 6) && (sparkRBatchBuilder_ != null)) { - return sparkRBatchBuilder_.getMessageOrBuilder(); - } else { - if (batchConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. SparkR batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder> - getSparkRBatchFieldBuilder() { - if (sparkRBatchBuilder_ == null) { - if (!(batchConfigCase_ == 6)) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - sparkRBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRBatch, - com.google.cloud.dataproc.v1.SparkRBatch.Builder, - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder>( - (com.google.cloud.dataproc.v1.SparkRBatch) batchConfig_, - getParentForChildren(), - isClean()); - batchConfig_ = null; - } - batchConfigCase_ = 6; - onChanged(); - ; - return sparkRBatchBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> - sparkSqlBatchBuilder_; - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlBatch field is set. - */ - @java.lang.Override - public boolean hasSparkSqlBatch() { - return batchConfigCase_ == 7; - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlBatch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch() { - if (sparkSqlBatchBuilder_ == null) { - if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } else { - if (batchConfigCase_ == 7) { - return sparkSqlBatchBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { - if (sparkSqlBatchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchConfig_ = value; - onChanged(); - } else { - sparkSqlBatchBuilder_.setMessage(value); - } - batchConfigCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlBatch( - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder builderForValue) { - if (sparkSqlBatchBuilder_ == null) { - batchConfig_ = builderForValue.build(); - onChanged(); - } else { - sparkSqlBatchBuilder_.setMessage(builderForValue.build()); - } - batchConfigCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkSqlBatch(com.google.cloud.dataproc.v1.SparkSqlBatch value) { - if (sparkSqlBatchBuilder_ == null) { - if (batchConfigCase_ == 7 - && batchConfig_ != com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) { - batchConfig_ = - com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - batchConfig_ = value; - } - onChanged(); - } else { - if (batchConfigCase_ == 7) { - sparkSqlBatchBuilder_.mergeFrom(value); - } else { - sparkSqlBatchBuilder_.setMessage(value); - } - } - batchConfigCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkSqlBatch() { - if (sparkSqlBatchBuilder_ == null) { - if (batchConfigCase_ == 7) { - batchConfigCase_ = 0; - batchConfig_ = null; - onChanged(); - } - } else { - if (batchConfigCase_ == 7) { - batchConfigCase_ = 0; - batchConfig_ = null; - } - sparkSqlBatchBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkSqlBatch.Builder getSparkSqlBatchBuilder() { - return getSparkSqlBatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder() { - if ((batchConfigCase_ == 7) && (sparkSqlBatchBuilder_ != null)) { - return sparkSqlBatchBuilder_.getMessageOrBuilder(); - } else { - if (batchConfigCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_; - } - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. SparkSql batch config.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder> - getSparkSqlBatchFieldBuilder() { - if (sparkSqlBatchBuilder_ == null) { - if (!(batchConfigCase_ == 7)) { - batchConfig_ = com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - sparkSqlBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlBatch, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder, - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder>( - (com.google.cloud.dataproc.v1.SparkSqlBatch) batchConfig_, - getParentForChildren(), - isClean()); - batchConfig_ = null; - } - batchConfigCase_ = 7; - onChanged(); - ; - return sparkSqlBatchBuilder_; - } - - private com.google.cloud.dataproc.v1.RuntimeInfo runtimeInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> - runtimeInfoBuilder_; - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the runtimeInfo field is set. - */ - public boolean hasRuntimeInfo() { - return runtimeInfoBuilder_ != null || runtimeInfo_ != null; - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The runtimeInfo. - */ - public com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo() { - if (runtimeInfoBuilder_ == null) { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; - } else { - return runtimeInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { - if (runtimeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runtimeInfo_ = value; - onChanged(); - } else { - runtimeInfoBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setRuntimeInfo( - com.google.cloud.dataproc.v1.RuntimeInfo.Builder builderForValue) { - if (runtimeInfoBuilder_ == null) { - runtimeInfo_ = builderForValue.build(); - onChanged(); - } else { - runtimeInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeRuntimeInfo(com.google.cloud.dataproc.v1.RuntimeInfo value) { - if (runtimeInfoBuilder_ == null) { - if (runtimeInfo_ != null) { - runtimeInfo_ = - com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder(runtimeInfo_) - .mergeFrom(value) - .buildPartial(); - } else { - runtimeInfo_ = value; - } - onChanged(); - } else { - runtimeInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearRuntimeInfo() { - if (runtimeInfoBuilder_ == null) { - runtimeInfo_ = null; - onChanged(); - } else { - runtimeInfo_ = null; - runtimeInfoBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.RuntimeInfo.Builder getRuntimeInfoBuilder() { - - onChanged(); - return getRuntimeInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder() { - if (runtimeInfoBuilder_ != null) { - return runtimeInfoBuilder_.getMessageOrBuilder(); - } else { - return runtimeInfo_ == null - ? com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance() - : runtimeInfo_; - } - } - /** - * - * - *
-     * Output only. Runtime information about batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder> - getRuntimeInfoFieldBuilder() { - if (runtimeInfoBuilder_ == null) { - runtimeInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeInfo, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder, - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder>( - getRuntimeInfo(), getParentForChildren(), isClean()); - runtimeInfo_ = null; - } - return runtimeInfoBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the batch.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the batch.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the batch.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Batch.State result = - com.google.cloud.dataproc.v1.Batch.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.Batch.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The state of the batch.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.Batch.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the batch.
-     * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object stateMessage_ = ""; - /** - * - * - *
-     * Output only. Batch state details, such as a failure
-     * description if the state is `FAILED`.
-     * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - public java.lang.String getStateMessage() { - java.lang.Object ref = stateMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stateMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Batch state details, such as a failure
-     * description if the state is `FAILED`.
-     * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - public com.google.protobuf.ByteString getStateMessageBytes() { - java.lang.Object ref = stateMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stateMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Batch state details, such as a failure
-     * description if the state is `FAILED`.
-     * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The stateMessage to set. - * @return This builder for chaining. - */ - public Builder setStateMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stateMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Batch state details, such as a failure
-     * description if the state is `FAILED`.
-     * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStateMessage() { - - stateMessage_ = getDefaultInstance().getStateMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Batch state details, such as a failure
-     * description if the state is `FAILED`.
-     * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for stateMessage to set. - * @return This builder for chaining. - */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stateMessage_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateTimeBuilder_; - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateTime field is set. - */ - public boolean hasStateTime() { - return stateTimeBuilder_ != null || stateTime_ != null; - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateTime. - */ - public com.google.protobuf.Timestamp getStateTime() { - if (stateTimeBuilder_ == null) { - return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; - } else { - return stateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateTime(com.google.protobuf.Timestamp value) { - if (stateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateTime_ = value; - onChanged(); - } else { - stateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateTimeBuilder_ == null) { - stateTime_ = builderForValue.build(); - onChanged(); - } else { - stateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateTime(com.google.protobuf.Timestamp value) { - if (stateTimeBuilder_ == null) { - if (stateTime_ != null) { - stateTime_ = - com.google.protobuf.Timestamp.newBuilder(stateTime_).mergeFrom(value).buildPartial(); - } else { - stateTime_ = value; - } - onChanged(); - } else { - stateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateTime() { - if (stateTimeBuilder_ == null) { - stateTime_ = null; - onChanged(); - } else { - stateTime_ = null; - stateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() { - - onChanged(); - return getStateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() { - if (stateTimeBuilder_ != null) { - return stateTimeBuilder_.getMessageOrBuilder(); - } else { - return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_; - } - } - /** - * - * - *
-     * Output only. The time when the batch entered a current state.
-     * 
- * - * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateTimeFieldBuilder() { - if (stateTimeBuilder_ == null) { - stateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateTime(), getParentForChildren(), isClean()); - stateTime_ = null; - } - return stateTimeBuilder_; - } - - private java.lang.Object creator_ = ""; - /** - * - * - *
-     * Output only. The email address of the user who created the batch.
-     * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The creator. - */ - public java.lang.String getCreator() { - java.lang.Object ref = creator_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creator_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The email address of the user who created the batch.
-     * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for creator. - */ - public com.google.protobuf.ByteString getCreatorBytes() { - java.lang.Object ref = creator_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - creator_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The email address of the user who created the batch.
-     * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The creator to set. - * @return This builder for chaining. - */ - public Builder setCreator(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - creator_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The email address of the user who created the batch.
-     * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearCreator() { - - creator_ = getDefaultInstance().getCreator(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The email address of the user who created the batch.
-     * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for creator to set. - * @return This builder for chaining. - */ - public Builder setCreatorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - creator_ = value; - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this batch.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a batch.
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.RuntimeConfig runtimeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder, - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> - runtimeConfigBuilder_; - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the runtimeConfig field is set. - */ - public boolean hasRuntimeConfig() { - return runtimeConfigBuilder_ != null || runtimeConfig_ != null; - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The runtimeConfig. - */ - public com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig() { - if (runtimeConfigBuilder_ == null) { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; - } else { - return runtimeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { - if (runtimeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runtimeConfig_ = value; - onChanged(); - } else { - runtimeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRuntimeConfig( - com.google.cloud.dataproc.v1.RuntimeConfig.Builder builderForValue) { - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = builderForValue.build(); - onChanged(); - } else { - runtimeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeRuntimeConfig(com.google.cloud.dataproc.v1.RuntimeConfig value) { - if (runtimeConfigBuilder_ == null) { - if (runtimeConfig_ != null) { - runtimeConfig_ = - com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder(runtimeConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - runtimeConfig_ = value; - } - onChanged(); - } else { - runtimeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearRuntimeConfig() { - if (runtimeConfigBuilder_ == null) { - runtimeConfig_ = null; - onChanged(); - } else { - runtimeConfig_ = null; - runtimeConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.RuntimeConfig.Builder getRuntimeConfigBuilder() { - - onChanged(); - return getRuntimeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder() { - if (runtimeConfigBuilder_ != null) { - return runtimeConfigBuilder_.getMessageOrBuilder(); - } else { - return runtimeConfig_ == null - ? com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance() - : runtimeConfig_; - } - } - /** - * - * - *
-     * Optional. Runtime configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder, - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder> - getRuntimeConfigFieldBuilder() { - if (runtimeConfigBuilder_ == null) { - runtimeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RuntimeConfig, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder, - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder>( - getRuntimeConfig(), getParentForChildren(), isClean()); - runtimeConfig_ = null; - } - return runtimeConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.EnvironmentConfig environmentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> - environmentConfigBuilder_; - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the environmentConfig field is set. - */ - public boolean hasEnvironmentConfig() { - return environmentConfigBuilder_ != null || environmentConfig_ != null; - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The environmentConfig. - */ - public com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig() { - if (environmentConfigBuilder_ == null) { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; - } else { - return environmentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { - if (environmentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - environmentConfig_ = value; - onChanged(); - } else { - environmentConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEnvironmentConfig( - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder builderForValue) { - if (environmentConfigBuilder_ == null) { - environmentConfig_ = builderForValue.build(); - onChanged(); - } else { - environmentConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEnvironmentConfig(com.google.cloud.dataproc.v1.EnvironmentConfig value) { - if (environmentConfigBuilder_ == null) { - if (environmentConfig_ != null) { - environmentConfig_ = - com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder(environmentConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - environmentConfig_ = value; - } - onChanged(); - } else { - environmentConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEnvironmentConfig() { - if (environmentConfigBuilder_ == null) { - environmentConfig_ = null; - onChanged(); - } else { - environmentConfig_ = null; - environmentConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EnvironmentConfig.Builder getEnvironmentConfigBuilder() { - - onChanged(); - return getEnvironmentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder() { - if (environmentConfigBuilder_ != null) { - return environmentConfigBuilder_.getMessageOrBuilder(); - } else { - return environmentConfig_ == null - ? com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance() - : environmentConfig_; - } - } - /** - * - * - *
-     * Optional. Environment configuration for the batch execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder> - getEnvironmentConfigFieldBuilder() { - if (environmentConfigBuilder_ == null) { - environmentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EnvironmentConfig, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder, - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder>( - getEnvironmentConfig(), getParentForChildren(), isClean()); - environmentConfig_ = null; - } - return environmentConfigBuilder_; - } - - private java.lang.Object operation_ = ""; - /** - * - * - *
-     * Output only. The resource name of the operation associated with this batch.
-     * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operation. - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the operation associated with this batch.
-     * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operation. - */ - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the operation associated with this batch.
-     * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the operation associated with this batch.
-     * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = getDefaultInstance().getOperation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the operation associated with this batch.
-     * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operation_ = value; - onChanged(); - return this; - } - - private java.util.List stateHistory_ = - java.util.Collections.emptyList(); - - private void ensureStateHistoryIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - stateHistory_ = - new java.util.ArrayList(stateHistory_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> - stateHistoryBuilder_; - - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getStateHistoryList() { - if (stateHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(stateHistory_); - } else { - return stateHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStateHistoryCount() { - if (stateHistoryBuilder_ == null) { - return stateHistory_.size(); - } else { - return stateHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index) { - if (stateHistoryBuilder_ == null) { - return stateHistory_.get(index); - } else { - return stateHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateHistory( - int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { - if (stateHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStateHistoryIsMutable(); - stateHistory_.set(index, value); - onChanged(); - } else { - stateHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateHistory( - int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - stateHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStateHistory(com.google.cloud.dataproc.v1.Batch.StateHistory value) { - if (stateHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStateHistoryIsMutable(); - stateHistory_.add(value); - onChanged(); - } else { - stateHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStateHistory( - int index, com.google.cloud.dataproc.v1.Batch.StateHistory value) { - if (stateHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStateHistoryIsMutable(); - stateHistory_.add(index, value); - onChanged(); - } else { - stateHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStateHistory( - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.add(builderForValue.build()); - onChanged(); - } else { - stateHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStateHistory( - int index, com.google.cloud.dataproc.v1.Batch.StateHistory.Builder builderForValue) { - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - stateHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStateHistory( - java.lang.Iterable values) { - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateHistory_); - onChanged(); - } else { - stateHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateHistory() { - if (stateHistoryBuilder_ == null) { - stateHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - stateHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStateHistory(int index) { - if (stateHistoryBuilder_ == null) { - ensureStateHistoryIsMutable(); - stateHistory_.remove(index); - onChanged(); - } else { - stateHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder getStateHistoryBuilder( - int index) { - return getStateHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder( - int index) { - if (stateHistoryBuilder_ == null) { - return stateHistory_.get(index); - } else { - return stateHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStateHistoryOrBuilderList() { - if (stateHistoryBuilder_ != null) { - return stateHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stateHistory_); - } - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder() { - return getStateHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Batch.StateHistory.Builder addStateHistoryBuilder( - int index) { - return getStateHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Batch.StateHistory.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Historical state information for the batch.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStateHistoryBuilderList() { - return getStateHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder> - getStateHistoryFieldBuilder() { - if (stateHistoryBuilder_ == null) { - stateHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch.StateHistory, - com.google.cloud.dataproc.v1.Batch.StateHistory.Builder, - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>( - stateHistory_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - stateHistory_ = null; - } - return stateHistoryBuilder_; - } - - @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.dataproc.v1.Batch) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Batch) - private static final com.google.cloud.dataproc.v1.Batch DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Batch(); - } - - public static com.google.cloud.dataproc.v1.Batch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Batch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java deleted file mode 100644 index 0457babc..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class BatchName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_BATCH = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/batches/{batch}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String batch; - - @Deprecated - protected BatchName() { - project = null; - location = null; - batch = null; - } - - private BatchName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - batch = Preconditions.checkNotNull(builder.getBatch()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getBatch() { - return batch; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static BatchName of(String project, String location, String batch) { - return newBuilder().setProject(project).setLocation(location).setBatch(batch).build(); - } - - public static String format(String project, String location, String batch) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setBatch(batch) - .build() - .toString(); - } - - public static BatchName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_BATCH.validatedMatch( - formattedString, "BatchName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("batch")); - } - - 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 (BatchName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_BATCH.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 (batch != null) { - fieldMapBuilder.put("batch", batch); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_BATCH.instantiate( - "project", project, "location", location, "batch", batch); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - BatchName that = ((BatchName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.batch, that.batch); - } - 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(batch); - return h; - } - - /** Builder for projects/{project}/locations/{location}/batches/{batch}. */ - public static class Builder { - private String project; - private String location; - private String batch; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getBatch() { - return batch; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setBatch(String batch) { - this.batch = batch; - return this; - } - - private Builder(BatchName batchName) { - this.project = batchName.project; - this.location = batchName.location; - this.batch = batchName.batch; - } - - public BatchName build() { - return new BatchName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java deleted file mode 100644 index 2c0c2895..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadata.java +++ /dev/null @@ -1,2395 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Metadata describing the Batch operation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} - */ -public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.BatchOperationMetadata) - BatchOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchOperationMetadata.newBuilder() to construct. - private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchOperationMetadata() { - batch_ = ""; - batchUuid_ = ""; - operationType_ = 0; - description_ = ""; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchOperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, - com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); - } - - /** - * - * - *
-   * Operation type for Batch resources
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType} - */ - public enum BatchOperationType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Batch operation type is unknown.
-     * 
- * - * BATCH_OPERATION_TYPE_UNSPECIFIED = 0; - */ - BATCH_OPERATION_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Batch operation type.
-     * 
- * - * BATCH = 1; - */ - BATCH(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Batch operation type is unknown.
-     * 
- * - * BATCH_OPERATION_TYPE_UNSPECIFIED = 0; - */ - public static final int BATCH_OPERATION_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Batch operation type.
-     * 
- * - * BATCH = 1; - */ - public static final int BATCH_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BatchOperationType 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 BatchOperationType forNumber(int value) { - switch (value) { - case 0: - return BATCH_OPERATION_TYPE_UNSPECIFIED; - case 1: - return BATCH; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BatchOperationType findValueByNumber(int number) { - return BatchOperationType.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.dataproc.v1.BatchOperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final BatchOperationType[] VALUES = values(); - - public static BatchOperationType 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 BatchOperationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType) - } - - public static final int BATCH_FIELD_NUMBER = 1; - private volatile java.lang.Object batch_; - /** - * - * - *
-   * Name of the batch for the operation.
-   * 
- * - * string batch = 1; - * - * @return The batch. - */ - @java.lang.Override - public java.lang.String getBatch() { - java.lang.Object ref = batch_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batch_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the batch for the operation.
-   * 
- * - * string batch = 1; - * - * @return The bytes for batch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBatchBytes() { - java.lang.Object ref = batch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BATCH_UUID_FIELD_NUMBER = 2; - private volatile java.lang.Object batchUuid_; - /** - * - * - *
-   * Batch UUID for the operation.
-   * 
- * - * string batch_uuid = 2; - * - * @return The batchUuid. - */ - @java.lang.Override - public java.lang.String getBatchUuid() { - java.lang.Object ref = batchUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batchUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Batch UUID for the operation.
-   * 
- * - * string batch_uuid = 2; - * - * @return The bytes for batchUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBatchUuidBytes() { - java.lang.Object ref = batchUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batchUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int DONE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp doneTime_; - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return Whether the doneTime field is set. - */ - @java.lang.Override - public boolean hasDoneTime() { - return doneTime_ != null; - } - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return The doneTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDoneTime() { - return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; - } - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { - return getDoneTime(); - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 6; - private int operationType_; - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override - public int getOperationTypeValue() { - return operationType_; - } - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The operationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED - : result; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 7; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Short description of the operation.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Short description of the operation.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 8; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_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(); - } - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WARNINGS_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList warnings_; - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batch_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, batch_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, batchUuid_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (doneTime_ != null) { - output.writeMessage(4, getDoneTime()); - } - if (operationType_ - != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - .BATCH_OPERATION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, operationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - for (int i = 0; i < warnings_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, warnings_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batch_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, batch_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, batchUuid_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (doneTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDoneTime()); - } - if (operationType_ - != com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - .BATCH_OPERATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, operationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); - } - 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(8, labels__); - } - { - int dataSize = 0; - for (int i = 0; i < warnings_.size(); i++) { - dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); - } - size += dataSize; - size += 1 * getWarningsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.BatchOperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.BatchOperationMetadata other = - (com.google.cloud.dataproc.v1.BatchOperationMetadata) obj; - - if (!getBatch().equals(other.getBatch())) return false; - if (!getBatchUuid().equals(other.getBatchUuid())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasDoneTime() != other.hasDoneTime()) return false; - if (hasDoneTime()) { - if (!getDoneTime().equals(other.getDoneTime())) return false; - } - if (operationType_ != other.operationType_) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BATCH_FIELD_NUMBER; - hash = (53 * hash) + getBatch().hashCode(); - hash = (37 * hash) + BATCH_UUID_FIELD_NUMBER; - hash = (53 * hash) + getBatchUuid().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasDoneTime()) { - hash = (37 * hash) + DONE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDoneTime().hashCode(); - } - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + operationType_; - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata 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.dataproc.v1.BatchOperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 describing the Batch operation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.BatchOperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.BatchOperationMetadata) - com.google.cloud.dataproc.v1.BatchOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.BatchOperationMetadata.class, - com.google.cloud.dataproc.v1.BatchOperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.BatchOperationMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - batch_ = ""; - - batchUuid_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (doneTimeBuilder_ == null) { - doneTime_ = null; - } else { - doneTime_ = null; - doneTimeBuilder_ = null; - } - operationType_ = 0; - - description_ = ""; - - internalGetMutableLabels().clear(); - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata build() { - com.google.cloud.dataproc.v1.BatchOperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.BatchOperationMetadata result = - new com.google.cloud.dataproc.v1.BatchOperationMetadata(this); - int from_bitField0_ = bitField0_; - result.batch_ = batch_; - result.batchUuid_ = batchUuid_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (doneTimeBuilder_ == null) { - result.doneTime_ = doneTime_; - } else { - result.doneTime_ = doneTimeBuilder_.build(); - } - result.operationType_ = operationType_; - result.description_ = description_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.warnings_ = warnings_; - 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.dataproc.v1.BatchOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.BatchOperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.BatchOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.BatchOperationMetadata.getDefaultInstance()) - return this; - if (!other.getBatch().isEmpty()) { - batch_ = other.batch_; - onChanged(); - } - if (!other.getBatchUuid().isEmpty()) { - batchUuid_ = other.batchUuid_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasDoneTime()) { - mergeDoneTime(other.getDoneTime()); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - batch_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - batchUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getDoneTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 48: - { - operationType_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object batch_ = ""; - /** - * - * - *
-     * Name of the batch for the operation.
-     * 
- * - * string batch = 1; - * - * @return The batch. - */ - public java.lang.String getBatch() { - java.lang.Object ref = batch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batch_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the batch for the operation.
-     * 
- * - * string batch = 1; - * - * @return The bytes for batch. - */ - public com.google.protobuf.ByteString getBatchBytes() { - java.lang.Object ref = batch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the batch for the operation.
-     * 
- * - * string batch = 1; - * - * @param value The batch to set. - * @return This builder for chaining. - */ - public Builder setBatch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - batch_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the batch for the operation.
-     * 
- * - * string batch = 1; - * - * @return This builder for chaining. - */ - public Builder clearBatch() { - - batch_ = getDefaultInstance().getBatch(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the batch for the operation.
-     * 
- * - * string batch = 1; - * - * @param value The bytes for batch to set. - * @return This builder for chaining. - */ - public Builder setBatchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - batch_ = value; - onChanged(); - return this; - } - - private java.lang.Object batchUuid_ = ""; - /** - * - * - *
-     * Batch UUID for the operation.
-     * 
- * - * string batch_uuid = 2; - * - * @return The batchUuid. - */ - public java.lang.String getBatchUuid() { - java.lang.Object ref = batchUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batchUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Batch UUID for the operation.
-     * 
- * - * string batch_uuid = 2; - * - * @return The bytes for batchUuid. - */ - public com.google.protobuf.ByteString getBatchUuidBytes() { - java.lang.Object ref = batchUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batchUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Batch UUID for the operation.
-     * 
- * - * string batch_uuid = 2; - * - * @param value The batchUuid to set. - * @return This builder for chaining. - */ - public Builder setBatchUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - batchUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Batch UUID for the operation.
-     * 
- * - * string batch_uuid = 2; - * - * @return This builder for chaining. - */ - public Builder clearBatchUuid() { - - batchUuid_ = getDefaultInstance().getBatchUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Batch UUID for the operation.
-     * 
- * - * string batch_uuid = 2; - * - * @param value The bytes for batchUuid to set. - * @return This builder for chaining. - */ - public Builder setBatchUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - batchUuid_ = 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 time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * The time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @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 time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - 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 time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - 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 time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * The time when the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - 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_; - } - - private com.google.protobuf.Timestamp doneTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - doneTimeBuilder_; - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return Whether the doneTime field is set. - */ - public boolean hasDoneTime() { - return doneTimeBuilder_ != null || doneTime_ != null; - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return The doneTime. - */ - public com.google.protobuf.Timestamp getDoneTime() { - if (doneTimeBuilder_ == null) { - return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; - } else { - return doneTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public Builder setDoneTime(com.google.protobuf.Timestamp value) { - if (doneTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - doneTime_ = value; - onChanged(); - } else { - doneTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public Builder setDoneTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (doneTimeBuilder_ == null) { - doneTime_ = builderForValue.build(); - onChanged(); - } else { - doneTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public Builder mergeDoneTime(com.google.protobuf.Timestamp value) { - if (doneTimeBuilder_ == null) { - if (doneTime_ != null) { - doneTime_ = - com.google.protobuf.Timestamp.newBuilder(doneTime_).mergeFrom(value).buildPartial(); - } else { - doneTime_ = value; - } - onChanged(); - } else { - doneTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public Builder clearDoneTime() { - if (doneTimeBuilder_ == null) { - doneTime_ = null; - onChanged(); - } else { - doneTime_ = null; - doneTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getDoneTimeBuilder() { - - onChanged(); - return getDoneTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder() { - if (doneTimeBuilder_ != null) { - return doneTimeBuilder_.getMessageOrBuilder(); - } else { - return doneTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : doneTime_; - } - } - /** - * - * - *
-     * The time when the operation finished.
-     * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDoneTimeFieldBuilder() { - if (doneTimeBuilder_ == null) { - doneTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDoneTime(), getParentForChildren(), isClean()); - doneTime_ = null; - } - return doneTimeBuilder_; - } - - private int operationType_ = 0; - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override - public int getOperationTypeValue() { - return operationType_; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @param value The enum numeric value on the wire for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeValue(int value) { - - operationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The operationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType - getOperationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType result = - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.valueOf( - operationType_); - return result == null - ? com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType( - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Short description of the operation.
-     * 
- * - * string description = 7; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Short description of the operation.
-     * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Short description of the operation.
-     * 
- * - * string description = 7; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Short description of the operation.
-     * 
- * - * string description = 7; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Short description of the operation.
-     * 
- * - * string description = 7; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - 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(); - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Labels associated with the operation.
-     * 
- * - * map<string, string> labels = 8; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param index The index to set the value at. - * @param value The warnings to set. - * @return This builder for chaining. - */ - public Builder setWarnings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param value The warnings to add. - * @return This builder for chaining. - */ - public Builder addWarnings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param values The warnings to add. - * @return This builder for chaining. - */ - public Builder addAllWarnings(java.lang.Iterable values) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - onChanged(); - return this; - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @return This builder for chaining. - */ - public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Warnings encountered during operation execution.
-     * 
- * - * repeated string warnings = 9; - * - * @param value The bytes of the warnings to add. - * @return This builder for chaining. - */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWarningsIsMutable(); - warnings_.add(value); - 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.dataproc.v1.BatchOperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.BatchOperationMetadata) - private static final com.google.cloud.dataproc.v1.BatchOperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.BatchOperationMetadata(); - } - - public static com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java deleted file mode 100644 index 0a1d94d0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOperationMetadataOrBuilder.java +++ /dev/null @@ -1,307 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public interface BatchOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BatchOperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the batch for the operation.
-   * 
- * - * string batch = 1; - * - * @return The batch. - */ - java.lang.String getBatch(); - /** - * - * - *
-   * Name of the batch for the operation.
-   * 
- * - * string batch = 1; - * - * @return The bytes for batch. - */ - com.google.protobuf.ByteString getBatchBytes(); - - /** - * - * - *
-   * Batch UUID for the operation.
-   * 
- * - * string batch_uuid = 2; - * - * @return The batchUuid. - */ - java.lang.String getBatchUuid(); - /** - * - * - *
-   * Batch UUID for the operation.
-   * 
- * - * string batch_uuid = 2; - * - * @return The bytes for batchUuid. - */ - com.google.protobuf.ByteString getBatchUuidBytes(); - - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * The time when the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return Whether the doneTime field is set. - */ - boolean hasDoneTime(); - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - * - * @return The doneTime. - */ - com.google.protobuf.Timestamp getDoneTime(); - /** - * - * - *
-   * The time when the operation finished.
-   * 
- * - * .google.protobuf.Timestamp done_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getDoneTimeOrBuilder(); - - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The enum numeric value on the wire for operationType. - */ - int getOperationTypeValue(); - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6; - * - * - * @return The operationType. - */ - com.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType getOperationType(); - - /** - * - * - *
-   * Short description of the operation.
-   * 
- * - * string description = 7; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Short description of the operation.
-   * 
- * - * string description = 7; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - int getLabelsCount(); - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Labels associated with the operation.
-   * 
- * - * map<string, string> labels = 8; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @return A list containing the warnings. - */ - java.util.List getWarningsList(); - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @return The count of warnings. - */ - int getWarningsCount(); - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - java.lang.String getWarnings(int index); - /** - * - * - *
-   * Warnings encountered during operation execution.
-   * 
- * - * repeated string warnings = 9; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - com.google.protobuf.ByteString getWarningsBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java deleted file mode 100644 index 1c5948fe..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchOrBuilder.java +++ /dev/null @@ -1,699 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface BatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Batch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The resource name of the batch.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The resource name of the batch.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. A batch UUID (Unique Universal Identifier). The service
-   * generates this value when it creates the batch.
-   * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uuid. - */ - java.lang.String getUuid(); - /** - * - * - *
-   * Output only. A batch UUID (Unique Universal Identifier). The service
-   * generates this value when it creates the batch.
-   * 
- * - * string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uuid. - */ - com.google.protobuf.ByteString getUuidBytes(); - - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time when the batch was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkBatch field is set. - */ - boolean hasPysparkBatch(); - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkBatch. - */ - com.google.cloud.dataproc.v1.PySparkBatch getPysparkBatch(); - /** - * - * - *
-   * Optional. PySpark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder getPysparkBatchOrBuilder(); - - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkBatch field is set. - */ - boolean hasSparkBatch(); - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkBatch. - */ - com.google.cloud.dataproc.v1.SparkBatch getSparkBatch(); - /** - * - * - *
-   * Optional. Spark batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkBatchOrBuilder getSparkBatchOrBuilder(); - - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRBatch field is set. - */ - boolean hasSparkRBatch(); - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRBatch. - */ - com.google.cloud.dataproc.v1.SparkRBatch getSparkRBatch(); - /** - * - * - *
-   * Optional. SparkR batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder getSparkRBatchOrBuilder(); - - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlBatch field is set. - */ - boolean hasSparkSqlBatch(); - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlBatch. - */ - com.google.cloud.dataproc.v1.SparkSqlBatch getSparkSqlBatch(); - /** - * - * - *
-   * Optional. SparkSql batch config.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder(); - - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the runtimeInfo field is set. - */ - boolean hasRuntimeInfo(); - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The runtimeInfo. - */ - com.google.cloud.dataproc.v1.RuntimeInfo getRuntimeInfo(); - /** - * - * - *
-   * Output only. Runtime information about batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder getRuntimeInfoOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the batch.
-   * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the batch.
-   * 
- * - * - * .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.Batch.State getState(); - - /** - * - * - *
-   * Output only. Batch state details, such as a failure
-   * description if the state is `FAILED`.
-   * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stateMessage. - */ - java.lang.String getStateMessage(); - /** - * - * - *
-   * Output only. Batch state details, such as a failure
-   * description if the state is `FAILED`.
-   * 
- * - * string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stateMessage. - */ - com.google.protobuf.ByteString getStateMessageBytes(); - - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateTime field is set. - */ - boolean hasStateTime(); - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateTime. - */ - com.google.protobuf.Timestamp getStateTime(); - /** - * - * - *
-   * Output only. The time when the batch entered a current state.
-   * 
- * - * .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The email address of the user who created the batch.
-   * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The creator. - */ - java.lang.String getCreator(); - /** - * - * - *
-   * Output only. The email address of the user who created the batch.
-   * 
- * - * string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for creator. - */ - com.google.protobuf.ByteString getCreatorBytes(); - - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this batch.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a batch.
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the runtimeConfig field is set. - */ - boolean hasRuntimeConfig(); - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The runtimeConfig. - */ - com.google.cloud.dataproc.v1.RuntimeConfig getRuntimeConfig(); - /** - * - * - *
-   * Optional. Runtime configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder getRuntimeConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the environmentConfig field is set. - */ - boolean hasEnvironmentConfig(); - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The environmentConfig. - */ - com.google.cloud.dataproc.v1.EnvironmentConfig getEnvironmentConfig(); - /** - * - * - *
-   * Optional. Environment configuration for the batch execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder(); - - /** - * - * - *
-   * Output only. The resource name of the operation associated with this batch.
-   * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operation. - */ - java.lang.String getOperation(); - /** - * - * - *
-   * Output only. The resource name of the operation associated with this batch.
-   * 
- * - * string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operation. - */ - com.google.protobuf.ByteString getOperationBytes(); - - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStateHistoryList(); - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.Batch.StateHistory getStateHistory(int index); - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStateHistoryCount(); - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStateHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. Historical state information for the batch.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder getStateHistoryOrBuilder(int index); - - public com.google.cloud.dataproc.v1.Batch.BatchConfigCase getBatchConfigCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java deleted file mode 100644 index aea24497..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BatchesProto.java +++ /dev/null @@ -1,357 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public final class BatchesProto { - private BatchesProto() {} - - 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_dataproc_v1_CreateBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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/dataproc/v1/batches.proto" - + "\022\030google.cloud.dataproc.v1\032\034google/api/a" - + "nnotations.proto\032\027google/api/client.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032%google/cloud/data" - + "proc/v1/shared.proto\032#google/longrunning" - + "/operations.proto\032\033google/protobuf/empty" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\260\001\n\022CreateBatchRequest\0225\n\006parent\030\001 \001(\tB%" - + "\340A\002\372A\037\022\035dataproc.googleapis.com/Batch\0223\n" - + "\005batch\030\002 \001(\0132\037.google.cloud.dataproc.v1." - + "BatchB\003\340A\002\022\025\n\010batch_id\030\003 \001(\tB\003\340A\001\022\027\n\nreq" - + "uest_id\030\004 \001(\tB\003\340A\001\"F\n\017GetBatchRequest\0223\n" - + "\004name\030\001 \001(\tB%\340A\002\372A\037\n\035dataproc.googleapis" - + ".com/Batch\"|\n\022ListBatchesRequest\0225\n\006pare" - + "nt\030\001 \001(\tB%\340A\002\372A\037\022\035dataproc.googleapis.co" - + "m/Batch\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"`\n\023ListBatchesResponse\022" - + "0\n\007batches\030\001 \003(\0132\037.google.cloud.dataproc" - + ".v1.Batch\022\027\n\017next_page_token\030\002 \001(\t\"I\n\022De" - + "leteBatchRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "dataproc.googleapis.com/Batch\"\310\n\n\005Batch\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n\004uuid\030\002 \001(\tB\003\340A\003\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022D\n\rpyspark_batch\030\004 \001(\0132&.goo" - + "gle.cloud.dataproc.v1.PySparkBatchB\003\340A\001H" - + "\000\022@\n\013spark_batch\030\005 \001(\0132$.google.cloud.da" - + "taproc.v1.SparkBatchB\003\340A\001H\000\022C\n\rspark_r_b" - + "atch\030\006 \001(\0132%.google.cloud.dataproc.v1.Sp" - + "arkRBatchB\003\340A\001H\000\022G\n\017spark_sql_batch\030\007 \001(" - + "\0132\'.google.cloud.dataproc.v1.SparkSqlBat" - + "chB\003\340A\001H\000\022@\n\014runtime_info\030\010 \001(\0132%.google" - + ".cloud.dataproc.v1.RuntimeInfoB\003\340A\003\0229\n\005s" - + "tate\030\t \001(\0162%.google.cloud.dataproc.v1.Ba" - + "tch.StateB\003\340A\003\022\032\n\rstate_message\030\n \001(\tB\003\340" - + "A\003\0223\n\nstate_time\030\013 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\024\n\007creator\030\014 \001(\tB\003\340A\003\022@\n" - + "\006labels\030\r \003(\0132+.google.cloud.dataproc.v1" - + ".Batch.LabelsEntryB\003\340A\001\022D\n\016runtime_confi" - + "g\030\016 \001(\0132\'.google.cloud.dataproc.v1.Runti" - + "meConfigB\003\340A\001\022L\n\022environment_config\030\017 \001(" - + "\0132+.google.cloud.dataproc.v1.Environment" - + "ConfigB\003\340A\001\022\026\n\toperation\030\020 \001(\tB\003\340A\003\022H\n\rs" - + "tate_history\030\021 \003(\0132,.google.cloud.datapr" - + "oc.v1.Batch.StateHistoryB\003\340A\003\032\240\001\n\014StateH" - + "istory\0229\n\005state\030\001 \001(\0162%.google.cloud.dat" - + "aproc.v1.Batch.StateB\003\340A\003\022\032\n\rstate_messa" - + "ge\030\002 \001(\tB\003\340A\003\0229\n\020state_start_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDI" - + "NG\020\001\022\013\n\007RUNNING\020\002\022\016\n\nCANCELLING\020\003\022\r\n\tCAN" - + "CELLED\020\004\022\r\n\tSUCCEEDED\020\005\022\n\n\006FAILED\020\006:[\352AX" - + "\n\035dataproc.googleapis.com/Batch\0227project" - + "s/{project}/locations/{location}/batches" - + "/{batch}B\016\n\014batch_config\"\262\001\n\014PySparkBatc" - + "h\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004" - + "args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030\003 \003(" - + "\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026\n\tfi" - + "le_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006 \003(\t" - + "B\003\340A\001\"\265\001\n\nSparkBatch\022 \n\021main_jar_file_ur" - + "i\030\001 \001(\tB\003\340A\001H\000\022\031\n\nmain_class\030\002 \001(\tB\003\340A\001H" - + "\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 " - + "\003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014arch" - + "ive_uris\030\006 \003(\tB\003\340A\001B\010\n\006driver\"q\n\013SparkRB" - + "atch\022\034\n\017main_r_file_uri\030\001 \001(\tB\003\340A\002\022\021\n\004ar" - + "gs\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(\tB\003\340A\001\022\031\n" - + "\014archive_uris\030\004 \003(\tB\003\340A\001\"\332\001\n\rSparkSqlBat" - + "ch\022\033\n\016query_file_uri\030\001 \001(\tB\003\340A\002\022Y\n\017query" - + "_variables\030\002 \003(\0132;.google.cloud.dataproc" - + ".v1.SparkSqlBatch.QueryVariablesEntryB\003\340" - + "A\001\022\032\n\rjar_file_uris\030\003 \003(\tB\003\340A\001\0325\n\023QueryV" - + "ariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\0012\235\006\n\017BatchController\022\352\001\n\013CreateBatc" - + "h\022,.google.cloud.dataproc.v1.CreateBatch" - + "Request\032\035.google.longrunning.Operation\"\215" - + "\001\202\323\344\223\0024\"+/v1/{parent=projects/*/location" - + "s/*}/batches:\005batch\332A\025parent,batch,batch" - + "_id\312A8\n\005Batch\022/google.cloud.dataproc.v1." - + "BatchOperationMetadata\022\222\001\n\010GetBatch\022).go" - + "ogle.cloud.dataproc.v1.GetBatchRequest\032\037" - + ".google.cloud.dataproc.v1.Batch\":\202\323\344\223\002-\022" - + "+/v1/{name=projects/*/locations/*/batche" - + "s/*}\332A\004name\022\250\001\n\013ListBatches\022,.google.clo" - + "ud.dataproc.v1.ListBatchesRequest\032-.goog" - + "le.cloud.dataproc.v1.ListBatchesResponse" - + "\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/locatio" - + "ns/*}/batches\332A\006parent\022\217\001\n\013DeleteBatch\022," - + ".google.cloud.dataproc.v1.DeleteBatchReq" - + "uest\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v" - + "1/{name=projects/*/locations/*/batches/*" - + "}\332A\004name\032K\312A\027dataproc.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformBp\n\034com.google.cloud.dataproc.v1B\014B" - + "atchesProtoP\001Z@google.golang.org/genprot" - + "o/googleapis/cloud/dataproc/v1;dataprocb" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor, - new java.lang.String[] { - "Parent", "Batch", "BatchId", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor, - new java.lang.String[] { - "Batches", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_dataproc_v1_Batch_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_Batch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_descriptor, - new java.lang.String[] { - "Name", - "Uuid", - "CreateTime", - "PysparkBatch", - "SparkBatch", - "SparkRBatch", - "SparkSqlBatch", - "RuntimeInfo", - "State", - "StateMessage", - "StateTime", - "Creator", - "Labels", - "RuntimeConfig", - "EnvironmentConfig", - "Operation", - "StateHistory", - "BatchConfig", - }); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_StateHistory_descriptor, - new java.lang.String[] { - "State", "StateMessage", "StateStartTime", - }); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Batch_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Batch_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor, - new java.lang.String[] { - "MainPythonFileUri", - "Args", - "PythonFileUris", - "JarFileUris", - "FileUris", - "ArchiveUris", - }); - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor, - new java.lang.String[] { - "MainRFileUri", "Args", "FileUris", "ArchiveUris", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor, - new java.lang.String[] { - "QueryFileUri", "QueryVariables", "JarFileUris", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_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.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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java deleted file mode 100644 index dc9d2d46..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java +++ /dev/null @@ -1,977 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to cancel a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} - */ -public final class CancelJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CancelJobRequest) - CancelJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CancelJobRequest.newBuilder() to construct. - private CancelJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CancelJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CancelJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, - com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.CancelJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.CancelJobRequest other = - (com.google.cloud.dataproc.v1.CancelJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest 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.dataproc.v1.CancelJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest 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.dataproc.v1.CancelJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest 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.dataproc.v1.CancelJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to cancel a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CancelJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CancelJobRequest) - com.google.cloud.dataproc.v1.CancelJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CancelJobRequest.class, - com.google.cloud.dataproc.v1.CancelJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.CancelJobRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CancelJobRequest build() { - com.google.cloud.dataproc.v1.CancelJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CancelJobRequest buildPartial() { - com.google.cloud.dataproc.v1.CancelJobRequest result = - new com.google.cloud.dataproc.v1.CancelJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1.CancelJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CancelJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.CancelJobRequest other) { - if (other == com.google.cloud.dataproc.v1.CancelJobRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1.CancelJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CancelJobRequest) - private static final com.google.cloud.dataproc.v1.CancelJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CancelJobRequest(); - } - - public static com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CancelJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java deleted file mode 100644 index 51f87edb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface CancelJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CancelJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java deleted file mode 100644 index 90cdc6c4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java +++ /dev/null @@ -1,3201 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Describes the identifying information, config, and status of
- * a Dataproc cluster
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Cluster} - */ -public final class Cluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Cluster) - ClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Cluster.newBuilder() to construct. - private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Cluster() { - projectId_ = ""; - clusterName_ = ""; - statusHistory_ = java.util.Collections.emptyList(); - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Cluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Cluster.class, - com.google.cloud.dataproc.v1.Cluster.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.ClusterConfig config_; - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualClusterConfig field is set. - */ - @java.lang.Override - public boolean hasVirtualClusterConfig() { - return virtualClusterConfig_ != null; - } - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; - } - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder - getVirtualClusterConfigOrBuilder() { - return getVirtualClusterConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 8; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int STATUS_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.ClusterStatus status_; - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 7; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index) { - return statusHistory_.get(index); - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 6; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRICS_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - @java.lang.Override - public boolean hasMetrics() { - return metrics_ != null; - } - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; - } - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { - return getMetrics(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (config_ != null) { - output.writeMessage(3, getConfig()); - } - if (status_ != null) { - output.writeMessage(4, getStatus()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clusterUuid_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(7, statusHistory_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (metrics_ != null) { - output.writeMessage(9, getMetrics()); - } - if (virtualClusterConfig_ != null) { - output.writeMessage(10, getVirtualClusterConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStatus()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clusterUuid_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, statusHistory_.get(i)); - } - 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(8, labels__); - } - if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetrics()); - } - if (virtualClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getVirtualClusterConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.Cluster)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.Cluster other = (com.google.cloud.dataproc.v1.Cluster) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (hasVirtualClusterConfig() != other.hasVirtualClusterConfig()) return false; - if (hasVirtualClusterConfig()) { - if (!getVirtualClusterConfig().equals(other.getVirtualClusterConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasMetrics() != other.hasMetrics()) return false; - if (hasMetrics()) { - if (!getMetrics().equals(other.getMetrics())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (hasVirtualClusterConfig()) { - hash = (37 * hash) + VIRTUAL_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVirtualClusterConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasMetrics()) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetrics().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Cluster 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.dataproc.v1.Cluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Cluster 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.dataproc.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Cluster 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.dataproc.v1.Cluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Describes the identifying information, config, and status of
-   * a Dataproc cluster
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Cluster) - com.google.cloud.dataproc.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Cluster.class, - com.google.cloud.dataproc.v1.Cluster.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.Cluster.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - clusterName_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfig_ = null; - } else { - virtualClusterConfig_ = null; - virtualClusterConfigBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - } else { - statusHistory_ = null; - statusHistoryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - clusterUuid_ = ""; - - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; - metricsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster build() { - com.google.cloud.dataproc.v1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster buildPartial() { - com.google.cloud.dataproc.v1.Cluster result = new com.google.cloud.dataproc.v1.Cluster(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.clusterName_ = clusterName_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - if (virtualClusterConfigBuilder_ == null) { - result.virtualClusterConfig_ = virtualClusterConfig_; - } else { - result.virtualClusterConfig_ = virtualClusterConfigBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - result.clusterUuid_ = clusterUuid_; - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.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.dataproc.v1.Cluster) { - return mergeFrom((com.google.cloud.dataproc.v1.Cluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.Cluster other) { - if (other == com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.hasVirtualClusterConfig()) { - mergeVirtualClusterConfig(other.getVirtualClusterConfig()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000002); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasMetrics()) { - mergeMetrics(other.getMetrics()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 50: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - com.google.cloud.dataproc.v1.ClusterStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterStatus.parser(), extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: - { - input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage( - getVirtualClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Cloud Platform project ID that the cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name. Cluster names within a project must be
-     * unique. Names of deleted clusters can be reused.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } - } - /** - * - * - *
-     * Optional. The cluster config for a cluster of Compute Engine Instances.
-     * Note that Dataproc may set default values, and values may change
-     * when clusters are updated.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - private com.google.cloud.dataproc.v1.VirtualClusterConfig virtualClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> - virtualClusterConfigBuilder_; - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualClusterConfig field is set. - */ - public boolean hasVirtualClusterConfig() { - return virtualClusterConfigBuilder_ != null || virtualClusterConfig_ != null; - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualClusterConfig. - */ - public com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig() { - if (virtualClusterConfigBuilder_ == null) { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; - } else { - return virtualClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualClusterConfig( - com.google.cloud.dataproc.v1.VirtualClusterConfig value) { - if (virtualClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - virtualClusterConfig_ = value; - onChanged(); - } else { - virtualClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualClusterConfig( - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder builderForValue) { - if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - virtualClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeVirtualClusterConfig( - com.google.cloud.dataproc.v1.VirtualClusterConfig value) { - if (virtualClusterConfigBuilder_ == null) { - if (virtualClusterConfig_ != null) { - virtualClusterConfig_ = - com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder(virtualClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - virtualClusterConfig_ = value; - } - onChanged(); - } else { - virtualClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearVirtualClusterConfig() { - if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfig_ = null; - onChanged(); - } else { - virtualClusterConfig_ = null; - virtualClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder - getVirtualClusterConfigBuilder() { - - onChanged(); - return getVirtualClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder - getVirtualClusterConfigOrBuilder() { - if (virtualClusterConfigBuilder_ != null) { - return virtualClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return virtualClusterConfig_ == null - ? com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance() - : virtualClusterConfig_; - } - } - /** - * - * - *
-     * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-     * does not directly control the underlying compute resources, for example,
-     * when creating a [Dataproc-on-GKE
-     * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-     * Note that Dataproc may set default values, and values may change when
-     * clusters are updated. Exactly one of config or virtualClusterConfig must be
-     * specified.
-     * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder> - getVirtualClusterConfigFieldBuilder() { - if (virtualClusterConfigBuilder_ == null) { - virtualClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.VirtualClusterConfig, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder, - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder>( - getVirtualClusterConfig(), getParentForChildren(), isClean()); - virtualClusterConfig_ = null; - } - return virtualClusterConfigBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a cluster.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1.ClusterStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1.ClusterStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Cluster status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - statusHistory_ = - new java.util.ArrayList(statusHistory_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.ClusterStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder getStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterStatus.Builder addStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous cluster status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterStatus, - com.google.cloud.dataproc.v1.ClusterStatus.Builder, - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-     * generates this value when it creates the cluster.
-     * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterMetrics metrics_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> - metricsBuilder_; - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - public com.google.cloud.dataproc.v1.ClusterMetrics getMetrics() { - if (metricsBuilder_ == null) { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; - } else { - return metricsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metrics_ = value; - onChanged(); - } else { - metricsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setMetrics(com.google.cloud.dataproc.v1.ClusterMetrics.Builder builderForValue) { - if (metricsBuilder_ == null) { - metrics_ = builderForValue.build(); - onChanged(); - } else { - metricsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeMetrics(com.google.cloud.dataproc.v1.ClusterMetrics value) { - if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = - com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder(metrics_) - .mergeFrom(value) - .buildPartial(); - } else { - metrics_ = value; - } - onChanged(); - } else { - metricsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; - onChanged(); - } else { - metrics_ = null; - metricsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterMetrics.Builder getMetricsBuilder() { - - onChanged(); - return getMetricsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilder(); - } else { - return metrics_ == null - ? com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance() - : metrics_; - } - } - /** - * - * - *
-     * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-     * **Beta Feature**: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterMetrics, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder, - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder>( - getMetrics(), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - @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.dataproc.v1.Cluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Cluster) - private static final com.google.cloud.dataproc.v1.Cluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Cluster(); - } - - public static com.google.cloud.dataproc.v1.Cluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java deleted file mode 100644 index 303fd32c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java +++ /dev/null @@ -1,5338 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The cluster config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} - */ -public final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterConfig) - ClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterConfig.newBuilder() to construct. - private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterConfig() { - configBucket_ = ""; - tempBucket_ = ""; - initializationActions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, - com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); - } - - public static final int CONFIG_BUCKET_FIELD_NUMBER = 1; - private volatile java.lang.Object configBucket_; - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - @java.lang.Override - public java.lang.String getConfigBucket() { - java.lang.Object ref = configBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConfigBucketBytes() { - java.lang.Object ref = configBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEMP_BUCKET_FIELD_NUMBER = 2; - private volatile java.lang.Object tempBucket_; - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - @java.lang.Override - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCE_CLUSTER_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGceClusterConfig() { - return gceClusterConfig_ != null; - } - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { - return getGceClusterConfig(); - } - - public static final int MASTER_CONFIG_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - @java.lang.Override - public boolean hasMasterConfig() { - return masterConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { - return getMasterConfig(); - } - - public static final int WORKER_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - @java.lang.Override - public boolean hasWorkerConfig() { - return workerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { - return getWorkerConfig(); - } - - public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - @java.lang.Override - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - return getSecondaryWorkerConfig(); - } - - public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 13; - private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - @java.lang.Override - public boolean hasSoftwareConfig() { - return softwareConfig_ != null; - } - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { - return getSoftwareConfig(); - } - - public static final int INITIALIZATION_ACTIONS_FIELD_NUMBER = 11; - private java.util.List - initializationActions_; - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getInitializationActionsList() { - return initializationActions_; - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getInitializationActionsOrBuilderList() { - return initializationActions_; - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getInitializationActionsCount() { - return initializationActions_.size(); - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index) { - return initializationActions_.get(index); - } - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { - return initializationActions_.get(index); - } - - public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - @java.lang.Override - public boolean hasEncryptionConfig() { - return encryptionConfig_ != null; - } - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { - return getEncryptionConfig(); - } - - public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 18; - private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - @java.lang.Override - public boolean hasAutoscalingConfig() { - return autoscalingConfig_ != null; - } - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { - return getAutoscalingConfig(); - } - - public static final int SECURITY_CONFIG_FIELD_NUMBER = 16; - private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - @java.lang.Override - public boolean hasSecurityConfig() { - return securityConfig_ != null; - } - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; - } - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { - return getSecurityConfig(); - } - - public static final int LIFECYCLE_CONFIG_FIELD_NUMBER = 17; - private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - @java.lang.Override - public boolean hasLifecycleConfig() { - return lifecycleConfig_ != null; - } - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { - return getLifecycleConfig(); - } - - public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 19; - private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - @java.lang.Override - public boolean hasEndpointConfig() { - return endpointConfig_ != null; - } - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { - return getEndpointConfig(); - } - - public static final int METASTORE_CONFIG_FIELD_NUMBER = 20; - private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - @java.lang.Override - public boolean hasMetastoreConfig() { - return metastoreConfig_ != null; - } - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { - return getMetastoreConfig(); - } - - public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23; - private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dataprocMetricConfig field is set. - */ - @java.lang.Override - public boolean hasDataprocMetricConfig() { - return dataprocMetricConfig_ != null; - } - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataprocMetricConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; - } - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder - getDataprocMetricConfigOrBuilder() { - return getDataprocMetricConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(configBucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configBucket_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tempBucket_); - } - if (gceClusterConfig_ != null) { - output.writeMessage(8, getGceClusterConfig()); - } - if (masterConfig_ != null) { - output.writeMessage(9, getMasterConfig()); - } - if (workerConfig_ != null) { - output.writeMessage(10, getWorkerConfig()); - } - for (int i = 0; i < initializationActions_.size(); i++) { - output.writeMessage(11, initializationActions_.get(i)); - } - if (secondaryWorkerConfig_ != null) { - output.writeMessage(12, getSecondaryWorkerConfig()); - } - if (softwareConfig_ != null) { - output.writeMessage(13, getSoftwareConfig()); - } - if (encryptionConfig_ != null) { - output.writeMessage(15, getEncryptionConfig()); - } - if (securityConfig_ != null) { - output.writeMessage(16, getSecurityConfig()); - } - if (lifecycleConfig_ != null) { - output.writeMessage(17, getLifecycleConfig()); - } - if (autoscalingConfig_ != null) { - output.writeMessage(18, getAutoscalingConfig()); - } - if (endpointConfig_ != null) { - output.writeMessage(19, getEndpointConfig()); - } - if (metastoreConfig_ != null) { - output.writeMessage(20, getMetastoreConfig()); - } - if (dataprocMetricConfig_ != null) { - output.writeMessage(23, getDataprocMetricConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configBucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configBucket_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tempBucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tempBucket_); - } - if (gceClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGceClusterConfig()); - } - if (masterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMasterConfig()); - } - if (workerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWorkerConfig()); - } - for (int i = 0; i < initializationActions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, initializationActions_.get(i)); - } - if (secondaryWorkerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSecondaryWorkerConfig()); - } - if (softwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSoftwareConfig()); - } - if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig()); - } - if (securityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSecurityConfig()); - } - if (lifecycleConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLifecycleConfig()); - } - if (autoscalingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAutoscalingConfig()); - } - if (endpointConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getEndpointConfig()); - } - if (metastoreConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMetastoreConfig()); - } - if (dataprocMetricConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterConfig other = - (com.google.cloud.dataproc.v1.ClusterConfig) obj; - - if (!getConfigBucket().equals(other.getConfigBucket())) return false; - if (!getTempBucket().equals(other.getTempBucket())) return false; - if (hasGceClusterConfig() != other.hasGceClusterConfig()) return false; - if (hasGceClusterConfig()) { - if (!getGceClusterConfig().equals(other.getGceClusterConfig())) return false; - } - if (hasMasterConfig() != other.hasMasterConfig()) return false; - if (hasMasterConfig()) { - if (!getMasterConfig().equals(other.getMasterConfig())) return false; - } - if (hasWorkerConfig() != other.hasWorkerConfig()) return false; - if (hasWorkerConfig()) { - if (!getWorkerConfig().equals(other.getWorkerConfig())) return false; - } - if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false; - if (hasSecondaryWorkerConfig()) { - if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false; - } - if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false; - if (hasSoftwareConfig()) { - if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false; - } - if (!getInitializationActionsList().equals(other.getInitializationActionsList())) return false; - if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; - if (hasEncryptionConfig()) { - if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; - } - if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false; - if (hasAutoscalingConfig()) { - if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false; - } - if (hasSecurityConfig() != other.hasSecurityConfig()) return false; - if (hasSecurityConfig()) { - if (!getSecurityConfig().equals(other.getSecurityConfig())) return false; - } - if (hasLifecycleConfig() != other.hasLifecycleConfig()) return false; - if (hasLifecycleConfig()) { - if (!getLifecycleConfig().equals(other.getLifecycleConfig())) return false; - } - if (hasEndpointConfig() != other.hasEndpointConfig()) return false; - if (hasEndpointConfig()) { - if (!getEndpointConfig().equals(other.getEndpointConfig())) return false; - } - if (hasMetastoreConfig() != other.hasMetastoreConfig()) return false; - if (hasMetastoreConfig()) { - if (!getMetastoreConfig().equals(other.getMetastoreConfig())) return false; - } - if (hasDataprocMetricConfig() != other.hasDataprocMetricConfig()) return false; - if (hasDataprocMetricConfig()) { - if (!getDataprocMetricConfig().equals(other.getDataprocMetricConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONFIG_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getConfigBucket().hashCode(); - hash = (37 * hash) + TEMP_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getTempBucket().hashCode(); - if (hasGceClusterConfig()) { - hash = (37 * hash) + GCE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGceClusterConfig().hashCode(); - } - if (hasMasterConfig()) { - hash = (37 * hash) + MASTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMasterConfig().hashCode(); - } - if (hasWorkerConfig()) { - hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkerConfig().hashCode(); - } - if (hasSecondaryWorkerConfig()) { - hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryWorkerConfig().hashCode(); - } - if (hasSoftwareConfig()) { - hash = (37 * hash) + SOFTWARE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSoftwareConfig().hashCode(); - } - if (getInitializationActionsCount() > 0) { - hash = (37 * hash) + INITIALIZATION_ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getInitializationActionsList().hashCode(); - } - if (hasEncryptionConfig()) { - hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEncryptionConfig().hashCode(); - } - if (hasAutoscalingConfig()) { - hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAutoscalingConfig().hashCode(); - } - if (hasSecurityConfig()) { - hash = (37 * hash) + SECURITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecurityConfig().hashCode(); - } - if (hasLifecycleConfig()) { - hash = (37 * hash) + LIFECYCLE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLifecycleConfig().hashCode(); - } - if (hasEndpointConfig()) { - hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEndpointConfig().hashCode(); - } - if (hasMetastoreConfig()) { - hash = (37 * hash) + METASTORE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMetastoreConfig().hashCode(); - } - if (hasDataprocMetricConfig()) { - hash = (37 * hash) + DATAPROC_METRIC_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDataprocMetricConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig 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.dataproc.v1.ClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig 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.dataproc.v1.ClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig 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.dataproc.v1.ClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 cluster config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterConfig) - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterConfig.class, - com.google.cloud.dataproc.v1.ClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - configBucket_ = ""; - - tempBucket_ = ""; - - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = null; - } else { - gceClusterConfig_ = null; - gceClusterConfigBuilder_ = null; - } - if (masterConfigBuilder_ == null) { - masterConfig_ = null; - } else { - masterConfig_ = null; - masterConfigBuilder_ = null; - } - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - if (softwareConfigBuilder_ == null) { - softwareConfig_ = null; - } else { - softwareConfig_ = null; - softwareConfigBuilder_ = null; - } - if (initializationActionsBuilder_ == null) { - initializationActions_ = java.util.Collections.emptyList(); - } else { - initializationActions_ = null; - initializationActionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = null; - } else { - encryptionConfig_ = null; - encryptionConfigBuilder_ = null; - } - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = null; - } else { - autoscalingConfig_ = null; - autoscalingConfigBuilder_ = null; - } - if (securityConfigBuilder_ == null) { - securityConfig_ = null; - } else { - securityConfig_ = null; - securityConfigBuilder_ = null; - } - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = null; - } else { - lifecycleConfig_ = null; - lifecycleConfigBuilder_ = null; - } - if (endpointConfigBuilder_ == null) { - endpointConfig_ = null; - } else { - endpointConfig_ = null; - endpointConfigBuilder_ = null; - } - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = null; - } else { - metastoreConfig_ = null; - metastoreConfigBuilder_ = null; - } - if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfig_ = null; - } else { - dataprocMetricConfig_ = null; - dataprocMetricConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig build() { - com.google.cloud.dataproc.v1.ClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.ClusterConfig result = - new com.google.cloud.dataproc.v1.ClusterConfig(this); - int from_bitField0_ = bitField0_; - result.configBucket_ = configBucket_; - result.tempBucket_ = tempBucket_; - if (gceClusterConfigBuilder_ == null) { - result.gceClusterConfig_ = gceClusterConfig_; - } else { - result.gceClusterConfig_ = gceClusterConfigBuilder_.build(); - } - if (masterConfigBuilder_ == null) { - result.masterConfig_ = masterConfig_; - } else { - result.masterConfig_ = masterConfigBuilder_.build(); - } - if (workerConfigBuilder_ == null) { - result.workerConfig_ = workerConfig_; - } else { - result.workerConfig_ = workerConfigBuilder_.build(); - } - if (secondaryWorkerConfigBuilder_ == null) { - result.secondaryWorkerConfig_ = secondaryWorkerConfig_; - } else { - result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build(); - } - if (softwareConfigBuilder_ == null) { - result.softwareConfig_ = softwareConfig_; - } else { - result.softwareConfig_ = softwareConfigBuilder_.build(); - } - if (initializationActionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = java.util.Collections.unmodifiableList(initializationActions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.initializationActions_ = initializationActions_; - } else { - result.initializationActions_ = initializationActionsBuilder_.build(); - } - if (encryptionConfigBuilder_ == null) { - result.encryptionConfig_ = encryptionConfig_; - } else { - result.encryptionConfig_ = encryptionConfigBuilder_.build(); - } - if (autoscalingConfigBuilder_ == null) { - result.autoscalingConfig_ = autoscalingConfig_; - } else { - result.autoscalingConfig_ = autoscalingConfigBuilder_.build(); - } - if (securityConfigBuilder_ == null) { - result.securityConfig_ = securityConfig_; - } else { - result.securityConfig_ = securityConfigBuilder_.build(); - } - if (lifecycleConfigBuilder_ == null) { - result.lifecycleConfig_ = lifecycleConfig_; - } else { - result.lifecycleConfig_ = lifecycleConfigBuilder_.build(); - } - if (endpointConfigBuilder_ == null) { - result.endpointConfig_ = endpointConfig_; - } else { - result.endpointConfig_ = endpointConfigBuilder_.build(); - } - if (metastoreConfigBuilder_ == null) { - result.metastoreConfig_ = metastoreConfig_; - } else { - result.metastoreConfig_ = metastoreConfigBuilder_.build(); - } - if (dataprocMetricConfigBuilder_ == null) { - result.dataprocMetricConfig_ = dataprocMetricConfig_; - } else { - result.dataprocMetricConfig_ = dataprocMetricConfigBuilder_.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.dataproc.v1.ClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance()) return this; - if (!other.getConfigBucket().isEmpty()) { - configBucket_ = other.configBucket_; - onChanged(); - } - if (!other.getTempBucket().isEmpty()) { - tempBucket_ = other.tempBucket_; - onChanged(); - } - if (other.hasGceClusterConfig()) { - mergeGceClusterConfig(other.getGceClusterConfig()); - } - if (other.hasMasterConfig()) { - mergeMasterConfig(other.getMasterConfig()); - } - if (other.hasWorkerConfig()) { - mergeWorkerConfig(other.getWorkerConfig()); - } - if (other.hasSecondaryWorkerConfig()) { - mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig()); - } - if (other.hasSoftwareConfig()) { - mergeSoftwareConfig(other.getSoftwareConfig()); - } - if (initializationActionsBuilder_ == null) { - if (!other.initializationActions_.isEmpty()) { - if (initializationActions_.isEmpty()) { - initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInitializationActionsIsMutable(); - initializationActions_.addAll(other.initializationActions_); - } - onChanged(); - } - } else { - if (!other.initializationActions_.isEmpty()) { - if (initializationActionsBuilder_.isEmpty()) { - initializationActionsBuilder_.dispose(); - initializationActionsBuilder_ = null; - initializationActions_ = other.initializationActions_; - bitField0_ = (bitField0_ & ~0x00000001); - initializationActionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInitializationActionsFieldBuilder() - : null; - } else { - initializationActionsBuilder_.addAllMessages(other.initializationActions_); - } - } - } - if (other.hasEncryptionConfig()) { - mergeEncryptionConfig(other.getEncryptionConfig()); - } - if (other.hasAutoscalingConfig()) { - mergeAutoscalingConfig(other.getAutoscalingConfig()); - } - if (other.hasSecurityConfig()) { - mergeSecurityConfig(other.getSecurityConfig()); - } - if (other.hasLifecycleConfig()) { - mergeLifecycleConfig(other.getLifecycleConfig()); - } - if (other.hasEndpointConfig()) { - mergeEndpointConfig(other.getEndpointConfig()); - } - if (other.hasMetastoreConfig()) { - mergeMetastoreConfig(other.getMetastoreConfig()); - } - if (other.hasDataprocMetricConfig()) { - mergeDataprocMetricConfig(other.getDataprocMetricConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - configBucket_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - tempBucket_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 66: - { - input.readMessage( - getGceClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getMasterConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - com.google.cloud.dataproc.v1.NodeInitializationAction m = - input.readMessage( - com.google.cloud.dataproc.v1.NodeInitializationAction.parser(), - extensionRegistry); - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(m); - } else { - initializationActionsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - input.readMessage( - getSecondaryWorkerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 122: - { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 122 - case 130: - { - input.readMessage(getSecurityConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 130 - case 138: - { - input.readMessage(getLifecycleConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 138 - case 146: - { - input.readMessage( - getAutoscalingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 146 - case 154: - { - input.readMessage(getEndpointConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 154 - case 162: - { - input.readMessage(getMetastoreConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 162 - case 186: - { - input.readMessage( - getDataprocMetricConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 186 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object configBucket_ = ""; - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - public java.lang.String getConfigBucket() { - java.lang.Object ref = configBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - configBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - public com.google.protobuf.ByteString getConfigBucketBytes() { - java.lang.Object ref = configBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - configBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The configBucket to set. - * @return This builder for chaining. - */ - public Builder setConfigBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - configBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearConfigBucket() { - - configBucket_ = getDefaultInstance().getConfigBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for configBucket to set. - * @return This builder for chaining. - */ - public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - configBucket_ = value; - onChanged(); - return this; - } - - private java.lang.Object tempBucket_ = ""; - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - public java.lang.String getTempBucket() { - java.lang.Object ref = tempBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tempBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - public com.google.protobuf.ByteString getTempBucketBytes() { - java.lang.Object ref = tempBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tempBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tempBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTempBucket() { - - tempBucket_ = getDefaultInstance().getTempBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-     * such as Spark and MapReduce history files.
-     * If you do not specify a temp bucket,
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's temp bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket. The default bucket has
-     * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-     * bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tempBucket to set. - * @return This builder for chaining. - */ - public Builder setTempBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tempBucket_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.GceClusterConfig gceClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> - gceClusterConfigBuilder_; - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - public boolean hasGceClusterConfig() { - return gceClusterConfigBuilder_ != null || gceClusterConfig_ != null; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - public com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig() { - if (gceClusterConfigBuilder_ == null) { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } else { - return gceClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { - if (gceClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gceClusterConfig_ = value; - onChanged(); - } else { - gceClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGceClusterConfig( - com.google.cloud.dataproc.v1.GceClusterConfig.Builder builderForValue) { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - gceClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1.GceClusterConfig value) { - if (gceClusterConfigBuilder_ == null) { - if (gceClusterConfig_ != null) { - gceClusterConfig_ = - com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder(gceClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - gceClusterConfig_ = value; - } - onChanged(); - } else { - gceClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGceClusterConfig() { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfig_ = null; - onChanged(); - } else { - gceClusterConfig_ = null; - gceClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GceClusterConfig.Builder getGceClusterConfigBuilder() { - - onChanged(); - return getGceClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder() { - if (gceClusterConfigBuilder_ != null) { - return gceClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return gceClusterConfig_ == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance() - : gceClusterConfig_; - } - } - /** - * - * - *
-     * Optional. The shared Compute Engine config settings for
-     * all instances in a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder> - getGceClusterConfigFieldBuilder() { - if (gceClusterConfigBuilder_ == null) { - gceClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GceClusterConfig, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder, - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder>( - getGceClusterConfig(), getParentForChildren(), isClean()); - gceClusterConfig_ = null; - } - return gceClusterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.InstanceGroupConfig masterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - masterConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - public boolean hasMasterConfig() { - return masterConfigBuilder_ != null || masterConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig() { - if (masterConfigBuilder_ == null) { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } else { - return masterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (masterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterConfig_ = value; - onChanged(); - } else { - masterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMasterConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { - if (masterConfigBuilder_ == null) { - masterConfig_ = builderForValue.build(); - onChanged(); - } else { - masterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeMasterConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (masterConfigBuilder_ == null) { - if (masterConfig_ != null) { - masterConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(masterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - masterConfig_ = value; - } - onChanged(); - } else { - masterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearMasterConfig() { - if (masterConfigBuilder_ == null) { - masterConfig_ = null; - onChanged(); - } else { - masterConfig_ = null; - masterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getMasterConfigBuilder() { - - onChanged(); - return getMasterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder() { - if (masterConfigBuilder_ != null) { - return masterConfigBuilder_.getMessageOrBuilder(); - } else { - return masterConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : masterConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's master instance.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - getMasterConfigFieldBuilder() { - if (masterConfigBuilder_ == null) { - masterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getMasterConfig(), getParentForChildren(), isClean()); - masterConfig_ = null; - } - return masterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.InstanceGroupConfig workerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - workerConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - public boolean hasWorkerConfig() { - return workerConfigBuilder_ != null || workerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig() { - if (workerConfigBuilder_ == null) { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } else { - return workerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (workerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerConfig_ = value; - onChanged(); - } else { - workerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { - if (workerConfigBuilder_ == null) { - workerConfig_ = builderForValue.build(); - onChanged(); - } else { - workerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeWorkerConfig(com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (workerConfigBuilder_ == null) { - if (workerConfig_ != null) { - workerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(workerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workerConfig_ = value; - } - onChanged(); - } else { - workerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearWorkerConfig() { - if (workerConfigBuilder_ == null) { - workerConfig_ = null; - onChanged(); - } else { - workerConfig_ = null; - workerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder getWorkerConfigBuilder() { - - onChanged(); - return getWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder() { - if (workerConfigBuilder_ != null) { - return workerConfigBuilder_.getMessageOrBuilder(); - } else { - return workerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : workerConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * the cluster's worker instances.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - getWorkerConfigFieldBuilder() { - if (workerConfigBuilder_ == null) { - workerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getWorkerConfig(), getParentForChildren(), isClean()); - workerConfig_ = null; - } - return workerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.InstanceGroupConfig secondaryWorkerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - secondaryWorkerConfigBuilder_; - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - public boolean hasSecondaryWorkerConfig() { - return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } else { - return secondaryWorkerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - secondaryWorkerConfig_ = value; - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder builderForValue) { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = builderForValue.build(); - onChanged(); - } else { - secondaryWorkerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecondaryWorkerConfig( - com.google.cloud.dataproc.v1.InstanceGroupConfig value) { - if (secondaryWorkerConfigBuilder_ == null) { - if (secondaryWorkerConfig_ != null) { - secondaryWorkerConfig_ = - com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder(secondaryWorkerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - secondaryWorkerConfig_ = value; - } - onChanged(); - } else { - secondaryWorkerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecondaryWorkerConfig() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfig_ = null; - onChanged(); - } else { - secondaryWorkerConfig_ = null; - secondaryWorkerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder - getSecondaryWorkerConfigBuilder() { - - onChanged(); - return getSecondaryWorkerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder - getSecondaryWorkerConfigOrBuilder() { - if (secondaryWorkerConfigBuilder_ != null) { - return secondaryWorkerConfigBuilder_.getMessageOrBuilder(); - } else { - return secondaryWorkerConfig_ == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance() - : secondaryWorkerConfig_; - } - } - /** - * - * - *
-     * Optional. The Compute Engine config settings for
-     * a cluster's secondary worker instances
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder> - getSecondaryWorkerConfigFieldBuilder() { - if (secondaryWorkerConfigBuilder_ == null) { - secondaryWorkerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.InstanceGroupConfig, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder, - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder>( - getSecondaryWorkerConfig(), getParentForChildren(), isClean()); - secondaryWorkerConfig_ = null; - } - return secondaryWorkerConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.SoftwareConfig softwareConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> - softwareConfigBuilder_; - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - public boolean hasSoftwareConfig() { - return softwareConfigBuilder_ != null || softwareConfig_ != null; - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - public com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig() { - if (softwareConfigBuilder_ == null) { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } else { - return softwareConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { - if (softwareConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - softwareConfig_ = value; - onChanged(); - } else { - softwareConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSoftwareConfig( - com.google.cloud.dataproc.v1.SoftwareConfig.Builder builderForValue) { - if (softwareConfigBuilder_ == null) { - softwareConfig_ = builderForValue.build(); - onChanged(); - } else { - softwareConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSoftwareConfig(com.google.cloud.dataproc.v1.SoftwareConfig value) { - if (softwareConfigBuilder_ == null) { - if (softwareConfig_ != null) { - softwareConfig_ = - com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder(softwareConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - softwareConfig_ = value; - } - onChanged(); - } else { - softwareConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSoftwareConfig() { - if (softwareConfigBuilder_ == null) { - softwareConfig_ = null; - onChanged(); - } else { - softwareConfig_ = null; - softwareConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SoftwareConfig.Builder getSoftwareConfigBuilder() { - - onChanged(); - return getSoftwareConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { - if (softwareConfigBuilder_ != null) { - return softwareConfigBuilder_.getMessageOrBuilder(); - } else { - return softwareConfig_ == null - ? com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance() - : softwareConfig_; - } - } - /** - * - * - *
-     * Optional. The config settings for cluster software.
-     * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder> - getSoftwareConfigFieldBuilder() { - if (softwareConfigBuilder_ == null) { - softwareConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SoftwareConfig, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder, - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder>( - getSoftwareConfig(), getParentForChildren(), isClean()); - softwareConfig_ = null; - } - return softwareConfigBuilder_; - } - - private java.util.List - initializationActions_ = java.util.Collections.emptyList(); - - private void ensureInitializationActionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - initializationActions_ = - new java.util.ArrayList( - initializationActions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> - initializationActionsBuilder_; - - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getInitializationActionsList() { - if (initializationActionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(initializationActions_); - } else { - return initializationActionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getInitializationActionsCount() { - if (initializationActionsBuilder_ == null) { - return initializationActions_.size(); - } else { - return initializationActionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions( - int index) { - if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); - } else { - return initializationActionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInitializationActions( - int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.set(index, value); - onChanged(); - } else { - initializationActionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInitializationActions( - int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.set(index, builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - com.google.cloud.dataproc.v1.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.add(value); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - int index, com.google.cloud.dataproc.v1.NodeInitializationAction value) { - if (initializationActionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInitializationActionsIsMutable(); - initializationActions_.add(index, value); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addInitializationActions( - int index, com.google.cloud.dataproc.v1.NodeInitializationAction.Builder builderForValue) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.add(index, builderForValue.build()); - onChanged(); - } else { - initializationActionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllInitializationActions( - java.lang.Iterable - values) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initializationActions_); - onChanged(); - } else { - initializationActionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearInitializationActions() { - if (initializationActionsBuilder_ == null) { - initializationActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - initializationActionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeInitializationActions(int index) { - if (initializationActionsBuilder_ == null) { - ensureInitializationActionsIsMutable(); - initializationActions_.remove(index); - onChanged(); - } else { - initializationActionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - getInitializationActionsBuilder(int index) { - return getInitializationActionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder - getInitializationActionsOrBuilder(int index) { - if (initializationActionsBuilder_ == null) { - return initializationActions_.get(index); - } else { - return initializationActionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getInitializationActionsOrBuilderList() { - if (initializationActionsBuilder_ != null) { - return initializationActionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(initializationActions_); - } - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - addInitializationActionsBuilder() { - return getInitializationActionsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeInitializationAction.Builder - addInitializationActionsBuilder(int index) { - return getInitializationActionsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Commands to execute on each node after config is
-     * completed. By default, executables are run on master and all worker nodes.
-     * You can test a node's `role` metadata to run an executable on
-     * a master or worker node, as shown below using `curl` (you can also use
-     * `wget`):
-     *     ROLE=$(curl -H Metadata-Flavor:Google
-     *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-     *     if [[ "${ROLE}" == 'Master' ]]; then
-     *       ... master specific actions ...
-     *     else
-     *       ... worker specific actions ...
-     *     fi
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getInitializationActionsBuilderList() { - return getInitializationActionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder> - getInitializationActionsFieldBuilder() { - if (initializationActionsBuilder_ == null) { - initializationActionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeInitializationAction, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder, - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder>( - initializationActions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - initializationActions_ = null; - } - return initializationActionsBuilder_; - } - - private com.google.cloud.dataproc.v1.EncryptionConfig encryptionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> - encryptionConfigBuilder_; - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - public boolean hasEncryptionConfig() { - return encryptionConfigBuilder_ != null || encryptionConfig_ != null; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - public com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig() { - if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } else { - return encryptionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - encryptionConfig_ = value; - onChanged(); - } else { - encryptionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEncryptionConfig( - com.google.cloud.dataproc.v1.EncryptionConfig.Builder builderForValue) { - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = builderForValue.build(); - onChanged(); - } else { - encryptionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEncryptionConfig(com.google.cloud.dataproc.v1.EncryptionConfig value) { - if (encryptionConfigBuilder_ == null) { - if (encryptionConfig_ != null) { - encryptionConfig_ = - com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder(encryptionConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - encryptionConfig_ = value; - } - onChanged(); - } else { - encryptionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEncryptionConfig() { - if (encryptionConfigBuilder_ == null) { - encryptionConfig_ = null; - onChanged(); - } else { - encryptionConfig_ = null; - encryptionConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - - onChanged(); - return getEncryptionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { - if (encryptionConfigBuilder_ != null) { - return encryptionConfigBuilder_.getMessageOrBuilder(); - } else { - return encryptionConfig_ == null - ? com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance() - : encryptionConfig_; - } - } - /** - * - * - *
-     * Optional. Encryption settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder> - getEncryptionConfigFieldBuilder() { - if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EncryptionConfig, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder, - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder>( - getEncryptionConfig(), getParentForChildren(), isClean()); - encryptionConfig_ = null; - } - return encryptionConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.AutoscalingConfig autoscalingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> - autoscalingConfigBuilder_; - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - public boolean hasAutoscalingConfig() { - return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - public com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig() { - if (autoscalingConfigBuilder_ == null) { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } else { - return autoscalingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { - if (autoscalingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscalingConfig_ = value; - onChanged(); - } else { - autoscalingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscalingConfig( - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder builderForValue) { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = builderForValue.build(); - onChanged(); - } else { - autoscalingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoscalingConfig(com.google.cloud.dataproc.v1.AutoscalingConfig value) { - if (autoscalingConfigBuilder_ == null) { - if (autoscalingConfig_ != null) { - autoscalingConfig_ = - com.google.cloud.dataproc.v1.AutoscalingConfig.newBuilder(autoscalingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscalingConfig_ = value; - } - onChanged(); - } else { - autoscalingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoscalingConfig() { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfig_ = null; - onChanged(); - } else { - autoscalingConfig_ = null; - autoscalingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingConfig.Builder getAutoscalingConfigBuilder() { - - onChanged(); - return getAutoscalingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() { - if (autoscalingConfigBuilder_ != null) { - return autoscalingConfigBuilder_.getMessageOrBuilder(); - } else { - return autoscalingConfig_ == null - ? com.google.cloud.dataproc.v1.AutoscalingConfig.getDefaultInstance() - : autoscalingConfig_; - } - } - /** - * - * - *
-     * Optional. Autoscaling config for the policy associated with the cluster.
-     * Cluster does not autoscale if this field is unset.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder> - getAutoscalingConfigFieldBuilder() { - if (autoscalingConfigBuilder_ == null) { - autoscalingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingConfig, - com.google.cloud.dataproc.v1.AutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder>( - getAutoscalingConfig(), getParentForChildren(), isClean()); - autoscalingConfig_ = null; - } - return autoscalingConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.SecurityConfig securityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> - securityConfigBuilder_; - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - public boolean hasSecurityConfig() { - return securityConfigBuilder_ != null || securityConfig_ != null; - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - public com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig() { - if (securityConfigBuilder_ == null) { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; - } else { - return securityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { - if (securityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityConfig_ = value; - onChanged(); - } else { - securityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSecurityConfig( - com.google.cloud.dataproc.v1.SecurityConfig.Builder builderForValue) { - if (securityConfigBuilder_ == null) { - securityConfig_ = builderForValue.build(); - onChanged(); - } else { - securityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1.SecurityConfig value) { - if (securityConfigBuilder_ == null) { - if (securityConfig_ != null) { - securityConfig_ = - com.google.cloud.dataproc.v1.SecurityConfig.newBuilder(securityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - securityConfig_ = value; - } - onChanged(); - } else { - securityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSecurityConfig() { - if (securityConfigBuilder_ == null) { - securityConfig_ = null; - onChanged(); - } else { - securityConfig_ = null; - securityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SecurityConfig.Builder getSecurityConfigBuilder() { - - onChanged(); - return getSecurityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder() { - if (securityConfigBuilder_ != null) { - return securityConfigBuilder_.getMessageOrBuilder(); - } else { - return securityConfig_ == null - ? com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance() - : securityConfig_; - } - } - /** - * - * - *
-     * Optional. Security settings for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder> - getSecurityConfigFieldBuilder() { - if (securityConfigBuilder_ == null) { - securityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SecurityConfig, - com.google.cloud.dataproc.v1.SecurityConfig.Builder, - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder>( - getSecurityConfig(), getParentForChildren(), isClean()); - securityConfig_ = null; - } - return securityConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.LifecycleConfig lifecycleConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> - lifecycleConfigBuilder_; - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - public boolean hasLifecycleConfig() { - return lifecycleConfigBuilder_ != null || lifecycleConfig_ != null; - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - public com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig() { - if (lifecycleConfigBuilder_ == null) { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } else { - return lifecycleConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { - if (lifecycleConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lifecycleConfig_ = value; - onChanged(); - } else { - lifecycleConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLifecycleConfig( - com.google.cloud.dataproc.v1.LifecycleConfig.Builder builderForValue) { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = builderForValue.build(); - onChanged(); - } else { - lifecycleConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLifecycleConfig(com.google.cloud.dataproc.v1.LifecycleConfig value) { - if (lifecycleConfigBuilder_ == null) { - if (lifecycleConfig_ != null) { - lifecycleConfig_ = - com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder(lifecycleConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - lifecycleConfig_ = value; - } - onChanged(); - } else { - lifecycleConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLifecycleConfig() { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfig_ = null; - onChanged(); - } else { - lifecycleConfig_ = null; - lifecycleConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LifecycleConfig.Builder getLifecycleConfigBuilder() { - - onChanged(); - return getLifecycleConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder() { - if (lifecycleConfigBuilder_ != null) { - return lifecycleConfigBuilder_.getMessageOrBuilder(); - } else { - return lifecycleConfig_ == null - ? com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance() - : lifecycleConfig_; - } - } - /** - * - * - *
-     * Optional. Lifecycle setting for the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder> - getLifecycleConfigFieldBuilder() { - if (lifecycleConfigBuilder_ == null) { - lifecycleConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LifecycleConfig, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder, - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder>( - getLifecycleConfig(), getParentForChildren(), isClean()); - lifecycleConfig_ = null; - } - return lifecycleConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.EndpointConfig endpointConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> - endpointConfigBuilder_; - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - public boolean hasEndpointConfig() { - return endpointConfigBuilder_ != null || endpointConfig_ != null; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - public com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig() { - if (endpointConfigBuilder_ == null) { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } else { - return endpointConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { - if (endpointConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endpointConfig_ = value; - onChanged(); - } else { - endpointConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setEndpointConfig( - com.google.cloud.dataproc.v1.EndpointConfig.Builder builderForValue) { - if (endpointConfigBuilder_ == null) { - endpointConfig_ = builderForValue.build(); - onChanged(); - } else { - endpointConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1.EndpointConfig value) { - if (endpointConfigBuilder_ == null) { - if (endpointConfig_ != null) { - endpointConfig_ = - com.google.cloud.dataproc.v1.EndpointConfig.newBuilder(endpointConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - endpointConfig_ = value; - } - onChanged(); - } else { - endpointConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearEndpointConfig() { - if (endpointConfigBuilder_ == null) { - endpointConfig_ = null; - onChanged(); - } else { - endpointConfig_ = null; - endpointConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EndpointConfig.Builder getEndpointConfigBuilder() { - - onChanged(); - return getEndpointConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder() { - if (endpointConfigBuilder_ != null) { - return endpointConfigBuilder_.getMessageOrBuilder(); - } else { - return endpointConfig_ == null - ? com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance() - : endpointConfig_; - } - } - /** - * - * - *
-     * Optional. Port/endpoint configuration for this cluster
-     * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder> - getEndpointConfigFieldBuilder() { - if (endpointConfigBuilder_ == null) { - endpointConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.EndpointConfig, - com.google.cloud.dataproc.v1.EndpointConfig.Builder, - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder>( - getEndpointConfig(), getParentForChildren(), isClean()); - endpointConfig_ = null; - } - return endpointConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.MetastoreConfig metastoreConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - metastoreConfigBuilder_; - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - public boolean hasMetastoreConfig() { - return metastoreConfigBuilder_ != null || metastoreConfig_ != null; - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - public com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig() { - if (metastoreConfigBuilder_ == null) { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } else { - return metastoreConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { - if (metastoreConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metastoreConfig_ = value; - onChanged(); - } else { - metastoreConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setMetastoreConfig( - com.google.cloud.dataproc.v1.MetastoreConfig.Builder builderForValue) { - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = builderForValue.build(); - onChanged(); - } else { - metastoreConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeMetastoreConfig(com.google.cloud.dataproc.v1.MetastoreConfig value) { - if (metastoreConfigBuilder_ == null) { - if (metastoreConfig_ != null) { - metastoreConfig_ = - com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder(metastoreConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - metastoreConfig_ = value; - } - onChanged(); - } else { - metastoreConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearMetastoreConfig() { - if (metastoreConfigBuilder_ == null) { - metastoreConfig_ = null; - onChanged(); - } else { - metastoreConfig_ = null; - metastoreConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.MetastoreConfig.Builder getMetastoreConfigBuilder() { - - onChanged(); - return getMetastoreConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder() { - if (metastoreConfigBuilder_ != null) { - return metastoreConfigBuilder_.getMessageOrBuilder(); - } else { - return metastoreConfig_ == null - ? com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance() - : metastoreConfig_; - } - } - /** - * - * - *
-     * Optional. Metastore configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder> - getMetastoreConfigFieldBuilder() { - if (metastoreConfigBuilder_ == null) { - metastoreConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.MetastoreConfig, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder, - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder>( - getMetastoreConfig(), getParentForChildren(), isClean()); - metastoreConfig_ = null; - } - return metastoreConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> - dataprocMetricConfigBuilder_; - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dataprocMetricConfig field is set. - */ - public boolean hasDataprocMetricConfig() { - return dataprocMetricConfigBuilder_ != null || dataprocMetricConfig_ != null; - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataprocMetricConfig. - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig() { - if (dataprocMetricConfigBuilder_ == null) { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; - } else { - return dataprocMetricConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDataprocMetricConfig( - com.google.cloud.dataproc.v1.DataprocMetricConfig value) { - if (dataprocMetricConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataprocMetricConfig_ = value; - onChanged(); - } else { - dataprocMetricConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDataprocMetricConfig( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder builderForValue) { - if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfig_ = builderForValue.build(); - onChanged(); - } else { - dataprocMetricConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeDataprocMetricConfig( - com.google.cloud.dataproc.v1.DataprocMetricConfig value) { - if (dataprocMetricConfigBuilder_ == null) { - if (dataprocMetricConfig_ != null) { - dataprocMetricConfig_ = - com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder(dataprocMetricConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - dataprocMetricConfig_ = value; - } - onChanged(); - } else { - dataprocMetricConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearDataprocMetricConfig() { - if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfig_ = null; - onChanged(); - } else { - dataprocMetricConfig_ = null; - dataprocMetricConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder - getDataprocMetricConfigBuilder() { - - onChanged(); - return getDataprocMetricConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder - getDataprocMetricConfigOrBuilder() { - if (dataprocMetricConfigBuilder_ != null) { - return dataprocMetricConfigBuilder_.getMessageOrBuilder(); - } else { - return dataprocMetricConfig_ == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance() - : dataprocMetricConfig_; - } - } - /** - * - * - *
-     * Optional. The config for Dataproc metrics.
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder> - getDataprocMetricConfigFieldBuilder() { - if (dataprocMetricConfigBuilder_ == null) { - dataprocMetricConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder>( - getDataprocMetricConfig(), getParentForChildren(), isClean()); - dataprocMetricConfig_ = null; - } - return dataprocMetricConfigBuilder_; - } - - @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.dataproc.v1.ClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterConfig) - private static final com.google.cloud.dataproc.v1.ClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterConfig(); - } - - public static com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java deleted file mode 100644 index 310c89b5..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java +++ /dev/null @@ -1,745 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The configBucket. - */ - java.lang.String getConfigBucket(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string config_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for configBucket. - */ - com.google.protobuf.ByteString getConfigBucketBytes(); - - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tempBucket. - */ - java.lang.String getTempBucket(); - /** - * - * - *
-   * Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
-   * such as Spark and MapReduce history files.
-   * If you do not specify a temp bucket,
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's temp bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket. The default bucket has
-   * a TTL of 90 days, but you can use any TTL (or none) if you specify a
-   * bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string temp_bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tempBucket. - */ - com.google.protobuf.ByteString getTempBucketBytes(); - - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gceClusterConfig field is set. - */ - boolean hasGceClusterConfig(); - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gceClusterConfig. - */ - com.google.cloud.dataproc.v1.GceClusterConfig getGceClusterConfig(); - /** - * - * - *
-   * Optional. The shared Compute Engine config settings for
-   * all instances in a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig gce_cluster_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder getGceClusterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the masterConfig field is set. - */ - boolean hasMasterConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The masterConfig. - */ - com.google.cloud.dataproc.v1.InstanceGroupConfig getMasterConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's master instance.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig master_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getMasterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the workerConfig field is set. - */ - boolean hasWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The workerConfig. - */ - com.google.cloud.dataproc.v1.InstanceGroupConfig getWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * the cluster's worker instances.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig worker_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the secondaryWorkerConfig field is set. - */ - boolean hasSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The secondaryWorkerConfig. - */ - com.google.cloud.dataproc.v1.InstanceGroupConfig getSecondaryWorkerConfig(); - /** - * - * - *
-   * Optional. The Compute Engine config settings for
-   * a cluster's secondary worker instances
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig secondary_worker_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder getSecondaryWorkerConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the softwareConfig field is set. - */ - boolean hasSoftwareConfig(); - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The softwareConfig. - */ - com.google.cloud.dataproc.v1.SoftwareConfig getSoftwareConfig(); - /** - * - * - *
-   * Optional. The config settings for cluster software.
-   * 
- * - * - * .google.cloud.dataproc.v1.SoftwareConfig software_config = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getInitializationActionsList(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.NodeInitializationAction getInitializationActions(int index); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getInitializationActionsCount(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getInitializationActionsOrBuilderList(); - /** - * - * - *
-   * Optional. Commands to execute on each node after config is
-   * completed. By default, executables are run on master and all worker nodes.
-   * You can test a node's `role` metadata to run an executable on
-   * a master or worker node, as shown below using `curl` (you can also use
-   * `wget`):
-   *     ROLE=$(curl -H Metadata-Flavor:Google
-   *     http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
-   *     if [[ "${ROLE}" == 'Master' ]]; then
-   *       ... master specific actions ...
-   *     else
-   *       ... worker specific actions ...
-   *     fi
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.NodeInitializationAction initialization_actions = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitializationActionsOrBuilder( - int index); - - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the encryptionConfig field is set. - */ - boolean hasEncryptionConfig(); - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The encryptionConfig. - */ - com.google.cloud.dataproc.v1.EncryptionConfig getEncryptionConfig(); - /** - * - * - *
-   * Optional. Encryption settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.EncryptionConfig encryption_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscalingConfig field is set. - */ - boolean hasAutoscalingConfig(); - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscalingConfig. - */ - com.google.cloud.dataproc.v1.AutoscalingConfig getAutoscalingConfig(); - /** - * - * - *
-   * Optional. Autoscaling config for the policy associated with the cluster.
-   * Cluster does not autoscale if this field is unset.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingConfig autoscaling_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the securityConfig field is set. - */ - boolean hasSecurityConfig(); - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The securityConfig. - */ - com.google.cloud.dataproc.v1.SecurityConfig getSecurityConfig(); - /** - * - * - *
-   * Optional. Security settings for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.SecurityConfig security_config = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder getSecurityConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the lifecycleConfig field is set. - */ - boolean hasLifecycleConfig(); - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The lifecycleConfig. - */ - com.google.cloud.dataproc.v1.LifecycleConfig getLifecycleConfig(); - /** - * - * - *
-   * Optional. Lifecycle setting for the cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.LifecycleConfig lifecycle_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder getLifecycleConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the endpointConfig field is set. - */ - boolean hasEndpointConfig(); - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The endpointConfig. - */ - com.google.cloud.dataproc.v1.EndpointConfig getEndpointConfig(); - /** - * - * - *
-   * Optional. Port/endpoint configuration for this cluster
-   * 
- * - * - * .google.cloud.dataproc.v1.EndpointConfig endpoint_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder getEndpointConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the metastoreConfig field is set. - */ - boolean hasMetastoreConfig(); - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The metastoreConfig. - */ - com.google.cloud.dataproc.v1.MetastoreConfig getMetastoreConfig(); - /** - * - * - *
-   * Optional. Metastore configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.MetastoreConfig metastore_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dataprocMetricConfig field is set. - */ - boolean hasDataprocMetricConfig(); - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataprocMetricConfig. - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig(); - /** - * - * - *
-   * Optional. The config for Dataproc metrics.
-   * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java deleted file mode 100644 index 2fde391e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java +++ /dev/null @@ -1,1053 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Contains cluster daemon metrics, such as HDFS and YARN stats.
- * **Beta Feature**: This report is available for testing purposes only. It may
- * be changed before final release.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics} - */ -public final class ClusterMetrics extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterMetrics) - ClusterMetricsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterMetrics.newBuilder() to construct. - private ClusterMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterMetrics() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterMetrics(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHdfsMetrics(); - case 2: - return internalGetYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterMetrics.class, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class); - } - - public static final int HDFS_METRICS_FIELD_NUMBER = 1; - - private static final class HdfsMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - - private com.google.protobuf.MapField hdfsMetrics_; - - private com.google.protobuf.MapField internalGetHdfsMetrics() { - if (hdfsMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField(HdfsMetricsDefaultEntryHolder.defaultEntry); - } - return hdfsMetrics_; - } - - public int getHdfsMetricsCount() { - return internalGetHdfsMetrics().getMap().size(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHdfsMetrics().getMap().containsKey(key); - } - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHdfsMetrics() { - return getHdfsMetricsMap(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public java.util.Map getHdfsMetricsMap() { - return internalGetHdfsMetrics().getMap(); - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int YARN_METRICS_FIELD_NUMBER = 2; - - private static final class YarnMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - - private com.google.protobuf.MapField yarnMetrics_; - - private com.google.protobuf.MapField internalGetYarnMetrics() { - if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField(YarnMetricsDefaultEntryHolder.defaultEntry); - } - return yarnMetrics_; - } - - public int getYarnMetricsCount() { - return internalGetYarnMetrics().getMap().size(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetYarnMetrics().getMap().containsKey(key); - } - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getYarnMetrics() { - return getYarnMetricsMap(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public java.util.Map getYarnMetricsMap() { - return internalGetYarnMetrics().getMap(); - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHdfsMetrics(), HdfsMetricsDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetYarnMetrics(), YarnMetricsDefaultEntryHolder.defaultEntry, 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetHdfsMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry hdfsMetrics__ = - HdfsMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hdfsMetrics__); - } - for (java.util.Map.Entry entry : - internalGetYarnMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry yarnMetrics__ = - YarnMetricsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, yarnMetrics__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterMetrics)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterMetrics other = - (com.google.cloud.dataproc.v1.ClusterMetrics) obj; - - if (!internalGetHdfsMetrics().equals(other.internalGetHdfsMetrics())) return false; - if (!internalGetYarnMetrics().equals(other.internalGetYarnMetrics())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetHdfsMetrics().getMap().isEmpty()) { - hash = (37 * hash) + HDFS_METRICS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHdfsMetrics().hashCode(); - } - if (!internalGetYarnMetrics().getMap().isEmpty()) { - hash = (37 * hash) + YARN_METRICS_FIELD_NUMBER; - hash = (53 * hash) + internalGetYarnMetrics().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics 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.dataproc.v1.ClusterMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics 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.dataproc.v1.ClusterMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics 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.dataproc.v1.ClusterMetrics prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Contains cluster daemon metrics, such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It may
-   * be changed before final release.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterMetrics} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterMetrics) - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHdfsMetrics(); - case 2: - return internalGetYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableHdfsMetrics(); - case 2: - return internalGetMutableYarnMetrics(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterMetrics.class, - com.google.cloud.dataproc.v1.ClusterMetrics.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterMetrics.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableHdfsMetrics().clear(); - internalGetMutableYarnMetrics().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetrics build() { - com.google.cloud.dataproc.v1.ClusterMetrics result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetrics buildPartial() { - com.google.cloud.dataproc.v1.ClusterMetrics result = - new com.google.cloud.dataproc.v1.ClusterMetrics(this); - int from_bitField0_ = bitField0_; - result.hdfsMetrics_ = internalGetHdfsMetrics(); - result.hdfsMetrics_.makeImmutable(); - result.yarnMetrics_ = internalGetYarnMetrics(); - result.yarnMetrics_.makeImmutable(); - 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.dataproc.v1.ClusterMetrics) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterMetrics) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterMetrics other) { - if (other == com.google.cloud.dataproc.v1.ClusterMetrics.getDefaultInstance()) return this; - internalGetMutableHdfsMetrics().mergeFrom(other.internalGetHdfsMetrics()); - internalGetMutableYarnMetrics().mergeFrom(other.internalGetYarnMetrics()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry hdfsMetrics__ = - input.readMessage( - HdfsMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHdfsMetrics() - .getMutableMap() - .put(hdfsMetrics__.getKey(), hdfsMetrics__.getValue()); - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry yarnMetrics__ = - input.readMessage( - YarnMetricsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableYarnMetrics() - .getMutableMap() - .put(yarnMetrics__.getKey(), yarnMetrics__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField hdfsMetrics_; - - private com.google.protobuf.MapField - internalGetHdfsMetrics() { - if (hdfsMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HdfsMetricsDefaultEntryHolder.defaultEntry); - } - return hdfsMetrics_; - } - - private com.google.protobuf.MapField - internalGetMutableHdfsMetrics() { - onChanged(); - ; - if (hdfsMetrics_ == null) { - hdfsMetrics_ = - com.google.protobuf.MapField.newMapField(HdfsMetricsDefaultEntryHolder.defaultEntry); - } - if (!hdfsMetrics_.isMutable()) { - hdfsMetrics_ = hdfsMetrics_.copy(); - } - return hdfsMetrics_; - } - - public int getHdfsMetricsCount() { - return internalGetHdfsMetrics().getMap().size(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public boolean containsHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHdfsMetrics().getMap().containsKey(key); - } - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHdfsMetrics() { - return getHdfsMetricsMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public java.util.Map getHdfsMetricsMap() { - return internalGetHdfsMetrics().getMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - @java.lang.Override - public long getHdfsMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHdfsMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHdfsMetrics() { - internalGetMutableHdfsMetrics().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder removeHdfsMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHdfsMetrics().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHdfsMetrics() { - return internalGetMutableHdfsMetrics().getMutableMap(); - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder putHdfsMetrics(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableHdfsMetrics().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The HDFS metrics.
-     * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - public Builder putAllHdfsMetrics(java.util.Map values) { - internalGetMutableHdfsMetrics().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField yarnMetrics_; - - private com.google.protobuf.MapField - internalGetYarnMetrics() { - if (yarnMetrics_ == null) { - return com.google.protobuf.MapField.emptyMapField( - YarnMetricsDefaultEntryHolder.defaultEntry); - } - return yarnMetrics_; - } - - private com.google.protobuf.MapField - internalGetMutableYarnMetrics() { - onChanged(); - ; - if (yarnMetrics_ == null) { - yarnMetrics_ = - com.google.protobuf.MapField.newMapField(YarnMetricsDefaultEntryHolder.defaultEntry); - } - if (!yarnMetrics_.isMutable()) { - yarnMetrics_ = yarnMetrics_.copy(); - } - return yarnMetrics_; - } - - public int getYarnMetricsCount() { - return internalGetYarnMetrics().getMap().size(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public boolean containsYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetYarnMetrics().getMap().containsKey(key); - } - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getYarnMetrics() { - return getYarnMetricsMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public java.util.Map getYarnMetricsMap() { - return internalGetYarnMetrics().getMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrDefault(java.lang.String key, long defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - @java.lang.Override - public long getYarnMetricsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetYarnMetrics().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearYarnMetrics() { - internalGetMutableYarnMetrics().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder removeYarnMetrics(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableYarnMetrics().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableYarnMetrics() { - return internalGetMutableYarnMetrics().getMutableMap(); - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder putYarnMetrics(java.lang.String key, long value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableYarnMetrics().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The YARN metrics.
-     * 
- * - * map<string, int64> yarn_metrics = 2; - */ - public Builder putAllYarnMetrics(java.util.Map values) { - internalGetMutableYarnMetrics().getMutableMap().putAll(values); - 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.dataproc.v1.ClusterMetrics) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterMetrics) - private static final com.google.cloud.dataproc.v1.ClusterMetrics DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterMetrics(); - } - - public static com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterMetrics getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java deleted file mode 100644 index 8cea6493..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java +++ /dev/null @@ -1,133 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterMetricsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterMetrics) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - int getHdfsMetricsCount(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - boolean containsHdfsMetrics(java.lang.String key); - /** Use {@link #getHdfsMetricsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHdfsMetrics(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - java.util.Map getHdfsMetricsMap(); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - long getHdfsMetricsOrDefault(java.lang.String key, long defaultValue); - /** - * - * - *
-   * The HDFS metrics.
-   * 
- * - * map<string, int64> hdfs_metrics = 1; - */ - long getHdfsMetricsOrThrow(java.lang.String key); - - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - int getYarnMetricsCount(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - boolean containsYarnMetrics(java.lang.String key); - /** Use {@link #getYarnMetricsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getYarnMetrics(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - java.util.Map getYarnMetricsMap(); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - long getYarnMetricsOrDefault(java.lang.String key, long defaultValue); - /** - * - * - *
-   * The YARN metrics.
-   * 
- * - * map<string, int64> yarn_metrics = 2; - */ - long getYarnMetricsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java deleted file mode 100644 index 1d9c1ca3..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java +++ /dev/null @@ -1,883 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The cluster operation triggered by a workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} - */ -public final class ClusterOperation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperation) - ClusterOperationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperation.newBuilder() to construct. - private ClusterOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperation() { - operationId_ = ""; - error_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, - com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); - } - - public static final int OPERATION_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object operationId_; - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - @java.lang.Override - public java.lang.String getOperationId() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - private volatile java.lang.Object error_; - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - @java.lang.Override - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DONE_FIELD_NUMBER = 3; - private boolean done_; - /** - * - * - *
-   * Output only. Indicates the operation is done.
-   * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(operationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); - } - if (done_ != false) { - output.writeBool(3, done_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); - } - if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterOperation other = - (com.google.cloud.dataproc.v1.ClusterOperation) obj; - - if (!getOperationId().equals(other.getOperationId())) return false; - if (!getError().equals(other.getError())) return false; - if (getDone() != other.getDone()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperationId().hashCode(); - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation 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.dataproc.v1.ClusterOperation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation 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.dataproc.v1.ClusterOperation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation 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.dataproc.v1.ClusterOperation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 cluster operation triggered by a workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperation) - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperation.class, - com.google.cloud.dataproc.v1.ClusterOperation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterOperation.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - operationId_ = ""; - - error_ = ""; - - done_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation build() { - com.google.cloud.dataproc.v1.ClusterOperation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperation result = - new com.google.cloud.dataproc.v1.ClusterOperation(this); - result.operationId_ = operationId_; - result.error_ = error_; - result.done_ = done_; - 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.dataproc.v1.ClusterOperation) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperation other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance()) return this; - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - if (other.getDone() != false) { - setDone(other.getDone()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - operationId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - error_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - done_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - public java.lang.String getOperationId() { - java.lang.Object ref = operationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - public com.google.protobuf.ByteString getOperationIdBytes() { - java.lang.Object ref = operationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operationId to set. - * @return This builder for chaining. - */ - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The id of the cluster operation.
-     * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The error to set. - * @return This builder for chaining. - */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Error, if operation failed.
-     * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for error to set. - * @return This builder for chaining. - */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = value; - onChanged(); - return this; - } - - private boolean done_; - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The done to set. - * @return This builder for chaining. - */ - public Builder setDone(boolean value) { - - done_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Indicates the operation is done.
-     * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDone() { - - done_ = false; - 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.dataproc.v1.ClusterOperation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperation) - private static final com.google.cloud.dataproc.v1.ClusterOperation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperation(); - } - - public static com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java deleted file mode 100644 index 608c9943..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java +++ /dev/null @@ -1,2593 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Metadata describing the operation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} - */ -public final class ClusterOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) - ClusterOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperationMetadata.newBuilder() to construct. - private ClusterOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperationMetadata() { - clusterName_ = ""; - clusterUuid_ = ""; - statusHistory_ = java.util.Collections.emptyList(); - operationType_ = ""; - description_ = ""; - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 8; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 10; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - return statusHistory_.get(index); - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 11; - private volatile java.lang.Object operationType_; - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - @java.lang.Override - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 12; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 13; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WARNINGS_FIELD_NUMBER = 14; - private com.google.protobuf.LazyStringList warnings_; - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clusterUuid_); - } - if (status_ != null) { - output.writeMessage(9, getStatus()); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(10, statusHistory_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, operationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); - for (int i = 0; i < warnings_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, warnings_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clusterUuid_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStatus()); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, statusHistory_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, operationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); - } - 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(13, labels__); - } - { - int dataSize = 0; - for (int i = 0; i < warnings_.size(); i++) { - dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); - } - size += dataSize; - size += 1 * getWarningsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterOperationMetadata other = - (com.google.cloud.dataproc.v1.ClusterOperationMetadata) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getOperationType().equals(other.getOperationType())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getOperationType().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata 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.dataproc.v1.ClusterOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata 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.dataproc.v1.ClusterOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata 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.dataproc.v1.ClusterOperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 describing the operation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationMetadata) - com.google.cloud.dataproc.v1.ClusterOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 13: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 13: - 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.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationMetadata.class, - com.google.cloud.dataproc.v1.ClusterOperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterOperationMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - clusterName_ = ""; - - clusterUuid_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - } else { - statusHistory_ = null; - statusHistoryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - operationType_ = ""; - - description_ = ""; - - internalGetMutableLabels().clear(); - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationMetadata build() { - com.google.cloud.dataproc.v1.ClusterOperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationMetadata buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationMetadata result = - new com.google.cloud.dataproc.v1.ClusterOperationMetadata(this); - int from_bitField0_ = bitField0_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - result.operationType_ = operationType_; - result.description_ = description_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - warnings_ = warnings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.warnings_ = warnings_; - 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.dataproc.v1.ClusterOperationMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationMetadata other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationMetadata.getDefaultInstance()) - return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (!other.getOperationType().isEmpty()) { - operationType_ = other.operationType_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 58: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - com.google.cloud.dataproc.v1.ClusterOperationStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.ClusterOperationStatus.parser(), - extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - operationType_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 106 - case 114: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Name of the cluster for the operation.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Cluster UUID for the operation.
-     * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterOperationStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus( - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Current operation status.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList( - statusHistory_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(com.google.cloud.dataproc.v1.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterOperationStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder getStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder( - int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder addStatusHistoryBuilder( - int index) { - return getStatusHistoryFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous operation status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperationStatus, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder, - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.lang.Object operationType_ = ""; - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = getDefaultInstance().getOperationType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The operation type.
-     * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationType_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Short description of operation.
-     * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - 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(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Output only. Labels associated with the operation
-     * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList warnings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The warnings to set. - * @return This builder for chaining. - */ - public Builder setWarnings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The warnings to add. - * @return This builder for chaining. - */ - public Builder addWarnings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The warnings to add. - * @return This builder for chaining. - */ - public Builder addAllWarnings(java.lang.Iterable values) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Errors encountered during operation execution.
-     * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the warnings to add. - * @return This builder for chaining. - */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWarningsIsMutable(); - warnings_.add(value); - 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.dataproc.v1.ClusterOperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationMetadata) - private static final com.google.cloud.dataproc.v1.ClusterOperationMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationMetadata(); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java deleted file mode 100644 index c9865b12..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java +++ /dev/null @@ -1,343 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterOperationMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Output only. Name of the cluster for the operation.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. Cluster UUID for the operation.
-   * 
- * - * string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1.ClusterOperationStatus getStatus(); - /** - * - * - *
-   * Output only. Current operation status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOperationStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous operation status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder(int index); - - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - java.lang.String getOperationType(); - /** - * - * - *
-   * Output only. The operation type.
-   * 
- * - * string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - com.google.protobuf.ByteString getOperationTypeBytes(); - - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Output only. Short description of operation.
-   * 
- * - * string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getLabelsCount(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Output only. Labels associated with the operation
-   * 
- * - * map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the warnings. - */ - java.util.List getWarningsList(); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of warnings. - */ - int getWarningsCount(); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - java.lang.String getWarnings(int index); - /** - * - * - *
-   * Output only. Errors encountered during operation execution.
-   * 
- * - * repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - com.google.protobuf.ByteString getWarningsBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java deleted file mode 100644 index 0c573e43..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java +++ /dev/null @@ -1,88 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterOperationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationId. - */ - java.lang.String getOperationId(); - /** - * - * - *
-   * Output only. The id of the cluster operation.
-   * 
- * - * string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationId. - */ - com.google.protobuf.ByteString getOperationIdBytes(); - - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - java.lang.String getError(); - /** - * - * - *
-   * Output only. Error, if operation failed.
-   * 
- * - * string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - com.google.protobuf.ByteString getErrorBytes(); - - /** - * - * - *
-   * Output only. Indicates the operation is done.
-   * 
- * - * bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - boolean getDone(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java deleted file mode 100644 index 1c40da9a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java +++ /dev/null @@ -1,1432 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The status of the operation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} - */ -public final class ClusterOperationStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterOperationStatus) - ClusterOperationStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterOperationStatus.newBuilder() to construct. - private ClusterOperationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterOperationStatus() { - state_ = 0; - innerState_ = ""; - details_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterOperationStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); - } - - /** - * - * - *
-   * The operation state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.ClusterOperationStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - DONE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - public static final int DONE_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 UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - 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.dataproc.v1.ClusterOperationStatus.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.dataproc.v1.ClusterOperationStatus.State) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED - : result; - } - - public static final int INNER_STATE_FIELD_NUMBER = 2; - private volatile java.lang.Object innerState_; - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The innerState. - */ - @java.lang.Override - public java.lang.String getInnerState() { - java.lang.Object ref = innerState_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - innerState_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for innerState. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInnerStateBytes() { - java.lang.Object ref = innerState_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - innerState_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DETAILS_FIELD_NUMBER = 3; - private volatile java.lang.Object details_; - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - @java.lang.Override - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - output.writeEnum(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, innerState_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, details_); - } - if (stateStartTime_ != null) { - output.writeMessage(4, getStateStartTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(innerState_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, innerState_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, details_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateStartTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterOperationStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterOperationStatus other = - (com.google.cloud.dataproc.v1.ClusterOperationStatus) obj; - - if (state_ != other.state_) return false; - if (!getInnerState().equals(other.getInnerState())) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + INNER_STATE_FIELD_NUMBER; - hash = (53 * hash) + getInnerState().hashCode(); - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetails().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus 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.dataproc.v1.ClusterOperationStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus 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.dataproc.v1.ClusterOperationStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus 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.dataproc.v1.ClusterOperationStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 status of the operation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterOperationStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterOperationStatus) - com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterOperationStatus.class, - com.google.cloud.dataproc.v1.ClusterOperationStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterOperationStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - innerState_ = ""; - - details_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.OperationsProto - .internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus build() { - com.google.cloud.dataproc.v1.ClusterOperationStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterOperationStatus result = - new com.google.cloud.dataproc.v1.ClusterOperationStatus(this); - result.state_ = state_; - result.innerState_ = innerState_; - result.details_ = details_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.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.dataproc.v1.ClusterOperationStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterOperationStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterOperationStatus other) { - if (other == com.google.cloud.dataproc.v1.ClusterOperationStatus.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getInnerState().isEmpty()) { - innerState_ = other.innerState_; - onChanged(); - } - if (!other.getDetails().isEmpty()) { - details_ = other.details_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - innerState_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - details_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterOperationStatus.State result = - com.google.cloud.dataproc.v1.ClusterOperationStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterOperationStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.ClusterOperationStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the operation state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object innerState_ = ""; - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The innerState. - */ - public java.lang.String getInnerState() { - java.lang.Object ref = innerState_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - innerState_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for innerState. - */ - public com.google.protobuf.ByteString getInnerStateBytes() { - java.lang.Object ref = innerState_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - innerState_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The innerState to set. - * @return This builder for chaining. - */ - public Builder setInnerState(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - innerState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearInnerState() { - - innerState_ = getDefaultInstance().getInnerState(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing the detailed operation state.
-     * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for innerState to set. - * @return This builder for chaining. - */ - public Builder setInnerStateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - innerState_ = value; - onChanged(); - return this; - } - - private java.lang.Object details_ = ""; - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The details to set. - * @return This builder for chaining. - */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - details_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDetails() { - - details_ = getDefaultInstance().getDetails(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A message containing any operation metadata details.
-     * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for details to set. - * @return This builder for chaining. - */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - details_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. The time this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - @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.dataproc.v1.ClusterOperationStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterOperationStatus) - private static final com.google.cloud.dataproc.v1.ClusterOperationStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterOperationStatus(); - } - - public static com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterOperationStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java deleted file mode 100644 index 5f2a78e0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java +++ /dev/null @@ -1,145 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterOperationStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterOperationStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. A message containing the operation state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperationStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.ClusterOperationStatus.State getState(); - - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The innerState. - */ - java.lang.String getInnerState(); - /** - * - * - *
-   * Output only. A message containing the detailed operation state.
-   * 
- * - * string inner_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for innerState. - */ - com.google.protobuf.ByteString getInnerStateBytes(); - - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The details. - */ - java.lang.String getDetails(); - /** - * - * - *
-   * Output only. A message containing any operation metadata details.
-   * 
- * - * string details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for details. - */ - com.google.protobuf.ByteString getDetailsBytes(); - - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. The time this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java deleted file mode 100644 index 542813e6..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java +++ /dev/null @@ -1,449 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Cluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The Google Cloud Platform project ID that the cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name. Cluster names within a project must be
-   * unique. Names of deleted clusters can be reused.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - com.google.cloud.dataproc.v1.ClusterConfig getConfig(); - /** - * - * - *
-   * Optional. The cluster config for a cluster of Compute Engine Instances.
-   * Note that Dataproc may set default values, and values may change
-   * when clusters are updated.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualClusterConfig field is set. - */ - boolean hasVirtualClusterConfig(); - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualClusterConfig. - */ - com.google.cloud.dataproc.v1.VirtualClusterConfig getVirtualClusterConfig(); - /** - * - * - *
-   * Optional. The virtual cluster config, used when creating a Dataproc cluster that
-   * does not directly control the underlying compute resources, for example,
-   * when creating a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * Note that Dataproc may set default values, and values may change when
-   * clusters are updated. Exactly one of config or virtualClusterConfig must be
-   * specified.
-   * 
- * - * - * .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a cluster.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1.ClusterStatus getStatus(); - /** - * - * - *
-   * Output only. Cluster status.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous cluster status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder getStatusHistoryOrBuilder(int index); - - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. A cluster UUID (Unique Universal Identifier). Dataproc
-   * generates this value when it creates the cluster.
-   * 
- * - * string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the metrics field is set. - */ - boolean hasMetrics(); - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The metrics. - */ - com.google.cloud.dataproc.v1.ClusterMetrics getMetrics(); - /** - * - * - *
-   * Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
-   * **Beta Feature**: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterMetricsOrBuilder getMetricsOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java deleted file mode 100644 index e59022b6..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java +++ /dev/null @@ -1,985 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A selector that chooses target cluster for jobs based on metadata.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} - */ -public final class ClusterSelector extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterSelector) - ClusterSelectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterSelector.newBuilder() to construct. - private ClusterSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterSelector() { - zone_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterSelector(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, - com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); - } - - public static final int ZONE_FIELD_NUMBER = 1; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zone. - */ - @java.lang.Override - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zone. - */ - @java.lang.Override - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_LABELS_FIELD_NUMBER = 2; - - private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); - } - for (java.util.Map.Entry entry : - internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry clusterLabels__ = - ClusterLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, clusterLabels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterSelector)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterSelector other = - (com.google.cloud.dataproc.v1.ClusterSelector) obj; - - if (!getZone().equals(other.getZone())) return false; - if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - if (!internalGetClusterLabels().getMap().isEmpty()) { - hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetClusterLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector 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.dataproc.v1.ClusterSelector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector 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.dataproc.v1.ClusterSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector 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.dataproc.v1.ClusterSelector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 selector that chooses target cluster for jobs based on metadata.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterSelector} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterSelector) - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterSelector.class, - com.google.cloud.dataproc.v1.ClusterSelector.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterSelector.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - zone_ = ""; - - internalGetMutableClusterLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector build() { - com.google.cloud.dataproc.v1.ClusterSelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector buildPartial() { - com.google.cloud.dataproc.v1.ClusterSelector result = - new com.google.cloud.dataproc.v1.ClusterSelector(this); - int from_bitField0_ = bitField0_; - result.zone_ = zone_; - result.clusterLabels_ = internalGetClusterLabels(); - result.clusterLabels_.makeImmutable(); - 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.dataproc.v1.ClusterSelector) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterSelector) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterSelector other) { - if (other == com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) return this; - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - zone_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableClusterLabels() - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zone. - */ - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zone. - */ - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where workflow process executes. This parameter does not
-     * affect the selection of the cluster.
-     * If unspecified, the zone of the first cluster matching the selector
-     * is used.
-     * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged(); - ; - if (clusterLabels_ == null) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); - } - if (!clusterLabels_.isMutable()) { - clusterLabels_ = clusterLabels_.copy(); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableClusterLabels() { - return internalGetMutableClusterLabels().getMutableMap(); - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putClusterLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableClusterLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Required. The cluster labels. Cluster must have all labels
-     * to match.
-     * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllClusterLabels(java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap().putAll(values); - 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.dataproc.v1.ClusterSelector) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterSelector) - private static final com.google.cloud.dataproc.v1.ClusterSelector DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterSelector(); - } - - public static com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java deleted file mode 100644 index 41485dec..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java +++ /dev/null @@ -1,125 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterSelectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterSelector) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zone. - */ - java.lang.String getZone(); - /** - * - * - *
-   * Optional. The zone where workflow process executes. This parameter does not
-   * affect the selection of the cluster.
-   * If unspecified, the zone of the first cluster matching the selector
-   * is used.
-   * 
- * - * string zone = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zone. - */ - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getClusterLabelsCount(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsClusterLabels(java.lang.String key); - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getClusterLabels(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getClusterLabelsMap(); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - - /* nullable */ - java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Required. The cluster labels. Cluster must have all labels
-   * to match.
-   * 
- * - * map<string, string> cluster_labels = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.lang.String getClusterLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java deleted file mode 100644 index 9dd67ad2..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java +++ /dev/null @@ -1,1756 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The status of a cluster and its instances.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} - */ -public final class ClusterStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ClusterStatus) - ClusterStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterStatus.newBuilder() to construct. - private ClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterStatus() { - state_ = 0; - detail_ = ""; - substate_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, - com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); - } - - /** - * - * - *
-   * The cluster state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The cluster state is unknown.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The cluster is being created and set up. It is not ready for use.
-     * 
- * - * CREATING = 1; - */ - CREATING(1), - /** - * - * - *
-     * The cluster is currently running and healthy. It is ready for use.
-     * **Note:** The cluster state changes from "creating" to "running" status
-     * after the master node(s), first two primary worker nodes (and the last
-     * primary worker node if primary workers > 2) are running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The cluster encountered an error. It is not ready for use.
-     * 
- * - * ERROR = 3; - */ - ERROR(3), - /** - * - * - *
-     * The cluster has encountered an error while being updated. Jobs can
-     * be submitted to the cluster, but the cluster cannot be updated.
-     * 
- * - * ERROR_DUE_TO_UPDATE = 9; - */ - ERROR_DUE_TO_UPDATE(9), - /** - * - * - *
-     * The cluster is being deleted. It cannot be used.
-     * 
- * - * DELETING = 4; - */ - DELETING(4), - /** - * - * - *
-     * The cluster is being updated. It continues to accept and process jobs.
-     * 
- * - * UPDATING = 5; - */ - UPDATING(5), - /** - * - * - *
-     * The cluster is being stopped. It cannot be used.
-     * 
- * - * STOPPING = 6; - */ - STOPPING(6), - /** - * - * - *
-     * The cluster is currently stopped. It is not ready for use.
-     * 
- * - * STOPPED = 7; - */ - STOPPED(7), - /** - * - * - *
-     * The cluster is being started. It is not ready for use.
-     * 
- * - * STARTING = 8; - */ - STARTING(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The cluster state is unknown.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The cluster is being created and set up. It is not ready for use.
-     * 
- * - * CREATING = 1; - */ - public static final int CREATING_VALUE = 1; - /** - * - * - *
-     * The cluster is currently running and healthy. It is ready for use.
-     * **Note:** The cluster state changes from "creating" to "running" status
-     * after the master node(s), first two primary worker nodes (and the last
-     * primary worker node if primary workers > 2) are running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The cluster encountered an error. It is not ready for use.
-     * 
- * - * ERROR = 3; - */ - public static final int ERROR_VALUE = 3; - /** - * - * - *
-     * The cluster has encountered an error while being updated. Jobs can
-     * be submitted to the cluster, but the cluster cannot be updated.
-     * 
- * - * ERROR_DUE_TO_UPDATE = 9; - */ - public static final int ERROR_DUE_TO_UPDATE_VALUE = 9; - /** - * - * - *
-     * The cluster is being deleted. It cannot be used.
-     * 
- * - * DELETING = 4; - */ - public static final int DELETING_VALUE = 4; - /** - * - * - *
-     * The cluster is being updated. It continues to accept and process jobs.
-     * 
- * - * UPDATING = 5; - */ - public static final int UPDATING_VALUE = 5; - /** - * - * - *
-     * The cluster is being stopped. It cannot be used.
-     * 
- * - * STOPPING = 6; - */ - public static final int STOPPING_VALUE = 6; - /** - * - * - *
-     * The cluster is currently stopped. It is not ready for use.
-     * 
- * - * STOPPED = 7; - */ - public static final int STOPPED_VALUE = 7; - /** - * - * - *
-     * The cluster is being started. It is not ready for use.
-     * 
- * - * STARTING = 8; - */ - public static final int STARTING_VALUE = 8; - - 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 UNKNOWN; - case 1: - return CREATING; - case 2: - return RUNNING; - case 3: - return ERROR; - case 9: - return ERROR_DUE_TO_UPDATE; - case 4: - return DELETING; - case 5: - return UPDATING; - case 6: - return STOPPING; - case 7: - return STOPPED; - case 8: - return STARTING; - 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.dataproc.v1.ClusterStatus.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.dataproc.v1.ClusterStatus.State) - } - - /** - * - * - *
-   * The cluster substate.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.ClusterStatus.Substate} - */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The cluster substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * The cluster is known to be in an unhealthy state
-     * (for example, critical daemons are not running or HDFS capacity is
-     * exhausted).
-     * Applies to RUNNING state.
-     * 
- * - * UNHEALTHY = 1; - */ - UNHEALTHY(1), - /** - * - * - *
-     * The agent-reported status is out of date (may occur if
-     * Dataproc loses communication with Agent).
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 2; - */ - STALE_STATUS(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The cluster substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The cluster is known to be in an unhealthy state
-     * (for example, critical daemons are not running or HDFS capacity is
-     * exhausted).
-     * Applies to RUNNING state.
-     * 
- * - * UNHEALTHY = 1; - */ - public static final int UNHEALTHY_VALUE = 1; - /** - * - * - *
-     * The agent-reported status is out of date (may occur if
-     * Dataproc loses communication with Agent).
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 2; - */ - public static final int STALE_STATUS_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Substate 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 Substate forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return UNHEALTHY; - case 2: - return STALE_STATUS; - 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 Substate findValueByNumber(int number) { - return Substate.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.dataproc.v1.ClusterStatus.getDescriptor().getEnumTypes().get(1); - } - - private static final Substate[] VALUES = values(); - - public static Substate 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 Substate(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ClusterStatus.Substate) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = - com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object detail_; - /** - * - * - *
-   * Optional. Output only. Details of cluster's state.
-   * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Output only. Details of cluster's state.
-   * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - public static final int SUBSTATE_FIELD_NUMBER = 4; - private int substate_; - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { - output.writeEnum(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, detail_); - } - if (stateStartTime_ != null) { - output.writeMessage(3, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - output.writeEnum(4, substate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1.ClusterStatus.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, detail_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, substate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ClusterStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ClusterStatus other = - (com.google.cloud.dataproc.v1.ClusterStatus) obj; - - if (state_ != other.state_) return false; - if (!getDetail().equals(other.getDetail())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (substate_ != other.substate_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; - hash = (53 * hash) + substate_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus 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.dataproc.v1.ClusterStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus 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.dataproc.v1.ClusterStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus 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.dataproc.v1.ClusterStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 status of a cluster and its instances.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ClusterStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ClusterStatus) - com.google.cloud.dataproc.v1.ClusterStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ClusterStatus.class, - com.google.cloud.dataproc.v1.ClusterStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ClusterStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - detail_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - substate_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus build() { - com.google.cloud.dataproc.v1.ClusterStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus buildPartial() { - com.google.cloud.dataproc.v1.ClusterStatus result = - new com.google.cloud.dataproc.v1.ClusterStatus(this); - result.state_ = state_; - result.detail_ = detail_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.build(); - } - result.substate_ = substate_; - 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.dataproc.v1.ClusterStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.ClusterStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ClusterStatus other) { - if (other == com.google.cloud.dataproc.v1.ClusterStatus.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - if (other.substate_ != 0) { - setSubstateValue(other.getSubstateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - substate_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.State result = - com.google.cloud.dataproc.v1.ClusterStatus.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.ClusterStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The cluster's state.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - * - * - *
-     * Optional. Output only. Details of cluster's state.
-     * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Output only. Details of cluster's state.
-     * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Output only. Details of cluster's state.
-     * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - detail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Details of cluster's state.
-     * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearDetail() { - - detail_ = getDefaultInstance().getDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Details of cluster's state.
-     * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - detail_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. Time when this state was entered (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - private int substate_ = 0; - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for substate to set. - * @return This builder for chaining. - */ - public Builder setSubstateValue(int value) { - - substate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ClusterStatus.Substate result = - com.google.cloud.dataproc.v1.ClusterStatus.Substate.valueOf(substate_); - return result == null - ? com.google.cloud.dataproc.v1.ClusterStatus.Substate.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The substate to set. - * @return This builder for chaining. - */ - public Builder setSubstate(com.google.cloud.dataproc.v1.ClusterStatus.Substate value) { - if (value == null) { - throw new NullPointerException(); - } - - substate_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information that includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSubstate() { - - substate_ = 0; - 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.dataproc.v1.ClusterStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ClusterStatus) - private static final com.google.cloud.dataproc.v1.ClusterStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ClusterStatus(); - } - - public static com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java deleted file mode 100644 index 9abedcb6..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java +++ /dev/null @@ -1,158 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ClusterStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ClusterStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The cluster's state.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.ClusterStatus.State getState(); - - /** - * - * - *
-   * Optional. Output only. Details of cluster's state.
-   * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The detail. - */ - java.lang.String getDetail(); - /** - * - * - *
-   * Optional. Output only. Details of cluster's state.
-   * 
- * - * - * string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for detail. - */ - com.google.protobuf.ByteString getDetailBytes(); - - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. Time when this state was entered (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - int getSubstateValue(); - /** - * - * - *
-   * Output only. Additional state information that includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - com.google.cloud.dataproc.v1.ClusterStatus.Substate getSubstate(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java deleted file mode 100644 index 125c4937..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ /dev/null @@ -1,971 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public final class ClustersProto { - private ClustersProto() {} - - 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_dataproc_v1_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ReservationAffinity_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/dataproc/v1/clusters.prot" - + "o\022\030google.cloud.dataproc.v1\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032%google/cloud/dat" - + "aproc/v1/shared.proto\032#google/longrunnin" - + "g/operations.proto\032\036google/protobuf/dura" - + "tion.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\242\004" - + "\n\007Cluster\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\031\n\014cl" - + "uster_name\030\002 \001(\tB\003\340A\002\022<\n\006config\030\003 \001(\0132\'." - + "google.cloud.dataproc.v1.ClusterConfigB\003" - + "\340A\001\022S\n\026virtual_cluster_config\030\n \001(\0132..go" - + "ogle.cloud.dataproc.v1.VirtualClusterCon" - + "figB\003\340A\001\022B\n\006labels\030\010 \003(\0132-.google.cloud." - + "dataproc.v1.Cluster.LabelsEntryB\003\340A\001\022<\n\006" - + "status\030\004 \001(\0132\'.google.cloud.dataproc.v1." - + "ClusterStatusB\003\340A\003\022D\n\016status_history\030\007 \003" - + "(\0132\'.google.cloud.dataproc.v1.ClusterSta" - + "tusB\003\340A\003\022\031\n\014cluster_uuid\030\006 \001(\tB\003\340A\003\022>\n\007m" - + "etrics\030\t \001(\0132(.google.cloud.dataproc.v1." - + "ClusterMetricsB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\261\010\n\rClusterCo" - + "nfig\022\032\n\rconfig_bucket\030\001 \001(\tB\003\340A\001\022\030\n\013temp" - + "_bucket\030\002 \001(\tB\003\340A\001\022K\n\022gce_cluster_config" - + "\030\010 \001(\0132*.google.cloud.dataproc.v1.GceClu" - + "sterConfigB\003\340A\001\022I\n\rmaster_config\030\t \001(\0132-" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfigB\003\340A\001\022I\n\rworker_config\030\n \001(\0132-.goog" - + "le.cloud.dataproc.v1.InstanceGroupConfig" - + "B\003\340A\001\022S\n\027secondary_worker_config\030\014 \001(\0132-" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfigB\003\340A\001\022F\n\017software_config\030\r \001(\0132(.go" - + "ogle.cloud.dataproc.v1.SoftwareConfigB\003\340" - + "A\001\022W\n\026initialization_actions\030\013 \003(\01322.goo" - + "gle.cloud.dataproc.v1.NodeInitialization" - + "ActionB\003\340A\001\022J\n\021encryption_config\030\017 \001(\0132*" - + ".google.cloud.dataproc.v1.EncryptionConf" - + "igB\003\340A\001\022L\n\022autoscaling_config\030\022 \001(\0132+.go" - + "ogle.cloud.dataproc.v1.AutoscalingConfig" - + "B\003\340A\001\022F\n\017security_config\030\020 \001(\0132(.google." - + "cloud.dataproc.v1.SecurityConfigB\003\340A\001\022H\n" - + "\020lifecycle_config\030\021 \001(\0132).google.cloud.d" - + "ataproc.v1.LifecycleConfigB\003\340A\001\022F\n\017endpo" - + "int_config\030\023 \001(\0132(.google.cloud.dataproc" - + ".v1.EndpointConfigB\003\340A\001\022H\n\020metastore_con" - + "fig\030\024 \001(\0132).google.cloud.dataproc.v1.Met" - + "astoreConfigB\003\340A\001\022S\n\026dataproc_metric_con" - + "fig\030\027 \001(\0132..google.cloud.dataproc.v1.Dat" - + "aprocMetricConfigB\003\340A\001\"\204\002\n\024VirtualCluste" - + "rConfig\022\033\n\016staging_bucket\030\001 \001(\tB\003\340A\001\022[\n\031" - + "kubernetes_cluster_config\030\006 \001(\01321.google" - + ".cloud.dataproc.v1.KubernetesClusterConf" - + "igB\003\340A\002H\000\022Y\n\031auxiliary_services_config\030\007" - + " \001(\01321.google.cloud.dataproc.v1.Auxiliar" - + "yServicesConfigB\003\340A\001B\027\n\025infrastructure_c" - + "onfig\"\301\001\n\027AuxiliaryServicesConfig\022H\n\020met" - + "astore_config\030\001 \001(\0132).google.cloud.datap" - + "roc.v1.MetastoreConfigB\003\340A\001\022\\\n\033spark_his" - + "tory_server_config\030\002 \001(\01322.google.cloud." - + "dataproc.v1.SparkHistoryServerConfigB\003\340A" - + "\001\"\272\001\n\016EndpointConfig\022P\n\nhttp_ports\030\001 \003(\013" - + "27.google.cloud.dataproc.v1.EndpointConf" - + "ig.HttpPortsEntryB\003\340A\003\022$\n\027enable_http_po" - + "rt_access\030\002 \001(\010B\003\340A\001\0320\n\016HttpPortsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\021Autosc" - + "alingConfig\022\027\n\npolicy_uri\030\001 \001(\tB\003\340A\001\"4\n\020" - + "EncryptionConfig\022 \n\023gce_pd_kms_key_name\030" - + "\001 \001(\tB\003\340A\001\"\233\007\n\020GceClusterConfig\022\025\n\010zone_" - + "uri\030\001 \001(\tB\003\340A\001\022\030\n\013network_uri\030\002 \001(\tB\003\340A\001" - + "\022\033\n\016subnetwork_uri\030\006 \001(\tB\003\340A\001\022\035\n\020interna" - + "l_ip_only\030\007 \001(\010B\003\340A\001\022k\n\032private_ipv6_goo" - + "gle_access\030\014 \001(\0162B.google.cloud.dataproc" - + ".v1.GceClusterConfig.PrivateIpv6GoogleAc" - + "cessB\003\340A\001\022\034\n\017service_account\030\010 \001(\tB\003\340A\001\022" - + "#\n\026service_account_scopes\030\003 \003(\tB\003\340A\001\022\014\n\004" - + "tags\030\004 \003(\t\022J\n\010metadata\030\005 \003(\01328.google.cl" - + "oud.dataproc.v1.GceClusterConfig.Metadat" - + "aEntry\022P\n\024reservation_affinity\030\013 \001(\0132-.g" - + "oogle.cloud.dataproc.v1.ReservationAffin" - + "ityB\003\340A\001\022M\n\023node_group_affinity\030\r \001(\0132+." - + "google.cloud.dataproc.v1.NodeGroupAffini" - + "tyB\003\340A\001\022W\n\030shielded_instance_config\030\016 \001(" - + "\01320.google.cloud.dataproc.v1.ShieldedIns" - + "tanceConfigB\003\340A\001\022_\n\034confidential_instanc" - + "e_config\030\017 \001(\01324.google.cloud.dataproc.v" - + "1.ConfidentialInstanceConfigB\003\340A\001\032/\n\rMet" - + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\203\001\n\027PrivateIpv6GoogleAccess\022*\n&PRIVAT" - + "E_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n\027IN" - + "HERIT_FROM_SUBNETWORK\020\001\022\014\n\010OUTBOUND\020\002\022\021\n" - + "\rBIDIRECTIONAL\020\003\"0\n\021NodeGroupAffinity\022\033\n" - + "\016node_group_uri\030\001 \001(\tB\003\340A\002\"}\n\026ShieldedIn" - + "stanceConfig\022\037\n\022enable_secure_boot\030\001 \001(\010" - + "B\003\340A\001\022\030\n\013enable_vtpm\030\002 \001(\010B\003\340A\001\022(\n\033enabl" - + "e_integrity_monitoring\030\003 \001(\010B\003\340A\001\"F\n\032Con" - + "fidentialInstanceConfig\022(\n\033enable_confid" - + "ential_compute\030\001 \001(\010B\003\340A\001\"\315\004\n\023InstanceGr" - + "oupConfig\022\032\n\rnum_instances\030\001 \001(\005B\003\340A\001\022\033\n" - + "\016instance_names\030\002 \003(\tB\003\340A\003\022\026\n\timage_uri\030" - + "\003 \001(\tB\003\340A\001\022\035\n\020machine_type_uri\030\004 \001(\tB\003\340A" - + "\001\022>\n\013disk_config\030\005 \001(\0132$.google.cloud.da" - + "taproc.v1.DiskConfigB\003\340A\001\022\033\n\016is_preempti" - + "ble\030\006 \001(\010B\003\340A\003\022Y\n\016preemptibility\030\n \001(\0162<" - + ".google.cloud.dataproc.v1.InstanceGroupC" - + "onfig.PreemptibilityB\003\340A\001\022O\n\024managed_gro" - + "up_config\030\007 \001(\0132,.google.cloud.dataproc." - + "v1.ManagedGroupConfigB\003\340A\003\022F\n\014accelerato" - + "rs\030\010 \003(\0132+.google.cloud.dataproc.v1.Acce" - + "leratorConfigB\003\340A\001\022\035\n\020min_cpu_platform\030\t" - + " \001(\tB\003\340A\001\"V\n\016Preemptibility\022\036\n\032PREEMPTIB" - + "ILITY_UNSPECIFIED\020\000\022\023\n\017NON_PREEMPTIBLE\020\001" - + "\022\017\n\013PREEMPTIBLE\020\002\"c\n\022ManagedGroupConfig\022" - + "#\n\026instance_template_name\030\001 \001(\tB\003\340A\003\022(\n\033" - + "instance_group_manager_name\030\002 \001(\tB\003\340A\003\"L" - + "\n\021AcceleratorConfig\022\034\n\024accelerator_type_" - + "uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005\"\210\001\n" - + "\nDiskConfig\022\033\n\016boot_disk_type\030\003 \001(\tB\003\340A\001" - + "\022\036\n\021boot_disk_size_gb\030\001 \001(\005B\003\340A\001\022\033\n\016num_" - + "local_ssds\030\002 \001(\005B\003\340A\001\022 \n\023local_ssd_inter" - + "face\030\004 \001(\tB\003\340A\001\"s\n\030NodeInitializationAct" - + "ion\022\034\n\017executable_file\030\001 \001(\tB\003\340A\002\0229\n\021exe" - + "cution_timeout\030\002 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"\307\003\n\rClusterStatus\022A\n\005state\030" - + "\001 \001(\0162-.google.cloud.dataproc.v1.Cluster" - + "Status.StateB\003\340A\003\022\026\n\006detail\030\002 \001(\tB\006\340A\003\340A" - + "\001\0229\n\020state_start_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022G\n\010substate\030\004 \001(\01620" - + ".google.cloud.dataproc.v1.ClusterStatus." - + "SubstateB\003\340A\003\"\230\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010" - + "CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\027\n\023ER" - + "ROR_DUE_TO_UPDATE\020\t\022\014\n\010DELETING\020\004\022\014\n\010UPD" - + "ATING\020\005\022\014\n\010STOPPING\020\006\022\013\n\007STOPPED\020\007\022\014\n\010ST" - + "ARTING\020\010\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n" - + "\tUNHEALTHY\020\001\022\020\n\014STALE_STATUS\020\002\"\240\001\n\016Secur" - + "ityConfig\022F\n\017kerberos_config\030\001 \001(\0132(.goo" - + "gle.cloud.dataproc.v1.KerberosConfigB\003\340A" - + "\001\022F\n\017identity_config\030\002 \001(\0132(.google.clou" - + "d.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n\016Ke" - + "rberosConfig\022\034\n\017enable_kerberos\030\001 \001(\010B\003\340" - + "A\001\022(\n\033root_principal_password_uri\030\002 \001(\tB" - + "\003\340A\001\022\030\n\013kms_key_uri\030\003 \001(\tB\003\340A\001\022\031\n\014keysto" - + "re_uri\030\004 \001(\tB\003\340A\001\022\033\n\016truststore_uri\030\005 \001(" - + "\tB\003\340A\001\022\"\n\025keystore_password_uri\030\006 \001(\tB\003\340" - + "A\001\022\035\n\020key_password_uri\030\007 \001(\tB\003\340A\001\022$\n\027tru" - + "ststore_password_uri\030\010 \001(\tB\003\340A\001\022$\n\027cross" - + "_realm_trust_realm\030\t \001(\tB\003\340A\001\022\"\n\025cross_r" - + "ealm_trust_kdc\030\n \001(\tB\003\340A\001\022+\n\036cross_realm" - + "_trust_admin_server\030\013 \001(\tB\003\340A\001\0222\n%cross_" - + "realm_trust_shared_password_uri\030\014 \001(\tB\003\340" - + "A\001\022\033\n\016kdc_db_key_uri\030\r \001(\tB\003\340A\001\022\037\n\022tgt_l" - + "ifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n\005realm\030\017 \001(\tB" - + "\003\340A\001\"\306\001\n\016IdentityConfig\022r\n\034user_service_" - + "account_mapping\030\001 \003(\0132G.google.cloud.dat" - + "aproc.v1.IdentityConfig.UserServiceAccou" - + "ntMappingEntryB\003\340A\002\032@\n\036UserServiceAccoun" - + "tMappingEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\371\001\n\016SoftwareConfig\022\032\n\rimage_versio" - + "n\030\001 \001(\tB\003\340A\001\022Q\n\nproperties\030\002 \003(\01328.googl" - + "e.cloud.dataproc.v1.SoftwareConfig.Prope" - + "rtiesEntryB\003\340A\001\022E\n\023optional_components\030\003" - + " \003(\0162#.google.cloud.dataproc.v1.Componen" - + "tB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\203\002\n\017LifecycleConfig\0227\n" - + "\017idle_delete_ttl\030\001 \001(\0132\031.google.protobuf" - + ".DurationB\003\340A\001\022;\n\020auto_delete_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\001H\000\0229\n\017a" - + "uto_delete_ttl\030\003 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001H\000\0228\n\017idle_start_time\030\004 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003B\005\n\003ttl\"" - + "_\n\017MetastoreConfig\022L\n\032dataproc_metastore" - + "_service\030\001 \001(\tB(\340A\002\372A\"\n metastore.google" - + "apis.com/Service\"\377\002\n\024DataprocMetricConfi" - + "g\022K\n\007metrics\030\001 \003(\01325.google.cloud.datapr" - + "oc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200" - + "\001\n\006Metric\022W\n\rmetric_source\030\001 \001(\0162;.googl" - + "e.cloud.dataproc.v1.DataprocMetricConfig" - + ".MetricSourceB\003\340A\002\022\035\n\020metric_overrides\030\002" - + " \003(\tB\003\340A\001\"\226\001\n\014MetricSource\022\035\n\031METRIC_SOU" - + "RCE_UNSPECIFIED\020\000\022\035\n\031MONITORING_AGENT_DE" - + "FAULTS\020\001\022\010\n\004HDFS\020\002\022\t\n\005SPARK\020\003\022\010\n\004YARN\020\004\022" - + "\030\n\024SPARK_HISTORY_SERVER\020\005\022\017\n\013HIVESERVER2" - + "\020\006\"\232\002\n\016ClusterMetrics\022O\n\014hdfs_metrics\030\001 " - + "\003(\01329.google.cloud.dataproc.v1.ClusterMe" - + "trics.HdfsMetricsEntry\022O\n\014yarn_metrics\030\002" - + " \003(\01329.google.cloud.dataproc.v1.ClusterM" - + "etrics.YarnMetricsEntry\0322\n\020HdfsMetricsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020Y" - + "arnMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\003:\0028\001\"\356\001\n\024CreateClusterRequest\022\027\n\nproj" - + "ect_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\0227" - + "\n\007cluster\030\002 \001(\0132!.google.cloud.dataproc." - + "v1.ClusterB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" - + "\022V\n action_on_failed_primary_workers\030\005 \001" - + "(\0162\'.google.cloud.dataproc.v1.FailureAct" - + "ionB\003\340A\001\"\256\002\n\024UpdateClusterRequest\022\027\n\npro" - + "ject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\005 \001(\tB\003\340A\002\022" - + "\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\0227\n\007cluster\030\003 " - + "\001(\0132!.google.cloud.dataproc.v1.ClusterB\003" - + "\340A\002\022E\n\035graceful_decommission_timeout\030\006 \001" - + "(\0132\031.google.protobuf.DurationB\003\340A\001\0224\n\013up" - + "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\022\027\n\nrequest_id\030\007 \001(\tB\003\340A\001\"\221\001\n\022St" - + "opClusterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A" - + "\002\022\023\n\006region\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003" - + " \001(\tB\003\340A\002\022\031\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" - + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n\023StartClusterRe" - + "quest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region" - + "\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\003 \001(\tB\003\340A\002\022\031" - + "\n\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030" - + "\005 \001(\tB\003\340A\001\"\223\001\n\024DeleteClusterRequest\022\027\n\np" - + "roject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A" - + "\002\022\031\n\014cluster_name\030\002 \001(\tB\003\340A\002\022\031\n\014cluster_" - + "uuid\030\004 \001(\tB\003\340A\001\022\027\n\nrequest_id\030\005 \001(\tB\003\340A\001" - + "\"\\\n\021GetClusterRequest\022\027\n\nproject_id\030\001 \001(" - + "\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_n" - + "ame\030\002 \001(\tB\003\340A\002\"\211\001\n\023ListClustersRequest\022\027" - + "\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\004 \001(\tB" - + "\003\340A\002\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\026\n\tpage_size\030\002" - + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"n\n\024Li" - + "stClustersResponse\0228\n\010clusters\030\001 \003(\0132!.g" - + "oogle.cloud.dataproc.v1.ClusterB\003\340A\003\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\003\"a\n\026DiagnoseCl" - + "usterRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n" - + "\006region\030\003 \001(\tB\003\340A\002\022\031\n\014cluster_name\030\002 \001(\t" - + "B\003\340A\002\"1\n\026DiagnoseClusterResults\022\027\n\noutpu" - + "t_uri\030\001 \001(\tB\003\340A\003\"\370\001\n\023ReservationAffinity" - + "\022Y\n\030consume_reservation_type\030\001 \001(\01622.goo" - + "gle.cloud.dataproc.v1.ReservationAffinit" - + "y.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030" - + "\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" - + "\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020" - + "\002\022\030\n\024SPECIFIC_RESERVATION\020\0032\344\020\n\021ClusterC" - + "ontroller\022\200\002\n\rCreateCluster\022..google.clo" - + "ud.dataproc.v1.CreateClusterRequest\032\035.go" - + "ogle.longrunning.Operation\"\237\001\202\323\344\223\002>\"3/v1" - + "/projects/{project_id}/regions/{region}/" - + "clusters:\007cluster\332A\031project_id,region,cl" - + "uster\312A<\n\007Cluster\0221google.cloud.dataproc" - + ".v1.ClusterOperationMetadata\022\250\002\n\rUpdateC" - + "luster\022..google.cloud.dataproc.v1.Update" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\307\001\202\323\344\223\002M2B/v1/projects/{project_id" - + "}/regions/{region}/clusters/{cluster_nam" - + "e}:\007cluster\332A2project_id,region,cluster_" - + "name,cluster,update_mask\312A<\n\007Cluster\0221go" - + "ogle.cloud.dataproc.v1.ClusterOperationM" - + "etadata\022\356\001\n\013StopCluster\022,.google.cloud.d" - + "ataproc.v1.StopClusterRequest\032\035.google.l" - + "ongrunning.Operation\"\221\001\202\323\344\223\002L\"G/v1/proje" - + "cts/{project_id}/regions/{region}/cluste" - + "rs/{cluster_name}:stop:\001*\312A<\n\007Cluster\0221g" - + "oogle.cloud.dataproc.v1.ClusterOperation" - + "Metadata\022\361\001\n\014StartCluster\022-.google.cloud" - + ".dataproc.v1.StartClusterRequest\032\035.googl" - + "e.longrunning.Operation\"\222\001\202\323\344\223\002M\"H/v1/pr" - + "ojects/{project_id}/regions/{region}/clu" - + "sters/{cluster_name}:start:\001*\312A<\n\007Cluste" - + "r\0221google.cloud.dataproc.v1.ClusterOpera" - + "tionMetadata\022\231\002\n\rDeleteCluster\022..google." - + "cloud.dataproc.v1.DeleteClusterRequest\032\035" - + ".google.longrunning.Operation\"\270\001\202\323\344\223\002D*B" - + "/v1/projects/{project_id}/regions/{regio" - + "n}/clusters/{cluster_name}\332A\036project_id," - + "region,cluster_name\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.dataproc.v1.ClusterO" - + "perationMetadata\022\311\001\n\nGetCluster\022+.google" - + ".cloud.dataproc.v1.GetClusterRequest\032!.g" - + "oogle.cloud.dataproc.v1.Cluster\"k\202\323\344\223\002D\022" - + "B/v1/projects/{project_id}/regions/{regi" - + "on}/clusters/{cluster_name}\332A\036project_id" - + ",region,cluster_name\022\331\001\n\014ListClusters\022-." - + "google.cloud.dataproc.v1.ListClustersReq" - + "uest\032..google.cloud.dataproc.v1.ListClus" - + "tersResponse\"j\202\323\344\223\0025\0223/v1/projects/{proj" - + "ect_id}/regions/{region}/clusters\332A\021proj" - + "ect_id,region\332A\030project_id,region,filter" - + "\022\252\002\n\017DiagnoseCluster\0220.google.cloud.data" - + "proc.v1.DiagnoseClusterRequest\032\035.google." - + "longrunning.Operation\"\305\001\202\323\344\223\002P\"K/v1/proj" - + "ects/{project_id}/regions/{region}/clust" - + "ers/{cluster_name}:diagnose:\001*\332A\036project" - + "_id,region,cluster_name\312AK\n\026DiagnoseClus" - + "terResults\0221google.cloud.dataproc.v1.Clu" - + "sterOperationMetadata\032K\312A\027dataproc.googl" - + "eapis.com\322A.https://www.googleapis.com/a" - + "uth/cloud-platformB\263\002\n\034com.google.cloud." - + "dataproc.v1B\rClustersProtoP\001Z@google.gol" - + "ang.org/genproto/googleapis/cloud/datapr" - + "oc/v1;dataproc\352A^\n container.googleapis." - + "com/Cluster\022:projects/{project}/location" - + "s/{location}/clusters/{cluster}\352A^\n meta" - + "store.googleapis.com/Service\022:projects/{" - + "project}/locations/{location}/services/{" - + "service}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_descriptor, - new java.lang.String[] { - "ProjectId", - "ClusterName", - "Config", - "VirtualClusterConfig", - "Labels", - "Status", - "StatusHistory", - "ClusterUuid", - "Metrics", - }); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Cluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Cluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterConfig_descriptor, - new java.lang.String[] { - "ConfigBucket", - "TempBucket", - "GceClusterConfig", - "MasterConfig", - "WorkerConfig", - "SecondaryWorkerConfig", - "SoftwareConfig", - "InitializationActions", - "EncryptionConfig", - "AutoscalingConfig", - "SecurityConfig", - "LifecycleConfig", - "EndpointConfig", - "MetastoreConfig", - "DataprocMetricConfig", - }); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor, - new java.lang.String[] { - "StagingBucket", - "KubernetesClusterConfig", - "AuxiliaryServicesConfig", - "InfrastructureConfig", - }); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AuxiliaryServicesConfig_descriptor, - new java.lang.String[] { - "MetastoreConfig", "SparkHistoryServerConfig", - }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor, - new java.lang.String[] { - "HttpPorts", "EnableHttpPortAccess", - }); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AutoscalingConfig_descriptor, - new java.lang.String[] { - "PolicyUri", - }); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor, - new java.lang.String[] { - "GcePdKmsKeyName", - }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor, - new java.lang.String[] { - "ZoneUri", - "NetworkUri", - "SubnetworkUri", - "InternalIpOnly", - "PrivateIpv6GoogleAccess", - "ServiceAccount", - "ServiceAccountScopes", - "Tags", - "Metadata", - "ReservationAffinity", - "NodeGroupAffinity", - "ShieldedInstanceConfig", - "ConfidentialInstanceConfig", - }); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = - internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor, - new java.lang.String[] { - "NodeGroupUri", - }); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor, - new java.lang.String[] { - "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", - }); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, - new java.lang.String[] { - "EnableConfidentialCompute", - }); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor, - new java.lang.String[] { - "NumInstances", - "InstanceNames", - "ImageUri", - "MachineTypeUri", - "DiskConfig", - "IsPreemptible", - "Preemptibility", - "ManagedGroupConfig", - "Accelerators", - "MinCpuPlatform", - }); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor, - new java.lang.String[] { - "InstanceTemplateName", "InstanceGroupManagerName", - }); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_AcceleratorConfig_descriptor, - new java.lang.String[] { - "AcceleratorTypeUri", "AcceleratorCount", - }); - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor, - new java.lang.String[] { - "BootDiskType", "BootDiskSizeGb", "NumLocalSsds", "LocalSsdInterface", - }); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor, - new java.lang.String[] { - "ExecutableFile", "ExecutionTimeout", - }); - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_ClusterStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterStatus_descriptor, - new java.lang.String[] { - "State", "Detail", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor, - new java.lang.String[] { - "KerberosConfig", "IdentityConfig", - }); - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor, - new java.lang.String[] { - "EnableKerberos", - "RootPrincipalPasswordUri", - "KmsKeyUri", - "KeystoreUri", - "TruststoreUri", - "KeystorePasswordUri", - "KeyPasswordUri", - "TruststorePasswordUri", - "CrossRealmTrustRealm", - "CrossRealmTrustKdc", - "CrossRealmTrustAdminServer", - "CrossRealmTrustSharedPasswordUri", - "KdcDbKeyUri", - "TgtLifetimeHours", - "Realm", - }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor, - new java.lang.String[] { - "UserServiceAccountMapping", - }); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor = - internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor, - new java.lang.String[] { - "ImageVersion", "Properties", "OptionalComponents", - }); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor, - new java.lang.String[] { - "IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "IdleStartTime", "Ttl", - }); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor, - new java.lang.String[] { - "DataprocMetastoreService", - }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor, - new java.lang.String[] { - "Metrics", - }); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor = - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor, - new java.lang.String[] { - "MetricSource", "MetricOverrides", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor, - new java.lang.String[] { - "HdfsMetrics", "YarnMetrics", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_HdfsMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterMetrics_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterMetrics_YarnMetricsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Cluster", "RequestId", "ActionOnFailedPrimaryWorkers", - }); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "ClusterName", - "Cluster", - "GracefulDecommissionTimeout", - "UpdateMask", - "RequestId", - }); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor, - new java.lang.String[] { - "Clusters", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "ClusterName", - }); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor, - new java.lang.String[] { - "OutputUri", - }); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor, - new java.lang.String[] { - "ConsumeReservationType", "Key", "Values", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.dataproc.v1.SharedProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java deleted file mode 100644 index 95757b56..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java +++ /dev/null @@ -1,404 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Cluster components that can be activated.
- * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.Component} - */ -public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified component. Specifying this will cause Cluster creation to fail.
-   * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-   * The Anaconda python distribution. The Anaconda component is not supported
-   * in the Dataproc
-   * <a
-   * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0">2.0
-   * image</a>. The 2.0 image is pre-installed with Miniconda.
-   * 
- * - * ANACONDA = 5; - */ - ANACONDA(5), - /** - * - * - *
-   * Docker
-   * 
- * - * DOCKER = 13; - */ - DOCKER(13), - /** - * - * - *
-   * The Druid query engine. (alpha)
-   * 
- * - * DRUID = 9; - */ - DRUID(9), - /** - * - * - *
-   * Flink
-   * 
- * - * FLINK = 14; - */ - FLINK(14), - /** - * - * - *
-   * HBase. (beta)
-   * 
- * - * HBASE = 11; - */ - HBASE(11), - /** - * - * - *
-   * The Hive Web HCatalog (the REST service for accessing HCatalog).
-   * 
- * - * HIVE_WEBHCAT = 3; - */ - HIVE_WEBHCAT(3), - /** - * - * - *
-   * The Jupyter Notebook.
-   * 
- * - * JUPYTER = 1; - */ - JUPYTER(1), - /** - * - * - *
-   * The Presto query engine.
-   * 
- * - * PRESTO = 6; - */ - PRESTO(6), - /** - * - * - *
-   * The Ranger service.
-   * 
- * - * RANGER = 12; - */ - RANGER(12), - /** - * - * - *
-   * The Solr service.
-   * 
- * - * SOLR = 10; - */ - SOLR(10), - /** - * - * - *
-   * The Zeppelin notebook.
-   * 
- * - * ZEPPELIN = 4; - */ - ZEPPELIN(4), - /** - * - * - *
-   * The Zookeeper service.
-   * 
- * - * ZOOKEEPER = 8; - */ - ZOOKEEPER(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified component. Specifying this will cause Cluster creation to fail.
-   * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The Anaconda python distribution. The Anaconda component is not supported
-   * in the Dataproc
-   * <a
-   * href="/dataproc/docs/concepts/versioning/dataproc-release-2.0">2.0
-   * image</a>. The 2.0 image is pre-installed with Miniconda.
-   * 
- * - * ANACONDA = 5; - */ - public static final int ANACONDA_VALUE = 5; - /** - * - * - *
-   * Docker
-   * 
- * - * DOCKER = 13; - */ - public static final int DOCKER_VALUE = 13; - /** - * - * - *
-   * The Druid query engine. (alpha)
-   * 
- * - * DRUID = 9; - */ - public static final int DRUID_VALUE = 9; - /** - * - * - *
-   * Flink
-   * 
- * - * FLINK = 14; - */ - public static final int FLINK_VALUE = 14; - /** - * - * - *
-   * HBase. (beta)
-   * 
- * - * HBASE = 11; - */ - public static final int HBASE_VALUE = 11; - /** - * - * - *
-   * The Hive Web HCatalog (the REST service for accessing HCatalog).
-   * 
- * - * HIVE_WEBHCAT = 3; - */ - public static final int HIVE_WEBHCAT_VALUE = 3; - /** - * - * - *
-   * The Jupyter Notebook.
-   * 
- * - * JUPYTER = 1; - */ - public static final int JUPYTER_VALUE = 1; - /** - * - * - *
-   * The Presto query engine.
-   * 
- * - * PRESTO = 6; - */ - public static final int PRESTO_VALUE = 6; - /** - * - * - *
-   * The Ranger service.
-   * 
- * - * RANGER = 12; - */ - public static final int RANGER_VALUE = 12; - /** - * - * - *
-   * The Solr service.
-   * 
- * - * SOLR = 10; - */ - public static final int SOLR_VALUE = 10; - /** - * - * - *
-   * The Zeppelin notebook.
-   * 
- * - * ZEPPELIN = 4; - */ - public static final int ZEPPELIN_VALUE = 4; - /** - * - * - *
-   * The Zookeeper service.
-   * 
- * - * ZOOKEEPER = 8; - */ - public static final int ZOOKEEPER_VALUE = 8; - - 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 Component 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 Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 5: - return ANACONDA; - case 13: - return DOCKER; - case 9: - return DRUID; - case 14: - return FLINK; - case 11: - return HBASE; - case 3: - return HIVE_WEBHCAT; - case 1: - return JUPYTER; - case 6: - return PRESTO; - case 12: - return RANGER; - case 10: - return SOLR; - case 4: - return ZEPPELIN; - case 8: - return ZOOKEEPER; - 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 Component findValueByNumber(int number) { - return Component.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.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Component[] VALUES = values(); - - public static Component 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 Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.Component) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java deleted file mode 100644 index 911a7f76..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ /dev/null @@ -1,530 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Confidential Instance Config for clusters using [Confidential
- * VMs](https://cloud.google.com/compute/confidential-vm/docs)
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} - */ -public final class ConfidentialInstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - ConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfidentialInstanceConfig.newBuilder() to construct. - private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfidentialInstanceConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfidentialInstanceConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); - } - - public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; - private boolean enableConfidentialCompute_; - /** - * - * - *
-   * Optional. Defines whether the instance should have confidential compute enabled.
-   * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialCompute. - */ - @java.lang.Override - public boolean getEnableConfidentialCompute() { - return enableConfidentialCompute_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableConfidentialCompute_ != false) { - output.writeBool(1, enableConfidentialCompute_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ConfidentialInstanceConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other = - (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; - - if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig 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.dataproc.v1.ConfidentialInstanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs)
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.class, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - enableConfidentialCompute_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig build() { - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig buildPartial() { - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig result = - new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(this); - result.enableConfidentialCompute_ = enableConfidentialCompute_; - 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.dataproc.v1.ConfidentialInstanceConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig other) { - if (other == com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance()) - return this; - if (other.getEnableConfidentialCompute() != false) { - setEnableConfidentialCompute(other.getEnableConfidentialCompute()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableConfidentialCompute_ = input.readBool(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean enableConfidentialCompute_; - /** - * - * - *
-     * Optional. Defines whether the instance should have confidential compute enabled.
-     * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialCompute. - */ - @java.lang.Override - public boolean getEnableConfidentialCompute() { - return enableConfidentialCompute_; - } - /** - * - * - *
-     * Optional. Defines whether the instance should have confidential compute enabled.
-     * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableConfidentialCompute to set. - * @return This builder for chaining. - */ - public Builder setEnableConfidentialCompute(boolean value) { - - enableConfidentialCompute_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Defines whether the instance should have confidential compute enabled.
-     * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableConfidentialCompute() { - - enableConfidentialCompute_ = false; - 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.dataproc.v1.ConfidentialInstanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - private static final com.google.cloud.dataproc.v1.ConfidentialInstanceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ConfidentialInstanceConfig(); - } - - public static com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java deleted file mode 100644 index dcf27cf8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ /dev/null @@ -1,38 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ConfidentialInstanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ConfidentialInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Defines whether the instance should have confidential compute enabled.
-   * 
- * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialCompute. - */ - boolean getEnableConfidentialCompute(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java deleted file mode 100644 index f907627d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java +++ /dev/null @@ -1,972 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to create an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} - */ -public final class CreateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) - CreateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateAutoscalingPolicyRequest.newBuilder() to construct. - private CreateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateAutoscalingPolicyRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 POLICY_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - @java.lang.Override - public boolean hasPolicy() { - return policy_ != null; - } - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (policy_ != null) { - output.writeMessage(2, getPolicy()); - } - getUnknownFields().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 (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasPolicy() != other.hasPolicy()) return false; - if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasPolicy()) { - hash = (37 * hash) + POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPolicy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest 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.dataproc.v1.CreateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest 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.dataproc.v1.CreateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest 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.dataproc.v1.CreateAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; - policyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_CreateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(this); - result.parent_ = parent_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.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.dataproc.v1.CreateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasPolicy()) { - mergePolicy(other.getPolicy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.create`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.create`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policyBuilder_; - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } else { - return policyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - policyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy( - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { - if (policyBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - policyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - policyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; - policyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - - onChanged(); - return getPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - if (policyBuilder_ != null) { - return policyBuilder_.getMessageOrBuilder(); - } else { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - } - /** - * - * - *
-     * Required. The autoscaling policy to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - getPolicyFieldBuilder() { - if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); - policy_ = null; - } - return policyBuilder_; - } - - @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.dataproc.v1.CreateAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index a7571aef..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface CreateAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.create`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.create`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); - /** - * - * - *
-   * Required. The autoscaling policy to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java deleted file mode 100644 index 043efdce..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequest.java +++ /dev/null @@ -1,1333 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to create a batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} - */ -public final class CreateBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateBatchRequest) - CreateBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateBatchRequest.newBuilder() to construct. - private CreateBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateBatchRequest() { - parent_ = ""; - batchId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateBatchRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, - com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this batch will be created.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this batch will be created.
-   * 
- * - * - * 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 BATCH_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.Batch batch_; - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the batch field is set. - */ - @java.lang.Override - public boolean hasBatch() { - return batch_ != null; - } - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The batch. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch getBatch() { - return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; - } - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { - return getBatch(); - } - - public static final int BATCH_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object batchId_; - /** - * - * - *
-   * Optional. The ID to use for the batch, which will become the final component of
-   * the batch's resource name.
-   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-   * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The batchId. - */ - @java.lang.Override - public java.lang.String getBatchId() { - java.lang.Object ref = batchId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batchId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The ID to use for the batch, which will become the final component of
-   * the batch's resource name.
-   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-   * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for batchId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBatchIdBytes() { - java.lang.Object ref = batchId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batchId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the service
-   * receives two
-   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-   * with the same request_id, the second request is ignored and the
-   * Operation that corresponds to the first Batch created and stored
-   * in the backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The value must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the service
-   * receives two
-   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-   * with the same request_id, the second request is ignored and the
-   * Operation that corresponds to the first Batch created and stored
-   * in the backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The value must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (batch_ != null) { - output.writeMessage(2, getBatch()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, batchId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (batch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBatch()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, batchId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.CreateBatchRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.CreateBatchRequest other = - (com.google.cloud.dataproc.v1.CreateBatchRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasBatch() != other.hasBatch()) return false; - if (hasBatch()) { - if (!getBatch().equals(other.getBatch())) return false; - } - if (!getBatchId().equals(other.getBatchId())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasBatch()) { - hash = (37 * hash) + BATCH_FIELD_NUMBER; - hash = (53 * hash) + getBatch().hashCode(); - } - hash = (37 * hash) + BATCH_ID_FIELD_NUMBER; - hash = (53 * hash) + getBatchId().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest 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.dataproc.v1.CreateBatchRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create a batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateBatchRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateBatchRequest) - com.google.cloud.dataproc.v1.CreateBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateBatchRequest.class, - com.google.cloud.dataproc.v1.CreateBatchRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.CreateBatchRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (batchBuilder_ == null) { - batch_ = null; - } else { - batch_ = null; - batchBuilder_ = null; - } - batchId_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_CreateBatchRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateBatchRequest build() { - com.google.cloud.dataproc.v1.CreateBatchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateBatchRequest result = - new com.google.cloud.dataproc.v1.CreateBatchRequest(this); - result.parent_ = parent_; - if (batchBuilder_ == null) { - result.batch_ = batch_; - } else { - result.batch_ = batchBuilder_.build(); - } - result.batchId_ = batchId_; - result.requestId_ = requestId_; - 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.dataproc.v1.CreateBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateBatchRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateBatchRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasBatch()) { - mergeBatch(other.getBatch()); - } - if (!other.getBatchId().isEmpty()) { - batchId_ = other.batchId_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getBatchFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - batchId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this batch will be created.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this batch will be created.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this batch will be created.
-     * 
- * - * - * 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 parent resource where this batch will be created.
-     * 
- * - * - * 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 parent resource where this batch will be created.
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1.Batch batch_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - batchBuilder_; - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the batch field is set. - */ - public boolean hasBatch() { - return batchBuilder_ != null || batch_ != null; - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The batch. - */ - public com.google.cloud.dataproc.v1.Batch getBatch() { - if (batchBuilder_ == null) { - return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; - } else { - return batchBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBatch(com.google.cloud.dataproc.v1.Batch value) { - if (batchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batch_ = value; - onChanged(); - } else { - batchBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBatch(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { - if (batchBuilder_ == null) { - batch_ = builderForValue.build(); - onChanged(); - } else { - batchBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeBatch(com.google.cloud.dataproc.v1.Batch value) { - if (batchBuilder_ == null) { - if (batch_ != null) { - batch_ = - com.google.cloud.dataproc.v1.Batch.newBuilder(batch_).mergeFrom(value).buildPartial(); - } else { - batch_ = value; - } - onChanged(); - } else { - batchBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearBatch() { - if (batchBuilder_ == null) { - batch_ = null; - onChanged(); - } else { - batch_ = null; - batchBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.Batch.Builder getBatchBuilder() { - - onChanged(); - return getBatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder() { - if (batchBuilder_ != null) { - return batchBuilder_.getMessageOrBuilder(); - } else { - return batch_ == null ? com.google.cloud.dataproc.v1.Batch.getDefaultInstance() : batch_; - } - } - /** - * - * - *
-     * Required. The batch to create.
-     * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - getBatchFieldBuilder() { - if (batchBuilder_ == null) { - batchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder>( - getBatch(), getParentForChildren(), isClean()); - batch_ = null; - } - return batchBuilder_; - } - - private java.lang.Object batchId_ = ""; - /** - * - * - *
-     * Optional. The ID to use for the batch, which will become the final component of
-     * the batch's resource name.
-     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-     * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The batchId. - */ - public java.lang.String getBatchId() { - java.lang.Object ref = batchId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - batchId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The ID to use for the batch, which will become the final component of
-     * the batch's resource name.
-     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-     * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for batchId. - */ - public com.google.protobuf.ByteString getBatchIdBytes() { - java.lang.Object ref = batchId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - batchId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The ID to use for the batch, which will become the final component of
-     * the batch's resource name.
-     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-     * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The batchId to set. - * @return This builder for chaining. - */ - public Builder setBatchId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - batchId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID to use for the batch, which will become the final component of
-     * the batch's resource name.
-     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-     * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBatchId() { - - batchId_ = getDefaultInstance().getBatchId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID to use for the batch, which will become the final component of
-     * the batch's resource name.
-     * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-     * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for batchId to set. - * @return This builder for chaining. - */ - public Builder setBatchIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - batchId_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the service
-     * receives two
-     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-     * with the same request_id, the second request is ignored and the
-     * Operation that corresponds to the first Batch created and stored
-     * in the backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The value must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the service
-     * receives two
-     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-     * with the same request_id, the second request is ignored and the
-     * Operation that corresponds to the first Batch created and stored
-     * in the backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The value must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the service
-     * receives two
-     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-     * with the same request_id, the second request is ignored and the
-     * Operation that corresponds to the first Batch created and stored
-     * in the backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The value must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the service
-     * receives two
-     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-     * with the same request_id, the second request is ignored and the
-     * Operation that corresponds to the first Batch created and stored
-     * in the backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The value must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the service
-     * receives two
-     * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-     * with the same request_id, the second request is ignored and the
-     * Operation that corresponds to the first Batch created and stored
-     * in the backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The value must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.CreateBatchRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateBatchRequest) - private static final com.google.cloud.dataproc.v1.CreateBatchRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateBatchRequest(); - } - - public static com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateBatchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java deleted file mode 100644 index 0ea10ac4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateBatchRequestOrBuilder.java +++ /dev/null @@ -1,164 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface CreateBatchRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource where this batch will be created.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this batch will be created.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the batch field is set. - */ - boolean hasBatch(); - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The batch. - */ - com.google.cloud.dataproc.v1.Batch getBatch(); - /** - * - * - *
-   * Required. The batch to create.
-   * 
- * - * .google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.BatchOrBuilder getBatchOrBuilder(); - - /** - * - * - *
-   * Optional. The ID to use for the batch, which will become the final component of
-   * the batch's resource name.
-   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-   * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The batchId. - */ - java.lang.String getBatchId(); - /** - * - * - *
-   * Optional. The ID to use for the batch, which will become the final component of
-   * the batch's resource name.
-   * This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
-   * 
- * - * string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for batchId. - */ - com.google.protobuf.ByteString getBatchIdBytes(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the service
-   * receives two
-   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-   * with the same request_id, the second request is ignored and the
-   * Operation that corresponds to the first Batch created and stored
-   * in the backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The value must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the service
-   * receives two
-   * [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
-   * with the same request_id, the second request is ignored and the
-   * Operation that corresponds to the first Batch created and stored
-   * in the backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The value must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java deleted file mode 100644 index 8d565493..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java +++ /dev/null @@ -1,1487 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to create a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} - */ -public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateClusterRequest) - CreateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateClusterRequest.newBuilder() to construct. - private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateClusterRequest() { - projectId_ = ""; - region_ = ""; - requestId_ = ""; - actionOnFailedPrimaryWorkers_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, - com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.Cluster cluster_; - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return cluster_ != null; - } - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster getCluster() { - return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; - } - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server receives two
-   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server receives two
-   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER = 5; - private int actionOnFailedPrimaryWorkers_; - /** - * - * - *
-   * Optional. Failure action when primary worker creation fails.
-   * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. - */ - @java.lang.Override - public int getActionOnFailedPrimaryWorkersValue() { - return actionOnFailedPrimaryWorkers_; - } - /** - * - * - *
-   * Optional. Failure action when primary worker creation fails.
-   * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The actionOnFailedPrimaryWorkers. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = - com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); - return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (cluster_ != null) { - output.writeMessage(2, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - if (actionOnFailedPrimaryWorkers_ - != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { - output.writeEnum(5, actionOnFailedPrimaryWorkers_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - if (actionOnFailedPrimaryWorkers_ - != com.google.cloud.dataproc.v1.FailureAction.FAILURE_ACTION_UNSPECIFIED.getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(5, actionOnFailedPrimaryWorkers_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.CreateClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.CreateClusterRequest other = - (com.google.cloud.dataproc.v1.CreateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (actionOnFailedPrimaryWorkers_ != other.actionOnFailedPrimaryWorkers_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - if (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + ACTION_ON_FAILED_PRIMARY_WORKERS_FIELD_NUMBER; - hash = (53 * hash) + actionOnFailedPrimaryWorkers_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest 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.dataproc.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest 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.dataproc.v1.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest 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.dataproc.v1.CreateClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateClusterRequest) - com.google.cloud.dataproc.v1.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateClusterRequest.class, - com.google.cloud.dataproc.v1.CreateClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.CreateClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - requestId_ = ""; - - actionOnFailedPrimaryWorkers_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateClusterRequest build() { - com.google.cloud.dataproc.v1.CreateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateClusterRequest result = - new com.google.cloud.dataproc.v1.CreateClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.requestId_ = requestId_; - result.actionOnFailedPrimaryWorkers_ = actionOnFailedPrimaryWorkers_; - 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.dataproc.v1.CreateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.actionOnFailedPrimaryWorkers_ != 0) { - setActionOnFailedPrimaryWorkersValue(other.getActionOnFailedPrimaryWorkersValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - actionOnFailedPrimaryWorkers_ = input.readEnum(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.cloud.dataproc.v1.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; - } - } - /** - * - * - *
-     * Required. The cluster to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server receives two
-     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server receives two
-     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server receives two
-     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server receives two
-     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server receives two
-     * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private int actionOnFailedPrimaryWorkers_ = 0; - /** - * - * - *
-     * Optional. Failure action when primary worker creation fails.
-     * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. - */ - @java.lang.Override - public int getActionOnFailedPrimaryWorkersValue() { - return actionOnFailedPrimaryWorkers_; - } - /** - * - * - *
-     * Optional. Failure action when primary worker creation fails.
-     * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for actionOnFailedPrimaryWorkers to set. - * @return This builder for chaining. - */ - public Builder setActionOnFailedPrimaryWorkersValue(int value) { - - actionOnFailedPrimaryWorkers_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Failure action when primary worker creation fails.
-     * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The actionOnFailedPrimaryWorkers. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.FailureAction result = - com.google.cloud.dataproc.v1.FailureAction.valueOf(actionOnFailedPrimaryWorkers_); - return result == null ? com.google.cloud.dataproc.v1.FailureAction.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Optional. Failure action when primary worker creation fails.
-     * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The actionOnFailedPrimaryWorkers to set. - * @return This builder for chaining. - */ - public Builder setActionOnFailedPrimaryWorkers( - com.google.cloud.dataproc.v1.FailureAction value) { - if (value == null) { - throw new NullPointerException(); - } - - actionOnFailedPrimaryWorkers_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Failure action when primary worker creation fails.
-     * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearActionOnFailedPrimaryWorkers() { - - actionOnFailedPrimaryWorkers_ = 0; - 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.dataproc.v1.CreateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateClusterRequest) - private static final com.google.cloud.dataproc.v1.CreateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java deleted file mode 100644 index 0903a768..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,185 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface CreateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - boolean hasCluster(); - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.cloud.dataproc.v1.Cluster getCluster(); - /** - * - * - *
-   * Required. The cluster to create.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server receives two
-   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server receives two
-   * [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); - - /** - * - * - *
-   * Optional. Failure action when primary worker creation fails.
-   * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for actionOnFailedPrimaryWorkers. - */ - int getActionOnFailedPrimaryWorkersValue(); - /** - * - * - *
-   * Optional. Failure action when primary worker creation fails.
-   * 
- * - * - * .google.cloud.dataproc.v1.FailureAction action_on_failed_primary_workers = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The actionOnFailedPrimaryWorkers. - */ - com.google.cloud.dataproc.v1.FailureAction getActionOnFailedPrimaryWorkers(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java deleted file mode 100644 index 54383a35..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java +++ /dev/null @@ -1,971 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to create a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} - */ -public final class CreateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) - CreateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateWorkflowTemplateRequest.newBuilder() to construct. - private CreateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateWorkflowTemplateRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (template_ != null) { - output.writeMessage(2, getTemplate()); - } - getUnknownFields().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 (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest 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.dataproc.v1.CreateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest 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.dataproc.v1.CreateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest 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.dataproc.v1.CreateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to create a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.CreateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(this); - result.parent_ = parent_; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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.dataproc.v1.CreateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.create`, the resource name of the
-     *   region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.create`, the resource name of
-     *   the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The Dataproc workflow template to create.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - @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.dataproc.v1.CreateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 0c4883bb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface CreateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.CreateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.create`, the resource name of the
-   *   region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.create`, the resource name of
-   *   the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The Dataproc workflow template to create.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java deleted file mode 100644 index 5215d1c9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfig.java +++ /dev/null @@ -1,2628 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Dataproc metric config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} - */ -public final class DataprocMetricConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig) - DataprocMetricConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataprocMetricConfig.newBuilder() to construct. - private DataprocMetricConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DataprocMetricConfig() { - metrics_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DataprocMetricConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); - } - - /** - * - * - *
-   * A source for the collection of Dataproc OSS metrics (see [available OSS
-   * metrics]
-   * (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource} - */ - public enum MetricSource implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Required unspecified metric source.
-     * 
- * - * METRIC_SOURCE_UNSPECIFIED = 0; - */ - METRIC_SOURCE_UNSPECIFIED(0), - /** - * - * - *
-     * Default monitoring agent metrics. If this source is enabled,
-     * Dataproc enables the monitoring agent in Compute Engine,
-     * and collects default monitoring agent metrics, which are published
-     * with an `agent.googleapis.com` prefix.
-     * 
- * - * MONITORING_AGENT_DEFAULTS = 1; - */ - MONITORING_AGENT_DEFAULTS(1), - /** - * - * - *
-     * HDFS metric source.
-     * 
- * - * HDFS = 2; - */ - HDFS(2), - /** - * - * - *
-     * Spark metric source.
-     * 
- * - * SPARK = 3; - */ - SPARK(3), - /** - * - * - *
-     * YARN metric source.
-     * 
- * - * YARN = 4; - */ - YARN(4), - /** - * - * - *
-     * Spark History Server metric source.
-     * 
- * - * SPARK_HISTORY_SERVER = 5; - */ - SPARK_HISTORY_SERVER(5), - /** - * - * - *
-     * Hiveserver2 metric source.
-     * 
- * - * HIVESERVER2 = 6; - */ - HIVESERVER2(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Required unspecified metric source.
-     * 
- * - * METRIC_SOURCE_UNSPECIFIED = 0; - */ - public static final int METRIC_SOURCE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Default monitoring agent metrics. If this source is enabled,
-     * Dataproc enables the monitoring agent in Compute Engine,
-     * and collects default monitoring agent metrics, which are published
-     * with an `agent.googleapis.com` prefix.
-     * 
- * - * MONITORING_AGENT_DEFAULTS = 1; - */ - public static final int MONITORING_AGENT_DEFAULTS_VALUE = 1; - /** - * - * - *
-     * HDFS metric source.
-     * 
- * - * HDFS = 2; - */ - public static final int HDFS_VALUE = 2; - /** - * - * - *
-     * Spark metric source.
-     * 
- * - * SPARK = 3; - */ - public static final int SPARK_VALUE = 3; - /** - * - * - *
-     * YARN metric source.
-     * 
- * - * YARN = 4; - */ - public static final int YARN_VALUE = 4; - /** - * - * - *
-     * Spark History Server metric source.
-     * 
- * - * SPARK_HISTORY_SERVER = 5; - */ - public static final int SPARK_HISTORY_SERVER_VALUE = 5; - /** - * - * - *
-     * Hiveserver2 metric source.
-     * 
- * - * HIVESERVER2 = 6; - */ - public static final int HIVESERVER2_VALUE = 6; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MetricSource 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 MetricSource forNumber(int value) { - switch (value) { - case 0: - return METRIC_SOURCE_UNSPECIFIED; - case 1: - return MONITORING_AGENT_DEFAULTS; - case 2: - return HDFS; - case 3: - return SPARK; - case 4: - return YARN; - case 5: - return SPARK_HISTORY_SERVER; - case 6: - return HIVESERVER2; - 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 MetricSource findValueByNumber(int number) { - return MetricSource.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.dataproc.v1.DataprocMetricConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final MetricSource[] VALUES = values(); - - public static MetricSource 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 MetricSource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource) - } - - public interface MetricOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Default metrics are collected unless `metricOverrides` are
-     * specified for the metric source (see [Available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * for more information).
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for metricSource. - */ - int getMetricSourceValue(); - /** - * - * - *
-     * Required. Default metrics are collected unless `metricOverrides` are
-     * specified for the metric source (see [Available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * for more information).
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The metricSource. - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource(); - - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the metricOverrides. - */ - java.util.List getMetricOverridesList(); - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of metricOverrides. - */ - int getMetricOverridesCount(); - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The metricOverrides at the given index. - */ - java.lang.String getMetricOverrides(int index); - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the metricOverrides at the given index. - */ - com.google.protobuf.ByteString getMetricOverridesBytes(int index); - } - /** - * - * - *
-   * A Dataproc OSS metric.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} - */ - public static final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) - MetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metric.newBuilder() to construct. - private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Metric() { - metricSource_ = 0; - metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Metric(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); - } - - public static final int METRIC_SOURCE_FIELD_NUMBER = 1; - private int metricSource_; - /** - * - * - *
-     * Required. Default metrics are collected unless `metricOverrides` are
-     * specified for the metric source (see [Available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * for more information).
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for metricSource. - */ - @java.lang.Override - public int getMetricSourceValue() { - return metricSource_; - } - /** - * - * - *
-     * Required. Default metrics are collected unless `metricOverrides` are
-     * specified for the metric source (see [Available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * for more information).
-     * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The metricSource. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED - : result; - } - - public static final int METRIC_OVERRIDES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList metricOverrides_; - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the metricOverrides. - */ - public com.google.protobuf.ProtocolStringList getMetricOverridesList() { - return metricOverrides_; - } - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of metricOverrides. - */ - public int getMetricOverridesCount() { - return metricOverrides_.size(); - } - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The metricOverrides at the given index. - */ - public java.lang.String getMetricOverrides(int index) { - return metricOverrides_.get(index); - } - /** - * - * - *
-     * Optional. Specify one or more [available OSS metrics]
-     * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-     * to collect for the metric course (for the `SPARK` metric source, any
-     * [Spark metric]
-     * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-     * specified).
-     * Provide metrics in the following format:
-     * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-     * Use camelcase as appropriate.
-     * Examples:
-     * ```
-     * yarn:ResourceManager:QueueMetrics:AppsCompleted
-     * spark:driver:DAGScheduler:job.allJobs
-     * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-     * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-     * ```
-     * Notes:
-     * * Only the specified overridden metrics will be collected for the
-     *   metric source. For example, if one or more `spark:executive` metrics
-     *   are listed as metric overrides, other `SPARK` metrics will not be
-     *   collected. The collection of the default metrics for other OSS metric
-     *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-     *   sources are enabled, and overrides are provided for Spark metrics only,
-     *   all default YARN metrics will be collected.
-     * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the metricOverrides at the given index. - */ - public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { - return metricOverrides_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (metricSource_ - != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource - .METRIC_SOURCE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, metricSource_); - } - for (int i = 0; i < metricOverrides_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricOverrides_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metricSource_ - != com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource - .METRIC_SOURCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, metricSource_); - } - { - int dataSize = 0; - for (int i = 0; i < metricOverrides_.size(); i++) { - dataSize += computeStringSizeNoTag(metricOverrides_.getRaw(i)); - } - size += dataSize; - size += 1 * getMetricOverridesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other = - (com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) obj; - - if (metricSource_ != other.metricSource_) return false; - if (!getMetricOverridesList().equals(other.getMetricOverridesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METRIC_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + metricSource_; - if (getMetricOverridesCount() > 0) { - hash = (37 * hash) + METRIC_OVERRIDES_FIELD_NUMBER; - hash = (53 * hash) + getMetricOverridesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric 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.dataproc.v1.DataprocMetricConfig.Metric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc OSS metric.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig.Metric} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metricSource_ = 0; - - metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_Metric_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric build() { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric result = - new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(this); - int from_bitField0_ = bitField0_; - result.metricSource_ = metricSource_; - if (((bitField0_ & 0x00000001) != 0)) { - metricOverrides_ = metricOverrides_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metricOverrides_ = metricOverrides_; - 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.dataproc.v1.DataprocMetricConfig.Metric) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()) - return this; - if (other.metricSource_ != 0) { - setMetricSourceValue(other.getMetricSourceValue()); - } - if (!other.metricOverrides_.isEmpty()) { - if (metricOverrides_.isEmpty()) { - metricOverrides_ = other.metricOverrides_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetricOverridesIsMutable(); - metricOverrides_.addAll(other.metricOverrides_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - metricSource_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMetricOverridesIsMutable(); - metricOverrides_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int metricSource_ = 0; - /** - * - * - *
-       * Required. Default metrics are collected unless `metricOverrides` are
-       * specified for the metric source (see [Available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * for more information).
-       * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for metricSource. - */ - @java.lang.Override - public int getMetricSourceValue() { - return metricSource_; - } - /** - * - * - *
-       * Required. Default metrics are collected unless `metricOverrides` are
-       * specified for the metric source (see [Available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * for more information).
-       * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for metricSource to set. - * @return This builder for chaining. - */ - public Builder setMetricSourceValue(int value) { - - metricSource_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Default metrics are collected unless `metricOverrides` are
-       * specified for the metric source (see [Available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * for more information).
-       * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The metricSource. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource getMetricSource() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource result = - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.valueOf(metricSource_); - return result == null - ? com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. Default metrics are collected unless `metricOverrides` are
-       * specified for the metric source (see [Available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * for more information).
-       * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The metricSource to set. - * @return This builder for chaining. - */ - public Builder setMetricSource( - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource value) { - if (value == null) { - throw new NullPointerException(); - } - - metricSource_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Default metrics are collected unless `metricOverrides` are
-       * specified for the metric source (see [Available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * for more information).
-       * 
- * - * - * .google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricSource() { - - metricSource_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList metricOverrides_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureMetricOverridesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metricOverrides_ = new com.google.protobuf.LazyStringArrayList(metricOverrides_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the metricOverrides. - */ - public com.google.protobuf.ProtocolStringList getMetricOverridesList() { - return metricOverrides_.getUnmodifiableView(); - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of metricOverrides. - */ - public int getMetricOverridesCount() { - return metricOverrides_.size(); - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The metricOverrides at the given index. - */ - public java.lang.String getMetricOverrides(int index) { - return metricOverrides_.get(index); - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the metricOverrides at the given index. - */ - public com.google.protobuf.ByteString getMetricOverridesBytes(int index) { - return metricOverrides_.getByteString(index); - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The metricOverrides to set. - * @return This builder for chaining. - */ - public Builder setMetricOverrides(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); - metricOverrides_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The metricOverrides to add. - * @return This builder for chaining. - */ - public Builder addMetricOverrides(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricOverridesIsMutable(); - metricOverrides_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The metricOverrides to add. - * @return This builder for chaining. - */ - public Builder addAllMetricOverrides(java.lang.Iterable values) { - ensureMetricOverridesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricOverrides_); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearMetricOverrides() { - metricOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Specify one or more [available OSS metrics]
-       * (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
-       * to collect for the metric course (for the `SPARK` metric source, any
-       * [Spark metric]
-       * (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
-       * specified).
-       * Provide metrics in the following format:
-       * <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code>
-       * Use camelcase as appropriate.
-       * Examples:
-       * ```
-       * yarn:ResourceManager:QueueMetrics:AppsCompleted
-       * spark:driver:DAGScheduler:job.allJobs
-       * sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
-       * hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
-       * ```
-       * Notes:
-       * * Only the specified overridden metrics will be collected for the
-       *   metric source. For example, if one or more `spark:executive` metrics
-       *   are listed as metric overrides, other `SPARK` metrics will not be
-       *   collected. The collection of the default metrics for other OSS metric
-       *   sources is unaffected. For example, if both `SPARK` andd `YARN` metric
-       *   sources are enabled, and overrides are provided for Spark metrics only,
-       *   all default YARN metrics will be collected.
-       * 
- * - * repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the metricOverrides to add. - * @return This builder for chaining. - */ - public Builder addMetricOverridesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMetricOverridesIsMutable(); - metricOverrides_.add(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.dataproc.v1.DataprocMetricConfig.Metric) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig.Metric) - private static final com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric(); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int METRICS_FIELD_NUMBER = 1; - private java.util.List metrics_; - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.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 < metrics_.size(); i++) { - output.writeMessage(1, metrics_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DataprocMetricConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DataprocMetricConfig other = - (com.google.cloud.dataproc.v1.DataprocMetricConfig) obj; - - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig 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.dataproc.v1.DataprocMetricConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc metric config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DataprocMetricConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DataprocMetricConfig) - com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DataprocMetricConfig.class, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DataprocMetricConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DataprocMetricConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig build() { - com.google.cloud.dataproc.v1.DataprocMetricConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig buildPartial() { - com.google.cloud.dataproc.v1.DataprocMetricConfig result = - new com.google.cloud.dataproc.v1.DataprocMetricConfig(this); - int from_bitField0_ = bitField0_; - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.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.dataproc.v1.DataprocMetricConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DataprocMetricConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DataprocMetricConfig other) { - if (other == com.google.cloud.dataproc.v1.DataprocMetricConfig.getDefaultInstance()) - return this; - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric m = - input.readMessage( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metrics_ = - new java.util.ArrayList( - metrics_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMetrics( - int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMetrics( - int index, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addMetrics(com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addMetrics( - int index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addMetrics( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addMetrics( - int index, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllMetrics( - java.lang.Iterable - values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder() - .addBuilder( - index, com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Required. Metrics sources to enable.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric, - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric.Builder, - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - @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.dataproc.v1.DataprocMetricConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DataprocMetricConfig) - private static final com.google.cloud.dataproc.v1.DataprocMetricConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DataprocMetricConfig(); - } - - public static com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataprocMetricConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DataprocMetricConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java deleted file mode 100644 index 63851c5b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DataprocMetricConfigOrBuilder.java +++ /dev/null @@ -1,87 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DataprocMetricConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DataprocMetricConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric getMetrics(int index); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getMetricsCount(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * Required. Metrics sources to enable.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java deleted file mode 100644 index 57592d4f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java +++ /dev/null @@ -1,682 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to delete an autoscaling policy.
- * Autoscaling policies in use by one or more clusters will not be deleted.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest} - */ -public final class DeleteAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) - DeleteAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteAutoscalingPolicyRequest.newBuilder() to construct. - private DeleteAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteAutoscalingPolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest 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.dataproc.v1.DeleteAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest 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.dataproc.v1.DeleteAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest 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.dataproc.v1.DeleteAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete an autoscaling policy.
-   * Autoscaling policies in use by one or more clusters will not be deleted.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_DeleteAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(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.dataproc.v1.DeleteAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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.dataproc.v1.DeleteAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index 9d97b3f9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.delete`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java deleted file mode 100644 index 6a9d419b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequest.java +++ /dev/null @@ -1,629 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to delete a batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} - */ -public final class DeleteBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteBatchRequest) - DeleteBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteBatchRequest.newBuilder() to construct. - private DeleteBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteBatchRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteBatchRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteBatchRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DeleteBatchRequest other = - (com.google.cloud.dataproc.v1.DeleteBatchRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest 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.dataproc.v1.DeleteBatchRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteBatchRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteBatchRequest) - com.google.cloud.dataproc.v1.DeleteBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteBatchRequest.class, - com.google.cloud.dataproc.v1.DeleteBatchRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DeleteBatchRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_DeleteBatchRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteBatchRequest build() { - com.google.cloud.dataproc.v1.DeleteBatchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteBatchRequest result = - new com.google.cloud.dataproc.v1.DeleteBatchRequest(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.dataproc.v1.DeleteBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteBatchRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteBatchRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the batch resource to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the batch resource to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the batch resource to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the batch resource to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the batch resource to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - 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.dataproc.v1.DeleteBatchRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteBatchRequest) - private static final com.google.cloud.dataproc.v1.DeleteBatchRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteBatchRequest(); - } - - public static com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteBatchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java deleted file mode 100644 index 55c734ca..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteBatchRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteBatchRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the batch resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java deleted file mode 100644 index 9508dd27..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java +++ /dev/null @@ -1,1404 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to delete a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} - */ -public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteClusterRequest) - DeleteClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteClusterRequest.newBuilder() to construct. - private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - clusterUuid_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DeleteClusterRequest other = - (com.google.cloud.dataproc.v1.DeleteClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest 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.dataproc.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest 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.dataproc.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest 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.dataproc.v1.DeleteClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteClusterRequest) - com.google.cloud.dataproc.v1.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteClusterRequest.class, - com.google.cloud.dataproc.v1.DeleteClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DeleteClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - clusterUuid_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteClusterRequest build() { - com.google.cloud.dataproc.v1.DeleteClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteClusterRequest result = - new com.google.cloud.dataproc.v1.DeleteClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - result.requestId_ = requestId_; - 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.dataproc.v1.DeleteClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC should fail
-     * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.DeleteClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteClusterRequest) - private static final com.google.cloud.dataproc.v1.DeleteClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java deleted file mode 100644 index 32f0dd6a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,172 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC should fail
-   * (with error NOT_FOUND) if cluster with specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java deleted file mode 100644 index 6c4b1f96..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java +++ /dev/null @@ -1,977 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to delete a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteJobRequest} - */ -public final class DeleteJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteJobRequest) - DeleteJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteJobRequest.newBuilder() to construct. - private DeleteJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, - com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DeleteJobRequest other = - (com.google.cloud.dataproc.v1.DeleteJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest 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.dataproc.v1.DeleteJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest 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.dataproc.v1.DeleteJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest 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.dataproc.v1.DeleteJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteJobRequest) - com.google.cloud.dataproc.v1.DeleteJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteJobRequest.class, - com.google.cloud.dataproc.v1.DeleteJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DeleteJobRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DeleteJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteJobRequest build() { - com.google.cloud.dataproc.v1.DeleteJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteJobRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteJobRequest result = - new com.google.cloud.dataproc.v1.DeleteJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1.DeleteJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteJobRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteJobRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1.DeleteJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteJobRequest) - private static final com.google.cloud.dataproc.v1.DeleteJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteJobRequest(); - } - - public static com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java deleted file mode 100644 index 6fb9ce0e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java deleted file mode 100644 index a937bf79..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java +++ /dev/null @@ -1,780 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to delete a workflow template.
- * Currently started workflows will remain running.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest} - */ -public final class DeleteWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) - DeleteWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteWorkflowTemplateRequest.newBuilder() to construct. - private DeleteWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteWorkflowTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to delete. If specified,
-   * will only delete the template if the current server version matches
-   * specified version.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (version_ != 0) { - output.writeInt32(2, version_); - } - getUnknownFields().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 (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest 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.dataproc.v1.DeleteWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest 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.dataproc.v1.DeleteWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest 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.dataproc.v1.DeleteWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to delete a workflow template.
-   * Currently started workflows will remain running.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(this); - result.name_ = name_; - result.version_ = version_; - 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.dataproc.v1.DeleteWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.delete`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to delete. If specified,
-     * will only delete the template if the current server version matches
-     * specified version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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.dataproc.v1.DeleteWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 70f037aa..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface DeleteWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.delete`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to delete. If specified,
-   * will only delete the template if the current server version matches
-   * specified version.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - int getVersion(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java deleted file mode 100644 index 658ad524..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java +++ /dev/null @@ -1,978 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to collect cluster diagnostic information.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} - */ -public final class DiagnoseClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) - DiagnoseClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiagnoseClusterRequest.newBuilder() to construct. - private DiagnoseClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiagnoseClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiagnoseClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DiagnoseClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DiagnoseClusterRequest other = - (com.google.cloud.dataproc.v1.DiagnoseClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest 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.dataproc.v1.DiagnoseClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest 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.dataproc.v1.DiagnoseClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest 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.dataproc.v1.DiagnoseClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to collect cluster diagnostic information.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterRequest) - com.google.cloud.dataproc.v1.DiagnoseClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.class, - com.google.cloud.dataproc.v1.DiagnoseClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterRequest build() { - com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterRequest result = - new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - 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.dataproc.v1.DiagnoseClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = 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.dataproc.v1.DiagnoseClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterRequest) - private static final com.google.cloud.dataproc.v1.DiagnoseClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java deleted file mode 100644 index 52409f34..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DiagnoseClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java deleted file mode 100644 index 5af437c3..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java +++ /dev/null @@ -1,629 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The location of diagnostic output.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} - */ -public final class DiagnoseClusterResults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) - DiagnoseClusterResultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiagnoseClusterResults.newBuilder() to construct. - private DiagnoseClusterResults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiagnoseClusterResults() { - outputUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiagnoseClusterResults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object outputUri_; - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - @java.lang.Override - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(outputUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DiagnoseClusterResults)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DiagnoseClusterResults other = - (com.google.cloud.dataproc.v1.DiagnoseClusterResults) obj; - - if (!getOutputUri().equals(other.getOutputUri())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults 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.dataproc.v1.DiagnoseClusterResults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults 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.dataproc.v1.DiagnoseClusterResults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults 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.dataproc.v1.DiagnoseClusterResults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 location of diagnostic output.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiagnoseClusterResults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiagnoseClusterResults) - com.google.cloud.dataproc.v1.DiagnoseClusterResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiagnoseClusterResults.class, - com.google.cloud.dataproc.v1.DiagnoseClusterResults.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DiagnoseClusterResults.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - outputUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiagnoseClusterResults_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterResults build() { - com.google.cloud.dataproc.v1.DiagnoseClusterResults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterResults buildPartial() { - com.google.cloud.dataproc.v1.DiagnoseClusterResults result = - new com.google.cloud.dataproc.v1.DiagnoseClusterResults(this); - result.outputUri_ = outputUri_; - 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.dataproc.v1.DiagnoseClusterResults) { - return mergeFrom((com.google.cloud.dataproc.v1.DiagnoseClusterResults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DiagnoseClusterResults other) { - if (other == com.google.cloud.dataproc.v1.DiagnoseClusterResults.getDefaultInstance()) - return this; - if (!other.getOutputUri().isEmpty()) { - outputUri_ = other.outputUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object outputUri_ = ""; - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOutputUri() { - - outputUri_ = getDefaultInstance().getOutputUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The Cloud Storage URI of the diagnostic output.
-     * The output report is a plain text file with a summary of collected
-     * diagnostics.
-     * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputUri_ = 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.dataproc.v1.DiagnoseClusterResults) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiagnoseClusterResults) - private static final com.google.cloud.dataproc.v1.DiagnoseClusterResults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiagnoseClusterResults(); - } - - public static com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseClusterResults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiagnoseClusterResults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java deleted file mode 100644 index a377eeed..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java +++ /dev/null @@ -1,54 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DiagnoseClusterResultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiagnoseClusterResults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - java.lang.String getOutputUri(); - /** - * - * - *
-   * Output only. The Cloud Storage URI of the diagnostic output.
-   * The output report is a plain text file with a summary of collected
-   * diagnostics.
-   * 
- * - * string output_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - com.google.protobuf.ByteString getOutputUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java deleted file mode 100644 index ac9db471..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java +++ /dev/null @@ -1,1049 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies the config of disk options for a group of VM instances.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} - */ -public final class DiskConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.DiskConfig) - DiskConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiskConfig.newBuilder() to construct. - private DiskConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DiskConfig() { - bootDiskType_ = ""; - localSsdInterface_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DiskConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, - com.google.cloud.dataproc.v1.DiskConfig.Builder.class); - } - - public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object bootDiskType_; - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-   * "pd-ssd" (Persistent Disk Solid State Drive),
-   * or "pd-standard" (Persistent Disk Hard Disk Drive).
-   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - @java.lang.Override - public java.lang.String getBootDiskType() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskType_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-   * "pd-ssd" (Persistent Disk Solid State Drive),
-   * or "pd-standard" (Persistent Disk Hard Disk Drive).
-   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBootDiskTypeBytes() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 1; - private int bootDiskSizeGb_; - /** - * - * - *
-   * Optional. Size in GB of the boot disk (default is 500GB).
-   * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - @java.lang.Override - public int getBootDiskSizeGb() { - return bootDiskSizeGb_; - } - - public static final int NUM_LOCAL_SSDS_FIELD_NUMBER = 2; - private int numLocalSsds_; - /** - * - * - *
-   * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
-   * If SSDs are not attached, the boot disk is used to store runtime logs and
-   * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-   * If one or more SSDs are attached, this runtime bulk
-   * data is spread across them, and the boot disk contains only basic
-   * config and installed binaries.
-   * 
- * - * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numLocalSsds. - */ - @java.lang.Override - public int getNumLocalSsds() { - return numLocalSsds_; - } - - public static final int LOCAL_SSD_INTERFACE_FIELD_NUMBER = 4; - private volatile java.lang.Object localSsdInterface_; - /** - * - * - *
-   * Optional. Interface type of local SSDs (default is "scsi").
-   * Valid values: "scsi" (Small Computer System Interface),
-   * "nvme" (Non-Volatile Memory Express).
-   * See [local SSD
-   * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-   * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdInterface. - */ - @java.lang.Override - public java.lang.String getLocalSsdInterface() { - java.lang.Object ref = localSsdInterface_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localSsdInterface_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Interface type of local SSDs (default is "scsi").
-   * Valid values: "scsi" (Small Computer System Interface),
-   * "nvme" (Non-Volatile Memory Express).
-   * See [local SSD
-   * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-   * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for localSsdInterface. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { - java.lang.Object ref = localSsdInterface_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - localSsdInterface_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (bootDiskSizeGb_ != 0) { - output.writeInt32(1, bootDiskSizeGb_); - } - if (numLocalSsds_ != 0) { - output.writeInt32(2, numLocalSsds_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bootDiskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localSsdInterface_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, bootDiskSizeGb_); - } - if (numLocalSsds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numLocalSsds_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootDiskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localSsdInterface_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localSsdInterface_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.DiskConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.DiskConfig other = (com.google.cloud.dataproc.v1.DiskConfig) obj; - - if (!getBootDiskType().equals(other.getBootDiskType())) return false; - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; - if (getNumLocalSsds() != other.getNumLocalSsds()) return false; - if (!getLocalSsdInterface().equals(other.getLocalSsdInterface())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BOOT_DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskType().hashCode(); - hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskSizeGb(); - hash = (37 * hash) + NUM_LOCAL_SSDS_FIELD_NUMBER; - hash = (53 * hash) + getNumLocalSsds(); - hash = (37 * hash) + LOCAL_SSD_INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getLocalSsdInterface().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.DiskConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiskConfig 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.dataproc.v1.DiskConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiskConfig 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.dataproc.v1.DiskConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.DiskConfig 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.dataproc.v1.DiskConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the config of disk options for a group of VM instances.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.DiskConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.DiskConfig) - com.google.cloud.dataproc.v1.DiskConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.DiskConfig.class, - com.google.cloud.dataproc.v1.DiskConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.DiskConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bootDiskType_ = ""; - - bootDiskSizeGb_ = 0; - - numLocalSsds_ = 0; - - localSsdInterface_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_DiskConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfig build() { - com.google.cloud.dataproc.v1.DiskConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfig buildPartial() { - com.google.cloud.dataproc.v1.DiskConfig result = - new com.google.cloud.dataproc.v1.DiskConfig(this); - result.bootDiskType_ = bootDiskType_; - result.bootDiskSizeGb_ = bootDiskSizeGb_; - result.numLocalSsds_ = numLocalSsds_; - result.localSsdInterface_ = localSsdInterface_; - 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.dataproc.v1.DiskConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.DiskConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.DiskConfig other) { - if (other == com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance()) return this; - if (!other.getBootDiskType().isEmpty()) { - bootDiskType_ = other.bootDiskType_; - onChanged(); - } - if (other.getBootDiskSizeGb() != 0) { - setBootDiskSizeGb(other.getBootDiskSizeGb()); - } - if (other.getNumLocalSsds() != 0) { - setNumLocalSsds(other.getNumLocalSsds()); - } - if (!other.getLocalSsdInterface().isEmpty()) { - localSsdInterface_ = other.localSsdInterface_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - bootDiskSizeGb_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - numLocalSsds_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - bootDiskType_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - localSsdInterface_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object bootDiskType_ = ""; - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-     * "pd-ssd" (Persistent Disk Solid State Drive),
-     * or "pd-standard" (Persistent Disk Hard Disk Drive).
-     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - public java.lang.String getBootDiskType() { - java.lang.Object ref = bootDiskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-     * "pd-ssd" (Persistent Disk Solid State Drive),
-     * or "pd-standard" (Persistent Disk Hard Disk Drive).
-     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - public com.google.protobuf.ByteString getBootDiskTypeBytes() { - java.lang.Object ref = bootDiskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-     * "pd-ssd" (Persistent Disk Solid State Drive),
-     * or "pd-standard" (Persistent Disk Hard Disk Drive).
-     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bootDiskType to set. - * @return This builder for chaining. - */ - public Builder setBootDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-     * "pd-ssd" (Persistent Disk Solid State Drive),
-     * or "pd-standard" (Persistent Disk Hard Disk Drive).
-     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskType() { - - bootDiskType_ = getDefaultInstance().getBootDiskType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of the boot disk (default is "pd-standard").
-     * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-     * "pd-ssd" (Persistent Disk Solid State Drive),
-     * or "pd-standard" (Persistent Disk Hard Disk Drive).
-     * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-     * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for bootDiskType to set. - * @return This builder for chaining. - */ - public Builder setBootDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskType_ = value; - onChanged(); - return this; - } - - private int bootDiskSizeGb_; - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - @java.lang.Override - public int getBootDiskSizeGb() { - return bootDiskSizeGb_; - } - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bootDiskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setBootDiskSizeGb(int value) { - - bootDiskSizeGb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Size in GB of the boot disk (default is 500GB).
-     * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskSizeGb() { - - bootDiskSizeGb_ = 0; - onChanged(); - return this; - } - - private int numLocalSsds_; - /** - * - * - *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numLocalSsds. - */ - @java.lang.Override - public int getNumLocalSsds() { - return numLocalSsds_; - } - /** - * - * - *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The numLocalSsds to set. - * @return This builder for chaining. - */ - public Builder setNumLocalSsds(int value) { - - numLocalSsds_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
-     * If SSDs are not attached, the boot disk is used to store runtime logs and
-     * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-     * If one or more SSDs are attached, this runtime bulk
-     * data is spread across them, and the boot disk contains only basic
-     * config and installed binaries.
-     * 
- * - * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNumLocalSsds() { - - numLocalSsds_ = 0; - onChanged(); - return this; - } - - private java.lang.Object localSsdInterface_ = ""; - /** - * - * - *
-     * Optional. Interface type of local SSDs (default is "scsi").
-     * Valid values: "scsi" (Small Computer System Interface),
-     * "nvme" (Non-Volatile Memory Express).
-     * See [local SSD
-     * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-     * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdInterface. - */ - public java.lang.String getLocalSsdInterface() { - java.lang.Object ref = localSsdInterface_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - localSsdInterface_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Interface type of local SSDs (default is "scsi").
-     * Valid values: "scsi" (Small Computer System Interface),
-     * "nvme" (Non-Volatile Memory Express).
-     * See [local SSD
-     * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-     * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for localSsdInterface. - */ - public com.google.protobuf.ByteString getLocalSsdInterfaceBytes() { - java.lang.Object ref = localSsdInterface_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - localSsdInterface_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Interface type of local SSDs (default is "scsi").
-     * Valid values: "scsi" (Small Computer System Interface),
-     * "nvme" (Non-Volatile Memory Express).
-     * See [local SSD
-     * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-     * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The localSsdInterface to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdInterface(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - localSsdInterface_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Interface type of local SSDs (default is "scsi").
-     * Valid values: "scsi" (Small Computer System Interface),
-     * "nvme" (Non-Volatile Memory Express).
-     * See [local SSD
-     * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-     * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdInterface() { - - localSsdInterface_ = getDefaultInstance().getLocalSsdInterface(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Interface type of local SSDs (default is "scsi").
-     * Valid values: "scsi" (Small Computer System Interface),
-     * "nvme" (Non-Volatile Memory Express).
-     * See [local SSD
-     * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-     * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for localSsdInterface to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdInterfaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - localSsdInterface_ = 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.dataproc.v1.DiskConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.DiskConfig) - private static final com.google.cloud.dataproc.v1.DiskConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.DiskConfig(); - } - - public static com.google.cloud.dataproc.v1.DiskConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiskConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java deleted file mode 100644 index 050b28c8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java +++ /dev/null @@ -1,122 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface DiskConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.DiskConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-   * "pd-ssd" (Persistent Disk Solid State Drive),
-   * or "pd-standard" (Persistent Disk Hard Disk Drive).
-   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskType. - */ - java.lang.String getBootDiskType(); - /** - * - * - *
-   * Optional. Type of the boot disk (default is "pd-standard").
-   * Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive),
-   * "pd-ssd" (Persistent Disk Solid State Drive),
-   * or "pd-standard" (Persistent Disk Hard Disk Drive).
-   * See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types).
-   * 
- * - * string boot_disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bootDiskType. - */ - com.google.protobuf.ByteString getBootDiskTypeBytes(); - - /** - * - * - *
-   * Optional. Size in GB of the boot disk (default is 500GB).
-   * 
- * - * int32 boot_disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bootDiskSizeGb. - */ - int getBootDiskSizeGb(); - - /** - * - * - *
-   * Optional. Number of attached SSDs, from 0 to 4 (default is 0).
-   * If SSDs are not attached, the boot disk is used to store runtime logs and
-   * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data.
-   * If one or more SSDs are attached, this runtime bulk
-   * data is spread across them, and the boot disk contains only basic
-   * config and installed binaries.
-   * 
- * - * int32 num_local_ssds = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numLocalSsds. - */ - int getNumLocalSsds(); - - /** - * - * - *
-   * Optional. Interface type of local SSDs (default is "scsi").
-   * Valid values: "scsi" (Small Computer System Interface),
-   * "nvme" (Non-Volatile Memory Express).
-   * See [local SSD
-   * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-   * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdInterface. - */ - java.lang.String getLocalSsdInterface(); - /** - * - * - *
-   * Optional. Interface type of local SSDs (default is "scsi").
-   * Valid values: "scsi" (Small Computer System Interface),
-   * "nvme" (Non-Volatile Memory Express).
-   * See [local SSD
-   * performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance).
-   * 
- * - * string local_ssd_interface = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for localSsdInterface. - */ - com.google.protobuf.ByteString getLocalSsdInterfaceBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java deleted file mode 100644 index b0c5a190..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java +++ /dev/null @@ -1,621 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Encryption settings for the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} - */ -public final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EncryptionConfig) - EncryptionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EncryptionConfig.newBuilder() to construct. - private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EncryptionConfig() { - gcePdKmsKeyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EncryptionConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); - } - - public static final int GCE_PD_KMS_KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gcePdKmsKeyName_; - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - @java.lang.Override - public java.lang.String getGcePdKmsKeyName() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcePdKmsKeyName_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcePdKmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(gcePdKmsKeyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcePdKmsKeyName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcePdKmsKeyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcePdKmsKeyName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.EncryptionConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.EncryptionConfig other = - (com.google.cloud.dataproc.v1.EncryptionConfig) obj; - - if (!getGcePdKmsKeyName().equals(other.getGcePdKmsKeyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GCE_PD_KMS_KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGcePdKmsKeyName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig 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.dataproc.v1.EncryptionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig 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.dataproc.v1.EncryptionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig 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.dataproc.v1.EncryptionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Encryption settings for the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EncryptionConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EncryptionConfig) - com.google.cloud.dataproc.v1.EncryptionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EncryptionConfig.class, - com.google.cloud.dataproc.v1.EncryptionConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.EncryptionConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - gcePdKmsKeyName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EncryptionConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfig build() { - com.google.cloud.dataproc.v1.EncryptionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfig buildPartial() { - com.google.cloud.dataproc.v1.EncryptionConfig result = - new com.google.cloud.dataproc.v1.EncryptionConfig(this); - result.gcePdKmsKeyName_ = gcePdKmsKeyName_; - 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.dataproc.v1.EncryptionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EncryptionConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.EncryptionConfig other) { - if (other == com.google.cloud.dataproc.v1.EncryptionConfig.getDefaultInstance()) return this; - if (!other.getGcePdKmsKeyName().isEmpty()) { - gcePdKmsKeyName_ = other.gcePdKmsKeyName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - gcePdKmsKeyName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object gcePdKmsKeyName_ = ""; - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - public java.lang.String getGcePdKmsKeyName() { - java.lang.Object ref = gcePdKmsKeyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcePdKmsKeyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - public com.google.protobuf.ByteString getGcePdKmsKeyNameBytes() { - java.lang.Object ref = gcePdKmsKeyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcePdKmsKeyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The gcePdKmsKeyName to set. - * @return This builder for chaining. - */ - public Builder setGcePdKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gcePdKmsKeyName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearGcePdKmsKeyName() { - - gcePdKmsKeyName_ = getDefaultInstance().getGcePdKmsKeyName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key name to use for PD disk encryption for all
-     * instances in the cluster.
-     * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for gcePdKmsKeyName to set. - * @return This builder for chaining. - */ - public Builder setGcePdKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gcePdKmsKeyName_ = 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.dataproc.v1.EncryptionConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EncryptionConfig) - private static final com.google.cloud.dataproc.v1.EncryptionConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EncryptionConfig(); - } - - public static com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EncryptionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EncryptionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java deleted file mode 100644 index 151b7c7e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java +++ /dev/null @@ -1,52 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface EncryptionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EncryptionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcePdKmsKeyName. - */ - java.lang.String getGcePdKmsKeyName(); - /** - * - * - *
-   * Optional. The Cloud KMS key name to use for PD disk encryption for all
-   * instances in the cluster.
-   * 
- * - * string gce_pd_kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcePdKmsKeyName. - */ - com.google.protobuf.ByteString getGcePdKmsKeyNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java deleted file mode 100644 index bad319e4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java +++ /dev/null @@ -1,877 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Endpoint config for this cluster
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} - */ -public final class EndpointConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EndpointConfig) - EndpointConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EndpointConfig.newBuilder() to construct. - private EndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EndpointConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EndpointConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, - com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); - } - - public static final int HTTP_PORTS_FIELD_NUMBER = 1; - - private static final class HttpPortsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_HttpPortsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField httpPorts_; - - private com.google.protobuf.MapField internalGetHttpPorts() { - if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - return httpPorts_; - } - - public int getHttpPortsCount() { - return internalGetHttpPorts().getMap().size(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHttpPorts().getMap().containsKey(key); - } - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHttpPorts() { - return getHttpPortsMap(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getHttpPortsMap() { - return internalGetHttpPorts().getMap(); - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER = 2; - private boolean enableHttpPortAccess_; - /** - * - * - *
-   * Optional. If true, enable http access to specific ports on the cluster
-   * from external sources. Defaults to false.
-   * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - @java.lang.Override - public boolean getEnableHttpPortAccess() { - return enableHttpPortAccess_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHttpPorts(), HttpPortsDefaultEntryHolder.defaultEntry, 1); - if (enableHttpPortAccess_ != false) { - output.writeBool(2, enableHttpPortAccess_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetHttpPorts().getMap().entrySet()) { - com.google.protobuf.MapEntry httpPorts__ = - HttpPortsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, httpPorts__); - } - if (enableHttpPortAccess_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.EndpointConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.EndpointConfig other = - (com.google.cloud.dataproc.v1.EndpointConfig) obj; - - if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false; - if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetHttpPorts().getMap().isEmpty()) { - hash = (37 * hash) + HTTP_PORTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHttpPorts().hashCode(); - } - hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig 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.dataproc.v1.EndpointConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig 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.dataproc.v1.EndpointConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig 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.dataproc.v1.EndpointConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Endpoint config for this cluster
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EndpointConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EndpointConfig) - com.google.cloud.dataproc.v1.EndpointConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableHttpPorts(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EndpointConfig.class, - com.google.cloud.dataproc.v1.EndpointConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.EndpointConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableHttpPorts().clear(); - enableHttpPortAccess_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_EndpointConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfig build() { - com.google.cloud.dataproc.v1.EndpointConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfig buildPartial() { - com.google.cloud.dataproc.v1.EndpointConfig result = - new com.google.cloud.dataproc.v1.EndpointConfig(this); - int from_bitField0_ = bitField0_; - result.httpPorts_ = internalGetHttpPorts(); - result.httpPorts_.makeImmutable(); - result.enableHttpPortAccess_ = enableHttpPortAccess_; - 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.dataproc.v1.EndpointConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EndpointConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.EndpointConfig other) { - if (other == com.google.cloud.dataproc.v1.EndpointConfig.getDefaultInstance()) return this; - internalGetMutableHttpPorts().mergeFrom(other.internalGetHttpPorts()); - if (other.getEnableHttpPortAccess() != false) { - setEnableHttpPortAccess(other.getEnableHttpPortAccess()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry httpPorts__ = - input.readMessage( - HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHttpPorts() - .getMutableMap() - .put(httpPorts__.getKey(), httpPorts__.getValue()); - break; - } // case 10 - case 16: - { - enableHttpPortAccess_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField httpPorts_; - - private com.google.protobuf.MapField - internalGetHttpPorts() { - if (httpPorts_ == null) { - return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - return httpPorts_; - } - - private com.google.protobuf.MapField - internalGetMutableHttpPorts() { - onChanged(); - ; - if (httpPorts_ == null) { - httpPorts_ = - com.google.protobuf.MapField.newMapField(HttpPortsDefaultEntryHolder.defaultEntry); - } - if (!httpPorts_.isMutable()) { - httpPorts_ = httpPorts_.copy(); - } - return httpPorts_; - } - - public int getHttpPortsCount() { - return internalGetHttpPorts().getMap().size(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHttpPorts().getMap().containsKey(key); - } - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHttpPorts() { - return getHttpPortsMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getHttpPortsMap() { - return internalGetHttpPorts().getMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getHttpPortsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHttpPorts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHttpPorts() { - internalGetMutableHttpPorts().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeHttpPorts(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHttpPorts().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHttpPorts() { - return internalGetMutableHttpPorts().getMutableMap(); - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putHttpPorts(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHttpPorts().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Output only. The map of port descriptions to URLs. Will only be populated
-     * if enable_http_port_access is true.
-     * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllHttpPorts(java.util.Map values) { - internalGetMutableHttpPorts().getMutableMap().putAll(values); - return this; - } - - private boolean enableHttpPortAccess_; - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - @java.lang.Override - public boolean getEnableHttpPortAccess() { - return enableHttpPortAccess_; - } - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableHttpPortAccess to set. - * @return This builder for chaining. - */ - public Builder setEnableHttpPortAccess(boolean value) { - - enableHttpPortAccess_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If true, enable http access to specific ports on the cluster
-     * from external sources. Defaults to false.
-     * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableHttpPortAccess() { - - enableHttpPortAccess_ = false; - 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.dataproc.v1.EndpointConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EndpointConfig) - private static final com.google.cloud.dataproc.v1.EndpointConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EndpointConfig(); - } - - public static com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EndpointConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EndpointConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java deleted file mode 100644 index 1facc5b8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface EndpointConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EndpointConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getHttpPortsCount(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsHttpPorts(java.lang.String key); - /** Use {@link #getHttpPortsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHttpPorts(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map getHttpPortsMap(); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - - /* nullable */ - java.lang.String getHttpPortsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Output only. The map of port descriptions to URLs. Will only be populated
-   * if enable_http_port_access is true.
-   * 
- * - * map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.lang.String getHttpPortsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. If true, enable http access to specific ports on the cluster
-   * from external sources. Defaults to false.
-   * 
- * - * bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableHttpPortAccess. - */ - boolean getEnableHttpPortAccess(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java deleted file mode 100644 index 531a9b88..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfig.java +++ /dev/null @@ -1,1020 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Environment configuration for a workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} - */ -public final class EnvironmentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.EnvironmentConfig) - EnvironmentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnvironmentConfig.newBuilder() to construct. - private EnvironmentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EnvironmentConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EnvironmentConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); - } - - public static final int EXECUTION_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionConfig field is set. - */ - @java.lang.Override - public boolean hasExecutionConfig() { - return executionConfig_ != null; - } - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; - } - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { - return getExecutionConfig(); - } - - public static final int PERIPHERALS_CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the peripheralsConfig field is set. - */ - @java.lang.Override - public boolean hasPeripheralsConfig() { - return peripheralsConfig_ != null; - } - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The peripheralsConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; - } - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { - return getPeripheralsConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (executionConfig_ != null) { - output.writeMessage(1, getExecutionConfig()); - } - if (peripheralsConfig_ != null) { - output.writeMessage(2, getPeripheralsConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionConfig()); - } - if (peripheralsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeripheralsConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.EnvironmentConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.EnvironmentConfig other = - (com.google.cloud.dataproc.v1.EnvironmentConfig) obj; - - if (hasExecutionConfig() != other.hasExecutionConfig()) return false; - if (hasExecutionConfig()) { - if (!getExecutionConfig().equals(other.getExecutionConfig())) return false; - } - if (hasPeripheralsConfig() != other.hasPeripheralsConfig()) return false; - if (hasPeripheralsConfig()) { - if (!getPeripheralsConfig().equals(other.getPeripheralsConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasExecutionConfig()) { - hash = (37 * hash) + EXECUTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getExecutionConfig().hashCode(); - } - if (hasPeripheralsConfig()) { - hash = (37 * hash) + PERIPHERALS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPeripheralsConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig 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.dataproc.v1.EnvironmentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Environment configuration for a workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.EnvironmentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.EnvironmentConfig) - com.google.cloud.dataproc.v1.EnvironmentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.EnvironmentConfig.class, - com.google.cloud.dataproc.v1.EnvironmentConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.EnvironmentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionConfigBuilder_ == null) { - executionConfig_ = null; - } else { - executionConfig_ = null; - executionConfigBuilder_ = null; - } - if (peripheralsConfigBuilder_ == null) { - peripheralsConfig_ = null; - } else { - peripheralsConfig_ = null; - peripheralsConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfig build() { - com.google.cloud.dataproc.v1.EnvironmentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfig buildPartial() { - com.google.cloud.dataproc.v1.EnvironmentConfig result = - new com.google.cloud.dataproc.v1.EnvironmentConfig(this); - if (executionConfigBuilder_ == null) { - result.executionConfig_ = executionConfig_; - } else { - result.executionConfig_ = executionConfigBuilder_.build(); - } - if (peripheralsConfigBuilder_ == null) { - result.peripheralsConfig_ = peripheralsConfig_; - } else { - result.peripheralsConfig_ = peripheralsConfigBuilder_.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.dataproc.v1.EnvironmentConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.EnvironmentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.EnvironmentConfig other) { - if (other == com.google.cloud.dataproc.v1.EnvironmentConfig.getDefaultInstance()) return this; - if (other.hasExecutionConfig()) { - mergeExecutionConfig(other.getExecutionConfig()); - } - if (other.hasPeripheralsConfig()) { - mergePeripheralsConfig(other.getPeripheralsConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getExecutionConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage( - getPeripheralsConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.dataproc.v1.ExecutionConfig executionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> - executionConfigBuilder_; - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionConfig field is set. - */ - public boolean hasExecutionConfig() { - return executionConfigBuilder_ != null || executionConfig_ != null; - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionConfig. - */ - public com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig() { - if (executionConfigBuilder_ == null) { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; - } else { - return executionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { - if (executionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionConfig_ = value; - onChanged(); - } else { - executionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionConfig( - com.google.cloud.dataproc.v1.ExecutionConfig.Builder builderForValue) { - if (executionConfigBuilder_ == null) { - executionConfig_ = builderForValue.build(); - onChanged(); - } else { - executionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeExecutionConfig(com.google.cloud.dataproc.v1.ExecutionConfig value) { - if (executionConfigBuilder_ == null) { - if (executionConfig_ != null) { - executionConfig_ = - com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder(executionConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - executionConfig_ = value; - } - onChanged(); - } else { - executionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearExecutionConfig() { - if (executionConfigBuilder_ == null) { - executionConfig_ = null; - onChanged(); - } else { - executionConfig_ = null; - executionConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ExecutionConfig.Builder getExecutionConfigBuilder() { - - onChanged(); - return getExecutionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder() { - if (executionConfigBuilder_ != null) { - return executionConfigBuilder_.getMessageOrBuilder(); - } else { - return executionConfig_ == null - ? com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance() - : executionConfig_; - } - } - /** - * - * - *
-     * Optional. Execution configuration for a workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder> - getExecutionConfigFieldBuilder() { - if (executionConfigBuilder_ == null) { - executionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ExecutionConfig, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder, - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder>( - getExecutionConfig(), getParentForChildren(), isClean()); - executionConfig_ = null; - } - return executionConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.PeripheralsConfig peripheralsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> - peripheralsConfigBuilder_; - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the peripheralsConfig field is set. - */ - public boolean hasPeripheralsConfig() { - return peripheralsConfigBuilder_ != null || peripheralsConfig_ != null; - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The peripheralsConfig. - */ - public com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig() { - if (peripheralsConfigBuilder_ == null) { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; - } else { - return peripheralsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { - if (peripheralsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - peripheralsConfig_ = value; - onChanged(); - } else { - peripheralsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPeripheralsConfig( - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder builderForValue) { - if (peripheralsConfigBuilder_ == null) { - peripheralsConfig_ = builderForValue.build(); - onChanged(); - } else { - peripheralsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePeripheralsConfig(com.google.cloud.dataproc.v1.PeripheralsConfig value) { - if (peripheralsConfigBuilder_ == null) { - if (peripheralsConfig_ != null) { - peripheralsConfig_ = - com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder(peripheralsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - peripheralsConfig_ = value; - } - onChanged(); - } else { - peripheralsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPeripheralsConfig() { - if (peripheralsConfigBuilder_ == null) { - peripheralsConfig_ = null; - onChanged(); - } else { - peripheralsConfig_ = null; - peripheralsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PeripheralsConfig.Builder getPeripheralsConfigBuilder() { - - onChanged(); - return getPeripheralsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder() { - if (peripheralsConfigBuilder_ != null) { - return peripheralsConfigBuilder_.getMessageOrBuilder(); - } else { - return peripheralsConfig_ == null - ? com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance() - : peripheralsConfig_; - } - } - /** - * - * - *
-     * Optional. Peripherals configuration that workload has access to.
-     * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder> - getPeripheralsConfigFieldBuilder() { - if (peripheralsConfigBuilder_ == null) { - peripheralsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PeripheralsConfig, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder, - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder>( - getPeripheralsConfig(), getParentForChildren(), isClean()); - peripheralsConfig_ = null; - } - return peripheralsConfigBuilder_; - } - - @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.dataproc.v1.EnvironmentConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.EnvironmentConfig) - private static final com.google.cloud.dataproc.v1.EnvironmentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.EnvironmentConfig(); - } - - public static com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.EnvironmentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java deleted file mode 100644 index 3ffbd5d8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EnvironmentConfigOrBuilder.java +++ /dev/null @@ -1,107 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface EnvironmentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.EnvironmentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionConfig field is set. - */ - boolean hasExecutionConfig(); - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionConfig. - */ - com.google.cloud.dataproc.v1.ExecutionConfig getExecutionConfig(); - /** - * - * - *
-   * Optional. Execution configuration for a workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.ExecutionConfig execution_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder getExecutionConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the peripheralsConfig field is set. - */ - boolean hasPeripheralsConfig(); - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The peripheralsConfig. - */ - com.google.cloud.dataproc.v1.PeripheralsConfig getPeripheralsConfig(); - /** - * - * - *
-   * Optional. Peripherals configuration that workload has access to.
-   * 
- * - * - * .google.cloud.dataproc.v1.PeripheralsConfig peripherals_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder getPeripheralsConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java deleted file mode 100644 index a3d13e0b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfig.java +++ /dev/null @@ -1,1612 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Execution configuration for a workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} - */ -public final class ExecutionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ExecutionConfig) - ExecutionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionConfig.newBuilder() to construct. - private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ExecutionConfig() { - serviceAccount_ = ""; - networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - kmsKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ExecutionConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); - } - - private int networkCase_ = 0; - private java.lang.Object network_; - - public enum NetworkCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - NETWORK_URI(4), - SUBNETWORK_URI(5), - NETWORK_NOT_SET(0); - private final int value; - - private NetworkCase(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 NetworkCase valueOf(int value) { - return forNumber(value); - } - - public static NetworkCase forNumber(int value) { - switch (value) { - case 4: - return NETWORK_URI; - case 5: - return SUBNETWORK_URI; - case 0: - return NETWORK_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public NetworkCase getNetworkCase() { - return NetworkCase.forNumber(networkCase_); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAccount_; - /** - * - * - *
-   * Optional. Service account that used to execute workload.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Service account that used to execute workload.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_URI_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the networkUri field is set. - */ - public boolean hasNetworkUri() { - return networkCase_ == 4; - } - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - public java.lang.String getNetworkUri() { - java.lang.Object ref = ""; - if (networkCase_ == 4) { - ref = network_; - } - if (ref instanceof java.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 (networkCase_ == 4) { - network_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = ""; - if (networkCase_ == 4) { - ref = network_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (networkCase_ == 4) { - network_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBNETWORK_URI_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the subnetworkUri field is set. - */ - public boolean hasSubnetworkUri() { - return networkCase_ == 5; - } - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = ""; - if (networkCase_ == 5) { - ref = network_; - } - if (ref instanceof java.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 (networkCase_ == 5) { - network_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = ""; - if (networkCase_ == 5) { - ref = network_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (networkCase_ == 5) { - network_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_TAGS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList networkTags_; - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the networkTags. - */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { - return networkTags_; - } - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of networkTags. - */ - public int getNetworkTagsCount() { - return networkTags_.size(); - } - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The networkTags at the given index. - */ - public java.lang.String getNetworkTags(int index) { - return networkTags_.get(index); - } - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the networkTags at the given index. - */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { - return networkTags_.getByteString(index); - } - - public static final int KMS_KEY_FIELD_NUMBER = 7; - private volatile java.lang.Object kmsKey_; - /** - * - * - *
-   * Optional. The Cloud KMS key to use for encryption.
-   * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKey. - */ - @java.lang.Override - public java.lang.String getKmsKey() { - java.lang.Object ref = kmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKey_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud KMS key to use for encryption.
-   * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { - java.lang.Object ref = kmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (networkCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, network_); - } - if (networkCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); - } - for (int i = 0; i < networkTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, networkTags_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kmsKey_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); - } - if (networkCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, network_); - } - if (networkCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); - } - { - int dataSize = 0; - for (int i = 0; i < networkTags_.size(); i++) { - dataSize += computeStringSizeNoTag(networkTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getNetworkTagsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ExecutionConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ExecutionConfig other = - (com.google.cloud.dataproc.v1.ExecutionConfig) obj; - - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; - if (!getKmsKey().equals(other.getKmsKey())) return false; - if (!getNetworkCase().equals(other.getNetworkCase())) return false; - switch (networkCase_) { - case 4: - if (!getNetworkUri().equals(other.getNetworkUri())) return false; - break; - case 5: - if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - if (getNetworkTagsCount() > 0) { - hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getNetworkTagsList().hashCode(); - } - hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; - hash = (53 * hash) + getKmsKey().hashCode(); - switch (networkCase_) { - case 4: - hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getNetworkUri().hashCode(); - break; - case 5: - hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getSubnetworkUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig 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.dataproc.v1.ExecutionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Execution configuration for a workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ExecutionConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ExecutionConfig) - com.google.cloud.dataproc.v1.ExecutionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ExecutionConfig.class, - com.google.cloud.dataproc.v1.ExecutionConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ExecutionConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccount_ = ""; - - networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - kmsKey_ = ""; - - networkCase_ = 0; - network_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfig build() { - com.google.cloud.dataproc.v1.ExecutionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfig buildPartial() { - com.google.cloud.dataproc.v1.ExecutionConfig result = - new com.google.cloud.dataproc.v1.ExecutionConfig(this); - int from_bitField0_ = bitField0_; - result.serviceAccount_ = serviceAccount_; - if (networkCase_ == 4) { - result.network_ = network_; - } - if (networkCase_ == 5) { - result.network_ = network_; - } - if (((bitField0_ & 0x00000001) != 0)) { - networkTags_ = networkTags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.networkTags_ = networkTags_; - result.kmsKey_ = kmsKey_; - result.networkCase_ = networkCase_; - 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.dataproc.v1.ExecutionConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ExecutionConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ExecutionConfig other) { - if (other == com.google.cloud.dataproc.v1.ExecutionConfig.getDefaultInstance()) return this; - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.networkTags_.isEmpty()) { - if (networkTags_.isEmpty()) { - networkTags_ = other.networkTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNetworkTagsIsMutable(); - networkTags_.addAll(other.networkTags_); - } - onChanged(); - } - if (!other.getKmsKey().isEmpty()) { - kmsKey_ = other.kmsKey_; - onChanged(); - } - switch (other.getNetworkCase()) { - case NETWORK_URI: - { - networkCase_ = 4; - network_ = other.network_; - onChanged(); - break; - } - case SUBNETWORK_URI: - { - networkCase_ = 5; - network_ = other.network_; - onChanged(); - break; - } - case NETWORK_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 4; - network_ = s; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - networkCase_ = 5; - network_ = s; - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureNetworkTagsIsMutable(); - networkTags_.add(s); - break; - } // case 50 - case 58: - { - kmsKey_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int networkCase_ = 0; - private java.lang.Object network_; - - public NetworkCase getNetworkCase() { - return NetworkCase.forNumber(networkCase_); - } - - public Builder clearNetwork() { - networkCase_ = 0; - network_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * Optional. Service account that used to execute workload.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Service account that used to execute workload.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Service account that used to execute workload.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Service account that used to execute workload.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Service account that used to execute workload.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the networkUri field is set. - */ - @java.lang.Override - public boolean hasNetworkUri() { - return networkCase_ == 4; - } - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - @java.lang.Override - public java.lang.String getNetworkUri() { - java.lang.Object ref = ""; - if (networkCase_ == 4) { - ref = network_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (networkCase_ == 4) { - network_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = ""; - if (networkCase_ == 4) { - ref = network_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (networkCase_ == 4) { - network_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 4; - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNetworkUri() { - if (networkCase_ == 4) { - networkCase_ = 0; - network_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Network URI to connect workload to.
-     * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - networkCase_ = 4; - network_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the subnetworkUri field is set. - */ - @java.lang.Override - public boolean hasSubnetworkUri() { - return networkCase_ == 5; - } - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - @java.lang.Override - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = ""; - if (networkCase_ == 5) { - ref = network_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (networkCase_ == 5) { - network_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = ""; - if (networkCase_ == 5) { - ref = network_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (networkCase_ == 5) { - network_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - networkCase_ = 5; - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSubnetworkUri() { - if (networkCase_ == 5) { - networkCase_ = 0; - network_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Subnetwork URI to connect workload to.
-     * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - networkCase_ = 5; - network_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList networkTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureNetworkTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the networkTags. - */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { - return networkTags_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of networkTags. - */ - public int getNetworkTagsCount() { - return networkTags_.size(); - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The networkTags at the given index. - */ - public java.lang.String getNetworkTags(int index) { - return networkTags_.get(index); - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the networkTags at the given index. - */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { - return networkTags_.getByteString(index); - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The networkTags to set. - * @return This builder for chaining. - */ - public Builder setNetworkTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); - networkTags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkTags to add. - * @return This builder for chaining. - */ - public Builder addNetworkTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The networkTags to add. - * @return This builder for chaining. - */ - public Builder addAllNetworkTags(java.lang.Iterable values) { - ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNetworkTags() { - networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tags used for network traffic control.
-     * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the networkTags to add. - * @return This builder for chaining. - */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - onChanged(); - return this; - } - - private java.lang.Object kmsKey_ = ""; - /** - * - * - *
-     * Optional. The Cloud KMS key to use for encryption.
-     * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKey. - */ - public java.lang.String getKmsKey() { - java.lang.Object ref = kmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key to use for encryption.
-     * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKey. - */ - public com.google.protobuf.ByteString getKmsKeyBytes() { - java.lang.Object ref = kmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud KMS key to use for encryption.
-     * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The kmsKey to set. - * @return This builder for chaining. - */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kmsKey_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key to use for encryption.
-     * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKmsKey() { - - kmsKey_ = getDefaultInstance().getKmsKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud KMS key to use for encryption.
-     * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for kmsKey to set. - * @return This builder for chaining. - */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kmsKey_ = value; - 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.dataproc.v1.ExecutionConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ExecutionConfig) - private static final com.google.cloud.dataproc.v1.ExecutionConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ExecutionConfig(); - } - - public static com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ExecutionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java deleted file mode 100644 index 51aab728..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ExecutionConfigOrBuilder.java +++ /dev/null @@ -1,202 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface ExecutionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ExecutionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Service account that used to execute workload.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * Optional. Service account that used to execute workload.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the networkUri field is set. - */ - boolean hasNetworkUri(); - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - java.lang.String getNetworkUri(); - /** - * - * - *
-   * Optional. Network URI to connect workload to.
-   * 
- * - * string network_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - com.google.protobuf.ByteString getNetworkUriBytes(); - - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the subnetworkUri field is set. - */ - boolean hasSubnetworkUri(); - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - java.lang.String getSubnetworkUri(); - /** - * - * - *
-   * Optional. Subnetwork URI to connect workload to.
-   * 
- * - * string subnetwork_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - com.google.protobuf.ByteString getSubnetworkUriBytes(); - - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the networkTags. - */ - java.util.List getNetworkTagsList(); - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of networkTags. - */ - int getNetworkTagsCount(); - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The networkTags at the given index. - */ - java.lang.String getNetworkTags(int index); - /** - * - * - *
-   * Optional. Tags used for network traffic control.
-   * 
- * - * repeated string network_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the networkTags at the given index. - */ - com.google.protobuf.ByteString getNetworkTagsBytes(int index); - - /** - * - * - *
-   * Optional. The Cloud KMS key to use for encryption.
-   * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKey. - */ - java.lang.String getKmsKey(); - /** - * - * - *
-   * Optional. The Cloud KMS key to use for encryption.
-   * 
- * - * string kms_key = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKey. - */ - com.google.protobuf.ByteString getKmsKeyBytes(); - - public com.google.cloud.dataproc.v1.ExecutionConfig.NetworkCase getNetworkCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java deleted file mode 100644 index b6a86610..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/FailureAction.java +++ /dev/null @@ -1,178 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Actions in response to failure of a resource associated with a cluster.
- * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.FailureAction} - */ -public enum FailureAction implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * When FailureAction is unspecified, failure action defaults to NO_ACTION.
-   * 
- * - * FAILURE_ACTION_UNSPECIFIED = 0; - */ - FAILURE_ACTION_UNSPECIFIED(0), - /** - * - * - *
-   * Take no action on failure to create a cluster resource. NO_ACTION is the
-   * default.
-   * 
- * - * NO_ACTION = 1; - */ - NO_ACTION(1), - /** - * - * - *
-   * Delete the failed cluster resource.
-   * 
- * - * DELETE = 2; - */ - DELETE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * When FailureAction is unspecified, failure action defaults to NO_ACTION.
-   * 
- * - * FAILURE_ACTION_UNSPECIFIED = 0; - */ - public static final int FAILURE_ACTION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Take no action on failure to create a cluster resource. NO_ACTION is the
-   * default.
-   * 
- * - * NO_ACTION = 1; - */ - public static final int NO_ACTION_VALUE = 1; - /** - * - * - *
-   * Delete the failed cluster resource.
-   * 
- * - * DELETE = 2; - */ - public static final int DELETE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FailureAction 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 FailureAction forNumber(int value) { - switch (value) { - case 0: - return FAILURE_ACTION_UNSPECIFIED; - case 1: - return NO_ACTION; - case 2: - return DELETE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureAction findValueByNumber(int number) { - return FailureAction.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.dataproc.v1.SharedProto.getDescriptor().getEnumTypes().get(1); - } - - private static final FailureAction[] VALUES = values(); - - public static FailureAction 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 FailureAction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.FailureAction) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java deleted file mode 100644 index f92c6a6c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ /dev/null @@ -1,4112 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Common config settings for resources of Compute Engine cluster
- * instances, applicable to all instances in the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig} - */ -public final class GceClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GceClusterConfig) - GceClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GceClusterConfig.newBuilder() to construct. - private GceClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GceClusterConfig() { - zoneUri_ = ""; - networkUri_ = ""; - subnetworkUri_ = ""; - privateIpv6GoogleAccess_ = 0; - serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GceClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GceClusterConfig.class, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class); - } - - /** - * - * - *
-   * `PrivateIpv6GoogleAccess` controls whether and how Dataproc cluster nodes
-   * can communicate with Google Services through gRPC over IPv6.
-   * These values are directly mapped to corresponding values in the
-   * [Compute Engine Instance
-   * fields](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess} - */ - public enum PrivateIpv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * If unspecified, Compute Engine default behavior will apply, which
-     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
-     * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), - /** - * - * - *
-     * Private access to and from Google Services configuration
-     * inherited from the subnetwork configuration. This is the
-     * default Compute Engine behavior.
-     * 
- * - * INHERIT_FROM_SUBNETWORK = 1; - */ - INHERIT_FROM_SUBNETWORK(1), - /** - * - * - *
-     * Enables outbound private IPv6 access to Google Services from the Dataproc
-     * cluster.
-     * 
- * - * OUTBOUND = 2; - */ - OUTBOUND(2), - /** - * - * - *
-     * Enables bidirectional private IPv6 access between Google Services and the
-     * Dataproc cluster.
-     * 
- * - * BIDIRECTIONAL = 3; - */ - BIDIRECTIONAL(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * If unspecified, Compute Engine default behavior will apply, which
-     * is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
-     * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Private access to and from Google Services configuration
-     * inherited from the subnetwork configuration. This is the
-     * default Compute Engine behavior.
-     * 
- * - * INHERIT_FROM_SUBNETWORK = 1; - */ - public static final int INHERIT_FROM_SUBNETWORK_VALUE = 1; - /** - * - * - *
-     * Enables outbound private IPv6 access to Google Services from the Dataproc
-     * cluster.
-     * 
- * - * OUTBOUND = 2; - */ - public static final int OUTBOUND_VALUE = 2; - /** - * - * - *
-     * Enables bidirectional private IPv6 access between Google Services and the
-     * Dataproc cluster.
-     * 
- * - * BIDIRECTIONAL = 3; - */ - public static final int BIDIRECTIONAL_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 PrivateIpv6GoogleAccess 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 PrivateIpv6GoogleAccess forNumber(int value) { - switch (value) { - case 0: - return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; - case 1: - return INHERIT_FROM_SUBNETWORK; - case 2: - return OUTBOUND; - case 3: - return BIDIRECTIONAL; - 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 PrivateIpv6GoogleAccess findValueByNumber(int number) { - return PrivateIpv6GoogleAccess.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.dataproc.v1.GceClusterConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final PrivateIpv6GoogleAccess[] VALUES = values(); - - public static PrivateIpv6GoogleAccess 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 PrivateIpv6GoogleAccess(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess) - } - - public static final int ZONE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object zoneUri_; - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will
-   * always be present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - @java.lang.Override - public java.lang.String getZoneUri() { - java.lang.Object ref = zoneUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zoneUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will
-   * always be present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getZoneUriBytes() { - java.lang.Object ref = zoneUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zoneUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object networkUri_; - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - @java.lang.Override - public java.lang.String getNetworkUri() { - java.lang.Object ref = networkUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = networkUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - networkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBNETWORK_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object subnetworkUri_; - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - @java.lang.Override - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 7; - private boolean internalIpOnly_; - /** - * - * - *
-   * Optional. If true, all instances in the cluster will only have internal IP
-   * addresses. By default, clusters are not restricted to internal IP
-   * addresses, and will have ephemeral external IP addresses assigned to each
-   * instance. This `internal_ip_only` restriction can only be enabled for
-   * subnetwork enabled networks, and all off-cluster dependencies must be
-   * configured to be accessible without external IP addresses.
-   * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - @java.lang.Override - public boolean getInternalIpOnly() { - return internalIpOnly_; - } - - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; - private int privateIpv6GoogleAccess_; - /** - * - * - *
-   * Optional. The type of IPv6 access for a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-   * Optional. The type of IPv6 access for a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( - privateIpv6GoogleAccess_); - return result == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED - : result; - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 8; - private volatile java.lang.Object serviceAccount_; - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList serviceAccountScopes_; - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { - return serviceAccountScopes_; - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - public int getServiceAccountScopesCount() { - return serviceAccountScopes_.size(); - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - public java.lang.String getServiceAccountScopes(int index) { - return serviceAccountScopes_.get(index); - } - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { - return serviceAccountScopes_.getByteString(index); - } - - public static final int TAGS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList tags_; - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int METADATA_FIELD_NUMBER = 5; - - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetMetadata().getMap().containsKey(key); - } - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 11; - private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_; - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return reservationAffinity_ != null; - } - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { - return getReservationAffinity(); - } - - public static final int NODE_GROUP_AFFINITY_FIELD_NUMBER = 13; - private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodeGroupAffinity field is set. - */ - @java.lang.Override - public boolean hasNodeGroupAffinity() { - return nodeGroupAffinity_ != null; - } - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodeGroupAffinity. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; - } - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { - return getNodeGroupAffinity(); - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 14; - private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the confidentialInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasConfidentialInstanceConfig() { - return confidentialInstanceConfig_ != null; - } - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The confidentialInstanceConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; - } - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { - return getConfidentialInstanceConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(zoneUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkUri_); - } - for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, serviceAccountScopes_.getRaw(i)); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subnetworkUri_); - } - if (internalIpOnly_ != false) { - output.writeBool(7, internalIpOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_); - } - if (reservationAffinity_ != null) { - output.writeMessage(11, getReservationAffinity()); - } - if (privateIpv6GoogleAccess_ - != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(12, privateIpv6GoogleAccess_); - } - if (nodeGroupAffinity_ != null) { - output.writeMessage(13, getNodeGroupAffinity()); - } - if (shieldedInstanceConfig_ != null) { - output.writeMessage(14, getShieldedInstanceConfig()); - } - if (confidentialInstanceConfig_ != null) { - output.writeMessage(15, getConfidentialInstanceConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zoneUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkUri_); - } - { - int dataSize = 0; - for (int i = 0; i < serviceAccountScopes_.size(); i++) { - dataSize += computeStringSizeNoTag(serviceAccountScopes_.getRaw(i)); - } - size += dataSize; - size += 1 * getServiceAccountScopesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subnetworkUri_); - } - if (internalIpOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, internalIpOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_); - } - if (reservationAffinity_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity()); - } - if (privateIpv6GoogleAccess_ - != com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); - } - if (nodeGroupAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeGroupAffinity()); - } - if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getShieldedInstanceConfig()); - } - if (confidentialInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getConfidentialInstanceConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GceClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GceClusterConfig other = - (com.google.cloud.dataproc.v1.GceClusterConfig) obj; - - if (!getZoneUri().equals(other.getZoneUri())) return false; - if (!getNetworkUri().equals(other.getNetworkUri())) return false; - if (!getSubnetworkUri().equals(other.getSubnetworkUri())) return false; - if (getInternalIpOnly() != other.getInternalIpOnly()) return false; - if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (hasReservationAffinity() != other.hasReservationAffinity()) return false; - if (hasReservationAffinity()) { - if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; - } - if (hasNodeGroupAffinity() != other.hasNodeGroupAffinity()) return false; - if (hasNodeGroupAffinity()) { - if (!getNodeGroupAffinity().equals(other.getNodeGroupAffinity())) return false; - } - if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; - if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; - } - if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; - if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ZONE_URI_FIELD_NUMBER; - hash = (53 * hash) + getZoneUri().hashCode(); - hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getNetworkUri().hashCode(); - hash = (37 * hash) + SUBNETWORK_URI_FIELD_NUMBER; - hash = (53 * hash) + getSubnetworkUri().hashCode(); - hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); - hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + privateIpv6GoogleAccess_; - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - if (getServiceAccountScopesCount() > 0) { - hash = (37 * hash) + SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountScopesList().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - if (hasReservationAffinity()) { - hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; - hash = (53 * hash) + getReservationAffinity().hashCode(); - } - if (hasNodeGroupAffinity()) { - hash = (37 * hash) + NODE_GROUP_AFFINITY_FIELD_NUMBER; - hash = (53 * hash) + getNodeGroupAffinity().hashCode(); - } - if (hasShieldedInstanceConfig()) { - hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); - } - if (hasConfidentialInstanceConfig()) { - hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig 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.dataproc.v1.GceClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig 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.dataproc.v1.GceClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig 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.dataproc.v1.GceClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Common config settings for resources of Compute Engine cluster
-   * instances, applicable to all instances in the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GceClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GceClusterConfig) - com.google.cloud.dataproc.v1.GceClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 5: - return internalGetMutableMetadata(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GceClusterConfig.class, - com.google.cloud.dataproc.v1.GceClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GceClusterConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - zoneUri_ = ""; - - networkUri_ = ""; - - subnetworkUri_ = ""; - - internalIpOnly_ = false; - - privateIpv6GoogleAccess_ = 0; - - serviceAccount_ = ""; - - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableMetadata().clear(); - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinity_ = null; - } else { - nodeGroupAffinity_ = null; - nodeGroupAffinityBuilder_ = null; - } - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfig_ = null; - } else { - confidentialInstanceConfig_ = null; - confidentialInstanceConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig build() { - com.google.cloud.dataproc.v1.GceClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.GceClusterConfig result = - new com.google.cloud.dataproc.v1.GceClusterConfig(this); - int from_bitField0_ = bitField0_; - result.zoneUri_ = zoneUri_; - result.networkUri_ = networkUri_; - result.subnetworkUri_ = subnetworkUri_; - result.internalIpOnly_ = internalIpOnly_; - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; - result.serviceAccount_ = serviceAccount_; - if (((bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = serviceAccountScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.serviceAccountScopes_ = serviceAccountScopes_; - if (((bitField0_ & 0x00000002) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tags_ = tags_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - if (reservationAffinityBuilder_ == null) { - result.reservationAffinity_ = reservationAffinity_; - } else { - result.reservationAffinity_ = reservationAffinityBuilder_.build(); - } - if (nodeGroupAffinityBuilder_ == null) { - result.nodeGroupAffinity_ = nodeGroupAffinity_; - } else { - result.nodeGroupAffinity_ = nodeGroupAffinityBuilder_.build(); - } - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - if (confidentialInstanceConfigBuilder_ == null) { - result.confidentialInstanceConfig_ = confidentialInstanceConfig_; - } else { - result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_.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.dataproc.v1.GceClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GceClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.GceClusterConfig.getDefaultInstance()) return this; - if (!other.getZoneUri().isEmpty()) { - zoneUri_ = other.zoneUri_; - onChanged(); - } - if (!other.getNetworkUri().isEmpty()) { - networkUri_ = other.networkUri_; - onChanged(); - } - if (!other.getSubnetworkUri().isEmpty()) { - subnetworkUri_ = other.subnetworkUri_; - onChanged(); - } - if (other.getInternalIpOnly() != false) { - setInternalIpOnly(other.getInternalIpOnly()); - } - if (other.privateIpv6GoogleAccess_ != 0) { - setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.serviceAccountScopes_.isEmpty()) { - if (serviceAccountScopes_.isEmpty()) { - serviceAccountScopes_ = other.serviceAccountScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.addAll(other.serviceAccountScopes_); - } - onChanged(); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (other.hasNodeGroupAffinity()) { - mergeNodeGroupAffinity(other.getNodeGroupAffinity()); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (other.hasConfidentialInstanceConfig()) { - mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - zoneUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - networkUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - break; - } // case 42 - case 50: - { - subnetworkUri_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: - { - internalIpOnly_ = input.readBool(); - - break; - } // case 56 - case 66: - { - serviceAccount_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 90: - { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 90 - case 96: - { - privateIpv6GoogleAccess_ = input.readEnum(); - - break; - } // case 96 - case 106: - { - input.readMessage( - getNodeGroupAffinityFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 114: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 114 - case 122: - { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 122 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object zoneUri_ = ""; - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will
-     * always be present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - public java.lang.String getZoneUri() { - java.lang.Object ref = zoneUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zoneUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will
-     * always be present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - public com.google.protobuf.ByteString getZoneUriBytes() { - java.lang.Object ref = zoneUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zoneUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will
-     * always be present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The zoneUri to set. - * @return This builder for chaining. - */ - public Builder setZoneUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zoneUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will
-     * always be present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearZoneUri() { - - zoneUri_ = getDefaultInstance().getZoneUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The zone where the Compute Engine cluster will be located.
-     * On a create request, it is required in the "global" region. If omitted
-     * in a non-global Dataproc region, the service will pick a zone in the
-     * corresponding Compute Engine region. On a get request, zone will
-     * always be present.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-     * * `projects/[project_id]/zones/[zone]`
-     * * `us-central1-f`
-     * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for zoneUri to set. - * @return This builder for chaining. - */ - public Builder setZoneUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zoneUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object networkUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - public java.lang.String getNetworkUri() { - java.lang.Object ref = networkUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - public com.google.protobuf.ByteString getNetworkUriBytes() { - java.lang.Object ref = networkUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - networkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - networkUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNetworkUri() { - - networkUri_ = getDefaultInstance().getNetworkUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine network to be used for machine
-     * communications. Cannot be specified with subnetwork_uri. If neither
-     * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-     * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-     * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-     * more information).
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-     * * `projects/[project_id]/regions/global/default`
-     * * `default`
-     * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for networkUri to set. - * @return This builder for chaining. - */ - public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - networkUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object subnetworkUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - public java.lang.String getSubnetworkUri() { - java.lang.Object ref = subnetworkUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - public com.google.protobuf.ByteString getSubnetworkUriBytes() { - java.lang.Object ref = subnetworkUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetworkUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSubnetworkUri() { - - subnetworkUri_ = getDefaultInstance().getSubnetworkUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine subnetwork to be used for machine
-     * communications. Cannot be specified with network_uri.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-     * * `sub0`
-     * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for subnetworkUri to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetworkUri_ = value; - onChanged(); - return this; - } - - private boolean internalIpOnly_; - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - @java.lang.Override - public boolean getInternalIpOnly() { - return internalIpOnly_; - } - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The internalIpOnly to set. - * @return This builder for chaining. - */ - public Builder setInternalIpOnly(boolean value) { - - internalIpOnly_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If true, all instances in the cluster will only have internal IP
-     * addresses. By default, clusters are not restricted to internal IP
-     * addresses, and will have ephemeral external IP addresses assigned to each
-     * instance. This `internal_ip_only` restriction can only be enabled for
-     * subnetwork enabled networks, and all off-cluster dependencies must be
-     * configured to be accessible without external IP addresses.
-     * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearInternalIpOnly() { - - internalIpOnly_ = false; - onChanged(); - return this; - } - - private int privateIpv6GoogleAccess_ = 0; - /** - * - * - *
-     * Optional. The type of IPv6 access for a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-     * Optional. The type of IPv6 access for a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccessValue(int value) { - - privateIpv6GoogleAccess_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The type of IPv6 access for a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess result = - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.valueOf( - privateIpv6GoogleAccess_); - return result == null - ? com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. The type of IPv6 access for a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccess( - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - - privateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The type of IPv6 access for a cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrivateIpv6GoogleAccess() { - - privateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The [Dataproc service
-     * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-     * (also see [VM Data Plane
-     * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-     * used by Dataproc cluster VM instances to access Google Cloud Platform
-     * services.
-     * If not specified, the
-     * [Compute Engine default service
-     * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-     * is used.
-     * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureServiceAccountScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { - return serviceAccountScopes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - public int getServiceAccountScopesCount() { - return serviceAccountScopes_.size(); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - public java.lang.String getServiceAccountScopes(int index) { - return serviceAccountScopes_.get(index); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { - return serviceAccountScopes_.getByteString(index); - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The serviceAccountScopes to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addServiceAccountScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addAllServiceAccountScopes(java.lang.Iterable values) { - ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The URIs of service account scopes to be included in
-     * Compute Engine instances. The following base set of scopes is always
-     * included:
-     * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-     * * https://www.googleapis.com/auth/devstorage.read_write
-     * * https://www.googleapis.com/auth/logging.write
-     * If no scopes are specified, the following defaults are also provided:
-     * * https://www.googleapis.com/auth/bigquery
-     * * https://www.googleapis.com/auth/bigtable.admin.table
-     * * https://www.googleapis.com/auth/bigtable.data
-     * * https://www.googleapis.com/auth/devstorage.full_control
-     * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the serviceAccountScopes to add. - * @return This builder for chaining. - */ - public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The Compute Engine tags to add to all instances (see [Tagging
-     * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-     * 
- * - * repeated string tags = 4; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; - if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetMetadata().getMap().containsKey(key); - } - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableMetadata() { - return internalGetMutableMetadata().getMutableMap(); - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableMetadata().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The Compute Engine metadata entries to add to all instances (see
-     * [Project and instance
-     * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-     * 
- * - * map<string, string> metadata = 5; - */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> - reservationAffinityBuilder_; - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return reservationAffinityBuilder_ != null || reservationAffinity_ != null; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - public com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReservationAffinity(com.google.cloud.dataproc.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReservationAffinity( - com.google.cloud.dataproc.v1.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReservationAffinity( - com.google.cloud.dataproc.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (reservationAffinity_ != null) { - reservationAffinity_ = - com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder(reservationAffinity_) - .mergeFrom(value) - .buildPartial(); - } else { - reservationAffinity_ = value; - } - onChanged(); - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - onChanged(); - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ReservationAffinity.Builder - getReservationAffinityBuilder() { - - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder - getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - } - /** - * - * - *
-     * Optional. Reservation Affinity for consuming Zonal reservation.
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ReservationAffinity, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder, - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), getParentForChildren(), isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - private com.google.cloud.dataproc.v1.NodeGroupAffinity nodeGroupAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> - nodeGroupAffinityBuilder_; - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodeGroupAffinity field is set. - */ - public boolean hasNodeGroupAffinity() { - return nodeGroupAffinityBuilder_ != null || nodeGroupAffinity_ != null; - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodeGroupAffinity. - */ - public com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity() { - if (nodeGroupAffinityBuilder_ == null) { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; - } else { - return nodeGroupAffinityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { - if (nodeGroupAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeGroupAffinity_ = value; - onChanged(); - } else { - nodeGroupAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodeGroupAffinity( - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder builderForValue) { - if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinity_ = builderForValue.build(); - onChanged(); - } else { - nodeGroupAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeNodeGroupAffinity(com.google.cloud.dataproc.v1.NodeGroupAffinity value) { - if (nodeGroupAffinityBuilder_ == null) { - if (nodeGroupAffinity_ != null) { - nodeGroupAffinity_ = - com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder(nodeGroupAffinity_) - .mergeFrom(value) - .buildPartial(); - } else { - nodeGroupAffinity_ = value; - } - onChanged(); - } else { - nodeGroupAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNodeGroupAffinity() { - if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinity_ = null; - onChanged(); - } else { - nodeGroupAffinity_ = null; - nodeGroupAffinityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder getNodeGroupAffinityBuilder() { - - onChanged(); - return getNodeGroupAffinityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder() { - if (nodeGroupAffinityBuilder_ != null) { - return nodeGroupAffinityBuilder_.getMessageOrBuilder(); - } else { - return nodeGroupAffinity_ == null - ? com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance() - : nodeGroupAffinity_; - } - } - /** - * - * - *
-     * Optional. Node Group Affinity for sole-tenant clusters.
-     * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder> - getNodeGroupAffinityFieldBuilder() { - if (nodeGroupAffinityBuilder_ == null) { - nodeGroupAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.NodeGroupAffinity, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder, - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder>( - getNodeGroupAffinity(), getParentForChildren(), isClean()); - nodeGroupAffinity_ = null; - } - return nodeGroupAffinityBuilder_; - } - - private com.google.cloud.dataproc.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The shieldedInstanceConfig. - */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setShieldedInstanceConfig( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setShieldedInstanceConfig( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeShieldedInstanceConfig( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder( - shieldedInstanceConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - } - /** - * - * - *
-     * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-     * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-     * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ShieldedInstanceConfig, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.ConfidentialInstanceConfig confidentialInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> - confidentialInstanceConfigBuilder_; - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the confidentialInstanceConfig field is set. - */ - public boolean hasConfidentialInstanceConfig() { - return confidentialInstanceConfigBuilder_ != null || confidentialInstanceConfig_ != null; - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The confidentialInstanceConfig. - */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig() { - if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; - } else { - return confidentialInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { - if (confidentialInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialInstanceConfig_ = value; - onChanged(); - } else { - confidentialInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder builderForValue) { - if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - confidentialInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeConfidentialInstanceConfig( - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig value) { - if (confidentialInstanceConfigBuilder_ == null) { - if (confidentialInstanceConfig_ != null) { - confidentialInstanceConfig_ = - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.newBuilder( - confidentialInstanceConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - confidentialInstanceConfig_ = value; - } - onChanged(); - } else { - confidentialInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearConfidentialInstanceConfig() { - if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfig_ = null; - onChanged(); - } else { - confidentialInstanceConfig_ = null; - confidentialInstanceConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder - getConfidentialInstanceConfigBuilder() { - - onChanged(); - return getConfidentialInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { - if (confidentialInstanceConfigBuilder_ != null) { - return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return confidentialInstanceConfig_ == null - ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; - } - } - /** - * - * - *
-     * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-     * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder> - getConfidentialInstanceConfigFieldBuilder() { - if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder, - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), getParentForChildren(), isClean()); - confidentialInstanceConfig_ = null; - } - return confidentialInstanceConfigBuilder_; - } - - @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.dataproc.v1.GceClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GceClusterConfig) - private static final com.google.cloud.dataproc.v1.GceClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GceClusterConfig(); - } - - public static com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GceClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java deleted file mode 100644 index 407610fa..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ /dev/null @@ -1,625 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface GceClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GceClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will
-   * always be present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The zoneUri. - */ - java.lang.String getZoneUri(); - /** - * - * - *
-   * Optional. The zone where the Compute Engine cluster will be located.
-   * On a create request, it is required in the "global" region. If omitted
-   * in a non-global Dataproc region, the service will pick a zone in the
-   * corresponding Compute Engine region. On a get request, zone will
-   * always be present.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
-   * * `projects/[project_id]/zones/[zone]`
-   * * `us-central1-f`
-   * 
- * - * string zone_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for zoneUri. - */ - com.google.protobuf.ByteString getZoneUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The networkUri. - */ - java.lang.String getNetworkUri(); - /** - * - * - *
-   * Optional. The Compute Engine network to be used for machine
-   * communications. Cannot be specified with subnetwork_uri. If neither
-   * `network_uri` nor `subnetwork_uri` is specified, the "default" network of
-   * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
-   * [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
-   * more information).
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`
-   * * `projects/[project_id]/regions/global/default`
-   * * `default`
-   * 
- * - * string network_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for networkUri. - */ - com.google.protobuf.ByteString getNetworkUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subnetworkUri. - */ - java.lang.String getSubnetworkUri(); - /** - * - * - *
-   * Optional. The Compute Engine subnetwork to be used for machine
-   * communications. Cannot be specified with network_uri.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
-   * * `sub0`
-   * 
- * - * string subnetwork_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subnetworkUri. - */ - com.google.protobuf.ByteString getSubnetworkUriBytes(); - - /** - * - * - *
-   * Optional. If true, all instances in the cluster will only have internal IP
-   * addresses. By default, clusters are not restricted to internal IP
-   * addresses, and will have ephemeral external IP addresses assigned to each
-   * instance. This `internal_ip_only` restriction can only be enabled for
-   * subnetwork enabled networks, and all off-cluster dependencies must be
-   * configured to be accessible without external IP addresses.
-   * 
- * - * bool internal_ip_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The internalIpOnly. - */ - boolean getInternalIpOnly(); - - /** - * - * - *
-   * Optional. The type of IPv6 access for a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - int getPrivateIpv6GoogleAccessValue(); - /** - * - * - *
-   * Optional. The type of IPv6 access for a cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateIpv6GoogleAccess. - */ - com.google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess - getPrivateIpv6GoogleAccess(); - - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * Optional. The [Dataproc service
-   * account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
-   * (also see [VM Data Plane
-   * identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
-   * used by Dataproc cluster VM instances to access Google Cloud Platform
-   * services.
-   * If not specified, the
-   * [Compute Engine default service
-   * account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
-   * is used.
-   * 
- * - * string service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the serviceAccountScopes. - */ - java.util.List getServiceAccountScopesList(); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of serviceAccountScopes. - */ - int getServiceAccountScopesCount(); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The serviceAccountScopes at the given index. - */ - java.lang.String getServiceAccountScopes(int index); - /** - * - * - *
-   * Optional. The URIs of service account scopes to be included in
-   * Compute Engine instances. The following base set of scopes is always
-   * included:
-   * * https://www.googleapis.com/auth/cloud.useraccounts.readonly
-   * * https://www.googleapis.com/auth/devstorage.read_write
-   * * https://www.googleapis.com/auth/logging.write
-   * If no scopes are specified, the following defaults are also provided:
-   * * https://www.googleapis.com/auth/bigquery
-   * * https://www.googleapis.com/auth/bigtable.admin.table
-   * * https://www.googleapis.com/auth/bigtable.data
-   * * https://www.googleapis.com/auth/devstorage.full_control
-   * 
- * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the serviceAccountScopes at the given index. - */ - com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); - - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-   * The Compute Engine tags to add to all instances (see [Tagging
-   * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
-   * 
- * - * repeated string tags = 4; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - int getMetadataCount(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Deprecated - java.util.Map getMetadata(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - java.util.Map getMetadataMap(); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - - /* nullable */ - java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * The Compute Engine metadata entries to add to all instances (see
-   * [Project and instance
-   * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
-   * 
- * - * map<string, string> metadata = 5; - */ - java.lang.String getMetadataOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reservationAffinity field is set. - */ - boolean hasReservationAffinity(); - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reservationAffinity. - */ - com.google.cloud.dataproc.v1.ReservationAffinity getReservationAffinity(); - /** - * - * - *
-   * Optional. Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity reservation_affinity = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); - - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodeGroupAffinity field is set. - */ - boolean hasNodeGroupAffinity(); - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodeGroupAffinity. - */ - com.google.cloud.dataproc.v1.NodeGroupAffinity getNodeGroupAffinity(); - /** - * - * - *
-   * Optional. Node Group Affinity for sole-tenant clusters.
-   * 
- * - * - * .google.cloud.dataproc.v1.NodeGroupAffinity node_group_affinity = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder getNodeGroupAffinityOrBuilder(); - - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The shieldedInstanceConfig. - */ - com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - * - * - *
-   * Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * - * .google.cloud.dataproc.v1.ShieldedInstanceConfig shielded_instance_config = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the confidentialInstanceConfig field is set. - */ - boolean hasConfidentialInstanceConfig(); - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The confidentialInstanceConfig. - */ - com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialInstanceConfig(); - /** - * - * - *
-   * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
-   * 
- * - * - * .google.cloud.dataproc.v1.ConfidentialInstanceConfig confidential_instance_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java deleted file mode 100644 index 7912ad40..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java +++ /dev/null @@ -1,679 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to fetch an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} - */ -public final class GetAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) - GetAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAutoscalingPolicyRequest.newBuilder() to construct. - private GetAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetAutoscalingPolicyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest 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.dataproc.v1.GetAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest 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.dataproc.v1.GetAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest 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.dataproc.v1.GetAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to fetch an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_GetAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(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.dataproc.v1.GetAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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 "resource name" of the autoscaling policy, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-     * * For `projects.locations.autoscalingPolicies.get`, the resource name
-     *   of the policy has the following format:
-     *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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.dataproc.v1.GetAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index e2dd358b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface GetAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The "resource name" of the autoscaling policy, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`
-   * * For `projects.locations.autoscalingPolicies.get`, the resource name
-   *   of the policy has the following format:
-   *   `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java deleted file mode 100644 index 2f363951..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequest.java +++ /dev/null @@ -1,628 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to get the resource representation for a batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} - */ -public final class GetBatchRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetBatchRequest) - GetBatchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetBatchRequest.newBuilder() to construct. - private GetBatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetBatchRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetBatchRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, - com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GetBatchRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GetBatchRequest other = - (com.google.cloud.dataproc.v1.GetBatchRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest 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.dataproc.v1.GetBatchRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to get the resource representation for a batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetBatchRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetBatchRequest) - com.google.cloud.dataproc.v1.GetBatchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetBatchRequest.class, - com.google.cloud.dataproc.v1.GetBatchRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GetBatchRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_GetBatchRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetBatchRequest build() { - com.google.cloud.dataproc.v1.GetBatchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetBatchRequest buildPartial() { - com.google.cloud.dataproc.v1.GetBatchRequest result = - new com.google.cloud.dataproc.v1.GetBatchRequest(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.dataproc.v1.GetBatchRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetBatchRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GetBatchRequest other) { - if (other == com.google.cloud.dataproc.v1.GetBatchRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the batch to retrieve.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the batch to retrieve.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the batch to retrieve.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the batch to retrieve.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the batch to retrieve.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - 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.dataproc.v1.GetBatchRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetBatchRequest) - private static final com.google.cloud.dataproc.v1.GetBatchRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetBatchRequest(); - } - - public static com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBatchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetBatchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java deleted file mode 100644 index e8b97dd4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetBatchRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface GetBatchRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetBatchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the batch to retrieve.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java deleted file mode 100644 index 153525a7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java +++ /dev/null @@ -1,977 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Request to get the resource representation for a cluster in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} - */ -public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetClusterRequest) - GetClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetClusterRequest.newBuilder() to construct. - private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, - com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GetClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GetClusterRequest other = - (com.google.cloud.dataproc.v1.GetClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest 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.dataproc.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest 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.dataproc.v1.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest 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.dataproc.v1.GetClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Request to get the resource representation for a cluster in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetClusterRequest) - com.google.cloud.dataproc.v1.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetClusterRequest.class, - com.google.cloud.dataproc.v1.GetClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GetClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetClusterRequest build() { - com.google.cloud.dataproc.v1.GetClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.GetClusterRequest result = - new com.google.cloud.dataproc.v1.GetClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - 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.dataproc.v1.GetClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GetClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.GetClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = 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.dataproc.v1.GetClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetClusterRequest) - private static final com.google.cloud.dataproc.v1.GetClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java deleted file mode 100644 index fba9993e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface GetClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java deleted file mode 100644 index 1f16649a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java +++ /dev/null @@ -1,977 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to get the resource representation for a job in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetJobRequest} - */ -public final class GetJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetJobRequest) - GetJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJobRequest.newBuilder() to construct. - private GetJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, - com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GetJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GetJobRequest other = - (com.google.cloud.dataproc.v1.GetJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest 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.dataproc.v1.GetJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest 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.dataproc.v1.GetJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest 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.dataproc.v1.GetJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to get the resource representation for a job in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetJobRequest) - com.google.cloud.dataproc.v1.GetJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetJobRequest.class, - com.google.cloud.dataproc.v1.GetJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GetJobRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GetJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetJobRequest build() { - com.google.cloud.dataproc.v1.GetJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetJobRequest buildPartial() { - com.google.cloud.dataproc.v1.GetJobRequest result = - new com.google.cloud.dataproc.v1.GetJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - 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.dataproc.v1.GetJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GetJobRequest other) { - if (other == com.google.cloud.dataproc.v1.GetJobRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1.GetJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetJobRequest) - private static final com.google.cloud.dataproc.v1.GetJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetJobRequest(); - } - - public static com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java deleted file mode 100644 index 013ec48a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java +++ /dev/null @@ -1,102 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface GetJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java deleted file mode 100644 index eb818575..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java +++ /dev/null @@ -1,778 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to fetch a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} - */ -public final class GetWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) - GetWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWorkflowTemplateRequest.newBuilder() to construct. - private GetWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetWorkflowTemplateRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to retrieve. Only previously
-   * instantiated versions can be retrieved.
-   * If unspecified, retrieves the current version.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (version_ != 0) { - output.writeInt32(2, version_); - } - getUnknownFields().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 (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest 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.dataproc.v1.GetWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest 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.dataproc.v1.GetWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest 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.dataproc.v1.GetWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to fetch a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GetWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - version_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(this); - result.name_ = name_; - result.version_ = version_; - 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.dataproc.v1.GetWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.get`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to retrieve. Only previously
-     * instantiated versions can be retrieved.
-     * If unspecified, retrieves the current version.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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.dataproc.v1.GetWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 41a72a2d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface GetWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GetWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.get`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to retrieve. Only previously
-   * instantiated versions can be retrieved.
-   * If unspecified, retrieves the current version.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - int getVersion(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java deleted file mode 100644 index 2cfbf5c7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java +++ /dev/null @@ -1,1267 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The cluster's GKE config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} - */ -public final class GkeClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeClusterConfig) - GkeClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeClusterConfig.newBuilder() to construct. - private GkeClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeClusterConfig() { - gkeClusterTarget_ = ""; - nodePoolTarget_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); - } - - public static final int GKE_CLUSTER_TARGET_FIELD_NUMBER = 2; - private volatile java.lang.Object gkeClusterTarget_; - /** - * - * - *
-   * Optional. A target GKE cluster to deploy to. It must be in the same project and
-   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-   * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gkeClusterTarget. - */ - @java.lang.Override - public java.lang.String getGkeClusterTarget() { - java.lang.Object ref = gkeClusterTarget_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gkeClusterTarget_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A target GKE cluster to deploy to. It must be in the same project and
-   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-   * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gkeClusterTarget. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGkeClusterTargetBytes() { - java.lang.Object ref = gkeClusterTarget_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gkeClusterTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_TARGET_FIELD_NUMBER = 3; - private java.util.List nodePoolTarget_; - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getNodePoolTargetList() { - return nodePoolTarget_; - } - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getNodePoolTargetOrBuilderList() { - return nodePoolTarget_; - } - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getNodePoolTargetCount() { - return nodePoolTarget_.size(); - } - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { - return nodePoolTarget_.get(index); - } - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( - int index) { - return nodePoolTarget_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gkeClusterTarget_); - } - for (int i = 0; i < nodePoolTarget_.size(); i++) { - output.writeMessage(3, nodePoolTarget_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gkeClusterTarget_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gkeClusterTarget_); - } - for (int i = 0; i < nodePoolTarget_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, nodePoolTarget_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GkeClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeClusterConfig other = - (com.google.cloud.dataproc.v1.GkeClusterConfig) obj; - - if (!getGkeClusterTarget().equals(other.getGkeClusterTarget())) return false; - if (!getNodePoolTargetList().equals(other.getNodePoolTargetList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GKE_CLUSTER_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getGkeClusterTarget().hashCode(); - if (getNodePoolTargetCount() > 0) { - hash = (37 * hash) + NODE_POOL_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolTargetList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig 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.dataproc.v1.GkeClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 cluster's GKE config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeClusterConfig) - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeClusterConfig.class, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - gkeClusterTarget_ = ""; - - if (nodePoolTargetBuilder_ == null) { - nodePoolTarget_ = java.util.Collections.emptyList(); - } else { - nodePoolTarget_ = null; - nodePoolTargetBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig build() { - com.google.cloud.dataproc.v1.GkeClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeClusterConfig result = - new com.google.cloud.dataproc.v1.GkeClusterConfig(this); - int from_bitField0_ = bitField0_; - result.gkeClusterTarget_ = gkeClusterTarget_; - if (nodePoolTargetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = java.util.Collections.unmodifiableList(nodePoolTarget_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePoolTarget_ = nodePoolTarget_; - } else { - result.nodePoolTarget_ = nodePoolTargetBuilder_.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.dataproc.v1.GkeClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) return this; - if (!other.getGkeClusterTarget().isEmpty()) { - gkeClusterTarget_ = other.gkeClusterTarget_; - onChanged(); - } - if (nodePoolTargetBuilder_ == null) { - if (!other.nodePoolTarget_.isEmpty()) { - if (nodePoolTarget_.isEmpty()) { - nodePoolTarget_ = other.nodePoolTarget_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.addAll(other.nodePoolTarget_); - } - onChanged(); - } - } else { - if (!other.nodePoolTarget_.isEmpty()) { - if (nodePoolTargetBuilder_.isEmpty()) { - nodePoolTargetBuilder_.dispose(); - nodePoolTargetBuilder_ = null; - nodePoolTarget_ = other.nodePoolTarget_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolTargetBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolTargetFieldBuilder() - : null; - } else { - nodePoolTargetBuilder_.addAllMessages(other.nodePoolTarget_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - gkeClusterTarget_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - com.google.cloud.dataproc.v1.GkeNodePoolTarget m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.parser(), extensionRegistry); - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(m); - } else { - nodePoolTargetBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object gkeClusterTarget_ = ""; - /** - * - * - *
-     * Optional. A target GKE cluster to deploy to. It must be in the same project and
-     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gkeClusterTarget. - */ - public java.lang.String getGkeClusterTarget() { - java.lang.Object ref = gkeClusterTarget_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gkeClusterTarget_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A target GKE cluster to deploy to. It must be in the same project and
-     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gkeClusterTarget. - */ - public com.google.protobuf.ByteString getGkeClusterTargetBytes() { - java.lang.Object ref = gkeClusterTarget_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gkeClusterTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A target GKE cluster to deploy to. It must be in the same project and
-     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The gkeClusterTarget to set. - * @return This builder for chaining. - */ - public Builder setGkeClusterTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gkeClusterTarget_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A target GKE cluster to deploy to. It must be in the same project and
-     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearGkeClusterTarget() { - - gkeClusterTarget_ = getDefaultInstance().getGkeClusterTarget(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A target GKE cluster to deploy to. It must be in the same project and
-     * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-     * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-     * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for gkeClusterTarget to set. - * @return This builder for chaining. - */ - public Builder setGkeClusterTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gkeClusterTarget_ = value; - onChanged(); - return this; - } - - private java.util.List nodePoolTarget_ = - java.util.Collections.emptyList(); - - private void ensureNodePoolTargetIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodePoolTarget_ = - new java.util.ArrayList( - nodePoolTarget_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> - nodePoolTargetBuilder_; - - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getNodePoolTargetList() { - if (nodePoolTargetBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodePoolTarget_); - } else { - return nodePoolTargetBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getNodePoolTargetCount() { - if (nodePoolTargetBuilder_ == null) { - return nodePoolTarget_.size(); - } else { - return nodePoolTargetBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index) { - if (nodePoolTargetBuilder_ == null) { - return nodePoolTarget_.get(index); - } else { - return nodePoolTargetBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodePoolTarget( - int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { - if (nodePoolTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.set(index, value); - onChanged(); - } else { - nodePoolTargetBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodePoolTarget( - int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.set(index, builderForValue.build()); - onChanged(); - } else { - nodePoolTargetBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addNodePoolTarget(com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { - if (nodePoolTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(value); - onChanged(); - } else { - nodePoolTargetBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addNodePoolTarget( - int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget value) { - if (nodePoolTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(index, value); - onChanged(); - } else { - nodePoolTargetBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addNodePoolTarget( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(builderForValue.build()); - onChanged(); - } else { - nodePoolTargetBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addNodePoolTarget( - int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder builderForValue) { - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.add(index, builderForValue.build()); - onChanged(); - } else { - nodePoolTargetBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllNodePoolTarget( - java.lang.Iterable values) { - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePoolTarget_); - onChanged(); - } else { - nodePoolTargetBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNodePoolTarget() { - if (nodePoolTargetBuilder_ == null) { - nodePoolTarget_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodePoolTargetBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeNodePoolTarget(int index) { - if (nodePoolTargetBuilder_ == null) { - ensureNodePoolTargetIsMutable(); - nodePoolTarget_.remove(index); - onChanged(); - } else { - nodePoolTargetBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder getNodePoolTargetBuilder( - int index) { - return getNodePoolTargetFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder( - int index) { - if (nodePoolTargetBuilder_ == null) { - return nodePoolTarget_.get(index); - } else { - return nodePoolTargetBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getNodePoolTargetOrBuilderList() { - if (nodePoolTargetBuilder_ != null) { - return nodePoolTargetBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodePoolTarget_); - } - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder() { - return getNodePoolTargetFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder addNodePoolTargetBuilder( - int index) { - return getNodePoolTargetFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-     * must be assigned the 'default' role. Each role can be given to only a
-     * single NodePoolTarget. All NodePools must have the same location settings.
-     * If a nodePoolTarget is not specified, Dataproc constructs a default
-     * nodePoolTarget.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getNodePoolTargetBuilderList() { - return getNodePoolTargetFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> - getNodePoolTargetFieldBuilder() { - if (nodePoolTargetBuilder_ == null) { - nodePoolTargetBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolTarget, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>( - nodePoolTarget_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodePoolTarget_ = null; - } - return nodePoolTargetBuilder_; - } - - @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.dataproc.v1.GkeClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeClusterConfig) - private static final com.google.cloud.dataproc.v1.GkeClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeClusterConfig(); - } - - public static com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java deleted file mode 100644 index bc7bd12a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java +++ /dev/null @@ -1,136 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface GkeClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A target GKE cluster to deploy to. It must be in the same project and
-   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-   * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gkeClusterTarget. - */ - java.lang.String getGkeClusterTarget(); - /** - * - * - *
-   * Optional. A target GKE cluster to deploy to. It must be in the same project and
-   * region as the Dataproc cluster (the GKE cluster can be zonal or regional).
-   * Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
-   * 
- * - * string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gkeClusterTarget. - */ - com.google.protobuf.ByteString getGkeClusterTargetBytes(); - - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getNodePoolTargetList(); - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolTarget getNodePoolTarget(int index); - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getNodePoolTargetCount(); - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getNodePoolTargetOrBuilderList(); - /** - * - * - *
-   * Optional. GKE NodePools where workloads will be scheduled. At least one node pool
-   * must be assigned the 'default' role. Each role can be given to only a
-   * single NodePoolTarget. All NodePools must have the same location settings.
-   * If a nodePoolTarget is not specified, Dataproc constructs a default
-   * nodePoolTarget.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java deleted file mode 100644 index a25537d1..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfig.java +++ /dev/null @@ -1,4644 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The configuration of a GKE NodePool used by a [Dataproc-on-GKE
- * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig} - */ -public final class GkeNodePoolConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig) - GkeNodePoolConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeNodePoolConfig.newBuilder() to construct. - private GkeNodePoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeNodePoolConfig() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeNodePoolConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class); - } - - public interface GkeNodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The name of a Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineType. - */ - java.lang.String getMachineType(); - /** - * - * - *
-     * Optional. The name of a Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineType. - */ - com.google.protobuf.ByteString getMachineTypeBytes(); - - /** - * - * - *
-     * Optional. Whether the nodes are created as [preemptible VM
-     * instances](https://cloud.google.com/compute/docs/instances/preemptible).
-     * 
- * - * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - * - * - *
-     * Optional. The number of local SSD disks to attach to the node, which is limited by
-     * the maximum number of disks allowable per zone (see [Adding Local
-     * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
-     * 
- * - * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); - - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAcceleratorsList(); - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators( - int index); - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getAcceleratorsCount(); - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> - getAcceleratorsOrBuilderList(); - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index); - - /** - * - * - *
-     * Optional. [Minimum CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * to be used by this instance. The instance may be scheduled on the
-     * specified or a newer CPU platform. Specify the friendly names of CPU
-     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-     * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-     * Optional. [Minimum CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * to be used by this instance. The instance may be scheduled on the
-     * specified or a newer CPU platform. Specify the friendly names of CPU
-     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-     * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); - } - /** - * - * - *
-   * Parameters that describe cluster nodes.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} - */ - public static final class GkeNodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - GkeNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeNodeConfig.newBuilder() to construct. - private GkeNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeNodeConfig() { - machineType_ = ""; - accelerators_ = java.util.Collections.emptyList(); - minCpuPlatform_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeNodeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; - /** - * - * - *
-     * Optional. The name of a Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineType. - */ - @java.lang.Override - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The name of a Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types).
-     * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREEMPTIBLE_FIELD_NUMBER = 10; - private boolean preemptible_; - /** - * - * - *
-     * Optional. Whether the nodes are created as [preemptible VM
-     * instances](https://cloud.google.com/compute/docs/instances/preemptible).
-     * 
- * - * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; - private int localSsdCount_; - /** - * - * - *
-     * Optional. The number of local SSD disks to attach to the node, which is limited by
-     * the maximum number of disks allowable per zone (see [Adding Local
-     * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
-     * 
- * - * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - - public static final int ACCELERATORS_FIELD_NUMBER = 11; - private java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - accelerators_; - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - getAcceleratorsList() { - return accelerators_; - } - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> - getAcceleratorsOrBuilderList() { - return accelerators_; - } - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getAcceleratorsCount() { - return accelerators_.size(); - } - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getAccelerators(int index) { - return accelerators_.get(index); - } - /** - * - * - *
-     * Optional. A list of [hardware
-     * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-     * each node.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index) { - return accelerators_.get(index); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; - private volatile java.lang.Object minCpuPlatform_; - /** - * - * - *
-     * Optional. [Minimum CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * to be used by this instance. The instance may be scheduled on the
-     * specified or a newer CPU platform. Specify the friendly names of CPU
-     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-     * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - @java.lang.Override - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. [Minimum CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * to be used by this instance. The instance may be scheduled on the
-     * specified or a newer CPU platform. Specify the friendly names of CPU
-     * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-     * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(machineType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); - } - if (localSsdCount_ != 0) { - output.writeInt32(7, localSsdCount_); - } - if (preemptible_ != false) { - output.writeBool(10, preemptible_); - } - for (int i = 0; i < accelerators_.size(); i++) { - output.writeMessage(11, accelerators_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); - } - if (localSsdCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); - } - if (preemptible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preemptible_); - } - for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (getPreemptible() != other.getPreemptible()) return false; - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMachineType().hashCode(); - hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); - hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getLocalSsdCount(); - if (getAcceleratorsCount() > 0) { - hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorsList().hashCode(); - } - hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-     * Parameters that describe cluster nodes.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - machineType_ = ""; - - preemptible_ = false; - - localSsdCount_ = 0; - - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - minCpuPlatform_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig build() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig result = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(this); - int from_bitField0_ = bitField0_; - result.machineType_ = machineType_; - result.preemptible_ = preemptible_; - result.localSsdCount_ = localSsdCount_; - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig other) { - if (other - == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance()) - return this; - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000001); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 56: - { - localSsdCount_ = input.readInt32(); - - break; - } // case 56 - case 80: - { - preemptible_ = input.readBool(); - - break; - } // case 80 - case 90: - { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig m = - input.readMessage( - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfig.parser(), - extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 106: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object machineType_ = ""; - /** - * - * - *
-       * Optional. The name of a Compute Engine [machine
-       * type](https://cloud.google.com/compute/docs/machine-types).
-       * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineType. - */ - public java.lang.String getMachineType() { - java.lang.Object ref = machineType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The name of a Compute Engine [machine
-       * type](https://cloud.google.com/compute/docs/machine-types).
-       * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineType. - */ - public com.google.protobuf.ByteString getMachineTypeBytes() { - java.lang.Object ref = machineType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The name of a Compute Engine [machine
-       * type](https://cloud.google.com/compute/docs/machine-types).
-       * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The name of a Compute Engine [machine
-       * type](https://cloud.google.com/compute/docs/machine-types).
-       * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMachineType() { - - machineType_ = getDefaultInstance().getMachineType(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The name of a Compute Engine [machine
-       * type](https://cloud.google.com/compute/docs/machine-types).
-       * 
- * - * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for machineType to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineType_ = value; - onChanged(); - return this; - } - - private boolean preemptible_; - /** - * - * - *
-       * Optional. Whether the nodes are created as [preemptible VM
-       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
-       * 
- * - * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - /** - * - * - *
-       * Optional. Whether the nodes are created as [preemptible VM
-       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
-       * 
- * - * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The preemptible to set. - * @return This builder for chaining. - */ - public Builder setPreemptible(boolean value) { - - preemptible_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Whether the nodes are created as [preemptible VM
-       * instances](https://cloud.google.com/compute/docs/instances/preemptible).
-       * 
- * - * bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPreemptible() { - - preemptible_ = false; - onChanged(); - return this; - } - - private int localSsdCount_; - /** - * - * - *
-       * Optional. The number of local SSD disks to attach to the node, which is limited by
-       * the maximum number of disks allowable per zone (see [Adding Local
-       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
-       * 
- * - * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - * - * - *
-       * Optional. The number of local SSD disks to attach to the node, which is limited by
-       * the maximum number of disks allowable per zone (see [Adding Local
-       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
-       * 
- * - * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The number of local SSD disks to attach to the node, which is limited by
-       * the maximum number of disks allowable per zone (see [Adding Local
-       * SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)).
-       * 
- * - * int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - - localSsdCount_ = 0; - onChanged(); - return this; - } - - private java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - accelerators_ = java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accelerators_ = - new java.util.ArrayList< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>( - accelerators_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> - acceleratorsBuilder_; - - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.set(index, value); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(index, value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllAccelerators( - java.lang.Iterable< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> - values) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); - onChanged(); - } else { - acceleratorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - getAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder - getAcceleratorsOrBuilder(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder> - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance()); - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - addAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance()); - } - /** - * - * - *
-       * Optional. A list of [hardware
-       * accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
-       * each node.
-       * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAcceleratorConfigOrBuilder>( - accelerators_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-       * Optional. [Minimum CPU
-       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-       * to be used by this instance. The instance may be scheduled on the
-       * specified or a newer CPU platform. Specify the friendly names of CPU
-       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-       * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. [Minimum CPU
-       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-       * to be used by this instance. The instance may be scheduled on the
-       * specified or a newer CPU platform. Specify the friendly names of CPU
-       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-       * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. [Minimum CPU
-       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-       * to be used by this instance. The instance may be scheduled on the
-       * specified or a newer CPU platform. Specify the friendly names of CPU
-       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-       * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCpuPlatform_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. [Minimum CPU
-       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-       * to be used by this instance. The instance may be scheduled on the
-       * specified or a newer CPU platform. Specify the friendly names of CPU
-       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-       * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. [Minimum CPU
-       * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-       * to be used by this instance. The instance may be scheduled on the
-       * specified or a newer CPU platform. Specify the friendly names of CPU
-       * platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
-       * 
- * - * string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCpuPlatform_ = 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.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig(); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GkeNodePoolAcceleratorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The number of accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * - * @return The acceleratorCount. - */ - long getAcceleratorCount(); - - /** - * - * - *
-     * The accelerator type resource namename (see GPUs on Compute Engine).
-     * 
- * - * string accelerator_type = 2; - * - * @return The acceleratorType. - */ - java.lang.String getAcceleratorType(); - /** - * - * - *
-     * The accelerator type resource namename (see GPUs on Compute Engine).
-     * 
- * - * string accelerator_type = 2; - * - * @return The bytes for acceleratorType. - */ - com.google.protobuf.ByteString getAcceleratorTypeBytes(); - } - /** - * - * - *
-   * A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
-   * for a NodePool.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig} - */ - public static final class GkeNodePoolAcceleratorConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - GkeNodePoolAcceleratorConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeNodePoolAcceleratorConfig.newBuilder() to construct. - private GkeNodePoolAcceleratorConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeNodePoolAcceleratorConfig() { - acceleratorType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeNodePoolAcceleratorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - .class); - } - - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; - private long acceleratorCount_; - /** - * - * - *
-     * The number of accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - - public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object acceleratorType_; - /** - * - * - *
-     * The accelerator type resource namename (see GPUs on Compute Engine).
-     * 
- * - * string accelerator_type = 2; - * - * @return The acceleratorType. - */ - @java.lang.Override - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } - } - /** - * - * - *
-     * The accelerator type resource namename (see GPUs on Compute Engine).
-     * 
- * - * string accelerator_type = 2; - * - * @return The bytes for acceleratorType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (acceleratorCount_ != 0L) { - output.writeInt64(1, acceleratorCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (acceleratorCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acceleratorCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) obj; - - if (getAcceleratorCount() != other.getAcceleratorCount()) return false; - if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); - hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorType().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
-     * for a NodePool.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - acceleratorCount_ = 0L; - - acceleratorType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig build() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig result = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(this); - result.acceleratorCount_ = acceleratorCount_; - result.acceleratorType_ = acceleratorType_; - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) { - return mergeFrom( - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig other) { - if (other - == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - .getDefaultInstance()) return this; - if (other.getAcceleratorCount() != 0L) { - setAcceleratorCount(other.getAcceleratorCount()); - } - if (!other.getAcceleratorType().isEmpty()) { - acceleratorType_ = other.acceleratorType_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - acceleratorCount_ = input.readInt64(); - - break; - } // case 8 - case 18: - { - acceleratorType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private long acceleratorCount_; - /** - * - * - *
-       * The number of accelerator cards exposed to an instance.
-       * 
- * - * int64 accelerator_count = 1; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - /** - * - * - *
-       * The number of accelerator cards exposed to an instance.
-       * 
- * - * int64 accelerator_count = 1; - * - * @param value The acceleratorCount to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorCount(long value) { - - acceleratorCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The number of accelerator cards exposed to an instance.
-       * 
- * - * int64 accelerator_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorCount() { - - acceleratorCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object acceleratorType_ = ""; - /** - * - * - *
-       * The accelerator type resource namename (see GPUs on Compute Engine).
-       * 
- * - * string accelerator_type = 2; - * - * @return The acceleratorType. - */ - public java.lang.String getAcceleratorType() { - java.lang.Object ref = acceleratorType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acceleratorType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The accelerator type resource namename (see GPUs on Compute Engine).
-       * 
- * - * string accelerator_type = 2; - * - * @return The bytes for acceleratorType. - */ - public com.google.protobuf.ByteString getAcceleratorTypeBytes() { - java.lang.Object ref = acceleratorType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - acceleratorType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The accelerator type resource namename (see GPUs on Compute Engine).
-       * 
- * - * string accelerator_type = 2; - * - * @param value The acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - acceleratorType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The accelerator type resource namename (see GPUs on Compute Engine).
-       * 
- * - * string accelerator_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorType() { - - acceleratorType_ = getDefaultInstance().getAcceleratorType(); - onChanged(); - return this; - } - /** - * - * - *
-       * The accelerator type resource namename (see GPUs on Compute Engine).
-       * 
- * - * string accelerator_type = 2; - * - * @param value The bytes for acceleratorType to set. - * @return This builder for chaining. - */ - public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - acceleratorType_ = 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig(); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GkeNodePoolAutoscalingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The minimum number of nodes in the NodePool. Must be >= 0 and <=
-     * max_node_count.
-     * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - int getMinNodeCount(); - - /** - * - * - *
-     * The maximum number of nodes in the NodePool. Must be >= min_node_count.
-     * **Note:** Quota must be sufficient to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - int getMaxNodeCount(); - } - /** - * - * - *
-   * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
-   * adjust the size of the node pool to the current cluster usage.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig} - */ - public static final class GkeNodePoolAutoscalingConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - GkeNodePoolAutoscalingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeNodePoolAutoscalingConfig.newBuilder() to construct. - private GkeNodePoolAutoscalingConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeNodePoolAutoscalingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeNodePoolAutoscalingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - .class); - } - - public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; - private int minNodeCount_; - /** - * - * - *
-     * The minimum number of nodes in the NodePool. Must be >= 0 and <=
-     * max_node_count.
-     * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - @java.lang.Override - public int getMinNodeCount() { - return minNodeCount_; - } - - public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; - private int maxNodeCount_; - /** - * - * - *
-     * The maximum number of nodes in the NodePool. Must be >= min_node_count.
-     * **Note:** Quota must be sufficient to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minNodeCount_ != 0) { - output.writeInt32(2, minNodeCount_); - } - if (maxNodeCount_ != 0) { - output.writeInt32(3, maxNodeCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); - } - if (maxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) obj; - - if (getMinNodeCount() != other.getMinNodeCount()) return false; - if (getMaxNodeCount() != other.getMaxNodeCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MIN_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getMinNodeCount(); - hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getMaxNodeCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-     * GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
-     * adjust the size of the node pool to the current cluster usage.
-     * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - .class); - } - - // Construct using - // com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - minNodeCount_ = 0; - - maxNodeCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig build() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig result = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(this); - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) { - return mergeFrom( - (com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig other) { - if (other - == com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance()) return this; - if (other.getMinNodeCount() != 0) { - setMinNodeCount(other.getMinNodeCount()); - } - if (other.getMaxNodeCount() != 0) { - setMaxNodeCount(other.getMaxNodeCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: - { - minNodeCount_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - maxNodeCount_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int minNodeCount_; - /** - * - * - *
-       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
-       * max_node_count.
-       * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - @java.lang.Override - public int getMinNodeCount() { - return minNodeCount_; - } - /** - * - * - *
-       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
-       * max_node_count.
-       * 
- * - * int32 min_node_count = 2; - * - * @param value The minNodeCount to set. - * @return This builder for chaining. - */ - public Builder setMinNodeCount(int value) { - - minNodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The minimum number of nodes in the NodePool. Must be >= 0 and <=
-       * max_node_count.
-       * 
- * - * int32 min_node_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinNodeCount() { - - minNodeCount_ = 0; - onChanged(); - return this; - } - - private int maxNodeCount_; - /** - * - * - *
-       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
-       * **Note:** Quota must be sufficient to scale up the cluster.
-       * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - /** - * - * - *
-       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
-       * **Note:** Quota must be sufficient to scale up the cluster.
-       * 
- * - * int32 max_node_count = 3; - * - * @param value The maxNodeCount to set. - * @return This builder for chaining. - */ - public Builder setMaxNodeCount(int value) { - - maxNodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The maximum number of nodes in the NodePool. Must be >= min_node_count.
-       * **Note:** Quota must be sufficient to scale up the cluster.
-       * 
- * - * int32 max_node_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxNodeCount() { - - maxNodeCount_ = 0; - 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.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig(); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolAutoscalingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; - } - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder - getConfigOrBuilder() { - return getConfig(); - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int AUTOSCALING_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling_; - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getAutoscaling() { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (config_ != null) { - output.writeMessage(2, getConfig()); - } - if (autoscaling_ != null) { - output.writeMessage(4, getAutoscaling()); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeNodePoolConfig other = - (com.google.cloud.dataproc.v1.GkeNodePoolConfig) obj; - - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (hasAutoscaling() != other.hasAutoscaling()) return false; - if (hasAutoscaling()) { - if (!getAutoscaling().equals(other.getAutoscaling())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - if (hasAutoscaling()) { - hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaling().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig 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.dataproc.v1.GkeNodePoolConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 of a GKE NodePool used by a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolConfig) - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.class, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig build() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolConfig result = - new com.google.cloud.dataproc.v1.GkeNodePoolConfig(this); - int from_bitField0_ = bitField0_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.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.dataproc.v1.GkeNodePoolConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolConfig other) { - if (other == com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance()) return this; - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 34: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfig( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder - getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.getDefaultInstance() - : config_; - } - } - /** - * - * - *
-     * Optional. The node pool configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - private com.google.protobuf.LazyStringList locations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString getLocationsBytes(int index) { - return locations_.getByteString(index); - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The locations to set. - * @return This builder for chaining. - */ - public Builder setLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The locations to add. - * @return This builder for chaining. - */ - public Builder addLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The locations to add. - * @return This builder for chaining. - */ - public Builder addAllLocations(java.lang.Iterable values) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The list of Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) where
-     * NodePool's nodes will be located.
-     * **Note:** Currently, only one zone may be specified.
-     * If a location is not specified during NodePool creation, Dataproc will
-     * choose a location.
-     * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the locations to add. - * @return This builder for chaining. - */ - public Builder addLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscaling. - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoscaling( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .newBuilder(autoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder - getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig - .getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-     * only when a valid configuration is present.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfig - .GkeNodePoolAutoscalingConfigOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - @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.dataproc.v1.GkeNodePoolConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolConfig) - private static final com.google.cloud.dataproc.v1.GkeNodePoolConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolConfig(); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java deleted file mode 100644 index 81c1de16..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolConfigOrBuilder.java +++ /dev/null @@ -1,182 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface GkeNodePoolConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The config. - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig getConfig(); - /** - * - * - *
-   * Optional. The node pool configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * Optional. The list of Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) where
-   * NodePool's nodes will be located.
-   * **Note:** Currently, only one zone may be specified.
-   * If a location is not specified during NodePool creation, Dataproc will
-   * choose a location.
-   * 
- * - * repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - com.google.protobuf.ByteString getLocationsBytes(int index); - - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoscaling field is set. - */ - boolean hasAutoscaling(); - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoscaling. - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling(); - /** - * - * - *
-   * Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled
-   * only when a valid configuration is present.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder - getAutoscalingOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java deleted file mode 100644 index 40aa3a4b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTarget.java +++ /dev/null @@ -1,1629 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * GKE NodePools that Dataproc workloads run on.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} - */ -public final class GkeNodePoolTarget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) - GkeNodePoolTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeNodePoolTarget.newBuilder() to construct. - private GkeNodePoolTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeNodePoolTarget() { - nodePool_ = ""; - roles_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeNodePoolTarget(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); - } - - /** - * - * - *
-   * `Role` specifies whose tasks will run on the NodePool. The roles can be
-   * specific to workloads. Exactly one GkeNodePoolTarget within the
-   * VirtualCluster must have 'default' role, which is used to run all workloads
-   * that are not associated with a NodePool.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.GkeNodePoolTarget.Role} - */ - public enum Role implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Role is unspecified.
-     * 
- * - * ROLE_UNSPECIFIED = 0; - */ - ROLE_UNSPECIFIED(0), - /** - * - * - *
-     * Any roles that are not directly assigned to a NodePool run on the
-     * `default` role's NodePool.
-     * 
- * - * DEFAULT = 1; - */ - DEFAULT(1), - /** - * - * - *
-     * Run controllers and webhooks.
-     * 
- * - * CONTROLLER = 2; - */ - CONTROLLER(2), - /** - * - * - *
-     * Run spark driver.
-     * 
- * - * SPARK_DRIVER = 3; - */ - SPARK_DRIVER(3), - /** - * - * - *
-     * Run spark executors.
-     * 
- * - * SPARK_EXECUTOR = 4; - */ - SPARK_EXECUTOR(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Role is unspecified.
-     * 
- * - * ROLE_UNSPECIFIED = 0; - */ - public static final int ROLE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Any roles that are not directly assigned to a NodePool run on the
-     * `default` role's NodePool.
-     * 
- * - * DEFAULT = 1; - */ - public static final int DEFAULT_VALUE = 1; - /** - * - * - *
-     * Run controllers and webhooks.
-     * 
- * - * CONTROLLER = 2; - */ - public static final int CONTROLLER_VALUE = 2; - /** - * - * - *
-     * Run spark driver.
-     * 
- * - * SPARK_DRIVER = 3; - */ - public static final int SPARK_DRIVER_VALUE = 3; - /** - * - * - *
-     * Run spark executors.
-     * 
- * - * SPARK_EXECUTOR = 4; - */ - public static final int SPARK_EXECUTOR_VALUE = 4; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Role 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 Role forNumber(int value) { - switch (value) { - case 0: - return ROLE_UNSPECIFIED; - case 1: - return DEFAULT; - case 2: - return CONTROLLER; - case 3: - return SPARK_DRIVER; - case 4: - return SPARK_EXECUTOR; - 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 Role findValueByNumber(int number) { - return Role.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.dataproc.v1.GkeNodePoolTarget.getDescriptor().getEnumTypes().get(0); - } - - private static final Role[] VALUES = values(); - - public static Role 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 Role(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.GkeNodePoolTarget.Role) - } - - public static final int NODE_POOL_FIELD_NUMBER = 1; - private volatile java.lang.Object nodePool_; - /** - * - * - *
-   * Required. The target GKE NodePool.
-   * Format:
-   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-   * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodePool. - */ - @java.lang.Override - public java.lang.String getNodePool() { - java.lang.Object ref = nodePool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePool_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The target GKE NodePool.
-   * Format:
-   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-   * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodePool. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodePoolBytes() { - java.lang.Object ref = nodePool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLES_FIELD_NUMBER = 2; - private java.util.List roles_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role> - roles_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>() { - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role result = - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.valueOf(from); - return result == null - ? com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the roles. - */ - @java.lang.Override - public java.util.List getRolesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( - roles_, roles_converter_); - } - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The count of roles. - */ - @java.lang.Override - public int getRolesCount() { - return roles_.size(); - } - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the element to return. - * @return The roles at the given index. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { - return roles_converter_.convert(roles_.get(index)); - } - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the enum numeric values on the wire for roles. - */ - @java.lang.Override - public java.util.List getRolesValueList() { - return roles_; - } - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of roles at the given index. - */ - @java.lang.Override - public int getRolesValue(int index) { - return roles_.get(index); - } - - private int rolesMemoizedSerializedSize; - - public static final int NODE_POOL_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodePoolConfig field is set. - */ - @java.lang.Override - public boolean hasNodePoolConfig() { - return nodePoolConfig_ != null; - } - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodePoolConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; - } - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { - return getNodePoolConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePool_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodePool_); - } - if (getRolesList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(rolesMemoizedSerializedSize); - } - for (int i = 0; i < roles_.size(); i++) { - output.writeEnumNoTag(roles_.get(i)); - } - if (nodePoolConfig_ != null) { - output.writeMessage(3, getNodePoolConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePool_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodePool_); - } - { - int dataSize = 0; - for (int i = 0; i < roles_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(roles_.get(i)); - } - size += dataSize; - if (!getRolesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - rolesMemoizedSerializedSize = dataSize; - } - if (nodePoolConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodePoolConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.GkeNodePoolTarget)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.GkeNodePoolTarget other = - (com.google.cloud.dataproc.v1.GkeNodePoolTarget) obj; - - if (!getNodePool().equals(other.getNodePool())) return false; - if (!roles_.equals(other.roles_)) return false; - if (hasNodePoolConfig() != other.hasNodePoolConfig()) return false; - if (hasNodePoolConfig()) { - if (!getNodePoolConfig().equals(other.getNodePoolConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; - hash = (53 * hash) + getNodePool().hashCode(); - if (getRolesCount() > 0) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + roles_.hashCode(); - } - if (hasNodePoolConfig()) { - hash = (37 * hash) + NODE_POOL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget 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.dataproc.v1.GkeNodePoolTarget prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * GKE NodePools that Dataproc workloads run on.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.GkeNodePoolTarget} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.GkeNodePoolTarget) - com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.GkeNodePoolTarget.class, - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.GkeNodePoolTarget.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nodePool_ = ""; - - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (nodePoolConfigBuilder_ == null) { - nodePoolConfig_ = null; - } else { - nodePoolConfig_ = null; - nodePoolConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget build() { - com.google.cloud.dataproc.v1.GkeNodePoolTarget result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget buildPartial() { - com.google.cloud.dataproc.v1.GkeNodePoolTarget result = - new com.google.cloud.dataproc.v1.GkeNodePoolTarget(this); - int from_bitField0_ = bitField0_; - result.nodePool_ = nodePool_; - if (((bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.roles_ = roles_; - if (nodePoolConfigBuilder_ == null) { - result.nodePoolConfig_ = nodePoolConfig_; - } else { - result.nodePoolConfig_ = nodePoolConfigBuilder_.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.dataproc.v1.GkeNodePoolTarget) { - return mergeFrom((com.google.cloud.dataproc.v1.GkeNodePoolTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.GkeNodePoolTarget other) { - if (other == com.google.cloud.dataproc.v1.GkeNodePoolTarget.getDefaultInstance()) return this; - if (!other.getNodePool().isEmpty()) { - nodePool_ = other.nodePool_; - onChanged(); - } - if (!other.roles_.isEmpty()) { - if (roles_.isEmpty()) { - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRolesIsMutable(); - roles_.addAll(other.roles_); - } - onChanged(); - } - if (other.hasNodePoolConfig()) { - mergeNodePoolConfig(other.getNodePoolConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - nodePool_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - int tmpRaw = input.readEnum(); - ensureRolesIsMutable(); - roles_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRolesIsMutable(); - roles_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - case 26: - { - input.readMessage(getNodePoolConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object nodePool_ = ""; - /** - * - * - *
-     * Required. The target GKE NodePool.
-     * Format:
-     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-     * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodePool. - */ - public java.lang.String getNodePool() { - java.lang.Object ref = nodePool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The target GKE NodePool.
-     * Format:
-     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-     * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodePool. - */ - public com.google.protobuf.ByteString getNodePoolBytes() { - java.lang.Object ref = nodePool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The target GKE NodePool.
-     * Format:
-     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-     * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nodePool to set. - * @return This builder for chaining. - */ - public Builder setNodePool(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePool_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The target GKE NodePool.
-     * Format:
-     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-     * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNodePool() { - - nodePool_ = getDefaultInstance().getNodePool(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The target GKE NodePool.
-     * Format:
-     * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-     * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for nodePool to set. - * @return This builder for chaining. - */ - public Builder setNodePoolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePool_ = value; - onChanged(); - return this; - } - - private java.util.List roles_ = java.util.Collections.emptyList(); - - private void ensureRolesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(roles_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the roles. - */ - public java.util.List getRolesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>( - roles_, roles_converter_); - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The count of roles. - */ - public int getRolesCount() { - return roles_.size(); - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the element to return. - * @return The roles at the given index. - */ - public com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index) { - return roles_converter_.convert(roles_.get(index)); - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index to set the value at. - * @param value The roles to set. - * @return This builder for chaining. - */ - public Builder setRoles(int index, com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The roles to add. - * @return This builder for chaining. - */ - public Builder addRoles(com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param values The roles to add. - * @return This builder for chaining. - */ - public Builder addAllRoles( - java.lang.Iterable values) { - ensureRolesIsMutable(); - for (com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role value : values) { - roles_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearRoles() { - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the enum numeric values on the wire for roles. - */ - public java.util.List getRolesValueList() { - return java.util.Collections.unmodifiableList(roles_); - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of roles at the given index. - */ - public int getRolesValue(int index) { - return roles_.get(index); - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for roles to set. - * @return This builder for chaining. - */ - public Builder setRolesValue(int index, int value) { - ensureRolesIsMutable(); - roles_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for roles to add. - * @return This builder for chaining. - */ - public Builder addRolesValue(int value) { - ensureRolesIsMutable(); - roles_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The types of role for a GKE NodePool
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param values The enum numeric values on the wire for roles to add. - * @return This builder for chaining. - */ - public Builder addAllRolesValue(java.lang.Iterable values) { - ensureRolesIsMutable(); - for (int value : values) { - roles_.add(value); - } - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.GkeNodePoolConfig nodePoolConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> - nodePoolConfigBuilder_; - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodePoolConfig field is set. - */ - public boolean hasNodePoolConfig() { - return nodePoolConfigBuilder_ != null || nodePoolConfig_ != null; - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodePoolConfig. - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig() { - if (nodePoolConfigBuilder_ == null) { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; - } else { - return nodePoolConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { - if (nodePoolConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolConfig_ = value; - onChanged(); - } else { - nodePoolConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNodePoolConfig( - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder builderForValue) { - if (nodePoolConfigBuilder_ == null) { - nodePoolConfig_ = builderForValue.build(); - onChanged(); - } else { - nodePoolConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeNodePoolConfig(com.google.cloud.dataproc.v1.GkeNodePoolConfig value) { - if (nodePoolConfigBuilder_ == null) { - if (nodePoolConfig_ != null) { - nodePoolConfig_ = - com.google.cloud.dataproc.v1.GkeNodePoolConfig.newBuilder(nodePoolConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - nodePoolConfig_ = value; - } - onChanged(); - } else { - nodePoolConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNodePoolConfig() { - if (nodePoolConfigBuilder_ == null) { - nodePoolConfig_ = null; - onChanged(); - } else { - nodePoolConfig_ = null; - nodePoolConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder getNodePoolConfigBuilder() { - - onChanged(); - return getNodePoolConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder() { - if (nodePoolConfigBuilder_ != null) { - return nodePoolConfigBuilder_.getMessageOrBuilder(); - } else { - return nodePoolConfig_ == null - ? com.google.cloud.dataproc.v1.GkeNodePoolConfig.getDefaultInstance() - : nodePoolConfig_; - } - } - /** - * - * - *
-     * Optional. The configuration for the GKE NodePool.
-     * If specified, Dataproc attempts to create a NodePool with the
-     * specified shape. If one with the same name already exists, it is
-     * verified against all specified fields. If a field differs, the
-     * virtual cluster creation will fail.
-     * If omitted, any NodePool with the specified name is used. If a
-     * NodePool with the specified name does not exist, Dataproc create a NodePool
-     * with default values.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder> - getNodePoolConfigFieldBuilder() { - if (nodePoolConfigBuilder_ == null) { - nodePoolConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeNodePoolConfig, - com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder, - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder>( - getNodePoolConfig(), getParentForChildren(), isClean()); - nodePoolConfig_ = null; - } - return nodePoolConfigBuilder_; - } - - @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.dataproc.v1.GkeNodePoolTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.GkeNodePoolTarget) - private static final com.google.cloud.dataproc.v1.GkeNodePoolTarget DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.GkeNodePoolTarget(); - } - - public static com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeNodePoolTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeNodePoolTarget getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java deleted file mode 100644 index 64b301fb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeNodePoolTargetOrBuilder.java +++ /dev/null @@ -1,189 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface GkeNodePoolTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.GkeNodePoolTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The target GKE NodePool.
-   * Format:
-   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-   * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodePool. - */ - java.lang.String getNodePool(); - /** - * - * - *
-   * Required. The target GKE NodePool.
-   * Format:
-   * 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'
-   * 
- * - * string node_pool = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodePool. - */ - com.google.protobuf.ByteString getNodePoolBytes(); - - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the roles. - */ - java.util.List getRolesList(); - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The count of roles. - */ - int getRolesCount(); - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the element to return. - * @return The roles at the given index. - */ - com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role getRoles(int index); - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return A list containing the enum numeric values on the wire for roles. - */ - java.util.List getRolesValueList(); - /** - * - * - *
-   * Required. The types of role for a GKE NodePool
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of roles at the given index. - */ - int getRolesValue(int index); - - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the nodePoolConfig field is set. - */ - boolean hasNodePoolConfig(); - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodePoolConfig. - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfig getNodePoolConfig(); - /** - * - * - *
-   * Optional. The configuration for the GKE NodePool.
-   * If specified, Dataproc attempts to create a NodePool with the
-   * specified shape. If one with the same name already exists, it is
-   * verified against all specified fields. If a field differs, the
-   * virtual cluster creation will fail.
-   * If omitted, any NodePool with the specified name is used. If a
-   * NodePool with the specified name does not exist, Dataproc create a NodePool
-   * with default values.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java deleted file mode 100644 index c0bd8537..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java +++ /dev/null @@ -1,2881 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache Hadoop
- * MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html)
- * jobs on [Apache Hadoop
- * YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob} - */ -public final class HadoopJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HadoopJob) - HadoopJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HadoopJob.newBuilder() to construct. - private HadoopJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HadoopJob() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HadoopJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.HadoopJob.class, - com.google.cloud.dataproc.v1.HadoopJob.Builder.class); - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAIN_JAR_FILE_URI(1), - MAIN_CLASS(2), - DRIVER_NOT_SET(0); - private final int value; - - private DriverCase(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 DriverCase valueOf(int value) { - return forNumber(value); - } - - public static DriverCase forNumber(int value) { - switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 1) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAIN_CLASS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 2) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (driverCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (driverCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (driverCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (driverCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.HadoopJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.HadoopJob other = (com.google.cloud.dataproc.v1.HadoopJob) obj; - - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getDriverCase().equals(other.getDriverCase())) return false; - switch (driverCase_) { - case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; - break; - case 2: - if (!getMainClass().equals(other.getMainClass())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (driverCase_) { - case 1: - hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainJarFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HadoopJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HadoopJob 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.dataproc.v1.HadoopJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HadoopJob 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.dataproc.v1.HadoopJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HadoopJob 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.dataproc.v1.HadoopJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache Hadoop
-   * MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html)
-   * jobs on [Apache Hadoop
-   * YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.HadoopJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HadoopJob) - com.google.cloud.dataproc.v1.HadoopJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.HadoopJob.class, - com.google.cloud.dataproc.v1.HadoopJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.HadoopJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - driverCase_ = 0; - driver_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob build() { - com.google.cloud.dataproc.v1.HadoopJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob buildPartial() { - com.google.cloud.dataproc.v1.HadoopJob result = - new com.google.cloud.dataproc.v1.HadoopJob(this); - int from_bitField0_ = bitField0_; - if (driverCase_ == 1) { - result.driver_ = driver_; - } - if (driverCase_ == 2) { - result.driver_ = driver_; - } - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.driverCase_ = driverCase_; - 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.dataproc.v1.HadoopJob) { - return mergeFrom((com.google.cloud.dataproc.v1.HadoopJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.HadoopJob other) { - if (other == com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) return this; - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 1; - driver_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 58 - case 66: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public Builder clearDriver() { - driverCase_ = 0; - driver_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - @java.lang.Override - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - @java.lang.Override - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 1) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearMainJarFileUri() { - if (driverCase_ == 1) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file containing the main class.
-     * Examples:
-     *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-     *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-     *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The bytes for mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - @java.lang.Override - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - @java.lang.Override - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 2) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return This builder for chaining. - */ - public Builder clearMainClass() { - if (driverCase_ == 2) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file containing the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The bytes for mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not
-     * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-     * job properties, since a collision may occur that causes an incorrect job
-     * submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Jar file URIs to add to the CLASSPATHs of the
-     * Hadoop driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-     * to the working directory of Hadoop drivers and distributed tasks. Useful
-     * for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted in the working directory of
-     * Hadoop drivers and tasks. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, or .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Hadoop.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-     * classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.HadoopJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HadoopJob) - private static final com.google.cloud.dataproc.v1.HadoopJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HadoopJob(); - } - - public static com.google.cloud.dataproc.v1.HadoopJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HadoopJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java deleted file mode 100644 index 8d14389a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java +++ /dev/null @@ -1,472 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface HadoopJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HadoopJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - boolean hasMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - java.lang.String getMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file containing the main class.
-   * Examples:
-   *     'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar'
-   *     'hdfs:/tmp/test-samples/custom-wordcount.jar'
-   *     'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); - - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - boolean hasMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - java.lang.String getMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file containing the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - com.google.protobuf.ByteString getMainClassBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not
-   * include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as
-   * job properties, since a collision may occur that causes an incorrect job
-   * submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. Jar file URIs to add to the CLASSPATHs of the
-   * Hadoop driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied
-   * to the working directory of Hadoop drivers and distributed tasks. Useful
-   * for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted in the working directory of
-   * Hadoop drivers and tasks. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, or .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Hadoop.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site and
-   * classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.HadoopJob.DriverCase getDriverCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java deleted file mode 100644 index b8fac607..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java +++ /dev/null @@ -1,2139 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running [Apache Hive](https://hive.apache.org/)
- * queries on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.HiveJob} - */ -public final class HiveJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.HiveJob) - HiveJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveJob.newBuilder() to construct. - private HiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HiveJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HiveJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.HiveJob.class, - com.google.cloud.dataproc.v1.HiveJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.HiveJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.HiveJob other = (com.google.cloud.dataproc.v1.HiveJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.HiveJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HiveJob 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.dataproc.v1.HiveJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HiveJob 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.dataproc.v1.HiveJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.HiveJob 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.dataproc.v1.HiveJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Hive](https://hive.apache.org/)
-   * queries on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.HiveJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.HiveJob) - com.google.cloud.dataproc.v1.HiveJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableScriptVariables(); - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.HiveJob.class, - com.google.cloud.dataproc.v1.HiveJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.HiveJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queryListBuilder_ != null) { - queryListBuilder_.clear(); - } - continueOnFailure_ = false; - - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob build() { - com.google.cloud.dataproc.v1.HiveJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob buildPartial() { - com.google.cloud.dataproc.v1.HiveJob result = new com.google.cloud.dataproc.v1.HiveJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - result.queriesCase_ = queriesCase_; - 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.dataproc.v1.HiveJob) { - return mergeFrom((com.google.cloud.dataproc.v1.HiveJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.HiveJob other) { - if (other == com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - queriesCase_ = 1; - queries_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); - queriesCase_ = 2; - break; - } // case 18 - case 24: - { - continueOnFailure_ = input.readBool(); - - break; - } // case 24 - case 34: - { - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScriptVariables() - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains Hive queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } else { - queryListBuilder_.setMessage(value); - } - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Hive command: `SET name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names and values, used to configure Hive.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/hive/conf/hive-site.xml, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-     * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-     * and UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(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.dataproc.v1.HiveJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.HiveJob) - private static final com.google.cloud.dataproc.v1.HiveJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.HiveJob(); - } - - public static com.google.cloud.dataproc.v1.HiveJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java deleted file mode 100644 index 3ec98208..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java +++ /dev/null @@ -1,321 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface HiveJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.HiveJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains Hive queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Hive command: `SET name="value";`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names and values, used to configure Hive.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/hive/conf/hive-site.xml, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of the
-   * Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
-   * and UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - public com.google.cloud.dataproc.v1.HiveJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java deleted file mode 100644 index 6b707e4e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java +++ /dev/null @@ -1,805 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Identity related configuration, including service account based
- * secure multi-tenancy user mappings.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig} - */ -public final class IdentityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.IdentityConfig) - IdentityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdentityConfig.newBuilder() to construct. - private IdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IdentityConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IdentityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetUserServiceAccountMapping(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.IdentityConfig.class, - com.google.cloud.dataproc.v1.IdentityConfig.Builder.class); - } - - public static final int USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER = 1; - - private static final class UserServiceAccountMappingDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_UserServiceAccountMappingEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField - userServiceAccountMapping_; - - private com.google.protobuf.MapField - internalGetUserServiceAccountMapping() { - if (userServiceAccountMapping_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry); - } - return userServiceAccountMapping_; - } - - public int getUserServiceAccountMappingCount() { - return internalGetUserServiceAccountMapping().getMap().size(); - } - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUserServiceAccountMapping().getMap().containsKey(key); - } - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getUserServiceAccountMapping() { - return getUserServiceAccountMappingMap(); - } - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getUserServiceAccountMappingMap() { - return internalGetUserServiceAccountMapping().getMap(); - } - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUserServiceAccountMapping().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUserServiceAccountMapping().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetUserServiceAccountMapping(), - UserServiceAccountMappingDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetUserServiceAccountMapping().getMap().entrySet()) { - com.google.protobuf.MapEntry userServiceAccountMapping__ = - UserServiceAccountMappingDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, userServiceAccountMapping__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.IdentityConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.IdentityConfig other = - (com.google.cloud.dataproc.v1.IdentityConfig) obj; - - if (!internalGetUserServiceAccountMapping() - .equals(other.internalGetUserServiceAccountMapping())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetUserServiceAccountMapping().getMap().isEmpty()) { - hash = (37 * hash) + USER_SERVICE_ACCOUNT_MAPPING_FIELD_NUMBER; - hash = (53 * hash) + internalGetUserServiceAccountMapping().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig 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.dataproc.v1.IdentityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.IdentityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.IdentityConfig) - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetUserServiceAccountMapping(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableUserServiceAccountMapping(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.IdentityConfig.class, - com.google.cloud.dataproc.v1.IdentityConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.IdentityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableUserServiceAccountMapping().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_IdentityConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfig build() { - com.google.cloud.dataproc.v1.IdentityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfig buildPartial() { - com.google.cloud.dataproc.v1.IdentityConfig result = - new com.google.cloud.dataproc.v1.IdentityConfig(this); - int from_bitField0_ = bitField0_; - result.userServiceAccountMapping_ = internalGetUserServiceAccountMapping(); - result.userServiceAccountMapping_.makeImmutable(); - 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.dataproc.v1.IdentityConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.IdentityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.IdentityConfig other) { - if (other == com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance()) return this; - internalGetMutableUserServiceAccountMapping() - .mergeFrom(other.internalGetUserServiceAccountMapping()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry - userServiceAccountMapping__ = - input.readMessage( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - internalGetMutableUserServiceAccountMapping() - .getMutableMap() - .put( - userServiceAccountMapping__.getKey(), - userServiceAccountMapping__.getValue()); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField - userServiceAccountMapping_; - - private com.google.protobuf.MapField - internalGetUserServiceAccountMapping() { - if (userServiceAccountMapping_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry); - } - return userServiceAccountMapping_; - } - - private com.google.protobuf.MapField - internalGetMutableUserServiceAccountMapping() { - onChanged(); - ; - if (userServiceAccountMapping_ == null) { - userServiceAccountMapping_ = - com.google.protobuf.MapField.newMapField( - UserServiceAccountMappingDefaultEntryHolder.defaultEntry); - } - if (!userServiceAccountMapping_.isMutable()) { - userServiceAccountMapping_ = userServiceAccountMapping_.copy(); - } - return userServiceAccountMapping_; - } - - public int getUserServiceAccountMappingCount() { - return internalGetUserServiceAccountMapping().getMap().size(); - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUserServiceAccountMapping().getMap().containsKey(key); - } - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getUserServiceAccountMapping() { - return getUserServiceAccountMappingMap(); - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getUserServiceAccountMappingMap() { - return internalGetUserServiceAccountMapping().getMap(); - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUserServiceAccountMapping().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUserServiceAccountMapping().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearUserServiceAccountMapping() { - internalGetMutableUserServiceAccountMapping().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeUserServiceAccountMapping(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUserServiceAccountMapping().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableUserServiceAccountMapping() { - return internalGetMutableUserServiceAccountMapping().getMutableMap(); - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putUserServiceAccountMapping(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableUserServiceAccountMapping().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Required. Map of user to service account.
-     * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllUserServiceAccountMapping( - java.util.Map values) { - internalGetMutableUserServiceAccountMapping().getMutableMap().putAll(values); - 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.dataproc.v1.IdentityConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.IdentityConfig) - private static final com.google.cloud.dataproc.v1.IdentityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.IdentityConfig(); - } - - public static com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java deleted file mode 100644 index 023e87a5..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java +++ /dev/null @@ -1,94 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface IdentityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.IdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getUserServiceAccountMappingCount(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsUserServiceAccountMapping(java.lang.String key); - /** Use {@link #getUserServiceAccountMappingMap()} instead. */ - @java.lang.Deprecated - java.util.Map getUserServiceAccountMapping(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getUserServiceAccountMappingMap(); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - - /* nullable */ - java.lang.String getUserServiceAccountMappingOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Required. Map of user to service account.
-   * 
- * - * - * map<string, string> user_service_account_mapping = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.lang.String getUserServiceAccountMappingOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java deleted file mode 100644 index 6e4db50d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java +++ /dev/null @@ -1,806 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Configuration for the size bounds of an instance group, including its
- * proportional size to other groups.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig} - */ -public final class InstanceGroupAutoscalingPolicyConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - InstanceGroupAutoscalingPolicyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstanceGroupAutoscalingPolicyConfig.newBuilder() to construct. - private InstanceGroupAutoscalingPolicyConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstanceGroupAutoscalingPolicyConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstanceGroupAutoscalingPolicyConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class); - } - - public static final int MIN_INSTANCES_FIELD_NUMBER = 1; - private int minInstances_; - /** - * - * - *
-   * Optional. Minimum number of instances for this group.
-   * Primary workers - Bounds: [2, max_instances]. Default: 2.
-   * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-   * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - @java.lang.Override - public int getMinInstances() { - return minInstances_; - } - - public static final int MAX_INSTANCES_FIELD_NUMBER = 2; - private int maxInstances_; - /** - * - * - *
-   * Required. Maximum number of instances for this group. Required for primary
-   * workers. Note that by default, clusters will not use secondary workers.
-   * Required for secondary workers if the minimum secondary instances is set.
-   * Primary workers - Bounds: [min_instances, ).
-   * Secondary workers - Bounds: [min_instances, ). Default: 0.
-   * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The maxInstances. - */ - @java.lang.Override - public int getMaxInstances() { - return maxInstances_; - } - - public static final int WEIGHT_FIELD_NUMBER = 3; - private int weight_; - /** - * - * - *
-   * Optional. Weight for the instance group, which is used to determine the
-   * fraction of total workers in the cluster from this instance group.
-   * For example, if primary workers have weight 2, and secondary workers have
-   * weight 1, the cluster will have approximately 2 primary workers for each
-   * secondary worker.
-   * The cluster may not reach the specified balance if constrained
-   * by min/max bounds or other autoscaling settings. For example, if
-   * `max_instances` for secondary workers is 0, then only primary workers will
-   * be added. The cluster can also be out of balance when created.
-   * If weight is not set on any instance group, the cluster will default to
-   * equal weight for all groups: the cluster will attempt to maintain an equal
-   * number of workers in each group within the configured size bounds for each
-   * group. If weight is set for one group only, the cluster will default to
-   * zero weight on the unset group. For example if weight is set only on
-   * primary workers, the cluster will use primary workers only and no
-   * secondary workers.
-   * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minInstances_ != 0) { - output.writeInt32(1, minInstances_); - } - if (maxInstances_ != 0) { - output.writeInt32(2, maxInstances_); - } - if (weight_ != 0) { - output.writeInt32(3, weight_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstances_); - } - if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstances_); - } - if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other = - (com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) obj; - - if (getMinInstances() != other.getMinInstances()) return false; - if (getMaxInstances() != other.getMaxInstances()) return false; - if (getWeight() != other.getWeight()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MIN_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getMinInstances(); - hash = (37 * hash) + MAX_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getMaxInstances(); - hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getWeight(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Configuration for the size bounds of an instance group, including its
-   * proportional size to other groups.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.class, - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - minInstances_ = 0; - - maxInstances_ = 0; - - weight_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupAutoscalingPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig build() { - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig buildPartial() { - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig result = - new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(this); - result.minInstances_ = minInstances_; - result.maxInstances_ = maxInstances_; - result.weight_ = weight_; - 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig other) { - if (other - == com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig.getDefaultInstance()) - return this; - if (other.getMinInstances() != 0) { - setMinInstances(other.getMinInstances()); - } - if (other.getMaxInstances() != 0) { - setMaxInstances(other.getMaxInstances()); - } - if (other.getWeight() != 0) { - setWeight(other.getWeight()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - minInstances_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - maxInstances_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - weight_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int minInstances_; - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - @java.lang.Override - public int getMinInstances() { - return minInstances_; - } - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The minInstances to set. - * @return This builder for chaining. - */ - public Builder setMinInstances(int value) { - - minInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Minimum number of instances for this group.
-     * Primary workers - Bounds: [2, max_instances]. Default: 2.
-     * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-     * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMinInstances() { - - minInstances_ = 0; - onChanged(); - return this; - } - - private int maxInstances_; - /** - * - * - *
-     * Required. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ).
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The maxInstances. - */ - @java.lang.Override - public int getMaxInstances() { - return maxInstances_; - } - /** - * - * - *
-     * Required. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ).
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The maxInstances to set. - * @return This builder for chaining. - */ - public Builder setMaxInstances(int value) { - - maxInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Maximum number of instances for this group. Required for primary
-     * workers. Note that by default, clusters will not use secondary workers.
-     * Required for secondary workers if the minimum secondary instances is set.
-     * Primary workers - Bounds: [min_instances, ).
-     * Secondary workers - Bounds: [min_instances, ). Default: 0.
-     * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMaxInstances() { - - maxInstances_ = 0; - onChanged(); - return this; - } - - private int weight_; - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The weight to set. - * @return This builder for chaining. - */ - public Builder setWeight(int value) { - - weight_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Weight for the instance group, which is used to determine the
-     * fraction of total workers in the cluster from this instance group.
-     * For example, if primary workers have weight 2, and secondary workers have
-     * weight 1, the cluster will have approximately 2 primary workers for each
-     * secondary worker.
-     * The cluster may not reach the specified balance if constrained
-     * by min/max bounds or other autoscaling settings. For example, if
-     * `max_instances` for secondary workers is 0, then only primary workers will
-     * be added. The cluster can also be out of balance when created.
-     * If weight is not set on any instance group, the cluster will default to
-     * equal weight for all groups: the cluster will attempt to maintain an equal
-     * number of workers in each group within the configured size bounds for each
-     * group. If weight is set for one group only, the cluster will default to
-     * zero weight on the unset group. For example if weight is set only on
-     * primary workers, the cluster will use primary workers only and no
-     * secondary workers.
-     * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearWeight() { - - weight_ = 0; - 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.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - private static final com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig(); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupAutoscalingPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java deleted file mode 100644 index 6076ba8d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java +++ /dev/null @@ -1,85 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface InstanceGroupAutoscalingPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupAutoscalingPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Minimum number of instances for this group.
-   * Primary workers - Bounds: [2, max_instances]. Default: 2.
-   * Secondary workers - Bounds: [0, max_instances]. Default: 0.
-   * 
- * - * int32 min_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minInstances. - */ - int getMinInstances(); - - /** - * - * - *
-   * Required. Maximum number of instances for this group. Required for primary
-   * workers. Note that by default, clusters will not use secondary workers.
-   * Required for secondary workers if the minimum secondary instances is set.
-   * Primary workers - Bounds: [min_instances, ).
-   * Secondary workers - Bounds: [min_instances, ). Default: 0.
-   * 
- * - * int32 max_instances = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The maxInstances. - */ - int getMaxInstances(); - - /** - * - * - *
-   * Optional. Weight for the instance group, which is used to determine the
-   * fraction of total workers in the cluster from this instance group.
-   * For example, if primary workers have weight 2, and secondary workers have
-   * weight 1, the cluster will have approximately 2 primary workers for each
-   * secondary worker.
-   * The cluster may not reach the specified balance if constrained
-   * by min/max bounds or other autoscaling settings. For example, if
-   * `max_instances` for secondary workers is 0, then only primary workers will
-   * be added. The cluster can also be out of balance when created.
-   * If weight is not set on any instance group, the cluster will default to
-   * equal weight for all groups: the cluster will attempt to maintain an equal
-   * number of workers in each group within the configured size bounds for each
-   * group. If weight is set for one group only, the cluster will default to
-   * zero weight on the unset group. For example if weight is set only on
-   * primary workers, the cluster will use primary workers only and no
-   * secondary workers.
-   * 
- * - * int32 weight = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The weight. - */ - int getWeight(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java deleted file mode 100644 index 3507efee..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java +++ /dev/null @@ -1,3161 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The config settings for Compute Engine resources in
- * an instance group, such as a master or worker group.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig} - */ -public final class InstanceGroupConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstanceGroupConfig) - InstanceGroupConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstanceGroupConfig.newBuilder() to construct. - private InstanceGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstanceGroupConfig() { - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - imageUri_ = ""; - machineTypeUri_ = ""; - preemptibility_ = 0; - accelerators_ = java.util.Collections.emptyList(); - minCpuPlatform_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstanceGroupConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstanceGroupConfig.class, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class); - } - - /** - * - * - *
-   * Controls the use of
-   * [preemptible instances]
-   * (https://cloud.google.com/compute/docs/instances/preemptible)
-   * within the group.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility} - */ - public enum Preemptibility implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Preemptibility is unspecified, the system will choose the
-     * appropriate setting for each instance group.
-     * 
- * - * PREEMPTIBILITY_UNSPECIFIED = 0; - */ - PREEMPTIBILITY_UNSPECIFIED(0), - /** - * - * - *
-     * Instances are non-preemptible.
-     * This option is allowed for all instance groups and is the only valid
-     * value for Master and Worker instance groups.
-     * 
- * - * NON_PREEMPTIBLE = 1; - */ - NON_PREEMPTIBLE(1), - /** - * - * - *
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
-     * 
- * - * PREEMPTIBLE = 2; - */ - PREEMPTIBLE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Preemptibility is unspecified, the system will choose the
-     * appropriate setting for each instance group.
-     * 
- * - * PREEMPTIBILITY_UNSPECIFIED = 0; - */ - public static final int PREEMPTIBILITY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Instances are non-preemptible.
-     * This option is allowed for all instance groups and is the only valid
-     * value for Master and Worker instance groups.
-     * 
- * - * NON_PREEMPTIBLE = 1; - */ - public static final int NON_PREEMPTIBLE_VALUE = 1; - /** - * - * - *
-     * Instances are preemptible.
-     * This option is allowed only for secondary worker groups.
-     * 
- * - * PREEMPTIBLE = 2; - */ - public static final int PREEMPTIBLE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Preemptibility 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 Preemptibility forNumber(int value) { - switch (value) { - case 0: - return PREEMPTIBILITY_UNSPECIFIED; - case 1: - return NON_PREEMPTIBLE; - case 2: - return PREEMPTIBLE; - 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 Preemptibility findValueByNumber(int number) { - return Preemptibility.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.dataproc.v1.InstanceGroupConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Preemptibility[] VALUES = values(); - - public static Preemptibility 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 Preemptibility(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility) - } - - public static final int NUM_INSTANCES_FIELD_NUMBER = 1; - private int numInstances_; - /** - * - * - *
-   * Optional. The number of VM instances in the instance group.
-   * For [HA
-   * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
-   * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
-   * For standard cluster [master_config](#FIELDS.master_config) groups,
-   * **must be set to 1**.
-   * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - @java.lang.Override - public int getNumInstances() { - return numInstances_; - } - - public static final int INSTANCE_NAMES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList instanceNames_; - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { - return instanceNames_; - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - public int getInstanceNamesCount() { - return instanceNames_.size(); - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - public java.lang.String getInstanceNames(int index) { - return instanceNames_.get(index); - } - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { - return instanceNames_.getByteString(index); - } - - public static final int IMAGE_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object imageUri_; - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - @java.lang.Override - public java.lang.String getImageUri() { - java.lang.Object ref = imageUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { - java.lang.Object ref = imageUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MACHINE_TYPE_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object machineTypeUri_; - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - @java.lang.Override - public java.lang.String getMachineTypeUri() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineTypeUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeUriBytes() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISK_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - @java.lang.Override - public boolean hasDiskConfig() { - return diskConfig_ != null; - } - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; - } - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { - return getDiskConfig(); - } - - public static final int IS_PREEMPTIBLE_FIELD_NUMBER = 6; - private boolean isPreemptible_; - /** - * - * - *
-   * Output only. Specifies that this instance group contains preemptible
-   * instances.
-   * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - @java.lang.Override - public boolean getIsPreemptible() { - return isPreemptible_; - } - - public static final int PREEMPTIBILITY_FIELD_NUMBER = 10; - private int preemptibility_; - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - @java.lang.Override - public int getPreemptibilityValue() { - return preemptibility_; - } - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; - } - - public static final int MANAGED_GROUP_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - @java.lang.Override - public boolean hasManagedGroupConfig() { - return managedGroupConfig_ != null; - } - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder() { - return getManagedGroupConfig(); - } - - public static final int ACCELERATORS_FIELD_NUMBER = 8; - private java.util.List accelerators_; - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getAcceleratorsList() { - return accelerators_; - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getAcceleratorsOrBuilderList() { - return accelerators_; - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getAcceleratorsCount() { - return accelerators_.size(); - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { - return accelerators_.get(index); - } - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - return accelerators_.get(index); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 9; - private volatile java.lang.Object minCpuPlatform_; - /** - * - * - *
-   * Optional. Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - @java.lang.Override - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (numInstances_ != 0) { - output.writeInt32(1, numInstances_); - } - for (int i = 0; i < instanceNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceNames_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineTypeUri_); - } - if (diskConfig_ != null) { - output.writeMessage(5, getDiskConfig()); - } - if (isPreemptible_ != false) { - output.writeBool(6, isPreemptible_); - } - if (managedGroupConfig_ != null) { - output.writeMessage(7, getManagedGroupConfig()); - } - for (int i = 0; i < accelerators_.size(); i++) { - output.writeMessage(8, accelerators_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minCpuPlatform_); - } - if (preemptibility_ - != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { - output.writeEnum(10, preemptibility_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numInstances_); - } - { - int dataSize = 0; - for (int i = 0; i < instanceNames_.size(); i++) { - dataSize += computeStringSizeNoTag(instanceNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getInstanceNamesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineTypeUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineTypeUri_); - } - if (diskConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDiskConfig()); - } - if (isPreemptible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isPreemptible_); - } - if (managedGroupConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getManagedGroupConfig()); - } - for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, accelerators_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minCpuPlatform_); - } - if (preemptibility_ - != com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility - .PREEMPTIBILITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, preemptibility_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.InstanceGroupConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.InstanceGroupConfig other = - (com.google.cloud.dataproc.v1.InstanceGroupConfig) obj; - - if (getNumInstances() != other.getNumInstances()) return false; - if (!getInstanceNamesList().equals(other.getInstanceNamesList())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getMachineTypeUri().equals(other.getMachineTypeUri())) return false; - if (hasDiskConfig() != other.hasDiskConfig()) return false; - if (hasDiskConfig()) { - if (!getDiskConfig().equals(other.getDiskConfig())) return false; - } - if (getIsPreemptible() != other.getIsPreemptible()) return false; - if (preemptibility_ != other.preemptibility_) return false; - if (hasManagedGroupConfig() != other.hasManagedGroupConfig()) return false; - if (hasManagedGroupConfig()) { - if (!getManagedGroupConfig().equals(other.getManagedGroupConfig())) return false; - } - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUM_INSTANCES_FIELD_NUMBER; - hash = (53 * hash) + getNumInstances(); - if (getInstanceNamesCount() > 0) { - hash = (37 * hash) + INSTANCE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getInstanceNamesList().hashCode(); - } - hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; - hash = (53 * hash) + getImageUri().hashCode(); - hash = (37 * hash) + MACHINE_TYPE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMachineTypeUri().hashCode(); - if (hasDiskConfig()) { - hash = (37 * hash) + DISK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDiskConfig().hashCode(); - } - hash = (37 * hash) + IS_PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPreemptible()); - hash = (37 * hash) + PREEMPTIBILITY_FIELD_NUMBER; - hash = (53 * hash) + preemptibility_; - if (hasManagedGroupConfig()) { - hash = (37 * hash) + MANAGED_GROUP_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getManagedGroupConfig().hashCode(); - } - if (getAcceleratorsCount() > 0) { - hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorsList().hashCode(); - } - hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig 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.dataproc.v1.InstanceGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig 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.dataproc.v1.InstanceGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig 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.dataproc.v1.InstanceGroupConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 config settings for Compute Engine resources in
-   * an instance group, such as a master or worker group.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstanceGroupConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstanceGroupConfig) - com.google.cloud.dataproc.v1.InstanceGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstanceGroupConfig.class, - com.google.cloud.dataproc.v1.InstanceGroupConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.InstanceGroupConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - numInstances_ = 0; - - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - imageUri_ = ""; - - machineTypeUri_ = ""; - - if (diskConfigBuilder_ == null) { - diskConfig_ = null; - } else { - diskConfig_ = null; - diskConfigBuilder_ = null; - } - isPreemptible_ = false; - - preemptibility_ = 0; - - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = null; - } else { - managedGroupConfig_ = null; - managedGroupConfigBuilder_ = null; - } - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - minCpuPlatform_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig build() { - com.google.cloud.dataproc.v1.InstanceGroupConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig buildPartial() { - com.google.cloud.dataproc.v1.InstanceGroupConfig result = - new com.google.cloud.dataproc.v1.InstanceGroupConfig(this); - int from_bitField0_ = bitField0_; - result.numInstances_ = numInstances_; - if (((bitField0_ & 0x00000001) != 0)) { - instanceNames_ = instanceNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.instanceNames_ = instanceNames_; - result.imageUri_ = imageUri_; - result.machineTypeUri_ = machineTypeUri_; - if (diskConfigBuilder_ == null) { - result.diskConfig_ = diskConfig_; - } else { - result.diskConfig_ = diskConfigBuilder_.build(); - } - result.isPreemptible_ = isPreemptible_; - result.preemptibility_ = preemptibility_; - if (managedGroupConfigBuilder_ == null) { - result.managedGroupConfig_ = managedGroupConfig_; - } else { - result.managedGroupConfig_ = managedGroupConfigBuilder_.build(); - } - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - 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.dataproc.v1.InstanceGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.InstanceGroupConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.InstanceGroupConfig other) { - if (other == com.google.cloud.dataproc.v1.InstanceGroupConfig.getDefaultInstance()) - return this; - if (other.getNumInstances() != 0) { - setNumInstances(other.getNumInstances()); - } - if (!other.instanceNames_.isEmpty()) { - if (instanceNames_.isEmpty()) { - instanceNames_ = other.instanceNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInstanceNamesIsMutable(); - instanceNames_.addAll(other.instanceNames_); - } - onChanged(); - } - if (!other.getImageUri().isEmpty()) { - imageUri_ = other.imageUri_; - onChanged(); - } - if (!other.getMachineTypeUri().isEmpty()) { - machineTypeUri_ = other.machineTypeUri_; - onChanged(); - } - if (other.hasDiskConfig()) { - mergeDiskConfig(other.getDiskConfig()); - } - if (other.getIsPreemptible() != false) { - setIsPreemptible(other.getIsPreemptible()); - } - if (other.preemptibility_ != 0) { - setPreemptibilityValue(other.getPreemptibilityValue()); - } - if (other.hasManagedGroupConfig()) { - mergeManagedGroupConfig(other.getManagedGroupConfig()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000002); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - numInstances_ = input.readInt32(); - - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceNamesIsMutable(); - instanceNames_.add(s); - break; - } // case 18 - case 26: - { - imageUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - machineTypeUri_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - input.readMessage(getDiskConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - isPreemptible_ = input.readBool(); - - break; - } // case 48 - case 58: - { - input.readMessage( - getManagedGroupConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - com.google.cloud.dataproc.v1.AcceleratorConfig m = - input.readMessage( - com.google.cloud.dataproc.v1.AcceleratorConfig.parser(), extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 80: - { - preemptibility_ = input.readEnum(); - - break; - } // case 80 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int numInstances_; - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For [HA
-     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
-     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
-     * For standard cluster [master_config](#FIELDS.master_config) groups,
-     * **must be set to 1**.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - @java.lang.Override - public int getNumInstances() { - return numInstances_; - } - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For [HA
-     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
-     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
-     * For standard cluster [master_config](#FIELDS.master_config) groups,
-     * **must be set to 1**.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The numInstances to set. - * @return This builder for chaining. - */ - public Builder setNumInstances(int value) { - - numInstances_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The number of VM instances in the instance group.
-     * For [HA
-     * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
-     * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
-     * For standard cluster [master_config](#FIELDS.master_config) groups,
-     * **must be set to 1**.
-     * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNumInstances() { - - numInstances_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - instanceNames_ = new com.google.protobuf.LazyStringArrayList(instanceNames_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - public com.google.protobuf.ProtocolStringList getInstanceNamesList() { - return instanceNames_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - public int getInstanceNamesCount() { - return instanceNames_.size(); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - public java.lang.String getInstanceNames(int index) { - return instanceNames_.get(index); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - public com.google.protobuf.ByteString getInstanceNamesBytes(int index) { - return instanceNames_.getByteString(index); - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The instanceNames to set. - * @return This builder for chaining. - */ - public Builder setInstanceNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); - instanceNames_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The instanceNames to add. - * @return This builder for chaining. - */ - public Builder addInstanceNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceNamesIsMutable(); - instanceNames_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The instanceNames to add. - * @return This builder for chaining. - */ - public Builder addAllInstanceNames(java.lang.Iterable values) { - ensureInstanceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceNames_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearInstanceNames() { - instanceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The list of instance names. Dataproc derives the names
-     * from `cluster_name`, `num_instances`, and the instance group.
-     * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the instanceNames to add. - * @return This builder for chaining. - */ - public Builder addInstanceNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceNamesIsMutable(); - instanceNames_.add(value); - onChanged(); - return this; - } - - private java.lang.Object imageUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - public java.lang.String getImageUri() { - java.lang.Object ref = imageUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - public com.google.protobuf.ByteString getImageUriBytes() { - java.lang.Object ref = imageUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The imageUri to set. - * @return This builder for chaining. - */ - public Builder setImageUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearImageUri() { - - imageUri_ = getDefaultInstance().getImageUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine image resource used for cluster instances.
-     * The URI can represent an image or image family.
-     * Image examples:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-     * * `projects/[project_id]/global/images/[image-id]`
-     * * `image-id`
-     * Image family examples. Dataproc will use the most recent
-     * image from the family:
-     * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-     * If the URI is unspecified, it will be inferred from
-     * `SoftwareConfig.image_version` or the system default.
-     * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for imageUri to set. - * @return This builder for chaining. - */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object machineTypeUri_ = ""; - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - public java.lang.String getMachineTypeUri() { - java.lang.Object ref = machineTypeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - machineTypeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - public com.google.protobuf.ByteString getMachineTypeUriBytes() { - java.lang.Object ref = machineTypeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - machineTypeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The machineTypeUri to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - machineTypeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMachineTypeUri() { - - machineTypeUri_ = getDefaultInstance().getMachineTypeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine machine type used for cluster instances.
-     * A full URL, partial URI, or short name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-     * * `n1-standard-2`
-     * **Auto Zone Exception**: If you are using the Dataproc
-     * [Auto Zone
-     * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-     * feature, you must use the short name of the machine type
-     * resource, for example, `n1-standard-2`.
-     * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for machineTypeUri to set. - * @return This builder for chaining. - */ - public Builder setMachineTypeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - machineTypeUri_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.DiskConfig diskConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder> - diskConfigBuilder_; - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - public boolean hasDiskConfig() { - return diskConfigBuilder_ != null || diskConfig_ != null; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - public com.google.cloud.dataproc.v1.DiskConfig getDiskConfig() { - if (diskConfigBuilder_ == null) { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; - } else { - return diskConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { - if (diskConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - diskConfig_ = value; - onChanged(); - } else { - diskConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDiskConfig(com.google.cloud.dataproc.v1.DiskConfig.Builder builderForValue) { - if (diskConfigBuilder_ == null) { - diskConfig_ = builderForValue.build(); - onChanged(); - } else { - diskConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeDiskConfig(com.google.cloud.dataproc.v1.DiskConfig value) { - if (diskConfigBuilder_ == null) { - if (diskConfig_ != null) { - diskConfig_ = - com.google.cloud.dataproc.v1.DiskConfig.newBuilder(diskConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - diskConfig_ = value; - } - onChanged(); - } else { - diskConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearDiskConfig() { - if (diskConfigBuilder_ == null) { - diskConfig_ = null; - onChanged(); - } else { - diskConfig_ = null; - diskConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.DiskConfig.Builder getDiskConfigBuilder() { - - onChanged(); - return getDiskConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder() { - if (diskConfigBuilder_ != null) { - return diskConfigBuilder_.getMessageOrBuilder(); - } else { - return diskConfig_ == null - ? com.google.cloud.dataproc.v1.DiskConfig.getDefaultInstance() - : diskConfig_; - } - } - /** - * - * - *
-     * Optional. Disk option config settings.
-     * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder> - getDiskConfigFieldBuilder() { - if (diskConfigBuilder_ == null) { - diskConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.DiskConfig, - com.google.cloud.dataproc.v1.DiskConfig.Builder, - com.google.cloud.dataproc.v1.DiskConfigOrBuilder>( - getDiskConfig(), getParentForChildren(), isClean()); - diskConfig_ = null; - } - return diskConfigBuilder_; - } - - private boolean isPreemptible_; - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - @java.lang.Override - public boolean getIsPreemptible() { - return isPreemptible_; - } - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The isPreemptible to set. - * @return This builder for chaining. - */ - public Builder setIsPreemptible(boolean value) { - - isPreemptible_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Specifies that this instance group contains preemptible
-     * instances.
-     * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearIsPreemptible() { - - isPreemptible_ = false; - onChanged(); - return this; - } - - private int preemptibility_ = 0; - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - @java.lang.Override - public int getPreemptibilityValue() { - return preemptibility_; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for preemptibility to set. - * @return This builder for chaining. - */ - public Builder setPreemptibilityValue(int value) { - - preemptibility_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility result = - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.valueOf(preemptibility_); - return result == null - ? com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The preemptibility to set. - * @return This builder for chaining. - */ - public Builder setPreemptibility( - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility value) { - if (value == null) { - throw new NullPointerException(); - } - - preemptibility_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the preemptibility of the instance group.
-     * The default value for master and worker groups is
-     * `NON_PREEMPTIBLE`. This default cannot be changed.
-     * The default value for secondary instances is
-     * `PREEMPTIBLE`.
-     * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearPreemptibility() { - - preemptibility_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ManagedGroupConfig managedGroupConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> - managedGroupConfigBuilder_; - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - public boolean hasManagedGroupConfig() { - return managedGroupConfigBuilder_ != null || managedGroupConfig_ != null; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - public com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig() { - if (managedGroupConfigBuilder_ == null) { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } else { - return managedGroupConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { - if (managedGroupConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managedGroupConfig_ = value; - onChanged(); - } else { - managedGroupConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setManagedGroupConfig( - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder builderForValue) { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = builderForValue.build(); - onChanged(); - } else { - managedGroupConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeManagedGroupConfig(com.google.cloud.dataproc.v1.ManagedGroupConfig value) { - if (managedGroupConfigBuilder_ == null) { - if (managedGroupConfig_ != null) { - managedGroupConfig_ = - com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder(managedGroupConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - managedGroupConfig_ = value; - } - onChanged(); - } else { - managedGroupConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearManagedGroupConfig() { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfig_ = null; - onChanged(); - } else { - managedGroupConfig_ = null; - managedGroupConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder getManagedGroupConfigBuilder() { - - onChanged(); - return getManagedGroupConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder - getManagedGroupConfigOrBuilder() { - if (managedGroupConfigBuilder_ != null) { - return managedGroupConfigBuilder_.getMessageOrBuilder(); - } else { - return managedGroupConfig_ == null - ? com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance() - : managedGroupConfig_; - } - } - /** - * - * - *
-     * Output only. The config for Compute Engine Instance Group
-     * Manager that manages this group.
-     * This is only used for preemptible instance groups.
-     * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder> - getManagedGroupConfigFieldBuilder() { - if (managedGroupConfigBuilder_ == null) { - managedGroupConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedGroupConfig, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder, - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder>( - getManagedGroupConfig(), getParentForChildren(), isClean()); - managedGroupConfig_ = null; - } - return managedGroupConfigBuilder_; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - accelerators_ = - new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> - acceleratorsBuilder_; - - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.set(index, value); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAccelerators( - int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators(com.google.cloud.dataproc.v1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(index, value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAccelerators( - int index, com.google.cloud.dataproc.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllAccelerators( - java.lang.Iterable values) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); - onChanged(); - } else { - acceleratorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder getAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. The Compute Engine accelerator configuration for these
-     * instances.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AcceleratorConfig, - com.google.cloud.dataproc.v1.AcceleratorConfig.Builder, - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-     * Optional. Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - public java.lang.String getMinCpuPlatform() { - java.lang.Object ref = minCpuPlatform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - minCpuPlatform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - public com.google.protobuf.ByteString getMinCpuPlatformBytes() { - java.lang.Object ref = minCpuPlatform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - minCpuPlatform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - minCpuPlatform_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies the minimum cpu platform for the Instance Group.
-     * See [Dataproc -> Minimum CPU
-     * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-     * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - minCpuPlatform_ = 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.dataproc.v1.InstanceGroupConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstanceGroupConfig) - private static final com.google.cloud.dataproc.v1.InstanceGroupConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstanceGroupConfig(); - } - - public static com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstanceGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstanceGroupConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java deleted file mode 100644 index 77f65b6d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java +++ /dev/null @@ -1,423 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface InstanceGroupConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstanceGroupConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The number of VM instances in the instance group.
-   * For [HA
-   * cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)
-   * [master_config](#FIELDS.master_config) groups, **must be set to 3**.
-   * For standard cluster [master_config](#FIELDS.master_config) groups,
-   * **must be set to 1**.
-   * 
- * - * int32 num_instances = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The numInstances. - */ - int getNumInstances(); - - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the instanceNames. - */ - java.util.List getInstanceNamesList(); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of instanceNames. - */ - int getInstanceNamesCount(); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The instanceNames at the given index. - */ - java.lang.String getInstanceNames(int index); - /** - * - * - *
-   * Output only. The list of instance names. Dataproc derives the names
-   * from `cluster_name`, `num_instances`, and the instance group.
-   * 
- * - * repeated string instance_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceNames at the given index. - */ - com.google.protobuf.ByteString getInstanceNamesBytes(int index); - - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageUri. - */ - java.lang.String getImageUri(); - /** - * - * - *
-   * Optional. The Compute Engine image resource used for cluster instances.
-   * The URI can represent an image or image family.
-   * Image examples:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`
-   * * `projects/[project_id]/global/images/[image-id]`
-   * * `image-id`
-   * Image family examples. Dataproc will use the most recent
-   * image from the family:
-   * * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * * `projects/[project_id]/global/images/family/[custom-image-family-name]`
-   * If the URI is unspecified, it will be inferred from
-   * `SoftwareConfig.image_version` or the system default.
-   * 
- * - * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageUri. - */ - com.google.protobuf.ByteString getImageUriBytes(); - - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineTypeUri. - */ - java.lang.String getMachineTypeUri(); - /** - * - * - *
-   * Optional. The Compute Engine machine type used for cluster instances.
-   * A full URL, partial URI, or short name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`
-   * * `n1-standard-2`
-   * **Auto Zone Exception**: If you are using the Dataproc
-   * [Auto Zone
-   * Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)
-   * feature, you must use the short name of the machine type
-   * resource, for example, `n1-standard-2`.
-   * 
- * - * string machine_type_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineTypeUri. - */ - com.google.protobuf.ByteString getMachineTypeUriBytes(); - - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the diskConfig field is set. - */ - boolean hasDiskConfig(); - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The diskConfig. - */ - com.google.cloud.dataproc.v1.DiskConfig getDiskConfig(); - /** - * - * - *
-   * Optional. Disk option config settings.
-   * 
- * - * - * .google.cloud.dataproc.v1.DiskConfig disk_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.DiskConfigOrBuilder getDiskConfigOrBuilder(); - - /** - * - * - *
-   * Output only. Specifies that this instance group contains preemptible
-   * instances.
-   * 
- * - * bool is_preemptible = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The isPreemptible. - */ - boolean getIsPreemptible(); - - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for preemptibility. - */ - int getPreemptibilityValue(); - /** - * - * - *
-   * Optional. Specifies the preemptibility of the instance group.
-   * The default value for master and worker groups is
-   * `NON_PREEMPTIBLE`. This default cannot be changed.
-   * The default value for secondary instances is
-   * `PREEMPTIBLE`.
-   * 
- * - * - * .google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility preemptibility = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The preemptibility. - */ - com.google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility getPreemptibility(); - - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the managedGroupConfig field is set. - */ - boolean hasManagedGroupConfig(); - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The managedGroupConfig. - */ - com.google.cloud.dataproc.v1.ManagedGroupConfig getManagedGroupConfig(); - /** - * - * - *
-   * Output only. The config for Compute Engine Instance Group
-   * Manager that manages this group.
-   * This is only used for preemptible instance groups.
-   * 
- * - * - * .google.cloud.dataproc.v1.ManagedGroupConfig managed_group_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder getManagedGroupConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getAcceleratorsList(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.AcceleratorConfig getAccelerators(int index); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getAcceleratorsCount(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAcceleratorsOrBuilderList(); - /** - * - * - *
-   * Optional. The Compute Engine accelerator configuration for these
-   * instances.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AcceleratorConfig accelerators = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); - - /** - * - * - *
-   * Optional. Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Optional. Specifies the minimum cpu platform for the Instance Group.
-   * See [Dataproc -> Minimum CPU
-   * Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
-   * 
- * - * string min_cpu_platform = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java deleted file mode 100644 index ef441e5b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java +++ /dev/null @@ -1,1203 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to instantiate an inline workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} - */ -public final class InstantiateInlineWorkflowTemplateRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - InstantiateInlineWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstantiateInlineWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateInlineWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstantiateInlineWorkflowTemplateRequest() { - parent_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstantiateInlineWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * 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 TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (template_ != null) { - output.writeMessage(2, getTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); - } - getUnknownFields().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 (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to instantiate an inline workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.Builder.class); - } - - // Construct using - // com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(this); - result.parent_ = parent_; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) { - return mergeFrom( - (com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.instantiateinline`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 com.google.cloud.dataproc.v1.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The workflow template to instantiate.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateInlineWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 0a96c171..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,146 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface InstantiateInlineWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,instantiateinline`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.instantiateinline`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The workflow template to instantiate.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java deleted file mode 100644 index 4118db20..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java +++ /dev/null @@ -1,1361 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to instantiate a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} - */ -public final class InstantiateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - InstantiateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use InstantiateWorkflowTemplateRequest.newBuilder() to construct. - private InstantiateWorkflowTemplateRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InstantiateWorkflowTemplateRequest() { - name_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InstantiateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Optional. The version of workflow template to instantiate. If specified,
-   * the workflow will be instantiated only if the current version of
-   * the workflow template has the supplied version.
-   * This option cannot be used to instantiate a previous version of
-   * workflow template.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETERS_FIELD_NUMBER = 6; - - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 6); - getUnknownFields().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 (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, parameters__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest 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.dataproc.v1.InstantiateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest 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.dataproc.v1.InstantiateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest 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.dataproc.v1.InstantiateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to instantiate a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - return internalGetMutableParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - version_ = 0; - - requestId_ = ""; - - internalGetMutableParameters().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.version_ = version_; - result.requestId_ = requestId_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - 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.dataproc.v1.InstantiateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest other) { - if (other - == com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParameters() - .getMutableMap() - .put(parameters__.getKey(), parameters__.getValue()); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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 resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-     * of the template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-     *   of the template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_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; - } - - private int version_; - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of workflow template to instantiate. If specified,
-     * the workflow will be instantiated only if the current version of
-     * the workflow template has the supplied version.
-     * This option cannot be used to instantiate a previous version of
-     * workflow template.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A tag that prevents multiple concurrent workflow
-     * instances with the same tag from running. This mitigates risk of
-     * concurrent instances started due to retries.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; - if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParameters().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableParameters().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Map from parameter names to values that should be used for those
-     * parameters. Values may not exceed 1000 characters.
-     * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); - 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.dataproc.v1.InstantiateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstantiateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 5ef0491f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,191 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface InstantiateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates.instantiate`, the resource name
-   * of the template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates.instantiate`, the resource name
-   *   of the template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. The version of workflow template to instantiate. If specified,
-   * the workflow will be instantiated only if the current version of
-   * the workflow template has the supplied version.
-   * This option cannot be used to instantiate a previous version of
-   * workflow template.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A tag that prevents multiple concurrent workflow
-   * instances with the same tag from running. This mitigates risk of
-   * concurrent instances started due to retries.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The tag must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); - - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getParametersCount(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getParameters(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getParametersMap(); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getParametersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Map from parameter names to values that should be used for those
-   * parameters. Values may not exceed 1000 characters.
-   * 
- * - * map<string, string> parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getParametersOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java deleted file mode 100644 index 2c0babed..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java +++ /dev/null @@ -1,6506 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Job} - */ -public final class Job extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.Job) - JobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Job.newBuilder() to construct. - private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Job() { - statusHistory_ = java.util.Collections.emptyList(); - yarnApplications_ = java.util.Collections.emptyList(); - driverOutputResourceUri_ = ""; - driverControlFilesUri_ = ""; - jobUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Job(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 18: - 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Job.class, com.google.cloud.dataproc.v1.Job.Builder.class); - } - - private int typeJobCase_ = 0; - private java.lang.Object typeJob_; - - public enum TypeJobCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - HADOOP_JOB(3), - SPARK_JOB(4), - PYSPARK_JOB(5), - HIVE_JOB(6), - PIG_JOB(7), - SPARK_R_JOB(21), - SPARK_SQL_JOB(12), - PRESTO_JOB(23), - TYPEJOB_NOT_SET(0); - private final int value; - - private TypeJobCase(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 TypeJobCase valueOf(int value) { - return forNumber(value); - } - - public static TypeJobCase forNumber(int value) { - switch (value) { - case 3: - return HADOOP_JOB; - case 4: - return SPARK_JOB; - case 5: - return PYSPARK_JOB; - case 6: - return HIVE_JOB; - case 7: - return PIG_JOB; - case 21: - return SPARK_R_JOB; - case 12: - return SPARK_SQL_JOB; - case 23: - return PRESTO_JOB; - case 0: - return TYPEJOB_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); - } - - public static final int REFERENCE_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.JobReference reference_; - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - @java.lang.Override - public boolean hasReference() { - return reference_ != null; - } - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReference getReference() { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; - } - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { - return getReference(); - } - - public static final int PLACEMENT_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.JobPlacement placement_; - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - @java.lang.Override - public boolean hasPlacement() { - return placement_ != null; - } - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; - } - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { - return getPlacement(); - } - - public static final int HADOOP_JOB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return typeJobCase_ == 3; - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - - public static final int SPARK_JOB_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return typeJobCase_ == 4; - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - - public static final int PYSPARK_JOB_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return typeJobCase_ == 5; - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - - public static final int HIVE_JOB_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return typeJobCase_ == 6; - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - - public static final int PIG_JOB_FIELD_NUMBER = 7; - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return typeJobCase_ == 7; - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getPigJob() { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - - public static final int SPARK_R_JOB_FIELD_NUMBER = 21; - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return typeJobCase_ == 21; - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - - public static final int SPARK_SQL_JOB_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return typeJobCase_ == 12; - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - - public static final int PRESTO_JOB_FIELD_NUMBER = 23; - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return typeJobCase_ == 23; - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - - public static final int STATUS_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.JobStatus status_; - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus getStatus() { - return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; - } - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int STATUS_HISTORY_FIELD_NUMBER = 13; - private java.util.List statusHistory_; - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getStatusHistoryList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getStatusHistoryOrBuilderList() { - return statusHistory_; - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getStatusHistoryCount() { - return statusHistory_.size(); - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { - return statusHistory_.get(index); - } - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { - return statusHistory_.get(index); - } - - public static final int YARN_APPLICATIONS_FIELD_NUMBER = 9; - private java.util.List yarnApplications_; - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getYarnApplicationsList() { - return yarnApplications_; - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getYarnApplicationsOrBuilderList() { - return yarnApplications_; - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getYarnApplicationsCount() { - return yarnApplications_.size(); - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { - return yarnApplications_.get(index); - } - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index) { - return yarnApplications_.get(index); - } - - public static final int DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER = 17; - private volatile java.lang.Object driverOutputResourceUri_; - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - @java.lang.Override - public java.lang.String getDriverOutputResourceUri() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverOutputResourceUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverOutputResourceUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DRIVER_CONTROL_FILES_URI_FIELD_NUMBER = 15; - private volatile java.lang.Object driverControlFilesUri_; - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The driverControlFilesUri. - */ - @java.lang.Override - public java.lang.String getDriverControlFilesUri() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverControlFilesUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for driverControlFilesUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverControlFilesUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 18; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SCHEDULING_FIELD_NUMBER = 20; - private com.google.cloud.dataproc.v1.JobScheduling scheduling_; - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - @java.lang.Override - public boolean hasScheduling() { - return scheduling_ != null; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); - } - - public static final int JOB_UUID_FIELD_NUMBER = 22; - private volatile java.lang.Object jobUuid_; - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - @java.lang.Override - public java.lang.String getJobUuid() { - java.lang.Object ref = jobUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobUuidBytes() { - java.lang.Object ref = jobUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DONE_FIELD_NUMBER = 24; - private boolean done_; - /** - * - * - *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
-   * `status.state` field will indicate if it was successful, failed,
-   * or cancelled.
-   * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reference_ != null) { - output.writeMessage(1, getReference()); - } - if (placement_ != null) { - output.writeMessage(2, getPlacement()); - } - if (typeJobCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); - } - if (typeJobCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); - } - if (typeJobCase_ == 5) { - output.writeMessage(5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); - } - if (typeJobCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); - } - if (typeJobCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); - } - if (status_ != null) { - output.writeMessage(8, getStatus()); - } - for (int i = 0; i < yarnApplications_.size(); i++) { - output.writeMessage(9, yarnApplications_.get(i)); - } - if (typeJobCase_ == 12) { - output.writeMessage(12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - output.writeMessage(13, statusHistory_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, driverControlFilesUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, driverOutputResourceUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); - if (scheduling_ != null) { - output.writeMessage(20, getScheduling()); - } - if (typeJobCase_ == 21) { - output.writeMessage(21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, jobUuid_); - } - if (typeJobCase_ == 23) { - output.writeMessage(23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); - } - if (done_ != false) { - output.writeBool(24, done_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReference()); - } - if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPlacement()); - } - if (typeJobCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1.HadoopJob) typeJob_); - } - if (typeJobCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.SparkJob) typeJob_); - } - if (typeJobCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.PySparkJob) typeJob_); - } - if (typeJobCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.HiveJob) typeJob_); - } - if (typeJobCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.PigJob) typeJob_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStatus()); - } - for (int i = 0; i < yarnApplications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, yarnApplications_.get(i)); - } - if (typeJobCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_); - } - for (int i = 0; i < statusHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, statusHistory_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverControlFilesUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, driverControlFilesUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(driverOutputResourceUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(17, driverOutputResourceUri_); - } - 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(18, labels__); - } - if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScheduling()); - } - if (typeJobCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.dataproc.v1.SparkRJob) typeJob_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_); - } - if (typeJobCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.dataproc.v1.PrestoJob) typeJob_); - } - if (done_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, done_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.Job)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.Job other = (com.google.cloud.dataproc.v1.Job) obj; - - if (hasReference() != other.hasReference()) return false; - if (hasReference()) { - if (!getReference().equals(other.getReference())) return false; - } - if (hasPlacement() != other.hasPlacement()) return false; - if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getStatusHistoryList().equals(other.getStatusHistoryList())) return false; - if (!getYarnApplicationsList().equals(other.getYarnApplicationsList())) return false; - if (!getDriverOutputResourceUri().equals(other.getDriverOutputResourceUri())) return false; - if (!getDriverControlFilesUri().equals(other.getDriverControlFilesUri())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasScheduling() != other.hasScheduling()) return false; - if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; - } - if (!getJobUuid().equals(other.getJobUuid())) return false; - if (getDone() != other.getDone()) return false; - if (!getTypeJobCase().equals(other.getTypeJobCase())) return false; - switch (typeJobCase_) { - case 3: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; - break; - case 4: - if (!getSparkJob().equals(other.getSparkJob())) return false; - break; - case 5: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; - break; - case 6: - if (!getHiveJob().equals(other.getHiveJob())) return false; - break; - case 7: - if (!getPigJob().equals(other.getPigJob())) return false; - break; - case 21: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; - break; - case 12: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; - break; - case 23: - if (!getPrestoJob().equals(other.getPrestoJob())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasReference()) { - hash = (37 * hash) + REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + getReference().hashCode(); - } - if (hasPlacement()) { - hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; - hash = (53 * hash) + getPlacement().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getStatusHistoryCount() > 0) { - hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getStatusHistoryList().hashCode(); - } - if (getYarnApplicationsCount() > 0) { - hash = (37 * hash) + YARN_APPLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getYarnApplicationsList().hashCode(); - } - hash = (37 * hash) + DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER; - hash = (53 * hash) + getDriverOutputResourceUri().hashCode(); - hash = (37 * hash) + DRIVER_CONTROL_FILES_URI_FIELD_NUMBER; - hash = (53 * hash) + getDriverControlFilesUri().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasScheduling()) { - hash = (37 * hash) + SCHEDULING_FIELD_NUMBER; - hash = (53 * hash) + getScheduling().hashCode(); - } - hash = (37 * hash) + JOB_UUID_FIELD_NUMBER; - hash = (53 * hash) + getJobUuid().hashCode(); - hash = (37 * hash) + DONE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone()); - switch (typeJobCase_) { - case 3: - hash = (37 * hash) + HADOOP_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHadoopJob().hashCode(); - break; - case 4: - hash = (37 * hash) + SPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkJob().hashCode(); - break; - case 5: - hash = (37 * hash) + PYSPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPysparkJob().hashCode(); - break; - case 6: - hash = (37 * hash) + HIVE_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHiveJob().hashCode(); - break; - case 7: - hash = (37 * hash) + PIG_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPigJob().hashCode(); - break; - case 21: - hash = (37 * hash) + SPARK_R_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkRJob().hashCode(); - break; - case 12: - hash = (37 * hash) + SPARK_SQL_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkSqlJob().hashCode(); - break; - case 23: - hash = (37 * hash) + PRESTO_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPrestoJob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.Job parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.Job parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Job 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.dataproc.v1.Job parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Job 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.dataproc.v1.Job parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.Job 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.dataproc.v1.Job prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.Job} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.Job) - com.google.cloud.dataproc.v1.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 18: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 18: - 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.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.Job.class, - com.google.cloud.dataproc.v1.Job.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.Job.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (referenceBuilder_ == null) { - reference_ = null; - } else { - reference_ = null; - referenceBuilder_ = null; - } - if (placementBuilder_ == null) { - placement_ = null; - } else { - placement_ = null; - placementBuilder_ = null; - } - if (hadoopJobBuilder_ != null) { - hadoopJobBuilder_.clear(); - } - if (sparkJobBuilder_ != null) { - sparkJobBuilder_.clear(); - } - if (pysparkJobBuilder_ != null) { - pysparkJobBuilder_.clear(); - } - if (hiveJobBuilder_ != null) { - hiveJobBuilder_.clear(); - } - if (pigJobBuilder_ != null) { - pigJobBuilder_.clear(); - } - if (sparkRJobBuilder_ != null) { - sparkRJobBuilder_.clear(); - } - if (sparkSqlJobBuilder_ != null) { - sparkSqlJobBuilder_.clear(); - } - if (prestoJobBuilder_ != null) { - prestoJobBuilder_.clear(); - } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - } else { - statusHistory_ = null; - statusHistoryBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (yarnApplicationsBuilder_ == null) { - yarnApplications_ = java.util.Collections.emptyList(); - } else { - yarnApplications_ = null; - yarnApplicationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - driverOutputResourceUri_ = ""; - - driverControlFilesUri_ = ""; - - internalGetMutableLabels().clear(); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - jobUuid_ = ""; - - done_ = false; - - typeJobCase_ = 0; - typeJob_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_Job_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Job getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.Job.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Job build() { - com.google.cloud.dataproc.v1.Job result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Job buildPartial() { - com.google.cloud.dataproc.v1.Job result = new com.google.cloud.dataproc.v1.Job(this); - int from_bitField0_ = bitField0_; - if (referenceBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = referenceBuilder_.build(); - } - if (placementBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = placementBuilder_.build(); - } - if (typeJobCase_ == 3) { - if (hadoopJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = hadoopJobBuilder_.build(); - } - } - if (typeJobCase_ == 4) { - if (sparkJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkJobBuilder_.build(); - } - } - if (typeJobCase_ == 5) { - if (pysparkJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = pysparkJobBuilder_.build(); - } - } - if (typeJobCase_ == 6) { - if (hiveJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = hiveJobBuilder_.build(); - } - } - if (typeJobCase_ == 7) { - if (pigJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = pigJobBuilder_.build(); - } - } - if (typeJobCase_ == 21) { - if (sparkRJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkRJobBuilder_.build(); - } - } - if (typeJobCase_ == 12) { - if (sparkSqlJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = sparkSqlJobBuilder_.build(); - } - } - if (typeJobCase_ == 23) { - if (prestoJobBuilder_ == null) { - result.typeJob_ = typeJob_; - } else { - result.typeJob_ = prestoJobBuilder_.build(); - } - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (statusHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.statusHistory_ = statusHistory_; - } else { - result.statusHistory_ = statusHistoryBuilder_.build(); - } - if (yarnApplicationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.yarnApplications_ = yarnApplications_; - } else { - result.yarnApplications_ = yarnApplicationsBuilder_.build(); - } - result.driverOutputResourceUri_ = driverOutputResourceUri_; - result.driverControlFilesUri_ = driverControlFilesUri_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - result.jobUuid_ = jobUuid_; - result.done_ = done_; - result.typeJobCase_ = typeJobCase_; - 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.dataproc.v1.Job) { - return mergeFrom((com.google.cloud.dataproc.v1.Job) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.Job other) { - if (other == com.google.cloud.dataproc.v1.Job.getDefaultInstance()) return this; - if (other.hasReference()) { - mergeReference(other.getReference()); - } - if (other.hasPlacement()) { - mergePlacement(other.getPlacement()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (statusHistoryBuilder_ == null) { - if (!other.statusHistory_.isEmpty()) { - if (statusHistory_.isEmpty()) { - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStatusHistoryIsMutable(); - statusHistory_.addAll(other.statusHistory_); - } - onChanged(); - } - } else { - if (!other.statusHistory_.isEmpty()) { - if (statusHistoryBuilder_.isEmpty()) { - statusHistoryBuilder_.dispose(); - statusHistoryBuilder_ = null; - statusHistory_ = other.statusHistory_; - bitField0_ = (bitField0_ & ~0x00000001); - statusHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStatusHistoryFieldBuilder() - : null; - } else { - statusHistoryBuilder_.addAllMessages(other.statusHistory_); - } - } - } - if (yarnApplicationsBuilder_ == null) { - if (!other.yarnApplications_.isEmpty()) { - if (yarnApplications_.isEmpty()) { - yarnApplications_ = other.yarnApplications_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureYarnApplicationsIsMutable(); - yarnApplications_.addAll(other.yarnApplications_); - } - onChanged(); - } - } else { - if (!other.yarnApplications_.isEmpty()) { - if (yarnApplicationsBuilder_.isEmpty()) { - yarnApplicationsBuilder_.dispose(); - yarnApplicationsBuilder_ = null; - yarnApplications_ = other.yarnApplications_; - bitField0_ = (bitField0_ & ~0x00000002); - yarnApplicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getYarnApplicationsFieldBuilder() - : null; - } else { - yarnApplicationsBuilder_.addAllMessages(other.yarnApplications_); - } - } - } - if (!other.getDriverOutputResourceUri().isEmpty()) { - driverOutputResourceUri_ = other.driverOutputResourceUri_; - onChanged(); - } - if (!other.getDriverControlFilesUri().isEmpty()) { - driverControlFilesUri_ = other.driverControlFilesUri_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasScheduling()) { - mergeScheduling(other.getScheduling()); - } - if (!other.getJobUuid().isEmpty()) { - jobUuid_ = other.jobUuid_; - onChanged(); - } - if (other.getDone() != false) { - setDone(other.getDone()); - } - switch (other.getTypeJobCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case TYPEJOB_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getReferenceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - com.google.cloud.dataproc.v1.YarnApplication m = - input.readMessage( - com.google.cloud.dataproc.v1.YarnApplication.parser(), extensionRegistry); - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(m); - } else { - yarnApplicationsBuilder_.addMessage(m); - } - break; - } // case 74 - case 98: - { - input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 12; - break; - } // case 98 - case 106: - { - com.google.cloud.dataproc.v1.JobStatus m = - input.readMessage( - com.google.cloud.dataproc.v1.JobStatus.parser(), extensionRegistry); - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(m); - } else { - statusHistoryBuilder_.addMessage(m); - } - break; - } // case 106 - case 122: - { - driverControlFilesUri_ = input.readStringRequireUtf8(); - - break; - } // case 122 - case 138: - { - driverOutputResourceUri_ = input.readStringRequireUtf8(); - - break; - } // case 138 - case 146: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 146 - case 162: - { - input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 162 - case 170: - { - input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 21; - break; - } // case 170 - case 178: - { - jobUuid_ = input.readStringRequireUtf8(); - - break; - } // case 178 - case 186: - { - input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); - typeJobCase_ = 23; - break; - } // case 186 - case 192: - { - done_ = input.readBool(); - - break; - } // case 192 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int typeJobCase_ = 0; - private java.lang.Object typeJob_; - - public TypeJobCase getTypeJobCase() { - return TypeJobCase.forNumber(typeJobCase_); - } - - public Builder clearTypeJob() { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.cloud.dataproc.v1.JobReference reference_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder> - referenceBuilder_; - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - public boolean hasReference() { - return referenceBuilder_ != null || reference_ != null; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - public com.google.cloud.dataproc.v1.JobReference getReference() { - if (referenceBuilder_ == null) { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; - } else { - return referenceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReference(com.google.cloud.dataproc.v1.JobReference value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - referenceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReference(com.google.cloud.dataproc.v1.JobReference.Builder builderForValue) { - if (referenceBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - referenceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReference(com.google.cloud.dataproc.v1.JobReference value) { - if (referenceBuilder_ == null) { - if (reference_ != null) { - reference_ = - com.google.cloud.dataproc.v1.JobReference.newBuilder(reference_) - .mergeFrom(value) - .buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - referenceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReference() { - if (referenceBuilder_ == null) { - reference_ = null; - onChanged(); - } else { - reference_ = null; - referenceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobReference.Builder getReferenceBuilder() { - - onChanged(); - return getReferenceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder() { - if (referenceBuilder_ != null) { - return referenceBuilder_.getMessageOrBuilder(); - } else { - return reference_ == null - ? com.google.cloud.dataproc.v1.JobReference.getDefaultInstance() - : reference_; - } - } - /** - * - * - *
-     * Optional. The fully qualified reference to the job, which can be used to
-     * obtain the equivalent REST path of the job resource. If this property
-     * is not specified when a job is created, the server generates a
-     * <code>job_id</code>.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder> - getReferenceFieldBuilder() { - if (referenceBuilder_ == null) { - referenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobReference, - com.google.cloud.dataproc.v1.JobReference.Builder, - com.google.cloud.dataproc.v1.JobReferenceOrBuilder>( - getReference(), getParentForChildren(), isClean()); - reference_ = null; - } - return referenceBuilder_; - } - - private com.google.cloud.dataproc.v1.JobPlacement placement_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder> - placementBuilder_; - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - public boolean hasPlacement() { - return placementBuilder_ != null || placement_ != null; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - public com.google.cloud.dataproc.v1.JobPlacement getPlacement() { - if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; - } else { - return placementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement value) { - if (placementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - placementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement(com.google.cloud.dataproc.v1.JobPlacement.Builder builderForValue) { - if (placementBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - placementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePlacement(com.google.cloud.dataproc.v1.JobPlacement value) { - if (placementBuilder_ == null) { - if (placement_ != null) { - placement_ = - com.google.cloud.dataproc.v1.JobPlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - placementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPlacement() { - if (placementBuilder_ == null) { - placement_ = null; - onChanged(); - } else { - placement_ = null; - placementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.JobPlacement.Builder getPlacementBuilder() { - - onChanged(); - return getPlacementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder() { - if (placementBuilder_ != null) { - return placementBuilder_.getMessageOrBuilder(); - } else { - return placement_ == null - ? com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance() - : placement_; - } - } - /** - * - * - *
-     * Required. Job information, including how, when, and where to
-     * run the job.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder> - getPlacementFieldBuilder() { - if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobPlacement, - com.google.cloud.dataproc.v1.JobPlacement.Builder, - com.google.cloud.dataproc.v1.JobPlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); - placement_ = null; - } - return placementBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - hadoopJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return typeJobCase_ == 3; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 3) { - return hadoopJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - hadoopJobBuilder_.setMessage(value); - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { - if (hadoopJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - hadoopJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3 - && typeJob_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1.HadoopJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 3) { - hadoopJobBuilder_.mergeFrom(value); - } else { - hadoopJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (typeJobCase_ == 3) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 3) { - typeJobCase_ = 0; - typeJob_ = null; - } - hadoopJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { - return getHadoopJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if ((typeJobCase_ == 3) && (hadoopJobBuilder_ != null)) { - return hadoopJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 3) { - return (com.google.cloud.dataproc.v1.HadoopJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - getHadoopJobFieldBuilder() { - if (hadoopJobBuilder_ == null) { - if (!(typeJobCase_ == 3)) { - typeJob_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( - (com.google.cloud.dataproc.v1.HadoopJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 3; - onChanged(); - ; - return hadoopJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - sparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return typeJobCase_ == 4; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 4) { - return sparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { - if (sparkJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4 - && typeJob_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 4) { - sparkJobBuilder_.mergeFrom(value); - } else { - sparkJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkJob() { - if (sparkJobBuilder_ == null) { - if (typeJobCase_ == 4) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 4) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { - return getSparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { - if ((typeJobCase_ == 4) && (sparkJobBuilder_ != null)) { - return sparkJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 4) { - return (com.google.cloud.dataproc.v1.SparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - getSparkJobFieldBuilder() { - if (sparkJobBuilder_ == null) { - if (!(typeJobCase_ == 4)) { - typeJob_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 4; - onChanged(); - ; - return sparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - pysparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return typeJobCase_ == 5; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 5) { - return pysparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - pysparkJobBuilder_.setMessage(value); - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { - if (pysparkJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - pysparkJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5 - && typeJob_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1.PySparkJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 5) { - pysparkJobBuilder_.mergeFrom(value); - } else { - pysparkJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (typeJobCase_ == 5) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 5) { - typeJobCase_ = 0; - typeJob_ = null; - } - pysparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { - return getPysparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if ((typeJobCase_ == 5) && (pysparkJobBuilder_ != null)) { - return pysparkJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 5) { - return (com.google.cloud.dataproc.v1.PySparkJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - getPysparkJobFieldBuilder() { - if (pysparkJobBuilder_ == null) { - if (!(typeJobCase_ == 5)) { - typeJob_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( - (com.google.cloud.dataproc.v1.PySparkJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 5; - onChanged(); - ; - return pysparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - hiveJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return typeJobCase_ == 6; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 6) { - return hiveJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - hiveJobBuilder_.setMessage(value); - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { - if (hiveJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - hiveJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6 - && typeJob_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1.HiveJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 6) { - hiveJobBuilder_.mergeFrom(value); - } else { - hiveJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHiveJob() { - if (hiveJobBuilder_ == null) { - if (typeJobCase_ == 6) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 6) { - typeJobCase_ = 0; - typeJob_ = null; - } - hiveJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { - return getHiveJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { - if ((typeJobCase_ == 6) && (hiveJobBuilder_ != null)) { - return hiveJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 6) { - return (com.google.cloud.dataproc.v1.HiveJob) typeJob_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - getHiveJobFieldBuilder() { - if (hiveJobBuilder_ == null) { - if (!(typeJobCase_ == 6)) { - typeJob_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) typeJob_, getParentForChildren(), isClean()); - typeJob_ = null; - } - typeJobCase_ = 6; - onChanged(); - ; - return hiveJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - pigJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return typeJobCase_ == 7; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getPigJob() { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 7) { - return pigJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { - if (pigJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - pigJobBuilder_.setMessage(value); - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { - if (pigJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - pigJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7 - && typeJob_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PigJob.newBuilder( - (com.google.cloud.dataproc.v1.PigJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 7) { - pigJobBuilder_.mergeFrom(value); - } else { - pigJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPigJob() { - if (pigJobBuilder_ == null) { - if (typeJobCase_ == 7) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 7) { - typeJobCase_ = 0; - typeJob_ = null; - } - pigJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { - return getPigJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { - if ((typeJobCase_ == 7) && (pigJobBuilder_ != null)) { - return pigJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 7) { - return (com.google.cloud.dataproc.v1.PigJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - getPigJobFieldBuilder() { - if (pigJobBuilder_ == null) { - if (!(typeJobCase_ == 7)) { - typeJob_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) typeJob_, getParentForChildren(), isClean()); - typeJob_ = null; - } - typeJobCase_ = 7; - onChanged(); - ; - return pigJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - sparkRJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return typeJobCase_ == 21; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 21) { - return sparkRJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkRJobBuilder_.setMessage(value); - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { - if (sparkRJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkRJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21 - && typeJob_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkRJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 21) { - sparkRJobBuilder_.mergeFrom(value); - } else { - sparkRJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 21; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (typeJobCase_ == 21) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 21) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkRJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { - return getSparkRJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if ((typeJobCase_ == 21) && (sparkRJobBuilder_ != null)) { - return sparkRJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 21) { - return (com.google.cloud.dataproc.v1.SparkRJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - getSparkRJobFieldBuilder() { - if (sparkRJobBuilder_ == null) { - if (!(typeJobCase_ == 21)) { - typeJob_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkRJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 21; - onChanged(); - ; - return sparkRJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return typeJobCase_ == 12; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 12) { - return sparkSqlJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob( - com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { - if (sparkSqlJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12 - && typeJob_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 12) { - sparkSqlJobBuilder_.mergeFrom(value); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (typeJobCase_ == 12) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 12) { - typeJobCase_ = 0; - typeJob_ = null; - } - sparkSqlJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { - return getSparkSqlJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if ((typeJobCase_ == 12) && (sparkSqlJobBuilder_ != null)) { - return sparkSqlJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 12) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - getSparkSqlJobFieldBuilder() { - if (sparkSqlJobBuilder_ == null) { - if (!(typeJobCase_ == 12)) { - typeJob_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkSqlJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 12; - onChanged(); - ; - return sparkSqlJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - prestoJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return typeJobCase_ == 23; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } else { - if (typeJobCase_ == 23) { - return prestoJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeJob_ = value; - onChanged(); - } else { - prestoJobBuilder_.setMessage(value); - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { - if (prestoJobBuilder_ == null) { - typeJob_ = builderForValue.build(); - onChanged(); - } else { - prestoJobBuilder_.setMessage(builderForValue.build()); - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23 - && typeJob_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - typeJob_ = - com.google.cloud.dataproc.v1.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1.PrestoJob) typeJob_) - .mergeFrom(value) - .buildPartial(); - } else { - typeJob_ = value; - } - onChanged(); - } else { - if (typeJobCase_ == 23) { - prestoJobBuilder_.mergeFrom(value); - } else { - prestoJobBuilder_.setMessage(value); - } - } - typeJobCase_ = 23; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPrestoJob() { - if (prestoJobBuilder_ == null) { - if (typeJobCase_ == 23) { - typeJobCase_ = 0; - typeJob_ = null; - onChanged(); - } - } else { - if (typeJobCase_ == 23) { - typeJobCase_ = 0; - typeJob_ = null; - } - prestoJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { - return getPrestoJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if ((typeJobCase_ == 23) && (prestoJobBuilder_ != null)) { - return prestoJobBuilder_.getMessageOrBuilder(); - } else { - if (typeJobCase_ == 23) { - return (com.google.cloud.dataproc.v1.PrestoJob) typeJob_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - getPrestoJobFieldBuilder() { - if (prestoJobBuilder_ == null) { - if (!(typeJobCase_ == 23)) { - typeJob_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( - (com.google.cloud.dataproc.v1.PrestoJob) typeJob_, - getParentForChildren(), - isClean()); - typeJob_ = null; - } - typeJobCase_ = 23; - onChanged(); - ; - return prestoJobBuilder_; - } - - private com.google.cloud.dataproc.v1.JobStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1.JobStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. The job status. Additional application-specific
-     * status information may be contained in the <code>type_job</code>
-     * and <code>yarn_applications</code> fields.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List statusHistory_ = - java.util.Collections.emptyList(); - - private void ensureStatusHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - statusHistory_ = - new java.util.ArrayList(statusHistory_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusHistoryBuilder_; - - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getStatusHistoryList() { - if (statusHistoryBuilder_ == null) { - return java.util.Collections.unmodifiableList(statusHistory_); - } else { - return statusHistoryBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getStatusHistoryCount() { - if (statusHistoryBuilder_ == null) { - return statusHistory_.size(); - } else { - return statusHistoryBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, value); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatusHistory( - int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.set(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(com.google.cloud.dataproc.v1.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory(int index, com.google.cloud.dataproc.v1.JobStatus value) { - if (statusHistoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, value); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addStatusHistory( - int index, com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.add(index, builderForValue.build()); - onChanged(); - } else { - statusHistoryBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllStatusHistory( - java.lang.Iterable values) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statusHistory_); - onChanged(); - } else { - statusHistoryBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatusHistory() { - if (statusHistoryBuilder_ == null) { - statusHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - statusHistoryBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeStatusHistory(int index) { - if (statusHistoryBuilder_ == null) { - ensureStatusHistoryIsMutable(); - statusHistory_.remove(index); - onChanged(); - } else { - statusHistoryBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index) { - if (statusHistoryBuilder_ == null) { - return statusHistory_.get(index); - } else { - return statusHistoryBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryOrBuilderList() { - if (statusHistoryBuilder_ != null) { - return statusHistoryBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(statusHistory_); - } - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder() { - return getStatusHistoryFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus.Builder addStatusHistoryBuilder(int index) { - return getStatusHistoryFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The previous job status.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getStatusHistoryBuilderList() { - return getStatusHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - getStatusHistoryFieldBuilder() { - if (statusHistoryBuilder_ == null) { - statusHistoryBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - statusHistory_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - statusHistory_ = null; - } - return statusHistoryBuilder_; - } - - private java.util.List yarnApplications_ = - java.util.Collections.emptyList(); - - private void ensureYarnApplicationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - yarnApplications_ = - new java.util.ArrayList( - yarnApplications_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> - yarnApplicationsBuilder_; - - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getYarnApplicationsList() { - if (yarnApplicationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(yarnApplications_); - } else { - return yarnApplicationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getYarnApplicationsCount() { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.size(); - } else { - return yarnApplicationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index) { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); - } else { - return yarnApplicationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setYarnApplications( - int index, com.google.cloud.dataproc.v1.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.set(index, value); - onChanged(); - } else { - yarnApplicationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setYarnApplications( - int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.set(index, builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications(com.google.cloud.dataproc.v1.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(value); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - int index, com.google.cloud.dataproc.v1.YarnApplication value) { - if (yarnApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(index, value); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addYarnApplications( - int index, com.google.cloud.dataproc.v1.YarnApplication.Builder builderForValue) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.add(index, builderForValue.build()); - onChanged(); - } else { - yarnApplicationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllYarnApplications( - java.lang.Iterable values) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, yarnApplications_); - onChanged(); - } else { - yarnApplicationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearYarnApplications() { - if (yarnApplicationsBuilder_ == null) { - yarnApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - yarnApplicationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeYarnApplications(int index) { - if (yarnApplicationsBuilder_ == null) { - ensureYarnApplicationsIsMutable(); - yarnApplications_.remove(index); - onChanged(); - } else { - yarnApplicationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.YarnApplication.Builder getYarnApplicationsBuilder( - int index) { - return getYarnApplicationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder( - int index) { - if (yarnApplicationsBuilder_ == null) { - return yarnApplications_.get(index); - } else { - return yarnApplicationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getYarnApplicationsOrBuilderList() { - if (yarnApplicationsBuilder_ != null) { - return yarnApplicationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(yarnApplications_); - } - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder() { - return getYarnApplicationsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.YarnApplication.Builder addYarnApplicationsBuilder( - int index) { - return getYarnApplicationsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The collection of YARN applications spun up by this job.
-     * **Beta** Feature: This report is available for testing purposes only. It
-     * may be changed before final release.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getYarnApplicationsBuilderList() { - return getYarnApplicationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder> - getYarnApplicationsFieldBuilder() { - if (yarnApplicationsBuilder_ == null) { - yarnApplicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.YarnApplication, - com.google.cloud.dataproc.v1.YarnApplication.Builder, - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder>( - yarnApplications_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - yarnApplications_ = null; - } - return yarnApplicationsBuilder_; - } - - private java.lang.Object driverOutputResourceUri_ = ""; - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - public java.lang.String getDriverOutputResourceUri() { - java.lang.Object ref = driverOutputResourceUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverOutputResourceUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - public com.google.protobuf.ByteString getDriverOutputResourceUriBytes() { - java.lang.Object ref = driverOutputResourceUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverOutputResourceUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The driverOutputResourceUri to set. - * @return This builder for chaining. - */ - public Builder setDriverOutputResourceUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driverOutputResourceUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDriverOutputResourceUri() { - - driverOutputResourceUri_ = getDefaultInstance().getDriverOutputResourceUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout of the job's
-     * driver program.
-     * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for driverOutputResourceUri to set. - * @return This builder for chaining. - */ - public Builder setDriverOutputResourceUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driverOutputResourceUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object driverControlFilesUri_ = ""; - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverControlFilesUri. - */ - public java.lang.String getDriverControlFilesUri() { - java.lang.Object ref = driverControlFilesUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - driverControlFilesUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverControlFilesUri. - */ - public com.google.protobuf.ByteString getDriverControlFilesUriBytes() { - java.lang.Object ref = driverControlFilesUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - driverControlFilesUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The driverControlFilesUri to set. - * @return This builder for chaining. - */ - public Builder setDriverControlFilesUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - driverControlFilesUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDriverControlFilesUri() { - - driverControlFilesUri_ = getDefaultInstance().getDriverControlFilesUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If present, the location of miscellaneous control files
-     * which may be used as part of job setup and handling. If not present,
-     * control files may be placed in the same location as `driver_output_uri`.
-     * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for driverControlFilesUri to set. - * @return This builder for chaining. - */ - public Builder setDriverControlFilesUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - driverControlFilesUri_ = 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to [RFC
-     * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-     * associated with a job.
-     * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.JobScheduling scheduling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> - schedulingBuilder_; - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } else { - return schedulingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduling_ = value; - onChanged(); - } else { - schedulingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling( - com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { - if (schedulingBuilder_ == null) { - scheduling_ = builderForValue.build(); - onChanged(); - } else { - schedulingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduling_ = value; - } - onChanged(); - } else { - schedulingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - - onChanged(); - return getSchedulingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { - if (schedulingBuilder_ != null) { - return schedulingBuilder_.getMessageOrBuilder(); - } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> - getSchedulingFieldBuilder() { - if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); - scheduling_ = null; - } - return schedulingBuilder_; - } - - private java.lang.Object jobUuid_ = ""; - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - public java.lang.String getJobUuid() { - java.lang.Object ref = jobUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - public com.google.protobuf.ByteString getJobUuidBytes() { - java.lang.Object ref = jobUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobUuid to set. - * @return This builder for chaining. - */ - public Builder setJobUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobUuid() { - - jobUuid_ = getDefaultInstance().getJobUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A UUID that uniquely identifies a job within the project
-     * over time. This is in contrast to a user-settable reference.job_id that
-     * may be reused over time.
-     * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobUuid to set. - * @return This builder for chaining. - */ - public Builder setJobUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobUuid_ = value; - onChanged(); - return this; - } - - private boolean done_; - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - @java.lang.Override - public boolean getDone() { - return done_; - } - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The done to set. - * @return This builder for chaining. - */ - public Builder setDone(boolean value) { - - done_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Indicates whether the job is completed. If the value is `false`,
-     * the job is still in progress. If `true`, the job is completed, and
-     * `status.state` field will indicate if it was successful, failed,
-     * or cancelled.
-     * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDone() { - - done_ = false; - 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.dataproc.v1.Job) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.Job) - private static final com.google.cloud.dataproc.v1.Job DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.Job(); - } - - public static com.google.cloud.dataproc.v1.Job getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.Job getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java deleted file mode 100644 index d3ca8880..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java +++ /dev/null @@ -1,1351 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Job Operation metadata.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} - */ -public final class JobMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobMetadata) - JobMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobMetadata.newBuilder() to construct. - private JobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobMetadata() { - jobId_ = ""; - operationType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, - com.google.cloud.dataproc.v1.JobMetadata.Builder.class); - } - - public static final int JOB_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.JobStatus status_; - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus getStatus() { - return status_ == null ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() : status_; - } - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int OPERATION_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object operationType_; - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - @java.lang.Override - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); - } - if (status_ != null) { - output.writeMessage(2, getStatus()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationType_); - } - if (startTime_ != null) { - output.writeMessage(4, getStartTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationType_); - } - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.JobMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.JobMetadata other = (com.google.cloud.dataproc.v1.JobMetadata) obj; - - if (!getJobId().equals(other.getJobId())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getOperationType().equals(other.getOperationType())) return false; - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getOperationType().hashCode(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobMetadata 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.dataproc.v1.JobMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobMetadata 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.dataproc.v1.JobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobMetadata 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.dataproc.v1.JobMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Job Operation metadata.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobMetadata) - com.google.cloud.dataproc.v1.JobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobMetadata.class, - com.google.cloud.dataproc.v1.JobMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.JobMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - jobId_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - operationType_ = ""; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.JobMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobMetadata build() { - com.google.cloud.dataproc.v1.JobMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobMetadata buildPartial() { - com.google.cloud.dataproc.v1.JobMetadata result = - new com.google.cloud.dataproc.v1.JobMetadata(this); - result.jobId_ = jobId_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - result.operationType_ = operationType_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.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.dataproc.v1.JobMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.JobMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.JobMetadata other) { - if (other == com.google.cloud.dataproc.v1.JobMetadata.getDefaultInstance()) return this; - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (!other.getOperationType().isEmpty()) { - operationType_ = other.operationType_; - onChanged(); - } - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - operationType_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id.
-     * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.JobStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - public com.google.cloud.dataproc.v1.JobStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStatus(com.google.cloud.dataproc.v1.JobStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStatus(com.google.cloud.dataproc.v1.JobStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.dataproc.v1.JobStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. Most recent job status.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobStatus, - com.google.cloud.dataproc.v1.JobStatus.Builder, - com.google.cloud.dataproc.v1.JobStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.lang.Object operationType_ = ""; - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - public java.lang.String getOperationType() { - java.lang.Object ref = operationType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operationType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - public com.google.protobuf.ByteString getOperationTypeBytes() { - java.lang.Object ref = operationType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = getDefaultInstance().getOperationType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Operation type.
-     * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operationType_ = value; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * Output only. Job submission time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - 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_; - } - - @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.dataproc.v1.JobMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobMetadata) - private static final com.google.cloud.dataproc.v1.JobMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobMetadata(); - } - - public static com.google.cloud.dataproc.v1.JobMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java deleted file mode 100644 index f1343e20..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java +++ /dev/null @@ -1,154 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Output only. The job id.
-   * 
- * - * string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1.JobStatus getStatus(); - /** - * - * - *
-   * Output only. Most recent job status.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The operationType. - */ - java.lang.String getOperationType(); - /** - * - * - *
-   * Output only. Operation type.
-   * 
- * - * string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for operationType. - */ - com.google.protobuf.ByteString getOperationTypeBytes(); - - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * Output only. Job submission time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java deleted file mode 100644 index 4747c1e2..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java +++ /dev/null @@ -1,857 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.Job) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the reference field is set. - */ - boolean hasReference(); - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reference. - */ - com.google.cloud.dataproc.v1.JobReference getReference(); - /** - * - * - *
-   * Optional. The fully qualified reference to the job, which can be used to
-   * obtain the equivalent REST path of the job resource. If this property
-   * is not specified when a job is created, the server generates a
-   * <code>job_id</code>.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.JobReferenceOrBuilder getReferenceOrBuilder(); - - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - boolean hasPlacement(); - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - com.google.cloud.dataproc.v1.JobPlacement getPlacement(); - /** - * - * - *
-   * Required. Job information, including how, when, and where to
-   * run the job.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.JobPlacementOrBuilder getPlacementOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - boolean hasHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - boolean hasSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - com.google.cloud.dataproc.v1.SparkJob getSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - boolean hasPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - boolean hasHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - com.google.cloud.dataproc.v1.HiveJob getHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - boolean hasPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - com.google.cloud.dataproc.v1.PigJob getPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - boolean hasSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - boolean hasSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - boolean hasPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); - - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The status. - */ - com.google.cloud.dataproc.v1.JobStatus getStatus(); - /** - * - * - *
-   * Output only. The job status. Additional application-specific
-   * status information may be contained in the <code>type_job</code>
-   * and <code>yarn_applications</code> fields.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getStatusHistoryList(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.JobStatus getStatusHistory(int index); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getStatusHistoryCount(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getStatusHistoryOrBuilderList(); - /** - * - * - *
-   * Output only. The previous job status.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.JobStatusOrBuilder getStatusHistoryOrBuilder(int index); - - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getYarnApplicationsList(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.YarnApplication getYarnApplications(int index); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getYarnApplicationsCount(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getYarnApplicationsOrBuilderList(); - /** - * - * - *
-   * Output only. The collection of YARN applications spun up by this job.
-   * **Beta** Feature: This report is available for testing purposes only. It
-   * may be changed before final release.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder getYarnApplicationsOrBuilder(int index); - - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The driverOutputResourceUri. - */ - java.lang.String getDriverOutputResourceUri(); - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout of the job's
-   * driver program.
-   * 
- * - * string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for driverOutputResourceUri. - */ - com.google.protobuf.ByteString getDriverOutputResourceUriBytes(); - - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The driverControlFilesUri. - */ - java.lang.String getDriverControlFilesUri(); - /** - * - * - *
-   * Output only. If present, the location of miscellaneous control files
-   * which may be used as part of job setup and handling. If not present,
-   * control files may be placed in the same location as `driver_output_uri`.
-   * 
- * - * string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for driverControlFilesUri. - */ - com.google.protobuf.ByteString getDriverControlFilesUriBytes(); - - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to [RFC
-   * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
-   * associated with a job.
-   * 
- * - * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - boolean hasScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - com.google.cloud.dataproc.v1.JobScheduling getScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); - - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobUuid. - */ - java.lang.String getJobUuid(); - /** - * - * - *
-   * Output only. A UUID that uniquely identifies a job within the project
-   * over time. This is in contrast to a user-settable reference.job_id that
-   * may be reused over time.
-   * 
- * - * string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobUuid. - */ - com.google.protobuf.ByteString getJobUuidBytes(); - - /** - * - * - *
-   * Output only. Indicates whether the job is completed. If the value is `false`,
-   * the job is still in progress. If `true`, the job is completed, and
-   * `status.state` field will indicate if it was successful, failed,
-   * or cancelled.
-   * 
- * - * bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The done. - */ - boolean getDone(); - - public com.google.cloud.dataproc.v1.Job.TypeJobCase getTypeJobCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java deleted file mode 100644 index b891a043..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java +++ /dev/null @@ -1,1138 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Dataproc job config.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} - */ -public final class JobPlacement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobPlacement) - JobPlacementOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobPlacement.newBuilder() to construct. - private JobPlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobPlacement() { - clusterName_ = ""; - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobPlacement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, - com.google.cloud.dataproc.v1.JobPlacement.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_LABELS_FIELD_NUMBER = 3; - - private static final class ClusterLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterUuid_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetClusterLabels(), ClusterLabelsDefaultEntryHolder.defaultEntry, 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterUuid_); - } - for (java.util.Map.Entry entry : - internalGetClusterLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry clusterLabels__ = - ClusterLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterLabels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.JobPlacement)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.JobPlacement other = - (com.google.cloud.dataproc.v1.JobPlacement) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!internalGetClusterLabels().equals(other.internalGetClusterLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (!internalGetClusterLabels().getMap().isEmpty()) { - hash = (37 * hash) + CLUSTER_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetClusterLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobPlacement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobPlacement 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.dataproc.v1.JobPlacement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobPlacement 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.dataproc.v1.JobPlacement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobPlacement 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.dataproc.v1.JobPlacement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc job config.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobPlacement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobPlacement) - com.google.cloud.dataproc.v1.JobPlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableClusterLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobPlacement.class, - com.google.cloud.dataproc.v1.JobPlacement.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.JobPlacement.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - clusterName_ = ""; - - clusterUuid_ = ""; - - internalGetMutableClusterLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacement getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacement build() { - com.google.cloud.dataproc.v1.JobPlacement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacement buildPartial() { - com.google.cloud.dataproc.v1.JobPlacement result = - new com.google.cloud.dataproc.v1.JobPlacement(this); - int from_bitField0_ = bitField0_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - result.clusterLabels_ = internalGetClusterLabels(); - result.clusterLabels_.makeImmutable(); - 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.dataproc.v1.JobPlacement) { - return mergeFrom((com.google.cloud.dataproc.v1.JobPlacement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.JobPlacement other) { - if (other == com.google.cloud.dataproc.v1.JobPlacement.getDefaultInstance()) return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - internalGetMutableClusterLabels().mergeFrom(other.internalGetClusterLabels()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry clusterLabels__ = - input.readMessage( - ClusterLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableClusterLabels() - .getMutableMap() - .put(clusterLabels__.getKey(), clusterLabels__.getValue()); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster where the job will be submitted.
-     * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A cluster UUID generated by the Dataproc service when
-     * the job is submitted.
-     * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField clusterLabels_; - - private com.google.protobuf.MapField - internalGetClusterLabels() { - if (clusterLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterLabelsDefaultEntryHolder.defaultEntry); - } - return clusterLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableClusterLabels() { - onChanged(); - ; - if (clusterLabels_ == null) { - clusterLabels_ = - com.google.protobuf.MapField.newMapField(ClusterLabelsDefaultEntryHolder.defaultEntry); - } - if (!clusterLabels_.isMutable()) { - clusterLabels_ = clusterLabels_.copy(); - } - return clusterLabels_; - } - - public int getClusterLabelsCount() { - return internalGetClusterLabels().getMap().size(); - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetClusterLabels().getMap().containsKey(key); - } - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getClusterLabels() { - return getClusterLabelsMap(); - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getClusterLabelsMap() { - return internalGetClusterLabels().getMap(); - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getClusterLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetClusterLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearClusterLabels() { - internalGetMutableClusterLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeClusterLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableClusterLabels() { - return internalGetMutableClusterLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putClusterLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableClusterLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Cluster labels to identify a cluster where the job will be submitted.
-     * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllClusterLabels(java.util.Map values) { - internalGetMutableClusterLabels().getMutableMap().putAll(values); - 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.dataproc.v1.JobPlacement) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobPlacement) - private static final com.google.cloud.dataproc.v1.JobPlacement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobPlacement(); - } - - public static com.google.cloud.dataproc.v1.JobPlacement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobPlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobPlacement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java deleted file mode 100644 index fb61780d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java +++ /dev/null @@ -1,141 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobPlacementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobPlacement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The name of the cluster where the job will be submitted.
-   * 
- * - * string cluster_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. A cluster UUID generated by the Dataproc service when
-   * the job is submitted.
-   * 
- * - * string cluster_uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getClusterLabelsCount(); - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsClusterLabels(java.lang.String key); - /** Use {@link #getClusterLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getClusterLabels(); - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getClusterLabelsMap(); - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getClusterLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Cluster labels to identify a cluster where the job will be submitted.
-   * 
- * - * map<string, string> cluster_labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getClusterLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java deleted file mode 100644 index 76579610..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java +++ /dev/null @@ -1,820 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Encapsulates the full scoping used to reference a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobReference} - */ -public final class JobReference extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobReference) - JobReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobReference.newBuilder() to construct. - private JobReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobReference() { - projectId_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobReference(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, - com.google.cloud.dataproc.v1.JobReference.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.JobReference)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.JobReference other = - (com.google.cloud.dataproc.v1.JobReference) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobReference 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.dataproc.v1.JobReference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobReference 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.dataproc.v1.JobReference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobReference 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.dataproc.v1.JobReference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Encapsulates the full scoping used to reference a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobReference} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobReference) - com.google.cloud.dataproc.v1.JobReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobReference.class, - com.google.cloud.dataproc.v1.JobReference.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.JobReference.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReference getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.JobReference.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReference build() { - com.google.cloud.dataproc.v1.JobReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReference buildPartial() { - com.google.cloud.dataproc.v1.JobReference result = - new com.google.cloud.dataproc.v1.JobReference(this); - result.projectId_ = projectId_; - result.jobId_ = jobId_; - 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.dataproc.v1.JobReference) { - return mergeFrom((com.google.cloud.dataproc.v1.JobReference) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.JobReference other) { - if (other == com.google.cloud.dataproc.v1.JobReference.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-     * specified, must match the request project ID.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The job ID, which must be unique within the project.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), or hyphens (-). The maximum length is 100 characters.
-     * If not specified by the caller, the job ID will be provided by the server.
-     * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = 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.dataproc.v1.JobReference) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobReference) - private static final com.google.cloud.dataproc.v1.JobReference DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobReference(); - } - - public static com.google.cloud.dataproc.v1.JobReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java deleted file mode 100644 index df102fa4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java +++ /dev/null @@ -1,83 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobReferenceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobReference) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Optional. The ID of the Google Cloud Platform project that the job belongs to. If
-   * specified, must match the request project ID.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Optional. The job ID, which must be unique within the project.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), or hyphens (-). The maximum length is 100 characters.
-   * If not specified by the caller, the job ID will be provided by the server.
-   * 
- * - * string job_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java deleted file mode 100644 index b5f85592..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java +++ /dev/null @@ -1,685 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Job scheduling options.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} - */ -public final class JobScheduling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobScheduling) - JobSchedulingOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobScheduling.newBuilder() to construct. - private JobScheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobScheduling() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobScheduling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, - com.google.cloud.dataproc.v1.JobScheduling.Builder.class); - } - - public static final int MAX_FAILURES_PER_HOUR_FIELD_NUMBER = 1; - private int maxFailuresPerHour_; - /** - * - * - *
-   * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver exiting with non-zero code before job is
-   * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
-   * Maximum value is 10.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - @java.lang.Override - public int getMaxFailuresPerHour() { - return maxFailuresPerHour_; - } - - public static final int MAX_FAILURES_TOTAL_FIELD_NUMBER = 2; - private int maxFailuresTotal_; - /** - * - * - *
-   * Optional. Maximum number of times in total a driver may be restarted as a result of
-   * driver exiting with non-zero code before job is reported failed.
-   * Maximum value is 240.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresTotal. - */ - @java.lang.Override - public int getMaxFailuresTotal() { - return maxFailuresTotal_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxFailuresPerHour_ != 0) { - output.writeInt32(1, maxFailuresPerHour_); - } - if (maxFailuresTotal_ != 0) { - output.writeInt32(2, maxFailuresTotal_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxFailuresPerHour_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxFailuresPerHour_); - } - if (maxFailuresTotal_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFailuresTotal_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.JobScheduling)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.JobScheduling other = - (com.google.cloud.dataproc.v1.JobScheduling) obj; - - if (getMaxFailuresPerHour() != other.getMaxFailuresPerHour()) return false; - if (getMaxFailuresTotal() != other.getMaxFailuresTotal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_FAILURES_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getMaxFailuresPerHour(); - hash = (37 * hash) + MAX_FAILURES_TOTAL_FIELD_NUMBER; - hash = (53 * hash) + getMaxFailuresTotal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobScheduling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobScheduling 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.dataproc.v1.JobScheduling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobScheduling 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.dataproc.v1.JobScheduling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobScheduling 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.dataproc.v1.JobScheduling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Job scheduling options.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobScheduling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobScheduling) - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobScheduling.class, - com.google.cloud.dataproc.v1.JobScheduling.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.JobScheduling.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxFailuresPerHour_ = 0; - - maxFailuresTotal_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling build() { - com.google.cloud.dataproc.v1.JobScheduling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling buildPartial() { - com.google.cloud.dataproc.v1.JobScheduling result = - new com.google.cloud.dataproc.v1.JobScheduling(this); - result.maxFailuresPerHour_ = maxFailuresPerHour_; - result.maxFailuresTotal_ = maxFailuresTotal_; - 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.dataproc.v1.JobScheduling) { - return mergeFrom((com.google.cloud.dataproc.v1.JobScheduling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.JobScheduling other) { - if (other == com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance()) return this; - if (other.getMaxFailuresPerHour() != 0) { - setMaxFailuresPerHour(other.getMaxFailuresPerHour()); - } - if (other.getMaxFailuresTotal() != 0) { - setMaxFailuresTotal(other.getMaxFailuresTotal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxFailuresPerHour_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - maxFailuresTotal_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int maxFailuresPerHour_; - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver exiting with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - @java.lang.Override - public int getMaxFailuresPerHour() { - return maxFailuresPerHour_; - } - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver exiting with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The maxFailuresPerHour to set. - * @return This builder for chaining. - */ - public Builder setMaxFailuresPerHour(int value) { - - maxFailuresPerHour_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Maximum number of times per hour a driver may be restarted as
-     * a result of driver exiting with non-zero code before job is
-     * reported failed.
-     * A job may be reported as thrashing if driver exits with non-zero code
-     * 4 times within 10 minute window.
-     * Maximum value is 10.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMaxFailuresPerHour() { - - maxFailuresPerHour_ = 0; - onChanged(); - return this; - } - - private int maxFailuresTotal_; - /** - * - * - *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
-     * Maximum value is 240.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresTotal. - */ - @java.lang.Override - public int getMaxFailuresTotal() { - return maxFailuresTotal_; - } - /** - * - * - *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
-     * Maximum value is 240.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The maxFailuresTotal to set. - * @return This builder for chaining. - */ - public Builder setMaxFailuresTotal(int value) { - - maxFailuresTotal_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Maximum number of times in total a driver may be restarted as a result of
-     * driver exiting with non-zero code before job is reported failed.
-     * Maximum value is 240.
-     * **Note:** Currently, this restartable job option is
-     * not supported in Dataproc
-     * [workflow
-     * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-     * jobs.
-     * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMaxFailuresTotal() { - - maxFailuresTotal_ = 0; - 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.dataproc.v1.JobScheduling) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobScheduling) - private static final com.google.cloud.dataproc.v1.JobScheduling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobScheduling(); - } - - public static com.google.cloud.dataproc.v1.JobScheduling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobScheduling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java deleted file mode 100644 index a65b1cfc..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java +++ /dev/null @@ -1,68 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobSchedulingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobScheduling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Maximum number of times per hour a driver may be restarted as
-   * a result of driver exiting with non-zero code before job is
-   * reported failed.
-   * A job may be reported as thrashing if driver exits with non-zero code
-   * 4 times within 10 minute window.
-   * Maximum value is 10.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_per_hour = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresPerHour. - */ - int getMaxFailuresPerHour(); - - /** - * - * - *
-   * Optional. Maximum number of times in total a driver may be restarted as a result of
-   * driver exiting with non-zero code before job is reported failed.
-   * Maximum value is 240.
-   * **Note:** Currently, this restartable job option is
-   * not supported in Dataproc
-   * [workflow
-   * template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
-   * jobs.
-   * 
- * - * int32 max_failures_total = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The maxFailuresTotal. - */ - int getMaxFailuresTotal(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java deleted file mode 100644 index 5f35f124..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java +++ /dev/null @@ -1,1770 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Dataproc job status.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobStatus} - */ -public final class JobStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.JobStatus) - JobStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobStatus.newBuilder() to construct. - private JobStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobStatus() { - state_ = 0; - details_ = ""; - substate_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, - com.google.cloud.dataproc.v1.JobStatus.Builder.class); - } - - /** - * - * - *
-   * The job state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The job state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The job is pending; it has been submitted, but is not yet running.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * Job has been received by the service and completed initial setup;
-     * it will soon be submitted to the cluster.
-     * 
- * - * SETUP_DONE = 8; - */ - SETUP_DONE(8), - /** - * - * - *
-     * The job is running on the cluster.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * A CancelJob request has been received, but is pending.
-     * 
- * - * CANCEL_PENDING = 3; - */ - CANCEL_PENDING(3), - /** - * - * - *
-     * Transient in-flight resources have been canceled, and the request to
-     * cancel the running job has been issued to the cluster.
-     * 
- * - * CANCEL_STARTED = 7; - */ - CANCEL_STARTED(7), - /** - * - * - *
-     * The job cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - CANCELLED(4), - /** - * - * - *
-     * The job has completed successfully.
-     * 
- * - * DONE = 5; - */ - DONE(5), - /** - * - * - *
-     * The job has completed, but encountered an error.
-     * 
- * - * ERROR = 6; - */ - ERROR(6), - /** - * - * - *
-     * Job attempt has failed. The detail field contains failure details for
-     * this attempt.
-     * Applies to restartable jobs only.
-     * 
- * - * ATTEMPT_FAILURE = 9; - */ - ATTEMPT_FAILURE(9), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The job state is unknown.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The job is pending; it has been submitted, but is not yet running.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * Job has been received by the service and completed initial setup;
-     * it will soon be submitted to the cluster.
-     * 
- * - * SETUP_DONE = 8; - */ - public static final int SETUP_DONE_VALUE = 8; - /** - * - * - *
-     * The job is running on the cluster.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * A CancelJob request has been received, but is pending.
-     * 
- * - * CANCEL_PENDING = 3; - */ - public static final int CANCEL_PENDING_VALUE = 3; - /** - * - * - *
-     * Transient in-flight resources have been canceled, and the request to
-     * cancel the running job has been issued to the cluster.
-     * 
- * - * CANCEL_STARTED = 7; - */ - public static final int CANCEL_STARTED_VALUE = 7; - /** - * - * - *
-     * The job cancellation was successful.
-     * 
- * - * CANCELLED = 4; - */ - public static final int CANCELLED_VALUE = 4; - /** - * - * - *
-     * The job has completed successfully.
-     * 
- * - * DONE = 5; - */ - public static final int DONE_VALUE = 5; - /** - * - * - *
-     * The job has completed, but encountered an error.
-     * 
- * - * ERROR = 6; - */ - public static final int ERROR_VALUE = 6; - /** - * - * - *
-     * Job attempt has failed. The detail field contains failure details for
-     * this attempt.
-     * Applies to restartable jobs only.
-     * 
- * - * ATTEMPT_FAILURE = 9; - */ - public static final int ATTEMPT_FAILURE_VALUE = 9; - - 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 PENDING; - case 8: - return SETUP_DONE; - case 2: - return RUNNING; - case 3: - return CANCEL_PENDING; - case 7: - return CANCEL_STARTED; - case 4: - return CANCELLED; - case 5: - return DONE; - case 6: - return ERROR; - case 9: - return ATTEMPT_FAILURE; - 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.dataproc.v1.JobStatus.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.dataproc.v1.JobStatus.State) - } - - /** - * - * - *
-   * The job substate.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.JobStatus.Substate} - */ - public enum Substate implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The job substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * The Job is submitted to the agent.
-     * Applies to RUNNING state.
-     * 
- * - * SUBMITTED = 1; - */ - SUBMITTED(1), - /** - * - * - *
-     * The Job has been received and is awaiting execution (it may be waiting
-     * for a condition to be met). See the "details" field for the reason for
-     * the delay.
-     * Applies to RUNNING state.
-     * 
- * - * QUEUED = 2; - */ - QUEUED(2), - /** - * - * - *
-     * The agent-reported status is out of date, which may be caused by a
-     * loss of communication between the agent and Dataproc. If the
-     * agent does not send a timely update, the job will fail.
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 3; - */ - STALE_STATUS(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The job substate is unknown.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The Job is submitted to the agent.
-     * Applies to RUNNING state.
-     * 
- * - * SUBMITTED = 1; - */ - public static final int SUBMITTED_VALUE = 1; - /** - * - * - *
-     * The Job has been received and is awaiting execution (it may be waiting
-     * for a condition to be met). See the "details" field for the reason for
-     * the delay.
-     * Applies to RUNNING state.
-     * 
- * - * QUEUED = 2; - */ - public static final int QUEUED_VALUE = 2; - /** - * - * - *
-     * The agent-reported status is out of date, which may be caused by a
-     * loss of communication between the agent and Dataproc. If the
-     * agent does not send a timely update, the job will fail.
-     * Applies to RUNNING state.
-     * 
- * - * STALE_STATUS = 3; - */ - public static final int STALE_STATUS_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 Substate 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 Substate forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return SUBMITTED; - case 2: - return QUEUED; - case 3: - return STALE_STATUS; - 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 Substate findValueByNumber(int number) { - return Substate.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.dataproc.v1.JobStatus.getDescriptor().getEnumTypes().get(1); - } - - private static final Substate[] VALUES = values(); - - public static Substate 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 Substate(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.JobStatus.Substate) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = - com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; - } - - public static final int DETAILS_FIELD_NUMBER = 2; - private volatile java.lang.Object details_; - /** - * - * - *
-   * Optional. Output only. Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The details. - */ - @java.lang.Override - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Output only. Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for details. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_START_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp stateStartTime_; - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - @java.lang.Override - public boolean hasStateStartTime() { - return stateStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStateStartTime() { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - return getStateStartTime(); - } - - public static final int SUBSTATE_FIELD_NUMBER = 7; - private int substate_; - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = - com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); - return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); - } - if (stateStartTime_ != null) { - output.writeMessage(6, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { - output.writeEnum(7, substate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != com.google.cloud.dataproc.v1.JobStatus.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); - } - if (stateStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStateStartTime()); - } - if (substate_ != com.google.cloud.dataproc.v1.JobStatus.Substate.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, substate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.JobStatus)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.JobStatus other = (com.google.cloud.dataproc.v1.JobStatus) obj; - - if (state_ != other.state_) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (hasStateStartTime() != other.hasStateStartTime()) return false; - if (hasStateStartTime()) { - if (!getStateStartTime().equals(other.getStateStartTime())) return false; - } - if (substate_ != other.substate_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetails().hashCode(); - if (hasStateStartTime()) { - hash = (37 * hash) + STATE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStateStartTime().hashCode(); - } - hash = (37 * hash) + SUBSTATE_FIELD_NUMBER; - hash = (53 * hash) + substate_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.JobStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobStatus 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.dataproc.v1.JobStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobStatus 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.dataproc.v1.JobStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.JobStatus 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.dataproc.v1.JobStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc job status.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.JobStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.JobStatus) - com.google.cloud.dataproc.v1.JobStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.JobStatus.class, - com.google.cloud.dataproc.v1.JobStatus.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.JobStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - details_ = ""; - - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - substate_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus build() { - com.google.cloud.dataproc.v1.JobStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus buildPartial() { - com.google.cloud.dataproc.v1.JobStatus result = - new com.google.cloud.dataproc.v1.JobStatus(this); - result.state_ = state_; - result.details_ = details_; - if (stateStartTimeBuilder_ == null) { - result.stateStartTime_ = stateStartTime_; - } else { - result.stateStartTime_ = stateStartTimeBuilder_.build(); - } - result.substate_ = substate_; - 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.dataproc.v1.JobStatus) { - return mergeFrom((com.google.cloud.dataproc.v1.JobStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.JobStatus other) { - if (other == com.google.cloud.dataproc.v1.JobStatus.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getDetails().isEmpty()) { - details_ = other.details_; - onChanged(); - } - if (other.hasStateStartTime()) { - mergeStateStartTime(other.getStateStartTime()); - } - if (other.substate_ != 0) { - setSubstateValue(other.getSubstateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - state_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - details_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 50: - { - input.readMessage(getStateStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - substate_ = input.readEnum(); - - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.State result = - com.google.cloud.dataproc.v1.JobStatus.State.valueOf(state_); - return result == null ? com.google.cloud.dataproc.v1.JobStatus.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.JobStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A state message specifying the overall job state.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object details_ = ""; - /** - * - * - *
-     * Optional. Output only. Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The details. - */ - public java.lang.String getDetails() { - java.lang.Object ref = details_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - details_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Output only. Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for details. - */ - public com.google.protobuf.ByteString getDetailsBytes() { - java.lang.Object ref = details_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - details_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Output only. Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The details to set. - * @return This builder for chaining. - */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - details_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearDetails() { - - details_ = getDefaultInstance().getDetails(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Job state details, such as an error
-     * description if the state is <code>ERROR</code>.
-     * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for details to set. - * @return This builder for chaining. - */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - details_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp stateStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - stateStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - public boolean hasStateStartTime() { - return stateStartTimeBuilder_ != null || stateStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - public com.google.protobuf.Timestamp getStateStartTime() { - if (stateStartTimeBuilder_ == null) { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } else { - return stateStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateStartTime_ = value; - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStateStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = builderForValue.build(); - onChanged(); - } else { - stateStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStateStartTime(com.google.protobuf.Timestamp value) { - if (stateStartTimeBuilder_ == null) { - if (stateStartTime_ != null) { - stateStartTime_ = - com.google.protobuf.Timestamp.newBuilder(stateStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - stateStartTime_ = value; - } - onChanged(); - } else { - stateStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStateStartTime() { - if (stateStartTimeBuilder_ == null) { - stateStartTime_ = null; - onChanged(); - } else { - stateStartTime_ = null; - stateStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder() { - - onChanged(); - return getStateStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder() { - if (stateStartTimeBuilder_ != null) { - return stateStartTimeBuilder_.getMessageOrBuilder(); - } else { - return stateStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : stateStartTime_; - } - } - /** - * - * - *
-     * Output only. The time when this state was entered.
-     * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStateStartTimeFieldBuilder() { - if (stateStartTimeBuilder_ == null) { - stateStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStateStartTime(), getParentForChildren(), isClean()); - stateStartTime_ = null; - } - return stateStartTimeBuilder_; - } - - private int substate_ = 0; - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - @java.lang.Override - public int getSubstateValue() { - return substate_; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for substate to set. - * @return This builder for chaining. - */ - public Builder setSubstateValue(int value) { - - substate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.JobStatus.Substate result = - com.google.cloud.dataproc.v1.JobStatus.Substate.valueOf(substate_); - return result == null ? com.google.cloud.dataproc.v1.JobStatus.Substate.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The substate to set. - * @return This builder for chaining. - */ - public Builder setSubstate(com.google.cloud.dataproc.v1.JobStatus.Substate value) { - if (value == null) { - throw new NullPointerException(); - } - - substate_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Additional state information, which includes
-     * status reported by the agent.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSubstate() { - - substate_ = 0; - 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.dataproc.v1.JobStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.JobStatus) - private static final com.google.cloud.dataproc.v1.JobStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.JobStatus(); - } - - public static com.google.cloud.dataproc.v1.JobStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.JobStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java deleted file mode 100644 index 512fa440..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java +++ /dev/null @@ -1,157 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface JobStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.JobStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. A state message specifying the overall job state.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.JobStatus.State getState(); - - /** - * - * - *
-   * Optional. Output only. Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The details. - */ - java.lang.String getDetails(); - /** - * - * - *
-   * Optional. Output only. Job state details, such as an error
-   * description if the state is <code>ERROR</code>.
-   * 
- * - * - * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for details. - */ - com.google.protobuf.ByteString getDetailsBytes(); - - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateStartTime field is set. - */ - boolean hasStateStartTime(); - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateStartTime. - */ - com.google.protobuf.Timestamp getStateStartTime(); - /** - * - * - *
-   * Output only. The time when this state was entered.
-   * 
- * - * - * .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for substate. - */ - int getSubstateValue(); - /** - * - * - *
-   * Output only. Additional state information, which includes
-   * status reported by the agent.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The substate. - */ - com.google.cloud.dataproc.v1.JobStatus.Substate getSubstate(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java deleted file mode 100644 index 6ce22a02..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java +++ /dev/null @@ -1,825 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public final class JobsProto { - private JobsProto() {} - - 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_dataproc_v1_LoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_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/dataproc/v1/jobs.proto\022\030g" - + "oogle.cloud.dataproc.v1\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\301\002\n\rLoggingConfig\022W\n\021driver_log_lev" - + "els\030\002 \003(\0132<.google.cloud.dataproc.v1.Log" - + "gingConfig.DriverLogLevelsEntry\032e\n\024Drive" - + "rLogLevelsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " - + "\001(\0162-.google.cloud.dataproc.v1.LoggingCo" - + "nfig.Level:\0028\001\"p\n\005Level\022\025\n\021LEVEL_UNSPECI" - + "FIED\020\000\022\007\n\003ALL\020\001\022\t\n\005TRACE\020\002\022\t\n\005DEBUG\020\003\022\010\n" - + "\004INFO\020\004\022\010\n\004WARN\020\005\022\t\n\005ERROR\020\006\022\t\n\005FATAL\020\007\022" - + "\007\n\003OFF\020\010\"\361\002\n\tHadoopJob\022\033\n\021main_jar_file_" - + "uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001(\tH\000\022\021\n\004arg" - + "s\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001" - + "\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris" - + "\030\006 \003(\tB\003\340A\001\022L\n\nproperties\030\007 \003(\01323.google" - + ".cloud.dataproc.v1.HadoopJob.PropertiesE" - + "ntryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.goog" - + "le.cloud.dataproc.v1.LoggingConfigB\003\340A\001\032" - + "1\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001B\010\n\006driver\"\357\002\n\010SparkJob\022\033\n\021mai" - + "n_jar_file_uri\030\001 \001(\tH\000\022\024\n\nmain_class\030\002 \001" - + "(\tH\000\022\021\n\004args\030\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris" - + "\030\004 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014a" - + "rchive_uris\030\006 \003(\tB\003\340A\001\022K\n\nproperties\030\007 \003" - + "(\01322.google.cloud.dataproc.v1.SparkJob.P" - + "ropertiesEntryB\003\340A\001\022D\n\016logging_config\030\010 " - + "\001(\0132\'.google.cloud.dataproc.v1.LoggingCo" - + "nfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006driver\"\370\002\n\nPySpa" - + "rkJob\022!\n\024main_python_file_uri\030\001 \001(\tB\003\340A\002" - + "\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\035\n\020python_file_uris\030" - + "\003 \003(\tB\003\340A\001\022\032\n\rjar_file_uris\030\004 \003(\tB\003\340A\001\022\026" - + "\n\tfile_uris\030\005 \003(\tB\003\340A\001\022\031\n\014archive_uris\030\006" - + " \003(\tB\003\340A\001\022M\n\nproperties\030\007 \003(\01324.google.c" - + "loud.dataproc.v1.PySparkJob.PropertiesEn" - + "tryB\003\340A\001\022D\n\016logging_config\030\010 \001(\0132\'.googl" - + "e.cloud.dataproc.v1.LoggingConfigB\003\340A\001\0321" - + "\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"!\n\tQueryList\022\024\n\007queries\030\001 \003(\tB" - + "\003\340A\002\"\265\003\n\007HiveJob\022\030\n\016query_file_uri\030\001 \001(\t" - + "H\000\0229\n\nquery_list\030\002 \001(\0132#.google.cloud.da" - + "taproc.v1.QueryListH\000\022 \n\023continue_on_fai" - + "lure\030\003 \001(\010B\003\340A\001\022U\n\020script_variables\030\004 \003(" - + "\01326.google.cloud.dataproc.v1.HiveJob.Scr" - + "iptVariablesEntryB\003\340A\001\022J\n\nproperties\030\005 \003" - + "(\01321.google.cloud.dataproc.v1.HiveJob.Pr" - + "opertiesEntryB\003\340A\001\022\032\n\rjar_file_uris\030\006 \003(" - + "\tB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007que" - + "ries\"\345\003\n\013SparkSqlJob\022\030\n\016query_file_uri\030\001" - + " \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.clou" - + "d.dataproc.v1.QueryListH\000\022Y\n\020script_vari" - + "ables\030\003 \003(\0132:.google.cloud.dataproc.v1.S" - + "parkSqlJob.ScriptVariablesEntryB\003\340A\001\022N\n\n" - + "properties\030\004 \003(\01325.google.cloud.dataproc" - + ".v1.SparkSqlJob.PropertiesEntryB\003\340A\001\022\032\n\r" - + "jar_file_uris\0308 \003(\tB\003\340A\001\022D\n\016logging_conf" - + "ig\030\006 \001(\0132\'.google.cloud.dataproc.v1.Logg" - + "ingConfigB\003\340A\001\0326\n\024ScriptVariablesEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017Proper" - + "tiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001B\t\n\007queries\"\370\003\n\006PigJob\022\030\n\016query_file_ur" - + "i\030\001 \001(\tH\000\0229\n\nquery_list\030\002 \001(\0132#.google.c" - + "loud.dataproc.v1.QueryListH\000\022 \n\023continue" - + "_on_failure\030\003 \001(\010B\003\340A\001\022T\n\020script_variabl" - + "es\030\004 \003(\01325.google.cloud.dataproc.v1.PigJ" - + "ob.ScriptVariablesEntryB\003\340A\001\022I\n\nproperti" - + "es\030\005 \003(\01320.google.cloud.dataproc.v1.PigJ" - + "ob.PropertiesEntryB\003\340A\001\022\032\n\rjar_file_uris" - + "\030\006 \003(\tB\003\340A\001\022D\n\016logging_config\030\007 \001(\0132\'.go" - + "ogle.cloud.dataproc.v1.LoggingConfigB\003\340A" - + "\001\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"" - + "\266\002\n\tSparkRJob\022\034\n\017main_r_file_uri\030\001 \001(\tB\003" - + "\340A\002\022\021\n\004args\030\002 \003(\tB\003\340A\001\022\026\n\tfile_uris\030\003 \003(" - + "\tB\003\340A\001\022\031\n\014archive_uris\030\004 \003(\tB\003\340A\001\022L\n\npro" - + "perties\030\005 \003(\01323.google.cloud.dataproc.v1" - + ".SparkRJob.PropertiesEntryB\003\340A\001\022D\n\016loggi" - + "ng_config\030\006 \001(\0132\'.google.cloud.dataproc." - + "v1.LoggingConfigB\003\340A\001\0321\n\017PropertiesEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\212\003\n\tPre" - + "stoJob\022\030\n\016query_file_uri\030\001 \001(\tH\000\0229\n\nquer" - + "y_list\030\002 \001(\0132#.google.cloud.dataproc.v1." - + "QueryListH\000\022 \n\023continue_on_failure\030\003 \001(\010" - + "B\003\340A\001\022\032\n\routput_format\030\004 \001(\tB\003\340A\001\022\030\n\013cli" - + "ent_tags\030\005 \003(\tB\003\340A\001\022L\n\nproperties\030\006 \003(\0132" - + "3.google.cloud.dataproc.v1.PrestoJob.Pro" - + "pertiesEntryB\003\340A\001\022D\n\016logging_config\030\007 \001(" - + "\0132\'.google.cloud.dataproc.v1.LoggingConf" - + "igB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\"\322\001\n\014JobPla" - + "cement\022\031\n\014cluster_name\030\001 \001(\tB\003\340A\002\022\031\n\014clu" - + "ster_uuid\030\002 \001(\tB\003\340A\003\022V\n\016cluster_labels\030\003" - + " \003(\01329.google.cloud.dataproc.v1.JobPlace" - + "ment.ClusterLabelsEntryB\003\340A\001\0324\n\022ClusterL" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\331\003\n\tJobStatus\022=\n\005state\030\001 \001(\0162).google" - + ".cloud.dataproc.v1.JobStatus.StateB\003\340A\003\022" - + "\027\n\007details\030\002 \001(\tB\006\340A\003\340A\001\0229\n\020state_start_" - + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022C\n\010substate\030\007 \001(\0162,.google.cloud.dat" - + "aproc.v1.JobStatus.SubstateB\003\340A\003\"\251\001\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\016" - + "\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCEL_PE" - + "NDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCELLED" - + "\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_FAILU" - + "RE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tSUB" - + "MITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS\020\003\"<" - + "\n\014JobReference\022\027\n\nproject_id\030\001 \001(\tB\003\340A\001\022" - + "\023\n\006job_id\030\002 \001(\tB\003\340A\001\"\245\002\n\017YarnApplication" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022C\n\005state\030\002 \001(\0162/.goo" - + "gle.cloud.dataproc.v1.YarnApplication.St" - + "ateB\003\340A\002\022\025\n\010progress\030\003 \001(\002B\003\340A\002\022\031\n\014track" - + "ing_url\030\004 \001(\tB\003\340A\001\"\207\001\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\t" - + "SUBMITTED\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014" - + "\n\010FINISHED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\377\010\n" - + "\003Job\022>\n\treference\030\001 \001(\0132&.google.cloud.d" - + "ataproc.v1.JobReferenceB\003\340A\001\022>\n\tplacemen" - + "t\030\002 \001(\0132&.google.cloud.dataproc.v1.JobPl" - + "acementB\003\340A\002\022>\n\nhadoop_job\030\003 \001(\0132#.googl" - + "e.cloud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\t" - + "spark_job\030\004 \001(\0132\".google.cloud.dataproc." - + "v1.SparkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\005 \001(\0132" - + "$.google.cloud.dataproc.v1.PySparkJobB\003\340" - + "A\001H\000\022:\n\010hive_job\030\006 \001(\0132!.google.cloud.da" - + "taproc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\007 \001(" - + "\0132 .google.cloud.dataproc.v1.PigJobB\003\340A\001" - + "H\000\022?\n\013spark_r_job\030\025 \001(\0132#.google.cloud.d" - + "ataproc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql" - + "_job\030\014 \001(\0132%.google.cloud.dataproc.v1.Sp" - + "arkSqlJobB\003\340A\001H\000\022>\n\npresto_job\030\027 \001(\0132#.g" - + "oogle.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000" - + "\0228\n\006status\030\010 \001(\0132#.google.cloud.dataproc" - + ".v1.JobStatusB\003\340A\003\022@\n\016status_history\030\r \003" - + "(\0132#.google.cloud.dataproc.v1.JobStatusB" - + "\003\340A\003\022I\n\021yarn_applications\030\t \003(\0132).google" - + ".cloud.dataproc.v1.YarnApplicationB\003\340A\003\022" - + "\'\n\032driver_output_resource_uri\030\021 \001(\tB\003\340A\003" - + "\022%\n\030driver_control_files_uri\030\017 \001(\tB\003\340A\003\022" - + ">\n\006labels\030\022 \003(\0132).google.cloud.dataproc." - + "v1.Job.LabelsEntryB\003\340A\001\022@\n\nscheduling\030\024 " - + "\001(\0132\'.google.cloud.dataproc.v1.JobSchedu" - + "lingB\003\340A\001\022\025\n\010job_uuid\030\026 \001(\tB\003\340A\003\022\021\n\004done" - + "\030\030 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\"T\n\rJobSch" - + "eduling\022\"\n\025max_failures_per_hour\030\001 \001(\005B\003" - + "\340A\001\022\037\n\022max_failures_total\030\002 \001(\005B\003\340A\001\"\212\001\n" - + "\020SubmitJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340" - + "A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022/\n\003job\030\002 \001(\0132\035.g" - + "oogle.cloud.dataproc.v1.JobB\003\340A\002\022\027\n\nrequ" - + "est_id\030\004 \001(\tB\003\340A\001\"\256\001\n\013JobMetadata\022\023\n\006job" - + "_id\030\001 \001(\tB\003\340A\003\0228\n\006status\030\002 \001(\0132#.google." - + "cloud.dataproc.v1.JobStatusB\003\340A\003\022\033\n\016oper" - + "ation_type\030\003 \001(\tB\003\340A\003\0223\n\nstart_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\"R\n\rGe" - + "tJobRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006" - + "region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(\tB\003\340A\002\"\263" - + "\002\n\017ListJobsRequest\022\027\n\nproject_id\030\001 \001(\tB\003" - + "\340A\002\022\023\n\006region\030\006 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\031\n\014clu" - + "ster_name\030\004 \001(\tB\003\340A\001\022Y\n\021job_state_matche" - + "r\030\005 \001(\01629.google.cloud.dataproc.v1.ListJ" - + "obsRequest.JobStateMatcherB\003\340A\001\022\023\n\006filte" - + "r\030\007 \001(\tB\003\340A\001\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000" - + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\274\001\n\020UpdateJ" - + "obRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\023\n\006re" - + "gion\030\002 \001(\tB\003\340A\002\022\023\n\006job_id\030\003 \001(\tB\003\340A\002\022/\n\003" - + "job\030\004 \001(\0132\035.google.cloud.dataproc.v1.Job" - + "B\003\340A\002\0224\n\013update_mask\030\005 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"b\n\020ListJobsResponse\022" - + "0\n\004jobs\030\001 \003(\0132\035.google.cloud.dataproc.v1" - + ".JobB\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "U\n\020CancelJobRequest\022\027\n\nproject_id\030\001 \001(\tB" - + "\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_id\030\002 \001(" - + "\tB\003\340A\002\"U\n\020DeleteJobRequest\022\027\n\nproject_id" - + "\030\001 \001(\tB\003\340A\002\022\023\n\006region\030\003 \001(\tB\003\340A\002\022\023\n\006job_" - + "id\030\002 \001(\tB\003\340A\0022\374\n\n\rJobController\022\261\001\n\tSubm" - + "itJob\022*.google.cloud.dataproc.v1.SubmitJ" - + "obRequest\032\035.google.cloud.dataproc.v1.Job" - + "\"Y\202\323\344\223\002;\"6/v1/projects/{project_id}/regi" - + "ons/{region}/jobs:submit:\001*\332A\025project_id" - + ",region,job\022\336\001\n\024SubmitJobAsOperation\022*.g" - + "oogle.cloud.dataproc.v1.SubmitJobRequest" - + "\032\035.google.longrunning.Operation\"{\202\323\344\223\002F\"" - + "A/v1/projects/{project_id}/regions/{regi" - + "on}/jobs:submitAsOperation:\001*\332A\027project_" - + "id, region, job\312A\022\n\003Job\022\013JobMetadata\022\255\001\n" - + "\006GetJob\022\'.google.cloud.dataproc.v1.GetJo" - + "bRequest\032\035.google.cloud.dataproc.v1.Job\"" - + "[\202\323\344\223\002:\0228/v1/projects/{project_id}/regio" - + "ns/{region}/jobs/{job_id}\332A\030project_id,r" - + "egion,job_id\022\311\001\n\010ListJobs\022).google.cloud" - + ".dataproc.v1.ListJobsRequest\032*.google.cl" - + "oud.dataproc.v1.ListJobsResponse\"f\202\323\344\223\0021" - + "\022//v1/projects/{project_id}/regions/{reg" - + "ion}/jobs\332A\021project_id,region\332A\030project_" - + "id,region,filter\022\235\001\n\tUpdateJob\022*.google." - + "cloud.dataproc.v1.UpdateJobRequest\032\035.goo" - + "gle.cloud.dataproc.v1.Job\"E\202\323\344\223\002?28/v1/p" - + "rojects/{project_id}/regions/{region}/jo" - + "bs/{job_id}:\003job\022\275\001\n\tCancelJob\022*.google." - + "cloud.dataproc.v1.CancelJobRequest\032\035.goo" - + "gle.cloud.dataproc.v1.Job\"e\202\323\344\223\002D\"?/v1/p" - + "rojects/{project_id}/regions/{region}/jo" - + "bs/{job_id}:cancel:\001*\332A\030project_id,regio" - + "n,job_id\022\254\001\n\tDeleteJob\022*.google.cloud.da" - + "taproc.v1.DeleteJobRequest\032\026.google.prot" - + "obuf.Empty\"[\202\323\344\223\002:*8/v1/projects/{projec" - + "t_id}/regions/{region}/jobs/{job_id}\332A\030p" - + "roject_id,region,job_id\032K\312A\027dataproc.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformBm\n\034com.google.cloud" - + ".dataproc.v1B\tJobsProtoP\001Z@google.golang" - + ".org/genproto/googleapis/cloud/dataproc/" - + "v1;dataprocb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor, - new java.lang.String[] { - "DriverLogLevels", - }); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_HadoopJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HadoopJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HadoopJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor, - new java.lang.String[] { - "MainJarFileUri", - "MainClass", - "Args", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - "Driver", - }); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor, - new java.lang.String[] { - "MainPythonFileUri", - "Args", - "PythonFileUris", - "JarFileUris", - "FileUris", - "ArchiveUris", - "Properties", - "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_QueryList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_QueryList_descriptor, - new java.lang.String[] { - "Queries", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_HiveJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_HiveJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_HiveJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PigJob_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "ScriptVariables", - "Properties", - "JarFileUris", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PigJob_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor, - new java.lang.String[] { - "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig", - }); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor, - new java.lang.String[] { - "QueryFileUri", - "QueryList", - "ContinueOnFailure", - "OutputFormat", - "ClientTags", - "Properties", - "LoggingConfig", - "Queries", - }); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_JobPlacement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor, - new java.lang.String[] { - "ClusterName", "ClusterUuid", "ClusterLabels", - }); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_JobPlacement_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobPlacement_ClusterLabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_dataproc_v1_JobStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobStatus_descriptor, - new java.lang.String[] { - "State", "Details", "StateStartTime", "Substate", - }); - internal_static_google_cloud_dataproc_v1_JobReference_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_dataproc_v1_JobReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobReference_descriptor, - new java.lang.String[] { - "ProjectId", "JobId", - }); - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor, - new java.lang.String[] { - "Name", "State", "Progress", "TrackingUrl", - }); - internal_static_google_cloud_dataproc_v1_Job_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_dataproc_v1_Job_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_descriptor, - new java.lang.String[] { - "Reference", - "Placement", - "HadoopJob", - "SparkJob", - "PysparkJob", - "HiveJob", - "PigJob", - "SparkRJob", - "SparkSqlJob", - "PrestoJob", - "Status", - "StatusHistory", - "YarnApplications", - "DriverOutputResourceUri", - "DriverControlFilesUri", - "Labels", - "Scheduling", - "JobUuid", - "Done", - "TypeJob", - }); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_Job_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_Job_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_dataproc_v1_JobScheduling_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobScheduling_descriptor, - new java.lang.String[] { - "MaxFailuresPerHour", "MaxFailuresTotal", - }); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "Job", "RequestId", - }); - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_dataproc_v1_JobMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_JobMetadata_descriptor, - new java.lang.String[] { - "JobId", "Status", "OperationType", "StartTime", - }); - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_dataproc_v1_GetJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GetJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor, - new java.lang.String[] { - "ProjectId", - "Region", - "PageSize", - "PageToken", - "ClusterName", - "JobStateMatcher", - "Filter", - }); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", "Job", "UpdateMask", - }); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor, - new java.lang.String[] { - "Jobs", "NextPageToken", - }); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_dataproc_v1_CancelJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_CancelJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_DeleteJobRequest_descriptor, - new java.lang.String[] { - "ProjectId", "Region", "JobId", - }); - 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.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.longrunning.OperationsProto.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-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java deleted file mode 100644 index c04e38c2..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java +++ /dev/null @@ -1,3111 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies Kerberos related configuration.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} - */ -public final class KerberosConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KerberosConfig) - KerberosConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use KerberosConfig.newBuilder() to construct. - private KerberosConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private KerberosConfig() { - rootPrincipalPasswordUri_ = ""; - kmsKeyUri_ = ""; - keystoreUri_ = ""; - truststoreUri_ = ""; - keystorePasswordUri_ = ""; - keyPasswordUri_ = ""; - truststorePasswordUri_ = ""; - crossRealmTrustRealm_ = ""; - crossRealmTrustKdc_ = ""; - crossRealmTrustAdminServer_ = ""; - crossRealmTrustSharedPasswordUri_ = ""; - kdcDbKeyUri_ = ""; - realm_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new KerberosConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, - com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); - } - - public static final int ENABLE_KERBEROS_FIELD_NUMBER = 1; - private boolean enableKerberos_; - /** - * - * - *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
-   * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - @java.lang.Override - public boolean getEnableKerberos() { - return enableKerberos_; - } - - public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object rootPrincipalPasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The rootPrincipalPasswordUri. - */ - @java.lang.Override - public java.lang.String getRootPrincipalPasswordUri() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rootPrincipalPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for rootPrincipalPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootPrincipalPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KMS_KEY_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object kmsKeyUri_; - /** - * - * - *
-   * Optional. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKeyUri. - */ - @java.lang.Override - public java.lang.String getKmsKeyUri() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKeyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyUriBytes() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEYSTORE_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object keystoreUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - @java.lang.Override - public java.lang.String getKeystoreUri() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystoreUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeystoreUriBytes() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRUSTSTORE_URI_FIELD_NUMBER = 5; - private volatile java.lang.Object truststoreUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - @java.lang.Override - public java.lang.String getTruststoreUri() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststoreUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTruststoreUriBytes() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object keystorePasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - @java.lang.Override - public java.lang.String getKeystorePasswordUri() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystorePasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_PASSWORD_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object keyPasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - @java.lang.Override - public java.lang.String getKeyPasswordUri() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER = 8; - private volatile java.lang.Object truststorePasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - @java.lang.Override - public java.lang.String getTruststorePasswordUri() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststorePasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER = 9; - private volatile java.lang.Object crossRealmTrustRealm_; - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustRealm() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustRealm_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustRealm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER = 10; - private volatile java.lang.Object crossRealmTrustKdc_; - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustKdc() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustKdc_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustKdc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER = 11; - private volatile java.lang.Object crossRealmTrustAdminServer_; - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustAdminServer() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustAdminServer_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustAdminServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER = 12; - private volatile java.lang.Object crossRealmTrustSharedPasswordUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - @java.lang.Override - public java.lang.String getCrossRealmTrustSharedPasswordUri() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustSharedPasswordUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustSharedPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KDC_DB_KEY_URI_FIELD_NUMBER = 13; - private volatile java.lang.Object kdcDbKeyUri_; - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - @java.lang.Override - public java.lang.String getKdcDbKeyUri() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kdcDbKeyUri_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kdcDbKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER = 14; - private int tgtLifetimeHours_; - /** - * - * - *
-   * Optional. The lifetime of the ticket granting ticket, in hours.
-   * If not specified, or user specifies 0, then default value 10
-   * will be used.
-   * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - @java.lang.Override - public int getTgtLifetimeHours() { - return tgtLifetimeHours_; - } - - public static final int REALM_FIELD_NUMBER = 15; - private volatile java.lang.Object realm_; - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - @java.lang.Override - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realm_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableKerberos_ != false) { - output.writeBool(1, enableKerberos_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootPrincipalPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystoreUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keystoreUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststoreUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, truststoreUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystorePasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keystorePasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, keyPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststorePasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, truststorePasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustRealm_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crossRealmTrustRealm_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustKdc_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, crossRealmTrustKdc_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 12, crossRealmTrustSharedPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_); - } - if (tgtLifetimeHours_ != 0) { - output.writeInt32(14, tgtLifetimeHours_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, realm_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableKerberos_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPrincipalPasswordUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystoreUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keystoreUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststoreUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, truststoreUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keystorePasswordUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keystorePasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyPasswordUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, keyPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(truststorePasswordUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, truststorePasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustRealm_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crossRealmTrustRealm_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustKdc_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustAdminServer_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crossRealmTrustSharedPasswordUri_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 12, crossRealmTrustSharedPasswordUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kdcDbKeyUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_); - } - if (tgtLifetimeHours_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(realm_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, realm_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.KerberosConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.KerberosConfig other = - (com.google.cloud.dataproc.v1.KerberosConfig) obj; - - if (getEnableKerberos() != other.getEnableKerberos()) return false; - if (!getRootPrincipalPasswordUri().equals(other.getRootPrincipalPasswordUri())) return false; - if (!getKmsKeyUri().equals(other.getKmsKeyUri())) return false; - if (!getKeystoreUri().equals(other.getKeystoreUri())) return false; - if (!getTruststoreUri().equals(other.getTruststoreUri())) return false; - if (!getKeystorePasswordUri().equals(other.getKeystorePasswordUri())) return false; - if (!getKeyPasswordUri().equals(other.getKeyPasswordUri())) return false; - if (!getTruststorePasswordUri().equals(other.getTruststorePasswordUri())) return false; - if (!getCrossRealmTrustRealm().equals(other.getCrossRealmTrustRealm())) return false; - if (!getCrossRealmTrustKdc().equals(other.getCrossRealmTrustKdc())) return false; - if (!getCrossRealmTrustAdminServer().equals(other.getCrossRealmTrustAdminServer())) - return false; - if (!getCrossRealmTrustSharedPasswordUri().equals(other.getCrossRealmTrustSharedPasswordUri())) - return false; - if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false; - if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false; - if (!getRealm().equals(other.getRealm())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_KERBEROS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKerberos()); - hash = (37 * hash) + ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getRootPrincipalPasswordUri().hashCode(); - hash = (37 * hash) + KMS_KEY_URI_FIELD_NUMBER; - hash = (53 * hash) + getKmsKeyUri().hashCode(); - hash = (37 * hash) + KEYSTORE_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeystoreUri().hashCode(); - hash = (37 * hash) + TRUSTSTORE_URI_FIELD_NUMBER; - hash = (53 * hash) + getTruststoreUri().hashCode(); - hash = (37 * hash) + KEYSTORE_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeystorePasswordUri().hashCode(); - hash = (37 * hash) + KEY_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getKeyPasswordUri().hashCode(); - hash = (37 * hash) + TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getTruststorePasswordUri().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_REALM_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustRealm().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_KDC_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustKdc().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustAdminServer().hashCode(); - hash = (37 * hash) + CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER; - hash = (53 * hash) + getCrossRealmTrustSharedPasswordUri().hashCode(); - hash = (37 * hash) + KDC_DB_KEY_URI_FIELD_NUMBER; - hash = (53 * hash) + getKdcDbKeyUri().hashCode(); - hash = (37 * hash) + TGT_LIFETIME_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getTgtLifetimeHours(); - hash = (37 * hash) + REALM_FIELD_NUMBER; - hash = (53 * hash) + getRealm().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig 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.dataproc.v1.KerberosConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig 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.dataproc.v1.KerberosConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig 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.dataproc.v1.KerberosConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies Kerberos related configuration.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KerberosConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KerberosConfig) - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KerberosConfig.class, - com.google.cloud.dataproc.v1.KerberosConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.KerberosConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - enableKerberos_ = false; - - rootPrincipalPasswordUri_ = ""; - - kmsKeyUri_ = ""; - - keystoreUri_ = ""; - - truststoreUri_ = ""; - - keystorePasswordUri_ = ""; - - keyPasswordUri_ = ""; - - truststorePasswordUri_ = ""; - - crossRealmTrustRealm_ = ""; - - crossRealmTrustKdc_ = ""; - - crossRealmTrustAdminServer_ = ""; - - crossRealmTrustSharedPasswordUri_ = ""; - - kdcDbKeyUri_ = ""; - - tgtLifetimeHours_ = 0; - - realm_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_KerberosConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfig build() { - com.google.cloud.dataproc.v1.KerberosConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfig buildPartial() { - com.google.cloud.dataproc.v1.KerberosConfig result = - new com.google.cloud.dataproc.v1.KerberosConfig(this); - result.enableKerberos_ = enableKerberos_; - result.rootPrincipalPasswordUri_ = rootPrincipalPasswordUri_; - result.kmsKeyUri_ = kmsKeyUri_; - result.keystoreUri_ = keystoreUri_; - result.truststoreUri_ = truststoreUri_; - result.keystorePasswordUri_ = keystorePasswordUri_; - result.keyPasswordUri_ = keyPasswordUri_; - result.truststorePasswordUri_ = truststorePasswordUri_; - result.crossRealmTrustRealm_ = crossRealmTrustRealm_; - result.crossRealmTrustKdc_ = crossRealmTrustKdc_; - result.crossRealmTrustAdminServer_ = crossRealmTrustAdminServer_; - result.crossRealmTrustSharedPasswordUri_ = crossRealmTrustSharedPasswordUri_; - result.kdcDbKeyUri_ = kdcDbKeyUri_; - result.tgtLifetimeHours_ = tgtLifetimeHours_; - result.realm_ = realm_; - 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.dataproc.v1.KerberosConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KerberosConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.KerberosConfig other) { - if (other == com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance()) return this; - if (other.getEnableKerberos() != false) { - setEnableKerberos(other.getEnableKerberos()); - } - if (!other.getRootPrincipalPasswordUri().isEmpty()) { - rootPrincipalPasswordUri_ = other.rootPrincipalPasswordUri_; - onChanged(); - } - if (!other.getKmsKeyUri().isEmpty()) { - kmsKeyUri_ = other.kmsKeyUri_; - onChanged(); - } - if (!other.getKeystoreUri().isEmpty()) { - keystoreUri_ = other.keystoreUri_; - onChanged(); - } - if (!other.getTruststoreUri().isEmpty()) { - truststoreUri_ = other.truststoreUri_; - onChanged(); - } - if (!other.getKeystorePasswordUri().isEmpty()) { - keystorePasswordUri_ = other.keystorePasswordUri_; - onChanged(); - } - if (!other.getKeyPasswordUri().isEmpty()) { - keyPasswordUri_ = other.keyPasswordUri_; - onChanged(); - } - if (!other.getTruststorePasswordUri().isEmpty()) { - truststorePasswordUri_ = other.truststorePasswordUri_; - onChanged(); - } - if (!other.getCrossRealmTrustRealm().isEmpty()) { - crossRealmTrustRealm_ = other.crossRealmTrustRealm_; - onChanged(); - } - if (!other.getCrossRealmTrustKdc().isEmpty()) { - crossRealmTrustKdc_ = other.crossRealmTrustKdc_; - onChanged(); - } - if (!other.getCrossRealmTrustAdminServer().isEmpty()) { - crossRealmTrustAdminServer_ = other.crossRealmTrustAdminServer_; - onChanged(); - } - if (!other.getCrossRealmTrustSharedPasswordUri().isEmpty()) { - crossRealmTrustSharedPasswordUri_ = other.crossRealmTrustSharedPasswordUri_; - onChanged(); - } - if (!other.getKdcDbKeyUri().isEmpty()) { - kdcDbKeyUri_ = other.kdcDbKeyUri_; - onChanged(); - } - if (other.getTgtLifetimeHours() != 0) { - setTgtLifetimeHours(other.getTgtLifetimeHours()); - } - if (!other.getRealm().isEmpty()) { - realm_ = other.realm_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableKerberos_ = input.readBool(); - - break; - } // case 8 - case 18: - { - rootPrincipalPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - kmsKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - keystoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - truststoreUri_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - keystorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - keyPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - truststorePasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - crossRealmTrustRealm_ = input.readStringRequireUtf8(); - - break; - } // case 74 - case 82: - { - crossRealmTrustKdc_ = input.readStringRequireUtf8(); - - break; - } // case 82 - case 90: - { - crossRealmTrustAdminServer_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - crossRealmTrustSharedPasswordUri_ = input.readStringRequireUtf8(); - - break; - } // case 98 - case 106: - { - kdcDbKeyUri_ = input.readStringRequireUtf8(); - - break; - } // case 106 - case 112: - { - tgtLifetimeHours_ = input.readInt32(); - - break; - } // case 112 - case 122: - { - realm_ = input.readStringRequireUtf8(); - - break; - } // case 122 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean enableKerberos_; - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - @java.lang.Override - public boolean getEnableKerberos() { - return enableKerberos_; - } - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableKerberos to set. - * @return This builder for chaining. - */ - public Builder setEnableKerberos(boolean value) { - - enableKerberos_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-     * this field to true to enable Kerberos on a cluster.
-     * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableKerberos() { - - enableKerberos_ = false; - onChanged(); - return this; - } - - private java.lang.Object rootPrincipalPasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rootPrincipalPasswordUri. - */ - public java.lang.String getRootPrincipalPasswordUri() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rootPrincipalPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for rootPrincipalPasswordUri. - */ - public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() { - java.lang.Object ref = rootPrincipalPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rootPrincipalPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The rootPrincipalPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setRootPrincipalPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rootPrincipalPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearRootPrincipalPasswordUri() { - - rootPrincipalPasswordUri_ = getDefaultInstance().getRootPrincipalPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-     * principal password.
-     * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for rootPrincipalPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rootPrincipalPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object kmsKeyUri_ = ""; - /** - * - * - *
-     * Optional. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKeyUri. - */ - public java.lang.String getKmsKeyUri() { - java.lang.Object ref = kmsKeyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKeyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKeyUri. - */ - public com.google.protobuf.ByteString getKmsKeyUriBytes() { - java.lang.Object ref = kmsKeyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The kmsKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKmsKeyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kmsKeyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKmsKeyUri() { - - kmsKeyUri_ = getDefaultInstance().getKmsKeyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The uri of the KMS key used to encrypt various sensitive
-     * files.
-     * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for kmsKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kmsKeyUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keystoreUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - public java.lang.String getKeystoreUri() { - java.lang.Object ref = keystoreUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystoreUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - public com.google.protobuf.ByteString getKeystoreUriBytes() { - java.lang.Object ref = keystoreUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keystoreUri to set. - * @return This builder for chaining. - */ - public Builder setKeystoreUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keystoreUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeystoreUri() { - - keystoreUri_ = getDefaultInstance().getKeystoreUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the keystore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keystoreUri to set. - * @return This builder for chaining. - */ - public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keystoreUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object truststoreUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - public java.lang.String getTruststoreUri() { - java.lang.Object ref = truststoreUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststoreUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - public com.google.protobuf.ByteString getTruststoreUriBytes() { - java.lang.Object ref = truststoreUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststoreUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The truststoreUri to set. - * @return This builder for chaining. - */ - public Builder setTruststoreUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - truststoreUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTruststoreUri() { - - truststoreUri_ = getDefaultInstance().getTruststoreUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of the truststore file used for SSL
-     * encryption. If not provided, Dataproc will provide a self-signed
-     * certificate.
-     * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for truststoreUri to set. - * @return This builder for chaining. - */ - public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - truststoreUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keystorePasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - public java.lang.String getKeystorePasswordUri() { - java.lang.Object ref = keystorePasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keystorePasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - public com.google.protobuf.ByteString getKeystorePasswordUriBytes() { - java.lang.Object ref = keystorePasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keystorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keystorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeystorePasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keystorePasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeystorePasswordUri() { - - keystorePasswordUri_ = getDefaultInstance().getKeystorePasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided keystore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keystorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keystorePasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object keyPasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - public java.lang.String getKeyPasswordUri() { - java.lang.Object ref = keyPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - public com.google.protobuf.ByteString getKeyPasswordUriBytes() { - java.lang.Object ref = keyPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The keyPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeyPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKeyPasswordUri() { - - keyPasswordUri_ = getDefaultInstance().getKeyPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided key. For the self-signed certificate, this
-     * password is generated by Dataproc.
-     * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for keyPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object truststorePasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - public java.lang.String getTruststorePasswordUri() { - java.lang.Object ref = truststorePasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - truststorePasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - public com.google.protobuf.ByteString getTruststorePasswordUriBytes() { - java.lang.Object ref = truststorePasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - truststorePasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The truststorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setTruststorePasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - truststorePasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTruststorePasswordUri() { - - truststorePasswordUri_ = getDefaultInstance().getTruststorePasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * password to the user provided truststore. For the self-signed certificate,
-     * this password is generated by Dataproc.
-     * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for truststorePasswordUri to set. - * @return This builder for chaining. - */ - public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - truststorePasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustRealm_ = ""; - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - public java.lang.String getCrossRealmTrustRealm() { - java.lang.Object ref = crossRealmTrustRealm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustRealm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() { - java.lang.Object ref = crossRealmTrustRealm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustRealm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The crossRealmTrustRealm to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustRealm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustRealm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustRealm() { - - crossRealmTrustRealm_ = getDefaultInstance().getCrossRealmTrustRealm(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-     * the user enable cross realm trust.
-     * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for crossRealmTrustRealm to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustRealm_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustKdc_ = ""; - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - public java.lang.String getCrossRealmTrustKdc() { - java.lang.Object ref = crossRealmTrustKdc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustKdc_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() { - java.lang.Object ref = crossRealmTrustKdc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustKdc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The crossRealmTrustKdc to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustKdc(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustKdc_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustKdc() { - - crossRealmTrustKdc_ = getDefaultInstance().getCrossRealmTrustKdc(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-     * realm trust relationship.
-     * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for crossRealmTrustKdc to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustKdc_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustAdminServer_ = ""; - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - public java.lang.String getCrossRealmTrustAdminServer() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustAdminServer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() { - java.lang.Object ref = crossRealmTrustAdminServer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustAdminServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The crossRealmTrustAdminServer to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustAdminServer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustAdminServer_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustAdminServer() { - - crossRealmTrustAdminServer_ = getDefaultInstance().getCrossRealmTrustAdminServer(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The admin server (IP or hostname) for the remote trusted realm in
-     * a cross realm trust relationship.
-     * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for crossRealmTrustAdminServer to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustAdminServer_ = value; - onChanged(); - return this; - } - - private java.lang.Object crossRealmTrustSharedPasswordUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - public java.lang.String getCrossRealmTrustSharedPasswordUri() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crossRealmTrustSharedPasswordUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() { - java.lang.Object ref = crossRealmTrustSharedPasswordUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crossRealmTrustSharedPasswordUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The crossRealmTrustSharedPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustSharedPasswordUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crossRealmTrustSharedPasswordUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearCrossRealmTrustSharedPasswordUri() { - - crossRealmTrustSharedPasswordUri_ = - getDefaultInstance().getCrossRealmTrustSharedPasswordUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * shared password between the on-cluster Kerberos realm and the remote
-     * trusted realm, in a cross realm trust relationship.
-     * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes for crossRealmTrustSharedPasswordUri to set. - * @return This builder for chaining. - */ - public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crossRealmTrustSharedPasswordUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object kdcDbKeyUri_ = ""; - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - public java.lang.String getKdcDbKeyUri() { - java.lang.Object ref = kdcDbKeyUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kdcDbKeyUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - public com.google.protobuf.ByteString getKdcDbKeyUriBytes() { - java.lang.Object ref = kdcDbKeyUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kdcDbKeyUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The kdcDbKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKdcDbKeyUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kdcDbKeyUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKdcDbKeyUri() { - - kdcDbKeyUri_ = getDefaultInstance().getKdcDbKeyUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-     * master key of the KDC database.
-     * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for kdcDbKeyUri to set. - * @return This builder for chaining. - */ - public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kdcDbKeyUri_ = value; - onChanged(); - return this; - } - - private int tgtLifetimeHours_; - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - @java.lang.Override - public int getTgtLifetimeHours() { - return tgtLifetimeHours_; - } - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tgtLifetimeHours to set. - * @return This builder for chaining. - */ - public Builder setTgtLifetimeHours(int value) { - - tgtLifetimeHours_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The lifetime of the ticket granting ticket, in hours.
-     * If not specified, or user specifies 0, then default value 10
-     * will be used.
-     * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTgtLifetimeHours() { - - tgtLifetimeHours_ = 0; - onChanged(); - return this; - } - - private java.lang.Object realm_ = ""; - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - public java.lang.String getRealm() { - java.lang.Object ref = realm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - realm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - public com.google.protobuf.ByteString getRealmBytes() { - java.lang.Object ref = realm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - realm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The realm to set. - * @return This builder for chaining. - */ - public Builder setRealm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - realm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRealm() { - - realm_ = getDefaultInstance().getRealm(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The name of the on-cluster Kerberos realm.
-     * If not specified, the uppercased domain of hostnames will be the realm.
-     * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for realm to set. - * @return This builder for chaining. - */ - public Builder setRealmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - realm_ = 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.dataproc.v1.KerberosConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KerberosConfig) - private static final com.google.cloud.dataproc.v1.KerberosConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KerberosConfig(); - } - - public static com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KerberosConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java deleted file mode 100644 index 0f7dc472..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java +++ /dev/null @@ -1,423 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface KerberosConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KerberosConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set
-   * this field to true to enable Kerberos on a cluster.
-   * 
- * - * bool enable_kerberos = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableKerberos. - */ - boolean getEnableKerberos(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The rootPrincipalPasswordUri. - */ - java.lang.String getRootPrincipalPasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the root
-   * principal password.
-   * 
- * - * string root_principal_password_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for rootPrincipalPasswordUri. - */ - com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes(); - - /** - * - * - *
-   * Optional. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kmsKeyUri. - */ - java.lang.String getKmsKeyUri(); - /** - * - * - *
-   * Optional. The uri of the KMS key used to encrypt various sensitive
-   * files.
-   * 
- * - * string kms_key_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kmsKeyUri. - */ - com.google.protobuf.ByteString getKmsKeyUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystoreUri. - */ - java.lang.String getKeystoreUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of the keystore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string keystore_uri = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystoreUri. - */ - com.google.protobuf.ByteString getKeystoreUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststoreUri. - */ - java.lang.String getTruststoreUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of the truststore file used for SSL
-   * encryption. If not provided, Dataproc will provide a self-signed
-   * certificate.
-   * 
- * - * string truststore_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststoreUri. - */ - com.google.protobuf.ByteString getTruststoreUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keystorePasswordUri. - */ - java.lang.String getKeystorePasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided keystore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string keystore_password_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keystorePasswordUri. - */ - com.google.protobuf.ByteString getKeystorePasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The keyPasswordUri. - */ - java.lang.String getKeyPasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided key. For the self-signed certificate, this
-   * password is generated by Dataproc.
-   * 
- * - * string key_password_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for keyPasswordUri. - */ - com.google.protobuf.ByteString getKeyPasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The truststorePasswordUri. - */ - java.lang.String getTruststorePasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * password to the user provided truststore. For the self-signed certificate,
-   * this password is generated by Dataproc.
-   * 
- * - * string truststore_password_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for truststorePasswordUri. - */ - com.google.protobuf.ByteString getTruststorePasswordUriBytes(); - - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustRealm. - */ - java.lang.String getCrossRealmTrustRealm(); - /** - * - * - *
-   * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
-   * the user enable cross realm trust.
-   * 
- * - * string cross_realm_trust_realm = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustRealm. - */ - com.google.protobuf.ByteString getCrossRealmTrustRealmBytes(); - - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The crossRealmTrustKdc. - */ - java.lang.String getCrossRealmTrustKdc(); - /** - * - * - *
-   * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
-   * realm trust relationship.
-   * 
- * - * string cross_realm_trust_kdc = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for crossRealmTrustKdc. - */ - com.google.protobuf.ByteString getCrossRealmTrustKdcBytes(); - - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustAdminServer. - */ - java.lang.String getCrossRealmTrustAdminServer(); - /** - * - * - *
-   * Optional. The admin server (IP or hostname) for the remote trusted realm in
-   * a cross realm trust relationship.
-   * 
- * - * string cross_realm_trust_admin_server = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustAdminServer. - */ - com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The crossRealmTrustSharedPasswordUri. - */ - java.lang.String getCrossRealmTrustSharedPasswordUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * shared password between the on-cluster Kerberos realm and the remote
-   * trusted realm, in a cross realm trust relationship.
-   * 
- * - * - * string cross_realm_trust_shared_password_uri = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bytes for crossRealmTrustSharedPasswordUri. - */ - com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes(); - - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kdcDbKeyUri. - */ - java.lang.String getKdcDbKeyUri(); - /** - * - * - *
-   * Optional. The Cloud Storage URI of a KMS encrypted file containing the
-   * master key of the KDC database.
-   * 
- * - * string kdc_db_key_uri = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kdcDbKeyUri. - */ - com.google.protobuf.ByteString getKdcDbKeyUriBytes(); - - /** - * - * - *
-   * Optional. The lifetime of the ticket granting ticket, in hours.
-   * If not specified, or user specifies 0, then default value 10
-   * will be used.
-   * 
- * - * int32 tgt_lifetime_hours = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tgtLifetimeHours. - */ - int getTgtLifetimeHours(); - - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The realm. - */ - java.lang.String getRealm(); - /** - * - * - *
-   * Optional. The name of the on-cluster Kerberos realm.
-   * If not specified, the uppercased domain of hostnames will be the realm.
-   * 
- * - * string realm = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for realm. - */ - com.google.protobuf.ByteString getRealmBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java deleted file mode 100644 index 338a6a85..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfig.java +++ /dev/null @@ -1,1335 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The configuration for running the Dataproc cluster on Kubernetes.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} - */ -public final class KubernetesClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) - KubernetesClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use KubernetesClusterConfig.newBuilder() to construct. - private KubernetesClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private KubernetesClusterConfig() { - kubernetesNamespace_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new KubernetesClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); - } - - private int configCase_ = 0; - private java.lang.Object config_; - - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GKE_CLUSTER_CONFIG(2), - CONFIG_NOT_SET(0); - private final int value; - - private ConfigCase(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 ConfigCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigCase forNumber(int value) { - switch (value) { - case 2: - return GKE_CLUSTER_CONFIG; - case 0: - return CONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); - } - - public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER = 1; - private volatile java.lang.Object kubernetesNamespace_; - /** - * - * - *
-   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-   * does not exist, it is created. If it exists, Dataproc
-   * verifies that another Dataproc VirtualCluster is not installed
-   * into it. If not specified, the name of the Dataproc Cluster is used.
-   * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kubernetesNamespace. - */ - @java.lang.Override - public java.lang.String getKubernetesNamespace() { - java.lang.Object ref = kubernetesNamespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesNamespace_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-   * does not exist, it is created. If it exists, Dataproc
-   * verifies that another Dataproc VirtualCluster is not installed
-   * into it. If not specified, the name of the Dataproc Cluster is used.
-   * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kubernetesNamespace. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { - java.lang.Object ref = kubernetesNamespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kubernetesNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GKE_CLUSTER_CONFIG_FIELD_NUMBER = 2; - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGkeClusterConfig() { - return configCase_ == 2; - } - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gkeClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { - if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; - } - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { - if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; - } - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - - public static final int KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kubernetesSoftwareConfig field is set. - */ - @java.lang.Override - public boolean hasKubernetesSoftwareConfig() { - return kubernetesSoftwareConfig_ != null; - } - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kubernetesSoftwareConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; - } - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder() { - return getKubernetesSoftwareConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(kubernetesNamespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesNamespace_); - } - if (configCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); - } - if (kubernetesSoftwareConfig_ != null) { - output.writeMessage(3, getKubernetesSoftwareConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesNamespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesNamespace_); - } - if (configCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.GkeClusterConfig) config_); - } - if (kubernetesSoftwareConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getKubernetesSoftwareConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.KubernetesClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.KubernetesClusterConfig other = - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) obj; - - if (!getKubernetesNamespace().equals(other.getKubernetesNamespace())) return false; - if (hasKubernetesSoftwareConfig() != other.hasKubernetesSoftwareConfig()) return false; - if (hasKubernetesSoftwareConfig()) { - if (!getKubernetesSoftwareConfig().equals(other.getKubernetesSoftwareConfig())) return false; - } - if (!getConfigCase().equals(other.getConfigCase())) return false; - switch (configCase_) { - case 2: - if (!getGkeClusterConfig().equals(other.getGkeClusterConfig())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KUBERNETES_NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesNamespace().hashCode(); - if (hasKubernetesSoftwareConfig()) { - hash = (37 * hash) + KUBERNETES_SOFTWARE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesSoftwareConfig().hashCode(); - } - switch (configCase_) { - case 2: - hash = (37 * hash) + GKE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGkeClusterConfig().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig 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.dataproc.v1.KubernetesClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 running the Dataproc cluster on Kubernetes.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KubernetesClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesClusterConfig) - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.class, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - kubernetesNamespace_ = ""; - - if (gkeClusterConfigBuilder_ != null) { - gkeClusterConfigBuilder_.clear(); - } - if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfig_ = null; - } else { - kubernetesSoftwareConfig_ = null; - kubernetesSoftwareConfigBuilder_ = null; - } - configCase_ = 0; - config_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig build() { - com.google.cloud.dataproc.v1.KubernetesClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesClusterConfig result = - new com.google.cloud.dataproc.v1.KubernetesClusterConfig(this); - result.kubernetesNamespace_ = kubernetesNamespace_; - if (configCase_ == 2) { - if (gkeClusterConfigBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = gkeClusterConfigBuilder_.build(); - } - } - if (kubernetesSoftwareConfigBuilder_ == null) { - result.kubernetesSoftwareConfig_ = kubernetesSoftwareConfig_; - } else { - result.kubernetesSoftwareConfig_ = kubernetesSoftwareConfigBuilder_.build(); - } - result.configCase_ = configCase_; - 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.dataproc.v1.KubernetesClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) - return this; - if (!other.getKubernetesNamespace().isEmpty()) { - kubernetesNamespace_ = other.kubernetesNamespace_; - onChanged(); - } - if (other.hasKubernetesSoftwareConfig()) { - mergeKubernetesSoftwareConfig(other.getKubernetesSoftwareConfig()); - } - switch (other.getConfigCase()) { - case GKE_CLUSTER_CONFIG: - { - mergeGkeClusterConfig(other.getGkeClusterConfig()); - break; - } - case CONFIG_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - kubernetesNamespace_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getGkeClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getKubernetesSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int configCase_ = 0; - private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); - } - - public Builder clearConfig() { - configCase_ = 0; - config_ = null; - onChanged(); - return this; - } - - private java.lang.Object kubernetesNamespace_ = ""; - /** - * - * - *
-     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-     * does not exist, it is created. If it exists, Dataproc
-     * verifies that another Dataproc VirtualCluster is not installed
-     * into it. If not specified, the name of the Dataproc Cluster is used.
-     * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kubernetesNamespace. - */ - public java.lang.String getKubernetesNamespace() { - java.lang.Object ref = kubernetesNamespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesNamespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-     * does not exist, it is created. If it exists, Dataproc
-     * verifies that another Dataproc VirtualCluster is not installed
-     * into it. If not specified, the name of the Dataproc Cluster is used.
-     * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kubernetesNamespace. - */ - public com.google.protobuf.ByteString getKubernetesNamespaceBytes() { - java.lang.Object ref = kubernetesNamespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kubernetesNamespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-     * does not exist, it is created. If it exists, Dataproc
-     * verifies that another Dataproc VirtualCluster is not installed
-     * into it. If not specified, the name of the Dataproc Cluster is used.
-     * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The kubernetesNamespace to set. - * @return This builder for chaining. - */ - public Builder setKubernetesNamespace(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kubernetesNamespace_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-     * does not exist, it is created. If it exists, Dataproc
-     * verifies that another Dataproc VirtualCluster is not installed
-     * into it. If not specified, the name of the Dataproc Cluster is used.
-     * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKubernetesNamespace() { - - kubernetesNamespace_ = getDefaultInstance().getKubernetesNamespace(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-     * does not exist, it is created. If it exists, Dataproc
-     * verifies that another Dataproc VirtualCluster is not installed
-     * into it. If not specified, the name of the Dataproc Cluster is used.
-     * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for kubernetesNamespace to set. - * @return This builder for chaining. - */ - public Builder setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kubernetesNamespace_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> - gkeClusterConfigBuilder_; - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - @java.lang.Override - public boolean hasGkeClusterConfig() { - return configCase_ == 2; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gkeClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; - } - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } else { - if (configCase_ == 2) { - return gkeClusterConfigBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(value); - } - configCase_ = 2; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setGkeClusterConfig( - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder builderForValue) { - if (gkeClusterConfigBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - gkeClusterConfigBuilder_.setMessage(builderForValue.build()); - } - configCase_ = 2; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeGkeClusterConfig(com.google.cloud.dataproc.v1.GkeClusterConfig value) { - if (gkeClusterConfigBuilder_ == null) { - if (configCase_ == 2 - && config_ != com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance()) { - config_ = - com.google.cloud.dataproc.v1.GkeClusterConfig.newBuilder( - (com.google.cloud.dataproc.v1.GkeClusterConfig) config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - if (configCase_ == 2) { - gkeClusterConfigBuilder_.mergeFrom(value); - } else { - gkeClusterConfigBuilder_.setMessage(value); - } - } - configCase_ = 2; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearGkeClusterConfig() { - if (gkeClusterConfigBuilder_ == null) { - if (configCase_ == 2) { - configCase_ = 0; - config_ = null; - onChanged(); - } - } else { - if (configCase_ == 2) { - configCase_ = 0; - config_ = null; - } - gkeClusterConfigBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.GkeClusterConfig.Builder getGkeClusterConfigBuilder() { - return getGkeClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder() { - if ((configCase_ == 2) && (gkeClusterConfigBuilder_ != null)) { - return gkeClusterConfigBuilder_.getMessageOrBuilder(); - } else { - if (configCase_ == 2) { - return (com.google.cloud.dataproc.v1.GkeClusterConfig) config_; - } - return com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on GKE.
-     * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder> - getGkeClusterConfigFieldBuilder() { - if (gkeClusterConfigBuilder_ == null) { - if (!(configCase_ == 2)) { - config_ = com.google.cloud.dataproc.v1.GkeClusterConfig.getDefaultInstance(); - } - gkeClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.GkeClusterConfig, - com.google.cloud.dataproc.v1.GkeClusterConfig.Builder, - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder>( - (com.google.cloud.dataproc.v1.GkeClusterConfig) config_, - getParentForChildren(), - isClean()); - config_ = null; - } - configCase_ = 2; - onChanged(); - ; - return gkeClusterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetesSoftwareConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> - kubernetesSoftwareConfigBuilder_; - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kubernetesSoftwareConfig field is set. - */ - public boolean hasKubernetesSoftwareConfig() { - return kubernetesSoftwareConfigBuilder_ != null || kubernetesSoftwareConfig_ != null; - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kubernetesSoftwareConfig. - */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig() { - if (kubernetesSoftwareConfigBuilder_ == null) { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; - } else { - return kubernetesSoftwareConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setKubernetesSoftwareConfig( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { - if (kubernetesSoftwareConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubernetesSoftwareConfig_ = value; - onChanged(); - } else { - kubernetesSoftwareConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setKubernetesSoftwareConfig( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder builderForValue) { - if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfig_ = builderForValue.build(); - onChanged(); - } else { - kubernetesSoftwareConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeKubernetesSoftwareConfig( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig value) { - if (kubernetesSoftwareConfigBuilder_ == null) { - if (kubernetesSoftwareConfig_ != null) { - kubernetesSoftwareConfig_ = - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder( - kubernetesSoftwareConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - kubernetesSoftwareConfig_ = value; - } - onChanged(); - } else { - kubernetesSoftwareConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearKubernetesSoftwareConfig() { - if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfig_ = null; - onChanged(); - } else { - kubernetesSoftwareConfig_ = null; - kubernetesSoftwareConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder - getKubernetesSoftwareConfigBuilder() { - - onChanged(); - return getKubernetesSoftwareConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder() { - if (kubernetesSoftwareConfigBuilder_ != null) { - return kubernetesSoftwareConfigBuilder_.getMessageOrBuilder(); - } else { - return kubernetesSoftwareConfig_ == null - ? com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance() - : kubernetesSoftwareConfig_; - } - } - /** - * - * - *
-     * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder> - getKubernetesSoftwareConfigFieldBuilder() { - if (kubernetesSoftwareConfigBuilder_ == null) { - kubernetesSoftwareConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder>( - getKubernetesSoftwareConfig(), getParentForChildren(), isClean()); - kubernetesSoftwareConfig_ = null; - } - return kubernetesSoftwareConfigBuilder_; - } - - @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.dataproc.v1.KubernetesClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesClusterConfig) - private static final com.google.cloud.dataproc.v1.KubernetesClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesClusterConfig(); - } - - public static com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java deleted file mode 100644 index ab45cd88..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesClusterConfigOrBuilder.java +++ /dev/null @@ -1,141 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface KubernetesClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-   * does not exist, it is created. If it exists, Dataproc
-   * verifies that another Dataproc VirtualCluster is not installed
-   * into it. If not specified, the name of the Dataproc Cluster is used.
-   * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The kubernetesNamespace. - */ - java.lang.String getKubernetesNamespace(); - /** - * - * - *
-   * Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace
-   * does not exist, it is created. If it exists, Dataproc
-   * verifies that another Dataproc VirtualCluster is not installed
-   * into it. If not specified, the name of the Dataproc Cluster is used.
-   * 
- * - * string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for kubernetesNamespace. - */ - com.google.protobuf.ByteString getKubernetesNamespaceBytes(); - - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the gkeClusterConfig field is set. - */ - boolean hasGkeClusterConfig(); - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The gkeClusterConfig. - */ - com.google.cloud.dataproc.v1.GkeClusterConfig getGkeClusterConfig(); - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on GKE.
-   * 
- * - * - * .google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kubernetesSoftwareConfig field is set. - */ - boolean hasKubernetesSoftwareConfig(); - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kubernetesSoftwareConfig. - */ - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getKubernetesSoftwareConfig(); - /** - * - * - *
-   * Optional. The software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder - getKubernetesSoftwareConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.KubernetesClusterConfig.ConfigCase getConfigCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java deleted file mode 100644 index 2309d02b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfig.java +++ /dev/null @@ -1,1167 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The software configuration for this Dataproc cluster running on Kubernetes.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} - */ -public final class KubernetesSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) - KubernetesSoftwareConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use KubernetesSoftwareConfig.newBuilder() to construct. - private KubernetesSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private KubernetesSoftwareConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new KubernetesSoftwareConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetComponentVersion(); - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); - } - - public static final int COMPONENT_VERSION_FIELD_NUMBER = 1; - - private static final class ComponentVersionDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField componentVersion_; - - private com.google.protobuf.MapField - internalGetComponentVersion() { - if (componentVersion_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); - } - return componentVersion_; - } - - public int getComponentVersionCount() { - return internalGetComponentVersion().getMap().size(); - } - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public boolean containsComponentVersion(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetComponentVersion().getMap().containsKey(key); - } - /** Use {@link #getComponentVersionMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getComponentVersion() { - return getComponentVersionMap(); - } - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.util.Map getComponentVersionMap() { - return internalGetComponentVersion().getMap(); - } - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.lang.String getComponentVersionOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetComponentVersion().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.lang.String getComponentVersionOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetComponentVersion().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 2; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetComponentVersion(), ComponentVersionDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetComponentVersion().getMap().entrySet()) { - com.google.protobuf.MapEntry componentVersion__ = - ComponentVersionDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, componentVersion__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.KubernetesSoftwareConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other = - (com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) obj; - - if (!internalGetComponentVersion().equals(other.internalGetComponentVersion())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetComponentVersion().getMap().isEmpty()) { - hash = (37 * hash) + COMPONENT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + internalGetComponentVersion().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig 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.dataproc.v1.KubernetesSoftwareConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 software configuration for this Dataproc cluster running on Kubernetes.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.KubernetesSoftwareConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.KubernetesSoftwareConfig) - com.google.cloud.dataproc.v1.KubernetesSoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetComponentVersion(); - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableComponentVersion(); - case 2: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.class, - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableComponentVersion().clear(); - internalGetMutableProperties().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig build() { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.KubernetesSoftwareConfig result = - new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(this); - int from_bitField0_ = bitField0_; - result.componentVersion_ = internalGetComponentVersion(); - result.componentVersion_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - 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.dataproc.v1.KubernetesSoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.KubernetesSoftwareConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.KubernetesSoftwareConfig other) { - if (other == com.google.cloud.dataproc.v1.KubernetesSoftwareConfig.getDefaultInstance()) - return this; - internalGetMutableComponentVersion().mergeFrom(other.internalGetComponentVersion()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry - componentVersion__ = - input.readMessage( - ComponentVersionDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableComponentVersion() - .getMutableMap() - .put(componentVersion__.getKey(), componentVersion__.getValue()); - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField componentVersion_; - - private com.google.protobuf.MapField - internalGetComponentVersion() { - if (componentVersion_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); - } - return componentVersion_; - } - - private com.google.protobuf.MapField - internalGetMutableComponentVersion() { - onChanged(); - ; - if (componentVersion_ == null) { - componentVersion_ = - com.google.protobuf.MapField.newMapField( - ComponentVersionDefaultEntryHolder.defaultEntry); - } - if (!componentVersion_.isMutable()) { - componentVersion_ = componentVersion_.copy(); - } - return componentVersion_; - } - - public int getComponentVersionCount() { - return internalGetComponentVersion().getMap().size(); - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public boolean containsComponentVersion(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetComponentVersion().getMap().containsKey(key); - } - /** Use {@link #getComponentVersionMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getComponentVersion() { - return getComponentVersionMap(); - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.util.Map getComponentVersionMap() { - return internalGetComponentVersion().getMap(); - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.lang.String getComponentVersionOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetComponentVersion().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - @java.lang.Override - public java.lang.String getComponentVersionOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetComponentVersion().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearComponentVersion() { - internalGetMutableComponentVersion().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - public Builder removeComponentVersion(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableComponentVersion().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableComponentVersion() { - return internalGetMutableComponentVersion().getMutableMap(); - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - public Builder putComponentVersion(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableComponentVersion().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The components that should be installed in this Dataproc cluster. The key
-     * must be a string from the KubernetesComponent enumeration. The value is
-     * the version of the software to be installed.
-     * At least one entry must be specified.
-     * 
- * - * map<string, string> component_version = 1; - */ - public Builder putAllComponentVersion( - java.util.Map values) { - internalGetMutableComponentVersion().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `spark:spark.kubernetes.container.image`. The following are supported
-     * prefixes and their mappings:
-     * * spark:  `spark-defaults.conf`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2; - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - 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.dataproc.v1.KubernetesSoftwareConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.KubernetesSoftwareConfig) - private static final com.google.cloud.dataproc.v1.KubernetesSoftwareConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.KubernetesSoftwareConfig(); - } - - public static com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesSoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesSoftwareConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java deleted file mode 100644 index e6db7aaf..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KubernetesSoftwareConfigOrBuilder.java +++ /dev/null @@ -1,188 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface KubernetesSoftwareConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.KubernetesSoftwareConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - int getComponentVersionCount(); - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - boolean containsComponentVersion(java.lang.String key); - /** Use {@link #getComponentVersionMap()} instead. */ - @java.lang.Deprecated - java.util.Map getComponentVersion(); - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - java.util.Map getComponentVersionMap(); - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - - /* nullable */ - java.lang.String getComponentVersionOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * The components that should be installed in this Dataproc cluster. The key
-   * must be a string from the KubernetesComponent enumeration. The value is
-   * the version of the software to be installed.
-   * At least one entry must be specified.
-   * 
- * - * map<string, string> component_version = 1; - */ - java.lang.String getComponentVersionOrThrow(java.lang.String key); - - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - int getPropertiesCount(); - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `spark:spark.kubernetes.container.image`. The following are supported
-   * prefixes and their mappings:
-   * * spark:  `spark-defaults.conf`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2; - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java deleted file mode 100644 index da316116..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java +++ /dev/null @@ -1,1854 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies the cluster auto-delete schedule configuration.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} - */ -public final class LifecycleConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LifecycleConfig) - LifecycleConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LifecycleConfig.newBuilder() to construct. - private LifecycleConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LifecycleConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LifecycleConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); - } - - private int ttlCase_ = 0; - private java.lang.Object ttl_; - - public enum TtlCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AUTO_DELETE_TIME(2), - AUTO_DELETE_TTL(3), - TTL_NOT_SET(0); - private final int value; - - private TtlCase(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 TtlCase valueOf(int value) { - return forNumber(value); - } - - public static TtlCase forNumber(int value) { - switch (value) { - case 2: - return AUTO_DELETE_TIME; - case 3: - return AUTO_DELETE_TTL; - case 0: - return TTL_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); - } - - public static final int IDLE_DELETE_TTL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration idleDeleteTtl_; - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasIdleDeleteTtl() { - return idleDeleteTtl_ != null; - } - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getIdleDeleteTtl() { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { - return getIdleDeleteTtl(); - } - - public static final int AUTO_DELETE_TIME_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTime() { - return ttlCase_ == 2; - } - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getAutoDeleteTime() { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int AUTO_DELETE_TTL_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTtl() { - return ttlCase_ == 3; - } - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getAutoDeleteTtl() { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int IDLE_START_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp idleStartTime_; - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - @java.lang.Override - public boolean hasIdleStartTime() { - return idleStartTime_ != null; - } - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getIdleStartTime() { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { - return getIdleStartTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (idleDeleteTtl_ != null) { - output.writeMessage(1, getIdleDeleteTtl()); - } - if (ttlCase_ == 2) { - output.writeMessage(2, (com.google.protobuf.Timestamp) ttl_); - } - if (ttlCase_ == 3) { - output.writeMessage(3, (com.google.protobuf.Duration) ttl_); - } - if (idleStartTime_ != null) { - output.writeMessage(4, getIdleStartTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (idleDeleteTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdleDeleteTtl()); - } - if (ttlCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) ttl_); - } - if (ttlCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.protobuf.Duration) ttl_); - } - if (idleStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdleStartTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.LifecycleConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.LifecycleConfig other = - (com.google.cloud.dataproc.v1.LifecycleConfig) obj; - - if (hasIdleDeleteTtl() != other.hasIdleDeleteTtl()) return false; - if (hasIdleDeleteTtl()) { - if (!getIdleDeleteTtl().equals(other.getIdleDeleteTtl())) return false; - } - if (hasIdleStartTime() != other.hasIdleStartTime()) return false; - if (hasIdleStartTime()) { - if (!getIdleStartTime().equals(other.getIdleStartTime())) return false; - } - if (!getTtlCase().equals(other.getTtlCase())) return false; - switch (ttlCase_) { - case 2: - if (!getAutoDeleteTime().equals(other.getAutoDeleteTime())) return false; - break; - case 3: - if (!getAutoDeleteTtl().equals(other.getAutoDeleteTtl())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIdleDeleteTtl()) { - hash = (37 * hash) + IDLE_DELETE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getIdleDeleteTtl().hashCode(); - } - if (hasIdleStartTime()) { - hash = (37 * hash) + IDLE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getIdleStartTime().hashCode(); - } - switch (ttlCase_) { - case 2: - hash = (37 * hash) + AUTO_DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getAutoDeleteTime().hashCode(); - break; - case 3: - hash = (37 * hash) + AUTO_DELETE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getAutoDeleteTtl().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig 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.dataproc.v1.LifecycleConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig 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.dataproc.v1.LifecycleConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig 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.dataproc.v1.LifecycleConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the cluster auto-delete schedule configuration.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.LifecycleConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LifecycleConfig) - com.google.cloud.dataproc.v1.LifecycleConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LifecycleConfig.class, - com.google.cloud.dataproc.v1.LifecycleConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.LifecycleConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = null; - } else { - idleDeleteTtl_ = null; - idleDeleteTtlBuilder_ = null; - } - if (autoDeleteTimeBuilder_ != null) { - autoDeleteTimeBuilder_.clear(); - } - if (autoDeleteTtlBuilder_ != null) { - autoDeleteTtlBuilder_.clear(); - } - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = null; - } else { - idleStartTime_ = null; - idleStartTimeBuilder_ = null; - } - ttlCase_ = 0; - ttl_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_LifecycleConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfig build() { - com.google.cloud.dataproc.v1.LifecycleConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfig buildPartial() { - com.google.cloud.dataproc.v1.LifecycleConfig result = - new com.google.cloud.dataproc.v1.LifecycleConfig(this); - if (idleDeleteTtlBuilder_ == null) { - result.idleDeleteTtl_ = idleDeleteTtl_; - } else { - result.idleDeleteTtl_ = idleDeleteTtlBuilder_.build(); - } - if (ttlCase_ == 2) { - if (autoDeleteTimeBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = autoDeleteTimeBuilder_.build(); - } - } - if (ttlCase_ == 3) { - if (autoDeleteTtlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = autoDeleteTtlBuilder_.build(); - } - } - if (idleStartTimeBuilder_ == null) { - result.idleStartTime_ = idleStartTime_; - } else { - result.idleStartTime_ = idleStartTimeBuilder_.build(); - } - result.ttlCase_ = ttlCase_; - 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.dataproc.v1.LifecycleConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LifecycleConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.LifecycleConfig other) { - if (other == com.google.cloud.dataproc.v1.LifecycleConfig.getDefaultInstance()) return this; - if (other.hasIdleDeleteTtl()) { - mergeIdleDeleteTtl(other.getIdleDeleteTtl()); - } - if (other.hasIdleStartTime()) { - mergeIdleStartTime(other.getIdleStartTime()); - } - switch (other.getTtlCase()) { - case AUTO_DELETE_TIME: - { - mergeAutoDeleteTime(other.getAutoDeleteTime()); - break; - } - case AUTO_DELETE_TTL: - { - mergeAutoDeleteTtl(other.getAutoDeleteTtl()); - break; - } - case TTL_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getIdleDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getAutoDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - ttlCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getAutoDeleteTtlFieldBuilder().getBuilder(), extensionRegistry); - ttlCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getIdleStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int ttlCase_ = 0; - private java.lang.Object ttl_; - - public TtlCase getTtlCase() { - return TtlCase.forNumber(ttlCase_); - } - - public Builder clearTtl() { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.Duration idleDeleteTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleDeleteTtlBuilder_; - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - public boolean hasIdleDeleteTtl() { - return idleDeleteTtlBuilder_ != null || idleDeleteTtl_ != null; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - public com.google.protobuf.Duration getIdleDeleteTtl() { - if (idleDeleteTtlBuilder_ == null) { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } else { - return idleDeleteTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdleDeleteTtl(com.google.protobuf.Duration value) { - if (idleDeleteTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - idleDeleteTtl_ = value; - onChanged(); - } else { - idleDeleteTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdleDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = builderForValue.build(); - onChanged(); - } else { - idleDeleteTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeIdleDeleteTtl(com.google.protobuf.Duration value) { - if (idleDeleteTtlBuilder_ == null) { - if (idleDeleteTtl_ != null) { - idleDeleteTtl_ = - com.google.protobuf.Duration.newBuilder(idleDeleteTtl_) - .mergeFrom(value) - .buildPartial(); - } else { - idleDeleteTtl_ = value; - } - onChanged(); - } else { - idleDeleteTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearIdleDeleteTtl() { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtl_ = null; - onChanged(); - } else { - idleDeleteTtl_ = null; - idleDeleteTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getIdleDeleteTtlBuilder() { - - onChanged(); - return getIdleDeleteTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder() { - if (idleDeleteTtlBuilder_ != null) { - return idleDeleteTtlBuilder_.getMessageOrBuilder(); - } else { - return idleDeleteTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleDeleteTtl_; - } - } - /** - * - * - *
-     * Optional. The duration to keep the cluster alive while idling (when no jobs
-     * are running). Passing this threshold will cause the cluster to be
-     * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-     * representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getIdleDeleteTtlFieldBuilder() { - if (idleDeleteTtlBuilder_ == null) { - idleDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getIdleDeleteTtl(), getParentForChildren(), isClean()); - idleDeleteTtl_ = null; - } - return idleDeleteTtlBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - autoDeleteTimeBuilder_; - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTime() { - return ttlCase_ == 2; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getAutoDeleteTime() { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (ttlCase_ == 2) { - return autoDeleteTimeBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTime(com.google.protobuf.Timestamp value) { - if (autoDeleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - autoDeleteTimeBuilder_.setMessage(value); - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (autoDeleteTimeBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - autoDeleteTimeBuilder_.setMessage(builderForValue.build()); - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoDeleteTime(com.google.protobuf.Timestamp value) { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2 && ttl_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) ttl_) - .mergeFrom(value) - .buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - if (ttlCase_ == 2) { - autoDeleteTimeBuilder_.mergeFrom(value); - } else { - autoDeleteTimeBuilder_.setMessage(value); - } - } - ttlCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoDeleteTime() { - if (autoDeleteTimeBuilder_ == null) { - if (ttlCase_ == 2) { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - } - } else { - if (ttlCase_ == 2) { - ttlCase_ = 0; - ttl_ = null; - } - autoDeleteTimeBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Timestamp.Builder getAutoDeleteTimeBuilder() { - return getAutoDeleteTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder() { - if ((ttlCase_ == 2) && (autoDeleteTimeBuilder_ != null)) { - return autoDeleteTimeBuilder_.getMessageOrBuilder(); - } else { - if (ttlCase_ == 2) { - return (com.google.protobuf.Timestamp) ttl_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The time when cluster will be auto-deleted (see JSON representation of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getAutoDeleteTimeFieldBuilder() { - if (autoDeleteTimeBuilder_ == null) { - if (!(ttlCase_ == 2)) { - ttl_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - autoDeleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) ttl_, getParentForChildren(), isClean()); - ttl_ = null; - } - ttlCase_ = 2; - onChanged(); - ; - return autoDeleteTimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - autoDeleteTtlBuilder_; - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - @java.lang.Override - public boolean hasAutoDeleteTtl() { - return ttlCase_ == 3; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getAutoDeleteTtl() { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (ttlCase_ == 3) { - return autoDeleteTtlBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTtl(com.google.protobuf.Duration value) { - if (autoDeleteTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - autoDeleteTtlBuilder_.setMessage(value); - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAutoDeleteTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (autoDeleteTtlBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - autoDeleteTtlBuilder_.setMessage(builderForValue.build()); - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAutoDeleteTtl(com.google.protobuf.Duration value) { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3 && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { - ttl_ = - com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) ttl_) - .mergeFrom(value) - .buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - if (ttlCase_ == 3) { - autoDeleteTtlBuilder_.mergeFrom(value); - } else { - autoDeleteTtlBuilder_.setMessage(value); - } - } - ttlCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAutoDeleteTtl() { - if (autoDeleteTtlBuilder_ == null) { - if (ttlCase_ == 3) { - ttlCase_ = 0; - ttl_ = null; - onChanged(); - } - } else { - if (ttlCase_ == 3) { - ttlCase_ = 0; - ttl_ = null; - } - autoDeleteTtlBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getAutoDeleteTtlBuilder() { - return getAutoDeleteTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder() { - if ((ttlCase_ == 3) && (autoDeleteTtlBuilder_ != null)) { - return autoDeleteTtlBuilder_.getMessageOrBuilder(); - } else { - if (ttlCase_ == 3) { - return (com.google.protobuf.Duration) ttl_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The lifetime duration of cluster. The cluster will be
-     * auto-deleted at the end of this period. Minimum value is 10 minutes;
-     * maximum value is 14 days (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getAutoDeleteTtlFieldBuilder() { - if (autoDeleteTtlBuilder_ == null) { - if (!(ttlCase_ == 3)) { - ttl_ = com.google.protobuf.Duration.getDefaultInstance(); - } - autoDeleteTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) ttl_, getParentForChildren(), isClean()); - ttl_ = null; - } - ttlCase_ = 3; - onChanged(); - ; - return autoDeleteTtlBuilder_; - } - - private com.google.protobuf.Timestamp idleStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - idleStartTimeBuilder_; - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - public boolean hasIdleStartTime() { - return idleStartTimeBuilder_ != null || idleStartTime_ != null; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - public com.google.protobuf.Timestamp getIdleStartTime() { - if (idleStartTimeBuilder_ == null) { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } else { - return idleStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIdleStartTime(com.google.protobuf.Timestamp value) { - if (idleStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - idleStartTime_ = value; - onChanged(); - } else { - idleStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIdleStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = builderForValue.build(); - onChanged(); - } else { - idleStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeIdleStartTime(com.google.protobuf.Timestamp value) { - if (idleStartTimeBuilder_ == null) { - if (idleStartTime_ != null) { - idleStartTime_ = - com.google.protobuf.Timestamp.newBuilder(idleStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - idleStartTime_ = value; - } - onChanged(); - } else { - idleStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearIdleStartTime() { - if (idleStartTimeBuilder_ == null) { - idleStartTime_ = null; - onChanged(); - } else { - idleStartTime_ = null; - idleStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getIdleStartTimeBuilder() { - - onChanged(); - return getIdleStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder() { - if (idleStartTimeBuilder_ != null) { - return idleStartTimeBuilder_.getMessageOrBuilder(); - } else { - return idleStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : idleStartTime_; - } - } - /** - * - * - *
-     * Output only. The time when cluster became idle (most recent job finished)
-     * and became eligible for deletion due to idleness (see JSON representation
-     * of
-     * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getIdleStartTimeFieldBuilder() { - if (idleStartTimeBuilder_ == null) { - idleStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getIdleStartTime(), getParentForChildren(), isClean()); - idleStartTime_ = null; - } - return idleStartTimeBuilder_; - } - - @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.dataproc.v1.LifecycleConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LifecycleConfig) - private static final com.google.cloud.dataproc.v1.LifecycleConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LifecycleConfig(); - } - - public static com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LifecycleConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LifecycleConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java deleted file mode 100644 index 3f94c68e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java +++ /dev/null @@ -1,218 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface LifecycleConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LifecycleConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the idleDeleteTtl field is set. - */ - boolean hasIdleDeleteTtl(); - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The idleDeleteTtl. - */ - com.google.protobuf.Duration getIdleDeleteTtl(); - /** - * - * - *
-   * Optional. The duration to keep the cluster alive while idling (when no jobs
-   * are running). Passing this threshold will cause the cluster to be
-   * deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON
-   * representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration idle_delete_ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getIdleDeleteTtlOrBuilder(); - - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTime field is set. - */ - boolean hasAutoDeleteTime(); - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTime. - */ - com.google.protobuf.Timestamp getAutoDeleteTime(); - /** - * - * - *
-   * Optional. The time when cluster will be auto-deleted (see JSON representation of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp auto_delete_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.TimestampOrBuilder getAutoDeleteTimeOrBuilder(); - - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoDeleteTtl field is set. - */ - boolean hasAutoDeleteTtl(); - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoDeleteTtl. - */ - com.google.protobuf.Duration getAutoDeleteTtl(); - /** - * - * - *
-   * Optional. The lifetime duration of cluster. The cluster will be
-   * auto-deleted at the end of this period. Minimum value is 10 minutes;
-   * maximum value is 14 days (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration auto_delete_ttl = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getAutoDeleteTtlOrBuilder(); - - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the idleStartTime field is set. - */ - boolean hasIdleStartTime(); - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The idleStartTime. - */ - com.google.protobuf.Timestamp getIdleStartTime(); - /** - * - * - *
-   * Output only. The time when cluster became idle (most recent job finished)
-   * and became eligible for deletion due to idleness (see JSON representation
-   * of
-   * [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * - * .google.protobuf.Timestamp idle_start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getIdleStartTimeOrBuilder(); - - public com.google.cloud.dataproc.v1.LifecycleConfig.TtlCase getTtlCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java deleted file mode 100644 index 6ef5e8e9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java +++ /dev/null @@ -1,960 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to list autoscaling policies in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} - */ -public final class ListAutoscalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) - ListAutoscalingPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAutoscalingPoliciesRequest.newBuilder() to construct. - private ListAutoscalingPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAutoscalingPoliciesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAutoscalingPoliciesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * Must be less than or equal to 1000. Defaults to 100.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest 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.dataproc.v1.ListAutoscalingPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest 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.dataproc.v1.ListAutoscalingPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest 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.dataproc.v1.ListAutoscalingPoliciesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list autoscaling policies in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest build() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest result = - new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(this); - result.parent_ = parent_; - 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.dataproc.v1.ListAutoscalingPoliciesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 "resource name" of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.autoscalingPolicies.list`, the resource name
-     *   of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.autoscalingPolicies.list`, the resource name
-     *   of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 int pageSize_; - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * Must be less than or equal to 1000. Defaults to 100.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1.ListAutoscalingPoliciesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) - private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest(); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java deleted file mode 100644 index ae28d7ce..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java +++ /dev/null @@ -1,109 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface ListAutoscalingPoliciesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The "resource name" of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.autoscalingPolicies.list`, the resource name
-   *   of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.autoscalingPolicies.list`, the resource name
-   *   of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * Must be less than or equal to 1000. Defaults to 100.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java deleted file mode 100644 index e15564de..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java +++ /dev/null @@ -1,1164 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A response to a request to list autoscaling policies in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} - */ -public final class ListAutoscalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - ListAutoscalingPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAutoscalingPoliciesResponse.newBuilder() to construct. - private ListAutoscalingPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAutoscalingPoliciesResponse() { - policies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAutoscalingPoliciesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); - } - - public static final int POLICIES_FIELD_NUMBER = 1; - private java.util.List policies_; - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getPoliciesList() { - return policies_; - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPoliciesOrBuilderList() { - return policies_; - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPoliciesCount() { - return policies_.size(); - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { - return policies_.get(index); - } - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { - return policies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < policies_.size(); i++) { - output.writeMessage(1, policies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other = - (com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) obj; - - if (!getPoliciesList().equals(other.getPoliciesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPoliciesCount() > 0) { - hash = (37 * hash) + POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getPoliciesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse 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.dataproc.v1.ListAutoscalingPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse 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.dataproc.v1.ListAutoscalingPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse 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.dataproc.v1.ListAutoscalingPoliciesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 response to a request to list autoscaling policies in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.class, - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - } else { - policies_ = null; - policiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_ListAutoscalingPoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse build() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse result = - new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(this); - int from_bitField0_ = bitField0_; - if (policiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policies_ = policies_; - } else { - result.policies_ = policiesBuilder_.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.dataproc.v1.ListAutoscalingPoliciesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse other) { - if (other - == com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse.getDefaultInstance()) - return this; - if (policiesBuilder_ == null) { - if (!other.policies_.isEmpty()) { - if (policies_.isEmpty()) { - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePoliciesIsMutable(); - policies_.addAll(other.policies_); - } - onChanged(); - } - } else { - if (!other.policies_.isEmpty()) { - if (policiesBuilder_.isEmpty()) { - policiesBuilder_.dispose(); - policiesBuilder_ = null; - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; - } else { - policiesBuilder_.addAllMessages(other.policies_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.AutoscalingPolicy m = - input.readMessage( - com.google.cloud.dataproc.v1.AutoscalingPolicy.parser(), extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List policies_ = - java.util.Collections.emptyList(); - - private void ensurePoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList(policies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policiesBuilder_; - - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getPoliciesList() { - if (policiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policies_); - } else { - return policiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getPoliciesCount() { - if (policiesBuilder_ == null) { - return policies_.size(); - } else { - return policiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.set(index, value); - onChanged(); - } else { - policiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPolicies( - int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.set(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(value); - onChanged(); - } else { - policiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies(int index, com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(index, value); - onChanged(); - } else { - policiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies( - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPolicies( - int index, com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllPolicies( - java.lang.Iterable values) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); - onChanged(); - } else { - policiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPolicies() { - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removePolicies(int index) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.remove(index); - onChanged(); - } else { - policiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPoliciesBuilder(int index) { - return getPoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPoliciesOrBuilderList() { - if (policiesBuilder_ != null) { - return policiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policies_); - } - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder addPoliciesBuilder(int index) { - return getPoliciesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Autoscaling policies list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPoliciesBuilderList() { - return getPoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - getPoliciesFieldBuilder() { - if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - policies_ = null; - } - return policiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1.ListAutoscalingPoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - private static final com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse(); - } - - public static com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAutoscalingPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java deleted file mode 100644 index c95513f9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java +++ /dev/null @@ -1,114 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface ListAutoscalingPoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getPoliciesList(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicies(int index); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getPoliciesCount(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getPoliciesOrBuilderList(); - /** - * - * - *
-   * Output only. Autoscaling policies list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java deleted file mode 100644 index b767ab90..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequest.java +++ /dev/null @@ -1,913 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to list batch workloads in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} - */ -public final class ListBatchesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesRequest) - ListBatchesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListBatchesRequest.newBuilder() to construct. - private ListBatchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListBatchesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListBatchesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, - com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent, which owns this collection of batches.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent, which owns this collection of batches.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The maximum number of batches to return in each response.
-   * The service may return fewer than this value.
-   * The default page size is 20; the maximum page size is 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. A page token received from a previous `ListBatches` call.
-   * Provide this token to retrieve the subsequent page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A page token received from a previous `ListBatches` call.
-   * Provide this token to retrieve the subsequent page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListBatchesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListBatchesRequest other = - (com.google.cloud.dataproc.v1.ListBatchesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest 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.dataproc.v1.ListBatchesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list batch workloads in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesRequest) - com.google.cloud.dataproc.v1.ListBatchesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesRequest.class, - com.google.cloud.dataproc.v1.ListBatchesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListBatchesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesRequest build() { - com.google.cloud.dataproc.v1.ListBatchesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesRequest result = - new com.google.cloud.dataproc.v1.ListBatchesRequest(this); - result.parent_ = parent_; - 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.dataproc.v1.ListBatchesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent, which owns this collection of batches.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent, which owns this collection of batches.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent, which owns this collection of batches.
-     * 
- * - * - * 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 parent, which owns this collection of batches.
-     * 
- * - * - * 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 parent, which owns this collection of batches.
-     * 
- * - * - * 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 int pageSize_; - /** - * - * - *
-     * Optional. The maximum number of batches to return in each response.
-     * The service may return fewer than this value.
-     * The default page size is 20; the maximum page size is 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The maximum number of batches to return in each response.
-     * The service may return fewer than this value.
-     * The default page size is 20; the maximum page size is 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The maximum number of batches to return in each response.
-     * The service may return fewer than this value.
-     * The default page size is 20; the maximum page size is 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. A page token received from a previous `ListBatches` call.
-     * Provide this token to retrieve the subsequent page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A page token received from a previous `ListBatches` call.
-     * Provide this token to retrieve the subsequent page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A page token received from a previous `ListBatches` call.
-     * Provide this token to retrieve the subsequent page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A page token received from a previous `ListBatches` call.
-     * Provide this token to retrieve the subsequent page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A page token received from a previous `ListBatches` call.
-     * Provide this token to retrieve the subsequent page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1.ListBatchesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesRequest) - private static final com.google.cloud.dataproc.v1.ListBatchesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesRequest(); - } - - public static com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java deleted file mode 100644 index 3f4c4c33..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesRequestOrBuilder.java +++ /dev/null @@ -1,96 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface ListBatchesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent, which owns this collection of batches.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent, which owns this collection of batches.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of batches to return in each response.
-   * The service may return fewer than this value.
-   * The default page size is 20; the maximum page size is 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. A page token received from a previous `ListBatches` call.
-   * Provide this token to retrieve the subsequent page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. A page token received from a previous `ListBatches` call.
-   * Provide this token to retrieve the subsequent page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java deleted file mode 100644 index 9d9c9fc7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponse.java +++ /dev/null @@ -1,1110 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A list of batch workloads.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} - */ -public final class ListBatchesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListBatchesResponse) - ListBatchesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListBatchesResponse.newBuilder() to construct. - private ListBatchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListBatchesResponse() { - batches_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListBatchesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, - com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); - } - - public static final int BATCHES_FIELD_NUMBER = 1; - private java.util.List batches_; - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - @java.lang.Override - public java.util.List getBatchesList() { - return batches_; - } - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - @java.lang.Override - public java.util.List - getBatchesOrBuilderList() { - return batches_; - } - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - @java.lang.Override - public int getBatchesCount() { - return batches_.size(); - } - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Batch getBatches(int index) { - return batches_.get(index); - } - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { - return batches_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < batches_.size(); i++) { - output.writeMessage(1, batches_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < batches_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, batches_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListBatchesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListBatchesResponse other = - (com.google.cloud.dataproc.v1.ListBatchesResponse) obj; - - if (!getBatchesList().equals(other.getBatchesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getBatchesCount() > 0) { - hash = (37 * hash) + BATCHES_FIELD_NUMBER; - hash = (53 * hash) + getBatchesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse 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.dataproc.v1.ListBatchesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of batch workloads.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListBatchesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListBatchesResponse) - com.google.cloud.dataproc.v1.ListBatchesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListBatchesResponse.class, - com.google.cloud.dataproc.v1.ListBatchesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListBatchesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (batchesBuilder_ == null) { - batches_ = java.util.Collections.emptyList(); - } else { - batches_ = null; - batchesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_ListBatchesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesResponse build() { - com.google.cloud.dataproc.v1.ListBatchesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListBatchesResponse result = - new com.google.cloud.dataproc.v1.ListBatchesResponse(this); - int from_bitField0_ = bitField0_; - if (batchesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - batches_ = java.util.Collections.unmodifiableList(batches_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.batches_ = batches_; - } else { - result.batches_ = batchesBuilder_.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.dataproc.v1.ListBatchesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListBatchesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListBatchesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListBatchesResponse.getDefaultInstance()) - return this; - if (batchesBuilder_ == null) { - if (!other.batches_.isEmpty()) { - if (batches_.isEmpty()) { - batches_ = other.batches_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBatchesIsMutable(); - batches_.addAll(other.batches_); - } - onChanged(); - } - } else { - if (!other.batches_.isEmpty()) { - if (batchesBuilder_.isEmpty()) { - batchesBuilder_.dispose(); - batchesBuilder_ = null; - batches_ = other.batches_; - bitField0_ = (bitField0_ & ~0x00000001); - batchesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBatchesFieldBuilder() - : null; - } else { - batchesBuilder_.addAllMessages(other.batches_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.Batch m = - input.readMessage( - com.google.cloud.dataproc.v1.Batch.parser(), extensionRegistry); - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.add(m); - } else { - batchesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List batches_ = - java.util.Collections.emptyList(); - - private void ensureBatchesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - batches_ = new java.util.ArrayList(batches_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - batchesBuilder_; - - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public java.util.List getBatchesList() { - if (batchesBuilder_ == null) { - return java.util.Collections.unmodifiableList(batches_); - } else { - return batchesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public int getBatchesCount() { - if (batchesBuilder_ == null) { - return batches_.size(); - } else { - return batchesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public com.google.cloud.dataproc.v1.Batch getBatches(int index) { - if (batchesBuilder_ == null) { - return batches_.get(index); - } else { - return batchesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder setBatches(int index, com.google.cloud.dataproc.v1.Batch value) { - if (batchesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBatchesIsMutable(); - batches_.set(index, value); - onChanged(); - } else { - batchesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder setBatches( - int index, com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.set(index, builderForValue.build()); - onChanged(); - } else { - batchesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder addBatches(com.google.cloud.dataproc.v1.Batch value) { - if (batchesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBatchesIsMutable(); - batches_.add(value); - onChanged(); - } else { - batchesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder addBatches(int index, com.google.cloud.dataproc.v1.Batch value) { - if (batchesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBatchesIsMutable(); - batches_.add(index, value); - onChanged(); - } else { - batchesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder addBatches(com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.add(builderForValue.build()); - onChanged(); - } else { - batchesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder addBatches( - int index, com.google.cloud.dataproc.v1.Batch.Builder builderForValue) { - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.add(index, builderForValue.build()); - onChanged(); - } else { - batchesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder addAllBatches( - java.lang.Iterable values) { - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, batches_); - onChanged(); - } else { - batchesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder clearBatches() { - if (batchesBuilder_ == null) { - batches_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - batchesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public Builder removeBatches(int index) { - if (batchesBuilder_ == null) { - ensureBatchesIsMutable(); - batches_.remove(index); - onChanged(); - } else { - batchesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public com.google.cloud.dataproc.v1.Batch.Builder getBatchesBuilder(int index) { - return getBatchesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index) { - if (batchesBuilder_ == null) { - return batches_.get(index); - } else { - return batchesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public java.util.List - getBatchesOrBuilderList() { - if (batchesBuilder_ != null) { - return batchesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(batches_); - } - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder() { - return getBatchesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public com.google.cloud.dataproc.v1.Batch.Builder addBatchesBuilder(int index) { - return getBatchesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Batch.getDefaultInstance()); - } - /** - * - * - *
-     * The batches from the specified collection.
-     * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - public java.util.List getBatchesBuilderList() { - return getBatchesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder> - getBatchesFieldBuilder() { - if (batchesBuilder_ == null) { - batchesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Batch, - com.google.cloud.dataproc.v1.Batch.Builder, - com.google.cloud.dataproc.v1.BatchOrBuilder>( - batches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - batches_ = null; - } - return batchesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - 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.dataproc.v1.ListBatchesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListBatchesResponse) - private static final com.google.cloud.dataproc.v1.ListBatchesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListBatchesResponse(); - } - - public static com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBatchesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListBatchesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java deleted file mode 100644 index bc8cc883..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListBatchesResponseOrBuilder.java +++ /dev/null @@ -1,103 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface ListBatchesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListBatchesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - java.util.List getBatchesList(); - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - com.google.cloud.dataproc.v1.Batch getBatches(int index); - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - int getBatchesCount(); - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - java.util.List getBatchesOrBuilderList(); - /** - * - * - *
-   * The batches from the specified collection.
-   * 
- * - * repeated .google.cloud.dataproc.v1.Batch batches = 1; - */ - com.google.cloud.dataproc.v1.BatchOrBuilder getBatchesOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java deleted file mode 100644 index 58405752..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java +++ /dev/null @@ -1,1345 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to list the clusters in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} - */ -public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersRequest) - ListClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListClustersRequest.newBuilder() to construct. - private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListClustersRequest() { - projectId_ = ""; - region_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, - com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 4; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The standard List page size.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListClustersRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListClustersRequest other = - (com.google.cloud.dataproc.v1.ListClustersRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest 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.dataproc.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest 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.dataproc.v1.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest 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.dataproc.v1.ListClustersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list the clusters in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListClustersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersRequest) - com.google.cloud.dataproc.v1.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersRequest.class, - com.google.cloud.dataproc.v1.ListClustersRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListClustersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersRequest build() { - com.google.cloud.dataproc.v1.ListClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersRequest buildPartial() { - com.google.cloud.dataproc.v1.ListClustersRequest result = - new com.google.cloud.dataproc.v1.ListClustersRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - 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.dataproc.v1.ListClustersRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersRequest other) { - if (other == com.google.cloud.dataproc.v1.ListClustersRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the cluster
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the clusters to list. Filters are
-     * case-sensitive and have the following syntax:
-     * field = value [AND [field = value]] ...
-     * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-     * and `[KEY]` is a label key. **value** can be `*` to match all values.
-     * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-     * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-     * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-     * contains the `DELETING` and `ERROR` states.
-     * `clusterName` is the name of the cluster provided at creation time.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND clusterName = mycluster
-     * AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page size.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The standard List page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1.ListClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersRequest) - private static final com.google.cloud.dataproc.v1.ListClustersRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersRequest(); - } - - public static com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java deleted file mode 100644 index 312d3b7c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,168 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ListClustersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the cluster
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Optional. A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. A filter constraining the clusters to list. Filters are
-   * case-sensitive and have the following syntax:
-   * field = value [AND [field = value]] ...
-   * where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`,
-   * and `[KEY]` is a label key. **value** can be `*` to match all values.
-   * `status.state` can be one of the following: `ACTIVE`, `INACTIVE`,
-   * `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE`
-   * contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
-   * contains the `DELETING` and `ERROR` states.
-   * `clusterName` is the name of the cluster provided at creation time.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND clusterName = mycluster
-   * AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Optional. The standard List page size.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The standard List page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java deleted file mode 100644 index 1e7dc980..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java +++ /dev/null @@ -1,1163 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The list of all clusters in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} - */ -public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListClustersResponse) - ListClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListClustersResponse.newBuilder() to construct. - private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListClustersResponse() { - clusters_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, - com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - private java.util.List clusters_; - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getClustersList() { - return clusters_; - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getClustersOrBuilderList() { - return clusters_; - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getClustersCount() { - return clusters_.size(); - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { - return clusters_.get(index); - } - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { - return clusters_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent `ListClustersRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent `ListClustersRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < clusters_.size(); i++) { - output.writeMessage(1, clusters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListClustersResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListClustersResponse other = - (com.google.cloud.dataproc.v1.ListClustersResponse) obj; - - if (!getClustersList().equals(other.getClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getClustersCount() > 0) { - hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; - hash = (53 * hash) + getClustersList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse 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.dataproc.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse 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.dataproc.v1.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse 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.dataproc.v1.ListClustersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of all clusters in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListClustersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListClustersResponse) - com.google.cloud.dataproc.v1.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListClustersResponse.class, - com.google.cloud.dataproc.v1.ListClustersResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListClustersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - } else { - clusters_ = null; - clustersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersResponse build() { - com.google.cloud.dataproc.v1.ListClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersResponse buildPartial() { - com.google.cloud.dataproc.v1.ListClustersResponse result = - new com.google.cloud.dataproc.v1.ListClustersResponse(this); - int from_bitField0_ = bitField0_; - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.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.dataproc.v1.ListClustersResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListClustersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListClustersResponse other) { - if (other == com.google.cloud.dataproc.v1.ListClustersResponse.getDefaultInstance()) - return this; - if (clustersBuilder_ == null) { - if (!other.clusters_.isEmpty()) { - if (clusters_.isEmpty()) { - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClustersIsMutable(); - clusters_.addAll(other.clusters_); - } - onChanged(); - } - } else { - if (!other.clusters_.isEmpty()) { - if (clustersBuilder_.isEmpty()) { - clustersBuilder_.dispose(); - clustersBuilder_ = null; - clusters_ = other.clusters_; - bitField0_ = (bitField0_ & ~0x00000001); - clustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClustersFieldBuilder() - : null; - } else { - clustersBuilder_.addAllMessages(other.clusters_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.Cluster m = - input.readMessage( - com.google.cloud.dataproc.v1.Cluster.parser(), extensionRegistry); - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(m); - } else { - clustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List clusters_ = - java.util.Collections.emptyList(); - - private void ensureClustersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusters_ = new java.util.ArrayList(clusters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clustersBuilder_; - - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getClustersList() { - if (clustersBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusters_); - } else { - return clustersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getClustersCount() { - if (clustersBuilder_ == null) { - return clusters_.size(); - } else { - return clustersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Cluster getClusters(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.set(index, value); - onChanged(); - } else { - clustersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setClusters( - int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.set(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(com.google.cloud.dataproc.v1.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(value); - onChanged(); - } else { - clustersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(int index, com.google.cloud.dataproc.v1.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(index, value); - onChanged(); - } else { - clustersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addClusters( - int index, com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllClusters( - java.lang.Iterable values) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); - onChanged(); - } else { - clustersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearClusters() { - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clustersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeClusters(int index) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.remove(index); - onChanged(); - } else { - clustersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Cluster.Builder getClustersBuilder(int index) { - return getClustersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getClustersOrBuilderList() { - if (clustersBuilder_ != null) { - return clustersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusters_); - } - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Cluster.Builder addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The clusters in the project.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getClustersBuilderList() { - return getClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - getClustersFieldBuilder() { - if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - clusters_ = null; - } - return clustersBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent `ListClustersRequest`.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent `ListClustersRequest`.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent `ListClustersRequest`.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent `ListClustersRequest`.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent `ListClustersRequest`.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1.ListClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListClustersResponse) - private static final com.google.cloud.dataproc.v1.ListClustersResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListClustersResponse(); - } - - public static com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListClustersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java deleted file mode 100644 index d3593d13..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,116 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ListClustersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getClustersList(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.Cluster getClusters(int index); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getClustersCount(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getClustersOrBuilderList(); - /** - * - * - *
-   * Output only. The clusters in the project.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Cluster clusters = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOrBuilder getClustersOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent `ListClustersRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent `ListClustersRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java deleted file mode 100644 index 340a4ecc..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java +++ /dev/null @@ -1,1846 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to list jobs in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListJobsRequest} - */ -public final class ListJobsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListJobsRequest) - ListJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListJobsRequest.newBuilder() to construct. - private ListJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListJobsRequest() { - projectId_ = ""; - region_ = ""; - pageToken_ = ""; - clusterName_ = ""; - jobStateMatcher_ = 0; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListJobsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, - com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); - } - - /** - * - * - *
-   * A matcher that specifies categories of job states.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher} - */ - public enum JobStateMatcher implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Match all jobs, regardless of state.
-     * 
- * - * ALL = 0; - */ - ALL(0), - /** - * - * - *
-     * Only match jobs in non-terminal states: PENDING, RUNNING, or
-     * CANCEL_PENDING.
-     * 
- * - * ACTIVE = 1; - */ - ACTIVE(1), - /** - * - * - *
-     * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
-     * 
- * - * NON_ACTIVE = 2; - */ - NON_ACTIVE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Match all jobs, regardless of state.
-     * 
- * - * ALL = 0; - */ - public static final int ALL_VALUE = 0; - /** - * - * - *
-     * Only match jobs in non-terminal states: PENDING, RUNNING, or
-     * CANCEL_PENDING.
-     * 
- * - * ACTIVE = 1; - */ - public static final int ACTIVE_VALUE = 1; - /** - * - * - *
-     * Only match jobs in terminal states: CANCELLED, DONE, or ERROR.
-     * 
- * - * NON_ACTIVE = 2; - */ - public static final int NON_ACTIVE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static JobStateMatcher 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 JobStateMatcher forNumber(int value) { - switch (value) { - case 0: - return ALL; - case 1: - return ACTIVE; - case 2: - return NON_ACTIVE; - 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 JobStateMatcher findValueByNumber(int number) { - return JobStateMatcher.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.dataproc.v1.ListJobsRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final JobStateMatcher[] VALUES = values(); - - public static JobStateMatcher 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 JobStateMatcher(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher) - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 6; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_STATE_MATCHER_FIELD_NUMBER = 5; - private int jobStateMatcher_; - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - @java.lang.Override - public int getJobStateMatcherValue() { - return jobStateMatcher_; - } - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; - } - - public static final int FILTER_FIELD_NUMBER = 7; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterName_); - } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - output.writeEnum(5, jobStateMatcher_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterName_); - } - if (jobStateMatcher_ - != com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.ALL.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, jobStateMatcher_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListJobsRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListJobsRequest other = - (com.google.cloud.dataproc.v1.ListJobsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (jobStateMatcher_ != other.jobStateMatcher_) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + JOB_STATE_MATCHER_FIELD_NUMBER; - hash = (53 * hash) + jobStateMatcher_; - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest 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.dataproc.v1.ListJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest 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.dataproc.v1.ListJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest 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.dataproc.v1.ListJobsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list jobs in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListJobsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListJobsRequest) - com.google.cloud.dataproc.v1.ListJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsRequest.class, - com.google.cloud.dataproc.v1.ListJobsRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListJobsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - clusterName_ = ""; - - jobStateMatcher_ = 0; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListJobsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest build() { - com.google.cloud.dataproc.v1.ListJobsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest buildPartial() { - com.google.cloud.dataproc.v1.ListJobsRequest result = - new com.google.cloud.dataproc.v1.ListJobsRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.clusterName_ = clusterName_; - result.jobStateMatcher_ = jobStateMatcher_; - result.filter_ = filter_; - 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.dataproc.v1.ListJobsRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListJobsRequest other) { - if (other == com.google.cloud.dataproc.v1.ListJobsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.jobStateMatcher_ != 0) { - setJobStateMatcherValue(other.getJobStateMatcherValue()); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - jobStateMatcher_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, the returned jobs list includes only jobs that were
-     * submitted to the named cluster.
-     * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private int jobStateMatcher_ = 0; - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - @java.lang.Override - public int getJobStateMatcherValue() { - return jobStateMatcher_; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for jobStateMatcher to set. - * @return This builder for chaining. - */ - public Builder setJobStateMatcherValue(int value) { - - jobStateMatcher_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher result = - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.valueOf(jobStateMatcher_); - return result == null - ? com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The jobStateMatcher to set. - * @return This builder for chaining. - */ - public Builder setJobStateMatcher( - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher value) { - if (value == null) { - throw new NullPointerException(); - } - - jobStateMatcher_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifies enumerated categories of jobs to list.
-     * (default = match ALL jobs).
-     * If `filter` is provided, `jobStateMatcher` will be ignored.
-     * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearJobStateMatcher() { - - jobStateMatcher_ = 0; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A filter constraining the jobs to list. Filters are
-     * case-sensitive and have the following syntax:
-     * [field = value] AND [field [= value]] ...
-     * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-     * key. **value** can be `*` to match all values.
-     * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-     * Only the logical `AND` operator is supported; space-separated items are
-     * treated as having an implicit `AND` operator.
-     * Example filter:
-     * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-     * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - 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.dataproc.v1.ListJobsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsRequest) - private static final com.google.cloud.dataproc.v1.ListJobsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsRequest(); - } - - public static com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java deleted file mode 100644 index f2f3c5f0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java +++ /dev/null @@ -1,220 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface ListJobsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Optional. The number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Optional. If set, the returned jobs list includes only jobs that were
-   * submitted to the named cluster.
-   * 
- * - * string cluster_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for jobStateMatcher. - */ - int getJobStateMatcherValue(); - /** - * - * - *
-   * Optional. Specifies enumerated categories of jobs to list.
-   * (default = match ALL jobs).
-   * If `filter` is provided, `jobStateMatcher` will be ignored.
-   * 
- * - * - * .google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher job_state_matcher = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The jobStateMatcher. - */ - com.google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher getJobStateMatcher(); - - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Optional. A filter constraining the jobs to list. Filters are
-   * case-sensitive and have the following syntax:
-   * [field = value] AND [field [= value]] ...
-   * where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label
-   * key. **value** can be `*` to match all values.
-   * `status.state` can be either `ACTIVE` or `NON_ACTIVE`.
-   * Only the logical `AND` operator is supported; space-separated items are
-   * treated as having an implicit `AND` operator.
-   * Example filter:
-   * status.state = ACTIVE AND labels.env = staging AND labels.starred = *
-   * 
- * - * string filter = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java deleted file mode 100644 index 9705d25e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java +++ /dev/null @@ -1,1159 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A list of jobs in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListJobsResponse} - */ -public final class ListJobsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListJobsResponse) - ListJobsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListJobsResponse.newBuilder() to construct. - private ListJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListJobsResponse() { - jobs_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListJobsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, - com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); - } - - public static final int JOBS_FIELD_NUMBER = 1; - private java.util.List jobs_; - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getJobsList() { - return jobs_; - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getJobsOrBuilderList() { - return jobs_; - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Job getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { - return jobs_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 < jobs_.size(); i++) { - output.writeMessage(1, jobs_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobs_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListJobsResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListJobsResponse other = - (com.google.cloud.dataproc.v1.ListJobsResponse) obj; - - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse 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.dataproc.v1.ListJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse 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.dataproc.v1.ListJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse 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.dataproc.v1.ListJobsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of jobs in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListJobsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListJobsResponse) - com.google.cloud.dataproc.v1.ListJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListJobsResponse.class, - com.google.cloud.dataproc.v1.ListJobsResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListJobsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - } else { - jobs_ = null; - jobsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_ListJobsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsResponse build() { - com.google.cloud.dataproc.v1.ListJobsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsResponse buildPartial() { - com.google.cloud.dataproc.v1.ListJobsResponse result = - new com.google.cloud.dataproc.v1.ListJobsResponse(this); - int from_bitField0_ = bitField0_; - if (jobsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.jobs_ = jobs_; - } else { - result.jobs_ = jobsBuilder_.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.dataproc.v1.ListJobsResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListJobsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListJobsResponse other) { - if (other == com.google.cloud.dataproc.v1.ListJobsResponse.getDefaultInstance()) return this; - if (jobsBuilder_ == null) { - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - } else { - if (!other.jobs_.isEmpty()) { - if (jobsBuilder_.isEmpty()) { - jobsBuilder_.dispose(); - jobsBuilder_ = null; - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobsFieldBuilder() - : null; - } else { - jobsBuilder_.addAllMessages(other.jobs_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.Job m = - input.readMessage(com.google.cloud.dataproc.v1.Job.parser(), extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List jobs_ = - java.util.Collections.emptyList(); - - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - jobs_ = new java.util.ArrayList(jobs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobsBuilder_; - - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getJobsList() { - if (jobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobs_); - } else { - return jobsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getJobsCount() { - if (jobsBuilder_ == null) { - return jobs_.size(); - } else { - return jobsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Job getJobs(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - } else { - jobsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.set(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - } else { - jobsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(index, value); - onChanged(); - } else { - jobsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.Job.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllJobs( - java.lang.Iterable values) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - onChanged(); - } else { - jobsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearJobs() { - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - jobsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeJobs(int index) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.remove(index); - onChanged(); - } else { - jobsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Job.Builder getJobsBuilder(int index) { - return getJobsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getJobsOrBuilderList() { - if (jobsBuilder_ != null) { - return jobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobs_); - } - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.Job.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.Job.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.Job.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Jobs list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getJobsBuilderList() { - return getJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - getJobsFieldBuilder() { - if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - jobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - jobs_ = null; - } - return jobsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. This token is included in the response if there are more results
-     * to fetch. To fetch additional results, provide this value as the
-     * `page_token` in a subsequent <code>ListJobsRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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.dataproc.v1.ListJobsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListJobsResponse) - private static final com.google.cloud.dataproc.v1.ListJobsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListJobsResponse(); - } - - public static com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListJobsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java deleted file mode 100644 index 4da048ec..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java +++ /dev/null @@ -1,115 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface ListJobsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListJobsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getJobsList(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.Job getJobs(int index); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getJobsCount(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getJobsOrBuilderList(); - /** - * - * - *
-   * Output only. Jobs list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.JobOrBuilder getJobsOrBuilder(int index); - - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Optional. This token is included in the response if there are more results
-   * to fetch. To fetch additional results, provide this value as the
-   * `page_token` in a subsequent <code>ListJobsRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java deleted file mode 100644 index 3faf421b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java +++ /dev/null @@ -1,955 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to list workflow templates in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} - */ -public final class ListWorkflowTemplatesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) - ListWorkflowTemplatesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowTemplatesRequest.newBuilder() to construct. - private ListWorkflowTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowTemplatesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkflowTemplatesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest 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.dataproc.v1.ListWorkflowTemplatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest 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.dataproc.v1.ListWorkflowTemplatesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest 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.dataproc.v1.ListWorkflowTemplatesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to list workflow templates in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest build() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest result = - new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(this); - result.parent_ = parent_; - 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.dataproc.v1.ListWorkflowTemplatesRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 resource name of the region or location, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates,list`, the resource
-     *   name of the region has the following format:
-     *   `projects/{project_id}/regions/{region}`
-     * * For `projects.locations.workflowTemplates.list`, the
-     *   resource name of the location has the following format:
-     *   `projects/{project_id}/locations/{location}`
-     * 
- * - * - * 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 int pageSize_; - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The maximum number of results to return in each response.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The page token, returned by a previous call, to request the
-     * next page of results.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - 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.dataproc.v1.ListWorkflowTemplatesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) - private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest(); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java deleted file mode 100644 index 91656df4..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ListWorkflowTemplatesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name of the region or location, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates,list`, the resource
-   *   name of the region has the following format:
-   *   `projects/{project_id}/regions/{region}`
-   * * For `projects.locations.workflowTemplates.list`, the
-   *   resource name of the location has the following format:
-   *   `projects/{project_id}/locations/{location}`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of results to return in each response.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Optional. The page token, returned by a previous call, to request the
-   * next page of results.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java deleted file mode 100644 index cc8f1dbf..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java +++ /dev/null @@ -1,1167 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A response to a request to list workflow templates in a project.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} - */ -public final class ListWorkflowTemplatesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) - ListWorkflowTemplatesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWorkflowTemplatesResponse.newBuilder() to construct. - private ListWorkflowTemplatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWorkflowTemplatesResponse() { - templates_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWorkflowTemplatesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); - } - - public static final int TEMPLATES_FIELD_NUMBER = 1; - private java.util.List templates_; - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getTemplatesList() { - return templates_; - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getTemplatesOrBuilderList() { - return templates_; - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getTemplatesCount() { - return templates_.size(); - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { - return templates_.get(index); - } - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { - return templates_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 < templates_.size(); i++) { - output.writeMessage(1, templates_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < templates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, templates_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other = - (com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) obj; - - if (!getTemplatesList().equals(other.getTemplatesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTemplatesCount() > 0) { - hash = (37 * hash) + TEMPLATES_FIELD_NUMBER; - hash = (53 * hash) + getTemplatesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse 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.dataproc.v1.ListWorkflowTemplatesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse 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.dataproc.v1.ListWorkflowTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse 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.dataproc.v1.ListWorkflowTemplatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 response to a request to list workflow templates in a project.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ListWorkflowTemplatesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.class, - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (templatesBuilder_ == null) { - templates_ = java.util.Collections.emptyList(); - } else { - templates_ = null; - templatesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse build() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse buildPartial() { - com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse result = - new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(this); - int from_bitField0_ = bitField0_; - if (templatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - templates_ = java.util.Collections.unmodifiableList(templates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.templates_ = templates_; - } else { - result.templates_ = templatesBuilder_.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.dataproc.v1.ListWorkflowTemplatesResponse) { - return mergeFrom((com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse other) { - if (other == com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse.getDefaultInstance()) - return this; - if (templatesBuilder_ == null) { - if (!other.templates_.isEmpty()) { - if (templates_.isEmpty()) { - templates_ = other.templates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTemplatesIsMutable(); - templates_.addAll(other.templates_); - } - onChanged(); - } - } else { - if (!other.templates_.isEmpty()) { - if (templatesBuilder_.isEmpty()) { - templatesBuilder_.dispose(); - templatesBuilder_ = null; - templates_ = other.templates_; - bitField0_ = (bitField0_ & ~0x00000001); - templatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTemplatesFieldBuilder() - : null; - } else { - templatesBuilder_.addAllMessages(other.templates_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.WorkflowTemplate m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowTemplate.parser(), extensionRegistry); - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(m); - } else { - templatesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List templates_ = - java.util.Collections.emptyList(); - - private void ensureTemplatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - templates_ = - new java.util.ArrayList(templates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templatesBuilder_; - - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getTemplatesList() { - if (templatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(templates_); - } else { - return templatesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getTemplatesCount() { - if (templatesBuilder_ == null) { - return templates_.size(); - } else { - return templatesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index) { - if (templatesBuilder_ == null) { - return templates_.get(index); - } else { - return templatesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.set(index, value); - onChanged(); - } else { - templatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTemplates( - int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.set(index, builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.add(value); - onChanged(); - } else { - templatesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates(int index, com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTemplatesIsMutable(); - templates_.add(index, value); - onChanged(); - } else { - templatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates( - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addTemplates( - int index, com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.add(index, builderForValue.build()); - onChanged(); - } else { - templatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllTemplates( - java.lang.Iterable values) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, templates_); - onChanged(); - } else { - templatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTemplates() { - if (templatesBuilder_ == null) { - templates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - templatesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeTemplates(int index) { - if (templatesBuilder_ == null) { - ensureTemplatesIsMutable(); - templates_.remove(index); - onChanged(); - } else { - templatesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplatesBuilder(int index) { - return getTemplatesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index) { - if (templatesBuilder_ == null) { - return templates_.get(index); - } else { - return templatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getTemplatesOrBuilderList() { - if (templatesBuilder_ != null) { - return templatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(templates_); - } - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder() { - return getTemplatesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder addTemplatesBuilder(int index) { - return getTemplatesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. WorkflowTemplates list.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getTemplatesBuilderList() { - return getTemplatesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - getTemplatesFieldBuilder() { - if (templatesBuilder_ == null) { - templatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - templates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - templates_ = null; - } - return templatesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. This token is included in the response if there are more
-     * results to fetch. To fetch additional results, provide this value as the
-     * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-     * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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.dataproc.v1.ListWorkflowTemplatesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) - private static final com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse(); - } - - public static com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java deleted file mode 100644 index bc48c332..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java +++ /dev/null @@ -1,116 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ListWorkflowTemplatesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ListWorkflowTemplatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getTemplatesList(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplates(int index); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getTemplatesCount(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getTemplatesOrBuilderList(); - /** - * - * - *
-   * Output only. WorkflowTemplates list.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowTemplate templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplatesOrBuilder(int index); - - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * Output only. This token is included in the response if there are more
-   * results to fetch. To fetch additional results, provide this value as the
-   * page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java deleted file mode 100644 index fc7f3a62..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java deleted file mode 100644 index ab4acd12..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java +++ /dev/null @@ -1,1319 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The runtime logging config of the job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} - */ -public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.LoggingConfig) - LoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingConfig.newBuilder() to construct. - private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, - com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); - } - - /** - * - * - *
-   * The Log4j level for job execution. When running an
-   * [Apache Hive](https://hive.apache.org/) job, Cloud
-   * Dataproc configures the Hive client to an equivalent verbosity level.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.LoggingConfig.Level} - */ - public enum Level implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Level is unspecified. Use default level for log4j.
-     * 
- * - * LEVEL_UNSPECIFIED = 0; - */ - LEVEL_UNSPECIFIED(0), - /** - * - * - *
-     * Use ALL level for log4j.
-     * 
- * - * ALL = 1; - */ - ALL(1), - /** - * - * - *
-     * Use TRACE level for log4j.
-     * 
- * - * TRACE = 2; - */ - TRACE(2), - /** - * - * - *
-     * Use DEBUG level for log4j.
-     * 
- * - * DEBUG = 3; - */ - DEBUG(3), - /** - * - * - *
-     * Use INFO level for log4j.
-     * 
- * - * INFO = 4; - */ - INFO(4), - /** - * - * - *
-     * Use WARN level for log4j.
-     * 
- * - * WARN = 5; - */ - WARN(5), - /** - * - * - *
-     * Use ERROR level for log4j.
-     * 
- * - * ERROR = 6; - */ - ERROR(6), - /** - * - * - *
-     * Use FATAL level for log4j.
-     * 
- * - * FATAL = 7; - */ - FATAL(7), - /** - * - * - *
-     * Turn off log4j.
-     * 
- * - * OFF = 8; - */ - OFF(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Level is unspecified. Use default level for log4j.
-     * 
- * - * LEVEL_UNSPECIFIED = 0; - */ - public static final int LEVEL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Use ALL level for log4j.
-     * 
- * - * ALL = 1; - */ - public static final int ALL_VALUE = 1; - /** - * - * - *
-     * Use TRACE level for log4j.
-     * 
- * - * TRACE = 2; - */ - public static final int TRACE_VALUE = 2; - /** - * - * - *
-     * Use DEBUG level for log4j.
-     * 
- * - * DEBUG = 3; - */ - public static final int DEBUG_VALUE = 3; - /** - * - * - *
-     * Use INFO level for log4j.
-     * 
- * - * INFO = 4; - */ - public static final int INFO_VALUE = 4; - /** - * - * - *
-     * Use WARN level for log4j.
-     * 
- * - * WARN = 5; - */ - public static final int WARN_VALUE = 5; - /** - * - * - *
-     * Use ERROR level for log4j.
-     * 
- * - * ERROR = 6; - */ - public static final int ERROR_VALUE = 6; - /** - * - * - *
-     * Use FATAL level for log4j.
-     * 
- * - * FATAL = 7; - */ - public static final int FATAL_VALUE = 7; - /** - * - * - *
-     * Turn off log4j.
-     * 
- * - * OFF = 8; - */ - public static final int OFF_VALUE = 8; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Level valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Level forNumber(int value) { - switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return ALL; - case 2: - return TRACE; - case 3: - return DEBUG; - case 4: - return INFO; - case 5: - return WARN; - case 6: - return ERROR; - case 7: - return FATAL; - case 8: - return OFF; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dataproc.v1.LoggingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Level[] VALUES = values(); - - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Level(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.LoggingConfig.Level) - } - - public static final int DRIVER_LOG_LEVELS_FIELD_NUMBER = 2; - - private static final class DriverLogLevelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_DriverLogLevelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.dataproc.v1.LoggingConfig.Level.LEVEL_UNSPECIFIED.getNumber()); - } - - private com.google.protobuf.MapField driverLogLevels_; - - private com.google.protobuf.MapField - internalGetDriverLogLevels() { - if (driverLogLevels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - return driverLogLevels_; - } - - private static final com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.LoggingConfig.Level> - driverLogLevelsValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - com.google.cloud.dataproc.v1.LoggingConfig.Level.internalGetValueMap(), - com.google.cloud.dataproc.v1.LoggingConfig.Level.UNRECOGNIZED); - - private static final java.util.Map< - java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level> - internalGetAdaptedDriverLogLevelsMap(java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, com.google.cloud.dataproc.v1.LoggingConfig.Level, java.lang.Integer>( - map, driverLogLevelsValueConverter); - } - - public int getDriverLogLevelsCount() { - return internalGetDriverLogLevels().getMap().size(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetDriverLogLevels().getMap().containsKey(key); - } - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getDriverLogLevels() { - return getDriverLogLevelsMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level - getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return driverLogLevelsValueConverter.doForward(map.get(key)); - } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { - return getDriverLogLevelsValueMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { - return internalGetDriverLogLevels().getMap(); - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDriverLogLevels(), DriverLogLevelsDefaultEntryHolder.defaultEntry, 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetDriverLogLevels().getMap().entrySet()) { - com.google.protobuf.MapEntry driverLogLevels__ = - DriverLogLevelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, driverLogLevels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.LoggingConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.LoggingConfig other = - (com.google.cloud.dataproc.v1.LoggingConfig) obj; - - if (!internalGetDriverLogLevels().equals(other.internalGetDriverLogLevels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetDriverLogLevels().getMap().isEmpty()) { - hash = (37 * hash) + DRIVER_LOG_LEVELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDriverLogLevels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig 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.dataproc.v1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig 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.dataproc.v1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig 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.dataproc.v1.LoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 runtime logging config of the job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.LoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.LoggingConfig) - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableDriverLogLevels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.LoggingConfig.class, - com.google.cloud.dataproc.v1.LoggingConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.LoggingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableDriverLogLevels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig build() { - com.google.cloud.dataproc.v1.LoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig buildPartial() { - com.google.cloud.dataproc.v1.LoggingConfig result = - new com.google.cloud.dataproc.v1.LoggingConfig(this); - int from_bitField0_ = bitField0_; - result.driverLogLevels_ = internalGetDriverLogLevels(); - result.driverLogLevels_.makeImmutable(); - 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.dataproc.v1.LoggingConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.LoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.LoggingConfig other) { - if (other == com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance()) return this; - internalGetMutableDriverLogLevels().mergeFrom(other.internalGetDriverLogLevels()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - com.google.protobuf.MapEntry - driverLogLevels__ = - input.readMessage( - DriverLogLevelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableDriverLogLevels() - .getMutableMap() - .put(driverLogLevels__.getKey(), driverLogLevels__.getValue()); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField driverLogLevels_; - - private com.google.protobuf.MapField - internalGetDriverLogLevels() { - if (driverLogLevels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - return driverLogLevels_; - } - - private com.google.protobuf.MapField - internalGetMutableDriverLogLevels() { - onChanged(); - ; - if (driverLogLevels_ == null) { - driverLogLevels_ = - com.google.protobuf.MapField.newMapField( - DriverLogLevelsDefaultEntryHolder.defaultEntry); - } - if (!driverLogLevels_.isMutable()) { - driverLogLevels_ = driverLogLevels_.copy(); - } - return driverLogLevels_; - } - - public int getDriverLogLevelsCount() { - return internalGetDriverLogLevels().getMap().size(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public boolean containsDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetDriverLogLevels().getMap().containsKey(key); - } - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getDriverLogLevels() { - return getDriverLogLevelsMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map - getDriverLogLevelsMap() { - return internalGetAdaptedDriverLogLevelsMap(internalGetDriverLogLevels().getMap()); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.dataproc.v1.LoggingConfig.Level - getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - return map.containsKey(key) - ? driverLogLevelsValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return driverLogLevelsValueConverter.doForward(map.get(key)); - } - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDriverLogLevelsValue() { - return getDriverLogLevelsValueMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public java.util.Map getDriverLogLevelsValueMap() { - return internalGetDriverLogLevels().getMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - @java.lang.Override - public int getDriverLogLevelsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetDriverLogLevels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDriverLogLevels() { - internalGetMutableDriverLogLevels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder removeDriverLogLevels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableDriverLogLevels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableDriverLogLevels() { - return internalGetAdaptedDriverLogLevelsMap( - internalGetMutableDriverLogLevels().getMutableMap()); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putDriverLogLevels( - java.lang.String key, com.google.cloud.dataproc.v1.LoggingConfig.Level value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableDriverLogLevels() - .getMutableMap() - .put(key, driverLogLevelsValueConverter.doBackward(value)); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putAllDriverLogLevels( - java.util.Map values) { - internalGetAdaptedDriverLogLevelsMap(internalGetMutableDriverLogLevels().getMutableMap()) - .putAll(values); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableDriverLogLevelsValue() { - return internalGetMutableDriverLogLevels().getMutableMap(); - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putDriverLogLevelsValue(java.lang.String key, int value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableDriverLogLevels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The per-package log levels for the driver. This may include
-     * "root" package name to configure rootLogger.
-     * Examples:
-     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-     * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - public Builder putAllDriverLogLevelsValue( - java.util.Map values) { - internalGetMutableDriverLogLevels().getMutableMap().putAll(values); - 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.dataproc.v1.LoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.LoggingConfig) - private static final com.google.cloud.dataproc.v1.LoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.LoggingConfig(); - } - - public static com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java deleted file mode 100644 index 334f6721..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface LoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.LoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsCount(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - boolean containsDriverLogLevels(java.lang.String key); - /** Use {@link #getDriverLogLevelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getDriverLogLevels(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - java.util.Map - getDriverLogLevelsMap(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.dataproc.v1.LoggingConfig.Level defaultValue); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - com.google.cloud.dataproc.v1.LoggingConfig.Level getDriverLogLevelsOrThrow(java.lang.String key); - /** Use {@link #getDriverLogLevelsValueMap()} instead. */ - @java.lang.Deprecated - java.util.Map getDriverLogLevelsValue(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - java.util.Map getDriverLogLevelsValueMap(); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsValueOrDefault(java.lang.String key, int defaultValue); - /** - * - * - *
-   * The per-package log levels for the driver. This may include
-   * "root" package name to configure rootLogger.
-   * Examples:
-   *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
-   * 
- * - * map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2; - * - */ - int getDriverLogLevelsValueOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java deleted file mode 100644 index 87e3064b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java +++ /dev/null @@ -1,1321 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Cluster that is managed by the workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} - */ -public final class ManagedCluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedCluster) - ManagedClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedCluster.newBuilder() to construct. - private ManagedCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedCluster() { - clusterName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedCluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, - com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.ClusterConfig config_; - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (config_ != null) { - output.writeMessage(3, getConfig()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfig()); - } - 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(4, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ManagedCluster)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ManagedCluster other = - (com.google.cloud.dataproc.v1.ManagedCluster) obj; - - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster 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.dataproc.v1.ManagedCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster 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.dataproc.v1.ManagedCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster 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.dataproc.v1.ManagedCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Cluster that is managed by the workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ManagedCluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedCluster) - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedCluster.class, - com.google.cloud.dataproc.v1.ManagedCluster.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ManagedCluster.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - clusterName_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster build() { - com.google.cloud.dataproc.v1.ManagedCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster buildPartial() { - com.google.cloud.dataproc.v1.ManagedCluster result = - new com.google.cloud.dataproc.v1.ManagedCluster(this); - int from_bitField0_ = bitField0_; - result.clusterName_ = clusterName_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - 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.dataproc.v1.ManagedCluster) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedCluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedCluster other) { - if (other == com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) return this; - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name prefix. A unique cluster name will be formed by
-     * appending a random suffix.
-     * The name must contain only lower-case letters (a-z), numbers (0-9),
-     * and hyphens (-). Must begin with a letter. Cannot begin or end with
-     * hyphen. Must consist of between 2 and 35 characters.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - public com.google.cloud.dataproc.v1.ClusterConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setConfig(com.google.cloud.dataproc.v1.ClusterConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeConfig(com.google.cloud.dataproc.v1.ClusterConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dataproc.v1.ClusterConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.ClusterConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null - ? com.google.cloud.dataproc.v1.ClusterConfig.getDefaultInstance() - : config_; - } - } - /** - * - * - *
-     * Required. The cluster configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterConfig, - com.google.cloud.dataproc.v1.ClusterConfig.Builder, - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this cluster.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given cluster.
-     * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - 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.dataproc.v1.ManagedCluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedCluster) - private static final com.google.cloud.dataproc.v1.ManagedCluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedCluster(); - } - - public static com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java deleted file mode 100644 index 056f9205..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java +++ /dev/null @@ -1,188 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ManagedClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedCluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name prefix. A unique cluster name will be formed by
-   * appending a random suffix.
-   * The name must contain only lower-case letters (a-z), numbers (0-9),
-   * and hyphens (-). Must begin with a letter. Cannot begin or end with
-   * hyphen. Must consist of between 2 and 35 characters.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.dataproc.v1.ClusterConfig getConfig(); - /** - * - * - *
-   * Required. The cluster configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.ClusterConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this cluster.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given cluster.
-   * 
- * - * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java deleted file mode 100644 index b38f4a94..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java +++ /dev/null @@ -1,808 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies the resources used to actively manage an instance group.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} - */ -public final class ManagedGroupConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ManagedGroupConfig) - ManagedGroupConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedGroupConfig.newBuilder() to construct. - private ManagedGroupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedGroupConfig() { - instanceTemplateName_ = ""; - instanceGroupManagerName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedGroupConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); - } - - public static final int INSTANCE_TEMPLATE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object instanceTemplateName_; - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - @java.lang.Override - public java.lang.String getInstanceTemplateName() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceTemplateName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object instanceGroupManagerName_; - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - @java.lang.Override - public java.lang.String getInstanceGroupManagerName() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceGroupManagerName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceGroupManagerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(instanceTemplateName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceTemplateName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupManagerName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTemplateName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceTemplateName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupManagerName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupManagerName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ManagedGroupConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ManagedGroupConfig other = - (com.google.cloud.dataproc.v1.ManagedGroupConfig) obj; - - if (!getInstanceTemplateName().equals(other.getInstanceTemplateName())) return false; - if (!getInstanceGroupManagerName().equals(other.getInstanceGroupManagerName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCE_TEMPLATE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInstanceTemplateName().hashCode(); - hash = (37 * hash) + INSTANCE_GROUP_MANAGER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInstanceGroupManagerName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig 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.dataproc.v1.ManagedGroupConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig 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.dataproc.v1.ManagedGroupConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig 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.dataproc.v1.ManagedGroupConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the resources used to actively manage an instance group.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ManagedGroupConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ManagedGroupConfig) - com.google.cloud.dataproc.v1.ManagedGroupConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ManagedGroupConfig.class, - com.google.cloud.dataproc.v1.ManagedGroupConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ManagedGroupConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - instanceTemplateName_ = ""; - - instanceGroupManagerName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ManagedGroupConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfig build() { - com.google.cloud.dataproc.v1.ManagedGroupConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfig buildPartial() { - com.google.cloud.dataproc.v1.ManagedGroupConfig result = - new com.google.cloud.dataproc.v1.ManagedGroupConfig(this); - result.instanceTemplateName_ = instanceTemplateName_; - result.instanceGroupManagerName_ = instanceGroupManagerName_; - 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.dataproc.v1.ManagedGroupConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ManagedGroupConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ManagedGroupConfig other) { - if (other == com.google.cloud.dataproc.v1.ManagedGroupConfig.getDefaultInstance()) - return this; - if (!other.getInstanceTemplateName().isEmpty()) { - instanceTemplateName_ = other.instanceTemplateName_; - onChanged(); - } - if (!other.getInstanceGroupManagerName().isEmpty()) { - instanceGroupManagerName_ = other.instanceGroupManagerName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - instanceTemplateName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - instanceGroupManagerName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object instanceTemplateName_ = ""; - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - public java.lang.String getInstanceTemplateName() { - java.lang.Object ref = instanceTemplateName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceTemplateName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - public com.google.protobuf.ByteString getInstanceTemplateNameBytes() { - java.lang.Object ref = instanceTemplateName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The instanceTemplateName to set. - * @return This builder for chaining. - */ - public Builder setInstanceTemplateName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceTemplateName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearInstanceTemplateName() { - - instanceTemplateName_ = getDefaultInstance().getInstanceTemplateName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Template used for the Managed
-     * Instance Group.
-     * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for instanceTemplateName to set. - * @return This builder for chaining. - */ - public Builder setInstanceTemplateNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceTemplateName_ = value; - onChanged(); - return this; - } - - private java.lang.Object instanceGroupManagerName_ = ""; - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - public java.lang.String getInstanceGroupManagerName() { - java.lang.Object ref = instanceGroupManagerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceGroupManagerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - public com.google.protobuf.ByteString getInstanceGroupManagerNameBytes() { - java.lang.Object ref = instanceGroupManagerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceGroupManagerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The instanceGroupManagerName to set. - * @return This builder for chaining. - */ - public Builder setInstanceGroupManagerName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceGroupManagerName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearInstanceGroupManagerName() { - - instanceGroupManagerName_ = getDefaultInstance().getInstanceGroupManagerName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the Instance Group Manager for this group.
-     * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for instanceGroupManagerName to set. - * @return This builder for chaining. - */ - public Builder setInstanceGroupManagerNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instanceGroupManagerName_ = 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.dataproc.v1.ManagedGroupConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ManagedGroupConfig) - private static final com.google.cloud.dataproc.v1.ManagedGroupConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ManagedGroupConfig(); - } - - public static com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedGroupConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedGroupConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java deleted file mode 100644 index d27f6e63..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java +++ /dev/null @@ -1,79 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ManagedGroupConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ManagedGroupConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The instanceTemplateName. - */ - java.lang.String getInstanceTemplateName(); - /** - * - * - *
-   * Output only. The name of the Instance Template used for the Managed
-   * Instance Group.
-   * 
- * - * string instance_template_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for instanceTemplateName. - */ - com.google.protobuf.ByteString getInstanceTemplateNameBytes(); - - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The instanceGroupManagerName. - */ - java.lang.String getInstanceGroupManagerName(); - /** - * - * - *
-   * Output only. The name of the Instance Group Manager for this group.
-   * 
- * - * string instance_group_manager_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for instanceGroupManagerName. - */ - com.google.protobuf.ByteString getInstanceGroupManagerNameBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java deleted file mode 100644 index c4cc9ad9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java +++ /dev/null @@ -1,643 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies a Metastore configuration.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} - */ -public final class MetastoreConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.MetastoreConfig) - MetastoreConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetastoreConfig.newBuilder() to construct. - private MetastoreConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MetastoreConfig() { - dataprocMetastoreService_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MetastoreConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); - } - - public static final int DATAPROC_METASTORE_SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object dataprocMetastoreService_; - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataprocMetastoreService. - */ - @java.lang.Override - public java.lang.String getDataprocMetastoreService() { - java.lang.Object ref = dataprocMetastoreService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataprocMetastoreService_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataprocMetastoreService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { - java.lang.Object ref = dataprocMetastoreService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataprocMetastoreService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(dataprocMetastoreService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocMetastoreService_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocMetastoreService_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocMetastoreService_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.MetastoreConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.MetastoreConfig other = - (com.google.cloud.dataproc.v1.MetastoreConfig) obj; - - if (!getDataprocMetastoreService().equals(other.getDataprocMetastoreService())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATAPROC_METASTORE_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getDataprocMetastoreService().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig 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.dataproc.v1.MetastoreConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies a Metastore configuration.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.MetastoreConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.MetastoreConfig) - com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.MetastoreConfig.class, - com.google.cloud.dataproc.v1.MetastoreConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.MetastoreConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dataprocMetastoreService_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_MetastoreConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig build() { - com.google.cloud.dataproc.v1.MetastoreConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig buildPartial() { - com.google.cloud.dataproc.v1.MetastoreConfig result = - new com.google.cloud.dataproc.v1.MetastoreConfig(this); - result.dataprocMetastoreService_ = dataprocMetastoreService_; - 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.dataproc.v1.MetastoreConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.MetastoreConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.MetastoreConfig other) { - if (other == com.google.cloud.dataproc.v1.MetastoreConfig.getDefaultInstance()) return this; - if (!other.getDataprocMetastoreService().isEmpty()) { - dataprocMetastoreService_ = other.dataprocMetastoreService_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dataprocMetastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object dataprocMetastoreService_ = ""; - /** - * - * - *
-     * Required. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-     * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataprocMetastoreService. - */ - public java.lang.String getDataprocMetastoreService() { - java.lang.Object ref = dataprocMetastoreService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataprocMetastoreService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-     * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataprocMetastoreService. - */ - public com.google.protobuf.ByteString getDataprocMetastoreServiceBytes() { - java.lang.Object ref = dataprocMetastoreService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataprocMetastoreService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-     * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The dataprocMetastoreService to set. - * @return This builder for chaining. - */ - public Builder setDataprocMetastoreService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dataprocMetastoreService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-     * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearDataprocMetastoreService() { - - dataprocMetastoreService_ = getDefaultInstance().getDataprocMetastoreService(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-     * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for dataprocMetastoreService to set. - * @return This builder for chaining. - */ - public Builder setDataprocMetastoreServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dataprocMetastoreService_ = 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.dataproc.v1.MetastoreConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.MetastoreConfig) - private static final com.google.cloud.dataproc.v1.MetastoreConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.MetastoreConfig(); - } - - public static com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetastoreConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.MetastoreConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java deleted file mode 100644 index c0c1d17b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java +++ /dev/null @@ -1,58 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface MetastoreConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.MetastoreConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataprocMetastoreService. - */ - java.lang.String getDataprocMetastoreService(); - /** - * - * - *
-   * Required. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`
-   * 
- * - * - * string dataproc_metastore_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataprocMetastoreService. - */ - com.google.protobuf.ByteString getDataprocMetastoreServiceBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java deleted file mode 100644 index a503ed13..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java +++ /dev/null @@ -1,663 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Node Group Affinity for clusters using sole-tenant node groups.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} - */ -public final class NodeGroupAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeGroupAffinity) - NodeGroupAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeGroupAffinity.newBuilder() to construct. - private NodeGroupAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeGroupAffinity() { - nodeGroupUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeGroupAffinity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupAffinity.class, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); - } - - public static final int NODE_GROUP_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeGroupUri_; - /** - * - * - *
-   * Required. The URI of a
-   * sole-tenant [node group
-   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-   * that the cluster will be created on.
-   * A full URL, partial URI, or node group name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `node-group-1`
-   * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeGroupUri. - */ - @java.lang.Override - public java.lang.String getNodeGroupUri() { - java.lang.Object ref = nodeGroupUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroupUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The URI of a
-   * sole-tenant [node group
-   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-   * that the cluster will be created on.
-   * A full URL, partial URI, or node group name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `node-group-1`
-   * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeGroupUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodeGroupUriBytes() { - java.lang.Object ref = nodeGroupUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeGroupUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(nodeGroupUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeGroupUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroupUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeGroupUri_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.NodeGroupAffinity)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.NodeGroupAffinity other = - (com.google.cloud.dataproc.v1.NodeGroupAffinity) obj; - - if (!getNodeGroupUri().equals(other.getNodeGroupUri())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_GROUP_URI_FIELD_NUMBER; - hash = (53 * hash) + getNodeGroupUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity 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.dataproc.v1.NodeGroupAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Node Group Affinity for clusters using sole-tenant node groups.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.NodeGroupAffinity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeGroupAffinity) - com.google.cloud.dataproc.v1.NodeGroupAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeGroupAffinity.class, - com.google.cloud.dataproc.v1.NodeGroupAffinity.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.NodeGroupAffinity.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - nodeGroupUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinity build() { - com.google.cloud.dataproc.v1.NodeGroupAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinity buildPartial() { - com.google.cloud.dataproc.v1.NodeGroupAffinity result = - new com.google.cloud.dataproc.v1.NodeGroupAffinity(this); - result.nodeGroupUri_ = nodeGroupUri_; - 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.dataproc.v1.NodeGroupAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1.NodeGroupAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeGroupAffinity other) { - if (other == com.google.cloud.dataproc.v1.NodeGroupAffinity.getDefaultInstance()) return this; - if (!other.getNodeGroupUri().isEmpty()) { - nodeGroupUri_ = other.nodeGroupUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - nodeGroupUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object nodeGroupUri_ = ""; - /** - * - * - *
-     * Required. The URI of a
-     * sole-tenant [node group
-     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-     * that the cluster will be created on.
-     * A full URL, partial URI, or node group name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `node-group-1`
-     * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeGroupUri. - */ - public java.lang.String getNodeGroupUri() { - java.lang.Object ref = nodeGroupUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroupUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The URI of a
-     * sole-tenant [node group
-     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-     * that the cluster will be created on.
-     * A full URL, partial URI, or node group name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `node-group-1`
-     * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeGroupUri. - */ - public com.google.protobuf.ByteString getNodeGroupUriBytes() { - java.lang.Object ref = nodeGroupUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeGroupUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The URI of a
-     * sole-tenant [node group
-     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-     * that the cluster will be created on.
-     * A full URL, partial URI, or node group name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `node-group-1`
-     * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nodeGroupUri to set. - * @return This builder for chaining. - */ - public Builder setNodeGroupUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeGroupUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The URI of a
-     * sole-tenant [node group
-     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-     * that the cluster will be created on.
-     * A full URL, partial URI, or node group name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `node-group-1`
-     * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNodeGroupUri() { - - nodeGroupUri_ = getDefaultInstance().getNodeGroupUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The URI of a
-     * sole-tenant [node group
-     * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-     * that the cluster will be created on.
-     * A full URL, partial URI, or node group name are valid. Examples:
-     * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-     * * `node-group-1`
-     * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for nodeGroupUri to set. - * @return This builder for chaining. - */ - public Builder setNodeGroupUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeGroupUri_ = 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.dataproc.v1.NodeGroupAffinity) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeGroupAffinity) - private static final com.google.cloud.dataproc.v1.NodeGroupAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeGroupAffinity(); - } - - public static com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeGroupAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeGroupAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java deleted file mode 100644 index 5ec58655..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java +++ /dev/null @@ -1,64 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface NodeGroupAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeGroupAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The URI of a
-   * sole-tenant [node group
-   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-   * that the cluster will be created on.
-   * A full URL, partial URI, or node group name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `node-group-1`
-   * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeGroupUri. - */ - java.lang.String getNodeGroupUri(); - /** - * - * - *
-   * Required. The URI of a
-   * sole-tenant [node group
-   * resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)
-   * that the cluster will be created on.
-   * A full URL, partial URI, or node group name are valid. Examples:
-   * * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`
-   * * `node-group-1`
-   * 
- * - * string node_group_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeGroupUri. - */ - com.google.protobuf.ByteString getNodeGroupUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java deleted file mode 100644 index 5817a83b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java +++ /dev/null @@ -1,970 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies an executable to run on a fully configured node and a
- * timeout period for executable completion.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction} - */ -public final class NodeInitializationAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.NodeInitializationAction) - NodeInitializationActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeInitializationAction.newBuilder() to construct. - private NodeInitializationAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeInitializationAction() { - executableFile_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeInitializationAction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeInitializationAction.class, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class); - } - - public static final int EXECUTABLE_FILE_FIELD_NUMBER = 1; - private volatile java.lang.Object executableFile_; - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - @java.lang.Override - public java.lang.String getExecutableFile() { - java.lang.Object ref = executableFile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executableFile_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExecutableFileBytes() { - java.lang.Object ref = executableFile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - executableFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; - private com.google.protobuf.Duration executionTimeout_; - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - @java.lang.Override - public boolean hasExecutionTimeout() { - return executionTimeout_ != null; - } - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - return getExecutionTimeout(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(executableFile_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executableFile_); - } - if (executionTimeout_ != null) { - output.writeMessage(2, getExecutionTimeout()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executableFile_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executableFile_); - } - if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.NodeInitializationAction)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.NodeInitializationAction other = - (com.google.cloud.dataproc.v1.NodeInitializationAction) obj; - - if (!getExecutableFile().equals(other.getExecutableFile())) return false; - if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; - if (hasExecutionTimeout()) { - if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EXECUTABLE_FILE_FIELD_NUMBER; - hash = (53 * hash) + getExecutableFile().hashCode(); - if (hasExecutionTimeout()) { - hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getExecutionTimeout().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction 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.dataproc.v1.NodeInitializationAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction 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.dataproc.v1.NodeInitializationAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction 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.dataproc.v1.NodeInitializationAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies an executable to run on a fully configured node and a
-   * timeout period for executable completion.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.NodeInitializationAction} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.NodeInitializationAction) - com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.NodeInitializationAction.class, - com.google.cloud.dataproc.v1.NodeInitializationAction.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.NodeInitializationAction.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - executableFile_ = ""; - - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_NodeInitializationAction_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationAction build() { - com.google.cloud.dataproc.v1.NodeInitializationAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationAction buildPartial() { - com.google.cloud.dataproc.v1.NodeInitializationAction result = - new com.google.cloud.dataproc.v1.NodeInitializationAction(this); - result.executableFile_ = executableFile_; - if (executionTimeoutBuilder_ == null) { - result.executionTimeout_ = executionTimeout_; - } else { - result.executionTimeout_ = executionTimeoutBuilder_.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.dataproc.v1.NodeInitializationAction) { - return mergeFrom((com.google.cloud.dataproc.v1.NodeInitializationAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.NodeInitializationAction other) { - if (other == com.google.cloud.dataproc.v1.NodeInitializationAction.getDefaultInstance()) - return this; - if (!other.getExecutableFile().isEmpty()) { - executableFile_ = other.executableFile_; - onChanged(); - } - if (other.hasExecutionTimeout()) { - mergeExecutionTimeout(other.getExecutionTimeout()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - executableFile_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object executableFile_ = ""; - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - public java.lang.String getExecutableFile() { - java.lang.Object ref = executableFile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executableFile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - public com.google.protobuf.ByteString getExecutableFileBytes() { - java.lang.Object ref = executableFile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - executableFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The executableFile to set. - * @return This builder for chaining. - */ - public Builder setExecutableFile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executableFile_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearExecutableFile() { - - executableFile_ = getDefaultInstance().getExecutableFile(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Cloud Storage URI of executable file.
-     * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for executableFile to set. - * @return This builder for chaining. - */ - public Builder setExecutableFileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executableFile_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration executionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - executionTimeoutBuilder_; - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - public boolean hasExecutionTimeout() { - return executionTimeoutBuilder_ != null || executionTimeout_ != null; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - public com.google.protobuf.Duration getExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } else { - return executionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionTimeout_ = value; - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = builderForValue.build(); - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (executionTimeout_ != null) { - executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - executionTimeout_ = value; - } - onChanged(); - } else { - executionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - onChanged(); - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - - onChanged(); - return getExecutionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - if (executionTimeoutBuilder_ != null) { - return executionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; - } - } - /** - * - * - *
-     * Optional. Amount of time executable has to complete. Default is
-     * 10 minutes (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Cluster creation fails with an explanatory error message (the
-     * name of the executable that caused the error and the exceeded timeout
-     * period) if the executable is not completed at end of the timeout period.
-     * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getExecutionTimeoutFieldBuilder() { - if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), getParentForChildren(), isClean()); - executionTimeout_ = null; - } - return executionTimeoutBuilder_; - } - - @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.dataproc.v1.NodeInitializationAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.NodeInitializationAction) - private static final com.google.cloud.dataproc.v1.NodeInitializationAction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.NodeInitializationAction(); - } - - public static com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeInitializationAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.NodeInitializationAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java deleted file mode 100644 index a16592c0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java +++ /dev/null @@ -1,106 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface NodeInitializationActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.NodeInitializationAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The executableFile. - */ - java.lang.String getExecutableFile(); - /** - * - * - *
-   * Required. Cloud Storage URI of executable file.
-   * 
- * - * string executable_file = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for executableFile. - */ - com.google.protobuf.ByteString getExecutableFileBytes(); - - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the executionTimeout field is set. - */ - boolean hasExecutionTimeout(); - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The executionTimeout. - */ - com.google.protobuf.Duration getExecutionTimeout(); - /** - * - * - *
-   * Optional. Amount of time executable has to complete. Default is
-   * 10 minutes (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Cluster creation fails with an explanatory error message (the
-   * name of the executable that caused the error and the exceeded timeout
-   * period) if the executable is not completed at end of the timeout period.
-   * 
- * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java deleted file mode 100644 index bda66040..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java +++ /dev/null @@ -1,172 +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/dataproc/v1/operations.proto - -package com.google.cloud.dataproc.v1; - -public final class OperationsProto { - private OperationsProto() {} - - 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_dataproc_v1_BatchOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_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/dataproc/v1/operations.pr" - + "oto\022\030google.cloud.dataproc.v1\032\037google/ap" - + "i/field_behavior.proto\032\037google/protobuf/" - + "timestamp.proto\"\343\003\n\026BatchOperationMetada" - + "ta\022\r\n\005batch\030\001 \001(\t\022\022\n\nbatch_uuid\030\002 \001(\t\022/\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estamp\022-\n\tdone_time\030\004 \001(\0132\032.google.proto" - + "buf.Timestamp\022[\n\016operation_type\030\006 \001(\0162C." - + "google.cloud.dataproc.v1.BatchOperationM" - + "etadata.BatchOperationType\022\023\n\013descriptio" - + "n\030\007 \001(\t\022L\n\006labels\030\010 \003(\0132<.google.cloud.d" - + "ataproc.v1.BatchOperationMetadata.Labels" - + "Entry\022\020\n\010warnings\030\t \003(\t\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\022BatchO" - + "perationType\022$\n BATCH_OPERATION_TYPE_UNS" - + "PECIFIED\020\000\022\t\n\005BATCH\020\001\"\211\002\n\026ClusterOperati" - + "onStatus\022J\n\005state\030\001 \001(\01626.google.cloud.d" - + "ataproc.v1.ClusterOperationStatus.StateB" - + "\003\340A\003\022\030\n\013inner_state\030\002 \001(\tB\003\340A\003\022\024\n\007detail" - + "s\030\003 \001(\tB\003\340A\003\0229\n\020state_start_time\030\004 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\"8\n\005State" - + "\022\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022" - + "\010\n\004DONE\020\003\"\270\003\n\030ClusterOperationMetadata\022\031" - + "\n\014cluster_name\030\007 \001(\tB\003\340A\003\022\031\n\014cluster_uui" - + "d\030\010 \001(\tB\003\340A\003\022E\n\006status\030\t \001(\01320.google.cl" - + "oud.dataproc.v1.ClusterOperationStatusB\003" - + "\340A\003\022M\n\016status_history\030\n \003(\01320.google.clo" - + "ud.dataproc.v1.ClusterOperationStatusB\003\340" - + "A\003\022\033\n\016operation_type\030\013 \001(\tB\003\340A\003\022\030\n\013descr" - + "iption\030\014 \001(\tB\003\340A\003\022S\n\006labels\030\r \003(\0132>.goog" - + "le.cloud.dataproc.v1.ClusterOperationMet" - + "adata.LabelsEntryB\003\340A\003\022\025\n\010warnings\030\016 \003(\t" - + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001Bs\n\034com.google.cloud.datapro" - + "c.v1B\017OperationsProtoP\001Z@google.golang.o" - + "rg/genproto/googleapis/cloud/dataproc/v1" - + ";dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor, - new java.lang.String[] { - "Batch", - "BatchUuid", - "CreateTime", - "DoneTime", - "OperationType", - "Description", - "Labels", - "Warnings", - }); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_BatchOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationStatus_descriptor, - new java.lang.String[] { - "State", "InnerState", "Details", "StateStartTime", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor, - new java.lang.String[] { - "ClusterName", - "ClusterUuid", - "Status", - "StatusHistory", - "OperationType", - "Description", - "Labels", - "Warnings", - }); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ClusterOperationMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java deleted file mode 100644 index d34cfb85..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java +++ /dev/null @@ -1,4285 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A job executed by the workflow.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} - */ -public final class OrderedJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.OrderedJob) - OrderedJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use OrderedJob.newBuilder() to construct. - private OrderedJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OrderedJob() { - stepId_ = ""; - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OrderedJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, - com.google.cloud.dataproc.v1.OrderedJob.Builder.class); - } - - private int jobTypeCase_ = 0; - private java.lang.Object jobType_; - - public enum JobTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - HADOOP_JOB(2), - SPARK_JOB(3), - PYSPARK_JOB(4), - HIVE_JOB(5), - PIG_JOB(6), - SPARK_R_JOB(11), - SPARK_SQL_JOB(7), - PRESTO_JOB(12), - JOBTYPE_NOT_SET(0); - private final int value; - - private JobTypeCase(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 JobTypeCase valueOf(int value) { - return forNumber(value); - } - - public static JobTypeCase forNumber(int value) { - switch (value) { - case 2: - return HADOOP_JOB; - case 3: - return SPARK_JOB; - case 4: - return PYSPARK_JOB; - case 5: - return HIVE_JOB; - case 6: - return PIG_JOB; - case 11: - return SPARK_R_JOB; - case 7: - return SPARK_SQL_JOB; - case 12: - return PRESTO_JOB; - case 0: - return JOBTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object stepId_; - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-   * steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - @java.lang.Override - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-   * steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HADOOP_JOB_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return jobTypeCase_ == 2; - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - - public static final int SPARK_JOB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return jobTypeCase_ == 3; - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - - public static final int PYSPARK_JOB_FIELD_NUMBER = 4; - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return jobTypeCase_ == 4; - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - - public static final int HIVE_JOB_FIELD_NUMBER = 5; - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return jobTypeCase_ == 5; - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - - public static final int PIG_JOB_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return jobTypeCase_ == 6; - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getPigJob() { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - - public static final int SPARK_R_JOB_FIELD_NUMBER = 11; - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return jobTypeCase_ == 11; - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - - public static final int SPARK_SQL_JOB_FIELD_NUMBER = 7; - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return jobTypeCase_ == 7; - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - - public static final int PRESTO_JOB_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return jobTypeCase_ == 12; - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - - public static final int LABELS_FIELD_NUMBER = 8; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SCHEDULING_FIELD_NUMBER = 9; - private com.google.cloud.dataproc.v1.JobScheduling scheduling_; - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - @java.lang.Override - public boolean hasScheduling() { - return scheduling_ != null; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { - return getScheduling(); - } - - public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList prerequisiteStepIds_; - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_; - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); - } - if (jobTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); - } - if (jobTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); - } - if (jobTypeCase_ == 4) { - output.writeMessage(4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); - } - if (jobTypeCase_ == 5) { - output.writeMessage(5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); - } - if (jobTypeCase_ == 6) { - output.writeMessage(6, (com.google.cloud.dataproc.v1.PigJob) jobType_); - } - if (jobTypeCase_ == 7) { - output.writeMessage(7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); - if (scheduling_ != null) { - output.writeMessage(9, getScheduling()); - } - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, prerequisiteStepIds_.getRaw(i)); - } - if (jobTypeCase_ == 11) { - output.writeMessage(11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); - } - if (jobTypeCase_ == 12) { - output.writeMessage(12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); - } - if (jobTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.HadoopJob) jobType_); - } - if (jobTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dataproc.v1.SparkJob) jobType_); - } - if (jobTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dataproc.v1.PySparkJob) jobType_); - } - if (jobTypeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dataproc.v1.HiveJob) jobType_); - } - if (jobTypeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.PigJob) jobType_); - } - if (jobTypeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_); - } - 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(8, labels__); - } - if (scheduling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getScheduling()); - } - { - int dataSize = 0; - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - dataSize += computeStringSizeNoTag(prerequisiteStepIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrerequisiteStepIdsList().size(); - } - if (jobTypeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.dataproc.v1.SparkRJob) jobType_); - } - if (jobTypeCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.dataproc.v1.PrestoJob) jobType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.OrderedJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.OrderedJob other = (com.google.cloud.dataproc.v1.OrderedJob) obj; - - if (!getStepId().equals(other.getStepId())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasScheduling() != other.hasScheduling()) return false; - if (hasScheduling()) { - if (!getScheduling().equals(other.getScheduling())) return false; - } - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobTypeCase().equals(other.getJobTypeCase())) return false; - switch (jobTypeCase_) { - case 2: - if (!getHadoopJob().equals(other.getHadoopJob())) return false; - break; - case 3: - if (!getSparkJob().equals(other.getSparkJob())) return false; - break; - case 4: - if (!getPysparkJob().equals(other.getPysparkJob())) return false; - break; - case 5: - if (!getHiveJob().equals(other.getHiveJob())) return false; - break; - case 6: - if (!getPigJob().equals(other.getPigJob())) return false; - break; - case 11: - if (!getSparkRJob().equals(other.getSparkRJob())) return false; - break; - case 7: - if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false; - break; - case 12: - if (!getPrestoJob().equals(other.getPrestoJob())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStepId().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasScheduling()) { - hash = (37 * hash) + SCHEDULING_FIELD_NUMBER; - hash = (53 * hash) + getScheduling().hashCode(); - } - if (getPrerequisiteStepIdsCount() > 0) { - hash = (37 * hash) + PREREQUISITE_STEP_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPrerequisiteStepIdsList().hashCode(); - } - switch (jobTypeCase_) { - case 2: - hash = (37 * hash) + HADOOP_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHadoopJob().hashCode(); - break; - case 3: - hash = (37 * hash) + SPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkJob().hashCode(); - break; - case 4: - hash = (37 * hash) + PYSPARK_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPysparkJob().hashCode(); - break; - case 5: - hash = (37 * hash) + HIVE_JOB_FIELD_NUMBER; - hash = (53 * hash) + getHiveJob().hashCode(); - break; - case 6: - hash = (37 * hash) + PIG_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPigJob().hashCode(); - break; - case 11: - hash = (37 * hash) + SPARK_R_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkRJob().hashCode(); - break; - case 7: - hash = (37 * hash) + SPARK_SQL_JOB_FIELD_NUMBER; - hash = (53 * hash) + getSparkSqlJob().hashCode(); - break; - case 12: - hash = (37 * hash) + PRESTO_JOB_FIELD_NUMBER; - hash = (53 * hash) + getPrestoJob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.OrderedJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.OrderedJob 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.dataproc.v1.OrderedJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.OrderedJob 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.dataproc.v1.OrderedJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.OrderedJob 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.dataproc.v1.OrderedJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 job executed by the workflow.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.OrderedJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.OrderedJob) - com.google.cloud.dataproc.v1.OrderedJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.OrderedJob.class, - com.google.cloud.dataproc.v1.OrderedJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.OrderedJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - stepId_ = ""; - - if (hadoopJobBuilder_ != null) { - hadoopJobBuilder_.clear(); - } - if (sparkJobBuilder_ != null) { - sparkJobBuilder_.clear(); - } - if (pysparkJobBuilder_ != null) { - pysparkJobBuilder_.clear(); - } - if (hiveJobBuilder_ != null) { - hiveJobBuilder_.clear(); - } - if (pigJobBuilder_ != null) { - pigJobBuilder_.clear(); - } - if (sparkRJobBuilder_ != null) { - sparkRJobBuilder_.clear(); - } - if (sparkSqlJobBuilder_ != null) { - sparkSqlJobBuilder_.clear(); - } - if (prestoJobBuilder_ != null) { - prestoJobBuilder_.clear(); - } - internalGetMutableLabels().clear(); - if (schedulingBuilder_ == null) { - scheduling_ = null; - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - jobTypeCase_ = 0; - jobType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJob build() { - com.google.cloud.dataproc.v1.OrderedJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJob buildPartial() { - com.google.cloud.dataproc.v1.OrderedJob result = - new com.google.cloud.dataproc.v1.OrderedJob(this); - int from_bitField0_ = bitField0_; - result.stepId_ = stepId_; - if (jobTypeCase_ == 2) { - if (hadoopJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = hadoopJobBuilder_.build(); - } - } - if (jobTypeCase_ == 3) { - if (sparkJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkJobBuilder_.build(); - } - } - if (jobTypeCase_ == 4) { - if (pysparkJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = pysparkJobBuilder_.build(); - } - } - if (jobTypeCase_ == 5) { - if (hiveJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = hiveJobBuilder_.build(); - } - } - if (jobTypeCase_ == 6) { - if (pigJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = pigJobBuilder_.build(); - } - } - if (jobTypeCase_ == 11) { - if (sparkRJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkRJobBuilder_.build(); - } - } - if (jobTypeCase_ == 7) { - if (sparkSqlJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = sparkSqlJobBuilder_.build(); - } - } - if (jobTypeCase_ == 12) { - if (prestoJobBuilder_ == null) { - result.jobType_ = jobType_; - } else { - result.jobType_ = prestoJobBuilder_.build(); - } - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (schedulingBuilder_ == null) { - result.scheduling_ = scheduling_; - } else { - result.scheduling_ = schedulingBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.prerequisiteStepIds_ = prerequisiteStepIds_; - result.jobTypeCase_ = jobTypeCase_; - 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.dataproc.v1.OrderedJob) { - return mergeFrom((com.google.cloud.dataproc.v1.OrderedJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.OrderedJob other) { - if (other == com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()) return this; - if (!other.getStepId().isEmpty()) { - stepId_ = other.stepId_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasScheduling()) { - mergeScheduling(other.getScheduling()); - } - if (!other.prerequisiteStepIds_.isEmpty()) { - if (prerequisiteStepIds_.isEmpty()) { - prerequisiteStepIds_ = other.prerequisiteStepIds_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.addAll(other.prerequisiteStepIds_); - } - onChanged(); - } - switch (other.getJobTypeCase()) { - case HADOOP_JOB: - { - mergeHadoopJob(other.getHadoopJob()); - break; - } - case SPARK_JOB: - { - mergeSparkJob(other.getSparkJob()); - break; - } - case PYSPARK_JOB: - { - mergePysparkJob(other.getPysparkJob()); - break; - } - case HIVE_JOB: - { - mergeHiveJob(other.getHiveJob()); - break; - } - case PIG_JOB: - { - mergePigJob(other.getPigJob()); - break; - } - case SPARK_R_JOB: - { - mergeSparkRJob(other.getSparkRJob()); - break; - } - case SPARK_SQL_JOB: - { - mergeSparkSqlJob(other.getSparkSqlJob()); - break; - } - case PRESTO_JOB: - { - mergePrestoJob(other.getPrestoJob()); - break; - } - case JOBTYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - stepId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getHadoopJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getSparkJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getPysparkJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getHiveJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getPigJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getSparkSqlJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 7; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 66 - case 74: - { - input.readMessage(getSchedulingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 82 - case 90: - { - input.readMessage(getSparkRJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage(getPrestoJobFieldBuilder().getBuilder(), extensionRegistry); - jobTypeCase_ = 12; - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int jobTypeCase_ = 0; - private java.lang.Object jobType_; - - public JobTypeCase getJobTypeCase() { - return JobTypeCase.forNumber(jobTypeCase_); - } - - public Builder clearJobType() { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object stepId_ = ""; - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-     * steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-     * steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-     * steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The stepId to set. - * @return This builder for chaining. - */ - public Builder setStepId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stepId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-     * steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearStepId() { - - stepId_ = getDefaultInstance().getStepId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The step id. The id must be unique among all jobs
-     * within the template.
-     * The step id is used as prefix for job id, as job
-     * `goog-dataproc-workflow-step-id` label, and in
-     * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-     * steps.
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). Cannot begin or end with underscore
-     * or hyphen. Must consist of between 3 and 50 characters.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for stepId to set. - * @return This builder for chaining. - */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stepId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - hadoopJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - @java.lang.Override - public boolean hasHadoopJob() { - return jobTypeCase_ == 2; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJob getHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 2) { - return hadoopJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - hadoopJobBuilder_.setMessage(value); - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHadoopJob(com.google.cloud.dataproc.v1.HadoopJob.Builder builderForValue) { - if (hadoopJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - hadoopJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHadoopJob(com.google.cloud.dataproc.v1.HadoopJob value) { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2 - && jobType_ != com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.HadoopJob.newBuilder( - (com.google.cloud.dataproc.v1.HadoopJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 2) { - hadoopJobBuilder_.mergeFrom(value); - } else { - hadoopJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHadoopJob() { - if (hadoopJobBuilder_ == null) { - if (jobTypeCase_ == 2) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 2) { - jobTypeCase_ = 0; - jobType_ = null; - } - hadoopJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.HadoopJob.Builder getHadoopJobBuilder() { - return getHadoopJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder() { - if ((jobTypeCase_ == 2) && (hadoopJobBuilder_ != null)) { - return hadoopJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.HadoopJob) jobType_; - } - return com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hadoop job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder> - getHadoopJobFieldBuilder() { - if (hadoopJobBuilder_ == null) { - if (!(jobTypeCase_ == 2)) { - jobType_ = com.google.cloud.dataproc.v1.HadoopJob.getDefaultInstance(); - } - hadoopJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HadoopJob, - com.google.cloud.dataproc.v1.HadoopJob.Builder, - com.google.cloud.dataproc.v1.HadoopJobOrBuilder>( - (com.google.cloud.dataproc.v1.HadoopJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 2; - onChanged(); - ; - return hadoopJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - sparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - @java.lang.Override - public boolean hasSparkJob() { - return jobTypeCase_ == 3; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getSparkJob() { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 3) { - return sparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkJob(com.google.cloud.dataproc.v1.SparkJob.Builder builderForValue) { - if (sparkJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkJob(com.google.cloud.dataproc.v1.SparkJob value) { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3 - && jobType_ != com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 3) { - sparkJobBuilder_.mergeFrom(value); - } else { - sparkJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkJob() { - if (sparkJobBuilder_ == null) { - if (jobTypeCase_ == 3) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 3) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkJob.Builder getSparkJobBuilder() { - return getSparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder() { - if ((jobTypeCase_ == 3) && (sparkJobBuilder_ != null)) { - return sparkJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 3) { - return (com.google.cloud.dataproc.v1.SparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Spark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder> - getSparkJobFieldBuilder() { - if (sparkJobBuilder_ == null) { - if (!(jobTypeCase_ == 3)) { - jobType_ = com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - sparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkJob, - com.google.cloud.dataproc.v1.SparkJob.Builder, - com.google.cloud.dataproc.v1.SparkJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 3; - onChanged(); - ; - return sparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - pysparkJobBuilder_; - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - @java.lang.Override - public boolean hasPysparkJob() { - return jobTypeCase_ == 4; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 4) { - return pysparkJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - pysparkJobBuilder_.setMessage(value); - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPysparkJob(com.google.cloud.dataproc.v1.PySparkJob.Builder builderForValue) { - if (pysparkJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - pysparkJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePysparkJob(com.google.cloud.dataproc.v1.PySparkJob value) { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4 - && jobType_ != com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PySparkJob.newBuilder( - (com.google.cloud.dataproc.v1.PySparkJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 4) { - pysparkJobBuilder_.mergeFrom(value); - } else { - pysparkJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPysparkJob() { - if (pysparkJobBuilder_ == null) { - if (jobTypeCase_ == 4) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 4) { - jobTypeCase_ = 0; - jobType_ = null; - } - pysparkJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PySparkJob.Builder getPysparkJobBuilder() { - return getPysparkJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder() { - if ((jobTypeCase_ == 4) && (pysparkJobBuilder_ != null)) { - return pysparkJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 4) { - return (com.google.cloud.dataproc.v1.PySparkJob) jobType_; - } - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a PySpark job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder> - getPysparkJobFieldBuilder() { - if (pysparkJobBuilder_ == null) { - if (!(jobTypeCase_ == 4)) { - jobType_ = com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - pysparkJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PySparkJob, - com.google.cloud.dataproc.v1.PySparkJob.Builder, - com.google.cloud.dataproc.v1.PySparkJobOrBuilder>( - (com.google.cloud.dataproc.v1.PySparkJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 4; - onChanged(); - ; - return pysparkJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - hiveJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - @java.lang.Override - public boolean hasHiveJob() { - return jobTypeCase_ == 5; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJob getHiveJob() { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 5) { - return hiveJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - hiveJobBuilder_.setMessage(value); - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHiveJob(com.google.cloud.dataproc.v1.HiveJob.Builder builderForValue) { - if (hiveJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - hiveJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeHiveJob(com.google.cloud.dataproc.v1.HiveJob value) { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5 - && jobType_ != com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.HiveJob.newBuilder( - (com.google.cloud.dataproc.v1.HiveJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 5) { - hiveJobBuilder_.mergeFrom(value); - } else { - hiveJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 5; - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHiveJob() { - if (hiveJobBuilder_ == null) { - if (jobTypeCase_ == 5) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 5) { - jobTypeCase_ = 0; - jobType_ = null; - } - hiveJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.HiveJob.Builder getHiveJobBuilder() { - return getHiveJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder() { - if ((jobTypeCase_ == 5) && (hiveJobBuilder_ != null)) { - return hiveJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 5) { - return (com.google.cloud.dataproc.v1.HiveJob) jobType_; - } - return com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Hive job.
-     * 
- * - * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder> - getHiveJobFieldBuilder() { - if (hiveJobBuilder_ == null) { - if (!(jobTypeCase_ == 5)) { - jobType_ = com.google.cloud.dataproc.v1.HiveJob.getDefaultInstance(); - } - hiveJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.HiveJob, - com.google.cloud.dataproc.v1.HiveJob.Builder, - com.google.cloud.dataproc.v1.HiveJobOrBuilder>( - (com.google.cloud.dataproc.v1.HiveJob) jobType_, getParentForChildren(), isClean()); - jobType_ = null; - } - jobTypeCase_ = 5; - onChanged(); - ; - return hiveJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - pigJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - @java.lang.Override - public boolean hasPigJob() { - return jobTypeCase_ == 6; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getPigJob() { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 6) { - return pigJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob value) { - if (pigJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - pigJobBuilder_.setMessage(value); - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPigJob(com.google.cloud.dataproc.v1.PigJob.Builder builderForValue) { - if (pigJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - pigJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePigJob(com.google.cloud.dataproc.v1.PigJob value) { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6 - && jobType_ != com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PigJob.newBuilder( - (com.google.cloud.dataproc.v1.PigJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 6) { - pigJobBuilder_.mergeFrom(value); - } else { - pigJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 6; - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPigJob() { - if (pigJobBuilder_ == null) { - if (jobTypeCase_ == 6) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 6) { - jobTypeCase_ = 0; - jobType_ = null; - } - pigJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PigJob.Builder getPigJobBuilder() { - return getPigJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder() { - if ((jobTypeCase_ == 6) && (pigJobBuilder_ != null)) { - return pigJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 6) { - return (com.google.cloud.dataproc.v1.PigJob) jobType_; - } - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Pig job.
-     * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder> - getPigJobFieldBuilder() { - if (pigJobBuilder_ == null) { - if (!(jobTypeCase_ == 6)) { - jobType_ = com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - pigJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PigJob, - com.google.cloud.dataproc.v1.PigJob.Builder, - com.google.cloud.dataproc.v1.PigJobOrBuilder>( - (com.google.cloud.dataproc.v1.PigJob) jobType_, getParentForChildren(), isClean()); - jobType_ = null; - } - jobTypeCase_ = 6; - onChanged(); - ; - return pigJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - sparkRJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - @java.lang.Override - public boolean hasSparkRJob() { - return jobTypeCase_ == 11; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 11) { - return sparkRJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkRJobBuilder_.setMessage(value); - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkRJob(com.google.cloud.dataproc.v1.SparkRJob.Builder builderForValue) { - if (sparkRJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkRJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkRJob(com.google.cloud.dataproc.v1.SparkRJob value) { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11 - && jobType_ != com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkRJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkRJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 11) { - sparkRJobBuilder_.mergeFrom(value); - } else { - sparkRJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkRJob() { - if (sparkRJobBuilder_ == null) { - if (jobTypeCase_ == 11) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 11) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkRJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkRJob.Builder getSparkRJobBuilder() { - return getSparkRJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder() { - if ((jobTypeCase_ == 11) && (sparkRJobBuilder_ != null)) { - return sparkRJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 11) { - return (com.google.cloud.dataproc.v1.SparkRJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkR job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder> - getSparkRJobFieldBuilder() { - if (sparkRJobBuilder_ == null) { - if (!(jobTypeCase_ == 11)) { - jobType_ = com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - sparkRJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkRJob, - com.google.cloud.dataproc.v1.SparkRJob.Builder, - com.google.cloud.dataproc.v1.SparkRJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkRJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 11; - onChanged(); - ; - return sparkRJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - sparkSqlJobBuilder_; - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - @java.lang.Override - public boolean hasSparkSqlJob() { - return jobTypeCase_ == 7; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 7) { - return sparkSqlJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkSqlJob( - com.google.cloud.dataproc.v1.SparkSqlJob.Builder builderForValue) { - if (sparkSqlJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - sparkSqlJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkSqlJob(com.google.cloud.dataproc.v1.SparkSqlJob value) { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7 - && jobType_ != com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder( - (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 7) { - sparkSqlJobBuilder_.mergeFrom(value); - } else { - sparkSqlJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 7; - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkSqlJob() { - if (sparkSqlJobBuilder_ == null) { - if (jobTypeCase_ == 7) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 7) { - jobTypeCase_ = 0; - jobType_ = null; - } - sparkSqlJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkSqlJob.Builder getSparkSqlJobBuilder() { - return getSparkSqlJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder() { - if ((jobTypeCase_ == 7) && (sparkSqlJobBuilder_ != null)) { - return sparkSqlJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 7) { - return (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_; - } - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a SparkSql job.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder> - getSparkSqlJobFieldBuilder() { - if (sparkSqlJobBuilder_ == null) { - if (!(jobTypeCase_ == 7)) { - jobType_ = com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - sparkSqlJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkSqlJob, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder, - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder>( - (com.google.cloud.dataproc.v1.SparkSqlJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 7; - onChanged(); - ; - return sparkSqlJobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - prestoJobBuilder_; - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - @java.lang.Override - public boolean hasPrestoJob() { - return jobTypeCase_ == 12; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getPrestoJob() { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } else { - if (jobTypeCase_ == 12) { - return prestoJobBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jobType_ = value; - onChanged(); - } else { - prestoJobBuilder_.setMessage(value); - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrestoJob(com.google.cloud.dataproc.v1.PrestoJob.Builder builderForValue) { - if (prestoJobBuilder_ == null) { - jobType_ = builderForValue.build(); - onChanged(); - } else { - prestoJobBuilder_.setMessage(builderForValue.build()); - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePrestoJob(com.google.cloud.dataproc.v1.PrestoJob value) { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12 - && jobType_ != com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) { - jobType_ = - com.google.cloud.dataproc.v1.PrestoJob.newBuilder( - (com.google.cloud.dataproc.v1.PrestoJob) jobType_) - .mergeFrom(value) - .buildPartial(); - } else { - jobType_ = value; - } - onChanged(); - } else { - if (jobTypeCase_ == 12) { - prestoJobBuilder_.mergeFrom(value); - } else { - prestoJobBuilder_.setMessage(value); - } - } - jobTypeCase_ = 12; - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPrestoJob() { - if (prestoJobBuilder_ == null) { - if (jobTypeCase_ == 12) { - jobTypeCase_ = 0; - jobType_ = null; - onChanged(); - } - } else { - if (jobTypeCase_ == 12) { - jobTypeCase_ = 0; - jobType_ = null; - } - prestoJobBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.PrestoJob.Builder getPrestoJobBuilder() { - return getPrestoJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder() { - if ((jobTypeCase_ == 12) && (prestoJobBuilder_ != null)) { - return prestoJobBuilder_.getMessageOrBuilder(); - } else { - if (jobTypeCase_ == 12) { - return (com.google.cloud.dataproc.v1.PrestoJob) jobType_; - } - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Job is a Presto job.
-     * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder> - getPrestoJobFieldBuilder() { - if (prestoJobBuilder_ == null) { - if (!(jobTypeCase_ == 12)) { - jobType_ = com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - prestoJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.PrestoJob, - com.google.cloud.dataproc.v1.PrestoJob.Builder, - com.google.cloud.dataproc.v1.PrestoJobOrBuilder>( - (com.google.cloud.dataproc.v1.PrestoJob) jobType_, - getParentForChildren(), - isClean()); - jobType_ = null; - } - jobTypeCase_ = 12; - onChanged(); - ; - return prestoJobBuilder_; - } - - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this job.
-     * Label keys must be between 1 and 63 characters long, and must conform to
-     * the following regular expression:
-     * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-     * Label values must be between 1 and 63 characters long, and must conform to
-     * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-     * No more than 32 labels can be associated with a given job.
-     * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.JobScheduling scheduling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> - schedulingBuilder_; - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - public boolean hasScheduling() { - return schedulingBuilder_ != null || scheduling_ != null; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - public com.google.cloud.dataproc.v1.JobScheduling getScheduling() { - if (schedulingBuilder_ == null) { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } else { - return schedulingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduling_ = value; - onChanged(); - } else { - schedulingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setScheduling( - com.google.cloud.dataproc.v1.JobScheduling.Builder builderForValue) { - if (schedulingBuilder_ == null) { - scheduling_ = builderForValue.build(); - onChanged(); - } else { - schedulingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeScheduling(com.google.cloud.dataproc.v1.JobScheduling value) { - if (schedulingBuilder_ == null) { - if (scheduling_ != null) { - scheduling_ = - com.google.cloud.dataproc.v1.JobScheduling.newBuilder(scheduling_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduling_ = value; - } - onChanged(); - } else { - schedulingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearScheduling() { - if (schedulingBuilder_ == null) { - scheduling_ = null; - onChanged(); - } else { - scheduling_ = null; - schedulingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobScheduling.Builder getSchedulingBuilder() { - - onChanged(); - return getSchedulingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder() { - if (schedulingBuilder_ != null) { - return schedulingBuilder_.getMessageOrBuilder(); - } else { - return scheduling_ == null - ? com.google.cloud.dataproc.v1.JobScheduling.getDefaultInstance() - : scheduling_; - } - } - /** - * - * - *
-     * Optional. Job scheduling configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder> - getSchedulingFieldBuilder() { - if (schedulingBuilder_ == null) { - schedulingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.JobScheduling, - com.google.cloud.dataproc.v1.JobScheduling.Builder, - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder>( - getScheduling(), getParentForChildren(), isClean()); - scheduling_ = null; - } - return schedulingBuilder_; - } - - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrerequisiteStepIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The prerequisiteStepIds to set. - * @return This builder for chaining. - */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { - ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrerequisiteStepIds() { - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The optional list of prerequisite job step_ids.
-     * If not specified, the job will start at the beginning of workflow.
-     * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(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.dataproc.v1.OrderedJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.OrderedJob) - private static final com.google.cloud.dataproc.v1.OrderedJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.OrderedJob(); - } - - public static com.google.cloud.dataproc.v1.OrderedJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrderedJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java deleted file mode 100644 index d810593c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java +++ /dev/null @@ -1,579 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface OrderedJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.OrderedJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-   * steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The stepId. - */ - java.lang.String getStepId(); - /** - * - * - *
-   * Required. The step id. The id must be unique among all jobs
-   * within the template.
-   * The step id is used as prefix for job id, as job
-   * `goog-dataproc-workflow-step-id` label, and in
-   * [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other
-   * steps.
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). Cannot begin or end with underscore
-   * or hyphen. Must consist of between 3 and 50 characters.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for stepId. - */ - com.google.protobuf.ByteString getStepIdBytes(); - - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hadoopJob field is set. - */ - boolean hasHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hadoopJob. - */ - com.google.cloud.dataproc.v1.HadoopJob getHadoopJob(); - /** - * - * - *
-   * Optional. Job is a Hadoop job.
-   * 
- * - * - * .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.HadoopJobOrBuilder getHadoopJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkJob field is set. - */ - boolean hasSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkJob. - */ - com.google.cloud.dataproc.v1.SparkJob getSparkJob(); - /** - * - * - *
-   * Optional. Job is a Spark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkJobOrBuilder getSparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pysparkJob field is set. - */ - boolean hasPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pysparkJob. - */ - com.google.cloud.dataproc.v1.PySparkJob getPysparkJob(); - /** - * - * - *
-   * Optional. Job is a PySpark job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PySparkJobOrBuilder getPysparkJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the hiveJob field is set. - */ - boolean hasHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The hiveJob. - */ - com.google.cloud.dataproc.v1.HiveJob getHiveJob(); - /** - * - * - *
-   * Optional. Job is a Hive job.
-   * 
- * - * .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.HiveJobOrBuilder getHiveJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pigJob field is set. - */ - boolean hasPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pigJob. - */ - com.google.cloud.dataproc.v1.PigJob getPigJob(); - /** - * - * - *
-   * Optional. Job is a Pig job.
-   * 
- * - * .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PigJobOrBuilder getPigJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkRJob field is set. - */ - boolean hasSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkRJob. - */ - com.google.cloud.dataproc.v1.SparkRJob getSparkRJob(); - /** - * - * - *
-   * Optional. Job is a SparkR job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkRJobOrBuilder getSparkRJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkSqlJob field is set. - */ - boolean hasSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkSqlJob. - */ - com.google.cloud.dataproc.v1.SparkSqlJob getSparkSqlJob(); - /** - * - * - *
-   * Optional. Job is a SparkSql job.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder getSparkSqlJobOrBuilder(); - - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the prestoJob field is set. - */ - boolean hasPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The prestoJob. - */ - com.google.cloud.dataproc.v1.PrestoJob getPrestoJob(); - /** - * - * - *
-   * Optional. Job is a Presto job.
-   * 
- * - * - * .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.PrestoJobOrBuilder getPrestoJobOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this job.
-   * Label keys must be between 1 and 63 characters long, and must conform to
-   * the following regular expression:
-   * [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
-   * Label values must be between 1 and 63 characters long, and must conform to
-   * the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
-   * No more than 32 labels can be associated with a given job.
-   * 
- * - * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the scheduling field is set. - */ - boolean hasScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The scheduling. - */ - com.google.cloud.dataproc.v1.JobScheduling getScheduling(); - /** - * - * - *
-   * Optional. Job scheduling configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.JobSchedulingOrBuilder getSchedulingOrBuilder(); - - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - java.util.List getPrerequisiteStepIdsList(); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of prerequisiteStepIds. - */ - int getPrerequisiteStepIdsCount(); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - java.lang.String getPrerequisiteStepIds(int index); - /** - * - * - *
-   * Optional. The optional list of prerequisite job step_ids.
-   * If not specified, the job will start at the beginning of workflow.
-   * 
- * - * repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); - - public com.google.cloud.dataproc.v1.OrderedJob.JobTypeCase getJobTypeCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java deleted file mode 100644 index 8575719d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java +++ /dev/null @@ -1,1109 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Configuration for parameter validation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} - */ -public final class ParameterValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ParameterValidation) - ParameterValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterValidation.newBuilder() to construct. - private ParameterValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ParameterValidation() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ParameterValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, - com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); - } - - private int validationTypeCase_ = 0; - private java.lang.Object validationType_; - - public enum ValidationTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - REGEX(1), - VALUES(2), - VALIDATIONTYPE_NOT_SET(0); - private final int value; - - private ValidationTypeCase(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 ValidationTypeCase valueOf(int value) { - return forNumber(value); - } - - public static ValidationTypeCase forNumber(int value) { - switch (value) { - case 1: - return REGEX; - case 2: - return VALUES; - case 0: - return VALIDATIONTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); - } - - public static final int REGEX_FIELD_NUMBER = 1; - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - @java.lang.Override - public boolean hasRegex() { - return validationTypeCase_ == 1; - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return The regex. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation getRegex() { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - - public static final int VALUES_FIELD_NUMBER = 2; - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return validationTypeCase_ == 2; - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return The values. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation getValues() { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder() { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (validationTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); - } - if (validationTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (validationTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1.RegexValidation) validationType_); - } - if (validationTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.ValueValidation) validationType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ParameterValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ParameterValidation other = - (com.google.cloud.dataproc.v1.ParameterValidation) obj; - - if (!getValidationTypeCase().equals(other.getValidationTypeCase())) return false; - switch (validationTypeCase_) { - case 1: - if (!getRegex().equals(other.getRegex())) return false; - break; - case 2: - if (!getValues().equals(other.getValues())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (validationTypeCase_) { - case 1: - hash = (37 * hash) + REGEX_FIELD_NUMBER; - hash = (53 * hash) + getRegex().hashCode(); - break; - case 2: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation 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.dataproc.v1.ParameterValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation 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.dataproc.v1.ParameterValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation 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.dataproc.v1.ParameterValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Configuration for parameter validation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ParameterValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ParameterValidation) - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ParameterValidation.class, - com.google.cloud.dataproc.v1.ParameterValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ParameterValidation.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (regexBuilder_ != null) { - regexBuilder_.clear(); - } - if (valuesBuilder_ != null) { - valuesBuilder_.clear(); - } - validationTypeCase_ = 0; - validationType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidation build() { - com.google.cloud.dataproc.v1.ParameterValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidation buildPartial() { - com.google.cloud.dataproc.v1.ParameterValidation result = - new com.google.cloud.dataproc.v1.ParameterValidation(this); - if (validationTypeCase_ == 1) { - if (regexBuilder_ == null) { - result.validationType_ = validationType_; - } else { - result.validationType_ = regexBuilder_.build(); - } - } - if (validationTypeCase_ == 2) { - if (valuesBuilder_ == null) { - result.validationType_ = validationType_; - } else { - result.validationType_ = valuesBuilder_.build(); - } - } - result.validationTypeCase_ = validationTypeCase_; - 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.dataproc.v1.ParameterValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ParameterValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ParameterValidation other) { - if (other == com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance()) - return this; - switch (other.getValidationTypeCase()) { - case REGEX: - { - mergeRegex(other.getRegex()); - break; - } - case VALUES: - { - mergeValues(other.getValues()); - break; - } - case VALIDATIONTYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getRegexFieldBuilder().getBuilder(), extensionRegistry); - validationTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getValuesFieldBuilder().getBuilder(), extensionRegistry); - validationTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int validationTypeCase_ = 0; - private java.lang.Object validationType_; - - public ValidationTypeCase getValidationTypeCase() { - return ValidationTypeCase.forNumber(validationTypeCase_); - } - - public Builder clearValidationType() { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder> - regexBuilder_; - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - @java.lang.Override - public boolean hasRegex() { - return validationTypeCase_ == 1; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return The regex. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation getRegex() { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } else { - if (validationTypeCase_ == 1) { - return regexBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation value) { - if (regexBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validationType_ = value; - onChanged(); - } else { - regexBuilder_.setMessage(value); - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - public Builder setRegex(com.google.cloud.dataproc.v1.RegexValidation.Builder builderForValue) { - if (regexBuilder_ == null) { - validationType_ = builderForValue.build(); - onChanged(); - } else { - regexBuilder_.setMessage(builderForValue.build()); - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - public Builder mergeRegex(com.google.cloud.dataproc.v1.RegexValidation value) { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1 - && validationType_ - != com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1.RegexValidation.newBuilder( - (com.google.cloud.dataproc.v1.RegexValidation) validationType_) - .mergeFrom(value) - .buildPartial(); - } else { - validationType_ = value; - } - onChanged(); - } else { - if (validationTypeCase_ == 1) { - regexBuilder_.mergeFrom(value); - } else { - regexBuilder_.setMessage(value); - } - } - validationTypeCase_ = 1; - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - public Builder clearRegex() { - if (regexBuilder_ == null) { - if (validationTypeCase_ == 1) { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - } - } else { - if (validationTypeCase_ == 1) { - validationTypeCase_ = 0; - validationType_ = null; - } - regexBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - public com.google.cloud.dataproc.v1.RegexValidation.Builder getRegexBuilder() { - return getRegexFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder() { - if ((validationTypeCase_ == 1) && (regexBuilder_ != null)) { - return regexBuilder_.getMessageOrBuilder(); - } else { - if (validationTypeCase_ == 1) { - return (com.google.cloud.dataproc.v1.RegexValidation) validationType_; - } - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on regular expressions.
-     * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder> - getRegexFieldBuilder() { - if (regexBuilder_ == null) { - if (!(validationTypeCase_ == 1)) { - validationType_ = com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - regexBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.RegexValidation, - com.google.cloud.dataproc.v1.RegexValidation.Builder, - com.google.cloud.dataproc.v1.RegexValidationOrBuilder>( - (com.google.cloud.dataproc.v1.RegexValidation) validationType_, - getParentForChildren(), - isClean()); - validationType_ = null; - } - validationTypeCase_ = 1; - onChanged(); - ; - return regexBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder> - valuesBuilder_; - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return validationTypeCase_ == 2; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return The values. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation getValues() { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } else { - if (validationTypeCase_ == 2) { - return valuesBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validationType_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - public Builder setValues(com.google.cloud.dataproc.v1.ValueValidation.Builder builderForValue) { - if (valuesBuilder_ == null) { - validationType_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - public Builder mergeValues(com.google.cloud.dataproc.v1.ValueValidation value) { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2 - && validationType_ - != com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) { - validationType_ = - com.google.cloud.dataproc.v1.ValueValidation.newBuilder( - (com.google.cloud.dataproc.v1.ValueValidation) validationType_) - .mergeFrom(value) - .buildPartial(); - } else { - validationType_ = value; - } - onChanged(); - } else { - if (validationTypeCase_ == 2) { - valuesBuilder_.mergeFrom(value); - } else { - valuesBuilder_.setMessage(value); - } - } - validationTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - if (validationTypeCase_ == 2) { - validationTypeCase_ = 0; - validationType_ = null; - onChanged(); - } - } else { - if (validationTypeCase_ == 2) { - validationTypeCase_ = 0; - validationType_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - public com.google.cloud.dataproc.v1.ValueValidation.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder() { - if ((validationTypeCase_ == 2) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (validationTypeCase_ == 2) { - return (com.google.cloud.dataproc.v1.ValueValidation) validationType_; - } - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - } - /** - * - * - *
-     * Validation based on a list of allowed values.
-     * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(validationTypeCase_ == 2)) { - validationType_ = com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - valuesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ValueValidation, - com.google.cloud.dataproc.v1.ValueValidation.Builder, - com.google.cloud.dataproc.v1.ValueValidationOrBuilder>( - (com.google.cloud.dataproc.v1.ValueValidation) validationType_, - getParentForChildren(), - isClean()); - validationType_ = null; - } - validationTypeCase_ = 2; - onChanged(); - ; - return valuesBuilder_; - } - - @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.dataproc.v1.ParameterValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ParameterValidation) - private static final com.google.cloud.dataproc.v1.ParameterValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ParameterValidation(); - } - - public static com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java deleted file mode 100644 index 5528b51c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java +++ /dev/null @@ -1,98 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ParameterValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ParameterValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return Whether the regex field is set. - */ - boolean hasRegex(); - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - * - * @return The regex. - */ - com.google.cloud.dataproc.v1.RegexValidation getRegex(); - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * .google.cloud.dataproc.v1.RegexValidation regex = 1; - */ - com.google.cloud.dataproc.v1.RegexValidationOrBuilder getRegexOrBuilder(); - - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return Whether the values field is set. - */ - boolean hasValues(); - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - * - * @return The values. - */ - com.google.cloud.dataproc.v1.ValueValidation getValues(); - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * .google.cloud.dataproc.v1.ValueValidation values = 2; - */ - com.google.cloud.dataproc.v1.ValueValidationOrBuilder getValuesOrBuilder(); - - public com.google.cloud.dataproc.v1.ParameterValidation.ValidationTypeCase - getValidationTypeCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java deleted file mode 100644 index f49d93b1..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfig.java +++ /dev/null @@ -1,929 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Auxiliary services configuration for a workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} - */ -public final class PeripheralsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PeripheralsConfig) - PeripheralsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PeripheralsConfig.newBuilder() to construct. - private PeripheralsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PeripheralsConfig() { - metastoreService_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PeripheralsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); - } - - public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object metastoreService_; - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metastoreService. - */ - @java.lang.Override - public java.lang.String getMetastoreService() { - java.lang.Object ref = metastoreService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metastoreService_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for metastoreService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMetastoreServiceBytes() { - java.lang.Object ref = metastoreService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metastoreService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - @java.lang.Override - public boolean hasSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ != null; - } - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { - return getSparkHistoryServerConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(metastoreService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); - } - if (sparkHistoryServerConfig_ != null) { - output.writeMessage(2, getSparkHistoryServerConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metastoreService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metastoreService_); - } - if (sparkHistoryServerConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSparkHistoryServerConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.PeripheralsConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.PeripheralsConfig other = - (com.google.cloud.dataproc.v1.PeripheralsConfig) obj; - - if (!getMetastoreService().equals(other.getMetastoreService())) return false; - if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; - if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METASTORE_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getMetastoreService().hashCode(); - if (hasSparkHistoryServerConfig()) { - hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig 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.dataproc.v1.PeripheralsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Auxiliary services configuration for a workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PeripheralsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PeripheralsConfig) - com.google.cloud.dataproc.v1.PeripheralsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PeripheralsConfig.class, - com.google.cloud.dataproc.v1.PeripheralsConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.PeripheralsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metastoreService_ = ""; - - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = null; - } else { - sparkHistoryServerConfig_ = null; - sparkHistoryServerConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfig build() { - com.google.cloud.dataproc.v1.PeripheralsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfig buildPartial() { - com.google.cloud.dataproc.v1.PeripheralsConfig result = - new com.google.cloud.dataproc.v1.PeripheralsConfig(this); - result.metastoreService_ = metastoreService_; - if (sparkHistoryServerConfigBuilder_ == null) { - result.sparkHistoryServerConfig_ = sparkHistoryServerConfig_; - } else { - result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_.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.dataproc.v1.PeripheralsConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.PeripheralsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.PeripheralsConfig other) { - if (other == com.google.cloud.dataproc.v1.PeripheralsConfig.getDefaultInstance()) return this; - if (!other.getMetastoreService().isEmpty()) { - metastoreService_ = other.metastoreService_; - onChanged(); - } - if (other.hasSparkHistoryServerConfig()) { - mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - metastoreService_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object metastoreService_ = ""; - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[region]/services/[service_id]`
-     * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metastoreService. - */ - public java.lang.String getMetastoreService() { - java.lang.Object ref = metastoreService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metastoreService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[region]/services/[service_id]`
-     * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for metastoreService. - */ - public com.google.protobuf.ByteString getMetastoreServiceBytes() { - java.lang.Object ref = metastoreService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - metastoreService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[region]/services/[service_id]`
-     * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The metastoreService to set. - * @return This builder for chaining. - */ - public Builder setMetastoreService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metastoreService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[region]/services/[service_id]`
-     * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMetastoreService() { - - metastoreService_ = getDefaultInstance().getMetastoreService(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Metastore service.
-     * Example:
-     * * `projects/[project_id]/locations/[region]/services/[service_id]`
-     * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for metastoreService to set. - * @return This builder for chaining. - */ - public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metastoreService_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - sparkHistoryServerConfigBuilder_; - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - public boolean hasSparkHistoryServerConfig() { - return sparkHistoryServerConfigBuilder_ != null || sparkHistoryServerConfig_ != null; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } else { - return sparkHistoryServerConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { - if (sparkHistoryServerConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sparkHistoryServerConfig_ = value; - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder builderForValue) { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = builderForValue.build(); - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeSparkHistoryServerConfig( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig value) { - if (sparkHistoryServerConfigBuilder_ == null) { - if (sparkHistoryServerConfig_ != null) { - sparkHistoryServerConfig_ = - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder( - sparkHistoryServerConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - sparkHistoryServerConfig_ = value; - } - onChanged(); - } else { - sparkHistoryServerConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSparkHistoryServerConfig() { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfig_ = null; - onChanged(); - } else { - sparkHistoryServerConfig_ = null; - sparkHistoryServerConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder - getSparkHistoryServerConfigBuilder() { - - onChanged(); - return getSparkHistoryServerConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder() { - if (sparkHistoryServerConfigBuilder_ != null) { - return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); - } else { - return sparkHistoryServerConfig_ == null - ? com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance() - : sparkHistoryServerConfig_; - } - } - /** - * - * - *
-     * Optional. The Spark History Server configuration for the workload.
-     * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder> - getSparkHistoryServerConfigFieldBuilder() { - if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.SparkHistoryServerConfig, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder, - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), getParentForChildren(), isClean()); - sparkHistoryServerConfig_ = null; - } - return sparkHistoryServerConfigBuilder_; - } - - @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.dataproc.v1.PeripheralsConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PeripheralsConfig) - private static final com.google.cloud.dataproc.v1.PeripheralsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PeripheralsConfig(); - } - - public static com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeripheralsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PeripheralsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java deleted file mode 100644 index 9797286c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PeripheralsConfigOrBuilder.java +++ /dev/null @@ -1,96 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface PeripheralsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PeripheralsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metastoreService. - */ - java.lang.String getMetastoreService(); - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for metastoreService. - */ - com.google.protobuf.ByteString getMetastoreServiceBytes(); - - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sparkHistoryServerConfig field is set. - */ - boolean hasSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sparkHistoryServerConfig. - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); - /** - * - * - *
-   * Optional. The Spark History Server configuration for the workload.
-   * 
- * - * - * .google.cloud.dataproc.v1.SparkHistoryServerConfig spark_history_server_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder - getSparkHistoryServerConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java deleted file mode 100644 index 6a0d2ba8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java +++ /dev/null @@ -1,2418 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running [Apache Pig](https://pig.apache.org/)
- * queries on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PigJob} - */ -public final class PigJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PigJob) - PigJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PigJob.newBuilder() to construct. - private PigJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PigJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PigJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PigJob.class, - com.google.cloud.dataproc.v1.PigJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 4; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 4); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jarFileUris_.getRaw(i)); - } - if (loggingConfig_ != null) { - output.writeMessage(7, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.PigJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.PigJob other = (com.google.cloud.dataproc.v1.PigJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PigJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PigJob 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.dataproc.v1.PigJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PigJob 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.dataproc.v1.PigJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PigJob 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.dataproc.v1.PigJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Pig](https://pig.apache.org/)
-   * queries on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PigJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PigJob) - com.google.cloud.dataproc.v1.PigJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetScriptVariables(); - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableScriptVariables(); - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PigJob.class, - com.google.cloud.dataproc.v1.PigJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.PigJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queryListBuilder_ != null) { - queryListBuilder_.clear(); - } - continueOnFailure_ = false; - - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PigJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.PigJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob build() { - com.google.cloud.dataproc.v1.PigJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob buildPartial() { - com.google.cloud.dataproc.v1.PigJob result = new com.google.cloud.dataproc.v1.PigJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1.PigJob) { - return mergeFrom((com.google.cloud.dataproc.v1.PigJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.PigJob other) { - if (other == com.google.cloud.dataproc.v1.PigJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - queriesCase_ = 1; - queries_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); - queriesCase_ = 2; - break; - } // case 18 - case 24: - { - continueOnFailure_ = input.readBool(); - - break; - } // case 24 - case 34: - { - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScriptVariables() - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 50 - case 58: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains the Pig queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } else { - queryListBuilder_.setMessage(value); - } - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the Pig
-     * command: `name=[value]`).
-     * 
- * - * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Pig.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-     * /etc/pig/conf/pig.properties, and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-     * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-     * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.PigJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PigJob) - private static final com.google.cloud.dataproc.v1.PigJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PigJob(); - } - - public static com.google.cloud.dataproc.v1.PigJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PigJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PigJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java deleted file mode 100644 index 6c621bef..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java +++ /dev/null @@ -1,358 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface PigJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PigJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains the Pig queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the Pig
-   * command: `name=[value]`).
-   * 
- * - * map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Pig.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml,
-   * /etc/pig/conf/pig.properties, and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATH of
-   * the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
-   * 
- * - * repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.PigJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java deleted file mode 100644 index 05d899d3..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java +++ /dev/null @@ -1,2257 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running [Presto](https://prestosql.io/) queries.
- * **IMPORTANT**: The [Dataproc Presto Optional
- * Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
- * must be enabled when the cluster is created to submit a Presto job to the
- * cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob} - */ -public final class PrestoJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PrestoJob) - PrestoJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrestoJob.newBuilder() to construct. - private PrestoJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrestoJob() { - outputFormat_ = ""; - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrestoJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PrestoJob.class, - com.google.cloud.dataproc.v1.PrestoJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - - public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER = 3; - private boolean continueOnFailure_; - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - - public static final int OUTPUT_FORMAT_FIELD_NUMBER = 4; - private volatile java.lang.Object outputFormat_; - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - @java.lang.Override - public java.lang.String getOutputFormat() { - java.lang.Object ref = outputFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputFormat_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutputFormatBytes() { - java.lang.Object ref = outputFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_TAGS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList clientTags_; - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { - return clientTags_; - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - public int getClientTagsCount() { - return clientTags_.size(); - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - public java.lang.String getClientTags(int index) { - return clientTags_.get(index); - } - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { - return clientTags_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 6; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - output.writeBool(3, continueOnFailure_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputFormat_); - } - for (int i = 0; i < clientTags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientTags_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 6); - if (loggingConfig_ != null) { - output.writeMessage(7, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - if (continueOnFailure_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, continueOnFailure_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputFormat_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputFormat_); - } - { - int dataSize = 0; - for (int i = 0; i < clientTags_.size(); i++) { - dataSize += computeStringSizeNoTag(clientTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getClientTagsList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.PrestoJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.PrestoJob other = (com.google.cloud.dataproc.v1.PrestoJob) obj; - - if (getContinueOnFailure() != other.getContinueOnFailure()) return false; - if (!getOutputFormat().equals(other.getOutputFormat())) return false; - if (!getClientTagsList().equals(other.getClientTagsList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTINUE_ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getContinueOnFailure()); - hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getOutputFormat().hashCode(); - if (getClientTagsCount() > 0) { - hash = (37 * hash) + CLIENT_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getClientTagsList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PrestoJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PrestoJob 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.dataproc.v1.PrestoJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PrestoJob 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.dataproc.v1.PrestoJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PrestoJob 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.dataproc.v1.PrestoJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Presto](https://prestosql.io/) queries.
-   * **IMPORTANT**: The [Dataproc Presto Optional
-   * Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
-   * must be enabled when the cluster is created to submit a Presto job to the
-   * cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PrestoJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PrestoJob) - com.google.cloud.dataproc.v1.PrestoJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PrestoJob.class, - com.google.cloud.dataproc.v1.PrestoJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.PrestoJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queryListBuilder_ != null) { - queryListBuilder_.clear(); - } - continueOnFailure_ = false; - - outputFormat_ = ""; - - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PrestoJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob build() { - com.google.cloud.dataproc.v1.PrestoJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob buildPartial() { - com.google.cloud.dataproc.v1.PrestoJob result = - new com.google.cloud.dataproc.v1.PrestoJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.continueOnFailure_ = continueOnFailure_; - result.outputFormat_ = outputFormat_; - if (((bitField0_ & 0x00000001) != 0)) { - clientTags_ = clientTags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clientTags_ = clientTags_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1.PrestoJob) { - return mergeFrom((com.google.cloud.dataproc.v1.PrestoJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.PrestoJob other) { - if (other == com.google.cloud.dataproc.v1.PrestoJob.getDefaultInstance()) return this; - if (other.getContinueOnFailure() != false) { - setContinueOnFailure(other.getContinueOnFailure()); - } - if (!other.getOutputFormat().isEmpty()) { - outputFormat_ = other.outputFormat_; - onChanged(); - } - if (!other.clientTags_.isEmpty()) { - if (clientTags_.isEmpty()) { - clientTags_ = other.clientTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClientTagsIsMutable(); - clientTags_.addAll(other.clientTags_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - queriesCase_ = 1; - queries_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); - queriesCase_ = 2; - break; - } // case 18 - case 24: - { - continueOnFailure_ = input.readBool(); - - break; - } // case 24 - case 34: - { - outputFormat_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureClientTagsIsMutable(); - clientTags_.add(s); - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 50 - case 58: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } else { - queryListBuilder_.setMessage(value); - } - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private boolean continueOnFailure_; - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - @java.lang.Override - public boolean getContinueOnFailure() { - return continueOnFailure_; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The continueOnFailure to set. - * @return This builder for chaining. - */ - public Builder setContinueOnFailure(boolean value) { - - continueOnFailure_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to continue executing queries if a query fails.
-     * The default value is `false`. Setting to `true` can be useful when
-     * executing independent parallel queries.
-     * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContinueOnFailure() { - - continueOnFailure_ = false; - onChanged(); - return this; - } - - private java.lang.Object outputFormat_ = ""; - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - public java.lang.String getOutputFormat() { - java.lang.Object ref = outputFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - public com.google.protobuf.ByteString getOutputFormatBytes() { - java.lang.Object ref = outputFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The outputFormat to set. - * @return This builder for chaining. - */ - public Builder setOutputFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputFormat_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOutputFormat() { - - outputFormat_ = getDefaultInstance().getOutputFormat(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The format in which query output will be displayed. See the
-     * Presto documentation for supported output formats
-     * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for outputFormat to set. - * @return This builder for chaining. - */ - public Builder setOutputFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputFormat_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList clientTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureClientTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clientTags_ = new com.google.protobuf.LazyStringArrayList(clientTags_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - public com.google.protobuf.ProtocolStringList getClientTagsList() { - return clientTags_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - public int getClientTagsCount() { - return clientTags_.size(); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - public java.lang.String getClientTags(int index) { - return clientTags_.get(index); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - public com.google.protobuf.ByteString getClientTagsBytes(int index) { - return clientTags_.getByteString(index); - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The clientTags to set. - * @return This builder for chaining. - */ - public Builder setClientTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); - clientTags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clientTags to add. - * @return This builder for chaining. - */ - public Builder addClientTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClientTagsIsMutable(); - clientTags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The clientTags to add. - * @return This builder for chaining. - */ - public Builder addAllClientTags(java.lang.Iterable values) { - ensureClientTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clientTags_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClientTags() { - clientTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Presto client tags to attach to this query
-     * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the clientTags to add. - * @return This builder for chaining. - */ - public Builder addClientTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClientTagsIsMutable(); - clientTags_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values. Used to set Presto
-     * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-     * Equivalent to using the --session flag in the Presto CLI
-     * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.PrestoJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PrestoJob) - private static final com.google.cloud.dataproc.v1.PrestoJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PrestoJob(); - } - - public static com.google.cloud.dataproc.v1.PrestoJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PrestoJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java deleted file mode 100644 index c1ad6cda..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java +++ /dev/null @@ -1,307 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface PrestoJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PrestoJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Whether to continue executing queries if a query fails.
-   * The default value is `false`. Setting to `true` can be useful when
-   * executing independent parallel queries.
-   * 
- * - * bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The continueOnFailure. - */ - boolean getContinueOnFailure(); - - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The outputFormat. - */ - java.lang.String getOutputFormat(); - /** - * - * - *
-   * Optional. The format in which query output will be displayed. See the
-   * Presto documentation for supported output formats
-   * 
- * - * string output_format = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for outputFormat. - */ - com.google.protobuf.ByteString getOutputFormatBytes(); - - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the clientTags. - */ - java.util.List getClientTagsList(); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of clientTags. - */ - int getClientTagsCount(); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The clientTags at the given index. - */ - java.lang.String getClientTags(int index); - /** - * - * - *
-   * Optional. Presto client tags to attach to this query
-   * 
- * - * repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the clientTags at the given index. - */ - com.google.protobuf.ByteString getClientTagsBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values. Used to set Presto
-   * [session properties](https://prestodb.io/docs/current/sql/set-session.html)
-   * Equivalent to using the --session flag in the Presto CLI
-   * 
- * - * map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.PrestoJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java deleted file mode 100644 index a5dd1586..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatch.java +++ /dev/null @@ -1,2071 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A configuration for running an
- * [Apache
- * PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
- * batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch} - */ -public final class PySparkBatch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkBatch) - PySparkBatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use PySparkBatch.newBuilder() to construct. - private PySparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PySparkBatch() { - mainPythonFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PySparkBatch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PySparkBatch.class, - com.google.cloud.dataproc.v1.PySparkBatch.Builder.class); - } - - public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainPythonFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - @java.lang.Override - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList pythonFileUris_; - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_; - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < pythonFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonFileUris_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < pythonFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(pythonFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getPythonFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkBatch)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.PySparkBatch other = - (com.google.cloud.dataproc.v1.PySparkBatch) obj; - - if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAIN_PYTHON_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainPythonFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getPythonFileUrisCount() > 0) { - hash = (37 * hash) + PYTHON_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getPythonFileUrisList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch 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.dataproc.v1.PySparkBatch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configuration for running an
-   * [Apache
-   * PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
-   * batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PySparkBatch} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkBatch) - com.google.cloud.dataproc.v1.PySparkBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_PySparkBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PySparkBatch.class, - com.google.cloud.dataproc.v1.PySparkBatch.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.PySparkBatch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - mainPythonFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_PySparkBatch_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch build() { - com.google.cloud.dataproc.v1.PySparkBatch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch buildPartial() { - com.google.cloud.dataproc.v1.PySparkBatch result = - new com.google.cloud.dataproc.v1.PySparkBatch(this); - int from_bitField0_ = bitField0_; - result.mainPythonFileUri_ = mainPythonFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.pythonFileUris_ = pythonFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.archiveUris_ = archiveUris_; - 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.dataproc.v1.PySparkBatch) { - return mergeFrom((com.google.cloud.dataproc.v1.PySparkBatch) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkBatch other) { - if (other == com.google.cloud.dataproc.v1.PySparkBatch.getDefaultInstance()) return this; - if (!other.getMainPythonFileUri().isEmpty()) { - mainPythonFileUri_ = other.mainPythonFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.pythonFileUris_.isEmpty()) { - if (pythonFileUris_.isEmpty()) { - pythonFileUris_ = other.pythonFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePythonFileUrisIsMutable(); - pythonFileUris_.addAll(other.pythonFileUris_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - mainPythonFileUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object mainPythonFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainPythonFileUri() { - - mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pythonFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePythonFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The pythonFileUris to set. - * @return This builder for chaining. - */ - public Builder setPythonFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllPythonFileUris(java.lang.Iterable values) { - ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPythonFileUris() { - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000010; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(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.dataproc.v1.PySparkBatch) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkBatch) - private static final com.google.cloud.dataproc.v1.PySparkBatch DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkBatch(); - } - - public static com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkBatch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java deleted file mode 100644 index b65ba0cb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkBatchOrBuilder.java +++ /dev/null @@ -1,335 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface PySparkBatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkBatch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - java.lang.String getMainPythonFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the Spark driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - com.google.protobuf.ByteString getMainPythonFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - java.util.List getPythonFileUrisList(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - int getPythonFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - java.lang.String getPythonFileUris(int index); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: `.py`, `.egg`, and `.zip`.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - com.google.protobuf.ByteString getPythonFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java deleted file mode 100644 index dcdfa8b1..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java +++ /dev/null @@ -1,2729 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache
- * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html)
- * applications on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob} - */ -public final class PySparkJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.PySparkJob) - PySparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use PySparkJob.newBuilder() to construct. - private PySparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PySparkJob() { - mainPythonFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PySparkJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PySparkJob.class, - com.google.cloud.dataproc.v1.PySparkJob.Builder.class); - } - - public static final int MAIN_PYTHON_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainPythonFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - @java.lang.Override - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int PYTHON_FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList pythonFileUris_; - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_; - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(mainPythonFileUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPythonFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < pythonFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pythonFileUris_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPythonFileUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainPythonFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < pythonFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(pythonFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getPythonFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.PySparkJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.PySparkJob other = (com.google.cloud.dataproc.v1.PySparkJob) obj; - - if (!getMainPythonFileUri().equals(other.getMainPythonFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getPythonFileUrisList().equals(other.getPythonFileUrisList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAIN_PYTHON_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainPythonFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getPythonFileUrisCount() > 0) { - hash = (37 * hash) + PYTHON_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getPythonFileUrisList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.PySparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkJob 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.dataproc.v1.PySparkJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkJob 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.dataproc.v1.PySparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.PySparkJob 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.dataproc.v1.PySparkJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache
-   * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html)
-   * applications on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.PySparkJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.PySparkJob) - com.google.cloud.dataproc.v1.PySparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.PySparkJob.class, - com.google.cloud.dataproc.v1.PySparkJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.PySparkJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - mainPythonFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_PySparkJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob build() { - com.google.cloud.dataproc.v1.PySparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob buildPartial() { - com.google.cloud.dataproc.v1.PySparkJob result = - new com.google.cloud.dataproc.v1.PySparkJob(this); - int from_bitField0_ = bitField0_; - result.mainPythonFileUri_ = mainPythonFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = pythonFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.pythonFileUris_ = pythonFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.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.dataproc.v1.PySparkJob) { - return mergeFrom((com.google.cloud.dataproc.v1.PySparkJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.PySparkJob other) { - if (other == com.google.cloud.dataproc.v1.PySparkJob.getDefaultInstance()) return this; - if (!other.getMainPythonFileUri().isEmpty()) { - mainPythonFileUri_ = other.mainPythonFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.pythonFileUris_.isEmpty()) { - if (pythonFileUris_.isEmpty()) { - pythonFileUris_ = other.pythonFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePythonFileUrisIsMutable(); - pythonFileUris_.addAll(other.pythonFileUris_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - mainPythonFileUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 58 - case 66: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object mainPythonFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - public java.lang.String getMainPythonFileUri() { - java.lang.Object ref = mainPythonFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainPythonFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - public com.google.protobuf.ByteString getMainPythonFileUriBytes() { - java.lang.Object ref = mainPythonFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainPythonFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainPythonFileUri() { - - mainPythonFileUri_ = getDefaultInstance().getMainPythonFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main Python file to use as the driver. Must
-     * be a .py file.
-     * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainPythonFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainPythonFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainPythonFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pythonFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePythonFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - pythonFileUris_ = new com.google.protobuf.LazyStringArrayList(pythonFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - public com.google.protobuf.ProtocolStringList getPythonFileUrisList() { - return pythonFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - public int getPythonFileUrisCount() { - return pythonFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - public java.lang.String getPythonFileUris(int index) { - return pythonFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - public com.google.protobuf.ByteString getPythonFileUrisBytes(int index) { - return pythonFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The pythonFileUris to set. - * @return This builder for chaining. - */ - public Builder setPythonFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllPythonFileUris(java.lang.Iterable values) { - ensurePythonFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pythonFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPythonFileUris() { - pythonFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS file URIs of Python files to pass to the PySpark
-     * framework. Supported file types: .py, .egg, and .zip.
-     * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the pythonFileUris to add. - * @return This builder for chaining. - */ - public Builder addPythonFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePythonFileUrisIsMutable(); - pythonFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Python driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000010; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure PySpark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.PySparkJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.PySparkJob) - private static final com.google.cloud.dataproc.v1.PySparkJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.PySparkJob(); - } - - public static com.google.cloud.dataproc.v1.PySparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PySparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.PySparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java deleted file mode 100644 index 4542b0e7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java +++ /dev/null @@ -1,455 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface PySparkJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.PySparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainPythonFileUri. - */ - java.lang.String getMainPythonFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main Python file to use as the driver. Must
-   * be a .py file.
-   * 
- * - * string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainPythonFileUri. - */ - com.google.protobuf.ByteString getMainPythonFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the pythonFileUris. - */ - java.util.List getPythonFileUrisList(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of pythonFileUris. - */ - int getPythonFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The pythonFileUris at the given index. - */ - java.lang.String getPythonFileUris(int index); - /** - * - * - *
-   * Optional. HCFS file URIs of Python files to pass to the PySpark
-   * framework. Supported file types: .py, .egg, and .zip.
-   * 
- * - * repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the pythonFileUris at the given index. - */ - com.google.protobuf.ByteString getPythonFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Python driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure PySpark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java deleted file mode 100644 index c38582d1..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java +++ /dev/null @@ -1,864 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A list of queries to run on a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.QueryList} - */ -public final class QueryList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.QueryList) - QueryListOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueryList.newBuilder() to construct. - private QueryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueryList() { - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueryList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, - com.google.cloud.dataproc.v1.QueryList.Builder.class); - } - - public static final int QUERIES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList queries_; - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - return queries_; - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queries_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < queries_.size(); i++) { - dataSize += computeStringSizeNoTag(queries_.getRaw(i)); - } - size += dataSize; - size += 1 * getQueriesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.QueryList)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.QueryList other = (com.google.cloud.dataproc.v1.QueryList) obj; - - if (!getQueriesList().equals(other.getQueriesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.QueryList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.QueryList 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.dataproc.v1.QueryList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.QueryList 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.dataproc.v1.QueryList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.QueryList 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.dataproc.v1.QueryList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 list of queries to run on a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.QueryList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.QueryList) - com.google.cloud.dataproc.v1.QueryListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.QueryList.class, - com.google.cloud.dataproc.v1.QueryList.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.QueryList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_QueryList_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList build() { - com.google.cloud.dataproc.v1.QueryList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList buildPartial() { - com.google.cloud.dataproc.v1.QueryList result = - new com.google.cloud.dataproc.v1.QueryList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - queries_ = queries_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queries_ = queries_; - 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.dataproc.v1.QueryList) { - return mergeFrom((com.google.cloud.dataproc.v1.QueryList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.QueryList other) { - if (other == com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) return this; - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueriesIsMutable(); - queries_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList queries_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queries_ = new com.google.protobuf.LazyStringArrayList(queries_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - public com.google.protobuf.ProtocolStringList getQueriesList() { - return queries_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - public java.lang.String getQueries(int index) { - return queries_.get(index); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - public com.google.protobuf.ByteString getQueriesBytes(int index) { - return queries_.getByteString(index); - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The queries to set. - * @return This builder for chaining. - */ - public Builder setQueries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The queries to add. - * @return This builder for chaining. - */ - public Builder addQueries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The queries to add. - * @return This builder for chaining. - */ - public Builder addAllQueries(java.lang.Iterable values) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queries_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQueries() { - queries_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queries to execute. You do not need to end a query expression
-     * with a semicolon. Multiple queries can be specified in one
-     * string by separating each with a semicolon. Here is an example of a
-     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-     *     "hiveJob": {
-     *       "queryList": {
-     *         "queries": [
-     *           "query1",
-     *           "query2",
-     *           "query3;query4",
-     *         ]
-     *       }
-     *     }
-     * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the queries to add. - * @return This builder for chaining. - */ - public Builder addQueriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureQueriesIsMutable(); - queries_.add(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.dataproc.v1.QueryList) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.QueryList) - private static final com.google.cloud.dataproc.v1.QueryList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.QueryList(); - } - - public static com.google.cloud.dataproc.v1.QueryList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java deleted file mode 100644 index 05bb09a0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java +++ /dev/null @@ -1,124 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface QueryListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.QueryList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the queries. - */ - java.util.List getQueriesList(); - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of queries. - */ - int getQueriesCount(); - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The queries at the given index. - */ - java.lang.String getQueries(int index); - /** - * - * - *
-   * Required. The queries to execute. You do not need to end a query expression
-   * with a semicolon. Multiple queries can be specified in one
-   * string by separating each with a semicolon. Here is an example of a
-   * Dataproc API snippet that uses a QueryList to specify a HiveJob:
-   *     "hiveJob": {
-   *       "queryList": {
-   *         "queries": [
-   *           "query1",
-   *           "query2",
-   *           "query3;query4",
-   *         ]
-   *       }
-   *     }
-   * 
- * - * repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the queries at the given index. - */ - com.google.protobuf.ByteString getQueriesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java deleted file mode 100644 index 8246e4ed..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java +++ /dev/null @@ -1,735 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Validation based on regular expressions.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} - */ -public final class RegexValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RegexValidation) - RegexValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegexValidation.newBuilder() to construct. - private RegexValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RegexValidation() { - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RegexValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, - com.google.cloud.dataproc.v1.RegexValidation.Builder.class); - } - - public static final int REGEXES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList regexes_; - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the regexes. - */ - public com.google.protobuf.ProtocolStringList getRegexesList() { - return regexes_; - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of regexes. - */ - public int getRegexesCount() { - return regexes_.size(); - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - public java.lang.String getRegexes(int index) { - return regexes_.get(index); - } - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { - return regexes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < regexes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regexes_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < regexes_.size(); i++) { - dataSize += computeStringSizeNoTag(regexes_.getRaw(i)); - } - size += dataSize; - size += 1 * getRegexesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.RegexValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.RegexValidation other = - (com.google.cloud.dataproc.v1.RegexValidation) obj; - - if (!getRegexesList().equals(other.getRegexesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRegexesCount() > 0) { - hash = (37 * hash) + REGEXES_FIELD_NUMBER; - hash = (53 * hash) + getRegexesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RegexValidation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RegexValidation 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.dataproc.v1.RegexValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RegexValidation 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.dataproc.v1.RegexValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RegexValidation 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.dataproc.v1.RegexValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Validation based on regular expressions.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RegexValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RegexValidation) - com.google.cloud.dataproc.v1.RegexValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RegexValidation.class, - com.google.cloud.dataproc.v1.RegexValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.RegexValidation.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation build() { - com.google.cloud.dataproc.v1.RegexValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation buildPartial() { - com.google.cloud.dataproc.v1.RegexValidation result = - new com.google.cloud.dataproc.v1.RegexValidation(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - regexes_ = regexes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.regexes_ = regexes_; - 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.dataproc.v1.RegexValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.RegexValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.RegexValidation other) { - if (other == com.google.cloud.dataproc.v1.RegexValidation.getDefaultInstance()) return this; - if (!other.regexes_.isEmpty()) { - if (regexes_.isEmpty()) { - regexes_ = other.regexes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRegexesIsMutable(); - regexes_.addAll(other.regexes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRegexesIsMutable(); - regexes_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList regexes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureRegexesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - regexes_ = new com.google.protobuf.LazyStringArrayList(regexes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the regexes. - */ - public com.google.protobuf.ProtocolStringList getRegexesList() { - return regexes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of regexes. - */ - public int getRegexesCount() { - return regexes_.size(); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - public java.lang.String getRegexes(int index) { - return regexes_.get(index); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - public com.google.protobuf.ByteString getRegexesBytes(int index) { - return regexes_.getByteString(index); - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The regexes to set. - * @return This builder for chaining. - */ - public Builder setRegexes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); - regexes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The regexes to add. - * @return This builder for chaining. - */ - public Builder addRegexes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegexesIsMutable(); - regexes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The regexes to add. - * @return This builder for chaining. - */ - public Builder addAllRegexes(java.lang.Iterable values) { - ensureRegexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regexes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegexes() { - regexes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. RE2 regular expressions used to validate the parameter's value.
-     * The value must match the regex in its entirety (substring
-     * matches are not sufficient).
-     * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the regexes to add. - * @return This builder for chaining. - */ - public Builder addRegexesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRegexesIsMutable(); - regexes_.add(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.dataproc.v1.RegexValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RegexValidation) - private static final com.google.cloud.dataproc.v1.RegexValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RegexValidation(); - } - - public static com.google.cloud.dataproc.v1.RegexValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegexValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RegexValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java deleted file mode 100644 index d1b982af..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java +++ /dev/null @@ -1,84 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface RegexValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RegexValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the regexes. - */ - java.util.List getRegexesList(); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of regexes. - */ - int getRegexesCount(); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The regexes at the given index. - */ - java.lang.String getRegexes(int index); - /** - * - * - *
-   * Required. RE2 regular expressions used to validate the parameter's value.
-   * The value must match the regex in its entirety (substring
-   * matches are not sufficient).
-   * 
- * - * repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the regexes at the given index. - */ - com.google.protobuf.ByteString getRegexesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java deleted file mode 100644 index 7558381f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RegionName implements ResourceName { - private static final PathTemplate PROJECT_REGION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/regions/{region}"); - private volatile Map fieldValuesMap; - private final String project; - private final String region; - - @Deprecated - protected RegionName() { - project = null; - region = null; - } - - private RegionName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - } - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RegionName of(String project, String region) { - return newBuilder().setProject(project).setRegion(region).build(); - } - - public static String format(String project, String region) { - return newBuilder().setProject(project).setRegion(region).build().toString(); - } - - public static RegionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_REGION.validatedMatch( - formattedString, "RegionName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("region")); - } - - 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 (RegionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_REGION.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 (region != null) { - fieldMapBuilder.put("region", region); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_REGION.instantiate("project", project, "region", region); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RegionName that = ((RegionName) o); - return Objects.equals(this.project, that.project) && Objects.equals(this.region, that.region); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(region); - return h; - } - - /** Builder for projects/{project}/regions/{region}. */ - public static class Builder { - private String project; - private String region; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setRegion(String region) { - this.region = region; - return this; - } - - private Builder(RegionName regionName) { - this.project = regionName.project; - this.region = regionName.region; - } - - public RegionName build() { - return new RegionName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java deleted file mode 100644 index 3ce19c7b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java +++ /dev/null @@ -1,1223 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Reservation Affinity for consuming Zonal reservation.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} - */ -public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ReservationAffinity) - ReservationAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservationAffinity.newBuilder() to construct. - private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReservationAffinity() { - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); - } - - /** - * - * - *
-   * Indicates whether to consume capacity from an reservation or not.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.ReservationAffinity.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** TYPE_UNSPECIFIED = 0; */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Do not consume from any allocated capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - NO_RESERVATION(1), - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - ANY_RESERVATION(2), - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - SPECIFIC_RESERVATION(3), - UNRECOGNIZED(-1), - ; - - /** TYPE_UNSPECIFIED = 0; */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Do not consume from any allocated capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - public static final int NO_RESERVATION_VALUE = 1; - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - public static final int ANY_RESERVATION_VALUE = 2; - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - public static final int SPECIFIC_RESERVATION_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 Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return NO_RESERVATION; - case 2: - return ANY_RESERVATION; - case 3: - return SPECIFIC_RESERVATION; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ReservationAffinity.Type) - } - - public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; - private int consumeReservationType_; - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumeReservationType_ - != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, consumeReservationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumeReservationType_ - != com.google.cloud.dataproc.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ReservationAffinity)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ReservationAffinity other = - (com.google.cloud.dataproc.v1.ReservationAffinity) obj; - - if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSUME_RESERVATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + consumeReservationType_; - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity 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.dataproc.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity 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.dataproc.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity 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.dataproc.v1.ReservationAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Reservation Affinity for consuming Zonal reservation.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ReservationAffinity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ReservationAffinity) - com.google.cloud.dataproc.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ReservationAffinity.class, - com.google.cloud.dataproc.v1.ReservationAffinity.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ReservationAffinity.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - consumeReservationType_ = 0; - - key_ = ""; - - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity build() { - com.google.cloud.dataproc.v1.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity buildPartial() { - com.google.cloud.dataproc.v1.ReservationAffinity result = - new com.google.cloud.dataproc.v1.ReservationAffinity(this); - int from_bitField0_ = bitField0_; - result.consumeReservationType_ = consumeReservationType_; - result.key_ = key_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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.dataproc.v1.ReservationAffinity) { - return mergeFrom((com.google.cloud.dataproc.v1.ReservationAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ReservationAffinity other) { - if (other == com.google.cloud.dataproc.v1.ReservationAffinity.getDefaultInstance()) - return this; - if (other.consumeReservationType_ != 0) { - setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumeReservationType_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - key_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int consumeReservationType_ = 0; - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationTypeValue(int value) { - - consumeReservationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.ReservationAffinity.Type result = - com.google.cloud.dataproc.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.cloud.dataproc.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType( - com.google.cloud.dataproc.v1.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Type of reservation to consume
-     * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - - consumeReservationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - public com.google.protobuf.ByteString getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label key of reservation resource.
-     * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Corresponds to the label values of reservation resource.
-     * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - 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.dataproc.v1.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ReservationAffinity) - private static final com.google.cloud.dataproc.v1.ReservationAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ReservationAffinity(); - } - - public static com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ReservationAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java deleted file mode 100644 index 21a9f125..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,130 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ReservationAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - * - * - *
-   * Optional. Type of reservation to consume
-   * 
- * - * - * .google.cloud.dataproc.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The consumeReservationType. - */ - com.google.cloud.dataproc.v1.ReservationAffinity.Type getConsumeReservationType(); - - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-   * Optional. Corresponds to the label key of reservation resource.
-   * 
- * - * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-   * Optional. Corresponds to the label values of reservation resource.
-   * 
- * - * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java deleted file mode 100644 index 6dc77af1..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ /dev/null @@ -1,1147 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Runtime configuration for a workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} - */ -public final class RuntimeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeConfig) - RuntimeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeConfig.newBuilder() to construct. - private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RuntimeConfig() { - version_ = ""; - containerImage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RuntimeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - * - * - *
-   * Optional. Version of the batch runtime.
-   * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Version of the batch runtime.
-   * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.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 static final int CONTAINER_IMAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object containerImage_; - /** - * - * - *
-   * Optional. Optional custom container image for the job runtime environment. If
-   * not specified, a default container image will be used.
-   * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The containerImage. - */ - @java.lang.Override - public java.lang.String getContainerImage() { - java.lang.Object ref = containerImage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerImage_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Optional custom container image for the job runtime environment. If
-   * not specified, a default container image will be used.
-   * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for containerImage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContainerImageBytes() { - java.lang.Object ref = containerImage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - containerImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 3; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containerImage_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, containerImage_); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, properties__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.RuntimeConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.RuntimeConfig other = - (com.google.cloud.dataproc.v1.RuntimeConfig) obj; - - if (!getVersion().equals(other.getVersion())) return false; - if (!getContainerImage().equals(other.getContainerImage())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + CONTAINER_IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getContainerImage().hashCode(); - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig 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.dataproc.v1.RuntimeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Runtime configuration for a workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RuntimeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeConfig) - com.google.cloud.dataproc.v1.RuntimeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeConfig.class, - com.google.cloud.dataproc.v1.RuntimeConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.RuntimeConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - containerImage_ = ""; - - internalGetMutableProperties().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfig build() { - com.google.cloud.dataproc.v1.RuntimeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfig buildPartial() { - com.google.cloud.dataproc.v1.RuntimeConfig result = - new com.google.cloud.dataproc.v1.RuntimeConfig(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; - result.containerImage_ = containerImage_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - 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.dataproc.v1.RuntimeConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { - if (other == com.google.cloud.dataproc.v1.RuntimeConfig.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getContainerImage().isEmpty()) { - containerImage_ = other.containerImage_; - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - containerImage_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * Optional. Version of the batch runtime.
-     * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. Version of the batch runtime.
-     * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. Version of the batch runtime.
-     * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - /** - * - * - *
-     * Optional. Version of the batch runtime.
-     * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Version of the batch runtime.
-     * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - private java.lang.Object containerImage_ = ""; - /** - * - * - *
-     * Optional. Optional custom container image for the job runtime environment. If
-     * not specified, a default container image will be used.
-     * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The containerImage. - */ - public java.lang.String getContainerImage() { - java.lang.Object ref = containerImage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerImage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Optional custom container image for the job runtime environment. If
-     * not specified, a default container image will be used.
-     * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for containerImage. - */ - public com.google.protobuf.ByteString getContainerImageBytes() { - java.lang.Object ref = containerImage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - containerImage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Optional custom container image for the job runtime environment. If
-     * not specified, a default container image will be used.
-     * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The containerImage to set. - * @return This builder for chaining. - */ - public Builder setContainerImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - containerImage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Optional custom container image for the job runtime environment. If
-     * not specified, a default container image will be used.
-     * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContainerImage() { - - containerImage_ = getDefaultInstance().getContainerImage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Optional custom container image for the job runtime environment. If
-     * not specified, a default container image will be used.
-     * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for containerImage to set. - * @return This builder for chaining. - */ - public Builder setContainerImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - containerImage_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, which are used to configure workload
-     * execution.
-     * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - 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.dataproc.v1.RuntimeConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeConfig) - private static final com.google.cloud.dataproc.v1.RuntimeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeConfig(); - } - - public static com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java deleted file mode 100644 index f7a1a09d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java +++ /dev/null @@ -1,146 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface RuntimeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Version of the batch runtime.
-   * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * Optional. Version of the batch runtime.
-   * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * Optional. Optional custom container image for the job runtime environment. If
-   * not specified, a default container image will be used.
-   * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The containerImage. - */ - java.lang.String getContainerImage(); - /** - * - * - *
-   * Optional. Optional custom container image for the job runtime environment. If
-   * not specified, a default container image will be used.
-   * 
- * - * string container_image = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for containerImage. - */ - com.google.protobuf.ByteString getContainerImageBytes(); - - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, which are used to configure workload
-   * execution.
-   * 
- * - * map<string, string> properties = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java deleted file mode 100644 index 10875f96..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfo.java +++ /dev/null @@ -1,1138 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Runtime information about workload execution.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} - */ -public final class RuntimeInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.RuntimeInfo) - RuntimeInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeInfo.newBuilder() to construct. - private RuntimeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RuntimeInfo() { - outputUri_ = ""; - diagnosticOutputUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RuntimeInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetEndpoints(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); - } - - public static final int ENDPOINTS_FIELD_NUMBER = 1; - - private static final class EndpointsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField endpoints_; - - private com.google.protobuf.MapField internalGetEndpoints() { - if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); - } - return endpoints_; - } - - public int getEndpointsCount() { - return internalGetEndpoints().getMap().size(); - } - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetEndpoints().getMap().containsKey(key); - } - /** Use {@link #getEndpointsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getEndpoints() { - return getEndpointsMap(); - } - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getEndpointsMap() { - return internalGetEndpoints().getMap(); - } - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getEndpointsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getEndpointsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object outputUri_; - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-   * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - @java.lang.Override - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-   * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object diagnosticOutputUri_; - /** - * - * - *
-   * Output only. A URI pointing to the location of the diagnostics tarball.
-   * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The diagnosticOutputUri. - */ - @java.lang.Override - public java.lang.String getDiagnosticOutputUri() { - java.lang.Object ref = diagnosticOutputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diagnosticOutputUri_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. A URI pointing to the location of the diagnostics tarball.
-   * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for diagnosticOutputUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { - java.lang.Object ref = diagnosticOutputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diagnosticOutputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetEndpoints(), EndpointsDefaultEntryHolder.defaultEntry, 1); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diagnosticOutputUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetEndpoints().getMap().entrySet()) { - com.google.protobuf.MapEntry endpoints__ = - EndpointsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diagnosticOutputUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diagnosticOutputUri_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.RuntimeInfo)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.RuntimeInfo other = (com.google.cloud.dataproc.v1.RuntimeInfo) obj; - - if (!internalGetEndpoints().equals(other.internalGetEndpoints())) return false; - if (!getOutputUri().equals(other.getOutputUri())) return false; - if (!getDiagnosticOutputUri().equals(other.getDiagnosticOutputUri())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetEndpoints().getMap().isEmpty()) { - hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetEndpoints().hashCode(); - } - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - hash = (37 * hash) + DIAGNOSTIC_OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDiagnosticOutputUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo 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.dataproc.v1.RuntimeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Runtime information about workload execution.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.RuntimeInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.RuntimeInfo) - com.google.cloud.dataproc.v1.RuntimeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 1: - return internalGetEndpoints(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 1: - return internalGetMutableEndpoints(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.RuntimeInfo.class, - com.google.cloud.dataproc.v1.RuntimeInfo.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.RuntimeInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableEndpoints().clear(); - outputUri_ = ""; - - diagnosticOutputUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfo build() { - com.google.cloud.dataproc.v1.RuntimeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfo buildPartial() { - com.google.cloud.dataproc.v1.RuntimeInfo result = - new com.google.cloud.dataproc.v1.RuntimeInfo(this); - int from_bitField0_ = bitField0_; - result.endpoints_ = internalGetEndpoints(); - result.endpoints_.makeImmutable(); - result.outputUri_ = outputUri_; - result.diagnosticOutputUri_ = diagnosticOutputUri_; - 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.dataproc.v1.RuntimeInfo) { - return mergeFrom((com.google.cloud.dataproc.v1.RuntimeInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeInfo other) { - if (other == com.google.cloud.dataproc.v1.RuntimeInfo.getDefaultInstance()) return this; - internalGetMutableEndpoints().mergeFrom(other.internalGetEndpoints()); - if (!other.getOutputUri().isEmpty()) { - outputUri_ = other.outputUri_; - onChanged(); - } - if (!other.getDiagnosticOutputUri().isEmpty()) { - diagnosticOutputUri_ = other.diagnosticOutputUri_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry endpoints__ = - input.readMessage( - EndpointsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableEndpoints() - .getMutableMap() - .put(endpoints__.getKey(), endpoints__.getValue()); - break; - } // case 10 - case 18: - { - outputUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - diagnosticOutputUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField endpoints_; - - private com.google.protobuf.MapField - internalGetEndpoints() { - if (endpoints_ == null) { - return com.google.protobuf.MapField.emptyMapField(EndpointsDefaultEntryHolder.defaultEntry); - } - return endpoints_; - } - - private com.google.protobuf.MapField - internalGetMutableEndpoints() { - onChanged(); - ; - if (endpoints_ == null) { - endpoints_ = - com.google.protobuf.MapField.newMapField(EndpointsDefaultEntryHolder.defaultEntry); - } - if (!endpoints_.isMutable()) { - endpoints_ = endpoints_.copy(); - } - return endpoints_; - } - - public int getEndpointsCount() { - return internalGetEndpoints().getMap().size(); - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetEndpoints().getMap().containsKey(key); - } - /** Use {@link #getEndpointsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getEndpoints() { - return getEndpointsMap(); - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getEndpointsMap() { - return internalGetEndpoints().getMap(); - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getEndpointsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getEndpointsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEndpoints().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearEndpoints() { - internalGetMutableEndpoints().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeEndpoints(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEndpoints().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableEndpoints() { - return internalGetMutableEndpoints().getMutableMap(); - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putEndpoints(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableEndpoints().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-     * URIs.
-     * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllEndpoints(java.util.Map values) { - internalGetMutableEndpoints().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object outputUri_ = ""; - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-     * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = outputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-     * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - public com.google.protobuf.ByteString getOutputUriBytes() { - java.lang.Object ref = outputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-     * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-     * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOutputUri() { - - outputUri_ = getDefaultInstance().getOutputUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-     * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for outputUri to set. - * @return This builder for chaining. - */ - public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object diagnosticOutputUri_ = ""; - /** - * - * - *
-     * Output only. A URI pointing to the location of the diagnostics tarball.
-     * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The diagnosticOutputUri. - */ - public java.lang.String getDiagnosticOutputUri() { - java.lang.Object ref = diagnosticOutputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diagnosticOutputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the diagnostics tarball.
-     * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for diagnosticOutputUri. - */ - public com.google.protobuf.ByteString getDiagnosticOutputUriBytes() { - java.lang.Object ref = diagnosticOutputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diagnosticOutputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the diagnostics tarball.
-     * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The diagnosticOutputUri to set. - * @return This builder for chaining. - */ - public Builder setDiagnosticOutputUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diagnosticOutputUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the diagnostics tarball.
-     * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDiagnosticOutputUri() { - - diagnosticOutputUri_ = getDefaultInstance().getDiagnosticOutputUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. A URI pointing to the location of the diagnostics tarball.
-     * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for diagnosticOutputUri to set. - * @return This builder for chaining. - */ - public Builder setDiagnosticOutputUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diagnosticOutputUri_ = 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.dataproc.v1.RuntimeInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.RuntimeInfo) - private static final com.google.cloud.dataproc.v1.RuntimeInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.RuntimeInfo(); - } - - public static com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.RuntimeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java deleted file mode 100644 index 9d8377cb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeInfoOrBuilder.java +++ /dev/null @@ -1,144 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface RuntimeInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.RuntimeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getEndpointsCount(); - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsEndpoints(java.lang.String key); - /** Use {@link #getEndpointsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getEndpoints(); - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map getEndpointsMap(); - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - - /* nullable */ - java.lang.String getEndpointsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Output only. Map of remote access endpoints (such as web interfaces and APIs) to their
-   * URIs.
-   * 
- * - * map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.lang.String getEndpointsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-   * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The outputUri. - */ - java.lang.String getOutputUri(); - /** - * - * - *
-   * Output only. A URI pointing to the location of the stdout and stderr of the workload.
-   * 
- * - * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for outputUri. - */ - com.google.protobuf.ByteString getOutputUriBytes(); - - /** - * - * - *
-   * Output only. A URI pointing to the location of the diagnostics tarball.
-   * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The diagnosticOutputUri. - */ - java.lang.String getDiagnosticOutputUri(); - /** - * - * - *
-   * Output only. A URI pointing to the location of the diagnostics tarball.
-   * 
- * - * string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for diagnosticOutputUri. - */ - com.google.protobuf.ByteString getDiagnosticOutputUriBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java deleted file mode 100644 index 63b52a48..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java +++ /dev/null @@ -1,1031 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Security related configuration, including encryption, Kerberos, etc.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} - */ -public final class SecurityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SecurityConfig) - SecurityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityConfig.newBuilder() to construct. - private SecurityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, - com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); - } - - public static final int KERBEROS_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kerberosConfig field is set. - */ - @java.lang.Override - public boolean hasKerberosConfig() { - return kerberosConfig_ != null; - } - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kerberosConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { - return getKerberosConfig(); - } - - public static final int IDENTITY_CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the identityConfig field is set. - */ - @java.lang.Override - public boolean hasIdentityConfig() { - return identityConfig_ != null; - } - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The identityConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; - } - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { - return getIdentityConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (kerberosConfig_ != null) { - output.writeMessage(1, getKerberosConfig()); - } - if (identityConfig_ != null) { - output.writeMessage(2, getIdentityConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kerberosConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig()); - } - if (identityConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdentityConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SecurityConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SecurityConfig other = - (com.google.cloud.dataproc.v1.SecurityConfig) obj; - - if (hasKerberosConfig() != other.hasKerberosConfig()) return false; - if (hasKerberosConfig()) { - if (!getKerberosConfig().equals(other.getKerberosConfig())) return false; - } - if (hasIdentityConfig() != other.hasIdentityConfig()) return false; - if (hasIdentityConfig()) { - if (!getIdentityConfig().equals(other.getIdentityConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasKerberosConfig()) { - hash = (37 * hash) + KERBEROS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getKerberosConfig().hashCode(); - } - if (hasIdentityConfig()) { - hash = (37 * hash) + IDENTITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getIdentityConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig 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.dataproc.v1.SecurityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig 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.dataproc.v1.SecurityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig 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.dataproc.v1.SecurityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Security related configuration, including encryption, Kerberos, etc.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SecurityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SecurityConfig) - com.google.cloud.dataproc.v1.SecurityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SecurityConfig.class, - com.google.cloud.dataproc.v1.SecurityConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SecurityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (kerberosConfigBuilder_ == null) { - kerberosConfig_ = null; - } else { - kerberosConfig_ = null; - kerberosConfigBuilder_ = null; - } - if (identityConfigBuilder_ == null) { - identityConfig_ = null; - } else { - identityConfig_ = null; - identityConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SecurityConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfig build() { - com.google.cloud.dataproc.v1.SecurityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfig buildPartial() { - com.google.cloud.dataproc.v1.SecurityConfig result = - new com.google.cloud.dataproc.v1.SecurityConfig(this); - if (kerberosConfigBuilder_ == null) { - result.kerberosConfig_ = kerberosConfig_; - } else { - result.kerberosConfig_ = kerberosConfigBuilder_.build(); - } - if (identityConfigBuilder_ == null) { - result.identityConfig_ = identityConfig_; - } else { - result.identityConfig_ = identityConfigBuilder_.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.dataproc.v1.SecurityConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SecurityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SecurityConfig other) { - if (other == com.google.cloud.dataproc.v1.SecurityConfig.getDefaultInstance()) return this; - if (other.hasKerberosConfig()) { - mergeKerberosConfig(other.getKerberosConfig()); - } - if (other.hasIdentityConfig()) { - mergeIdentityConfig(other.getIdentityConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getKerberosConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.dataproc.v1.KerberosConfig kerberosConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> - kerberosConfigBuilder_; - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kerberosConfig field is set. - */ - public boolean hasKerberosConfig() { - return kerberosConfigBuilder_ != null || kerberosConfig_ != null; - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kerberosConfig. - */ - public com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig() { - if (kerberosConfigBuilder_ == null) { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } else { - return kerberosConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { - if (kerberosConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kerberosConfig_ = value; - onChanged(); - } else { - kerberosConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setKerberosConfig( - com.google.cloud.dataproc.v1.KerberosConfig.Builder builderForValue) { - if (kerberosConfigBuilder_ == null) { - kerberosConfig_ = builderForValue.build(); - onChanged(); - } else { - kerberosConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1.KerberosConfig value) { - if (kerberosConfigBuilder_ == null) { - if (kerberosConfig_ != null) { - kerberosConfig_ = - com.google.cloud.dataproc.v1.KerberosConfig.newBuilder(kerberosConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - kerberosConfig_ = value; - } - onChanged(); - } else { - kerberosConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearKerberosConfig() { - if (kerberosConfigBuilder_ == null) { - kerberosConfig_ = null; - onChanged(); - } else { - kerberosConfig_ = null; - kerberosConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.KerberosConfig.Builder getKerberosConfigBuilder() { - - onChanged(); - return getKerberosConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder() { - if (kerberosConfigBuilder_ != null) { - return kerberosConfigBuilder_.getMessageOrBuilder(); - } else { - return kerberosConfig_ == null - ? com.google.cloud.dataproc.v1.KerberosConfig.getDefaultInstance() - : kerberosConfig_; - } - } - /** - * - * - *
-     * Optional. Kerberos related configuration.
-     * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder> - getKerberosConfigFieldBuilder() { - if (kerberosConfigBuilder_ == null) { - kerberosConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KerberosConfig, - com.google.cloud.dataproc.v1.KerberosConfig.Builder, - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder>( - getKerberosConfig(), getParentForChildren(), isClean()); - kerberosConfig_ = null; - } - return kerberosConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.IdentityConfig identityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> - identityConfigBuilder_; - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the identityConfig field is set. - */ - public boolean hasIdentityConfig() { - return identityConfigBuilder_ != null || identityConfig_ != null; - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The identityConfig. - */ - public com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig() { - if (identityConfigBuilder_ == null) { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; - } else { - return identityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { - if (identityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identityConfig_ = value; - onChanged(); - } else { - identityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setIdentityConfig( - com.google.cloud.dataproc.v1.IdentityConfig.Builder builderForValue) { - if (identityConfigBuilder_ == null) { - identityConfig_ = builderForValue.build(); - onChanged(); - } else { - identityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeIdentityConfig(com.google.cloud.dataproc.v1.IdentityConfig value) { - if (identityConfigBuilder_ == null) { - if (identityConfig_ != null) { - identityConfig_ = - com.google.cloud.dataproc.v1.IdentityConfig.newBuilder(identityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - identityConfig_ = value; - } - onChanged(); - } else { - identityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearIdentityConfig() { - if (identityConfigBuilder_ == null) { - identityConfig_ = null; - onChanged(); - } else { - identityConfig_ = null; - identityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.IdentityConfig.Builder getIdentityConfigBuilder() { - - onChanged(); - return getIdentityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder() { - if (identityConfigBuilder_ != null) { - return identityConfigBuilder_.getMessageOrBuilder(); - } else { - return identityConfig_ == null - ? com.google.cloud.dataproc.v1.IdentityConfig.getDefaultInstance() - : identityConfig_; - } - } - /** - * - * - *
-     * Optional. Identity related configuration, including service account based
-     * secure multi-tenancy user mappings.
-     * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder> - getIdentityConfigFieldBuilder() { - if (identityConfigBuilder_ == null) { - identityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.IdentityConfig, - com.google.cloud.dataproc.v1.IdentityConfig.Builder, - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder>( - getIdentityConfig(), getParentForChildren(), isClean()); - identityConfig_ = null; - } - return identityConfigBuilder_; - } - - @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.dataproc.v1.SecurityConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SecurityConfig) - private static final com.google.cloud.dataproc.v1.SecurityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SecurityConfig(); - } - - public static com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SecurityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java deleted file mode 100644 index 15cabbf9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java +++ /dev/null @@ -1,110 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface SecurityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SecurityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the kerberosConfig field is set. - */ - boolean hasKerberosConfig(); - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The kerberosConfig. - */ - com.google.cloud.dataproc.v1.KerberosConfig getKerberosConfig(); - /** - * - * - *
-   * Optional. Kerberos related configuration.
-   * 
- * - * - * .google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.KerberosConfigOrBuilder getKerberosConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the identityConfig field is set. - */ - boolean hasIdentityConfig(); - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The identityConfig. - */ - com.google.cloud.dataproc.v1.IdentityConfig getIdentityConfig(); - /** - * - * - *
-   * Optional. Identity related configuration, including service account based
-   * secure multi-tenancy user mappings.
-   * 
- * - * - * .google.cloud.dataproc.v1.IdentityConfig identity_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.IdentityConfigOrBuilder getIdentityConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java deleted file mode 100644 index d1d12ca9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ /dev/null @@ -1,358 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public final class SharedProto { - private SharedProto() {} - - 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_dataproc_v1_RuntimeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_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/dataproc/v1/shared.proto\022" - + "\030google.cloud.dataproc.v1\032\037google/api/fi" - + "eld_behavior.proto\"\310\001\n\rRuntimeConfig\022\024\n\007" - + "version\030\001 \001(\tB\003\340A\001\022\034\n\017container_image\030\002 " - + "\001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\01327.google.cl" - + "oud.dataproc.v1.RuntimeConfig.Properties" - + "EntryB\003\340A\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021EnvironmentCon" - + "fig\022H\n\020execution_config\030\001 \001(\0132).google.c" - + "loud.dataproc.v1.ExecutionConfigB\003\340A\001\022L\n" - + "\022peripherals_config\030\002 \001(\0132+.google.cloud" - + ".dataproc.v1.PeripheralsConfigB\003\340A\001\"\246\001\n\017" - + "ExecutionConfig\022\034\n\017service_account\030\002 \001(\t" - + "B\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016sub" - + "network_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014network_tags" - + "\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A\001B\t\n\007net" - + "work\"9\n\030SparkHistoryServerConfig\022\035\n\020data" - + "proc_cluster\030\001 \001(\tB\003\340A\001\"\221\001\n\021PeripheralsC" - + "onfig\022\036\n\021metastore_service\030\001 \001(\tB\003\340A\001\022\\\n" - + "\033spark_history_server_config\030\002 \001(\01322.goo" - + "gle.cloud.dataproc.v1.SparkHistoryServer" - + "ConfigB\003\340A\001\"\312\001\n\013RuntimeInfo\022L\n\tendpoints" - + "\030\001 \003(\01324.google.cloud.dataproc.v1.Runtim" - + "eInfo.EndpointsEntryB\003\340A\003\022\027\n\noutput_uri\030" - + "\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output_uri\030\003 \001(" - + "\tB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\177\n\020GkeClusterConfig\022\037\n\022" - + "gke_cluster_target\030\002 \001(\tB\003\340A\001\022J\n\020node_po" - + "ol_target\030\003 \003(\0132+.google.cloud.dataproc." - + "v1.GkeNodePoolTargetB\003\340A\001\"\362\001\n\027Kubernetes" - + "ClusterConfig\022!\n\024kubernetes_namespace\030\001 " - + "\001(\tB\003\340A\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.g" - + "oogle.cloud.dataproc.v1.GkeClusterConfig" - + "B\003\340A\002H\000\022[\n\032kubernetes_software_config\030\003 " - + "\001(\01322.google.cloud.dataproc.v1.Kubernete" - + "sSoftwareConfigB\003\340A\001B\010\n\006config\"\303\002\n\030Kuber" - + "netesSoftwareConfig\022c\n\021component_version" - + "\030\001 \003(\0132H.google.cloud.dataproc.v1.Kubern" - + "etesSoftwareConfig.ComponentVersionEntry" - + "\022V\n\nproperties\030\002 \003(\0132B.google.cloud.data" - + "proc.v1.KubernetesSoftwareConfig.Propert" - + "iesEntry\0327\n\025ComponentVersionEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n" - + "\021GkeNodePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340" - + "A\002\022D\n\005roles\030\002 \003(\01620.google.cloud.datapro" - + "c.v1.GkeNodePoolTarget.RoleB\003\340A\002\022J\n\020node" - + "_pool_config\030\003 \001(\0132+.google.cloud.datapr" - + "oc.v1.GkeNodePoolConfigB\003\340A\001\"_\n\004Role\022\024\n\020" - + "ROLE_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTR" - + "OLLER\020\002\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECU" - + "TOR\020\004\"\355\004\n\021GkeNodePoolConfig\022N\n\006config\030\002 " - + "\001(\01329.google.cloud.dataproc.v1.GkeNodePo" - + "olConfig.GkeNodeConfigB\003\340A\001\022\026\n\tlocations" - + "\030\r \003(\tB\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.googl" - + "e.cloud.dataproc.v1.GkeNodePoolConfig.Gk" - + "eNodePoolAutoscalingConfigB\003\340A\001\032\346\001\n\rGkeN" - + "odeConfig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\030\n\013" - + "preemptible\030\n \001(\010B\003\340A\001\022\034\n\017local_ssd_coun" - + "t\030\007 \001(\005B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.goo" - + "gle.cloud.dataproc.v1.GkeNodePoolConfig." - + "GkeNodePoolAcceleratorConfigB\003\340A\001\022\035\n\020min" - + "_cpu_platform\030\r \001(\tB\003\340A\001\032S\n\034GkeNodePoolA" - + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " - + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\032N\n\034GkeNode" - + "PoolAutoscalingConfig\022\026\n\016min_node_count\030" - + "\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005*\277\001\n\tCompon" - + "ent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACON" - + "DA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020\t\022\t\n\005FLINK\020\016\022\t" - + "\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER\020\001" - + "\022\n\n\006PRESTO\020\006\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZE" - + "PPELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction" - + "\022\036\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_A" - + "CTION\020\001\022\n\n\006DELETE\020\002Bo\n\034com.google.cloud." - + "dataproc.v1B\013SharedProtoP\001Z@google.golan" - + "g.org/genproto/googleapis/cloud/dataproc" - + "/v1;dataprocb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, - new java.lang.String[] { - "Version", "ContainerImage", "Properties", - }); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_EnvironmentConfig_descriptor, - new java.lang.String[] { - "ExecutionConfig", "PeripheralsConfig", - }); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_dataproc_v1_ExecutionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_ExecutionConfig_descriptor, - new java.lang.String[] { - "ServiceAccount", "NetworkUri", "SubnetworkUri", "NetworkTags", "KmsKey", "Network", - }); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor, - new java.lang.String[] { - "DataprocCluster", - }); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_PeripheralsConfig_descriptor, - new java.lang.String[] { - "MetastoreService", "SparkHistoryServerConfig", - }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor, - new java.lang.String[] { - "Endpoints", "OutputUri", "DiagnosticOutputUri", - }); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor = - internal_static_google_cloud_dataproc_v1_RuntimeInfo_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_RuntimeInfo_EndpointsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeClusterConfig_descriptor, - new java.lang.String[] { - "GkeClusterTarget", "NodePoolTarget", - }); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesClusterConfig_descriptor, - new java.lang.String[] { - "KubernetesNamespace", "GkeClusterConfig", "KubernetesSoftwareConfig", "Config", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor, - new java.lang.String[] { - "ComponentVersion", "Properties", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_ComponentVersionEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor = - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_KubernetesSoftwareConfig_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolTarget_descriptor, - new java.lang.String[] { - "NodePool", "Roles", "NodePoolConfig", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor, - new java.lang.String[] { - "Config", "Locations", "Autoscaling", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodeConfig_descriptor, - new java.lang.String[] { - "MachineType", "Preemptible", "LocalSsdCount", "Accelerators", "MinCpuPlatform", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAcceleratorConfig_descriptor, - new java.lang.String[] { - "AcceleratorCount", "AcceleratorType", - }); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor = - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor, - new java.lang.String[] { - "MinNodeCount", "MaxNodeCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java deleted file mode 100644 index dc124d97..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,711 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Shielded Instance Config for clusters using [Compute Engine Shielded
- * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig} - */ -public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig) - ShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShieldedInstanceConfig.newBuilder() to construct. - private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ShieldedInstanceConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ShieldedInstanceConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class); - } - - public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; - private boolean enableSecureBoot_; - /** - * - * - *
-   * Optional. Defines whether instances have Secure Boot enabled.
-   * 
- * - * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - - public static final int ENABLE_VTPM_FIELD_NUMBER = 2; - private boolean enableVtpm_; - /** - * - * - *
-   * Optional. Defines whether instances have the vTPM enabled.
-   * 
- * - * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableVtpm. - */ - @java.lang.Override - public boolean getEnableVtpm() { - return enableVtpm_; - } - - public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; - private boolean enableIntegrityMonitoring_; - /** - * - * - *
-   * Optional. Defines whether instances have integrity monitoring enabled.
-   * 
- * - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableSecureBoot_ != false) { - output.writeBool(1, enableSecureBoot_); - } - if (enableVtpm_ != false) { - output.writeBool(2, enableVtpm_); - } - if (enableIntegrityMonitoring_ != false) { - output.writeBool(3, enableIntegrityMonitoring_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); - } - if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); - } - if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ShieldedInstanceConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ShieldedInstanceConfig other = - (com.google.cloud.dataproc.v1.ShieldedInstanceConfig) obj; - - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); - hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); - hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig 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.dataproc.v1.ShieldedInstanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Shielded Instance Config for clusters using [Compute Engine Shielded
-   * VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ShieldedInstanceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ShieldedInstanceConfig) - com.google.cloud.dataproc.v1.ShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.class, - com.google.cloud.dataproc.v1.ShieldedInstanceConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ShieldedInstanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - enableSecureBoot_ = false; - - enableVtpm_ = false; - - enableIntegrityMonitoring_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig build() { - com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig buildPartial() { - com.google.cloud.dataproc.v1.ShieldedInstanceConfig result = - new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(this); - result.enableSecureBoot_ = enableSecureBoot_; - result.enableVtpm_ = enableVtpm_; - result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; - 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.dataproc.v1.ShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.ShieldedInstanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ShieldedInstanceConfig other) { - if (other == com.google.cloud.dataproc.v1.ShieldedInstanceConfig.getDefaultInstance()) - return this; - if (other.getEnableSecureBoot() != false) { - setEnableSecureBoot(other.getEnableSecureBoot()); - } - if (other.getEnableVtpm() != false) { - setEnableVtpm(other.getEnableVtpm()); - } - if (other.getEnableIntegrityMonitoring() != false) { - setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableSecureBoot_ = input.readBool(); - - break; - } // case 8 - case 16: - { - enableVtpm_ = input.readBool(); - - break; - } // case 16 - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean enableSecureBoot_; - /** - * - * - *
-     * Optional. Defines whether instances have Secure Boot enabled.
-     * 
- * - * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - /** - * - * - *
-     * Optional. Defines whether instances have Secure Boot enabled.
-     * 
- * - * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableSecureBoot to set. - * @return This builder for chaining. - */ - public Builder setEnableSecureBoot(boolean value) { - - enableSecureBoot_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Defines whether instances have Secure Boot enabled.
-     * 
- * - * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableSecureBoot() { - - enableSecureBoot_ = false; - onChanged(); - return this; - } - - private boolean enableVtpm_; - /** - * - * - *
-     * Optional. Defines whether instances have the vTPM enabled.
-     * 
- * - * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableVtpm. - */ - @java.lang.Override - public boolean getEnableVtpm() { - return enableVtpm_; - } - /** - * - * - *
-     * Optional. Defines whether instances have the vTPM enabled.
-     * 
- * - * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableVtpm to set. - * @return This builder for chaining. - */ - public Builder setEnableVtpm(boolean value) { - - enableVtpm_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Defines whether instances have the vTPM enabled.
-     * 
- * - * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableVtpm() { - - enableVtpm_ = false; - onChanged(); - return this; - } - - private boolean enableIntegrityMonitoring_; - /** - * - * - *
-     * Optional. Defines whether instances have integrity monitoring enabled.
-     * 
- * - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - /** - * - * - *
-     * Optional. Defines whether instances have integrity monitoring enabled.
-     * 
- * - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableIntegrityMonitoring to set. - * @return This builder for chaining. - */ - public Builder setEnableIntegrityMonitoring(boolean value) { - - enableIntegrityMonitoring_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Defines whether instances have integrity monitoring enabled.
-     * 
- * - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableIntegrityMonitoring() { - - enableIntegrityMonitoring_ = false; - 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.dataproc.v1.ShieldedInstanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ShieldedInstanceConfig) - private static final com.google.cloud.dataproc.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ShieldedInstanceConfig(); - } - - public static com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index 26e0a138..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,64 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface ShieldedInstanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ShieldedInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Defines whether instances have Secure Boot enabled.
-   * 
- * - * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableSecureBoot. - */ - boolean getEnableSecureBoot(); - - /** - * - * - *
-   * Optional. Defines whether instances have the vTPM enabled.
-   * 
- * - * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableVtpm. - */ - boolean getEnableVtpm(); - - /** - * - * - *
-   * Optional. Defines whether instances have integrity monitoring enabled.
-   * 
- * - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableIntegrityMonitoring. - */ - boolean getEnableIntegrityMonitoring(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java deleted file mode 100644 index 6441c29c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java +++ /dev/null @@ -1,1562 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies the selection and config of software inside the cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} - */ -public final class SoftwareConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SoftwareConfig) - SoftwareConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SoftwareConfig.newBuilder() to construct. - private SoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SoftwareConfig() { - imageVersion_ = ""; - optionalComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SoftwareConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); - } - - public static final int IMAGE_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object imageVersion_; - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - @java.lang.Override - public java.lang.String getImageVersion() { - java.lang.Object ref = imageVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageVersionBytes() { - java.lang.Object ref = imageVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 2; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER = 3; - private java.util.List optionalComponents_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component> - optionalComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>() { - public com.google.cloud.dataproc.v1.Component convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.Component result = - com.google.cloud.dataproc.v1.Component.valueOf(from); - return result == null ? com.google.cloud.dataproc.v1.Component.UNRECOGNIZED : result; - } - }; - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the optionalComponents. - */ - @java.lang.Override - public java.util.List getOptionalComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>( - optionalComponents_, optionalComponents_converter_); - } - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of optionalComponents. - */ - @java.lang.Override - public int getOptionalComponentsCount() { - return optionalComponents_.size(); - } - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { - return optionalComponents_converter_.convert(optionalComponents_.get(index)); - } - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - @java.lang.Override - public java.util.List getOptionalComponentsValueList() { - return optionalComponents_; - } - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - @java.lang.Override - public int getOptionalComponentsValue(int index) { - return optionalComponents_.get(index); - } - - private int optionalComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2); - if (getOptionalComponentsList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(optionalComponentsMemoizedSerializedSize); - } - for (int i = 0; i < optionalComponents_.size(); i++) { - output.writeEnumNoTag(optionalComponents_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageVersion_); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__); - } - { - int dataSize = 0; - for (int i = 0; i < optionalComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(optionalComponents_.get(i)); - } - size += dataSize; - if (!getOptionalComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - optionalComponentsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SoftwareConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SoftwareConfig other = - (com.google.cloud.dataproc.v1.SoftwareConfig) obj; - - if (!getImageVersion().equals(other.getImageVersion())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!optionalComponents_.equals(other.optionalComponents_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IMAGE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getImageVersion().hashCode(); - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getOptionalComponentsCount() > 0) { - hash = (37 * hash) + OPTIONAL_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + optionalComponents_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig 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.dataproc.v1.SoftwareConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig 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.dataproc.v1.SoftwareConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig 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.dataproc.v1.SoftwareConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies the selection and config of software inside the cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SoftwareConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SoftwareConfig) - com.google.cloud.dataproc.v1.SoftwareConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SoftwareConfig.class, - com.google.cloud.dataproc.v1.SoftwareConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SoftwareConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - imageVersion_ = ""; - - internalGetMutableProperties().clear(); - optionalComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_SoftwareConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfig build() { - com.google.cloud.dataproc.v1.SoftwareConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfig buildPartial() { - com.google.cloud.dataproc.v1.SoftwareConfig result = - new com.google.cloud.dataproc.v1.SoftwareConfig(this); - int from_bitField0_ = bitField0_; - result.imageVersion_ = imageVersion_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.optionalComponents_ = optionalComponents_; - 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.dataproc.v1.SoftwareConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SoftwareConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SoftwareConfig other) { - if (other == com.google.cloud.dataproc.v1.SoftwareConfig.getDefaultInstance()) return this; - if (!other.getImageVersion().isEmpty()) { - imageVersion_ = other.imageVersion_; - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.optionalComponents_.isEmpty()) { - if (optionalComponents_.isEmpty()) { - optionalComponents_ = other.optionalComponents_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOptionalComponentsIsMutable(); - optionalComponents_.addAll(other.optionalComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - imageVersion_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 18 - case 24: - { - int tmpRaw = input.readEnum(); - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(tmpRaw); - break; - } // case 24 - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object imageVersion_ = ""; - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - public java.lang.String getImageVersion() { - java.lang.Object ref = imageVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - public com.google.protobuf.ByteString getImageVersionBytes() { - java.lang.Object ref = imageVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The imageVersion to set. - * @return This builder for chaining. - */ - public Builder setImageVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearImageVersion() { - - imageVersion_ = getDefaultInstance().getImageVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The version of software inside the cluster. It must be one of the
-     * supported [Dataproc
-     * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-     * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-     * ["preview"
-     * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-     * If unspecified, it defaults to the latest Debian version.
-     * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for imageVersion to set. - * @return This builder for chaining. - */ - public Builder setImageVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The properties to set on daemon config files.
-     * Property keys are specified in `prefix:property` format, for example
-     * `core:hadoop.tmp.dir`. The following are supported prefixes
-     * and their mappings:
-     * * capacity-scheduler: `capacity-scheduler.xml`
-     * * core:   `core-site.xml`
-     * * distcp: `distcp-default.xml`
-     * * hdfs:   `hdfs-site.xml`
-     * * hive:   `hive-site.xml`
-     * * mapred: `mapred-site.xml`
-     * * pig:    `pig.properties`
-     * * spark:  `spark-defaults.conf`
-     * * yarn:   `yarn-site.xml`
-     * For more information, see [Cluster
-     * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-     * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private java.util.List optionalComponents_ = - java.util.Collections.emptyList(); - - private void ensureOptionalComponentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - optionalComponents_ = new java.util.ArrayList(optionalComponents_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the optionalComponents. - */ - public java.util.List getOptionalComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dataproc.v1.Component>( - optionalComponents_, optionalComponents_converter_); - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of optionalComponents. - */ - public int getOptionalComponentsCount() { - return optionalComponents_.size(); - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - public com.google.cloud.dataproc.v1.Component getOptionalComponents(int index) { - return optionalComponents_converter_.convert(optionalComponents_.get(index)); - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The optionalComponents to set. - * @return This builder for chaining. - */ - public Builder setOptionalComponents(int index, com.google.cloud.dataproc.v1.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalComponentsIsMutable(); - optionalComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addOptionalComponents(com.google.cloud.dataproc.v1.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addAllOptionalComponents( - java.lang.Iterable values) { - ensureOptionalComponentsIsMutable(); - for (com.google.cloud.dataproc.v1.Component value : values) { - optionalComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearOptionalComponents() { - optionalComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - public java.util.List getOptionalComponentsValueList() { - return java.util.Collections.unmodifiableList(optionalComponents_); - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - public int getOptionalComponentsValue(int index) { - return optionalComponents_.get(index); - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for optionalComponents to set. - * @return This builder for chaining. - */ - public Builder setOptionalComponentsValue(int index, int value) { - ensureOptionalComponentsIsMutable(); - optionalComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addOptionalComponentsValue(int value) { - ensureOptionalComponentsIsMutable(); - optionalComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The set of components to activate on the cluster.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The enum numeric values on the wire for optionalComponents to add. - * @return This builder for chaining. - */ - public Builder addAllOptionalComponentsValue(java.lang.Iterable values) { - ensureOptionalComponentsIsMutable(); - for (int value : values) { - optionalComponents_.add(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.dataproc.v1.SoftwareConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SoftwareConfig) - private static final com.google.cloud.dataproc.v1.SoftwareConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SoftwareConfig(); - } - - public static com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SoftwareConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java deleted file mode 100644 index f9f2c6d6..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java +++ /dev/null @@ -1,269 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface SoftwareConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SoftwareConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The imageVersion. - */ - java.lang.String getImageVersion(); - /** - * - * - *
-   * Optional. The version of software inside the cluster. It must be one of the
-   * supported [Dataproc
-   * Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
-   * such as "1.2" (including a subminor version, such as "1.2.29"), or the
-   * ["preview"
-   * version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
-   * If unspecified, it defaults to the latest Debian version.
-   * 
- * - * string image_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for imageVersion. - */ - com.google.protobuf.ByteString getImageVersionBytes(); - - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The properties to set on daemon config files.
-   * Property keys are specified in `prefix:property` format, for example
-   * `core:hadoop.tmp.dir`. The following are supported prefixes
-   * and their mappings:
-   * * capacity-scheduler: `capacity-scheduler.xml`
-   * * core:   `core-site.xml`
-   * * distcp: `distcp-default.xml`
-   * * hdfs:   `hdfs-site.xml`
-   * * hive:   `hive-site.xml`
-   * * mapred: `mapred-site.xml`
-   * * pig:    `pig.properties`
-   * * spark:  `spark-defaults.conf`
-   * * yarn:   `yarn-site.xml`
-   * For more information, see [Cluster
-   * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
-   * 
- * - * map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the optionalComponents. - */ - java.util.List getOptionalComponentsList(); - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of optionalComponents. - */ - int getOptionalComponentsCount(); - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The optionalComponents at the given index. - */ - com.google.cloud.dataproc.v1.Component getOptionalComponents(int index); - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for optionalComponents. - */ - java.util.List getOptionalComponentsValueList(); - /** - * - * - *
-   * Optional. The set of components to activate on the cluster.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of optionalComponents at the given index. - */ - int getOptionalComponentsValue(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java deleted file mode 100644 index 0b801bc0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatch.java +++ /dev/null @@ -1,2154 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A configuration for running an [Apache Spark](http://spark.apache.org/)
- * batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch} - */ -public final class SparkBatch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkBatch) - SparkBatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkBatch.newBuilder() to construct. - private SparkBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkBatch() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkBatch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkBatch.class, - com.google.cloud.dataproc.v1.SparkBatch.Builder.class); - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAIN_JAR_FILE_URI(1), - MAIN_CLASS(2), - DRIVER_NOT_SET(0); - private final int value; - - private DriverCase(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 DriverCase valueOf(int value) { - return forNumber(value); - } - - public static DriverCase forNumber(int value) { - switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainJarFileUri field is set. - */ - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainJarFileUri. - */ - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 1) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainJarFileUri. - */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAIN_CLASS_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainClass field is set. - */ - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainClass. - */ - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 2) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainClass. - */ - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (driverCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (driverCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (driverCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (driverCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkBatch)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkBatch other = (com.google.cloud.dataproc.v1.SparkBatch) obj; - - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!getDriverCase().equals(other.getDriverCase())) return false; - switch (driverCase_) { - case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; - break; - case 2: - if (!getMainClass().equals(other.getMainClass())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - switch (driverCase_) { - case 1: - hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainJarFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkBatch 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.dataproc.v1.SparkBatch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configuration for running an [Apache Spark](http://spark.apache.org/)
-   * batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkBatch} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkBatch) - com.google.cloud.dataproc.v1.SparkBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkBatch.class, - com.google.cloud.dataproc.v1.SparkBatch.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkBatch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - driverCase_ = 0; - driver_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkBatch_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch build() { - com.google.cloud.dataproc.v1.SparkBatch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch buildPartial() { - com.google.cloud.dataproc.v1.SparkBatch result = - new com.google.cloud.dataproc.v1.SparkBatch(this); - int from_bitField0_ = bitField0_; - if (driverCase_ == 1) { - result.driver_ = driver_; - } - if (driverCase_ == 2) { - result.driver_ = driver_; - } - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.archiveUris_ = archiveUris_; - result.driverCase_ = driverCase_; - 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.dataproc.v1.SparkBatch) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkBatch) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkBatch other) { - if (other == com.google.cloud.dataproc.v1.SparkBatch.getDefaultInstance()) return this; - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 1; - driver_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public Builder clearDriver() { - driverCase_ = 0; - driver_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainJarFileUri field is set. - */ - @java.lang.Override - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainJarFileUri. - */ - @java.lang.Override - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 1) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainJarFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMainJarFileUri() { - if (driverCase_ == 1) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainClass field is set. - */ - @java.lang.Override - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainClass. - */ - @java.lang.Override - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 2) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainClass. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMainClass() { - if (driverCase_ == 2) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. The name of the driver main class. The jar file that contains the class
-     * must be in the classpath or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the classpath of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(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.dataproc.v1.SparkBatch) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkBatch) - private static final com.google.cloud.dataproc.v1.SparkBatch DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkBatch(); - } - - public static com.google.cloud.dataproc.v1.SparkBatch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkBatch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java deleted file mode 100644 index 8ce57703..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkBatchOrBuilder.java +++ /dev/null @@ -1,332 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkBatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkBatch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainJarFileUri field is set. - */ - boolean hasMainJarFileUri(); - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainJarFileUri. - */ - java.lang.String getMainJarFileUri(); - /** - * - * - *
-   * Optional. The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainJarFileUri. - */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); - - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the mainClass field is set. - */ - boolean hasMainClass(); - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mainClass. - */ - java.lang.String getMainClass(); - /** - * - * - *
-   * Optional. The name of the driver main class. The jar file that contains the class
-   * must be in the classpath or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mainClass. - */ - com.google.protobuf.ByteString getMainClassBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the classpath of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - public com.google.cloud.dataproc.v1.SparkBatch.DriverCase getDriverCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java deleted file mode 100644 index 4b0482e8..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfig.java +++ /dev/null @@ -1,637 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Spark History Server configuration for the workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} - */ -public final class SparkHistoryServerConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) - SparkHistoryServerConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkHistoryServerConfig.newBuilder() to construct. - private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkHistoryServerConfig() { - dataprocCluster_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkHistoryServerConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); - } - - public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object dataprocCluster_; - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-   * Server for the workload.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The dataprocCluster. - */ - @java.lang.Override - public java.lang.String getDataprocCluster() { - java.lang.Object ref = dataprocCluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataprocCluster_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-   * Server for the workload.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for dataprocCluster. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataprocClusterBytes() { - java.lang.Object ref = dataprocCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataprocCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(dataprocCluster_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocCluster_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkHistoryServerConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkHistoryServerConfig other = - (com.google.cloud.dataproc.v1.SparkHistoryServerConfig) obj; - - if (!getDataprocCluster().equals(other.getDataprocCluster())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATAPROC_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getDataprocCluster().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig 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.dataproc.v1.SparkHistoryServerConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Spark History Server configuration for the workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkHistoryServerConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkHistoryServerConfig) - com.google.cloud.dataproc.v1.SparkHistoryServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.class, - com.google.cloud.dataproc.v1.SparkHistoryServerConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkHistoryServerConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dataprocCluster_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.SharedProto - .internal_static_google_cloud_dataproc_v1_SparkHistoryServerConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig build() { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig buildPartial() { - com.google.cloud.dataproc.v1.SparkHistoryServerConfig result = - new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(this); - result.dataprocCluster_ = dataprocCluster_; - 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.dataproc.v1.SparkHistoryServerConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkHistoryServerConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkHistoryServerConfig other) { - if (other == com.google.cloud.dataproc.v1.SparkHistoryServerConfig.getDefaultInstance()) - return this; - if (!other.getDataprocCluster().isEmpty()) { - dataprocCluster_ = other.dataprocCluster_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dataprocCluster_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object dataprocCluster_ = ""; - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-     * Server for the workload.
-     * Example:
-     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-     * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The dataprocCluster. - */ - public java.lang.String getDataprocCluster() { - java.lang.Object ref = dataprocCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataprocCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-     * Server for the workload.
-     * Example:
-     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-     * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for dataprocCluster. - */ - public com.google.protobuf.ByteString getDataprocClusterBytes() { - java.lang.Object ref = dataprocCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataprocCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-     * Server for the workload.
-     * Example:
-     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-     * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The dataprocCluster to set. - * @return This builder for chaining. - */ - public Builder setDataprocCluster(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dataprocCluster_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-     * Server for the workload.
-     * Example:
-     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-     * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDataprocCluster() { - - dataprocCluster_ = getDefaultInstance().getDataprocCluster(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-     * Server for the workload.
-     * Example:
-     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-     * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for dataprocCluster to set. - * @return This builder for chaining. - */ - public Builder setDataprocClusterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dataprocCluster_ = 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.dataproc.v1.SparkHistoryServerConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkHistoryServerConfig) - private static final com.google.cloud.dataproc.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkHistoryServerConfig(); - } - - public static com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkHistoryServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkHistoryServerConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java deleted file mode 100644 index 80e16401..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkHistoryServerConfigOrBuilder.java +++ /dev/null @@ -1,56 +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/dataproc/v1/shared.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkHistoryServerConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkHistoryServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-   * Server for the workload.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The dataprocCluster. - */ - java.lang.String getDataprocCluster(); - /** - * - * - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark History
-   * Server for the workload.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for dataprocCluster. - */ - com.google.protobuf.ByteString getDataprocClusterBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java deleted file mode 100644 index 1fda8ba5..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java +++ /dev/null @@ -1,2812 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running [Apache Spark](http://spark.apache.org/)
- * applications on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkJob} - */ -public final class SparkJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkJob) - SparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkJob.newBuilder() to construct. - private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkJob() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkJob.class, - com.google.cloud.dataproc.v1.SparkJob.Builder.class); - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public enum DriverCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAIN_JAR_FILE_URI(1), - MAIN_CLASS(2), - DRIVER_NOT_SET(0); - private final int value; - - private DriverCase(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 DriverCase valueOf(int value) { - return forNumber(value); - } - - public static DriverCase forNumber(int value) { - switch (value) { - case 1: - return MAIN_JAR_FILE_URI; - case 2: - return MAIN_CLASS; - case 0: - return DRIVER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public static final int MAIN_JAR_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 1) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAIN_CLASS_FIELD_NUMBER = 2; - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.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 (driverCase_ == 2) { - driver_ = s; - } - return s; - } - } - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (driverCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); - } - if (driverCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, jarFileUris_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 7); - if (loggingConfig_ != null) { - output.writeMessage(8, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (driverCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); - } - if (driverCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkJob other = (com.google.cloud.dataproc.v1.SparkJob) obj; - - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getDriverCase().equals(other.getDriverCase())) return false; - switch (driverCase_) { - case 1: - if (!getMainJarFileUri().equals(other.getMainJarFileUri())) return false; - break; - case 2: - if (!getMainClass().equals(other.getMainClass())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (driverCase_) { - case 1: - hash = (37 * hash) + MAIN_JAR_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainJarFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + MAIN_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkJob 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.dataproc.v1.SparkJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkJob 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.dataproc.v1.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkJob 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.dataproc.v1.SparkJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Spark](http://spark.apache.org/)
-   * applications on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkJob) - com.google.cloud.dataproc.v1.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkJob.class, - com.google.cloud.dataproc.v1.SparkJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - driverCase_ = 0; - driver_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob build() { - com.google.cloud.dataproc.v1.SparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob buildPartial() { - com.google.cloud.dataproc.v1.SparkJob result = - new com.google.cloud.dataproc.v1.SparkJob(this); - int from_bitField0_ = bitField0_; - if (driverCase_ == 1) { - result.driver_ = driver_; - } - if (driverCase_ == 2) { - result.driver_ = driver_; - } - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.driverCase_ = driverCase_; - 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.dataproc.v1.SparkJob) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkJob other) { - if (other == com.google.cloud.dataproc.v1.SparkJob.getDefaultInstance()) return this; - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getDriverCase()) { - case MAIN_JAR_FILE_URI: - { - driverCase_ = 1; - driver_ = other.driver_; - onChanged(); - break; - } - case MAIN_CLASS: - { - driverCase_ = 2; - driver_ = other.driver_; - onChanged(); - break; - } - case DRIVER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 1; - driver_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - driverCase_ = 2; - driver_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 58 - case 66: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int driverCase_ = 0; - private java.lang.Object driver_; - - public DriverCase getDriverCase() { - return DriverCase.forNumber(driverCase_); - } - - public Builder clearDriver() { - driverCase_ = 0; - driver_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - @java.lang.Override - public boolean hasMainJarFileUri() { - return driverCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - @java.lang.Override - public java.lang.String getMainJarFileUri() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 1) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainJarFileUriBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 1) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 1) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearMainJarFileUri() { - if (driverCase_ == 1) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the jar file that contains the main class.
-     * 
- * - * string main_jar_file_uri = 1; - * - * @param value The bytes for mainJarFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainJarFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 1; - driver_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - @java.lang.Override - public boolean hasMainClass() { - return driverCase_ == 2; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - @java.lang.Override - public java.lang.String getMainClass() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (driverCase_ == 2) { - driver_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainClassBytes() { - java.lang.Object ref = ""; - if (driverCase_ == 2) { - ref = driver_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (driverCase_ == 2) { - driver_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @return This builder for chaining. - */ - public Builder clearMainClass() { - if (driverCase_ == 2) { - driverCase_ = 0; - driver_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The name of the driver's main class. The jar file that contains the class
-     * must be in the default CLASSPATH or specified in `jar_file_uris`.
-     * 
- * - * string main_class = 2; - * - * @param value The bytes for mainClass to set. - * @return This builder for chaining. - */ - public Builder setMainClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - driverCase_ = 2; - driver_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver. Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-     * Spark driver and tasks.
-     * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure Spark.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.SparkJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkJob) - private static final com.google.cloud.dataproc.v1.SparkJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkJob(); - } - - public static com.google.cloud.dataproc.v1.SparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java deleted file mode 100644 index 0017ad02..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java +++ /dev/null @@ -1,452 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return Whether the mainJarFileUri field is set. - */ - boolean hasMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The mainJarFileUri. - */ - java.lang.String getMainJarFileUri(); - /** - * - * - *
-   * The HCFS URI of the jar file that contains the main class.
-   * 
- * - * string main_jar_file_uri = 1; - * - * @return The bytes for mainJarFileUri. - */ - com.google.protobuf.ByteString getMainJarFileUriBytes(); - - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return Whether the mainClass field is set. - */ - boolean hasMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The mainClass. - */ - java.lang.String getMainClass(); - /** - * - * - *
-   * The name of the driver's main class. The jar file that contains the class
-   * must be in the default CLASSPATH or specified in `jar_file_uris`.
-   * 
- * - * string main_class = 2; - * - * @return The bytes for mainClass. - */ - com.google.protobuf.ByteString getMainClassBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver. Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the
-   * Spark driver and tasks.
-   * 
- * - * repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure Spark.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.SparkJob.DriverCase getDriverCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java deleted file mode 100644 index 255c7ba7..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatch.java +++ /dev/null @@ -1,1502 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A configuration for running an
- * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
- * batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch} - */ -public final class SparkRBatch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRBatch) - SparkRBatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkRBatch.newBuilder() to construct. - private SparkRBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkRBatch() { - mainRFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkRBatch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkRBatch.class, - com.google.cloud.dataproc.v1.SparkRBatch.Builder.class); - } - - public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainRFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a `.R` or `.r` file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - @java.lang.Override - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a `.R` or `.r` file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkRBatch)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkRBatch other = (com.google.cloud.dataproc.v1.SparkRBatch) obj; - - if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAIN_R_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainRFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch 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.dataproc.v1.SparkRBatch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configuration for running an
-   * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
-   * batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkRBatch} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRBatch) - com.google.cloud.dataproc.v1.SparkRBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkRBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkRBatch.class, - com.google.cloud.dataproc.v1.SparkRBatch.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkRBatch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - mainRFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkRBatch_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch build() { - com.google.cloud.dataproc.v1.SparkRBatch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch buildPartial() { - com.google.cloud.dataproc.v1.SparkRBatch result = - new com.google.cloud.dataproc.v1.SparkRBatch(this); - int from_bitField0_ = bitField0_; - result.mainRFileUri_ = mainRFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.archiveUris_ = archiveUris_; - 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.dataproc.v1.SparkRBatch) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkRBatch) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRBatch other) { - if (other == com.google.cloud.dataproc.v1.SparkRBatch.getDefaultInstance()) return this; - if (!other.getMainRFileUri().isEmpty()) { - mainRFileUri_ = other.mainRFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - mainRFileUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object mainRFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a `.R` or `.r` file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a `.R` or `.r` file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a `.R` or `.r` file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainRFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a `.R` or `.r` file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainRFileUri() { - - mainRFileUri_ = getDefaultInstance().getMainRFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a `.R` or `.r` file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainRFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the Spark driver. Do not include arguments
-     * that can be set as batch properties, such as `--conf`, since a collision
-     * can occur that causes an incorrect batch submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(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.dataproc.v1.SparkRBatch) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRBatch) - private static final com.google.cloud.dataproc.v1.SparkRBatch DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRBatch(); - } - - public static com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRBatch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java deleted file mode 100644 index 1083a669..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRBatchOrBuilder.java +++ /dev/null @@ -1,225 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkRBatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRBatch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a `.R` or `.r` file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - java.lang.String getMainRFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a `.R` or `.r` file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - com.google.protobuf.ByteString getMainRFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the Spark driver. Do not include arguments
-   * that can be set as batch properties, such as `--conf`, since a collision
-   * can occur that causes an incorrect batch submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java deleted file mode 100644 index 75d698eb..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java +++ /dev/null @@ -1,2161 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running
- * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
- * applications on YARN.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob} - */ -public final class SparkRJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkRJob) - SparkRJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkRJob.newBuilder() to construct. - private SparkRJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkRJob() { - mainRFileUri_ = ""; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkRJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkRJob.class, - com.google.cloud.dataproc.v1.SparkRJob.Builder.class); - } - - public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object mainRFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - @java.lang.Override - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList args_; - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_; - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList fileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - - public static final int ARCHIVE_URIS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList archiveUris_; - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - - public static final int PROPERTIES_FIELD_NUMBER = 5; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(mainRFileUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i)); - } - for (int i = 0; i < fileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i)); - } - for (int i = 0; i < archiveUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5); - if (loggingConfig_ != null) { - output.writeMessage(6, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainRFileUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < fileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(fileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getFileUrisList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < archiveUris_.size(); i++) { - dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getArchiveUrisList().size(); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkRJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkRJob other = (com.google.cloud.dataproc.v1.SparkRJob) obj; - - if (!getMainRFileUri().equals(other.getMainRFileUri())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!getFileUrisList().equals(other.getFileUrisList())) return false; - if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAIN_R_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getMainRFileUri().hashCode(); - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (getFileUrisCount() > 0) { - hash = (37 * hash) + FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getFileUrisList().hashCode(); - } - if (getArchiveUrisCount() > 0) { - hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getArchiveUrisList().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkRJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRJob 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.dataproc.v1.SparkRJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRJob 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.dataproc.v1.SparkRJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkRJob 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.dataproc.v1.SparkRJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running
-   * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
-   * applications on YARN.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkRJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkRJob) - com.google.cloud.dataproc.v1.SparkRJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 5: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 5: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkRJob.class, - com.google.cloud.dataproc.v1.SparkRJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkRJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - mainRFileUri_ = ""; - - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableProperties().clear(); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkRJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob build() { - com.google.cloud.dataproc.v1.SparkRJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob buildPartial() { - com.google.cloud.dataproc.v1.SparkRJob result = - new com.google.cloud.dataproc.v1.SparkRJob(this); - int from_bitField0_ = bitField0_; - result.mainRFileUri_ = mainRFileUri_; - if (((bitField0_ & 0x00000001) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - if (((bitField0_ & 0x00000002) != 0)) { - fileUris_ = fileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fileUris_ = fileUris_; - if (((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = archiveUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.archiveUris_ = archiveUris_; - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.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.dataproc.v1.SparkRJob) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkRJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkRJob other) { - if (other == com.google.cloud.dataproc.v1.SparkRJob.getDefaultInstance()) return this; - if (!other.getMainRFileUri().isEmpty()) { - mainRFileUri_ = other.mainRFileUri_; - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (!other.fileUris_.isEmpty()) { - if (fileUris_.isEmpty()) { - fileUris_ = other.fileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFileUrisIsMutable(); - fileUris_.addAll(other.fileUris_); - } - onChanged(); - } - if (!other.archiveUris_.isEmpty()) { - if (archiveUris_.isEmpty()) { - archiveUris_ = other.archiveUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArchiveUrisIsMutable(); - archiveUris_.addAll(other.archiveUris_); - } - onChanged(); - } - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - mainRFileUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFileUrisIsMutable(); - fileUris_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArchiveUrisIsMutable(); - archiveUris_.add(s); - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 42 - case 50: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object mainRFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - public java.lang.String getMainRFileUri() { - java.lang.Object ref = mainRFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainRFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - public com.google.protobuf.ByteString getMainRFileUriBytes() { - java.lang.Object ref = mainRFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mainRFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainRFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMainRFileUri() { - - mainRFileUri_ = getDefaultInstance().getMainRFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the main R file to use as the driver.
-     * Must be a .R file.
-     * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for mainRFileUri to set. - * @return This builder for chaining. - */ - public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainRFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - public com.google.protobuf.ProtocolStringList getArgsList() { - return args_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - public int getArgsCount() { - return args_.size(); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - public com.google.protobuf.ByteString getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The args to set. - * @return This builder for chaining. - */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The args to add. - * @return This builder for chaining. - */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The args to add. - * @return This builder for chaining. - */ - public Builder addAllArgs(java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The arguments to pass to the driver.  Do not include arguments,
-     * such as `--conf`, that can be set as job properties, since a collision may
-     * occur that causes an incorrect job submission.
-     * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the args to add. - * @return This builder for chaining. - */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - public com.google.protobuf.ProtocolStringList getFileUrisList() { - return fileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - public int getFileUrisCount() { - return fileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - public java.lang.String getFileUris(int index) { - return fileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - public com.google.protobuf.ByteString getFileUrisBytes(int index) { - return fileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The fileUris to set. - * @return This builder for chaining. - */ - public Builder setFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The fileUris to add. - * @return This builder for chaining. - */ - public Builder addAllFileUris(java.lang.Iterable values) { - ensureFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFileUris() { - fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of files to be placed in the working directory of
-     * each executor. Useful for naively parallel tasks.
-     * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the fileUris to add. - * @return This builder for chaining. - */ - public Builder addFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFileUrisIsMutable(); - fileUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList archiveUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureArchiveUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - public com.google.protobuf.ProtocolStringList getArchiveUrisList() { - return archiveUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - public int getArchiveUrisCount() { - return archiveUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - public java.lang.String getArchiveUris(int index) { - return archiveUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { - return archiveUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The archiveUris to set. - * @return This builder for chaining. - */ - public Builder setArchiveUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The archiveUris to add. - * @return This builder for chaining. - */ - public Builder addAllArchiveUris(java.lang.Iterable values) { - ensureArchiveUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArchiveUris() { - archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types:
-     * .jar, .tar, .tar.gz, .tgz, and .zip.
-     * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the archiveUris to add. - * @return This builder for chaining. - */ - public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArchiveUrisIsMutable(); - archiveUris_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure SparkR.
-     * Properties that conflict with values set by the Dataproc API may be
-     * overwritten. Can include properties set in
-     * /etc/spark/conf/spark-defaults.conf and classes in user code.
-     * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.SparkRJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkRJob) - private static final com.google.cloud.dataproc.v1.SparkRJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkRJob(); - } - - public static com.google.cloud.dataproc.v1.SparkRJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkRJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkRJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java deleted file mode 100644 index 63185648..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java +++ /dev/null @@ -1,345 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkRJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkRJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The mainRFileUri. - */ - java.lang.String getMainRFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the main R file to use as the driver.
-   * Must be a .R file.
-   * 
- * - * string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for mainRFileUri. - */ - com.google.protobuf.ByteString getMainRFileUriBytes(); - - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the args. - */ - java.util.List getArgsList(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of args. - */ - int getArgsCount(); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The args at the given index. - */ - java.lang.String getArgs(int index); - /** - * - * - *
-   * Optional. The arguments to pass to the driver.  Do not include arguments,
-   * such as `--conf`, that can be set as job properties, since a collision may
-   * occur that causes an incorrect job submission.
-   * 
- * - * repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the args at the given index. - */ - com.google.protobuf.ByteString getArgsBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the fileUris. - */ - java.util.List getFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of fileUris. - */ - int getFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The fileUris at the given index. - */ - java.lang.String getFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of files to be placed in the working directory of
-   * each executor. Useful for naively parallel tasks.
-   * 
- * - * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the fileUris at the given index. - */ - com.google.protobuf.ByteString getFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the archiveUris. - */ - java.util.List getArchiveUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of archiveUris. - */ - int getArchiveUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The archiveUris at the given index. - */ - java.lang.String getArchiveUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of archives to be extracted into the working directory
-   * of each executor. Supported file types:
-   * .jar, .tar, .tar.gz, .tgz, and .zip.
-   * 
- * - * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the archiveUris at the given index. - */ - com.google.protobuf.ByteString getArchiveUrisBytes(int index); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure SparkR.
-   * Properties that conflict with values set by the Dataproc API may be
-   * overwritten. Can include properties set in
-   * /etc/spark/conf/spark-defaults.conf and classes in user code.
-   * 
- * - * map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java deleted file mode 100644 index 2f60b5de..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatch.java +++ /dev/null @@ -1,1243 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A configuration for running
- * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch} - */ -public final class SparkSqlBatch extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlBatch) - SparkSqlBatchOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkSqlBatch.newBuilder() to construct. - private SparkSqlBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkSqlBatch() { - queryFileUri_ = ""; - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkSqlBatch(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetQueryVariables(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlBatch.class, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object queryFileUri_; - /** - * - * - *
-   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-   * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = queryFileUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryFileUri_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-   * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = queryFileUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_VARIABLES_FIELD_NUMBER = 2; - - private static final class QueryVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_QueryVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField queryVariables_; - - private com.google.protobuf.MapField - internalGetQueryVariables() { - if (queryVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QueryVariablesDefaultEntryHolder.defaultEntry); - } - return queryVariables_; - } - - public int getQueryVariablesCount() { - return internalGetQueryVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetQueryVariables().getMap().containsKey(key); - } - /** Use {@link #getQueryVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getQueryVariables() { - return getQueryVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getQueryVariablesMap() { - return internalGetQueryVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryFileUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetQueryVariables(), QueryVariablesDefaultEntryHolder.defaultEntry, 2); - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jarFileUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryFileUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryFileUri_); - } - for (java.util.Map.Entry entry : - internalGetQueryVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry queryVariables__ = - QueryVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, queryVariables__); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getJarFileUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkSqlBatch)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkSqlBatch other = - (com.google.cloud.dataproc.v1.SparkSqlBatch) obj; - - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - if (!internalGetQueryVariables().equals(other.internalGetQueryVariables())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - if (!internalGetQueryVariables().getMap().isEmpty()) { - hash = (37 * hash) + QUERY_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetQueryVariables().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch 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.dataproc.v1.SparkSqlBatch prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configuration for running
-   * [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlBatch} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlBatch) - com.google.cloud.dataproc.v1.SparkSqlBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetQueryVariables(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableQueryVariables(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlBatch.class, - com.google.cloud.dataproc.v1.SparkSqlBatch.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkSqlBatch.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - queryFileUri_ = ""; - - internalGetMutableQueryVariables().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.BatchesProto - .internal_static_google_cloud_dataproc_v1_SparkSqlBatch_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch build() { - com.google.cloud.dataproc.v1.SparkSqlBatch result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch buildPartial() { - com.google.cloud.dataproc.v1.SparkSqlBatch result = - new com.google.cloud.dataproc.v1.SparkSqlBatch(this); - int from_bitField0_ = bitField0_; - result.queryFileUri_ = queryFileUri_; - result.queryVariables_ = internalGetQueryVariables(); - result.queryVariables_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jarFileUris_ = jarFileUris_; - 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.dataproc.v1.SparkSqlBatch) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlBatch) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlBatch other) { - if (other == com.google.cloud.dataproc.v1.SparkSqlBatch.getDefaultInstance()) return this; - if (!other.getQueryFileUri().isEmpty()) { - queryFileUri_ = other.queryFileUri_; - onChanged(); - } - internalGetMutableQueryVariables().mergeFrom(other.internalGetQueryVariables()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - queryFileUri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry queryVariables__ = - input.readMessage( - QueryVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableQueryVariables() - .getMutableMap() - .put(queryVariables__.getKey(), queryVariables__.getValue()); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object queryFileUri_ = ""; - /** - * - * - *
-     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-     * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = queryFileUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryFileUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-     * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = queryFileUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryFileUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-     * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - queryFileUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-     * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - - queryFileUri_ = getDefaultInstance().getQueryFileUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-     * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - queryFileUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField queryVariables_; - - private com.google.protobuf.MapField - internalGetQueryVariables() { - if (queryVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QueryVariablesDefaultEntryHolder.defaultEntry); - } - return queryVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableQueryVariables() { - onChanged(); - ; - if (queryVariables_ == null) { - queryVariables_ = - com.google.protobuf.MapField.newMapField(QueryVariablesDefaultEntryHolder.defaultEntry); - } - if (!queryVariables_.isMutable()) { - queryVariables_ = queryVariables_.copy(); - } - return queryVariables_; - } - - public int getQueryVariablesCount() { - return internalGetQueryVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetQueryVariables().getMap().containsKey(key); - } - /** Use {@link #getQueryVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getQueryVariables() { - return getQueryVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getQueryVariablesMap() { - return internalGetQueryVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getQueryVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getQueryVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearQueryVariables() { - internalGetMutableQueryVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeQueryVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableQueryVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableQueryVariables() { - return internalGetMutableQueryVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putQueryVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableQueryVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: `SET name="value";`).
-     * 
- * - * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllQueryVariables(java.util.Map values) { - internalGetMutableQueryVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(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.dataproc.v1.SparkSqlBatch) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlBatch) - private static final com.google.cloud.dataproc.v1.SparkSqlBatch DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlBatch(); - } - - public static com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlBatch getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java deleted file mode 100644 index 7d6a5214..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlBatchOrBuilder.java +++ /dev/null @@ -1,170 +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/dataproc/v1/batches.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkSqlBatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlBatch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-   * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * Required. The HCFS URI of the script that contains Spark SQL queries to execute.
-   * 
- * - * string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getQueryVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsQueryVariables(java.lang.String key); - /** Use {@link #getQueryVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getQueryVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getQueryVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getQueryVariablesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: `SET name="value";`).
-   * 
- * - * map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getQueryVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java deleted file mode 100644 index 4946523c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java +++ /dev/null @@ -1,2297 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc job for running [Apache Spark
- * SQL](http://spark.apache.org/sql/) queries.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob} - */ -public final class SparkSqlJob extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SparkSqlJob) - SparkSqlJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkSqlJob.newBuilder() to construct. - private SparkSqlJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SparkSqlJob() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SparkSqlJob(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetScriptVariables(); - case 4: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlJob.class, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public enum QueriesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - QUERY_FILE_URI(1), - QUERY_LIST(2), - QUERIES_NOT_SET(0); - private final int value; - - private QueriesCase(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 QueriesCase valueOf(int value) { - return forNumber(value); - } - - public static QueriesCase forNumber(int value) { - switch (value) { - case 1: - return QUERY_FILE_URI; - case 2: - return QUERY_LIST; - case 0: - return QUERIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public static final int QUERY_FILE_URI_FIELD_NUMBER = 1; - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.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 (queriesCase_ == 1) { - queries_ = s; - } - return s; - } - } - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_LIST_FIELD_NUMBER = 2; - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - - public static final int SCRIPT_VARIABLES_FIELD_NUMBER = 3; - - private static final class ScriptVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_ScriptVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROPERTIES_FIELD_NUMBER = 4; - - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int JAR_FILE_URIS_FIELD_NUMBER = 56; - private com.google.protobuf.LazyStringList jarFileUris_; - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_; - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return loggingConfig_ != null; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return getLoggingConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queriesCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queries_); - } - if (queriesCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetScriptVariables(), ScriptVariablesDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 4); - if (loggingConfig_ != null) { - output.writeMessage(6, getLoggingConfig()); - } - for (int i = 0; i < jarFileUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 56, jarFileUris_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queriesCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queries_); - } - if (queriesCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.QueryList) queries_); - } - for (java.util.Map.Entry entry : - internalGetScriptVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry scriptVariables__ = - ScriptVariablesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scriptVariables__); - } - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, properties__); - } - if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig()); - } - { - int dataSize = 0; - for (int i = 0; i < jarFileUris_.size(); i++) { - dataSize += computeStringSizeNoTag(jarFileUris_.getRaw(i)); - } - size += dataSize; - size += 2 * getJarFileUrisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SparkSqlJob)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SparkSqlJob other = (com.google.cloud.dataproc.v1.SparkSqlJob) obj; - - if (!internalGetScriptVariables().equals(other.internalGetScriptVariables())) return false; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (!getJarFileUrisList().equals(other.getJarFileUrisList())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getQueriesCase().equals(other.getQueriesCase())) return false; - switch (queriesCase_) { - case 1: - if (!getQueryFileUri().equals(other.getQueryFileUri())) return false; - break; - case 2: - if (!getQueryList().equals(other.getQueryList())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetScriptVariables().getMap().isEmpty()) { - hash = (37 * hash) + SCRIPT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScriptVariables().hashCode(); - } - if (!internalGetProperties().getMap().isEmpty()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + internalGetProperties().hashCode(); - } - if (getJarFileUrisCount() > 0) { - hash = (37 * hash) + JAR_FILE_URIS_FIELD_NUMBER; - hash = (53 * hash) + getJarFileUrisList().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - switch (queriesCase_) { - case 1: - hash = (37 * hash) + QUERY_FILE_URI_FIELD_NUMBER; - hash = (53 * hash) + getQueryFileUri().hashCode(); - break; - case 2: - hash = (37 * hash) + QUERY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob 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.dataproc.v1.SparkSqlJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob 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.dataproc.v1.SparkSqlJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob 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.dataproc.v1.SparkSqlJob prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc job for running [Apache Spark
-   * SQL](http://spark.apache.org/sql/) queries.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SparkSqlJob} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SparkSqlJob) - com.google.cloud.dataproc.v1.SparkSqlJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetScriptVariables(); - case 4: - return internalGetProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableScriptVariables(); - case 4: - return internalGetMutableProperties(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SparkSqlJob.class, - com.google.cloud.dataproc.v1.SparkSqlJob.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SparkSqlJob.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queryListBuilder_ != null) { - queryListBuilder_.clear(); - } - internalGetMutableScriptVariables().clear(); - internalGetMutableProperties().clear(); - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - queriesCase_ = 0; - queries_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SparkSqlJob_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob build() { - com.google.cloud.dataproc.v1.SparkSqlJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob buildPartial() { - com.google.cloud.dataproc.v1.SparkSqlJob result = - new com.google.cloud.dataproc.v1.SparkSqlJob(this); - int from_bitField0_ = bitField0_; - if (queriesCase_ == 1) { - result.queries_ = queries_; - } - if (queriesCase_ == 2) { - if (queryListBuilder_ == null) { - result.queries_ = queries_; - } else { - result.queries_ = queryListBuilder_.build(); - } - } - result.scriptVariables_ = internalGetScriptVariables(); - result.scriptVariables_.makeImmutable(); - result.properties_ = internalGetProperties(); - result.properties_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = jarFileUris_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.jarFileUris_ = jarFileUris_; - if (loggingConfigBuilder_ == null) { - result.loggingConfig_ = loggingConfig_; - } else { - result.loggingConfig_ = loggingConfigBuilder_.build(); - } - result.queriesCase_ = queriesCase_; - 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.dataproc.v1.SparkSqlJob) { - return mergeFrom((com.google.cloud.dataproc.v1.SparkSqlJob) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SparkSqlJob other) { - if (other == com.google.cloud.dataproc.v1.SparkSqlJob.getDefaultInstance()) return this; - internalGetMutableScriptVariables().mergeFrom(other.internalGetScriptVariables()); - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); - if (!other.jarFileUris_.isEmpty()) { - if (jarFileUris_.isEmpty()) { - jarFileUris_ = other.jarFileUris_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureJarFileUrisIsMutable(); - jarFileUris_.addAll(other.jarFileUris_); - } - onChanged(); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - switch (other.getQueriesCase()) { - case QUERY_FILE_URI: - { - queriesCase_ = 1; - queries_ = other.queries_; - onChanged(); - break; - } - case QUERY_LIST: - { - mergeQueryList(other.getQueryList()); - break; - } - case QUERIES_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - queriesCase_ = 1; - queries_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getQueryListFieldBuilder().getBuilder(), extensionRegistry); - queriesCase_ = 2; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry scriptVariables__ = - input.readMessage( - ScriptVariablesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScriptVariables() - .getMutableMap() - .put(scriptVariables__.getKey(), scriptVariables__.getValue()); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableProperties() - .getMutableMap() - .put(properties__.getKey(), properties__.getValue()); - break; - } // case 34 - case 50: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 450: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(s); - break; - } // case 450 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int queriesCase_ = 0; - private java.lang.Object queries_; - - public QueriesCase getQueriesCase() { - return QueriesCase.forNumber(queriesCase_); - } - - public Builder clearQueries() { - queriesCase_ = 0; - queries_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - @java.lang.Override - public boolean hasQueryFileUri() { - return queriesCase_ == 1; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - @java.lang.Override - public java.lang.String getQueryFileUri() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queriesCase_ == 1) { - queries_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryFileUriBytes() { - java.lang.Object ref = ""; - if (queriesCase_ == 1) { - ref = queries_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (queriesCase_ == 1) { - queries_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryFileUri() { - if (queriesCase_ == 1) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The HCFS URI of the script that contains SQL queries.
-     * 
- * - * string query_file_uri = 1; - * - * @param value The bytes for queryFileUri to set. - * @return This builder for chaining. - */ - public Builder setQueryFileUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queriesCase_ = 1; - queries_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - queryListBuilder_; - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - @java.lang.Override - public boolean hasQueryList() { - return queriesCase_ == 2; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryList getQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } else { - if (queriesCase_ == 2) { - return queryListBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queries_ = value; - onChanged(); - } else { - queryListBuilder_.setMessage(value); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder setQueryList(com.google.cloud.dataproc.v1.QueryList.Builder builderForValue) { - if (queryListBuilder_ == null) { - queries_ = builderForValue.build(); - onChanged(); - } else { - queryListBuilder_.setMessage(builderForValue.build()); - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder mergeQueryList(com.google.cloud.dataproc.v1.QueryList value) { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2 - && queries_ != com.google.cloud.dataproc.v1.QueryList.getDefaultInstance()) { - queries_ = - com.google.cloud.dataproc.v1.QueryList.newBuilder( - (com.google.cloud.dataproc.v1.QueryList) queries_) - .mergeFrom(value) - .buildPartial(); - } else { - queries_ = value; - } - onChanged(); - } else { - if (queriesCase_ == 2) { - queryListBuilder_.mergeFrom(value); - } else { - queryListBuilder_.setMessage(value); - } - } - queriesCase_ = 2; - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public Builder clearQueryList() { - if (queryListBuilder_ == null) { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - onChanged(); - } - } else { - if (queriesCase_ == 2) { - queriesCase_ = 0; - queries_ = null; - } - queryListBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - public com.google.cloud.dataproc.v1.QueryList.Builder getQueryListBuilder() { - return getQueryListFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder() { - if ((queriesCase_ == 2) && (queryListBuilder_ != null)) { - return queryListBuilder_.getMessageOrBuilder(); - } else { - if (queriesCase_ == 2) { - return (com.google.cloud.dataproc.v1.QueryList) queries_; - } - return com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - } - /** - * - * - *
-     * A list of queries.
-     * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder> - getQueryListFieldBuilder() { - if (queryListBuilder_ == null) { - if (!(queriesCase_ == 2)) { - queries_ = com.google.cloud.dataproc.v1.QueryList.getDefaultInstance(); - } - queryListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.QueryList, - com.google.cloud.dataproc.v1.QueryList.Builder, - com.google.cloud.dataproc.v1.QueryListOrBuilder>( - (com.google.cloud.dataproc.v1.QueryList) queries_, - getParentForChildren(), - isClean()); - queries_ = null; - } - queriesCase_ = 2; - onChanged(); - ; - return queryListBuilder_; - } - - private com.google.protobuf.MapField scriptVariables_; - - private com.google.protobuf.MapField - internalGetScriptVariables() { - if (scriptVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - return scriptVariables_; - } - - private com.google.protobuf.MapField - internalGetMutableScriptVariables() { - onChanged(); - ; - if (scriptVariables_ == null) { - scriptVariables_ = - com.google.protobuf.MapField.newMapField( - ScriptVariablesDefaultEntryHolder.defaultEntry); - } - if (!scriptVariables_.isMutable()) { - scriptVariables_ = scriptVariables_.copy(); - } - return scriptVariables_; - } - - public int getScriptVariablesCount() { - return internalGetScriptVariables().getMap().size(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScriptVariables().getMap().containsKey(key); - } - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScriptVariables() { - return getScriptVariablesMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getScriptVariablesMap() { - return internalGetScriptVariables().getMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getScriptVariablesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScriptVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScriptVariables() { - internalGetMutableScriptVariables().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeScriptVariables(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScriptVariables().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScriptVariables() { - return internalGetMutableScriptVariables().getMutableMap(); - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putScriptVariables(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableScriptVariables().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. Mapping of query variable names to values (equivalent to the
-     * Spark SQL command: SET `name="value";`).
-     * 
- * - * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllScriptVariables(java.util.Map values) { - internalGetMutableScriptVariables().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.MapField properties_; - - private com.google.protobuf.MapField - internalGetProperties() { - if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); - } - return properties_; - } - - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; - if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); - } - if (!properties_.isMutable()) { - properties_ = properties_.copy(); - } - return properties_; - } - - public int getPropertiesCount() { - return internalGetProperties().getMap().size(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetProperties().getMap().containsKey(key); - } - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getProperties() { - return getPropertiesMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getPropertiesMap() { - return internalGetProperties().getMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetProperties().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableProperties() { - return internalGetMutableProperties().getMutableMap(); - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putProperties(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableProperties().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. A mapping of property names to values, used to configure
-     * Spark SQL's SparkConf. Properties that conflict with values set by the
-     * Dataproc API may be overwritten.
-     * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder putAllProperties(java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.LazyStringList jarFileUris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJarFileUrisIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - jarFileUris_ = new com.google.protobuf.LazyStringArrayList(jarFileUris_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - public com.google.protobuf.ProtocolStringList getJarFileUrisList() { - return jarFileUris_.getUnmodifiableView(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - public int getJarFileUrisCount() { - return jarFileUris_.size(); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - public java.lang.String getJarFileUris(int index) { - return jarFileUris_.get(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - public com.google.protobuf.ByteString getJarFileUrisBytes(int index) { - return jarFileUris_.getByteString(index); - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The jarFileUris to set. - * @return This builder for chaining. - */ - public Builder setJarFileUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addAllJarFileUris(java.lang.Iterable values) { - ensureJarFileUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jarFileUris_); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJarFileUris() { - jarFileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-     * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the jarFileUris to add. - * @return This builder for chaining. - */ - public Builder addJarFileUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJarFileUrisIsMutable(); - jarFileUris_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return loggingConfigBuilder_ != null || loggingConfig_ != null; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - public com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - onChanged(); - } else { - loggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setLoggingConfig( - com.google.cloud.dataproc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - onChanged(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (loggingConfig_ != null) { - loggingConfig_ = - com.google.cloud.dataproc.v1.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - loggingConfig_ = value; - } - onChanged(); - } else { - loggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearLoggingConfig() { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = null; - onChanged(); - } else { - loggingConfig_ = null; - loggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.cloud.dataproc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Optional. The runtime log config for job execution.
-     * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.LoggingConfig, - com.google.cloud.dataproc.v1.LoggingConfig.Builder, - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @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.dataproc.v1.SparkSqlJob) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SparkSqlJob) - private static final com.google.cloud.dataproc.v1.SparkSqlJob DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SparkSqlJob(); - } - - public static com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkSqlJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SparkSqlJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java deleted file mode 100644 index 5c89007c..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java +++ /dev/null @@ -1,334 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface SparkSqlJobOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SparkSqlJob) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return Whether the queryFileUri field is set. - */ - boolean hasQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The queryFileUri. - */ - java.lang.String getQueryFileUri(); - /** - * - * - *
-   * The HCFS URI of the script that contains SQL queries.
-   * 
- * - * string query_file_uri = 1; - * - * @return The bytes for queryFileUri. - */ - com.google.protobuf.ByteString getQueryFileUriBytes(); - - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return Whether the queryList field is set. - */ - boolean hasQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - * - * @return The queryList. - */ - com.google.cloud.dataproc.v1.QueryList getQueryList(); - /** - * - * - *
-   * A list of queries.
-   * 
- * - * .google.cloud.dataproc.v1.QueryList query_list = 2; - */ - com.google.cloud.dataproc.v1.QueryListOrBuilder getQueryListOrBuilder(); - - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getScriptVariablesCount(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsScriptVariables(java.lang.String key); - /** Use {@link #getScriptVariablesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScriptVariables(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getScriptVariablesMap(); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getScriptVariablesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. Mapping of query variable names to values (equivalent to the
-   * Spark SQL command: SET `name="value";`).
-   * 
- * - * map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getScriptVariablesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPropertiesCount(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getProperties(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.Map getPropertiesMap(); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - - /* nullable */ - java.lang.String getPropertiesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. A mapping of property names to values, used to configure
-   * Spark SQL's SparkConf. Properties that conflict with values set by the
-   * Dataproc API may be overwritten.
-   * 
- * - * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.lang.String getPropertiesOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the jarFileUris. - */ - java.util.List getJarFileUrisList(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of jarFileUris. - */ - int getJarFileUrisCount(); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The jarFileUris at the given index. - */ - java.lang.String getJarFileUris(int index); - /** - * - * - *
-   * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
-   * 
- * - * repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the jarFileUris at the given index. - */ - com.google.protobuf.ByteString getJarFileUrisBytes(int index); - - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The loggingConfig. - */ - com.google.cloud.dataproc.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Optional. The runtime log config for job execution.
-   * 
- * - * - * .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.SparkSqlJob.QueriesCase getQueriesCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java deleted file mode 100644 index bce39498..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java +++ /dev/null @@ -1,1404 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to start a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} - */ -public final class StartClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StartClusterRequest) - StartClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StartClusterRequest.newBuilder() to construct. - private StartClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StartClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - clusterUuid_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StartClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, - com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 2; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.StartClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.StartClusterRequest other = - (com.google.cloud.dataproc.v1.StartClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest 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.dataproc.v1.StartClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to start a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.StartClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StartClusterRequest) - com.google.cloud.dataproc.v1.StartClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StartClusterRequest.class, - com.google.cloud.dataproc.v1.StartClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.StartClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - clusterUuid_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StartClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StartClusterRequest build() { - com.google.cloud.dataproc.v1.StartClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StartClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StartClusterRequest result = - new com.google.cloud.dataproc.v1.StartClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - result.requestId_ = requestId_; - 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.dataproc.v1.StartClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StartClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.StartClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StartClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.StartClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StartClusterRequest) - private static final com.google.cloud.dataproc.v1.StartClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StartClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StartClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java deleted file mode 100644 index 9a483467..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java +++ /dev/null @@ -1,172 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface StartClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StartClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java deleted file mode 100644 index 306a1a81..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java +++ /dev/null @@ -1,1404 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to stop a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} - */ -public final class StopClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.StopClusterRequest) - StopClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopClusterRequest.newBuilder() to construct. - private StopClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StopClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - clusterUuid_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StopClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, - com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 2; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUuid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.StopClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.StopClusterRequest other = - (com.google.cloud.dataproc.v1.StopClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - hash = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest 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.dataproc.v1.StopClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to stop a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.StopClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.StopClusterRequest) - com.google.cloud.dataproc.v1.StopClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.StopClusterRequest.class, - com.google.cloud.dataproc.v1.StopClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.StopClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - clusterUuid_ = ""; - - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_StopClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StopClusterRequest build() { - com.google.cloud.dataproc.v1.StopClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StopClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.StopClusterRequest result = - new com.google.cloud.dataproc.v1.StopClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - result.clusterUuid_ = clusterUuid_; - result.requestId_ = requestId_; - 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.dataproc.v1.StopClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.StopClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.StopClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.StopClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Specifying the `cluster_uuid` means the RPC will fail
-     * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-     * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * Recommendation: Set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.StopClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.StopClusterRequest) - private static final com.google.cloud.dataproc.v1.StopClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.StopClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.StopClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java deleted file mode 100644 index 8b9a1297..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java +++ /dev/null @@ -1,172 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface StopClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.StopClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Optional. Specifying the `cluster_uuid` means the RPC will fail
-   * (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
-   * 
- * - * string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * Recommendation: Set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java deleted file mode 100644 index b57b71ff..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java +++ /dev/null @@ -1,1298 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to submit a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} - */ -public final class SubmitJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.SubmitJobRequest) - SubmitJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SubmitJobRequest.newBuilder() to construct. - private SubmitJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SubmitJobRequest() { - projectId_ = ""; - region_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SubmitJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, - com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 3; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_FIELD_NUMBER = 2; - private com.google.cloud.dataproc.v1.Job job_; - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - @java.lang.Override - public boolean hasJob() { - return job_ != null; - } - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Job getJob() { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { - return getJob(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (job_ != null) { - output.writeMessage(2, getJob()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.SubmitJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.SubmitJobRequest other = - (com.google.cloud.dataproc.v1.SubmitJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (hasJob() != other.hasJob()) return false; - if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - if (hasJob()) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest 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.dataproc.v1.SubmitJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest 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.dataproc.v1.SubmitJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest 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.dataproc.v1.SubmitJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to submit a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.SubmitJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.SubmitJobRequest) - com.google.cloud.dataproc.v1.SubmitJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.SubmitJobRequest.class, - com.google.cloud.dataproc.v1.SubmitJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.SubmitJobRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - if (jobBuilder_ == null) { - job_ = null; - } else { - job_ = null; - jobBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_SubmitJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SubmitJobRequest build() { - com.google.cloud.dataproc.v1.SubmitJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SubmitJobRequest buildPartial() { - com.google.cloud.dataproc.v1.SubmitJobRequest result = - new com.google.cloud.dataproc.v1.SubmitJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - if (jobBuilder_ == null) { - result.job_ = job_; - } else { - result.job_ = jobBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1.SubmitJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.SubmitJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.SubmitJobRequest other) { - if (other == com.google.cloud.dataproc.v1.SubmitJobRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (other.hasJob()) { - mergeJob(other.getJob()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.Job job_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobBuilder_; - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - public boolean hasJob() { - return jobBuilder_ != null || job_ != null; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - public com.google.cloud.dataproc.v1.Job getJob() { - if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } else { - return jobBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setJob(com.google.cloud.dataproc.v1.Job value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - job_ = value; - onChanged(); - } else { - jobBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { - if (jobBuilder_ == null) { - job_ = builderForValue.build(); - onChanged(); - } else { - jobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { - if (jobBuilder_ == null) { - if (job_ != null) { - job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); - } else { - job_ = value; - } - onChanged(); - } else { - jobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = null; - onChanged(); - } else { - job_ = null; - jobBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - - onChanged(); - return getJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilder(); - } else { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } - } - /** - * - * - *
-     * Required. The job resource.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); - job_ = null; - } - return jobBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique id used to identify the request. If the server
-     * receives two
-     * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-     * is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The id must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.SubmitJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.SubmitJobRequest) - private static final com.google.cloud.dataproc.v1.SubmitJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.SubmitJobRequest(); - } - - public static com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubmitJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.SubmitJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java deleted file mode 100644 index cc9dcd73..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java +++ /dev/null @@ -1,155 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface SubmitJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.SubmitJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - com.google.cloud.dataproc.v1.Job getJob(); - /** - * - * - *
-   * Required. The job resource.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); - - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique id used to identify the request. If the server
-   * receives two
-   * [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend
-   * is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The id must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java deleted file mode 100644 index e40d43e9..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java +++ /dev/null @@ -1,1877 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A configurable parameter that replaces one or more fields in the template.
- * Parameterizable fields:
- * - Labels
- * - File uris
- * - Job properties
- * - Job arguments
- * - Script variables
- * - Main class (in HadoopJob and SparkJob)
- * - Zone (in ClusterSelector)
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter} - */ -public final class TemplateParameter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.TemplateParameter) - TemplateParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use TemplateParameter.newBuilder() to construct. - private TemplateParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TemplateParameter() { - name_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TemplateParameter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.TemplateParameter.class, - com.google.cloud.dataproc.v1.TemplateParameter.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList fields_; - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the fields. - */ - public com.google.protobuf.ProtocolStringList getFieldsList() { - return fields_; - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of fields. - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATION_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.ParameterValidation validation_; - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the validation field is set. - */ - @java.lang.Override - public boolean hasValidation() { - return validation_ != null; - } - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The validation. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; - } - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { - return getValidation(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (validation_ != null) { - output.writeMessage(4, getValidation()); - } - getUnknownFields().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_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (validation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getValidation()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.TemplateParameter)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.TemplateParameter other = - (com.google.cloud.dataproc.v1.TemplateParameter) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasValidation() != other.hasValidation()) return false; - if (hasValidation()) { - if (!getValidation().equals(other.getValidation())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasValidation()) { - hash = (37 * hash) + VALIDATION_FIELD_NUMBER; - hash = (53 * hash) + getValidation().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter 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.dataproc.v1.TemplateParameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter 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.dataproc.v1.TemplateParameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter 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.dataproc.v1.TemplateParameter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 configurable parameter that replaces one or more fields in the template.
-   * Parameterizable fields:
-   * - Labels
-   * - File uris
-   * - Job properties
-   * - Job arguments
-   * - Script variables
-   * - Main class (in HadoopJob and SparkJob)
-   * - Zone (in ClusterSelector)
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.TemplateParameter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.TemplateParameter) - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.TemplateParameter.class, - com.google.cloud.dataproc.v1.TemplateParameter.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.TemplateParameter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - - if (validationBuilder_ == null) { - validation_ = null; - } else { - validation_ = null; - validationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameter build() { - com.google.cloud.dataproc.v1.TemplateParameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameter buildPartial() { - com.google.cloud.dataproc.v1.TemplateParameter result = - new com.google.cloud.dataproc.v1.TemplateParameter(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fields_ = fields_; - result.description_ = description_; - if (validationBuilder_ == null) { - result.validation_ = validation_; - } else { - result.validation_ = validationBuilder_.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.dataproc.v1.TemplateParameter) { - return mergeFrom((com.google.cloud.dataproc.v1.TemplateParameter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.TemplateParameter other) { - if (other == com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasValidation()) { - mergeValidation(other.getValidation()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldsIsMutable(); - fields_.add(s); - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getValidationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Parameter name.
-     * The parameter name is used as the key, and paired with the
-     * parameter value, which are passed to the template when the template
-     * is instantiated.
-     * The name must contain only capital letters (A-Z), numbers (0-9), and
-     * underscores (_), and must not start with a number. The maximum length is
-     * 40 characters.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the fields. - */ - public com.google.protobuf.ProtocolStringList getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of fields. - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The fields to set. - * @return This builder for chaining. - */ - public Builder setFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The fields to add. - * @return This builder for chaining. - */ - public Builder addFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The fields to add. - * @return This builder for chaining. - */ - public Builder addAllFields(java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Paths to all fields that the parameter replaces.
-     * A field is allowed to appear in at most one parameter's list of field
-     * paths.
-     * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-     * For example, a field path that references the zone field of a workflow
-     * template's cluster selector would be specified as
-     * `placement.clusterSelector.zone`.
-     * Also, field paths can reference fields using the following syntax:
-     * * Values in maps can be referenced by key:
-     *     * labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * placement.managedCluster.labels['key']
-     *     * placement.clusterSelector.clusterLabels['key']
-     *     * jobs['step-id'].labels['key']
-     * * Jobs in the jobs list can be referenced by step-id:
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * jobs['step-id'].hiveJob.queryFileUri
-     *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-     *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-     *     * jobs['step-id'].hadoopJob.archiveUris[0]
-     *     * jobs['step-id'].hadoopJob.fileUris[0]
-     *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-     * * Items in repeated fields can be referenced by a zero-based index:
-     *     * jobs['step-id'].sparkJob.args[0]
-     * * Other examples:
-     *     * jobs['step-id'].hadoopJob.properties['key']
-     *     * jobs['step-id'].hadoopJob.args[0]
-     *     * jobs['step-id'].hiveJob.scriptVariables['key']
-     *     * jobs['step-id'].hadoopJob.mainJarFileUri
-     *     * placement.clusterSelector.zone
-     * It may not be possible to parameterize maps and repeated fields in their
-     * entirety since only individual map values and individual items in repeated
-     * fields can be referenced. For example, the following field paths are
-     * invalid:
-     * - placement.clusterSelector.clusterLabels
-     * - jobs['step-id'].sparkJob.args
-     * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the fields to add. - * @return This builder for chaining. - */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Brief description of the parameter.
-     * Must not exceed 1024 characters.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ParameterValidation validation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> - validationBuilder_; - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the validation field is set. - */ - public boolean hasValidation() { - return validationBuilder_ != null || validation_ != null; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The validation. - */ - public com.google.cloud.dataproc.v1.ParameterValidation getValidation() { - if (validationBuilder_ == null) { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; - } else { - return validationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { - if (validationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validation_ = value; - onChanged(); - } else { - validationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setValidation( - com.google.cloud.dataproc.v1.ParameterValidation.Builder builderForValue) { - if (validationBuilder_ == null) { - validation_ = builderForValue.build(); - onChanged(); - } else { - validationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeValidation(com.google.cloud.dataproc.v1.ParameterValidation value) { - if (validationBuilder_ == null) { - if (validation_ != null) { - validation_ = - com.google.cloud.dataproc.v1.ParameterValidation.newBuilder(validation_) - .mergeFrom(value) - .buildPartial(); - } else { - validation_ = value; - } - onChanged(); - } else { - validationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearValidation() { - if (validationBuilder_ == null) { - validation_ = null; - onChanged(); - } else { - validation_ = null; - validationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ParameterValidation.Builder getValidationBuilder() { - - onChanged(); - return getValidationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder() { - if (validationBuilder_ != null) { - return validationBuilder_.getMessageOrBuilder(); - } else { - return validation_ == null - ? com.google.cloud.dataproc.v1.ParameterValidation.getDefaultInstance() - : validation_; - } - } - /** - * - * - *
-     * Optional. Validation rules to be applied to this parameter's value.
-     * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder> - getValidationFieldBuilder() { - if (validationBuilder_ == null) { - validationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ParameterValidation, - com.google.cloud.dataproc.v1.ParameterValidation.Builder, - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder>( - getValidation(), getParentForChildren(), isClean()); - validation_ = null; - } - return validationBuilder_; - } - - @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.dataproc.v1.TemplateParameter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.TemplateParameter) - private static final com.google.cloud.dataproc.v1.TemplateParameter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.TemplateParameter(); - } - - public static com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemplateParameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java deleted file mode 100644 index 5625583f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java +++ /dev/null @@ -1,321 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface TemplateParameterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.TemplateParameter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Parameter name.
-   * The parameter name is used as the key, and paired with the
-   * parameter value, which are passed to the template when the template
-   * is instantiated.
-   * The name must contain only capital letters (A-Z), numbers (0-9), and
-   * underscores (_), and must not start with a number. The maximum length is
-   * 40 characters.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the fields. - */ - java.util.List getFieldsList(); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of fields. - */ - int getFieldsCount(); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The fields at the given index. - */ - java.lang.String getFields(int index); - /** - * - * - *
-   * Required. Paths to all fields that the parameter replaces.
-   * A field is allowed to appear in at most one parameter's list of field
-   * paths.
-   * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
-   * For example, a field path that references the zone field of a workflow
-   * template's cluster selector would be specified as
-   * `placement.clusterSelector.zone`.
-   * Also, field paths can reference fields using the following syntax:
-   * * Values in maps can be referenced by key:
-   *     * labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * placement.managedCluster.labels['key']
-   *     * placement.clusterSelector.clusterLabels['key']
-   *     * jobs['step-id'].labels['key']
-   * * Jobs in the jobs list can be referenced by step-id:
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * jobs['step-id'].hiveJob.queryFileUri
-   *     * jobs['step-id'].pySparkJob.mainPythonFileUri
-   *     * jobs['step-id'].hadoopJob.jarFileUris[0]
-   *     * jobs['step-id'].hadoopJob.archiveUris[0]
-   *     * jobs['step-id'].hadoopJob.fileUris[0]
-   *     * jobs['step-id'].pySparkJob.pythonFileUris[0]
-   * * Items in repeated fields can be referenced by a zero-based index:
-   *     * jobs['step-id'].sparkJob.args[0]
-   * * Other examples:
-   *     * jobs['step-id'].hadoopJob.properties['key']
-   *     * jobs['step-id'].hadoopJob.args[0]
-   *     * jobs['step-id'].hiveJob.scriptVariables['key']
-   *     * jobs['step-id'].hadoopJob.mainJarFileUri
-   *     * placement.clusterSelector.zone
-   * It may not be possible to parameterize maps and repeated fields in their
-   * entirety since only individual map values and individual items in repeated
-   * fields can be referenced. For example, the following field paths are
-   * invalid:
-   * - placement.clusterSelector.clusterLabels
-   * - jobs['step-id'].sparkJob.args
-   * 
- * - * repeated string fields = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the fields at the given index. - */ - com.google.protobuf.ByteString getFieldsBytes(int index); - - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Optional. Brief description of the parameter.
-   * Must not exceed 1024 characters.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the validation field is set. - */ - boolean hasValidation(); - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The validation. - */ - com.google.cloud.dataproc.v1.ParameterValidation getValidation(); - /** - * - * - *
-   * Optional. Validation rules to be applied to this parameter's value.
-   * 
- * - * - * .google.cloud.dataproc.v1.ParameterValidation validation = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.ParameterValidationOrBuilder getValidationOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java deleted file mode 100644 index cfdd01c0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java +++ /dev/null @@ -1,730 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to update an autoscaling policy.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} - */ -public final class UpdateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - UpdateAutoscalingPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateAutoscalingPolicyRequest.newBuilder() to construct. - private UpdateAutoscalingPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateAutoscalingPolicyRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateAutoscalingPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); - } - - public static final int POLICY_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - @java.lang.Override - public boolean hasPolicy() { - return policy_ != null; - } - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { - output.writeMessage(1, getPolicy()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other = - (com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) obj; - - if (hasPolicy() != other.hasPolicy()) return false; - if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPolicy()) { - hash = (37 * hash) + POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPolicy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest 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.dataproc.v1.UpdateAutoscalingPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest 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.dataproc.v1.UpdateAutoscalingPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest 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.dataproc.v1.UpdateAutoscalingPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update an autoscaling policy.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.class, - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; - policyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.AutoscalingPoliciesProto - .internal_static_google_cloud_dataproc_v1_UpdateAutoscalingPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest build() { - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest result = - new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(this); - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.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.dataproc.v1.UpdateAutoscalingPolicyRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest.getDefaultInstance()) - return this; - if (other.hasPolicy()) { - mergePolicy(other.getPolicy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.dataproc.v1.AutoscalingPolicy policy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - policyBuilder_; - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy() { - if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } else { - return policyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - policyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicy( - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder builderForValue) { - if (policyBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - policyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicy(com.google.cloud.dataproc.v1.AutoscalingPolicy value) { - if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.cloud.dataproc.v1.AutoscalingPolicy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - policyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; - policyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder getPolicyBuilder() { - - onChanged(); - return getPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder() { - if (policyBuilder_ != null) { - return policyBuilder_.getMessageOrBuilder(); - } else { - return policy_ == null - ? com.google.cloud.dataproc.v1.AutoscalingPolicy.getDefaultInstance() - : policy_; - } - } - /** - * - * - *
-     * Required. The updated autoscaling policy.
-     * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> - getPolicyFieldBuilder() { - if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AutoscalingPolicy, - com.google.cloud.dataproc.v1.AutoscalingPolicy.Builder, - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); - policy_ = null; - } - return policyBuilder_; - } - - @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.dataproc.v1.UpdateAutoscalingPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - private static final com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest(); - } - - public static com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAutoscalingPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java deleted file mode 100644 index 6ca8ce6d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java +++ /dev/null @@ -1,66 +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/dataproc/v1/autoscaling_policies.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateAutoscalingPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policy. - */ - com.google.cloud.dataproc.v1.AutoscalingPolicy getPolicy(); - /** - * - * - *
-   * Required. The updated autoscaling policy.
-   * 
- * - * - * .google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder getPolicyOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java deleted file mode 100644 index ac73fe75..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java +++ /dev/null @@ -1,2724 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to update a cluster.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} - */ -public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateClusterRequest) - UpdateClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateClusterRequest.newBuilder() to construct. - private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateClusterRequest() { - projectId_ = ""; - region_ = ""; - clusterName_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateClusterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 5; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.Cluster cluster_; - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return cluster_ != null; - } - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Cluster getCluster() { - return cluster_ == null ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() : cluster_; - } - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 6; - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - @java.lang.Override - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - return getGracefulDecommissionTimeout(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object requestId_; - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterName_); - } - if (cluster_ != null) { - output.writeMessage(3, getCluster()); - } - if (updateMask_ != null) { - output.writeMessage(4, getUpdateMask()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, region_); - } - if (gracefulDecommissionTimeout_ != null) { - output.writeMessage(6, getGracefulDecommissionTimeout()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterName_); - } - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, region_); - } - if (gracefulDecommissionTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getGracefulDecommissionTimeout()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateClusterRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.UpdateClusterRequest other = - (com.google.cloud.dataproc.v1.UpdateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; - } - if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false; - if (hasGracefulDecommissionTimeout()) { - if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout())) - return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - if (hasGracefulDecommissionTimeout()) { - hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest 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.dataproc.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest 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.dataproc.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest 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.dataproc.v1.UpdateClusterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a cluster.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateClusterRequest) - com.google.cloud.dataproc.v1.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateClusterRequest.class, - com.google.cloud.dataproc.v1.UpdateClusterRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.UpdateClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - clusterName_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - requestId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateClusterRequest build() { - com.google.cloud.dataproc.v1.UpdateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateClusterRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateClusterRequest result = - new com.google.cloud.dataproc.v1.UpdateClusterRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.clusterName_ = clusterName_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - if (gracefulDecommissionTimeoutBuilder_ == null) { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_; - } else { - result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.requestId_ = requestId_; - 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.dataproc.v1.UpdateClusterRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateClusterRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateClusterRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (other.hasGracefulDecommissionTimeout()) { - mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: - { - input.readMessage( - getGracefulDecommissionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project the
-     * cluster belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The cluster name.
-     * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.cloud.dataproc.v1.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.cloud.dataproc.v1.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.cloud.dataproc.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.cloud.dataproc.v1.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null - ? com.google.cloud.dataproc.v1.Cluster.getDefaultInstance() - : cluster_; - } - } - /** - * - * - *
-     * Required. The changes to the cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Cluster, - com.google.cloud.dataproc.v1.Cluster.Builder, - com.google.cloud.dataproc.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private com.google.protobuf.Duration gracefulDecommissionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - gracefulDecommissionTimeoutBuilder_; - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - public boolean hasGracefulDecommissionTimeout() { - return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - public com.google.protobuf.Duration getGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } else { - return gracefulDecommissionTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gracefulDecommissionTimeout_ = value; - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGracefulDecommissionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = builderForValue.build(); - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) { - if (gracefulDecommissionTimeoutBuilder_ == null) { - if (gracefulDecommissionTimeout_ != null) { - gracefulDecommissionTimeout_ = - com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_) - .mergeFrom(value) - .buildPartial(); - } else { - gracefulDecommissionTimeout_ = value; - } - onChanged(); - } else { - gracefulDecommissionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGracefulDecommissionTimeout() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeout_ = null; - onChanged(); - } else { - gracefulDecommissionTimeout_ = null; - gracefulDecommissionTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() { - - onChanged(); - return getGracefulDecommissionTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() { - if (gracefulDecommissionTimeoutBuilder_ != null) { - return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return gracefulDecommissionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : gracefulDecommissionTimeout_; - } - } - /** - * - * - *
-     * Optional. Timeout for graceful YARN decomissioning. Graceful
-     * decommissioning allows removing nodes from the cluster without
-     * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-     * in progress to finish before forcefully removing nodes (and potentially
-     * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-     * the maximum allowed timeout is 1 day. (see JSON representation of
-     * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * Only supported on Dataproc image versions 1.2 and higher.
-     * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getGracefulDecommissionTimeoutFieldBuilder() { - if (gracefulDecommissionTimeoutBuilder_ == null) { - gracefulDecommissionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getGracefulDecommissionTimeout(), getParentForChildren(), isClean()); - gracefulDecommissionTimeout_ = null; - } - return gracefulDecommissionTimeoutBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to `Cluster`, of
-     * the field to update. For example, to change the number of workers
-     * in a cluster to 5, the `update_mask` parameter would be
-     * specified as `config.worker_config.num_instances`,
-     * and the `PATCH` request body would specify the new value, as follows:
-     *     {
-     *       "config":{
-     *         "workerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * Similarly, to change the number of preemptible workers in a cluster to 5,
-     * the `update_mask` parameter would be
-     * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-     * body would be set as follows:
-     *     {
-     *       "config":{
-     *         "secondaryWorkerConfig":{
-     *           "numInstances":"5"
-     *         }
-     *       }
-     *     }
-     * <strong>Note:</strong> Currently, only the following fields can be updated:
-     *  <table>
-     *  <tbody>
-     *  <tr>
-     *  <td><strong>Mask</strong></td>
-     *  <td><strong>Purpose</strong></td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>labels</em></strong></td>
-     *  <td>Update labels</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-     *  <td>Resize primary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-     *  <td>Resize secondary worker group</td>
-     *  </tr>
-     *  <tr>
-     *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-     *  change autoscaling policies</td>
-     *  </tr>
-     *  </tbody>
-     *  </table>
-     * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A unique ID used to identify the request. If the server
-     * receives two
-     * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-     * with the same id, then the second request will be ignored and the
-     * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-     * backend is returned.
-     * It is recommended to always set this value to a
-     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and hyphens (-). The maximum length is 40 characters.
-     * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - 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.dataproc.v1.UpdateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateClusterRequest) - private static final com.google.cloud.dataproc.v1.UpdateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateClusterRequest(); - } - - public static com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java deleted file mode 100644 index fb1ecbc5..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,424 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project the
-   * cluster belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Required. The cluster name.
-   * 
- * - * string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - boolean hasCluster(); - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.cloud.dataproc.v1.Cluster getCluster(); - /** - * - * - *
-   * Required. The changes to the cluster.
-   * 
- * - * .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gracefulDecommissionTimeout field is set. - */ - boolean hasGracefulDecommissionTimeout(); - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gracefulDecommissionTimeout. - */ - com.google.protobuf.Duration getGracefulDecommissionTimeout(); - /** - * - * - *
-   * Optional. Timeout for graceful YARN decomissioning. Graceful
-   * decommissioning allows removing nodes from the cluster without
-   * interrupting jobs in progress. Timeout specifies how long to wait for jobs
-   * in progress to finish before forcefully removing nodes (and potentially
-   * interrupting jobs). Default timeout is 0 (for forceful decommission), and
-   * the maximum allowed timeout is 1 day. (see JSON representation of
-   * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * Only supported on Dataproc image versions 1.2 and higher.
-   * 
- * - * - * .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder(); - - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to `Cluster`, of
-   * the field to update. For example, to change the number of workers
-   * in a cluster to 5, the `update_mask` parameter would be
-   * specified as `config.worker_config.num_instances`,
-   * and the `PATCH` request body would specify the new value, as follows:
-   *     {
-   *       "config":{
-   *         "workerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * Similarly, to change the number of preemptible workers in a cluster to 5,
-   * the `update_mask` parameter would be
-   * `config.secondary_worker_config.num_instances`, and the `PATCH` request
-   * body would be set as follows:
-   *     {
-   *       "config":{
-   *         "secondaryWorkerConfig":{
-   *           "numInstances":"5"
-   *         }
-   *       }
-   *     }
-   * <strong>Note:</strong> Currently, only the following fields can be updated:
-   *  <table>
-   *  <tbody>
-   *  <tr>
-   *  <td><strong>Mask</strong></td>
-   *  <td><strong>Purpose</strong></td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>labels</em></strong></td>
-   *  <td>Update labels</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.worker_config.num_instances</em></strong></td>
-   *  <td>Resize primary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
-   *  <td>Resize secondary worker group</td>
-   *  </tr>
-   *  <tr>
-   *  <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
-   *  change autoscaling policies</td>
-   *  </tr>
-   *  </tbody>
-   *  </table>
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. A unique ID used to identify the request. If the server
-   * receives two
-   * [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
-   * with the same id, then the second request will be ignored and the
-   * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
-   * backend is returned.
-   * It is recommended to always set this value to a
-   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and hyphens (-). The maximum length is 40 characters.
-   * 
- * - * string request_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java deleted file mode 100644 index f13425dd..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java +++ /dev/null @@ -1,1570 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to update a job.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} - */ -public final class UpdateJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateJobRequest) - UpdateJobRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateJobRequest.newBuilder() to construct. - private UpdateJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateJobRequest() { - projectId_ = ""; - region_ = ""; - jobId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateJobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, - com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 2; - private volatile java.lang.Object region_; - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.Job job_; - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - @java.lang.Override - public boolean hasJob() { - return job_ != null; - } - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.Job getJob() { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { - return getJob(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 5; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); - } - if (job_ != null) { - output.writeMessage(4, getJob()); - } - if (updateMask_ != null) { - output.writeMessage(5, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); - } - if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJob()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateJobRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.UpdateJobRequest other = - (com.google.cloud.dataproc.v1.UpdateJobRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getRegion().equals(other.getRegion())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (hasJob() != other.hasJob()) return false; - if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - if (hasJob()) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest 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.dataproc.v1.UpdateJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest 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.dataproc.v1.UpdateJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest 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.dataproc.v1.UpdateJobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a job.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateJobRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateJobRequest) - com.google.cloud.dataproc.v1.UpdateJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateJobRequest.class, - com.google.cloud.dataproc.v1.UpdateJobRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.UpdateJobRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - region_ = ""; - - jobId_ = ""; - - if (jobBuilder_ == null) { - job_ = null; - } else { - job_ = null; - jobBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_UpdateJobRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateJobRequest build() { - com.google.cloud.dataproc.v1.UpdateJobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateJobRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateJobRequest result = - new com.google.cloud.dataproc.v1.UpdateJobRequest(this); - result.projectId_ = projectId_; - result.region_ = region_; - result.jobId_ = jobId_; - if (jobBuilder_ == null) { - result.job_ = job_; - } else { - result.job_ = jobBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.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.dataproc.v1.UpdateJobRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateJobRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateJobRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateJobRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.hasJob()) { - mergeJob(other.getJob()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - region_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The ID of the Google Cloud Platform project that the job
-     * belongs to.
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - region_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Dataproc region in which to handle the request.
-     * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - region_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job ID.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.Job job_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - jobBuilder_; - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - public boolean hasJob() { - return jobBuilder_ != null || job_ != null; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - public com.google.cloud.dataproc.v1.Job getJob() { - if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } else { - return jobBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setJob(com.google.cloud.dataproc.v1.Job value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - job_ = value; - onChanged(); - } else { - jobBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setJob(com.google.cloud.dataproc.v1.Job.Builder builderForValue) { - if (jobBuilder_ == null) { - job_ = builderForValue.build(); - onChanged(); - } else { - jobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeJob(com.google.cloud.dataproc.v1.Job value) { - if (jobBuilder_ == null) { - if (job_ != null) { - job_ = com.google.cloud.dataproc.v1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); - } else { - job_ = value; - } - onChanged(); - } else { - jobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = null; - onChanged(); - } else { - job_ = null; - jobBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.dataproc.v1.Job.Builder getJobBuilder() { - - onChanged(); - return getJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilder(); - } else { - return job_ == null ? com.google.cloud.dataproc.v1.Job.getDefaultInstance() : job_; - } - } - /** - * - * - *
-     * Required. The changes to the job.
-     * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.Job, - com.google.cloud.dataproc.v1.Job.Builder, - com.google.cloud.dataproc.v1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); - job_ = null; - } - return jobBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. Specifies the path, relative to <code>Job</code>, of
-     * the field to update. For example, to update the labels of a Job the
-     * <code>update_mask</code> parameter would be specified as
-     * <code>labels</code>, and the `PATCH` request body would specify the new
-     * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-     * field that can be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @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.dataproc.v1.UpdateJobRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateJobRequest) - private static final com.google.cloud.dataproc.v1.UpdateJobRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateJobRequest(); - } - - public static com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateJobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java deleted file mode 100644 index b4d66081..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java +++ /dev/null @@ -1,190 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The ID of the Google Cloud Platform project that the job
-   * belongs to.
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-   * Required. The Dataproc region in which to handle the request.
-   * 
- * - * string region = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Required. The job ID.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The job. - */ - com.google.cloud.dataproc.v1.Job getJob(); - /** - * - * - *
-   * Required. The changes to the job.
-   * 
- * - * .google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.dataproc.v1.JobOrBuilder getJobOrBuilder(); - - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Specifies the path, relative to <code>Job</code>, of
-   * the field to update. For example, to update the labels of a Job the
-   * <code>update_mask</code> parameter would be specified as
-   * <code>labels</code>, and the `PATCH` request body would specify the new
-   * value. <strong>Note:</strong> Currently, <code>labels</code> is the only
-   * field that can be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java deleted file mode 100644 index 3feffb7f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java +++ /dev/null @@ -1,741 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A request to update a workflow template.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} - */ -public final class UpdateWorkflowTemplateRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - UpdateWorkflowTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateWorkflowTemplateRequest.newBuilder() to construct. - private UpdateWorkflowTemplateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateWorkflowTemplateRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateWorkflowTemplateRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private com.google.cloud.dataproc.v1.WorkflowTemplate template_; - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - @java.lang.Override - public boolean hasTemplate() { - return template_ != null; - } - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (template_ != null) { - output.writeMessage(1, getTemplate()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTemplate()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other = - (com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate().equals(other.getTemplate())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest 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.dataproc.v1.UpdateWorkflowTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest 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.dataproc.v1.UpdateWorkflowTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest 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.dataproc.v1.UpdateWorkflowTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 request to update a workflow template.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.class, - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest build() { - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest buildPartial() { - com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest result = - new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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.dataproc.v1.UpdateWorkflowTemplateRequest) { - return mergeFrom((com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest other) { - if (other == com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest.getDefaultInstance()) - return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getTemplateFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.dataproc.v1.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - templateBuilder_; - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTemplate( - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTemplate(com.google.cloud.dataproc.v1.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder(template_) - .mergeFrom(value) - .buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance() - : template_; - } - } - /** - * - * - *
-     * Required. The updated workflow template.
-     * The `template.version` field must match the current version.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplate, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder>( - getTemplate(), getParentForChildren(), isClean()); - template_ = null; - } - return templateBuilder_; - } - - @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.dataproc.v1.UpdateWorkflowTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - private static final com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest(); - } - - public static com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkflowTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java deleted file mode 100644 index 0d428c4a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java +++ /dev/null @@ -1,69 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface UpdateWorkflowTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the template field is set. - */ - boolean hasTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The template. - */ - com.google.cloud.dataproc.v1.WorkflowTemplate getTemplate(); - /** - * - * - *
-   * Required. The updated workflow template.
-   * The `template.version` field must match the current version.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplate template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder getTemplateOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java deleted file mode 100644 index 38fc0bcc..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java +++ /dev/null @@ -1,709 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Validation based on a list of allowed values.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} - */ -public final class ValueValidation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.ValueValidation) - ValueValidationOrBuilder { - private static final long serialVersionUID = 0L; - // Use ValueValidation.newBuilder() to construct. - private ValueValidation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ValueValidation() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValueValidation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, - com.google.cloud.dataproc.v1.ValueValidation.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.ValueValidation)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.ValueValidation other = - (com.google.cloud.dataproc.v1.ValueValidation) obj; - - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.ValueValidation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ValueValidation 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.dataproc.v1.ValueValidation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ValueValidation 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.dataproc.v1.ValueValidation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.ValueValidation 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.dataproc.v1.ValueValidation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Validation based on a list of allowed values.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.ValueValidation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.ValueValidation) - com.google.cloud.dataproc.v1.ValueValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.ValueValidation.class, - com.google.cloud.dataproc.v1.ValueValidation.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.ValueValidation.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation build() { - com.google.cloud.dataproc.v1.ValueValidation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation buildPartial() { - com.google.cloud.dataproc.v1.ValueValidation result = - new com.google.cloud.dataproc.v1.ValueValidation(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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.dataproc.v1.ValueValidation) { - return mergeFrom((com.google.cloud.dataproc.v1.ValueValidation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.ValueValidation other) { - if (other == com.google.cloud.dataproc.v1.ValueValidation.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues(java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. List of allowed values for the parameter.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - 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.dataproc.v1.ValueValidation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.ValueValidation) - private static final com.google.cloud.dataproc.v1.ValueValidation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.ValueValidation(); - } - - public static com.google.cloud.dataproc.v1.ValueValidation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValueValidation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.ValueValidation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java deleted file mode 100644 index 21355838..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java +++ /dev/null @@ -1,76 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface ValueValidationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.ValueValidation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-   * Required. List of allowed values for the parameter.
-   * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString getValuesBytes(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java deleted file mode 100644 index f6dfead3..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfig.java +++ /dev/null @@ -1,1395 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Dataproc cluster config for a cluster that does not directly control the
- * underlying compute resources, such as a [Dataproc-on-GKE
- * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} - */ -public final class VirtualClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.VirtualClusterConfig) - VirtualClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use VirtualClusterConfig.newBuilder() to construct. - private VirtualClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VirtualClusterConfig() { - stagingBucket_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VirtualClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.VirtualClusterConfig.class, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); - } - - private int infrastructureConfigCase_ = 0; - private java.lang.Object infrastructureConfig_; - - public enum InfrastructureConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - KUBERNETES_CLUSTER_CONFIG(6), - INFRASTRUCTURECONFIG_NOT_SET(0); - private final int value; - - private InfrastructureConfigCase(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 InfrastructureConfigCase valueOf(int value) { - return forNumber(value); - } - - public static InfrastructureConfigCase forNumber(int value) { - switch (value) { - case 6: - return KUBERNETES_CLUSTER_CONFIG; - case 0: - return INFRASTRUCTURECONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public InfrastructureConfigCase getInfrastructureConfigCase() { - return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); - } - - public static final int STAGING_BUCKET_FIELD_NUMBER = 1; - private volatile java.lang.Object stagingBucket_; - /** - * - * - *
-   * Optional. A Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The stagingBucket. - */ - @java.lang.Override - public java.lang.String getStagingBucket() { - java.lang.Object ref = stagingBucket_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stagingBucket_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. A Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for stagingBucket. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStagingBucketBytes() { - java.lang.Object ref = stagingBucket_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stagingBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER = 6; - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the kubernetesClusterConfig field is set. - */ - @java.lang.Override - public boolean hasKubernetesClusterConfig() { - return infrastructureConfigCase_ == 6; - } - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The kubernetesClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { - if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; - } - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder() { - if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; - } - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - - public static final int AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the auxiliaryServicesConfig field is set. - */ - @java.lang.Override - public boolean hasAuxiliaryServicesConfig() { - return auxiliaryServicesConfig_ != null; - } - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The auxiliaryServicesConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; - } - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder() { - return getAuxiliaryServicesConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(stagingBucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stagingBucket_); - } - if (infrastructureConfigCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); - } - if (auxiliaryServicesConfig_ != null) { - output.writeMessage(7, getAuxiliaryServicesConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stagingBucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stagingBucket_); - } - if (infrastructureConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_); - } - if (auxiliaryServicesConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAuxiliaryServicesConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.VirtualClusterConfig)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.VirtualClusterConfig other = - (com.google.cloud.dataproc.v1.VirtualClusterConfig) obj; - - if (!getStagingBucket().equals(other.getStagingBucket())) return false; - if (hasAuxiliaryServicesConfig() != other.hasAuxiliaryServicesConfig()) return false; - if (hasAuxiliaryServicesConfig()) { - if (!getAuxiliaryServicesConfig().equals(other.getAuxiliaryServicesConfig())) return false; - } - if (!getInfrastructureConfigCase().equals(other.getInfrastructureConfigCase())) return false; - switch (infrastructureConfigCase_) { - case 6: - if (!getKubernetesClusterConfig().equals(other.getKubernetesClusterConfig())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STAGING_BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getStagingBucket().hashCode(); - if (hasAuxiliaryServicesConfig()) { - hash = (37 * hash) + AUXILIARY_SERVICES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAuxiliaryServicesConfig().hashCode(); - } - switch (infrastructureConfigCase_) { - case 6: - hash = (37 * hash) + KUBERNETES_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesClusterConfig().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig 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.dataproc.v1.VirtualClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Dataproc cluster config for a cluster that does not directly control the
-   * underlying compute resources, such as a [Dataproc-on-GKE
-   * cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.VirtualClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.VirtualClusterConfig) - com.google.cloud.dataproc.v1.VirtualClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.VirtualClusterConfig.class, - com.google.cloud.dataproc.v1.VirtualClusterConfig.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.VirtualClusterConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - stagingBucket_ = ""; - - if (kubernetesClusterConfigBuilder_ != null) { - kubernetesClusterConfigBuilder_.clear(); - } - if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfig_ = null; - } else { - auxiliaryServicesConfig_ = null; - auxiliaryServicesConfigBuilder_ = null; - } - infrastructureConfigCase_ = 0; - infrastructureConfig_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.ClustersProto - .internal_static_google_cloud_dataproc_v1_VirtualClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfig build() { - com.google.cloud.dataproc.v1.VirtualClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfig buildPartial() { - com.google.cloud.dataproc.v1.VirtualClusterConfig result = - new com.google.cloud.dataproc.v1.VirtualClusterConfig(this); - result.stagingBucket_ = stagingBucket_; - if (infrastructureConfigCase_ == 6) { - if (kubernetesClusterConfigBuilder_ == null) { - result.infrastructureConfig_ = infrastructureConfig_; - } else { - result.infrastructureConfig_ = kubernetesClusterConfigBuilder_.build(); - } - } - if (auxiliaryServicesConfigBuilder_ == null) { - result.auxiliaryServicesConfig_ = auxiliaryServicesConfig_; - } else { - result.auxiliaryServicesConfig_ = auxiliaryServicesConfigBuilder_.build(); - } - result.infrastructureConfigCase_ = infrastructureConfigCase_; - 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.dataproc.v1.VirtualClusterConfig) { - return mergeFrom((com.google.cloud.dataproc.v1.VirtualClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.VirtualClusterConfig other) { - if (other == com.google.cloud.dataproc.v1.VirtualClusterConfig.getDefaultInstance()) - return this; - if (!other.getStagingBucket().isEmpty()) { - stagingBucket_ = other.stagingBucket_; - onChanged(); - } - if (other.hasAuxiliaryServicesConfig()) { - mergeAuxiliaryServicesConfig(other.getAuxiliaryServicesConfig()); - } - switch (other.getInfrastructureConfigCase()) { - case KUBERNETES_CLUSTER_CONFIG: - { - mergeKubernetesClusterConfig(other.getKubernetesClusterConfig()); - break; - } - case INFRASTRUCTURECONFIG_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - stagingBucket_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 50: - { - input.readMessage( - getKubernetesClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - infrastructureConfigCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getAuxiliaryServicesConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int infrastructureConfigCase_ = 0; - private java.lang.Object infrastructureConfig_; - - public InfrastructureConfigCase getInfrastructureConfigCase() { - return InfrastructureConfigCase.forNumber(infrastructureConfigCase_); - } - - public Builder clearInfrastructureConfig() { - infrastructureConfigCase_ = 0; - infrastructureConfig_ = null; - onChanged(); - return this; - } - - private java.lang.Object stagingBucket_ = ""; - /** - * - * - *
-     * Optional. A Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The stagingBucket. - */ - public java.lang.String getStagingBucket() { - java.lang.Object ref = stagingBucket_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stagingBucket_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for stagingBucket. - */ - public com.google.protobuf.ByteString getStagingBucketBytes() { - java.lang.Object ref = stagingBucket_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stagingBucket_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. A Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The stagingBucket to set. - * @return This builder for chaining. - */ - public Builder setStagingBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stagingBucket_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearStagingBucket() { - - stagingBucket_ = getDefaultInstance().getStagingBucket(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. A Storage bucket used to stage job
-     * dependencies, config files, and job driver console output.
-     * If you do not specify a staging bucket, Cloud
-     * Dataproc will determine a Cloud Storage location (US,
-     * ASIA, or EU) for your cluster's staging bucket according to the
-     * Compute Engine zone where your cluster is deployed, and then create
-     * and manage this project-level, per-location bucket (see
-     * [Dataproc staging and temp
-     * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-     * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-     * a Cloud Storage bucket.**
-     * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for stagingBucket to set. - * @return This builder for chaining. - */ - public Builder setStagingBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stagingBucket_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> - kubernetesClusterConfigBuilder_; - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the kubernetesClusterConfig field is set. - */ - @java.lang.Override - public boolean hasKubernetesClusterConfig() { - return infrastructureConfigCase_ == 6; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The kubernetesClusterConfig. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig() { - if (kubernetesClusterConfigBuilder_ == null) { - if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; - } - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } else { - if (infrastructureConfigCase_ == 6) { - return kubernetesClusterConfigBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setKubernetesClusterConfig( - com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { - if (kubernetesClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - infrastructureConfig_ = value; - onChanged(); - } else { - kubernetesClusterConfigBuilder_.setMessage(value); - } - infrastructureConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setKubernetesClusterConfig( - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder builderForValue) { - if (kubernetesClusterConfigBuilder_ == null) { - infrastructureConfig_ = builderForValue.build(); - onChanged(); - } else { - kubernetesClusterConfigBuilder_.setMessage(builderForValue.build()); - } - infrastructureConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeKubernetesClusterConfig( - com.google.cloud.dataproc.v1.KubernetesClusterConfig value) { - if (kubernetesClusterConfigBuilder_ == null) { - if (infrastructureConfigCase_ == 6 - && infrastructureConfig_ - != com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance()) { - infrastructureConfig_ = - com.google.cloud.dataproc.v1.KubernetesClusterConfig.newBuilder( - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - infrastructureConfig_ = value; - } - onChanged(); - } else { - if (infrastructureConfigCase_ == 6) { - kubernetesClusterConfigBuilder_.mergeFrom(value); - } else { - kubernetesClusterConfigBuilder_.setMessage(value); - } - } - infrastructureConfigCase_ = 6; - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearKubernetesClusterConfig() { - if (kubernetesClusterConfigBuilder_ == null) { - if (infrastructureConfigCase_ == 6) { - infrastructureConfigCase_ = 0; - infrastructureConfig_ = null; - onChanged(); - } - } else { - if (infrastructureConfigCase_ == 6) { - infrastructureConfigCase_ = 0; - infrastructureConfig_ = null; - } - kubernetesClusterConfigBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder - getKubernetesClusterConfigBuilder() { - return getKubernetesClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder() { - if ((infrastructureConfigCase_ == 6) && (kubernetesClusterConfigBuilder_ != null)) { - return kubernetesClusterConfigBuilder_.getMessageOrBuilder(); - } else { - if (infrastructureConfigCase_ == 6) { - return (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_; - } - return com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. The configuration for running the Dataproc cluster on Kubernetes.
-     * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder> - getKubernetesClusterConfigFieldBuilder() { - if (kubernetesClusterConfigBuilder_ == null) { - if (!(infrastructureConfigCase_ == 6)) { - infrastructureConfig_ = - com.google.cloud.dataproc.v1.KubernetesClusterConfig.getDefaultInstance(); - } - kubernetesClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.KubernetesClusterConfig, - com.google.cloud.dataproc.v1.KubernetesClusterConfig.Builder, - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder>( - (com.google.cloud.dataproc.v1.KubernetesClusterConfig) infrastructureConfig_, - getParentForChildren(), - isClean()); - infrastructureConfig_ = null; - } - infrastructureConfigCase_ = 6; - onChanged(); - ; - return kubernetesClusterConfigBuilder_; - } - - private com.google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliaryServicesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> - auxiliaryServicesConfigBuilder_; - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the auxiliaryServicesConfig field is set. - */ - public boolean hasAuxiliaryServicesConfig() { - return auxiliaryServicesConfigBuilder_ != null || auxiliaryServicesConfig_ != null; - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The auxiliaryServicesConfig. - */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig() { - if (auxiliaryServicesConfigBuilder_ == null) { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; - } else { - return auxiliaryServicesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAuxiliaryServicesConfig( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { - if (auxiliaryServicesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - auxiliaryServicesConfig_ = value; - onChanged(); - } else { - auxiliaryServicesConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAuxiliaryServicesConfig( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder builderForValue) { - if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfig_ = builderForValue.build(); - onChanged(); - } else { - auxiliaryServicesConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAuxiliaryServicesConfig( - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig value) { - if (auxiliaryServicesConfigBuilder_ == null) { - if (auxiliaryServicesConfig_ != null) { - auxiliaryServicesConfig_ = - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.newBuilder( - auxiliaryServicesConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - auxiliaryServicesConfig_ = value; - } - onChanged(); - } else { - auxiliaryServicesConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAuxiliaryServicesConfig() { - if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfig_ = null; - onChanged(); - } else { - auxiliaryServicesConfig_ = null; - auxiliaryServicesConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder - getAuxiliaryServicesConfigBuilder() { - - onChanged(); - return getAuxiliaryServicesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder() { - if (auxiliaryServicesConfigBuilder_ != null) { - return auxiliaryServicesConfigBuilder_.getMessageOrBuilder(); - } else { - return auxiliaryServicesConfig_ == null - ? com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.getDefaultInstance() - : auxiliaryServicesConfig_; - } - } - /** - * - * - *
-     * Optional. Configuration of auxiliary services used by this cluster.
-     * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder> - getAuxiliaryServicesConfigFieldBuilder() { - if (auxiliaryServicesConfigBuilder_ == null) { - auxiliaryServicesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig.Builder, - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder>( - getAuxiliaryServicesConfig(), getParentForChildren(), isClean()); - auxiliaryServicesConfig_ = null; - } - return auxiliaryServicesConfigBuilder_; - } - - @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.dataproc.v1.VirtualClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.VirtualClusterConfig) - private static final com.google.cloud.dataproc.v1.VirtualClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.VirtualClusterConfig(); - } - - public static com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.VirtualClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java deleted file mode 100644 index 83736cd2..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/VirtualClusterConfigOrBuilder.java +++ /dev/null @@ -1,157 +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/dataproc/v1/clusters.proto - -package com.google.cloud.dataproc.v1; - -public interface VirtualClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.VirtualClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. A Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The stagingBucket. - */ - java.lang.String getStagingBucket(); - /** - * - * - *
-   * Optional. A Storage bucket used to stage job
-   * dependencies, config files, and job driver console output.
-   * If you do not specify a staging bucket, Cloud
-   * Dataproc will determine a Cloud Storage location (US,
-   * ASIA, or EU) for your cluster's staging bucket according to the
-   * Compute Engine zone where your cluster is deployed, and then create
-   * and manage this project-level, per-location bucket (see
-   * [Dataproc staging and temp
-   * buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
-   * **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
-   * a Cloud Storage bucket.**
-   * 
- * - * string staging_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for stagingBucket. - */ - com.google.protobuf.ByteString getStagingBucketBytes(); - - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the kubernetesClusterConfig field is set. - */ - boolean hasKubernetesClusterConfig(); - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The kubernetesClusterConfig. - */ - com.google.cloud.dataproc.v1.KubernetesClusterConfig getKubernetesClusterConfig(); - /** - * - * - *
-   * Required. The configuration for running the Dataproc cluster on Kubernetes.
-   * 
- * - * - * .google.cloud.dataproc.v1.KubernetesClusterConfig kubernetes_cluster_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.KubernetesClusterConfigOrBuilder - getKubernetesClusterConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the auxiliaryServicesConfig field is set. - */ - boolean hasAuxiliaryServicesConfig(); - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The auxiliaryServicesConfig. - */ - com.google.cloud.dataproc.v1.AuxiliaryServicesConfig getAuxiliaryServicesConfig(); - /** - * - * - *
-   * Optional. Configuration of auxiliary services used by this cluster.
-   * 
- * - * - * .google.cloud.dataproc.v1.AuxiliaryServicesConfig auxiliary_services_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.AuxiliaryServicesConfigOrBuilder - getAuxiliaryServicesConfigOrBuilder(); - - public com.google.cloud.dataproc.v1.VirtualClusterConfig.InfrastructureConfigCase - getInfrastructureConfigCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java deleted file mode 100644 index 2676802e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java +++ /dev/null @@ -1,970 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The workflow graph.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} - */ -public final class WorkflowGraph extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowGraph) - WorkflowGraphOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowGraph.newBuilder() to construct. - private WorkflowGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowGraph() { - nodes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowGraph(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); - } - - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getNodesList() { - return nodes_; - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getNodesCount() { - return nodes_.size(); - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { - return nodes_.get(index); - } - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { - return nodes_.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 < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodes_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowGraph)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.WorkflowGraph other = - (com.google.cloud.dataproc.v1.WorkflowGraph) obj; - - if (!getNodesList().equals(other.getNodesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph 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.dataproc.v1.WorkflowGraph parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph 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.dataproc.v1.WorkflowGraph parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph 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.dataproc.v1.WorkflowGraph prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 workflow graph.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowGraph} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowGraph) - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowGraph.class, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - } else { - nodes_ = null; - nodesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraph build() { - com.google.cloud.dataproc.v1.WorkflowGraph result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraph buildPartial() { - com.google.cloud.dataproc.v1.WorkflowGraph result = - new com.google.cloud.dataproc.v1.WorkflowGraph(this); - int from_bitField0_ = bitField0_; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.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.dataproc.v1.WorkflowGraph) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowGraph) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowGraph other) { - if (other == com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodesFieldBuilder() - : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.dataproc.v1.WorkflowNode m = - input.readMessage( - com.google.cloud.dataproc.v1.WorkflowNode.parser(), extensionRegistry); - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(m); - } else { - nodesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> - nodesBuilder_; - - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setNodes( - int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes(int index, com.google.cloud.dataproc.v1.WorkflowNode value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes(com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addNodes( - int index, com.google.cloud.dataproc.v1.WorkflowNode.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder getNodesBuilder(int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder() { - return getNodesFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowNode.Builder addNodesBuilder(int index) { - return getNodesFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. The workflow nodes.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowNode, - com.google.cloud.dataproc.v1.WorkflowNode.Builder, - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder>( - nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - @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.dataproc.v1.WorkflowGraph) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowGraph) - private static final com.google.cloud.dataproc.v1.WorkflowGraph DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowGraph(); - } - - public static com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowGraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraph getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java deleted file mode 100644 index c1aefd7f..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java +++ /dev/null @@ -1,87 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowGraphOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowGraph) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getNodesList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowNode getNodes(int index); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getNodesCount(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getNodesOrBuilderList(); - /** - * - * - *
-   * Output only. The workflow nodes.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.WorkflowNode nodes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder getNodesOrBuilder(int index); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java deleted file mode 100644 index 71fa99cd..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java +++ /dev/null @@ -1,4101 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc workflow template resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} - */ -public final class WorkflowMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowMetadata) - WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadata.newBuilder() to construct. - private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowMetadata() { - template_ = ""; - state_ = 0; - clusterName_ = ""; - clusterUuid_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, - com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); - } - - /** - * - * - *
-   * The operation state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowMetadata.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - DONE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unused.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The operation is running.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The operation is done; either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - public static final int DONE_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 UNKNOWN; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - 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.dataproc.v1.WorkflowMetadata.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.dataproc.v1.WorkflowMetadata.State) - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private volatile java.lang.Object template_; - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - @java.lang.Override - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_; - /** - * - * - *
-   * Output only. The version of template at the time of
-   * workflow instantiation.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int CREATE_CLUSTER_FIELD_NUMBER = 3; - private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - @java.lang.Override - public boolean hasCreateCluster() { - return createCluster_ != null; - } - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; - } - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { - return getCreateCluster(); - } - - public static final int GRAPH_FIELD_NUMBER = 4; - private com.google.cloud.dataproc.v1.WorkflowGraph graph_; - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - @java.lang.Override - public boolean hasGraph() { - return graph_ != null; - } - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; - } - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { - return getGraph(); - } - - public static final int DELETE_CLUSTER_FIELD_NUMBER = 5; - private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - @java.lang.Override - public boolean hasDeleteCluster() { - return deleteCluster_ != null; - } - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { - return getDeleteCluster(); - } - - public static final int STATE_FIELD_NUMBER = 6; - private int state_; - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED - : result; - } - - public static final int CLUSTER_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterName_; - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - @java.lang.Override - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETERS_FIELD_NUMBER = 8; - - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int START_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 10; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int CLUSTER_UUID_FIELD_NUMBER = 11; - private volatile java.lang.Object clusterUuid_; - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - @java.lang.Override - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DAG_TIMEOUT_FIELD_NUMBER = 12; - private com.google.protobuf.Duration dagTimeout_; - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - @java.lang.Override - public boolean hasDagTimeout() { - return dagTimeout_ != null; - } - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getDagTimeout() { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; - } - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - return getDagTimeout(); - } - - public static final int DAG_START_TIME_FIELD_NUMBER = 13; - private com.google.protobuf.Timestamp dagStartTime_; - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - @java.lang.Override - public boolean hasDagStartTime() { - return dagStartTime_ != null; - } - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDagStartTime() { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { - return getDagStartTime(); - } - - public static final int DAG_END_TIME_FIELD_NUMBER = 14; - private com.google.protobuf.Timestamp dagEndTime_; - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - @java.lang.Override - public boolean hasDagEndTime() { - return dagEndTime_ != null; - } - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDagEndTime() { - return dagEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dagEndTime_; - } - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { - return getDagEndTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(template_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, template_); - } - if (version_ != 0) { - output.writeInt32(2, version_); - } - if (createCluster_ != null) { - output.writeMessage(3, getCreateCluster()); - } - if (graph_ != null) { - output.writeMessage(4, getGraph()); - } - if (deleteCluster_ != null) { - output.writeMessage(5, getDeleteCluster()); - } - if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { - output.writeEnum(6, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterName_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 8); - if (startTime_ != null) { - output.writeMessage(9, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(10, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clusterUuid_); - } - if (dagTimeout_ != null) { - output.writeMessage(12, getDagTimeout()); - } - if (dagStartTime_ != null) { - output.writeMessage(13, getDagStartTime()); - } - if (dagEndTime_ != null) { - output.writeMessage(14, getDagEndTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(template_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, template_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_); - } - if (createCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateCluster()); - } - if (graph_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGraph()); - } - if (deleteCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeleteCluster()); - } - if (state_ != com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterName_); - } - for (java.util.Map.Entry entry : - internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry parameters__ = - ParametersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, parameters__); - } - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUuid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clusterUuid_); - } - if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDagTimeout()); - } - if (dagStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDagStartTime()); - } - if (dagEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getDagEndTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowMetadata)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.WorkflowMetadata other = - (com.google.cloud.dataproc.v1.WorkflowMetadata) obj; - - if (!getTemplate().equals(other.getTemplate())) return false; - if (getVersion() != other.getVersion()) return false; - if (hasCreateCluster() != other.hasCreateCluster()) return false; - if (hasCreateCluster()) { - if (!getCreateCluster().equals(other.getCreateCluster())) return false; - } - if (hasGraph() != other.hasGraph()) return false; - if (hasGraph()) { - if (!getGraph().equals(other.getGraph())) return false; - } - if (hasDeleteCluster() != other.hasDeleteCluster()) return false; - if (hasDeleteCluster()) { - if (!getDeleteCluster().equals(other.getDeleteCluster())) return false; - } - if (state_ != other.state_) return false; - if (!getClusterName().equals(other.getClusterName())) return false; - if (!internalGetParameters().equals(other.internalGetParameters())) 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 (!getClusterUuid().equals(other.getClusterUuid())) return false; - if (hasDagTimeout() != other.hasDagTimeout()) return false; - if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) return false; - } - if (hasDagStartTime() != other.hasDagStartTime()) return false; - if (hasDagStartTime()) { - if (!getDagStartTime().equals(other.getDagStartTime())) return false; - } - if (hasDagEndTime() != other.hasDagEndTime()) return false; - if (hasDagEndTime()) { - if (!getDagEndTime().equals(other.getDagEndTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (hasCreateCluster()) { - hash = (37 * hash) + CREATE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCreateCluster().hashCode(); - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasDeleteCluster()) { - hash = (37 * hash) + DELETE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getDeleteCluster().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterName().hashCode(); - if (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().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 = (37 * hash) + CLUSTER_UUID_FIELD_NUMBER; - hash = (53 * hash) + getClusterUuid().hashCode(); - if (hasDagTimeout()) { - hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getDagTimeout().hashCode(); - } - if (hasDagStartTime()) { - hash = (37 * hash) + DAG_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDagStartTime().hashCode(); - } - if (hasDagEndTime()) { - hash = (37 * hash) + DAG_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDagEndTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.dataproc.v1.WorkflowMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.dataproc.v1.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata 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.dataproc.v1.WorkflowMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc workflow template resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowMetadata) - com.google.cloud.dataproc.v1.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 8: - return internalGetParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 8: - return internalGetMutableParameters(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowMetadata.class, - com.google.cloud.dataproc.v1.WorkflowMetadata.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.WorkflowMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - template_ = ""; - - version_ = 0; - - if (createClusterBuilder_ == null) { - createCluster_ = null; - } else { - createCluster_ = null; - createClusterBuilder_ = null; - } - if (graphBuilder_ == null) { - graph_ = null; - } else { - graph_ = null; - graphBuilder_ = null; - } - if (deleteClusterBuilder_ == null) { - deleteCluster_ = null; - } else { - deleteCluster_ = null; - deleteClusterBuilder_ = null; - } - state_ = 0; - - clusterName_ = ""; - - internalGetMutableParameters().clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - clusterUuid_ = ""; - - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = null; - } else { - dagStartTime_ = null; - dagStartTimeBuilder_ = null; - } - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = null; - } else { - dagEndTime_ = null; - dagEndTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.WorkflowMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata build() { - com.google.cloud.dataproc.v1.WorkflowMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata buildPartial() { - com.google.cloud.dataproc.v1.WorkflowMetadata result = - new com.google.cloud.dataproc.v1.WorkflowMetadata(this); - int from_bitField0_ = bitField0_; - result.template_ = template_; - result.version_ = version_; - if (createClusterBuilder_ == null) { - result.createCluster_ = createCluster_; - } else { - result.createCluster_ = createClusterBuilder_.build(); - } - if (graphBuilder_ == null) { - result.graph_ = graph_; - } else { - result.graph_ = graphBuilder_.build(); - } - if (deleteClusterBuilder_ == null) { - result.deleteCluster_ = deleteCluster_; - } else { - result.deleteCluster_ = deleteClusterBuilder_.build(); - } - result.state_ = state_; - result.clusterName_ = clusterName_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.clusterUuid_ = clusterUuid_; - if (dagTimeoutBuilder_ == null) { - result.dagTimeout_ = dagTimeout_; - } else { - result.dagTimeout_ = dagTimeoutBuilder_.build(); - } - if (dagStartTimeBuilder_ == null) { - result.dagStartTime_ = dagStartTime_; - } else { - result.dagStartTime_ = dagStartTimeBuilder_.build(); - } - if (dagEndTimeBuilder_ == null) { - result.dagEndTime_ = dagEndTime_; - } else { - result.dagEndTime_ = dagEndTimeBuilder_.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.dataproc.v1.WorkflowMetadata) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowMetadata other) { - if (other == com.google.cloud.dataproc.v1.WorkflowMetadata.getDefaultInstance()) return this; - if (!other.getTemplate().isEmpty()) { - template_ = other.template_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.hasCreateCluster()) { - mergeCreateCluster(other.getCreateCluster()); - } - if (other.hasGraph()) { - mergeGraph(other.getGraph()); - } - if (other.hasDeleteCluster()) { - mergeDeleteCluster(other.getDeleteCluster()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getClusterName().isEmpty()) { - clusterName_ = other.clusterName_; - onChanged(); - } - internalGetMutableParameters().mergeFrom(other.internalGetParameters()); - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getClusterUuid().isEmpty()) { - clusterUuid_ = other.clusterUuid_; - onChanged(); - } - if (other.hasDagTimeout()) { - mergeDagTimeout(other.getDagTimeout()); - } - if (other.hasDagStartTime()) { - mergeDagStartTime(other.getDagStartTime()); - } - if (other.hasDagEndTime()) { - mergeDagEndTime(other.getDagEndTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - template_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - version_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - input.readMessage(getCreateClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getGraphFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getDeleteClusterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - clusterName_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry parameters__ = - input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParameters() - .getMutableMap() - .put(parameters__.getKey(), parameters__.getValue()); - break; - } // case 66 - case 74: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 90: - { - clusterUuid_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage(getDagStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 106 - case 114: - { - input.readMessage(getDagEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object template_ = ""; - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The template to set. - * @return This builder for chaining. - */ - public Builder setTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - template_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTemplate() { - - template_ = getDefaultInstance().getTemplate(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for template to set. - * @return This builder for chaining. - */ - public Builder setTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - template_ = value; - onChanged(); - return this; - } - - private int version_; - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The version of template at the time of
-     * workflow instantiation.
-     * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.dataproc.v1.ClusterOperation createCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - createClusterBuilder_; - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - public boolean hasCreateCluster() { - return createClusterBuilder_ != null || createCluster_ != null; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - public com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster() { - if (createClusterBuilder_ == null) { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; - } else { - return createClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { - if (createClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createCluster_ = value; - onChanged(); - } else { - createClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateCluster( - com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { - if (createClusterBuilder_ == null) { - createCluster_ = builderForValue.build(); - onChanged(); - } else { - createClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { - if (createClusterBuilder_ == null) { - if (createCluster_ != null) { - createCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(createCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - createCluster_ = value; - } - onChanged(); - } else { - createClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateCluster() { - if (createClusterBuilder_ == null) { - createCluster_ = null; - onChanged(); - } else { - createCluster_ = null; - createClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperation.Builder getCreateClusterBuilder() { - - onChanged(); - return getCreateClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder() { - if (createClusterBuilder_ != null) { - return createClusterBuilder_.getMessageOrBuilder(); - } else { - return createCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : createCluster_; - } - } - /** - * - * - *
-     * Output only. The create cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - getCreateClusterFieldBuilder() { - if (createClusterBuilder_ == null) { - createClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getCreateCluster(), getParentForChildren(), isClean()); - createCluster_ = null; - } - return createClusterBuilder_; - } - - private com.google.cloud.dataproc.v1.WorkflowGraph graph_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> - graphBuilder_; - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - public boolean hasGraph() { - return graphBuilder_ != null || graph_ != null; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - public com.google.cloud.dataproc.v1.WorkflowGraph getGraph() { - if (graphBuilder_ == null) { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; - } else { - return graphBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { - if (graphBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - graph_ = value; - onChanged(); - } else { - graphBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGraph(com.google.cloud.dataproc.v1.WorkflowGraph.Builder builderForValue) { - if (graphBuilder_ == null) { - graph_ = builderForValue.build(); - onChanged(); - } else { - graphBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeGraph(com.google.cloud.dataproc.v1.WorkflowGraph value) { - if (graphBuilder_ == null) { - if (graph_ != null) { - graph_ = - com.google.cloud.dataproc.v1.WorkflowGraph.newBuilder(graph_) - .mergeFrom(value) - .buildPartial(); - } else { - graph_ = value; - } - onChanged(); - } else { - graphBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearGraph() { - if (graphBuilder_ == null) { - graph_ = null; - onChanged(); - } else { - graph_ = null; - graphBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowGraph.Builder getGraphBuilder() { - - onChanged(); - return getGraphFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder() { - if (graphBuilder_ != null) { - return graphBuilder_.getMessageOrBuilder(); - } else { - return graph_ == null - ? com.google.cloud.dataproc.v1.WorkflowGraph.getDefaultInstance() - : graph_; - } - } - /** - * - * - *
-     * Output only. The workflow graph.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder> - getGraphFieldBuilder() { - if (graphBuilder_ == null) { - graphBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowGraph, - com.google.cloud.dataproc.v1.WorkflowGraph.Builder, - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder>( - getGraph(), getParentForChildren(), isClean()); - graph_ = null; - } - return graphBuilder_; - } - - private com.google.cloud.dataproc.v1.ClusterOperation deleteCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - deleteClusterBuilder_; - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - public boolean hasDeleteCluster() { - return deleteClusterBuilder_ != null || deleteCluster_ != null; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - public com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster() { - if (deleteClusterBuilder_ == null) { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } else { - return deleteClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { - if (deleteClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteCluster_ = value; - onChanged(); - } else { - deleteClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDeleteCluster( - com.google.cloud.dataproc.v1.ClusterOperation.Builder builderForValue) { - if (deleteClusterBuilder_ == null) { - deleteCluster_ = builderForValue.build(); - onChanged(); - } else { - deleteClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDeleteCluster(com.google.cloud.dataproc.v1.ClusterOperation value) { - if (deleteClusterBuilder_ == null) { - if (deleteCluster_ != null) { - deleteCluster_ = - com.google.cloud.dataproc.v1.ClusterOperation.newBuilder(deleteCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - deleteCluster_ = value; - } - onChanged(); - } else { - deleteClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDeleteCluster() { - if (deleteClusterBuilder_ == null) { - deleteCluster_ = null; - onChanged(); - } else { - deleteCluster_ = null; - deleteClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperation.Builder getDeleteClusterBuilder() { - - onChanged(); - return getDeleteClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder() { - if (deleteClusterBuilder_ != null) { - return deleteClusterBuilder_.getMessageOrBuilder(); - } else { - return deleteCluster_ == null - ? com.google.cloud.dataproc.v1.ClusterOperation.getDefaultInstance() - : deleteCluster_; - } - } - /** - * - * - *
-     * Output only. The delete cluster operation metadata.
-     * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder> - getDeleteClusterFieldBuilder() { - if (deleteClusterBuilder_ == null) { - deleteClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterOperation, - com.google.cloud.dataproc.v1.ClusterOperation.Builder, - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder>( - getDeleteCluster(), getParentForChildren(), isClean()); - deleteCluster_ = null; - } - return deleteClusterBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowMetadata.State result = - com.google.cloud.dataproc.v1.WorkflowMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowMetadata.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.WorkflowMetadata.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The workflow state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterName_ = ""; - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - public java.lang.String getClusterName() { - java.lang.Object ref = clusterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - public com.google.protobuf.ByteString getClusterNameBytes() { - java.lang.Object ref = clusterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterName() { - - clusterName_ = getDefaultInstance().getClusterName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the target cluster.
-     * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterName to set. - * @return This builder for chaining. - */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField parameters_; - - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged(); - ; - if (parameters_ == null) { - parameters_ = - com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public boolean containsParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetParameters().getMap().containsKey(key); - } - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - @java.lang.Override - public java.lang.String getParametersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder removeParameters(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParameters().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder putParameters(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableParameters().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Map from parameter names to values that were used for those parameters.
-     * 
- * - * map<string, string> parameters = 8; - */ - public Builder putAllParameters(java.util.Map values) { - internalGetMutableParameters().getMutableMap().putAll(values); - return this; - } - - 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_; - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * Output only. Workflow start time.
-     * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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_; - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * Output only. Workflow end time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - 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_; - } - - private java.lang.Object clusterUuid_ = ""; - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - public java.lang.String getClusterUuid() { - java.lang.Object ref = clusterUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterUuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - public com.google.protobuf.ByteString getClusterUuidBytes() { - java.lang.Object ref = clusterUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterUuid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearClusterUuid() { - - clusterUuid_ = getDefaultInstance().getClusterUuid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The UUID of target cluster.
-     * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for clusterUuid to set. - * @return This builder for chaining. - */ - public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterUuid_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration dagTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - public boolean hasDagTimeout() { - return dagTimeoutBuilder_ != null || dagTimeout_ != null; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - public com.google.protobuf.Duration getDagTimeout() { - if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } else { - return dagTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagTimeout_ = value; - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = builderForValue.build(); - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (dagTimeout_ != null) { - dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); - } else { - dagTimeout_ = value; - } - onChanged(); - } else { - dagTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagTimeout() { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - onChanged(); - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - - onChanged(); - return getDagTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - if (dagTimeoutBuilder_ != null) { - return dagTimeoutBuilder_.getMessageOrBuilder(); - } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } - } - /** - * - * - *
-     * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * 
- * - * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDagTimeoutFieldBuilder() { - if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); - dagTimeout_ = null; - } - return dagTimeoutBuilder_; - } - - private com.google.protobuf.Timestamp dagStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagStartTimeBuilder_; - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - public boolean hasDagStartTime() { - return dagStartTimeBuilder_ != null || dagStartTime_ != null; - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - public com.google.protobuf.Timestamp getDagStartTime() { - if (dagStartTimeBuilder_ == null) { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } else { - return dagStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagStartTime(com.google.protobuf.Timestamp value) { - if (dagStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagStartTime_ = value; - onChanged(); - } else { - dagStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = builderForValue.build(); - onChanged(); - } else { - dagStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagStartTime(com.google.protobuf.Timestamp value) { - if (dagStartTimeBuilder_ == null) { - if (dagStartTime_ != null) { - dagStartTime_ = - com.google.protobuf.Timestamp.newBuilder(dagStartTime_) - .mergeFrom(value) - .buildPartial(); - } else { - dagStartTime_ = value; - } - onChanged(); - } else { - dagStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagStartTime() { - if (dagStartTimeBuilder_ == null) { - dagStartTime_ = null; - onChanged(); - } else { - dagStartTime_ = null; - dagStartTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getDagStartTimeBuilder() { - - onChanged(); - return getDagStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder() { - if (dagStartTimeBuilder_ != null) { - return dagStartTimeBuilder_.getMessageOrBuilder(); - } else { - return dagStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagStartTime_; - } - } - /** - * - * - *
-     * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-     * begins.
-     * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDagStartTimeFieldBuilder() { - if (dagStartTimeBuilder_ == null) { - dagStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagStartTime(), getParentForChildren(), isClean()); - dagStartTime_ = null; - } - return dagStartTimeBuilder_; - } - - private com.google.protobuf.Timestamp dagEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dagEndTimeBuilder_; - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - public boolean hasDagEndTime() { - return dagEndTimeBuilder_ != null || dagEndTime_ != null; - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - public com.google.protobuf.Timestamp getDagEndTime() { - if (dagEndTimeBuilder_ == null) { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; - } else { - return dagEndTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagEndTime(com.google.protobuf.Timestamp value) { - if (dagEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagEndTime_ = value; - onChanged(); - } else { - dagEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDagEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = builderForValue.build(); - onChanged(); - } else { - dagEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDagEndTime(com.google.protobuf.Timestamp value) { - if (dagEndTimeBuilder_ == null) { - if (dagEndTime_ != null) { - dagEndTime_ = - com.google.protobuf.Timestamp.newBuilder(dagEndTime_).mergeFrom(value).buildPartial(); - } else { - dagEndTime_ = value; - } - onChanged(); - } else { - dagEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDagEndTime() { - if (dagEndTimeBuilder_ == null) { - dagEndTime_ = null; - onChanged(); - } else { - dagEndTime_ = null; - dagEndTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getDagEndTimeBuilder() { - - onChanged(); - return getDagEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder() { - if (dagEndTimeBuilder_ != null) { - return dagEndTimeBuilder_.getMessageOrBuilder(); - } else { - return dagEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dagEndTime_; - } - } - /** - * - * - *
-     * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-     * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDagEndTimeFieldBuilder() { - if (dagEndTimeBuilder_ == null) { - dagEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDagEndTime(), getParentForChildren(), isClean()); - dagEndTime_ = null; - } - return dagEndTimeBuilder_; - } - - @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.dataproc.v1.WorkflowMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowMetadata) - private static final com.google.cloud.dataproc.v1.WorkflowMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowMetadata(); - } - - public static com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java deleted file mode 100644 index f015e14e..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java +++ /dev/null @@ -1,544 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The template. - */ - java.lang.String getTemplate(); - /** - * - * - *
-   * Output only. The resource name of the workflow template as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string template = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for template. - */ - com.google.protobuf.ByteString getTemplateBytes(); - - /** - * - * - *
-   * Output only. The version of template at the time of
-   * workflow instantiation.
-   * 
- * - * int32 version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createCluster field is set. - */ - boolean hasCreateCluster(); - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createCluster. - */ - com.google.cloud.dataproc.v1.ClusterOperation getCreateCluster(); - /** - * - * - *
-   * Output only. The create cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation create_cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getCreateClusterOrBuilder(); - - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the graph field is set. - */ - boolean hasGraph(); - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The graph. - */ - com.google.cloud.dataproc.v1.WorkflowGraph getGraph(); - /** - * - * - *
-   * Output only. The workflow graph.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowGraph graph = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.WorkflowGraphOrBuilder getGraphOrBuilder(); - - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the deleteCluster field is set. - */ - boolean hasDeleteCluster(); - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The deleteCluster. - */ - com.google.cloud.dataproc.v1.ClusterOperation getDeleteCluster(); - /** - * - * - *
-   * Output only. The delete cluster operation metadata.
-   * 
- * - * - * .google.cloud.dataproc.v1.ClusterOperation delete_cluster = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.dataproc.v1.ClusterOperationOrBuilder getDeleteClusterOrBuilder(); - - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The workflow state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowMetadata.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.WorkflowMetadata.State getState(); - - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterName. - */ - java.lang.String getClusterName(); - /** - * - * - *
-   * Output only. The name of the target cluster.
-   * 
- * - * string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterName. - */ - com.google.protobuf.ByteString getClusterNameBytes(); - - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - int getParametersCount(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - boolean containsParameters(java.lang.String key); - /** Use {@link #getParametersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getParameters(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - java.util.Map getParametersMap(); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - - /* nullable */ - java.lang.String getParametersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Map from parameter names to values that were used for those parameters.
-   * 
- * - * map<string, string> parameters = 8; - */ - java.lang.String getParametersOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * Output only. Workflow start time.
-   * 
- * - * .google.protobuf.Timestamp start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * Output only. Workflow end time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The clusterUuid. - */ - java.lang.String getClusterUuid(); - /** - * - * - *
-   * Output only. The UUID of target cluster.
-   * 
- * - * string cluster_uuid = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for clusterUuid. - */ - com.google.protobuf.ByteString getClusterUuidBytes(); - - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagTimeout field is set. - */ - boolean hasDagTimeout(); - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagTimeout. - */ - com.google.protobuf.Duration getDagTimeout(); - /** - * - * - *
-   * Output only. The timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * 
- * - * .google.protobuf.Duration dag_timeout = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); - - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagStartTime field is set. - */ - boolean hasDagStartTime(); - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagStartTime. - */ - com.google.protobuf.Timestamp getDagStartTime(); - /** - * - * - *
-   * Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG
-   * begins.
-   * 
- * - * - * .google.protobuf.Timestamp dag_start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getDagStartTimeOrBuilder(); - - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dagEndTime field is set. - */ - boolean hasDagEndTime(); - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dagEndTime. - */ - com.google.protobuf.Timestamp getDagEndTime(); - /** - * - * - *
-   * Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends.
-   * 
- * - * - * .google.protobuf.Timestamp dag_end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getDagEndTimeOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java deleted file mode 100644 index 0f4fcbca..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java +++ /dev/null @@ -1,1650 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * The workflow node.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} - */ -public final class WorkflowNode extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowNode) - WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNode.newBuilder() to construct. - private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowNode() { - stepId_ = ""; - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jobId_ = ""; - state_ = 0; - error_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowNode(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, - com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); - } - - /** - * - * - *
-   * The workflow node state.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.WorkflowNode.NodeState} - */ - public enum NodeState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * State is unspecified.
-     * 
- * - * NODE_STATE_UNSPECIFIED = 0; - */ - NODE_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The node is awaiting prerequisite node to finish.
-     * 
- * - * BLOCKED = 1; - */ - BLOCKED(1), - /** - * - * - *
-     * The node is runnable but not running.
-     * 
- * - * RUNNABLE = 2; - */ - RUNNABLE(2), - /** - * - * - *
-     * The node is running.
-     * 
- * - * RUNNING = 3; - */ - RUNNING(3), - /** - * - * - *
-     * The node completed successfully.
-     * 
- * - * COMPLETED = 4; - */ - COMPLETED(4), - /** - * - * - *
-     * The node failed. A node can be marked FAILED because
-     * its ancestor or peer failed.
-     * 
- * - * FAILED = 5; - */ - FAILED(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * State is unspecified.
-     * 
- * - * NODE_STATE_UNSPECIFIED = 0; - */ - public static final int NODE_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The node is awaiting prerequisite node to finish.
-     * 
- * - * BLOCKED = 1; - */ - public static final int BLOCKED_VALUE = 1; - /** - * - * - *
-     * The node is runnable but not running.
-     * 
- * - * RUNNABLE = 2; - */ - public static final int RUNNABLE_VALUE = 2; - /** - * - * - *
-     * The node is running.
-     * 
- * - * RUNNING = 3; - */ - public static final int RUNNING_VALUE = 3; - /** - * - * - *
-     * The node completed successfully.
-     * 
- * - * COMPLETED = 4; - */ - public static final int COMPLETED_VALUE = 4; - /** - * - * - *
-     * The node failed. A node can be marked FAILED because
-     * its ancestor or peer failed.
-     * 
- * - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NodeState 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 NodeState forNumber(int value) { - switch (value) { - case 0: - return NODE_STATE_UNSPECIFIED; - case 1: - return BLOCKED; - case 2: - return RUNNABLE; - case 3: - return RUNNING; - case 4: - return COMPLETED; - case 5: - return FAILED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NodeState findValueByNumber(int number) { - return NodeState.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.dataproc.v1.WorkflowNode.getDescriptor().getEnumTypes().get(0); - } - - private static final NodeState[] VALUES = values(); - - public static NodeState 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 NodeState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.WorkflowNode.NodeState) - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object stepId_; - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - @java.lang.Override - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREREQUISITE_STEP_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList prerequisiteStepIds_; - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_; - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - - public static final int JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object jobId_; - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 5; - private int state_; - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED - : result; - } - - public static final int ERROR_FIELD_NUMBER = 6; - private volatile java.lang.Object error_; - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - @java.lang.Override - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(stepId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stepId_); - } - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prerequisiteStepIds_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); - } - if (state_ - != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, error_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stepId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stepId_); - } - { - int dataSize = 0; - for (int i = 0; i < prerequisiteStepIds_.size(); i++) { - dataSize += computeStringSizeNoTag(prerequisiteStepIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrerequisiteStepIdsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); - } - if (state_ - != com.google.cloud.dataproc.v1.WorkflowNode.NodeState.NODE_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, error_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowNode)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.WorkflowNode other = - (com.google.cloud.dataproc.v1.WorkflowNode) obj; - - if (!getStepId().equals(other.getStepId())) return false; - if (!getPrerequisiteStepIdsList().equals(other.getPrerequisiteStepIdsList())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (state_ != other.state_) return false; - if (!getError().equals(other.getError())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStepId().hashCode(); - if (getPrerequisiteStepIdsCount() > 0) { - hash = (37 * hash) + PREREQUISITE_STEP_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPrerequisiteStepIdsList().hashCode(); - } - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode 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.dataproc.v1.WorkflowNode parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode 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.dataproc.v1.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode 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.dataproc.v1.WorkflowNode prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 workflow node.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowNode} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowNode) - com.google.cloud.dataproc.v1.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowNode.class, - com.google.cloud.dataproc.v1.WorkflowNode.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.WorkflowNode.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - stepId_ = ""; - - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jobId_ = ""; - - state_ = 0; - - error_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode build() { - com.google.cloud.dataproc.v1.WorkflowNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode buildPartial() { - com.google.cloud.dataproc.v1.WorkflowNode result = - new com.google.cloud.dataproc.v1.WorkflowNode(this); - int from_bitField0_ = bitField0_; - result.stepId_ = stepId_; - if (((bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = prerequisiteStepIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.prerequisiteStepIds_ = prerequisiteStepIds_; - result.jobId_ = jobId_; - result.state_ = state_; - result.error_ = error_; - 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.dataproc.v1.WorkflowNode) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowNode) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowNode other) { - if (other == com.google.cloud.dataproc.v1.WorkflowNode.getDefaultInstance()) return this; - if (!other.getStepId().isEmpty()) { - stepId_ = other.stepId_; - onChanged(); - } - if (!other.prerequisiteStepIds_.isEmpty()) { - if (prerequisiteStepIds_.isEmpty()) { - prerequisiteStepIds_ = other.prerequisiteStepIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.addAll(other.prerequisiteStepIds_); - } - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getError().isEmpty()) { - error_ = other.error_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - stepId_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(s); - break; - } // case 18 - case 26: - { - jobId_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - error_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object stepId_ = ""; - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - public java.lang.String getStepId() { - java.lang.Object ref = stepId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stepId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - public com.google.protobuf.ByteString getStepIdBytes() { - java.lang.Object ref = stepId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - stepId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The stepId to set. - * @return This builder for chaining. - */ - public Builder setStepId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - stepId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStepId() { - - stepId_ = getDefaultInstance().getStepId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The name of the node.
-     * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for stepId to set. - * @return This builder for chaining. - */ - public Builder setStepIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - stepId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList prerequisiteStepIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrerequisiteStepIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - prerequisiteStepIds_ = new com.google.protobuf.LazyStringArrayList(prerequisiteStepIds_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList() { - return prerequisiteStepIds_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - public int getPrerequisiteStepIdsCount() { - return prerequisiteStepIds_.size(); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - public java.lang.String getPrerequisiteStepIds(int index) { - return prerequisiteStepIds_.get(index); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index) { - return prerequisiteStepIds_.getByteString(index); - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The prerequisiteStepIds to set. - * @return This builder for chaining. - */ - public Builder setPrerequisiteStepIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addAllPrerequisiteStepIds(java.lang.Iterable values) { - ensurePrerequisiteStepIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prerequisiteStepIds_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearPrerequisiteStepIds() { - prerequisiteStepIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Node's prerequisite nodes.
-     * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes of the prerequisiteStepIds to add. - * @return This builder for chaining. - */ - public Builder addPrerequisiteStepIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrerequisiteStepIdsIsMutable(); - prerequisiteStepIds_.add(value); - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The job id; populated after the node enters RUNNING state.
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.WorkflowNode.NodeState result = - com.google.cloud.dataproc.v1.WorkflowNode.NodeState.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.WorkflowNode.NodeState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.WorkflowNode.NodeState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The node state.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - error_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - public com.google.protobuf.ByteString getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The error to set. - * @return This builder for chaining. - */ - public Builder setError(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - error_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearError() { - - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The error detail.
-     * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for error to set. - * @return This builder for chaining. - */ - public Builder setErrorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - error_ = 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.dataproc.v1.WorkflowNode) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowNode) - private static final com.google.cloud.dataproc.v1.WorkflowNode DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowNode(); - } - - public static com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java deleted file mode 100644 index 003abfa0..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java +++ /dev/null @@ -1,184 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowNodeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowNode) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The stepId. - */ - java.lang.String getStepId(); - /** - * - * - *
-   * Output only. The name of the node.
-   * 
- * - * string step_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for stepId. - */ - com.google.protobuf.ByteString getStepIdBytes(); - - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the prerequisiteStepIds. - */ - java.util.List getPrerequisiteStepIdsList(); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of prerequisiteStepIds. - */ - int getPrerequisiteStepIdsCount(); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The prerequisiteStepIds at the given index. - */ - java.lang.String getPrerequisiteStepIds(int index); - /** - * - * - *
-   * Output only. Node's prerequisite nodes.
-   * 
- * - * repeated string prerequisite_step_ids = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the prerequisiteStepIds at the given index. - */ - com.google.protobuf.ByteString getPrerequisiteStepIdsBytes(int index); - - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - /** - * - * - *
-   * Output only. The job id; populated after the node enters RUNNING state.
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The node state.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowNode.NodeState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.WorkflowNode.NodeState getState(); - - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The error. - */ - java.lang.String getError(); - /** - * - * - *
-   * Output only. The error detail.
-   * 
- * - * string error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for error. - */ - com.google.protobuf.ByteString getErrorBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java deleted file mode 100644 index 8358e925..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java +++ /dev/null @@ -1,3683 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * A Dataproc workflow template resource.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} - */ -public final class WorkflowTemplate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplate) - WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplate.newBuilder() to construct. - private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowTemplate() { - id_ = ""; - name_ = ""; - jobs_ = java.util.Collections.emptyList(); - parameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowTemplate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 2; - private volatile java.lang.Object id_; - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 3; - private int version_; - /** - * - * - *
-   * Optional. Used to perform a consistent read-modify-write.
-   * This field should be left blank for a `CreateWorkflowTemplate` request. It
-   * is required for an `UpdateWorkflowTemplate` request, and must match the
-   * current server version. A typical update template flow would fetch the
-   * current template with a `GetWorkflowTemplate` request, which will return
-   * the current template with the `version` field filled in with the
-   * current server version. The user updates other fields in the template,
-   * then returns it as part of the `UpdateWorkflowTemplate` request.
-   * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int LABELS_FIELD_NUMBER = 6; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_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(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PLACEMENT_FIELD_NUMBER = 7; - private com.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement_; - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - @java.lang.Override - public boolean hasPlacement() { - return placement_ != null; - } - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { - return getPlacement(); - } - - public static final int JOBS_FIELD_NUMBER = 8; - private java.util.List jobs_; - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getJobsList() { - return jobs_; - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getJobsOrBuilderList() { - return jobs_; - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { - return jobs_.get(index); - } - - public static final int PARAMETERS_FIELD_NUMBER = 9; - private java.util.List parameters_; - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getParametersList() { - return parameters_; - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getParametersOrBuilderList() { - return parameters_; - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getParametersCount() { - return parameters_.size(); - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { - return parameters_.get(index); - } - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index) { - return parameters_.get(index); - } - - public static final int DAG_TIMEOUT_FIELD_NUMBER = 10; - private com.google.protobuf.Duration dagTimeout_; - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - @java.lang.Override - public boolean hasDagTimeout() { - return dagTimeout_ != null; - } - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getDagTimeout() { - return dagTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dagTimeout_; - } - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - return getDagTimeout(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); - } - if (version_ != 0) { - output.writeInt32(3, version_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - if (placement_ != null) { - output.writeMessage(7, getPlacement()); - } - for (int i = 0; i < jobs_.size(); i++) { - output.writeMessage(8, jobs_.get(i)); - } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(9, parameters_.get(i)); - } - if (dagTimeout_ != null) { - output.writeMessage(10, getDagTimeout()); - } - getUnknownFields().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(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, version_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); - } - if (placement_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPlacement()); - } - for (int i = 0; i < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, jobs_.get(i)); - } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, parameters_.get(i)); - } - if (dagTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDagTimeout()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowTemplate)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.WorkflowTemplate other = - (com.google.cloud.dataproc.v1.WorkflowTemplate) obj; - - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (getVersion() != other.getVersion()) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasPlacement() != other.hasPlacement()) return false; - if (hasPlacement()) { - if (!getPlacement().equals(other.getPlacement())) return false; - } - if (!getJobsList().equals(other.getJobsList())) return false; - if (!getParametersList().equals(other.getParametersList())) return false; - if (hasDagTimeout() != other.hasDagTimeout()) return false; - if (hasDagTimeout()) { - if (!getDagTimeout().equals(other.getDagTimeout())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasPlacement()) { - hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; - hash = (53 * hash) + getPlacement().hashCode(); - } - if (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().hashCode(); - } - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); - } - if (hasDagTimeout()) { - hash = (37 * hash) + DAG_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getDagTimeout().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate 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.dataproc.v1.WorkflowTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate 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.dataproc.v1.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate 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.dataproc.v1.WorkflowTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 Dataproc workflow template resource.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplate) - com.google.cloud.dataproc.v1.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 6: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 6: - 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.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplate.class, - com.google.cloud.dataproc.v1.WorkflowTemplate.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.WorkflowTemplate.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - version_ = 0; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - if (placementBuilder_ == null) { - placement_ = null; - } else { - placement_ = null; - placementBuilder_ = null; - } - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - } else { - jobs_ = null; - jobsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - } else { - parameters_ = null; - parametersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplate_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate build() { - com.google.cloud.dataproc.v1.WorkflowTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate buildPartial() { - com.google.cloud.dataproc.v1.WorkflowTemplate result = - new com.google.cloud.dataproc.v1.WorkflowTemplate(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.name_ = name_; - result.version_ = version_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (placementBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = placementBuilder_.build(); - } - if (jobsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jobs_ = jobs_; - } else { - result.jobs_ = jobsBuilder_.build(); - } - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - if (dagTimeoutBuilder_ == null) { - result.dagTimeout_ = dagTimeout_; - } else { - result.dagTimeout_ = dagTimeoutBuilder_.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.dataproc.v1.WorkflowTemplate) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplate other) { - if (other == com.google.cloud.dataproc.v1.WorkflowTemplate.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasPlacement()) { - mergePlacement(other.getPlacement()); - } - if (jobsBuilder_ == null) { - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - } else { - if (!other.jobs_.isEmpty()) { - if (jobsBuilder_.isEmpty()) { - jobsBuilder_.dispose(); - jobsBuilder_ = null; - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000002); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobsFieldBuilder() - : null; - } else { - jobsBuilder_.addAllMessages(other.jobs_); - } - } - } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000004); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } - } - if (other.hasDagTimeout()) { - mergeDagTimeout(other.getDagTimeout()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - version_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - break; - } // case 50 - case 58: - { - input.readMessage(getPlacementFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - com.google.cloud.dataproc.v1.OrderedJob m = - input.readMessage( - com.google.cloud.dataproc.v1.OrderedJob.parser(), extensionRegistry); - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(m); - } else { - jobsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - com.google.cloud.dataproc.v1.TemplateParameter m = - input.readMessage( - com.google.cloud.dataproc.v1.TemplateParameter.parser(), extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage(getDagTimeoutFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource name of the workflow template, as described
-     * in https://cloud.google.com/apis/design/resource_names.
-     * * For `projects.regions.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-     * * For `projects.locations.workflowTemplates`, the resource name of the
-     *   template has the following format:
-     *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int version_; - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Used to perform a consistent read-modify-write.
-     * This field should be left blank for a `CreateWorkflowTemplate` request. It
-     * is required for an `UpdateWorkflowTemplate` request, and must match the
-     * current server version. A typical update template flow would fetch the
-     * current template with a `GetWorkflowTemplate` request, which will return
-     * the current template with the `version` field filled in with the
-     * current server version. The user updates other fields in the template,
-     * then returns it as part of the `UpdateWorkflowTemplate` request.
-     * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = 0; - 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_; - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time template was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - 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_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. The time template was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional. The labels to associate with this template. These labels
-     * will be propagated to all jobs and clusters created by the workflow
-     * instance.
-     * Label **keys** must contain 1 to 63 characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * Label **values** may be empty, but, if present, must contain 1 to 63
-     * characters, and must conform to
-     * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-     * No more than 32 labels can be associated with a template.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.cloud.dataproc.v1.WorkflowTemplatePlacement placement_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> - placementBuilder_; - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - public boolean hasPlacement() { - return placementBuilder_ != null || placement_ != null; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement() { - if (placementBuilder_ == null) { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } else { - return placementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { - if (placementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - placementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPlacement( - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder builderForValue) { - if (placementBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - placementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePlacement(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement value) { - if (placementBuilder_ == null) { - if (placement_ != null) { - placement_ = - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder(placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - placementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPlacement() { - if (placementBuilder_ == null) { - placement_ = null; - onChanged(); - } else { - placement_ = null; - placementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder getPlacementBuilder() { - - onChanged(); - return getPlacementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder() { - if (placementBuilder_ != null) { - return placementBuilder_.getMessageOrBuilder(); - } else { - return placement_ == null - ? com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance() - : placement_; - } - } - /** - * - * - *
-     * Required. WorkflowTemplate scheduling information.
-     * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder> - getPlacementFieldBuilder() { - if (placementBuilder_ == null) { - placementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder>( - getPlacement(), getParentForChildren(), isClean()); - placement_ = null; - } - return placementBuilder_; - } - - private java.util.List jobs_ = - java.util.Collections.emptyList(); - - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jobs_ = new java.util.ArrayList(jobs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder> - jobsBuilder_; - - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getJobsList() { - if (jobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobs_); - } else { - return jobsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getJobsCount() { - if (jobsBuilder_ == null) { - return jobs_.size(); - } else { - return jobsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.OrderedJob getJobs(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - } else { - jobsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setJobs( - int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.set(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - } else { - jobsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addJobs(int index, com.google.cloud.dataproc.v1.OrderedJob value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(index, value); - onChanged(); - } else { - jobsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addJobs(com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addJobs( - int index, com.google.cloud.dataproc.v1.OrderedJob.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllJobs( - java.lang.Iterable values) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - onChanged(); - } else { - jobsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearJobs() { - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - jobsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeJobs(int index) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.remove(index); - onChanged(); - } else { - jobsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder getJobsBuilder(int index) { - return getJobsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getJobsOrBuilderList() { - if (jobsBuilder_ != null) { - return jobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobs_); - } - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder() { - return getJobsFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.dataproc.v1.OrderedJob.Builder addJobsBuilder(int index) { - return getJobsFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.OrderedJob.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The Directed Acyclic Graph of Jobs to submit.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getJobsBuilderList() { - return getJobsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder> - getJobsFieldBuilder() { - if (jobsBuilder_ == null) { - jobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.OrderedJob, - com.google.cloud.dataproc.v1.OrderedJob.Builder, - com.google.cloud.dataproc.v1.OrderedJobOrBuilder>( - jobs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - jobs_ = null; - } - return jobsBuilder_; - } - - private java.util.List parameters_ = - java.util.Collections.emptyList(); - - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - parameters_ = - new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> - parametersBuilder_; - - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParameters( - int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters(com.google.cloud.dataproc.v1.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); - } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters(int index, com.google.cloud.dataproc.v1.TemplateParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - int index, com.google.cloud.dataproc.v1.TemplateParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllParameters( - java.lang.Iterable values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); - onChanged(); - } else { - parametersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - parametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder getParametersBuilder(int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parameters_); - } - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder(com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dataproc.v1.TemplateParameter.Builder addParametersBuilder(int index) { - return getParametersFieldBuilder() - .addBuilder(index, com.google.cloud.dataproc.v1.TemplateParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Template parameters whose values are substituted into the
-     * template. Values for parameters must be provided when the template is
-     * instantiated.
-     * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dataproc.v1.TemplateParameter, - com.google.cloud.dataproc.v1.TemplateParameter.Builder, - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - parameters_ = null; - } - return parametersBuilder_; - } - - private com.google.protobuf.Duration dagTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dagTimeoutBuilder_; - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - public boolean hasDagTimeout() { - return dagTimeoutBuilder_ != null || dagTimeout_ != null; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - public com.google.protobuf.Duration getDagTimeout() { - if (dagTimeoutBuilder_ == null) { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } else { - return dagTimeoutBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dagTimeout_ = value; - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setDagTimeout(com.google.protobuf.Duration.Builder builderForValue) { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = builderForValue.build(); - onChanged(); - } else { - dagTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeDagTimeout(com.google.protobuf.Duration value) { - if (dagTimeoutBuilder_ == null) { - if (dagTimeout_ != null) { - dagTimeout_ = - com.google.protobuf.Duration.newBuilder(dagTimeout_).mergeFrom(value).buildPartial(); - } else { - dagTimeout_ = value; - } - onChanged(); - } else { - dagTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearDagTimeout() { - if (dagTimeoutBuilder_ == null) { - dagTimeout_ = null; - onChanged(); - } else { - dagTimeout_ = null; - dagTimeoutBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.Duration.Builder getDagTimeoutBuilder() { - - onChanged(); - return getDagTimeoutFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder() { - if (dagTimeoutBuilder_ != null) { - return dagTimeoutBuilder_.getMessageOrBuilder(); - } else { - return dagTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dagTimeout_; - } - } - /** - * - * - *
-     * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-     * [JSON representation of
-     * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-     * The timeout duration must be from 10 minutes ("600s") to 24 hours
-     * ("86400s"). The timer begins when the first job is submitted. If the
-     * workflow is running at the end of the timeout period, any remaining jobs
-     * are cancelled, the workflow is ended, and if the workflow was running on a
-     * [managed
-     * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-     * the cluster is deleted.
-     * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDagTimeoutFieldBuilder() { - if (dagTimeoutBuilder_ == null) { - dagTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDagTimeout(), getParentForChildren(), isClean()); - dagTimeout_ = null; - } - return dagTimeoutBuilder_; - } - - @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.dataproc.v1.WorkflowTemplate) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplate) - private static final com.google.cloud.dataproc.v1.WorkflowTemplate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplate(); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java deleted file mode 100644 index 21925bca..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java +++ /dev/null @@ -1,361 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class WorkflowTemplateName implements ResourceName { - private static final PathTemplate PROJECT_REGION_WORKFLOW_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - private static final PathTemplate PROJECT_LOCATION_WORKFLOW_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String project; - private final String region; - private final String workflowTemplate; - private final String location; - - @Deprecated - protected WorkflowTemplateName() { - project = null; - region = null; - workflowTemplate = null; - location = null; - } - - private WorkflowTemplateName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - region = Preconditions.checkNotNull(builder.getRegion()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - location = null; - pathTemplate = PROJECT_REGION_WORKFLOW_TEMPLATE; - } - - private WorkflowTemplateName(ProjectLocationWorkflowTemplateBuilder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - workflowTemplate = Preconditions.checkNotNull(builder.getWorkflowTemplate()); - region = null; - pathTemplate = PROJECT_LOCATION_WORKFLOW_TEMPLATE; - } - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newProjectRegionWorkflowTemplateBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static ProjectLocationWorkflowTemplateBuilder newProjectLocationWorkflowTemplateBuilder() { - return new ProjectLocationWorkflowTemplateBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static WorkflowTemplateName of(String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static WorkflowTemplateName ofProjectRegionWorkflowTemplateName( - String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static WorkflowTemplateName ofProjectLocationWorkflowTemplateName( - String project, String location, String workflowTemplate) { - return newProjectLocationWorkflowTemplateBuilder() - .setProject(project) - .setLocation(location) - .setWorkflowTemplate(workflowTemplate) - .build(); - } - - public static String format(String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectRegionWorkflowTemplateName( - String project, String region, String workflowTemplate) { - return newBuilder() - .setProject(project) - .setRegion(region) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatProjectLocationWorkflowTemplateName( - String project, String location, String workflowTemplate) { - return newProjectLocationWorkflowTemplateBuilder() - .setProject(project) - .setLocation(location) - .setWorkflowTemplate(workflowTemplate) - .build() - .toString(); - } - - public static WorkflowTemplateName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString)) { - Map matchMap = PROJECT_REGION_WORKFLOW_TEMPLATE.match(formattedString); - return ofProjectRegionWorkflowTemplateName( - matchMap.get("project"), matchMap.get("region"), matchMap.get("workflow_template")); - } else if (PROJECT_LOCATION_WORKFLOW_TEMPLATE.matches(formattedString)) { - Map matchMap = PROJECT_LOCATION_WORKFLOW_TEMPLATE.match(formattedString); - return ofProjectLocationWorkflowTemplateName( - matchMap.get("project"), matchMap.get("location"), matchMap.get("workflow_template")); - } - throw new ValidationException( - "WorkflowTemplateName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (WorkflowTemplateName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_REGION_WORKFLOW_TEMPLATE.matches(formattedString) - || PROJECT_LOCATION_WORKFLOW_TEMPLATE.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 (region != null) { - fieldMapBuilder.put("region", region); - } - if (workflowTemplate != null) { - fieldMapBuilder.put("workflow_template", workflowTemplate); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - WorkflowTemplateName that = ((WorkflowTemplateName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.region, that.region) - && Objects.equals(this.workflowTemplate, that.workflowTemplate) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(region); - h *= 1000003; - h ^= Objects.hashCode(workflowTemplate); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/regions/{region}/workflowTemplates/{workflow_template}. */ - public static class Builder { - private String project; - private String region; - private String workflowTemplate; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getRegion() { - return region; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setRegion(String region) { - this.region = region; - return this; - } - - public Builder setWorkflowTemplate(String workflowTemplate) { - this.workflowTemplate = workflowTemplate; - return this; - } - - private Builder(WorkflowTemplateName workflowTemplateName) { - Preconditions.checkArgument( - Objects.equals(workflowTemplateName.pathTemplate, PROJECT_REGION_WORKFLOW_TEMPLATE), - "toBuilder is only supported when WorkflowTemplateName has the pattern of projects/{project}/regions/{region}/workflowTemplates/{workflow_template}"); - this.project = workflowTemplateName.project; - this.region = workflowTemplateName.region; - this.workflowTemplate = workflowTemplateName.workflowTemplate; - } - - public WorkflowTemplateName build() { - return new WorkflowTemplateName(this); - } - } - - /** Builder for projects/{project}/locations/{location}/workflowTemplates/{workflow_template}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class ProjectLocationWorkflowTemplateBuilder { - private String project; - private String location; - private String workflowTemplate; - - protected ProjectLocationWorkflowTemplateBuilder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getWorkflowTemplate() { - return workflowTemplate; - } - - public ProjectLocationWorkflowTemplateBuilder setProject(String project) { - this.project = project; - return this; - } - - public ProjectLocationWorkflowTemplateBuilder setLocation(String location) { - this.location = location; - return this; - } - - public ProjectLocationWorkflowTemplateBuilder setWorkflowTemplate(String workflowTemplate) { - this.workflowTemplate = workflowTemplate; - return this; - } - - public WorkflowTemplateName build() { - return new WorkflowTemplateName(this); - } - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java deleted file mode 100644 index 5e314eb2..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java +++ /dev/null @@ -1,511 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowTemplateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. The resource name of the workflow template, as described
-   * in https://cloud.google.com/apis/design/resource_names.
-   * * For `projects.regions.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
-   * * For `projects.locations.workflowTemplates`, the resource name of the
-   *   template has the following format:
-   *   `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. Used to perform a consistent read-modify-write.
-   * This field should be left blank for a `CreateWorkflowTemplate` request. It
-   * is required for an `UpdateWorkflowTemplate` request, and must match the
-   * current server version. A typical update template flow would fetch the
-   * current template with a `GetWorkflowTemplate` request, which will return
-   * the current template with the `version` field filled in with the
-   * current server version. The user updates other fields in the template,
-   * then returns it as part of the `UpdateWorkflowTemplate` request.
-   * 
- * - * int32 version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - int getVersion(); - - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time template was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. The time template was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Optional. The labels to associate with this template. These labels
-   * will be propagated to all jobs and clusters created by the workflow
-   * instance.
-   * Label **keys** must contain 1 to 63 characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * Label **values** may be empty, but, if present, must contain 1 to 63
-   * characters, and must conform to
-   * [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
-   * No more than 32 labels can be associated with a template.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the placement field is set. - */ - boolean hasPlacement(); - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The placement. - */ - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getPlacement(); - /** - * - * - *
-   * Required. WorkflowTemplate scheduling information.
-   * 
- * - * - * .google.cloud.dataproc.v1.WorkflowTemplatePlacement placement = 7 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder getPlacementOrBuilder(); - - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getJobsList(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.OrderedJob getJobs(int index); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getJobsCount(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getJobsOrBuilderList(); - /** - * - * - *
-   * Required. The Directed Acyclic Graph of Jobs to submit.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.OrderedJob jobs = 8 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.dataproc.v1.OrderedJobOrBuilder getJobsOrBuilder(int index); - - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getParametersList(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.TemplateParameter getParameters(int index); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getParametersCount(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getParametersOrBuilderList(); - /** - * - * - *
-   * Optional. Template parameters whose values are substituted into the
-   * template. Values for parameters must be provided when the template is
-   * instantiated.
-   * 
- * - * - * repeated .google.cloud.dataproc.v1.TemplateParameter parameters = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.dataproc.v1.TemplateParameterOrBuilder getParametersOrBuilder(int index); - - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the dagTimeout field is set. - */ - boolean hasDagTimeout(); - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dagTimeout. - */ - com.google.protobuf.Duration getDagTimeout(); - /** - * - * - *
-   * Optional. Timeout duration for the DAG of jobs, expressed in seconds (see
-   * [JSON representation of
-   * duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
-   * The timeout duration must be from 10 minutes ("600s") to 24 hours
-   * ("86400s"). The timer begins when the first job is submitted. If the
-   * workflow is running at the end of the timeout period, any remaining jobs
-   * are cancelled, the workflow is ended, and if the workflow was running on a
-   * [managed
-   * cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
-   * the cluster is deleted.
-   * 
- * - * .google.protobuf.Duration dag_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.DurationOrBuilder getDagTimeoutOrBuilder(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java deleted file mode 100644 index eeb2c01d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java +++ /dev/null @@ -1,1136 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -/** - * - * - *
- * Specifies workflow execution target.
- * Either `managed_cluster` or `cluster_selector` is required.
- * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement} - */ -public final class WorkflowTemplatePlacement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement) - WorkflowTemplatePlacementOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplatePlacement.newBuilder() to construct. - private WorkflowTemplatePlacement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkflowTemplatePlacement() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkflowTemplatePlacement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class); - } - - private int placementCase_ = 0; - private java.lang.Object placement_; - - public enum PlacementCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MANAGED_CLUSTER(1), - CLUSTER_SELECTOR(2), - PLACEMENT_NOT_SET(0); - private final int value; - - private PlacementCase(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 PlacementCase valueOf(int value) { - return forNumber(value); - } - - public static PlacementCase forNumber(int value) { - switch (value) { - case 1: - return MANAGED_CLUSTER; - case 2: - return CLUSTER_SELECTOR; - case 0: - return PLACEMENT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PlacementCase getPlacementCase() { - return PlacementCase.forNumber(placementCase_); - } - - public static final int MANAGED_CLUSTER_FIELD_NUMBER = 1; - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - @java.lang.Override - public boolean hasManagedCluster() { - return placementCase_ == 1; - } - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder() { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - - public static final int CLUSTER_SELECTOR_FIELD_NUMBER = 2; - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - @java.lang.Override - public boolean hasClusterSelector() { - return placementCase_ == 2; - } - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (placementCase_ == 1) { - output.writeMessage(1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_); - } - if (placementCase_ == 2) { - output.writeMessage(2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (placementCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.dataproc.v1.ManagedCluster) placement_); - } - if (placementCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dataproc.v1.ClusterSelector) placement_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.WorkflowTemplatePlacement)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other = - (com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) obj; - - if (!getPlacementCase().equals(other.getPlacementCase())) return false; - switch (placementCase_) { - case 1: - if (!getManagedCluster().equals(other.getManagedCluster())) return false; - break; - case 2: - if (!getClusterSelector().equals(other.getClusterSelector())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (placementCase_) { - case 1: - hash = (37 * hash) + MANAGED_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getManagedCluster().hashCode(); - break; - case 2: - hash = (37 * hash) + CLUSTER_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getClusterSelector().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement 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.dataproc.v1.WorkflowTemplatePlacement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement 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.dataproc.v1.WorkflowTemplatePlacement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement 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.dataproc.v1.WorkflowTemplatePlacement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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; - } - /** - * - * - *
-   * Specifies workflow execution target.
-   * Either `managed_cluster` or `cluster_selector` is required.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.WorkflowTemplatePlacement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.WorkflowTemplatePlacement) - com.google.cloud.dataproc.v1.WorkflowTemplatePlacementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.class, - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (managedClusterBuilder_ != null) { - managedClusterBuilder_.clear(); - } - if (clusterSelectorBuilder_ != null) { - clusterSelectorBuilder_.clear(); - } - placementCase_ = 0; - placement_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatesProto - .internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement build() { - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement buildPartial() { - com.google.cloud.dataproc.v1.WorkflowTemplatePlacement result = - new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(this); - if (placementCase_ == 1) { - if (managedClusterBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = managedClusterBuilder_.build(); - } - } - if (placementCase_ == 2) { - if (clusterSelectorBuilder_ == null) { - result.placement_ = placement_; - } else { - result.placement_ = clusterSelectorBuilder_.build(); - } - } - result.placementCase_ = placementCase_; - 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.dataproc.v1.WorkflowTemplatePlacement) { - return mergeFrom((com.google.cloud.dataproc.v1.WorkflowTemplatePlacement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.WorkflowTemplatePlacement other) { - if (other == com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.getDefaultInstance()) - return this; - switch (other.getPlacementCase()) { - case MANAGED_CLUSTER: - { - mergeManagedCluster(other.getManagedCluster()); - break; - } - case CLUSTER_SELECTOR: - { - mergeClusterSelector(other.getClusterSelector()); - break; - } - case PLACEMENT_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getManagedClusterFieldBuilder().getBuilder(), extensionRegistry); - placementCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getClusterSelectorFieldBuilder().getBuilder(), extensionRegistry); - placementCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int placementCase_ = 0; - private java.lang.Object placement_; - - public PlacementCase getPlacementCase() { - return PlacementCase.forNumber(placementCase_); - } - - public Builder clearPlacement() { - placementCase_ = 0; - placement_ = null; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, - com.google.cloud.dataproc.v1.ManagedCluster.Builder, - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> - managedClusterBuilder_; - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - @java.lang.Override - public boolean hasManagedCluster() { - return placementCase_ == 1; - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster() { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } else { - if (placementCase_ == 1) { - return managedClusterBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - public Builder setManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster value) { - if (managedClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - managedClusterBuilder_.setMessage(value); - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - public Builder setManagedCluster( - com.google.cloud.dataproc.v1.ManagedCluster.Builder builderForValue) { - if (managedClusterBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - managedClusterBuilder_.setMessage(builderForValue.build()); - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - public Builder mergeManagedCluster(com.google.cloud.dataproc.v1.ManagedCluster value) { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1 - && placement_ != com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance()) { - placement_ = - com.google.cloud.dataproc.v1.ManagedCluster.newBuilder( - (com.google.cloud.dataproc.v1.ManagedCluster) placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - if (placementCase_ == 1) { - managedClusterBuilder_.mergeFrom(value); - } else { - managedClusterBuilder_.setMessage(value); - } - } - placementCase_ = 1; - return this; - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - public Builder clearManagedCluster() { - if (managedClusterBuilder_ == null) { - if (placementCase_ == 1) { - placementCase_ = 0; - placement_ = null; - onChanged(); - } - } else { - if (placementCase_ == 1) { - placementCase_ = 0; - placement_ = null; - } - managedClusterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - public com.google.cloud.dataproc.v1.ManagedCluster.Builder getManagedClusterBuilder() { - return getManagedClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder() { - if ((placementCase_ == 1) && (managedClusterBuilder_ != null)) { - return managedClusterBuilder_.getMessageOrBuilder(); - } else { - if (placementCase_ == 1) { - return (com.google.cloud.dataproc.v1.ManagedCluster) placement_; - } - return com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - } - /** - * - * - *
-     * A cluster that is managed by the workflow.
-     * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, - com.google.cloud.dataproc.v1.ManagedCluster.Builder, - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder> - getManagedClusterFieldBuilder() { - if (managedClusterBuilder_ == null) { - if (!(placementCase_ == 1)) { - placement_ = com.google.cloud.dataproc.v1.ManagedCluster.getDefaultInstance(); - } - managedClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ManagedCluster, - com.google.cloud.dataproc.v1.ManagedCluster.Builder, - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder>( - (com.google.cloud.dataproc.v1.ManagedCluster) placement_, - getParentForChildren(), - isClean()); - placement_ = null; - } - placementCase_ = 1; - onChanged(); - ; - return managedClusterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterSelector, - com.google.cloud.dataproc.v1.ClusterSelector.Builder, - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> - clusterSelectorBuilder_; - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - @java.lang.Override - public boolean hasClusterSelector() { - return placementCase_ == 2; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector() { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } else { - if (placementCase_ == 2) { - return clusterSelectorBuilder_.getMessage(); - } - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - public Builder setClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector value) { - if (clusterSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placement_ = value; - onChanged(); - } else { - clusterSelectorBuilder_.setMessage(value); - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - public Builder setClusterSelector( - com.google.cloud.dataproc.v1.ClusterSelector.Builder builderForValue) { - if (clusterSelectorBuilder_ == null) { - placement_ = builderForValue.build(); - onChanged(); - } else { - clusterSelectorBuilder_.setMessage(builderForValue.build()); - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - public Builder mergeClusterSelector(com.google.cloud.dataproc.v1.ClusterSelector value) { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2 - && placement_ != com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance()) { - placement_ = - com.google.cloud.dataproc.v1.ClusterSelector.newBuilder( - (com.google.cloud.dataproc.v1.ClusterSelector) placement_) - .mergeFrom(value) - .buildPartial(); - } else { - placement_ = value; - } - onChanged(); - } else { - if (placementCase_ == 2) { - clusterSelectorBuilder_.mergeFrom(value); - } else { - clusterSelectorBuilder_.setMessage(value); - } - } - placementCase_ = 2; - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - public Builder clearClusterSelector() { - if (clusterSelectorBuilder_ == null) { - if (placementCase_ == 2) { - placementCase_ = 0; - placement_ = null; - onChanged(); - } - } else { - if (placementCase_ == 2) { - placementCase_ = 0; - placement_ = null; - } - clusterSelectorBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - public com.google.cloud.dataproc.v1.ClusterSelector.Builder getClusterSelectorBuilder() { - return getClusterSelectorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorOrBuilder() { - if ((placementCase_ == 2) && (clusterSelectorBuilder_ != null)) { - return clusterSelectorBuilder_.getMessageOrBuilder(); - } else { - if (placementCase_ == 2) { - return (com.google.cloud.dataproc.v1.ClusterSelector) placement_; - } - return com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. A selector that chooses target cluster for jobs based
-     * on metadata.
-     * The selector is evaluated at the time each job is submitted.
-     * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterSelector, - com.google.cloud.dataproc.v1.ClusterSelector.Builder, - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder> - getClusterSelectorFieldBuilder() { - if (clusterSelectorBuilder_ == null) { - if (!(placementCase_ == 2)) { - placement_ = com.google.cloud.dataproc.v1.ClusterSelector.getDefaultInstance(); - } - clusterSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dataproc.v1.ClusterSelector, - com.google.cloud.dataproc.v1.ClusterSelector.Builder, - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder>( - (com.google.cloud.dataproc.v1.ClusterSelector) placement_, - getParentForChildren(), - isClean()); - placement_ = null; - } - placementCase_ = 2; - onChanged(); - ; - return clusterSelectorBuilder_; - } - - @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.dataproc.v1.WorkflowTemplatePlacement) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.WorkflowTemplatePlacement) - private static final com.google.cloud.dataproc.v1.WorkflowTemplatePlacement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.WorkflowTemplatePlacement(); - } - - public static com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplatePlacement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java deleted file mode 100644 index 5f6a313a..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java +++ /dev/null @@ -1,103 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public interface WorkflowTemplatePlacementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.WorkflowTemplatePlacement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return Whether the managedCluster field is set. - */ - boolean hasManagedCluster(); - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - * - * @return The managedCluster. - */ - com.google.cloud.dataproc.v1.ManagedCluster getManagedCluster(); - /** - * - * - *
-   * A cluster that is managed by the workflow.
-   * 
- * - * .google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1; - */ - com.google.cloud.dataproc.v1.ManagedClusterOrBuilder getManagedClusterOrBuilder(); - - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return Whether the clusterSelector field is set. - */ - boolean hasClusterSelector(); - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - * - * @return The clusterSelector. - */ - com.google.cloud.dataproc.v1.ClusterSelector getClusterSelector(); - /** - * - * - *
-   * Optional. A selector that chooses target cluster for jobs based
-   * on metadata.
-   * The selector is evaluated at the time each job is submitted.
-   * 
- * - * .google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2; - */ - com.google.cloud.dataproc.v1.ClusterSelectorOrBuilder getClusterSelectorOrBuilder(); - - public com.google.cloud.dataproc.v1.WorkflowTemplatePlacement.PlacementCase getPlacementCase(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java deleted file mode 100644 index b5036aaf..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java +++ /dev/null @@ -1,640 +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/dataproc/v1/workflow_templates.proto - -package com.google.cloud.dataproc.v1; - -public final class WorkflowTemplatesProto { - private WorkflowTemplatesProto() {} - - 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_dataproc_v1_WorkflowTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowTemplatePlacement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ManagedCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterSelector_ClusterLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_OrderedJob_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_TemplateParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_TemplateParameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ParameterValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ParameterValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_RegexValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_RegexValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ValueValidation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ValueValidation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowMetadata_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ClusterOperation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ClusterOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowGraph_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowGraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_WorkflowNode_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_WorkflowNode_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_CreateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_GetWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateWorkflowTemplateRequest_ParametersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_InstantiateInlineWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_UpdateWorkflowTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_ListWorkflowTemplatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dataproc_v1_DeleteWorkflowTemplateRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/dataproc/v1/workflow_temp" - + "lates.proto\022\030google.cloud.dataproc.v1\032\034g" - + "oogle/api/annotations.proto\032\027google/api/" - + "client.proto\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032\'google" - + "/cloud/dataproc/v1/clusters.proto\032#googl" - + "e/cloud/dataproc/v1/jobs.proto\032#google/l" - + "ongrunning/operations.proto\032\036google/prot" - + "obuf/duration.proto\032\033google/protobuf/emp" - + "ty.proto\032\037google/protobuf/timestamp.prot" - + "o\"\202\006\n\020WorkflowTemplate\022\017\n\002id\030\002 \001(\tB\003\340A\002\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007version\030\003 \001(\005B\003\340A\001" - + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022K\n\006labels\030\006" - + " \003(\01326.google.cloud.dataproc.v1.Workflow" - + "Template.LabelsEntryB\003\340A\001\022K\n\tplacement\030\007" - + " \001(\01323.google.cloud.dataproc.v1.Workflow" - + "TemplatePlacementB\003\340A\002\0227\n\004jobs\030\010 \003(\0132$.g" - + "oogle.cloud.dataproc.v1.OrderedJobB\003\340A\002\022" - + "D\n\nparameters\030\t \003(\0132+.google.cloud.datap" - + "roc.v1.TemplateParameterB\003\340A\001\0223\n\013dag_tim" - + "eout\030\n \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001:\312\001\352A\306\001\n(dataproc.googleapis.co" - + "m/WorkflowTemplate\022Iprojects/{project}/r" - + "egions/{region}/workflowTemplates/{workf" - + "low_template}\022Mprojects/{project}/locati" - + "ons/{location}/workflowTemplates/{workfl" - + "ow_template} \001\"\264\001\n\031WorkflowTemplatePlace" - + "ment\022C\n\017managed_cluster\030\001 \001(\0132(.google.c" - + "loud.dataproc.v1.ManagedClusterH\000\022E\n\020clu" - + "ster_selector\030\002 \001(\0132).google.cloud.datap" - + "roc.v1.ClusterSelectorH\000B\013\n\tplacement\"\343\001" - + "\n\016ManagedCluster\022\031\n\014cluster_name\030\002 \001(\tB\003" - + "\340A\002\022<\n\006config\030\003 \001(\0132\'.google.cloud.datap" - + "roc.v1.ClusterConfigB\003\340A\002\022I\n\006labels\030\004 \003(" - + "\01324.google.cloud.dataproc.v1.ManagedClus" - + "ter.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\265\001\n\017ClusterS" - + "elector\022\021\n\004zone\030\001 \001(\tB\003\340A\001\022Y\n\016cluster_la" - + "bels\030\002 \003(\0132<.google.cloud.dataproc.v1.Cl" - + "usterSelector.ClusterLabelsEntryB\003\340A\002\0324\n" - + "\022ClusterLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\206\006\n\nOrderedJob\022\024\n\007step_id\030\001 " - + "\001(\tB\003\340A\002\022>\n\nhadoop_job\030\002 \001(\0132#.google.cl" - + "oud.dataproc.v1.HadoopJobB\003\340A\001H\000\022<\n\tspar" - + "k_job\030\003 \001(\0132\".google.cloud.dataproc.v1.S" - + "parkJobB\003\340A\001H\000\022@\n\013pyspark_job\030\004 \001(\0132$.go" - + "ogle.cloud.dataproc.v1.PySparkJobB\003\340A\001H\000" - + "\022:\n\010hive_job\030\005 \001(\0132!.google.cloud.datapr" - + "oc.v1.HiveJobB\003\340A\001H\000\0228\n\007pig_job\030\006 \001(\0132 ." - + "google.cloud.dataproc.v1.PigJobB\003\340A\001H\000\022?" - + "\n\013spark_r_job\030\013 \001(\0132#.google.cloud.datap" - + "roc.v1.SparkRJobB\003\340A\001H\000\022C\n\rspark_sql_job" - + "\030\007 \001(\0132%.google.cloud.dataproc.v1.SparkS" - + "qlJobB\003\340A\001H\000\022>\n\npresto_job\030\014 \001(\0132#.googl" - + "e.cloud.dataproc.v1.PrestoJobB\003\340A\001H\000\022E\n\006" - + "labels\030\010 \003(\01320.google.cloud.dataproc.v1." - + "OrderedJob.LabelsEntryB\003\340A\001\022@\n\nschedulin" - + "g\030\t \001(\0132\'.google.cloud.dataproc.v1.JobSc" - + "hedulingB\003\340A\001\022\"\n\025prerequisite_step_ids\030\n" - + " \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001B\n\n\010job_type\"\235\001\n\021Templat" - + "eParameter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006fields\030" - + "\002 \003(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022F\n\n" - + "validation\030\004 \001(\0132-.google.cloud.dataproc" - + ".v1.ParameterValidationB\003\340A\001\"\241\001\n\023Paramet" - + "erValidation\022:\n\005regex\030\001 \001(\0132).google.clo" - + "ud.dataproc.v1.RegexValidationH\000\022;\n\006valu" - + "es\030\002 \001(\0132).google.cloud.dataproc.v1.Valu" - + "eValidationH\000B\021\n\017validation_type\"\'\n\017Rege" - + "xValidation\022\024\n\007regexes\030\001 \003(\tB\003\340A\002\"&\n\017Val" - + "ueValidation\022\023\n\006values\030\001 \003(\tB\003\340A\002\"\324\006\n\020Wo" - + "rkflowMetadata\022\025\n\010template\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007version\030\002 \001(\005B\003\340A\003\022G\n\016create_cluster\030\003 " - + "\001(\0132*.google.cloud.dataproc.v1.ClusterOp" - + "erationB\003\340A\003\022;\n\005graph\030\004 \001(\0132\'.google.clo" - + "ud.dataproc.v1.WorkflowGraphB\003\340A\003\022G\n\016del" - + "ete_cluster\030\005 \001(\0132*.google.cloud.datapro" - + "c.v1.ClusterOperationB\003\340A\003\022D\n\005state\030\006 \001(" - + "\01620.google.cloud.dataproc.v1.WorkflowMet" - + "adata.StateB\003\340A\003\022\031\n\014cluster_name\030\007 \001(\tB\003" - + "\340A\003\022N\n\nparameters\030\010 \003(\0132:.google.cloud.d" - + "ataproc.v1.WorkflowMetadata.ParametersEn" - + "try\0223\n\nstart_time\030\t \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0221\n\010end_time\030\n \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022\031\n\014cluster_u" - + "uid\030\013 \001(\tB\003\340A\003\0223\n\013dag_timeout\030\014 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\003\0227\n\016dag_start" - + "_time\030\r \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0225\n\014dag_end_time\030\016 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0321\n\017ParametersEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" - + "\013\n\007UNKNOWN\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010" - + "\n\004DONE\020\003\"T\n\020ClusterOperation\022\031\n\014operatio" - + "n_id\030\001 \001(\tB\003\340A\003\022\022\n\005error\030\002 \001(\tB\003\340A\003\022\021\n\004d" - + "one\030\003 \001(\010B\003\340A\003\"K\n\rWorkflowGraph\022:\n\005nodes" - + "\030\001 \003(\0132&.google.cloud.dataproc.v1.Workfl" - + "owNodeB\003\340A\003\"\243\002\n\014WorkflowNode\022\024\n\007step_id\030" - + "\001 \001(\tB\003\340A\003\022\"\n\025prerequisite_step_ids\030\002 \003(" - + "\tB\003\340A\003\022\023\n\006job_id\030\003 \001(\tB\003\340A\003\022D\n\005state\030\005 \001" - + "(\01620.google.cloud.dataproc.v1.WorkflowNo" - + "de.NodeStateB\003\340A\003\022\022\n\005error\030\006 \001(\tB\003\340A\003\"j\n" - + "\tNodeState\022\032\n\026NODE_STATE_UNSPECIFIED\020\000\022\013" - + "\n\007BLOCKED\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007RUNNING\020\003\022\r" - + "\n\tCOMPLETED\020\004\022\n\n\006FAILED\020\005\"\244\001\n\035CreateWork" - + "flowTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002" - + "\372A*\022(dataproc.googleapis.com/WorkflowTem" - + "plate\022A\n\010template\030\002 \001(\0132*.google.cloud.d" - + "ataproc.v1.WorkflowTemplateB\003\340A\002\"r\n\032GetW" - + "orkflowTemplateRequest\022>\n\004name\030\001 \001(\tB0\340A" - + "\002\372A*\n(dataproc.googleapis.com/WorkflowTe" - + "mplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\255\002\n\"Instant" - + "iateWorkflowTemplateRequest\022>\n\004name\030\001 \001(" - + "\tB0\340A\002\372A*\n(dataproc.googleapis.com/Workf" - + "lowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\001\022\027\n\nreq" - + "uest_id\030\005 \001(\tB\003\340A\001\022e\n\nparameters\030\006 \003(\0132L" - + ".google.cloud.dataproc.v1.InstantiateWor" - + "kflowTemplateRequest.ParametersEntryB\003\340A" - + "\001\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\310\001\n(InstantiateInlineWorkfl" - + "owTemplateRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" - + "*\022(dataproc.googleapis.com/WorkflowTempl" - + "ate\022A\n\010template\030\002 \001(\0132*.google.cloud.dat" - + "aproc.v1.WorkflowTemplateB\003\340A\002\022\027\n\nreques" - + "t_id\030\003 \001(\tB\003\340A\001\"b\n\035UpdateWorkflowTemplat" - + "eRequest\022A\n\010template\030\001 \001(\0132*.google.clou" - + "d.dataproc.v1.WorkflowTemplateB\003\340A\002\"\221\001\n\034" - + "ListWorkflowTemplatesRequest\022@\n\006parent\030\001" - + " \001(\tB0\340A\002\372A*\022(dataproc.googleapis.com/Wo" - + "rkflowTemplate\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\035ListWorkflow" - + "TemplatesResponse\022B\n\ttemplates\030\001 \003(\0132*.g" - + "oogle.cloud.dataproc.v1.WorkflowTemplate" - + "B\003\340A\003\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\003\"u\n\035D" - + "eleteWorkflowTemplateRequest\022>\n\004name\030\001 \001" - + "(\tB0\340A\002\372A*\n(dataproc.googleapis.com/Work" - + "flowTemplate\022\024\n\007version\030\002 \001(\005B\003\340A\0012\346\020\n\027W" - + "orkflowTemplateService\022\233\002\n\026CreateWorkflo" - + "wTemplate\0227.google.cloud.dataproc.v1.Cre" - + "ateWorkflowTemplateRequest\032*.google.clou" - + "d.dataproc.v1.WorkflowTemplate\"\233\001\202\323\344\223\002\202\001" - + "\"5/v1/{parent=projects/*/locations/*}/wo" - + "rkflowTemplates:\010templateZ?\"3/v1/{parent" - + "=projects/*/regions/*}/workflowTemplates" - + ":\010template\332A\017parent,template\022\364\001\n\023GetWork" - + "flowTemplate\0224.google.cloud.dataproc.v1." - + "GetWorkflowTemplateRequest\032*.google.clou" - + "d.dataproc.v1.WorkflowTemplate\"{\202\323\344\223\002n\0225" - + "/v1/{name=projects/*/locations/*/workflo" - + "wTemplates/*}Z5\0223/v1/{name=projects/*/re" - + "gions/*/workflowTemplates/*}\332A\004name\022\325\002\n\033" - + "InstantiateWorkflowTemplate\022<.google.clo" - + "ud.dataproc.v1.InstantiateWorkflowTempla" - + "teRequest\032\035.google.longrunning.Operation" - + "\"\330\001\202\323\344\223\002\214\001\"A/v1/{name=projects/*/locatio" - + "ns/*/workflowTemplates/*}:instantiate:\001*" - + "ZD\"?/v1/{name=projects/*/regions/*/workf" - + "lowTemplates/*}:instantiate:\001*\332A\004name\332A\017" - + "name,parameters\312A)\n\025google.protobuf.Empt" - + "y\022\020WorkflowMetadata\022\364\002\n!InstantiateInlin" - + "eWorkflowTemplate\022B.google.cloud.datapro" - + "c.v1.InstantiateInlineWorkflowTemplateRe" - + "quest\032\035.google.longrunning.Operation\"\353\001\202" - + "\323\344\223\002\246\001\"G/v1/{parent=projects/*/locations" - + "/*}/workflowTemplates:instantiateInline:" - + "\010templateZQ\"E/v1/{parent=projects/*/regi" - + "ons/*}/workflowTemplates:instantiateInli" - + "ne:\010template\332A\017parent,template\312A)\n\025googl" - + "e.protobuf.Empty\022\020WorkflowMetadata\022\246\002\n\026U" - + "pdateWorkflowTemplate\0227.google.cloud.dat" - + "aproc.v1.UpdateWorkflowTemplateRequest\032*" - + ".google.cloud.dataproc.v1.WorkflowTempla" - + "te\"\246\001\202\323\344\223\002\224\001\032>/v1/{template.name=project" - + "s/*/locations/*/workflowTemplates/*}:\010te" - + "mplateZH\032 - * A YARN application created by a job. Application information is a subset of - * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>. - * **Beta Feature**: This report is available for testing purposes only. It may - * be changed before final release. - * - * - * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication} - */ -public final class YarnApplication extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.YarnApplication) - YarnApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use YarnApplication.newBuilder() to construct. - private YarnApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private YarnApplication() { - name_ = ""; - state_ = 0; - trackingUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new YarnApplication(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.YarnApplication.class, - com.google.cloud.dataproc.v1.YarnApplication.Builder.class); - } - - /** - * - * - *
-   * The application state, corresponding to
-   * <code>YarnProtos.YarnApplicationStateProto</code>.
-   * 
- * - * Protobuf enum {@code google.cloud.dataproc.v1.YarnApplication.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Status is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * Status is NEW.
-     * 
- * - * NEW = 1; - */ - NEW(1), - /** - * - * - *
-     * Status is NEW_SAVING.
-     * 
- * - * NEW_SAVING = 2; - */ - NEW_SAVING(2), - /** - * - * - *
-     * Status is SUBMITTED.
-     * 
- * - * SUBMITTED = 3; - */ - SUBMITTED(3), - /** - * - * - *
-     * Status is ACCEPTED.
-     * 
- * - * ACCEPTED = 4; - */ - ACCEPTED(4), - /** - * - * - *
-     * Status is RUNNING.
-     * 
- * - * RUNNING = 5; - */ - RUNNING(5), - /** - * - * - *
-     * Status is FINISHED.
-     * 
- * - * FINISHED = 6; - */ - FINISHED(6), - /** - * - * - *
-     * Status is FAILED.
-     * 
- * - * FAILED = 7; - */ - FAILED(7), - /** - * - * - *
-     * Status is KILLED.
-     * 
- * - * KILLED = 8; - */ - KILLED(8), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Status is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Status is NEW.
-     * 
- * - * NEW = 1; - */ - public static final int NEW_VALUE = 1; - /** - * - * - *
-     * Status is NEW_SAVING.
-     * 
- * - * NEW_SAVING = 2; - */ - public static final int NEW_SAVING_VALUE = 2; - /** - * - * - *
-     * Status is SUBMITTED.
-     * 
- * - * SUBMITTED = 3; - */ - public static final int SUBMITTED_VALUE = 3; - /** - * - * - *
-     * Status is ACCEPTED.
-     * 
- * - * ACCEPTED = 4; - */ - public static final int ACCEPTED_VALUE = 4; - /** - * - * - *
-     * Status is RUNNING.
-     * 
- * - * RUNNING = 5; - */ - public static final int RUNNING_VALUE = 5; - /** - * - * - *
-     * Status is FINISHED.
-     * 
- * - * FINISHED = 6; - */ - public static final int FINISHED_VALUE = 6; - /** - * - * - *
-     * Status is FAILED.
-     * 
- * - * FAILED = 7; - */ - public static final int FAILED_VALUE = 7; - /** - * - * - *
-     * Status is KILLED.
-     * 
- * - * KILLED = 8; - */ - public static final int KILLED_VALUE = 8; - - 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 NEW; - case 2: - return NEW_SAVING; - case 3: - return SUBMITTED; - case 4: - return ACCEPTED; - case 5: - return RUNNING; - case 6: - return FINISHED; - case 7: - return FAILED; - case 8: - return KILLED; - 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.dataproc.v1.YarnApplication.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.dataproc.v1.YarnApplication.State) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * - * - *
-   * Required. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Required. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = - com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED - : result; - } - - public static final int PROGRESS_FIELD_NUMBER = 3; - private float progress_; - /** - * - * - *
-   * Required. The numerical progress of the application, from 1 to 100.
-   * 
- * - * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The progress. - */ - @java.lang.Override - public float getProgress() { - return progress_; - } - - public static final int TRACKING_URL_FIELD_NUMBER = 4; - private volatile java.lang.Object trackingUrl_; - /** - * - * - *
-   * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The trackingUrl. - */ - @java.lang.Override - public java.lang.String getTrackingUrl() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trackingUrl_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for trackingUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTrackingUrlBytes() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - trackingUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (state_ - != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, state_); - } - if (java.lang.Float.floatToRawIntBits(progress_) != 0) { - output.writeFloat(3, progress_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, trackingUrl_); - } - getUnknownFields().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 (state_ - != com.google.cloud.dataproc.v1.YarnApplication.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - if (java.lang.Float.floatToRawIntBits(progress_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, progress_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, trackingUrl_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.dataproc.v1.YarnApplication)) { - return super.equals(obj); - } - com.google.cloud.dataproc.v1.YarnApplication other = - (com.google.cloud.dataproc.v1.YarnApplication) obj; - - if (!getName().equals(other.getName())) return false; - if (state_ != other.state_) return false; - if (java.lang.Float.floatToIntBits(getProgress()) - != java.lang.Float.floatToIntBits(other.getProgress())) return false; - if (!getTrackingUrl().equals(other.getTrackingUrl())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getProgress()); - hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; - hash = (53 * hash) + getTrackingUrl().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dataproc.v1.YarnApplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.YarnApplication 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.dataproc.v1.YarnApplication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.YarnApplication 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.dataproc.v1.YarnApplication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dataproc.v1.YarnApplication 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.dataproc.v1.YarnApplication prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.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 YARN application created by a job. Application information is a subset of
-   * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
-   * **Beta Feature**: This report is available for testing purposes only. It may
-   * be changed before final release.
-   * 
- * - * Protobuf type {@code google.cloud.dataproc.v1.YarnApplication} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.YarnApplication) - com.google.cloud.dataproc.v1.YarnApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_YarnApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dataproc.v1.YarnApplication.class, - com.google.cloud.dataproc.v1.YarnApplication.Builder.class); - } - - // Construct using com.google.cloud.dataproc.v1.YarnApplication.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - state_ = 0; - - progress_ = 0F; - - trackingUrl_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dataproc.v1.JobsProto - .internal_static_google_cloud_dataproc_v1_YarnApplication_descriptor; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication getDefaultInstanceForType() { - return com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication build() { - com.google.cloud.dataproc.v1.YarnApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication buildPartial() { - com.google.cloud.dataproc.v1.YarnApplication result = - new com.google.cloud.dataproc.v1.YarnApplication(this); - result.name_ = name_; - result.state_ = state_; - result.progress_ = progress_; - result.trackingUrl_ = trackingUrl_; - 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.dataproc.v1.YarnApplication) { - return mergeFrom((com.google.cloud.dataproc.v1.YarnApplication) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.dataproc.v1.YarnApplication other) { - if (other == com.google.cloud.dataproc.v1.YarnApplication.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.getProgress() != 0F) { - setProgress(other.getProgress()); - } - if (!other.getTrackingUrl().isEmpty()) { - trackingUrl_ = other.trackingUrl_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - - break; - } // case 16 - case 29: - { - progress_ = input.readFloat(); - - break; - } // case 29 - case 34: - { - trackingUrl_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The application name.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Required. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Required. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @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; - } - /** - * - * - *
-     * Required. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.dataproc.v1.YarnApplication.State result = - com.google.cloud.dataproc.v1.YarnApplication.State.valueOf(state_); - return result == null - ? com.google.cloud.dataproc.v1.YarnApplication.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.dataproc.v1.YarnApplication.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The application state.
-     * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private float progress_; - /** - * - * - *
-     * Required. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The progress. - */ - @java.lang.Override - public float getProgress() { - return progress_; - } - /** - * - * - *
-     * Required. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The progress to set. - * @return This builder for chaining. - */ - public Builder setProgress(float value) { - - progress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The numerical progress of the application, from 1 to 100.
-     * 
- * - * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProgress() { - - progress_ = 0F; - onChanged(); - return this; - } - - private java.lang.Object trackingUrl_ = ""; - /** - * - * - *
-     * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The trackingUrl. - */ - public java.lang.String getTrackingUrl() { - java.lang.Object ref = trackingUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - trackingUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for trackingUrl. - */ - public com.google.protobuf.ByteString getTrackingUrlBytes() { - java.lang.Object ref = trackingUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - trackingUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The trackingUrl to set. - * @return This builder for chaining. - */ - public Builder setTrackingUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - trackingUrl_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTrackingUrl() { - - trackingUrl_ = getDefaultInstance().getTrackingUrl(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-     * TimelineServer that provides application-specific information. The URL uses
-     * the internal hostname, and requires a proxy server for resolution and,
-     * possibly, access.
-     * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for trackingUrl to set. - * @return This builder for chaining. - */ - public Builder setTrackingUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - trackingUrl_ = 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.dataproc.v1.YarnApplication) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.YarnApplication) - private static final com.google.cloud.dataproc.v1.YarnApplication DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.YarnApplication(); - } - - public static com.google.cloud.dataproc.v1.YarnApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public YarnApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dataproc.v1.YarnApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java b/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java deleted file mode 100644 index f748c330..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java +++ /dev/null @@ -1,123 +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/dataproc/v1/jobs.proto - -package com.google.cloud.dataproc.v1; - -public interface YarnApplicationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.YarnApplication) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The application name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Required. The application state.
-   * 
- * - * - * .google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The state. - */ - com.google.cloud.dataproc.v1.YarnApplication.State getState(); - - /** - * - * - *
-   * Required. The numerical progress of the application, from 1 to 100.
-   * 
- * - * float progress = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The progress. - */ - float getProgress(); - - /** - * - * - *
-   * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The trackingUrl. - */ - java.lang.String getTrackingUrl(); - /** - * - * - *
-   * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
-   * TimelineServer that provides application-specific information. The URL uses
-   * the internal hostname, and requires a proxy server for resolution and,
-   * possibly, access.
-   * 
- * - * string tracking_url = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for trackingUrl. - */ - com.google.protobuf.ByteString getTrackingUrlBytes(); -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto deleted file mode 100644 index 18b2f7df..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto +++ /dev/null @@ -1,366 +0,0 @@ -// 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.dataproc.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "AutoscalingPoliciesProto"; -option java_package = "com.google.cloud.dataproc.v1"; -option (google.api.resource_definition) = { - type: "dataproc.googleapis.com/Region" - pattern: "projects/{project}/regions/{region}" -}; - -// The API interface for managing autoscaling policies in the -// Dataproc API. -service AutoscalingPolicyService { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Creates new autoscaling policy. - rpc CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest) returns (AutoscalingPolicy) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/autoscalingPolicies" - body: "policy" - additional_bindings { - post: "/v1/{parent=projects/*/regions/*}/autoscalingPolicies" - body: "policy" - } - }; - option (google.api.method_signature) = "parent,policy"; - } - - // Updates (replaces) autoscaling policy. - // - // Disabled check for update_mask, because all updates will be full - // replacements. - rpc UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest) returns (AutoscalingPolicy) { - option (google.api.http) = { - put: "/v1/{policy.name=projects/*/locations/*/autoscalingPolicies/*}" - body: "policy" - additional_bindings { - put: "/v1/{policy.name=projects/*/regions/*/autoscalingPolicies/*}" - body: "policy" - } - }; - option (google.api.method_signature) = "policy"; - } - - // Retrieves autoscaling policy. - rpc GetAutoscalingPolicy(GetAutoscalingPolicyRequest) returns (AutoscalingPolicy) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}" - additional_bindings { - get: "/v1/{name=projects/*/regions/*/autoscalingPolicies/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Lists autoscaling policies in the project. - rpc ListAutoscalingPolicies(ListAutoscalingPoliciesRequest) returns (ListAutoscalingPoliciesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/autoscalingPolicies" - additional_bindings { - get: "/v1/{parent=projects/*/regions/*}/autoscalingPolicies" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes an autoscaling policy. It is an error to delete an autoscaling - // policy that is in use by one or more clusters. - rpc DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/autoscalingPolicies/*}" - additional_bindings { - delete: "/v1/{name=projects/*/regions/*/autoscalingPolicies/*}" - } - }; - option (google.api.method_signature) = "name"; - } -} - -// Describes an autoscaling policy for Dataproc cluster autoscaler. -message AutoscalingPolicy { - option (google.api.resource) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - pattern: "projects/{project}/locations/{location}/autoscalingPolicies/{autoscaling_policy}" - pattern: "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}" - }; - - // Required. The policy id. - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore - // or hyphen. Must consist of between 3 and 50 characters. - // - string id = 1; - - // Output only. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies`, the resource name of the - // policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies`, the resource name of the - // policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Autoscaling algorithm for policy. - oneof algorithm { - BasicAutoscalingAlgorithm basic_algorithm = 3 [(google.api.field_behavior) = REQUIRED]; - } - - // Required. Describes how the autoscaler will operate for primary workers. - InstanceGroupAutoscalingPolicyConfig worker_config = 4 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Describes how the autoscaler will operate for secondary workers. - InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The labels to associate with this autoscaling policy. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with an autoscaling policy. - map labels = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// Basic algorithm for autoscaling. -message BasicAutoscalingAlgorithm { - oneof config { - // Required. YARN autoscaling configuration. - BasicYarnAutoscalingConfig yarn_config = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Optional. Duration between scaling events. A scaling period starts after - // the update operation from the previous event has completed. - // - // Bounds: [2m, 1d]. Default: 2m. - google.protobuf.Duration cooldown_period = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Basic autoscaling configurations for YARN. -message BasicYarnAutoscalingConfig { - // Required. Timeout for YARN graceful decommissioning of Node Managers. - // Specifies the duration to wait for jobs to complete before forcefully - // removing workers (and potentially interrupting jobs). Only applicable to - // downscaling operations. - // - // Bounds: [0s, 1d]. - google.protobuf.Duration graceful_decommission_timeout = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. Fraction of average YARN pending memory in the last cooldown period - // for which to add workers. A scale-up factor of 1.0 will result in scaling - // up so that there is no pending memory remaining after the update (more - // aggressive scaling). A scale-up factor closer to 0 will result in a smaller - // magnitude of scaling up (less aggressive scaling). - // See [How autoscaling - // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information. - // - // Bounds: [0.0, 1.0]. - double scale_up_factor = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Fraction of average YARN pending memory in the last cooldown period - // for which to remove workers. A scale-down factor of 1 will result in - // scaling down so that there is no available memory remaining after the - // update (more aggressive scaling). A scale-down factor of 0 disables - // removing workers, which can be beneficial for autoscaling a single job. - // See [How autoscaling - // works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) - // for more information. - // - // Bounds: [0.0, 1.0]. - double scale_down_factor = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Minimum scale-up threshold as a fraction of total cluster size - // before scaling occurs. For example, in a 20-worker cluster, a threshold of - // 0.1 means the autoscaler must recommend at least a 2-worker scale-up for - // the cluster to scale. A threshold of 0 means the autoscaler will scale up - // on any recommended change. - // - // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_up_min_worker_fraction = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Minimum scale-down threshold as a fraction of total cluster size - // before scaling occurs. For example, in a 20-worker cluster, a threshold of - // 0.1 means the autoscaler must recommend at least a 2 worker scale-down for - // the cluster to scale. A threshold of 0 means the autoscaler will scale down - // on any recommended change. - // - // Bounds: [0.0, 1.0]. Default: 0.0. - double scale_down_min_worker_fraction = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Configuration for the size bounds of an instance group, including its -// proportional size to other groups. -message InstanceGroupAutoscalingPolicyConfig { - // Optional. Minimum number of instances for this group. - // - // Primary workers - Bounds: [2, max_instances]. Default: 2. - // Secondary workers - Bounds: [0, max_instances]. Default: 0. - int32 min_instances = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Maximum number of instances for this group. Required for primary - // workers. Note that by default, clusters will not use secondary workers. - // Required for secondary workers if the minimum secondary instances is set. - // - // Primary workers - Bounds: [min_instances, ). - // Secondary workers - Bounds: [min_instances, ). Default: 0. - int32 max_instances = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Weight for the instance group, which is used to determine the - // fraction of total workers in the cluster from this instance group. - // For example, if primary workers have weight 2, and secondary workers have - // weight 1, the cluster will have approximately 2 primary workers for each - // secondary worker. - // - // The cluster may not reach the specified balance if constrained - // by min/max bounds or other autoscaling settings. For example, if - // `max_instances` for secondary workers is 0, then only primary workers will - // be added. The cluster can also be out of balance when created. - // - // If weight is not set on any instance group, the cluster will default to - // equal weight for all groups: the cluster will attempt to maintain an equal - // number of workers in each group within the configured size bounds for each - // group. If weight is set for one group only, the cluster will default to - // zero weight on the unset group. For example if weight is set only on - // primary workers, the cluster will use primary workers only and no - // secondary workers. - int32 weight = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to create an autoscaling policy. -message CreateAutoscalingPolicyRequest { - // Required. The "resource name" of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.create`, the resource name - // of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.autoscalingPolicies.create`, the resource name - // of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; - - // Required. The autoscaling policy to create. - AutoscalingPolicy policy = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to fetch an autoscaling policy. -message GetAutoscalingPolicyRequest { - // Required. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.get`, the resource name - // of the policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies.get`, the resource name - // of the policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; -} - -// A request to update an autoscaling policy. -message UpdateAutoscalingPolicyRequest { - // Required. The updated autoscaling policy. - AutoscalingPolicy policy = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to delete an autoscaling policy. -// -// Autoscaling policies in use by one or more clusters will not be deleted. -message DeleteAutoscalingPolicyRequest { - // Required. The "resource name" of the autoscaling policy, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.delete`, the resource name - // of the policy has the following format: - // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}` - // - // * For `projects.locations.autoscalingPolicies.delete`, the resource name - // of the policy has the following format: - // `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; -} - -// A request to list autoscaling policies in a project. -message ListAutoscalingPoliciesRequest { - // Required. The "resource name" of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.autoscalingPolicies.list`, the resource name - // of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.autoscalingPolicies.list`, the resource name - // of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/AutoscalingPolicy" - } - ]; - - // Optional. The maximum number of results to return in each response. - // Must be less than or equal to 1000. Defaults to 100. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A response to a request to list autoscaling policies in a project. -message ListAutoscalingPoliciesResponse { - // Output only. Autoscaling policies list. - repeated AutoscalingPolicy policies = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto deleted file mode 100644 index eafb4e35..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/batches.proto +++ /dev/null @@ -1,372 +0,0 @@ -// 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.dataproc.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/dataproc/v1/shared.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "BatchesProto"; -option java_package = "com.google.cloud.dataproc.v1"; - -// The BatchController provides methods to manage batch workloads. -service BatchController { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a batch workload that executes asynchronously. - rpc CreateBatch(CreateBatchRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/batches" - body: "batch" - }; - option (google.api.method_signature) = "parent,batch,batch_id"; - option (google.longrunning.operation_info) = { - response_type: "Batch" - metadata_type: "google.cloud.dataproc.v1.BatchOperationMetadata" - }; - } - - // Gets the batch workload resource representation. - rpc GetBatch(GetBatchRequest) returns (Batch) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/batches/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists batch workloads. - rpc ListBatches(ListBatchesRequest) returns (ListBatchesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/batches" - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes the batch workload resource. If the batch is not in terminal state, - // the delete fails and the response returns `FAILED_PRECONDITION`. - rpc DeleteBatch(DeleteBatchRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/batches/*}" - }; - option (google.api.method_signature) = "name"; - } -} - -// A request to create a batch workload. -message CreateBatchRequest { - // Required. The parent resource where this batch will be created. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/Batch" - } - ]; - - // Required. The batch to create. - Batch batch = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The ID to use for the batch, which will become the final component of - // the batch's resource name. - // - // This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`. - string batch_id = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A unique ID used to identify the request. If the service - // receives two - // [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s - // with the same request_id, the second request is ignored and the - // Operation that corresponds to the first Batch created and stored - // in the backend is returned. - // - // Recommendation: Set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The value must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to get the resource representation for a batch workload. -message GetBatchRequest { - // Required. The name of the batch to retrieve. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/Batch" - } - ]; -} - -// A request to list batch workloads in a project. -message ListBatchesRequest { - // Required. The parent, which owns this collection of batches. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/Batch" - } - ]; - - // Optional. The maximum number of batches to return in each response. - // The service may return fewer than this value. - // The default page size is 20; the maximum page size is 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A page token received from a previous `ListBatches` call. - // Provide this token to retrieve the subsequent page. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A list of batch workloads. -message ListBatchesResponse { - // The batches from the specified collection. - repeated Batch batches = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// A request to delete a batch workload. -message DeleteBatchRequest { - // Required. The name of the batch resource to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/Batch" - } - ]; -} - -// A representation of a batch workload in the service. -message Batch { - option (google.api.resource) = { - type: "dataproc.googleapis.com/Batch" - pattern: "projects/{project}/locations/{location}/batches/{batch}" - }; - - // Historical state information. - message StateHistory { - // Output only. The state of the batch at this point in history. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Details about the state at this point in history. - string state_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when the batch entered the historical state. - google.protobuf.Timestamp state_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The batch state. - enum State { - // The batch state is unknown. - STATE_UNSPECIFIED = 0; - - // The batch is created before running. - PENDING = 1; - - // The batch is running. - RUNNING = 2; - - // The batch is cancelling. - CANCELLING = 3; - - // The batch cancellation was successful. - CANCELLED = 4; - - // The batch completed successfully. - SUCCEEDED = 5; - - // The batch is no longer running due to an error. - FAILED = 6; - } - - // Output only. The resource name of the batch. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A batch UUID (Unique Universal Identifier). The service - // generates this value when it creates the batch. - string uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when the batch was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The application/framework-specific portion of the batch configuration. - oneof batch_config { - // Optional. PySpark batch config. - PySparkBatch pyspark_batch = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Spark batch config. - SparkBatch spark_batch = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. SparkR batch config. - SparkRBatch spark_r_batch = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. SparkSql batch config. - SparkSqlBatch spark_sql_batch = 7 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. Runtime information about batch execution. - RuntimeInfo runtime_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The state of the batch. - State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Batch state details, such as a failure - // description if the state is `FAILED`. - string state_message = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when the batch entered a current state. - google.protobuf.Timestamp state_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The email address of the user who created the batch. - string creator = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels to associate with this batch. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a batch. - map labels = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Runtime configuration for the batch execution. - RuntimeConfig runtime_config = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Environment configuration for the batch execution. - EnvironmentConfig environment_config = 15 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The resource name of the operation associated with this batch. - string operation = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Historical state information for the batch. - repeated StateHistory state_history = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A configuration for running an -// [Apache -// PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) -// batch workload. -message PySparkBatch { - // Required. The HCFS URI of the main Python file to use as the Spark driver. Must - // be a .py file. - string main_python_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the driver. Do not include arguments - // that can be set as batch properties, such as `--conf`, since a collision - // can occur that causes an incorrect batch submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS file URIs of Python files to pass to the PySpark - // framework. Supported file types: `.py`, `.egg`, and `.zip`. - repeated string python_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the classpath of the - // Spark driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A configuration for running an [Apache Spark](http://spark.apache.org/) -// batch workload. -message SparkBatch { - // The specification of the main method to call to drive the Spark - // workload. Specify either the jar file that contains the main class or the - // main class name. To pass both a main jar and a main class in that jar, add - // the jar to `jar_file_uris`, and then specify the main class - // name in `main_class`. - oneof driver { - // Optional. The HCFS URI of the jar file that contains the main class. - string main_jar_file_uri = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The name of the driver main class. The jar file that contains the class - // must be in the classpath or specified in `jar_file_uris`. - string main_class = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. The arguments to pass to the driver. Do not include arguments - // that can be set as batch properties, such as `--conf`, since a collision - // can occur that causes an incorrect batch submission. - repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the classpath of the - // Spark driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A configuration for running an -// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html) -// batch workload. -message SparkRBatch { - // Required. The HCFS URI of the main R file to use as the driver. - // Must be a `.R` or `.r` file. - string main_r_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the Spark driver. Do not include arguments - // that can be set as batch properties, such as `--conf`, since a collision - // can occur that causes an incorrect batch submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. - repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`. - repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A configuration for running -// [Apache Spark SQL](http://spark.apache.org/sql/) queries as a batch workload. -message SparkSqlBatch { - // Required. The HCFS URI of the script that contains Spark SQL queries to execute. - string query_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Mapping of query variable names to values (equivalent to the - // Spark SQL command: `SET name="value";`). - map query_variables = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. - repeated string jar_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto deleted file mode 100644 index 9550278b..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ /dev/null @@ -1,1359 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.dataproc.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/dataproc/v1/shared.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "ClustersProto"; -option java_package = "com.google.cloud.dataproc.v1"; -option (google.api.resource_definition) = { - type: "container.googleapis.com/Cluster" - pattern: "projects/{project}/locations/{location}/clusters/{cluster}" -}; -option (google.api.resource_definition) = { - type: "metastore.googleapis.com/Service" - pattern: "projects/{project}/locations/{location}/services/{service}" -}; - -// The ClusterControllerService provides methods to manage clusters -// of Compute Engine instances. -service ClusterController { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/clusters" - body: "cluster" - }; - option (google.api.method_signature) = "project_id,region,cluster"; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } - - // Updates a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - // The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error - // is returned. - rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - body: "cluster" - }; - option (google.api.method_signature) = "project_id,region,cluster_name,cluster,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } - - // Stops a cluster in a project. - rpc StopCluster(StopClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:stop" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } - - // Starts a cluster in a project. - rpc StartCluster(StartClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:start" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "Cluster" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } - - // Deletes a cluster in a project. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - }; - option (google.api.method_signature) = "project_id,region,cluster_name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } - - // Gets the resource representation for a cluster in a project. - rpc GetCluster(GetClusterRequest) returns (Cluster) { - option (google.api.http) = { - get: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}" - }; - option (google.api.method_signature) = "project_id,region,cluster_name"; - } - - // Lists all regions/{region}/clusters in a project alphabetically. - rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { - option (google.api.http) = { - get: "/v1/projects/{project_id}/regions/{region}/clusters" - }; - option (google.api.method_signature) = "project_id,region"; - option (google.api.method_signature) = "project_id,region,filter"; - } - - // Gets cluster diagnostic information. The returned - // [Operation.metadata][google.longrunning.Operation.metadata] will be - // [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). - // After the operation completes, - // [Operation.response][google.longrunning.Operation.response] - // contains - // [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults). - rpc DiagnoseCluster(DiagnoseClusterRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose" - body: "*" - }; - option (google.api.method_signature) = "project_id,region,cluster_name"; - option (google.longrunning.operation_info) = { - response_type: "DiagnoseClusterResults" - metadata_type: "google.cloud.dataproc.v1.ClusterOperationMetadata" - }; - } -} - -// Describes the identifying information, config, and status of -// a Dataproc cluster -message Cluster { - // Required. The Google Cloud Platform project ID that the cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. Cluster names within a project must be - // unique. Names of deleted clusters can be reused. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The cluster config for a cluster of Compute Engine Instances. - // Note that Dataproc may set default values, and values may change - // when clusters are updated. - ClusterConfig config = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The virtual cluster config, used when creating a Dataproc cluster that - // does not directly control the underlying compute resources, for example, - // when creating a [Dataproc-on-GKE - // cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). - // Note that Dataproc may set default values, and values may change when - // clusters are updated. Exactly one of config or virtualClusterConfig must be - // specified. - VirtualClusterConfig virtual_cluster_config = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The labels to associate with this cluster. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a cluster. - map labels = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Cluster status. - ClusterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The previous cluster status. - repeated ClusterStatus status_history = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A cluster UUID (Unique Universal Identifier). Dataproc - // generates this value when it creates the cluster. - string cluster_uuid = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Contains cluster daemon metrics such as HDFS and YARN stats. - // - // **Beta Feature**: This report is available for testing purposes only. It - // may be changed before final release. - ClusterMetrics metrics = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The cluster config. -message ClusterConfig { - // Optional. A Cloud Storage bucket used to stage job - // dependencies, config files, and job driver console output. - // If you do not specify a staging bucket, Cloud - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's staging bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket (see - // [Dataproc staging and temp - // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to - // a Cloud Storage bucket.** - string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, - // such as Spark and MapReduce history files. - // If you do not specify a temp bucket, - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's temp bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket. The default bucket has - // a TTL of 90 days, but you can use any TTL (or none) if you specify a - // bucket (see - // [Dataproc staging and temp - // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to - // a Cloud Storage bucket.** - string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The shared Compute Engine config settings for - // all instances in a cluster. - GceClusterConfig gce_cluster_config = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // the cluster's master instance. - InstanceGroupConfig master_config = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // the cluster's worker instances. - InstanceGroupConfig worker_config = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine config settings for - // a cluster's secondary worker instances - InstanceGroupConfig secondary_worker_config = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The config settings for cluster software. - SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Commands to execute on each node after config is - // completed. By default, executables are run on master and all worker nodes. - // You can test a node's `role` metadata to run an executable on - // a master or worker node, as shown below using `curl` (you can also use - // `wget`): - // - // ROLE=$(curl -H Metadata-Flavor:Google - // http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) - // if [[ "${ROLE}" == 'Master' ]]; then - // ... master specific actions ... - // else - // ... worker specific actions ... - // fi - repeated NodeInitializationAction initialization_actions = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Encryption settings for the cluster. - EncryptionConfig encryption_config = 15 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Autoscaling config for the policy associated with the cluster. - // Cluster does not autoscale if this field is unset. - AutoscalingConfig autoscaling_config = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Security settings for the cluster. - SecurityConfig security_config = 16 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Lifecycle setting for the cluster. - LifecycleConfig lifecycle_config = 17 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Port/endpoint configuration for this cluster - EndpointConfig endpoint_config = 19 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Metastore configuration. - MetastoreConfig metastore_config = 20 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The config for Dataproc metrics. - DataprocMetricConfig dataproc_metric_config = 23 [(google.api.field_behavior) = OPTIONAL]; -} - -// Dataproc cluster config for a cluster that does not directly control the -// underlying compute resources, such as a [Dataproc-on-GKE -// cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). -message VirtualClusterConfig { - // Optional. A Storage bucket used to stage job - // dependencies, config files, and job driver console output. - // If you do not specify a staging bucket, Cloud - // Dataproc will determine a Cloud Storage location (US, - // ASIA, or EU) for your cluster's staging bucket according to the - // Compute Engine zone where your cluster is deployed, and then create - // and manage this project-level, per-location bucket (see - // [Dataproc staging and temp - // buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). - // **This field requires a Cloud Storage bucket name, not a `gs://...` URI to - // a Cloud Storage bucket.** - string staging_bucket = 1 [(google.api.field_behavior) = OPTIONAL]; - - oneof infrastructure_config { - // Required. The configuration for running the Dataproc cluster on Kubernetes. - KubernetesClusterConfig kubernetes_cluster_config = 6 [(google.api.field_behavior) = REQUIRED]; - } - - // Optional. Configuration of auxiliary services used by this cluster. - AuxiliaryServicesConfig auxiliary_services_config = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// Auxiliary services configuration for a Cluster. -message AuxiliaryServicesConfig { - // Optional. The Hive Metastore configuration for this workload. - MetastoreConfig metastore_config = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Spark History Server configuration for the workload. - SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Endpoint config for this cluster -message EndpointConfig { - // Output only. The map of port descriptions to URLs. Will only be populated - // if enable_http_port_access is true. - map http_ports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. If true, enable http access to specific ports on the cluster - // from external sources. Defaults to false. - bool enable_http_port_access = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Autoscaling Policy config associated with the cluster. -message AutoscalingConfig { - // Optional. The autoscaling policy used by the cluster. - // - // Only resource names including projectid and location (region) are valid. - // Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]` - // * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]` - // - // Note that the policy must be in the same project and Dataproc region. - string policy_uri = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Encryption settings for the cluster. -message EncryptionConfig { - // Optional. The Cloud KMS key name to use for PD disk encryption for all - // instances in the cluster. - string gce_pd_kms_key_name = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Common config settings for resources of Compute Engine cluster -// instances, applicable to all instances in the cluster. -message GceClusterConfig { - // `PrivateIpv6GoogleAccess` controls whether and how Dataproc cluster nodes - // can communicate with Google Services through gRPC over IPv6. - // These values are directly mapped to corresponding values in the - // [Compute Engine Instance - // fields](https://cloud.google.com/compute/docs/reference/rest/v1/instances). - enum PrivateIpv6GoogleAccess { - // If unspecified, Compute Engine default behavior will apply, which - // is the same as [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK]. - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - - // Private access to and from Google Services configuration - // inherited from the subnetwork configuration. This is the - // default Compute Engine behavior. - INHERIT_FROM_SUBNETWORK = 1; - - // Enables outbound private IPv6 access to Google Services from the Dataproc - // cluster. - OUTBOUND = 2; - - // Enables bidirectional private IPv6 access between Google Services and the - // Dataproc cluster. - BIDIRECTIONAL = 3; - } - - // Optional. The zone where the Compute Engine cluster will be located. - // On a create request, it is required in the "global" region. If omitted - // in a non-global Dataproc region, the service will pick a zone in the - // corresponding Compute Engine region. On a get request, zone will - // always be present. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]` - // * `projects/[project_id]/zones/[zone]` - // * `us-central1-f` - string zone_uri = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine network to be used for machine - // communications. Cannot be specified with subnetwork_uri. If neither - // `network_uri` nor `subnetwork_uri` is specified, the "default" network of - // the project is used, if it exists. Cannot be a "Custom Subnet Network" (see - // [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for - // more information). - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` - // * `projects/[project_id]/regions/global/default` - // * `default` - string network_uri = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine subnetwork to be used for machine - // communications. Cannot be specified with network_uri. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` - // * `projects/[project_id]/regions/us-east1/subnetworks/sub0` - // * `sub0` - string subnetwork_uri = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If true, all instances in the cluster will only have internal IP - // addresses. By default, clusters are not restricted to internal IP - // addresses, and will have ephemeral external IP addresses assigned to each - // instance. This `internal_ip_only` restriction can only be enabled for - // subnetwork enabled networks, and all off-cluster dependencies must be - // configured to be accessible without external IP addresses. - bool internal_ip_only = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The type of IPv6 access for a cluster. - PrivateIpv6GoogleAccess private_ipv6_google_access = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The [Dataproc service - // account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) - // (also see [VM Data Plane - // identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) - // used by Dataproc cluster VM instances to access Google Cloud Platform - // services. - // - // If not specified, the - // [Compute Engine default service - // account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) - // is used. - string service_account = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URIs of service account scopes to be included in - // Compute Engine instances. The following base set of scopes is always - // included: - // - // * https://www.googleapis.com/auth/cloud.useraccounts.readonly - // * https://www.googleapis.com/auth/devstorage.read_write - // * https://www.googleapis.com/auth/logging.write - // - // If no scopes are specified, the following defaults are also provided: - // - // * https://www.googleapis.com/auth/bigquery - // * https://www.googleapis.com/auth/bigtable.admin.table - // * https://www.googleapis.com/auth/bigtable.data - // * https://www.googleapis.com/auth/devstorage.full_control - repeated string service_account_scopes = 3 [(google.api.field_behavior) = OPTIONAL]; - - // The Compute Engine tags to add to all instances (see [Tagging - // instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). - repeated string tags = 4; - - // The Compute Engine metadata entries to add to all instances (see - // [Project and instance - // metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). - map metadata = 5; - - // Optional. Reservation Affinity for consuming Zonal reservation. - ReservationAffinity reservation_affinity = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Node Group Affinity for sole-tenant clusters. - NodeGroupAffinity node_group_affinity = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Shielded Instance Config for clusters using [Compute Engine Shielded - // VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm). - ShieldedInstanceConfig shielded_instance_config = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Confidential Instance Config for clusters using [Confidential - // VMs](https://cloud.google.com/compute/confidential-vm/docs). - ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL]; -} - -// Node Group Affinity for clusters using sole-tenant node groups. -message NodeGroupAffinity { - // Required. The URI of a - // sole-tenant [node group - // resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) - // that the cluster will be created on. - // - // A full URL, partial URI, or node group name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1` - // * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1` - // * `node-group-1` - string node_group_uri = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Shielded Instance Config for clusters using [Compute Engine Shielded -// VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm). -message ShieldedInstanceConfig { - // Optional. Defines whether instances have Secure Boot enabled. - bool enable_secure_boot = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Defines whether instances have the vTPM enabled. - bool enable_vtpm = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Defines whether instances have integrity monitoring enabled. - bool enable_integrity_monitoring = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Confidential Instance Config for clusters using [Confidential -// VMs](https://cloud.google.com/compute/confidential-vm/docs) -message ConfidentialInstanceConfig { - // Optional. Defines whether the instance should have confidential compute enabled. - bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// The config settings for Compute Engine resources in -// an instance group, such as a master or worker group. -message InstanceGroupConfig { - // Controls the use of - // [preemptible instances] - // (https://cloud.google.com/compute/docs/instances/preemptible) - // within the group. - enum Preemptibility { - // Preemptibility is unspecified, the system will choose the - // appropriate setting for each instance group. - PREEMPTIBILITY_UNSPECIFIED = 0; - - // Instances are non-preemptible. - // - // This option is allowed for all instance groups and is the only valid - // value for Master and Worker instance groups. - NON_PREEMPTIBLE = 1; - - // Instances are preemptible. - // - // This option is allowed only for secondary worker groups. - PREEMPTIBLE = 2; - } - - // Optional. The number of VM instances in the instance group. - // For [HA - // cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) - // [master_config](#FIELDS.master_config) groups, **must be set to 3**. - // For standard cluster [master_config](#FIELDS.master_config) groups, - // **must be set to 1**. - int32 num_instances = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The list of instance names. Dataproc derives the names - // from `cluster_name`, `num_instances`, and the instance group. - repeated string instance_names = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The Compute Engine image resource used for cluster instances. - // - // The URI can represent an image or image family. - // - // Image examples: - // - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]` - // * `projects/[project_id]/global/images/[image-id]` - // * `image-id` - // - // Image family examples. Dataproc will use the most recent - // image from the family: - // - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]` - // * `projects/[project_id]/global/images/family/[custom-image-family-name]` - // - // If the URI is unspecified, it will be inferred from - // `SoftwareConfig.image_version` or the system default. - string image_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Compute Engine machine type used for cluster instances. - // - // A full URL, partial URI, or short name are valid. Examples: - // - // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` - // * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` - // * `n1-standard-2` - // - // **Auto Zone Exception**: If you are using the Dataproc - // [Auto Zone - // Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the machine type - // resource, for example, `n1-standard-2`. - string machine_type_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Disk option config settings. - DiskConfig disk_config = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Specifies that this instance group contains preemptible - // instances. - bool is_preemptible = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Specifies the preemptibility of the instance group. - // - // The default value for master and worker groups is - // `NON_PREEMPTIBLE`. This default cannot be changed. - // - // The default value for secondary instances is - // `PREEMPTIBLE`. - Preemptibility preemptibility = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The config for Compute Engine Instance Group - // Manager that manages this group. - // This is only used for preemptible instance groups. - ManagedGroupConfig managed_group_config = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The Compute Engine accelerator configuration for these - // instances. - repeated AcceleratorConfig accelerators = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the minimum cpu platform for the Instance Group. - // See [Dataproc -> Minimum CPU - // Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). - string min_cpu_platform = 9 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies the resources used to actively manage an instance group. -message ManagedGroupConfig { - // Output only. The name of the Instance Template used for the Managed - // Instance Group. - string instance_template_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the Instance Group Manager for this group. - string instance_group_manager_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specifies the type and number of accelerator cards attached to the instances -// of an instance. See [GPUs on Compute -// Engine](https://cloud.google.com/compute/docs/gpus/). -message AcceleratorConfig { - // Full URL, partial URI, or short name of the accelerator type resource to - // expose to this instance. See - // [Compute Engine - // AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). - // - // Examples: - // - // * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` - // * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` - // * `nvidia-tesla-k80` - // - // **Auto Zone Exception**: If you are using the Dataproc - // [Auto Zone - // Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) - // feature, you must use the short name of the accelerator type - // resource, for example, `nvidia-tesla-k80`. - string accelerator_type_uri = 1; - - // The number of the accelerator cards of this type exposed to this instance. - int32 accelerator_count = 2; -} - -// Specifies the config of disk options for a group of VM instances. -message DiskConfig { - // Optional. Type of the boot disk (default is "pd-standard"). - // Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), - // "pd-ssd" (Persistent Disk Solid State Drive), - // or "pd-standard" (Persistent Disk Hard Disk Drive). - // See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types). - string boot_disk_type = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Size in GB of the boot disk (default is 500GB). - int32 boot_disk_size_gb = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Number of attached SSDs, from 0 to 4 (default is 0). - // If SSDs are not attached, the boot disk is used to store runtime logs and - // [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. - // If one or more SSDs are attached, this runtime bulk - // data is spread across them, and the boot disk contains only basic - // config and installed binaries. - int32 num_local_ssds = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Interface type of local SSDs (default is "scsi"). - // Valid values: "scsi" (Small Computer System Interface), - // "nvme" (Non-Volatile Memory Express). - // See [local SSD - // performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). - string local_ssd_interface = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies an executable to run on a fully configured node and a -// timeout period for executable completion. -message NodeInitializationAction { - // Required. Cloud Storage URI of executable file. - string executable_file = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Amount of time executable has to complete. Default is - // 10 minutes (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - // - // Cluster creation fails with an explanatory error message (the - // name of the executable that caused the error and the exceeded timeout - // period) if the executable is not completed at end of the timeout period. - google.protobuf.Duration execution_timeout = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// The status of a cluster and its instances. -message ClusterStatus { - // The cluster state. - enum State { - // The cluster state is unknown. - UNKNOWN = 0; - - // The cluster is being created and set up. It is not ready for use. - CREATING = 1; - - // The cluster is currently running and healthy. It is ready for use. - // - // **Note:** The cluster state changes from "creating" to "running" status - // after the master node(s), first two primary worker nodes (and the last - // primary worker node if primary workers > 2) are running. - RUNNING = 2; - - // The cluster encountered an error. It is not ready for use. - ERROR = 3; - - // The cluster has encountered an error while being updated. Jobs can - // be submitted to the cluster, but the cluster cannot be updated. - ERROR_DUE_TO_UPDATE = 9; - - // The cluster is being deleted. It cannot be used. - DELETING = 4; - - // The cluster is being updated. It continues to accept and process jobs. - UPDATING = 5; - - // The cluster is being stopped. It cannot be used. - STOPPING = 6; - - // The cluster is currently stopped. It is not ready for use. - STOPPED = 7; - - // The cluster is being started. It is not ready for use. - STARTING = 8; - } - - // The cluster substate. - enum Substate { - // The cluster substate is unknown. - UNSPECIFIED = 0; - - // The cluster is known to be in an unhealthy state - // (for example, critical daemons are not running or HDFS capacity is - // exhausted). - // - // Applies to RUNNING state. - UNHEALTHY = 1; - - // The agent-reported status is out of date (may occur if - // Dataproc loses communication with Agent). - // - // Applies to RUNNING state. - STALE_STATUS = 2; - } - - // Output only. The cluster's state. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Output only. Details of cluster's state. - string detail = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = OPTIONAL - ]; - - // Output only. Time when this state was entered (see JSON representation of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp state_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional state information that includes - // status reported by the agent. - Substate substate = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Security related configuration, including encryption, Kerberos, etc. -message SecurityConfig { - // Optional. Kerberos related configuration. - KerberosConfig kerberos_config = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Identity related configuration, including service account based - // secure multi-tenancy user mappings. - IdentityConfig identity_config = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies Kerberos related configuration. -message KerberosConfig { - // Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set - // this field to true to enable Kerberos on a cluster. - bool enable_kerberos = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the root - // principal password. - string root_principal_password_uri = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The uri of the KMS key used to encrypt various sensitive - // files. - string kms_key_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of the keystore file used for SSL - // encryption. If not provided, Dataproc will provide a self-signed - // certificate. - string keystore_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of the truststore file used for SSL - // encryption. If not provided, Dataproc will provide a self-signed - // certificate. - string truststore_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided keystore. For the self-signed certificate, - // this password is generated by Dataproc. - string keystore_password_uri = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided key. For the self-signed certificate, this - // password is generated by Dataproc. - string key_password_uri = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // password to the user provided truststore. For the self-signed certificate, - // this password is generated by Dataproc. - string truststore_password_uri = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The remote realm the Dataproc on-cluster KDC will trust, should - // the user enable cross realm trust. - string cross_realm_trust_realm = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The KDC (IP or hostname) for the remote trusted realm in a cross - // realm trust relationship. - string cross_realm_trust_kdc = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The admin server (IP or hostname) for the remote trusted realm in - // a cross realm trust relationship. - string cross_realm_trust_admin_server = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // shared password between the on-cluster Kerberos realm and the remote - // trusted realm, in a cross realm trust relationship. - string cross_realm_trust_shared_password_uri = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud Storage URI of a KMS encrypted file containing the - // master key of the KDC database. - string kdc_db_key_uri = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The lifetime of the ticket granting ticket, in hours. - // If not specified, or user specifies 0, then default value 10 - // will be used. - int32 tgt_lifetime_hours = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The name of the on-cluster Kerberos realm. - // If not specified, the uppercased domain of hostnames will be the realm. - string realm = 15 [(google.api.field_behavior) = OPTIONAL]; -} - -// Identity related configuration, including service account based -// secure multi-tenancy user mappings. -message IdentityConfig { - // Required. Map of user to service account. - map user_service_account_mapping = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Specifies the selection and config of software inside the cluster. -message SoftwareConfig { - // Optional. The version of software inside the cluster. It must be one of the - // supported [Dataproc - // Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), - // such as "1.2" (including a subminor version, such as "1.2.29"), or the - // ["preview" - // version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). - // If unspecified, it defaults to the latest Debian version. - string image_version = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The properties to set on daemon config files. - // - // Property keys are specified in `prefix:property` format, for example - // `core:hadoop.tmp.dir`. The following are supported prefixes - // and their mappings: - // - // * capacity-scheduler: `capacity-scheduler.xml` - // * core: `core-site.xml` - // * distcp: `distcp-default.xml` - // * hdfs: `hdfs-site.xml` - // * hive: `hive-site.xml` - // * mapred: `mapred-site.xml` - // * pig: `pig.properties` - // * spark: `spark-defaults.conf` - // * yarn: `yarn-site.xml` - // - // For more information, see [Cluster - // properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - map properties = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The set of components to activate on the cluster. - repeated Component optional_components = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies the cluster auto-delete schedule configuration. -message LifecycleConfig { - // Optional. The duration to keep the cluster alive while idling (when no jobs - // are running). Passing this threshold will cause the cluster to be - // deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON - // representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration idle_delete_ttl = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Either the exact time the cluster should be deleted at or - // the cluster maximum age. - oneof ttl { - // Optional. The time when cluster will be auto-deleted (see JSON representation of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp auto_delete_time = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The lifetime duration of cluster. The cluster will be - // auto-deleted at the end of this period. Minimum value is 10 minutes; - // maximum value is 14 days (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration auto_delete_ttl = 3 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. The time when cluster became idle (most recent job finished) - // and became eligible for deletion due to idleness (see JSON representation - // of - // [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Timestamp idle_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specifies a Metastore configuration. -message MetastoreConfig { - // Required. Resource name of an existing Dataproc Metastore service. - // - // Example: - // - // * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]` - string dataproc_metastore_service = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "metastore.googleapis.com/Service" - } - ]; -} - - -// Dataproc metric config. -message DataprocMetricConfig { - // A source for the collection of Dataproc OSS metrics (see [available OSS - // metrics] - // (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)). - enum MetricSource { - // Required unspecified metric source. - METRIC_SOURCE_UNSPECIFIED = 0; - - // Default monitoring agent metrics. If this source is enabled, - // Dataproc enables the monitoring agent in Compute Engine, - // and collects default monitoring agent metrics, which are published - // with an `agent.googleapis.com` prefix. - MONITORING_AGENT_DEFAULTS = 1; - - // HDFS metric source. - HDFS = 2; - - // Spark metric source. - SPARK = 3; - - // YARN metric source. - YARN = 4; - - // Spark History Server metric source. - SPARK_HISTORY_SERVER = 5; - - // Hiveserver2 metric source. - HIVESERVER2 = 6; - } - - // A Dataproc OSS metric. - message Metric { - // Required. Default metrics are collected unless `metricOverrides` are - // specified for the metric source (see [Available OSS metrics] - // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) - // for more information). - MetricSource metric_source = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specify one or more [available OSS metrics] - // (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) - // to collect for the metric course (for the `SPARK` metric source, any - // [Spark metric] - // (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be - // specified). - // - // Provide metrics in the following format: - // METRIC_SOURCE:INSTANCE:GROUP:METRIC - // Use camelcase as appropriate. - // - // Examples: - // - // ``` - // yarn:ResourceManager:QueueMetrics:AppsCompleted - // spark:driver:DAGScheduler:job.allJobs - // sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed - // hiveserver2:JVM:Memory:NonHeapMemoryUsage.used - // ``` - // - // Notes: - // - // * Only the specified overridden metrics will be collected for the - // metric source. For example, if one or more `spark:executive` metrics - // are listed as metric overrides, other `SPARK` metrics will not be - // collected. The collection of the default metrics for other OSS metric - // sources is unaffected. For example, if both `SPARK` andd `YARN` metric - // sources are enabled, and overrides are provided for Spark metrics only, - // all default YARN metrics will be collected. - repeated string metric_overrides = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // Required. Metrics sources to enable. - repeated Metric metrics = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Contains cluster daemon metrics, such as HDFS and YARN stats. -// -// **Beta Feature**: This report is available for testing purposes only. It may -// be changed before final release. -message ClusterMetrics { - // The HDFS metrics. - map hdfs_metrics = 1; - - // The YARN metrics. - map yarn_metrics = 2; -} - -// A request to create a cluster. -message CreateClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster to create. - Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique ID used to identify the request. If the server receives two - // [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s - // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend - // is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Failure action when primary worker creation fails. - FailureAction action_on_failed_primary_workers = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to update a cluster. -message UpdateClusterRequest { - // Required. The ID of the Google Cloud Platform project the - // cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The changes to the cluster. - Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Timeout for graceful YARN decomissioning. Graceful - // decommissioning allows removing nodes from the cluster without - // interrupting jobs in progress. Timeout specifies how long to wait for jobs - // in progress to finish before forcefully removing nodes (and potentially - // interrupting jobs). Default timeout is 0 (for forceful decommission), and - // the maximum allowed timeout is 1 day. (see JSON representation of - // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - // - // Only supported on Dataproc image versions 1.2 and higher. - google.protobuf.Duration graceful_decommission_timeout = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Specifies the path, relative to `Cluster`, of - // the field to update. For example, to change the number of workers - // in a cluster to 5, the `update_mask` parameter would be - // specified as `config.worker_config.num_instances`, - // and the `PATCH` request body would specify the new value, as follows: - // - // { - // "config":{ - // "workerConfig":{ - // "numInstances":"5" - // } - // } - // } - // Similarly, to change the number of preemptible workers in a cluster to 5, - // the `update_mask` parameter would be - // `config.secondary_worker_config.num_instances`, and the `PATCH` request - // body would be set as follows: - // - // { - // "config":{ - // "secondaryWorkerConfig":{ - // "numInstances":"5" - // } - // } - // } - // Note: Currently, only the following fields can be updated: - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - //
MaskPurpose
labelsUpdate labels
config.worker_config.num_instancesResize primary worker group
config.secondary_worker_config.num_instancesResize secondary worker group
config.autoscaling_config.policy_uriUse, stop using, or - // change autoscaling policies
- google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique ID used to identify the request. If the server - // receives two - // [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s - // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to stop a cluster. -message StopClusterRequest { - // Required. The ID of the Google Cloud Platform project the - // cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specifying the `cluster_uuid` means the RPC will fail - // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. - string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A unique ID used to identify the request. If the server - // receives two - // [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s - // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. - // - // Recommendation: Set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to start a cluster. -message StartClusterRequest { - // Required. The ID of the Google Cloud Platform project the - // cluster belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specifying the `cluster_uuid` means the RPC will fail - // (with error NOT_FOUND) if a cluster with the specified UUID does not exist. - string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A unique ID used to identify the request. If the server - // receives two - // [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s - // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. - // - // Recommendation: Set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to delete a cluster. -message DeleteClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specifying the `cluster_uuid` means the RPC should fail - // (with error NOT_FOUND) if cluster with specified UUID does not exist. - string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A unique ID used to identify the request. If the server - // receives two - // [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s - // with the same id, then the second request will be ignored and the - // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the - // backend is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request to get the resource representation for a cluster in a project. -message GetClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list the clusters in a project. -message ListClustersRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 4 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A filter constraining the clusters to list. Filters are - // case-sensitive and have the following syntax: - // - // field = value [AND [field = value]] ... - // - // where **field** is one of `status.state`, `clusterName`, or `labels.[KEY]`, - // and `[KEY]` is a label key. **value** can be `*` to match all values. - // `status.state` can be one of the following: `ACTIVE`, `INACTIVE`, - // `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`. `ACTIVE` - // contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE` - // contains the `DELETING` and `ERROR` states. - // `clusterName` is the name of the cluster provided at creation time. - // Only the logical `AND` operator is supported; space-separated items are - // treated as having an implicit `AND` operator. - // - // Example filter: - // - // status.state = ACTIVE AND clusterName = mycluster - // AND labels.env = staging AND labels.starred = * - string filter = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The standard List page size. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The standard List page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The list of all clusters in a project. -message ListClustersResponse { - // Output only. The clusters in the project. - repeated Cluster clusters = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. To fetch additional results, provide this value as the - // `page_token` in a subsequent `ListClustersRequest`. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to collect cluster diagnostic information. -message DiagnoseClusterRequest { - // Required. The ID of the Google Cloud Platform project that the cluster - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster name. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// The location of diagnostic output. -message DiagnoseClusterResults { - // Output only. The Cloud Storage URI of the diagnostic output. - // The output report is a plain text file with a summary of collected - // diagnostics. - string output_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Reservation Affinity for consuming Zonal reservation. -message ReservationAffinity { - // Indicates whether to consume capacity from an reservation or not. - enum Type { - TYPE_UNSPECIFIED = 0; - - // Do not consume from any allocated capacity. - NO_RESERVATION = 1; - - // Consume any reservation available. - ANY_RESERVATION = 2; - - // Must consume from a specific reservation. Must specify key value fields - // for specifying the reservations. - SPECIFIC_RESERVATION = 3; - } - - // Optional. Type of reservation to consume - Type consume_reservation_type = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Corresponds to the label key of reservation resource. - string key = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Corresponds to the label values of reservation resource. - repeated string values = 3 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto deleted file mode 100644 index 823a12cf..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto +++ /dev/null @@ -1,924 +0,0 @@ -// 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.dataproc.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "JobsProto"; -option java_package = "com.google.cloud.dataproc.v1"; - -// The JobController provides methods to manage jobs. -service JobController { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Submits a job to a cluster. - rpc SubmitJob(SubmitJobRequest) returns (Job) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/jobs:submit" - body: "*" - }; - option (google.api.method_signature) = "project_id,region,job"; - } - - // Submits job to a cluster. - rpc SubmitJobAsOperation(SubmitJobRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/jobs:submitAsOperation" - body: "*" - }; - option (google.api.method_signature) = "project_id, region, job"; - option (google.longrunning.operation_info) = { - response_type: "Job" - metadata_type: "JobMetadata" - }; - } - - // Gets the resource representation for a job in a project. - rpc GetJob(GetJobRequest) returns (Job) { - option (google.api.http) = { - get: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}" - }; - option (google.api.method_signature) = "project_id,region,job_id"; - } - - // Lists regions/{region}/jobs in a project. - rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { - option (google.api.http) = { - get: "/v1/projects/{project_id}/regions/{region}/jobs" - }; - option (google.api.method_signature) = "project_id,region"; - option (google.api.method_signature) = "project_id,region,filter"; - } - - // Updates a job in a project. - rpc UpdateJob(UpdateJobRequest) returns (Job) { - option (google.api.http) = { - patch: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}" - body: "job" - }; - } - - // Starts a job cancellation request. To access the job resource - // after cancellation, call - // [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) - // or - // [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get). - rpc CancelJob(CancelJobRequest) returns (Job) { - option (google.api.http) = { - post: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}:cancel" - body: "*" - }; - option (google.api.method_signature) = "project_id,region,job_id"; - } - - // Deletes the job from the project. If the job is active, the delete fails, - // and the response returns `FAILED_PRECONDITION`. - rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/projects/{project_id}/regions/{region}/jobs/{job_id}" - }; - option (google.api.method_signature) = "project_id,region,job_id"; - } -} - -// The runtime logging config of the job. -message LoggingConfig { - // The Log4j level for job execution. When running an - // [Apache Hive](https://hive.apache.org/) job, Cloud - // Dataproc configures the Hive client to an equivalent verbosity level. - enum Level { - // Level is unspecified. Use default level for log4j. - LEVEL_UNSPECIFIED = 0; - - // Use ALL level for log4j. - ALL = 1; - - // Use TRACE level for log4j. - TRACE = 2; - - // Use DEBUG level for log4j. - DEBUG = 3; - - // Use INFO level for log4j. - INFO = 4; - - // Use WARN level for log4j. - WARN = 5; - - // Use ERROR level for log4j. - ERROR = 6; - - // Use FATAL level for log4j. - FATAL = 7; - - // Turn off log4j. - OFF = 8; - } - - // The per-package log levels for the driver. This may include - // "root" package name to configure rootLogger. - // Examples: - // 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG' - map driver_log_levels = 2; -} - -// A Dataproc job for running -// [Apache Hadoop -// MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) -// jobs on [Apache Hadoop -// YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). -message HadoopJob { - // Required. Indicates the location of the driver's main class. Specify - // either the jar file that contains the main class or the main class name. - // To specify both, add the jar file to `jar_file_uris`, and then specify - // the main class name in this property. - oneof driver { - // The HCFS URI of the jar file containing the main class. - // Examples: - // 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' - // 'hdfs:/tmp/test-samples/custom-wordcount.jar' - // 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' - string main_jar_file_uri = 1; - - // The name of the driver's main class. The jar file containing the class - // must be in the default CLASSPATH or specified in `jar_file_uris`. - string main_class = 2; - } - - // Optional. The arguments to pass to the driver. Do not - // include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as - // job properties, since a collision may occur that causes an incorrect job - // submission. - repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Jar file URIs to add to the CLASSPATHs of the - // Hadoop driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied - // to the working directory of Hadoop drivers and distributed tasks. Useful - // for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted in the working directory of - // Hadoop drivers and tasks. Supported file types: - // .jar, .tar, .tar.gz, .tgz, or .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Hadoop. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site and - // classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Spark](http://spark.apache.org/) -// applications on YARN. -message SparkJob { - // Required. The specification of the main method to call to drive the job. - // Specify either the jar file that contains the main class or the main class - // name. To pass both a main jar and a main class in that jar, add the jar to - // `CommonJob.jar_file_uris`, and then specify the main class name in - // `main_class`. - oneof driver { - // The HCFS URI of the jar file that contains the main class. - string main_jar_file_uri = 1; - - // The name of the driver's main class. The jar file that contains the class - // must be in the default CLASSPATH or specified in `jar_file_uris`. - string main_class = 2; - } - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATHs of the - // Spark driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Spark. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running -// [Apache -// PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html) -// applications on YARN. -message PySparkJob { - // Required. The HCFS URI of the main Python file to use as the driver. Must - // be a .py file. - string main_python_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS file URIs of Python files to pass to the PySpark - // framework. Supported file types: .py, .egg, and .zip. - repeated string python_file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATHs of the - // Python driver and tasks. - repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure PySpark. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 8 [(google.api.field_behavior) = OPTIONAL]; -} - -// A list of queries to run on a cluster. -message QueryList { - // Required. The queries to execute. You do not need to end a query expression - // with a semicolon. Multiple queries can be specified in one - // string by separating each with a semicolon. Here is an example of a - // Dataproc API snippet that uses a QueryList to specify a HiveJob: - // - // "hiveJob": { - // "queryList": { - // "queries": [ - // "query1", - // "query2", - // "query3;query4", - // ] - // } - // } - repeated string queries = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A Dataproc job for running [Apache Hive](https://hive.apache.org/) -// queries on YARN. -message HiveJob { - // Required. The sequence of Hive queries to execute, specified as either - // an HCFS file URI or a list of queries. - oneof queries { - // The HCFS URI of the script that contains Hive queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Mapping of query variable names to values (equivalent to the - // Hive command: `SET name="value";`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names and values, used to configure Hive. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, - // /etc/hive/conf/hive-site.xml, and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATH of the - // Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes - // and UDFs. - repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Spark -// SQL](http://spark.apache.org/sql/) queries. -message SparkSqlJob { - // Required. The sequence of Spark SQL queries to execute, specified as - // either an HCFS file URI or as a list of queries. - oneof queries { - // The HCFS URI of the script that contains SQL queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Mapping of query variable names to values (equivalent to the - // Spark SQL command: SET `name="value";`). - map script_variables = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure - // Spark SQL's SparkConf. Properties that conflict with values set by the - // Dataproc API may be overwritten. - map properties = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. - repeated string jar_file_uris = 56 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Apache Pig](https://pig.apache.org/) -// queries on YARN. -message PigJob { - // Required. The sequence of Pig queries to execute, specified as an HCFS - // file URI or a list of queries. - oneof queries { - // The HCFS URI of the script that contains the Pig queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Mapping of query variable names to values (equivalent to the Pig - // command: `name=[value]`). - map script_variables = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure Pig. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, - // /etc/pig/conf/pig.properties, and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of jar files to add to the CLASSPATH of - // the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. - repeated string jar_file_uris = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running -// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html) -// applications on YARN. -message SparkRJob { - // Required. The HCFS URI of the main R file to use as the driver. - // Must be a .R file. - string main_r_file_uri = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The arguments to pass to the driver. Do not include arguments, - // such as `--conf`, that can be set as job properties, since a collision may - // occur that causes an incorrect job submission. - repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of files to be placed in the working directory of - // each executor. Useful for naively parallel tasks. - repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. HCFS URIs of archives to be extracted into the working directory - // of each executor. Supported file types: - // .jar, .tar, .tar.gz, .tgz, and .zip. - repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, used to configure SparkR. - // Properties that conflict with values set by the Dataproc API may be - // overwritten. Can include properties set in - // /etc/spark/conf/spark-defaults.conf and classes in user code. - map properties = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job for running [Presto](https://prestosql.io/) queries. -// **IMPORTANT**: The [Dataproc Presto Optional -// Component](https://cloud.google.com/dataproc/docs/concepts/components/presto) -// must be enabled when the cluster is created to submit a Presto job to the -// cluster. -message PrestoJob { - // Required. The sequence of Presto queries to execute, specified as - // either an HCFS file URI or as a list of queries. - oneof queries { - // The HCFS URI of the script that contains SQL queries. - string query_file_uri = 1; - - // A list of queries. - QueryList query_list = 2; - } - - // Optional. Whether to continue executing queries if a query fails. - // The default value is `false`. Setting to `true` can be useful when - // executing independent parallel queries. - bool continue_on_failure = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The format in which query output will be displayed. See the - // Presto documentation for supported output formats - string output_format = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Presto client tags to attach to this query - repeated string client_tags = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values. Used to set Presto - // [session properties](https://prestodb.io/docs/current/sql/set-session.html) - // Equivalent to using the --session flag in the Presto CLI - map properties = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The runtime log config for job execution. - LoggingConfig logging_config = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// Dataproc job config. -message JobPlacement { - // Required. The name of the cluster where the job will be submitted. - string cluster_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. A cluster UUID generated by the Dataproc service when - // the job is submitted. - string cluster_uuid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Cluster labels to identify a cluster where the job will be submitted. - map cluster_labels = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Dataproc job status. -message JobStatus { - // The job state. - enum State { - // The job state is unknown. - STATE_UNSPECIFIED = 0; - - // The job is pending; it has been submitted, but is not yet running. - PENDING = 1; - - // Job has been received by the service and completed initial setup; - // it will soon be submitted to the cluster. - SETUP_DONE = 8; - - // The job is running on the cluster. - RUNNING = 2; - - // A CancelJob request has been received, but is pending. - CANCEL_PENDING = 3; - - // Transient in-flight resources have been canceled, and the request to - // cancel the running job has been issued to the cluster. - CANCEL_STARTED = 7; - - // The job cancellation was successful. - CANCELLED = 4; - - // The job has completed successfully. - DONE = 5; - - // The job has completed, but encountered an error. - ERROR = 6; - - // Job attempt has failed. The detail field contains failure details for - // this attempt. - // - // Applies to restartable jobs only. - ATTEMPT_FAILURE = 9; - } - - // The job substate. - enum Substate { - // The job substate is unknown. - UNSPECIFIED = 0; - - // The Job is submitted to the agent. - // - // Applies to RUNNING state. - SUBMITTED = 1; - - // The Job has been received and is awaiting execution (it may be waiting - // for a condition to be met). See the "details" field for the reason for - // the delay. - // - // Applies to RUNNING state. - QUEUED = 2; - - // The agent-reported status is out of date, which may be caused by a - // loss of communication between the agent and Dataproc. If the - // agent does not send a timely update, the job will fail. - // - // Applies to RUNNING state. - STALE_STATUS = 3; - } - - // Output only. A state message specifying the overall job state. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Output only. Job state details, such as an error - // description if the state is ERROR. - string details = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = OPTIONAL - ]; - - // Output only. The time when this state was entered. - google.protobuf.Timestamp state_start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional state information, which includes - // status reported by the agent. - Substate substate = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Encapsulates the full scoping used to reference a job. -message JobReference { - // Optional. The ID of the Google Cloud Platform project that the job belongs to. If - // specified, must match the request project ID. - string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The job ID, which must be unique within the project. - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), or hyphens (-). The maximum length is 100 characters. - // - // If not specified by the caller, the job ID will be provided by the server. - string job_id = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A YARN application created by a job. Application information is a subset of -// org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. -// -// **Beta Feature**: This report is available for testing purposes only. It may -// be changed before final release. -message YarnApplication { - // The application state, corresponding to - // YarnProtos.YarnApplicationStateProto. - enum State { - // Status is unspecified. - STATE_UNSPECIFIED = 0; - - // Status is NEW. - NEW = 1; - - // Status is NEW_SAVING. - NEW_SAVING = 2; - - // Status is SUBMITTED. - SUBMITTED = 3; - - // Status is ACCEPTED. - ACCEPTED = 4; - - // Status is RUNNING. - RUNNING = 5; - - // Status is FINISHED. - FINISHED = 6; - - // Status is FAILED. - FAILED = 7; - - // Status is KILLED. - KILLED = 8; - } - - // Required. The application name. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The application state. - State state = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The numerical progress of the application, from 1 to 100. - float progress = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or - // TimelineServer that provides application-specific information. The URL uses - // the internal hostname, and requires a proxy server for resolution and, - // possibly, access. - string tracking_url = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A Dataproc job resource. -message Job { - // Optional. The fully qualified reference to the job, which can be used to - // obtain the equivalent REST path of the job resource. If this property - // is not specified when a job is created, the server generates a - // job_id. - JobReference reference = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Job information, including how, when, and where to - // run the job. - JobPlacement placement = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The application/framework-specific portion of the job. - oneof type_job { - // Optional. Job is a Hadoop job. - HadoopJob hadoop_job = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Spark job. - SparkJob spark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a PySpark job. - PySparkJob pyspark_job = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Hive job. - HiveJob hive_job = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Pig job. - PigJob pig_job = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkR job. - SparkRJob spark_r_job = 21 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkSql job. - SparkSqlJob spark_sql_job = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Presto job. - PrestoJob presto_job = 23 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. The job status. Additional application-specific - // status information may be contained in the type_job - // and yarn_applications fields. - JobStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The previous job status. - repeated JobStatus status_history = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The collection of YARN applications spun up by this job. - // - // **Beta** Feature: This report is available for testing purposes only. It - // may be changed before final release. - repeated YarnApplication yarn_applications = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A URI pointing to the location of the stdout of the job's - // driver program. - string driver_output_resource_uri = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. If present, the location of miscellaneous control files - // which may be used as part of job setup and handling. If not present, - // control files may be placed in the same location as `driver_output_uri`. - string driver_control_files_uri = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels to associate with this job. - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to [RFC - // 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - // associated with a job. - map labels = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job scheduling configuration. - JobScheduling scheduling = 20 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. A UUID that uniquely identifies a job within the project - // over time. This is in contrast to a user-settable reference.job_id that - // may be reused over time. - string job_uuid = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether the job is completed. If the value is `false`, - // the job is still in progress. If `true`, the job is completed, and - // `status.state` field will indicate if it was successful, failed, - // or cancelled. - bool done = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Job scheduling options. -message JobScheduling { - // Optional. Maximum number of times per hour a driver may be restarted as - // a result of driver exiting with non-zero code before job is - // reported failed. - // - // A job may be reported as thrashing if driver exits with non-zero code - // 4 times within 10 minute window. - // - // Maximum value is 10. - // - // **Note:** Currently, this restartable job option is - // not supported in Dataproc - // [workflow - // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. - int32 max_failures_per_hour = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Maximum number of times in total a driver may be restarted as a result of - // driver exiting with non-zero code before job is reported failed. - // Maximum value is 240. - // - // **Note:** Currently, this restartable job option is - // not supported in Dataproc - // [workflow - // template](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) - // jobs. - int32 max_failures_total = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to submit a job. -message SubmitJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job resource. - Job job = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A unique id used to identify the request. If the server - // receives two - // [SubmitJobRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s - // with the same id, then the second request will be ignored and the - // first [Job][google.cloud.dataproc.v1.Job] created and stored in the backend - // is returned. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Job Operation metadata. -message JobMetadata { - // Output only. The job id. - string job_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Most recent job status. - JobStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Operation type. - string operation_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Job submission time. - google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to get the resource representation for a job in a project. -message GetJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list jobs in a project. -message ListJobsRequest { - // A matcher that specifies categories of job states. - enum JobStateMatcher { - // Match all jobs, regardless of state. - ALL = 0; - - // Only match jobs in non-terminal states: PENDING, RUNNING, or - // CANCEL_PENDING. - ACTIVE = 1; - - // Only match jobs in terminal states: CANCELLED, DONE, or ERROR. - NON_ACTIVE = 2; - } - - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 6 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The number of results to return in each response. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, the returned jobs list includes only jobs that were - // submitted to the named cluster. - string cluster_name = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies enumerated categories of jobs to list. - // (default = match ALL jobs). - // - // If `filter` is provided, `jobStateMatcher` will be ignored. - JobStateMatcher job_state_matcher = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A filter constraining the jobs to list. Filters are - // case-sensitive and have the following syntax: - // - // [field = value] AND [field [= value]] ... - // - // where **field** is `status.state` or `labels.[KEY]`, and `[KEY]` is a label - // key. **value** can be `*` to match all values. - // `status.state` can be either `ACTIVE` or `NON_ACTIVE`. - // Only the logical `AND` operator is supported; space-separated items are - // treated as having an implicit `AND` operator. - // - // Example filter: - // - // status.state = ACTIVE AND labels.env = staging AND labels.starred = * - string filter = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to update a job. -message UpdateJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The changes to the job. - Job job = 4 [(google.api.field_behavior) = REQUIRED]; - - // Required. Specifies the path, relative to Job, of - // the field to update. For example, to update the labels of a Job the - // update_mask parameter would be specified as - // labels, and the `PATCH` request body would specify the new - // value. Note: Currently, labels is the only - // field that can be updated. - google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// A list of jobs in a project. -message ListJobsResponse { - // Output only. Jobs list. - repeated Job jobs = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. This token is included in the response if there are more results - // to fetch. To fetch additional results, provide this value as the - // `page_token` in a subsequent ListJobsRequest. - string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to cancel a job. -message CancelJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to delete a job. -message DeleteJobRequest { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Dataproc region in which to handle the request. - string region = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID. - string job_id = 2 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto deleted file mode 100644 index e12bd299..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto +++ /dev/null @@ -1,118 +0,0 @@ -// 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.dataproc.v1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "OperationsProto"; -option java_package = "com.google.cloud.dataproc.v1"; - -// Metadata describing the Batch operation. -message BatchOperationMetadata { - // Operation type for Batch resources - enum BatchOperationType { - // Batch operation type is unknown. - BATCH_OPERATION_TYPE_UNSPECIFIED = 0; - - // Batch operation type. - BATCH = 1; - } - - // Name of the batch for the operation. - string batch = 1; - - // Batch UUID for the operation. - string batch_uuid = 2; - - // The time when the operation was created. - google.protobuf.Timestamp create_time = 3; - - // The time when the operation finished. - google.protobuf.Timestamp done_time = 4; - - // The operation type. - BatchOperationType operation_type = 6; - - // Short description of the operation. - string description = 7; - - // Labels associated with the operation. - map labels = 8; - - // Warnings encountered during operation execution. - repeated string warnings = 9; -} - -// The status of the operation. -message ClusterOperationStatus { - // The operation state. - enum State { - // Unused. - UNKNOWN = 0; - - // The operation has been created. - PENDING = 1; - - // The operation is running. - RUNNING = 2; - - // The operation is done; either cancelled or completed. - DONE = 3; - } - - // Output only. A message containing the operation state. - State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A message containing the detailed operation state. - string inner_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A message containing any operation metadata details. - string details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time this state was entered. - google.protobuf.Timestamp state_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Metadata describing the operation. -message ClusterOperationMetadata { - // Output only. Name of the cluster for the operation. - string cluster_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Cluster UUID for the operation. - string cluster_uuid = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Current operation status. - ClusterOperationStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The previous operation status. - repeated ClusterOperationStatus status_history = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The operation type. - string operation_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Short description of operation. - string description = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Labels associated with the operation - map labels = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Errors encountered during operation execution. - repeated string warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto deleted file mode 100644 index 18796915..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.dataproc.v1; - -import "google/api/field_behavior.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "SharedProto"; -option java_package = "com.google.cloud.dataproc.v1"; - -// Runtime configuration for a workload. -message RuntimeConfig { - // Optional. Version of the batch runtime. - string version = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional custom container image for the job runtime environment. If - // not specified, a default container image will be used. - string container_image = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A mapping of property names to values, which are used to configure workload - // execution. - map properties = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Environment configuration for a workload. -message EnvironmentConfig { - // Optional. Execution configuration for a workload. - ExecutionConfig execution_config = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Peripherals configuration that workload has access to. - PeripheralsConfig peripherals_config = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Execution configuration for a workload. -message ExecutionConfig { - // Optional. Service account that used to execute workload. - string service_account = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Network configuration for workload execution. - oneof network { - // Optional. Network URI to connect workload to. - string network_uri = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Subnetwork URI to connect workload to. - string subnetwork_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. Tags used for network traffic control. - repeated string network_tags = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The Cloud KMS key to use for encryption. - string kms_key = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// Spark History Server configuration for the workload. -message SparkHistoryServerConfig { - // Optional. Resource name of an existing Dataproc Cluster to act as a Spark History - // Server for the workload. - // - // Example: - // - // * `projects/[project_id]/regions/[region]/clusters/[cluster_name]` - string dataproc_cluster = 1 [ - (google.api.field_behavior) = OPTIONAL - ]; -} - -// Auxiliary services configuration for a workload. -message PeripheralsConfig { - // Optional. Resource name of an existing Dataproc Metastore service. - // - // Example: - // - // * `projects/[project_id]/locations/[region]/services/[service_id]` - string metastore_service = 1 [ - (google.api.field_behavior) = OPTIONAL - ]; - - // Optional. The Spark History Server configuration for the workload. - SparkHistoryServerConfig spark_history_server_config = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Runtime information about workload execution. -message RuntimeInfo { - // Output only. Map of remote access endpoints (such as web interfaces and APIs) to their - // URIs. - map endpoints = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A URI pointing to the location of the stdout and stderr of the workload. - string output_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A URI pointing to the location of the diagnostics tarball. - string diagnostic_output_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The cluster's GKE config. -message GkeClusterConfig { - // Optional. A target GKE cluster to deploy to. It must be in the same project and - // region as the Dataproc cluster (the GKE cluster can be zonal or regional). - // Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}' - string gke_cluster_target = 2 [ - (google.api.field_behavior) = OPTIONAL - ]; - - // Optional. GKE NodePools where workloads will be scheduled. At least one node pool - // must be assigned the 'default' role. Each role can be given to only a - // single NodePoolTarget. All NodePools must have the same location settings. - // If a nodePoolTarget is not specified, Dataproc constructs a default - // nodePoolTarget. - repeated GkeNodePoolTarget node_pool_target = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The configuration for running the Dataproc cluster on Kubernetes. -message KubernetesClusterConfig { - // Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace - // does not exist, it is created. If it exists, Dataproc - // verifies that another Dataproc VirtualCluster is not installed - // into it. If not specified, the name of the Dataproc Cluster is used. - string kubernetes_namespace = 1 [(google.api.field_behavior) = OPTIONAL]; - - oneof config { - // Required. The configuration for running the Dataproc cluster on GKE. - GkeClusterConfig gke_cluster_config = 2 [(google.api.field_behavior) = REQUIRED]; - } - - // Optional. The software configuration for this Dataproc cluster running on Kubernetes. - KubernetesSoftwareConfig kubernetes_software_config = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The software configuration for this Dataproc cluster running on Kubernetes. -message KubernetesSoftwareConfig { - // The components that should be installed in this Dataproc cluster. The key - // must be a string from the KubernetesComponent enumeration. The value is - // the version of the software to be installed. - // At least one entry must be specified. - map component_version = 1; - - // The properties to set on daemon config files. - // - // Property keys are specified in `prefix:property` format, for example - // `spark:spark.kubernetes.container.image`. The following are supported - // prefixes and their mappings: - // - // * spark: `spark-defaults.conf` - // - // For more information, see [Cluster - // properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - map properties = 2; -} - -// GKE NodePools that Dataproc workloads run on. -message GkeNodePoolTarget { - // `Role` specifies whose tasks will run on the NodePool. The roles can be - // specific to workloads. Exactly one GkeNodePoolTarget within the - // VirtualCluster must have 'default' role, which is used to run all workloads - // that are not associated with a NodePool. - enum Role { - // Role is unspecified. - ROLE_UNSPECIFIED = 0; - - // Any roles that are not directly assigned to a NodePool run on the - // `default` role's NodePool. - DEFAULT = 1; - - // Run controllers and webhooks. - CONTROLLER = 2; - - // Run spark driver. - SPARK_DRIVER = 3; - - // Run spark executors. - SPARK_EXECUTOR = 4; - } - - // Required. The target GKE NodePool. - // Format: - // 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}' - string node_pool = 1 [ - (google.api.field_behavior) = REQUIRED - ]; - - // Required. The types of role for a GKE NodePool - repeated Role roles = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The configuration for the GKE NodePool. - // - // If specified, Dataproc attempts to create a NodePool with the - // specified shape. If one with the same name already exists, it is - // verified against all specified fields. If a field differs, the - // virtual cluster creation will fail. - // - // If omitted, any NodePool with the specified name is used. If a - // NodePool with the specified name does not exist, Dataproc create a NodePool - // with default values. - GkeNodePoolConfig node_pool_config = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// The configuration of a GKE NodePool used by a [Dataproc-on-GKE -// cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster). -message GkeNodePoolConfig { - // Parameters that describe cluster nodes. - message GkeNodeConfig { - // Optional. The name of a Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types). - string machine_type = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether the nodes are created as [preemptible VM - // instances](https://cloud.google.com/compute/docs/instances/preemptible). - bool preemptible = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The number of local SSD disks to attach to the node, which is limited by - // the maximum number of disks allowable per zone (see [Adding Local - // SSDs](https://cloud.google.com/compute/docs/disks/local-ssd)). - int32 local_ssd_count = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A list of [hardware - // accelerators](https://cloud.google.com/compute/docs/gpus) to attach to - // each node. - repeated GkeNodePoolAcceleratorConfig accelerators = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. [Minimum CPU - // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - // to be used by this instance. The instance may be scheduled on the - // specified or a newer CPU platform. Specify the friendly names of CPU - // platforms, such as "Intel Haswell"` or Intel Sandy Bridge". - string min_cpu_platform = 13 [(google.api.field_behavior) = OPTIONAL]; - } - - // A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request - // for a NodePool. - message GkeNodePoolAcceleratorConfig { - // The number of accelerator cards exposed to an instance. - int64 accelerator_count = 1; - - // The accelerator type resource namename (see GPUs on Compute Engine). - string accelerator_type = 2; - } - - // GkeNodePoolAutoscaling contains information the cluster autoscaler needs to - // adjust the size of the node pool to the current cluster usage. - message GkeNodePoolAutoscalingConfig { - // The minimum number of nodes in the NodePool. Must be >= 0 and <= - // max_node_count. - int32 min_node_count = 2; - - // The maximum number of nodes in the NodePool. Must be >= min_node_count. - // **Note:** Quota must be sufficient to scale up the cluster. - int32 max_node_count = 3; - } - - // Optional. The node pool configuration. - GkeNodeConfig config = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The list of Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) where - // NodePool's nodes will be located. - // - // **Note:** Currently, only one zone may be specified. - // - // If a location is not specified during NodePool creation, Dataproc will - // choose a location. - repeated string locations = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled - // only when a valid configuration is present. - GkeNodePoolAutoscalingConfig autoscaling = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Cluster components that can be activated. -enum Component { - // Unspecified component. Specifying this will cause Cluster creation to fail. - COMPONENT_UNSPECIFIED = 0; - - // The Anaconda python distribution. The Anaconda component is not supported - // in the Dataproc - // 2.0 - // image. The 2.0 image is pre-installed with Miniconda. - ANACONDA = 5; - - // Docker - DOCKER = 13; - - // The Druid query engine. (alpha) - DRUID = 9; - - // Flink - FLINK = 14; - - // HBase. (beta) - HBASE = 11; - - // The Hive Web HCatalog (the REST service for accessing HCatalog). - HIVE_WEBHCAT = 3; - - // The Jupyter Notebook. - JUPYTER = 1; - - // The Presto query engine. - PRESTO = 6; - - // The Ranger service. - RANGER = 12; - - // The Solr service. - SOLR = 10; - - // The Zeppelin notebook. - ZEPPELIN = 4; - - // The Zookeeper service. - ZOOKEEPER = 8; -} - -// Actions in response to failure of a resource associated with a cluster. -enum FailureAction { - // When FailureAction is unspecified, failure action defaults to NO_ACTION. - FAILURE_ACTION_UNSPECIFIED = 0; - - // Take no action on failure to create a cluster resource. NO_ACTION is the - // default. - NO_ACTION = 1; - - // Delete the failed cluster resource. - DELETE = 2; -} diff --git a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto b/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto deleted file mode 100644 index 416ba26d..00000000 --- a/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto +++ /dev/null @@ -1,807 +0,0 @@ -// 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.dataproc.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/dataproc/v1/clusters.proto"; -import "google/cloud/dataproc/v1/jobs.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc"; -option java_multiple_files = true; -option java_outer_classname = "WorkflowTemplatesProto"; -option java_package = "com.google.cloud.dataproc.v1"; - -// The API interface for managing Workflow Templates in the -// Dataproc API. -service WorkflowTemplateService { - option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/workflowTemplates" - body: "template" - additional_bindings { - post: "/v1/{parent=projects/*/regions/*}/workflowTemplates" - body: "template" - } - }; - option (google.api.method_signature) = "parent,template"; - } - - // Retrieves the latest workflow template. - // - // Can retrieve previously instantiated template by specifying optional - // version parameter. - rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" - additional_bindings { - get: "/v1/{name=projects/*/regions/*/workflowTemplates/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Instantiates a template and begins execution. - // - // The returned Operation can be used to track execution of - // workflow by polling - // [operations.get][google.longrunning.Operations.GetOperation]. - // The Operation will complete when entire workflow is finished. - // - // The running workflow can be aborted via - // [operations.cancel][google.longrunning.Operations.CancelOperation]. - // This will cause any inflight jobs to be cancelled and workflow-owned - // clusters to be deleted. - // - // The [Operation.metadata][google.longrunning.Operation.metadata] will be - // [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - // Also see [Using - // WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - // - // On successful completion, - // [Operation.response][google.longrunning.Operation.response] will be - // [Empty][google.protobuf.Empty]. - rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/workflowTemplates/*}:instantiate" - body: "*" - additional_bindings { - post: "/v1/{name=projects/*/regions/*/workflowTemplates/*}:instantiate" - body: "*" - } - }; - option (google.api.method_signature) = "name"; - option (google.api.method_signature) = "name,parameters"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "WorkflowMetadata" - }; - } - - // Instantiates a template and begins execution. - // - // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], - // [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. - // - // The returned Operation can be used to track execution of - // workflow by polling - // [operations.get][google.longrunning.Operations.GetOperation]. - // The Operation will complete when entire workflow is finished. - // - // The running workflow can be aborted via - // [operations.cancel][google.longrunning.Operations.CancelOperation]. - // This will cause any inflight jobs to be cancelled and workflow-owned - // clusters to be deleted. - // - // The [Operation.metadata][google.longrunning.Operation.metadata] will be - // [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). - // Also see [Using - // WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). - // - // On successful completion, - // [Operation.response][google.longrunning.Operation.response] will be - // [Empty][google.protobuf.Empty]. - rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" - body: "template" - additional_bindings { - post: "/v1/{parent=projects/*/regions/*}/workflowTemplates:instantiateInline" - body: "template" - } - }; - option (google.api.method_signature) = "parent,template"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "WorkflowMetadata" - }; - } - - // Updates (replaces) workflow template. The updated template - // must contain version that matches the current server version. - rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) { - option (google.api.http) = { - put: "/v1/{template.name=projects/*/locations/*/workflowTemplates/*}" - body: "template" - additional_bindings { - put: "/v1/{template.name=projects/*/regions/*/workflowTemplates/*}" - body: "template" - } - }; - option (google.api.method_signature) = "template"; - } - - // Lists workflows that match the specified filter in the request. - rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/workflowTemplates" - additional_bindings { - get: "/v1/{parent=projects/*/regions/*}/workflowTemplates" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes a workflow template. It does not cancel in-progress workflows. - rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/workflowTemplates/*}" - additional_bindings { - delete: "/v1/{name=projects/*/regions/*/workflowTemplates/*}" - } - }; - option (google.api.method_signature) = "name"; - } -} - -// A Dataproc workflow template resource. -message WorkflowTemplate { - option (google.api.resource) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - pattern: "projects/{project}/regions/{region}/workflowTemplates/{workflow_template}" - pattern: "projects/{project}/locations/{location}/workflowTemplates/{workflow_template}" - history: ORIGINALLY_SINGLE_PATTERN - }; - - string id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Used to perform a consistent read-modify-write. - // - // This field should be left blank for a `CreateWorkflowTemplate` request. It - // is required for an `UpdateWorkflowTemplate` request, and must match the - // current server version. A typical update template flow would fetch the - // current template with a `GetWorkflowTemplate` request, which will return - // the current template with the `version` field filled in with the - // current server version. The user updates other fields in the template, - // then returns it as part of the `UpdateWorkflowTemplate` request. - int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels to associate with this template. These labels - // will be propagated to all jobs and clusters created by the workflow - // instance. - // - // Label **keys** must contain 1 to 63 characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // - // Label **values** may be empty, but, if present, must contain 1 to 63 - // characters, and must conform to - // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). - // - // No more than 32 labels can be associated with a template. - map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Required. WorkflowTemplate scheduling information. - WorkflowTemplatePlacement placement = 7 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Directed Acyclic Graph of Jobs to submit. - repeated OrderedJob jobs = 8 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Template parameters whose values are substituted into the - // template. Values for parameters must be provided when the template is - // instantiated. - repeated TemplateParameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Timeout duration for the DAG of jobs, expressed in seconds (see - // [JSON representation of - // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - // The timeout duration must be from 10 minutes ("600s") to 24 hours - // ("86400s"). The timer begins when the first job is submitted. If the - // workflow is running at the end of the timeout period, any remaining jobs - // are cancelled, the workflow is ended, and if the workflow was running on a - // [managed - // cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), - // the cluster is deleted. - google.protobuf.Duration dag_timeout = 10 [(google.api.field_behavior) = OPTIONAL]; -} - -// Specifies workflow execution target. -// -// Either `managed_cluster` or `cluster_selector` is required. -message WorkflowTemplatePlacement { - // Required. Specifies where workflow executes; either on a managed - // cluster or an existing cluster chosen by labels. - oneof placement { - // A cluster that is managed by the workflow. - ManagedCluster managed_cluster = 1; - - // Optional. A selector that chooses target cluster for jobs based - // on metadata. - // - // The selector is evaluated at the time each job is submitted. - ClusterSelector cluster_selector = 2; - } -} - -// Cluster that is managed by the workflow. -message ManagedCluster { - // Required. The cluster name prefix. A unique cluster name will be formed by - // appending a random suffix. - // - // The name must contain only lower-case letters (a-z), numbers (0-9), - // and hyphens (-). Must begin with a letter. Cannot begin or end with - // hyphen. Must consist of between 2 and 35 characters. - string cluster_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The cluster configuration. - ClusterConfig config = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The labels to associate with this cluster. - // - // Label keys must be between 1 and 63 characters long, and must conform to - // the following PCRE regular expression: - // [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - // - // Label values must be between 1 and 63 characters long, and must conform to - // the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - // - // No more than 32 labels can be associated with a given cluster. - map labels = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A selector that chooses target cluster for jobs based on metadata. -message ClusterSelector { - // Optional. The zone where workflow process executes. This parameter does not - // affect the selection of the cluster. - // - // If unspecified, the zone of the first cluster matching the selector - // is used. - string zone = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The cluster labels. Cluster must have all labels - // to match. - map cluster_labels = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A job executed by the workflow. -message OrderedJob { - // Required. The step id. The id must be unique among all jobs - // within the template. - // - // The step id is used as prefix for job id, as job - // `goog-dataproc-workflow-step-id` label, and in - // [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids] field from other - // steps. - // - // The id must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). Cannot begin or end with underscore - // or hyphen. Must consist of between 3 and 50 characters. - string step_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job definition. - oneof job_type { - // Optional. Job is a Hadoop job. - HadoopJob hadoop_job = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Spark job. - SparkJob spark_job = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a PySpark job. - PySparkJob pyspark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Hive job. - HiveJob hive_job = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Pig job. - PigJob pig_job = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkR job. - SparkRJob spark_r_job = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a SparkSql job. - SparkSqlJob spark_sql_job = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job is a Presto job. - PrestoJob presto_job = 12 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. The labels to associate with this job. - // - // Label keys must be between 1 and 63 characters long, and must conform to - // the following regular expression: - // [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - // - // Label values must be between 1 and 63 characters long, and must conform to - // the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - // - // No more than 32 labels can be associated with a given job. - map labels = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Job scheduling configuration. - JobScheduling scheduling = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The optional list of prerequisite job step_ids. - // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 [(google.api.field_behavior) = OPTIONAL]; -} - -// A configurable parameter that replaces one or more fields in the template. -// Parameterizable fields: -// - Labels -// - File uris -// - Job properties -// - Job arguments -// - Script variables -// - Main class (in HadoopJob and SparkJob) -// - Zone (in ClusterSelector) -message TemplateParameter { - // Required. Parameter name. - // The parameter name is used as the key, and paired with the - // parameter value, which are passed to the template when the template - // is instantiated. - // The name must contain only capital letters (A-Z), numbers (0-9), and - // underscores (_), and must not start with a number. The maximum length is - // 40 characters. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Paths to all fields that the parameter replaces. - // A field is allowed to appear in at most one parameter's list of field - // paths. - // - // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask]. - // For example, a field path that references the zone field of a workflow - // template's cluster selector would be specified as - // `placement.clusterSelector.zone`. - // - // Also, field paths can reference fields using the following syntax: - // - // * Values in maps can be referenced by key: - // * labels['key'] - // * placement.clusterSelector.clusterLabels['key'] - // * placement.managedCluster.labels['key'] - // * placement.clusterSelector.clusterLabels['key'] - // * jobs['step-id'].labels['key'] - // - // * Jobs in the jobs list can be referenced by step-id: - // * jobs['step-id'].hadoopJob.mainJarFileUri - // * jobs['step-id'].hiveJob.queryFileUri - // * jobs['step-id'].pySparkJob.mainPythonFileUri - // * jobs['step-id'].hadoopJob.jarFileUris[0] - // * jobs['step-id'].hadoopJob.archiveUris[0] - // * jobs['step-id'].hadoopJob.fileUris[0] - // * jobs['step-id'].pySparkJob.pythonFileUris[0] - // - // * Items in repeated fields can be referenced by a zero-based index: - // * jobs['step-id'].sparkJob.args[0] - // - // * Other examples: - // * jobs['step-id'].hadoopJob.properties['key'] - // * jobs['step-id'].hadoopJob.args[0] - // * jobs['step-id'].hiveJob.scriptVariables['key'] - // * jobs['step-id'].hadoopJob.mainJarFileUri - // * placement.clusterSelector.zone - // - // It may not be possible to parameterize maps and repeated fields in their - // entirety since only individual map values and individual items in repeated - // fields can be referenced. For example, the following field paths are - // invalid: - // - // - placement.clusterSelector.clusterLabels - // - jobs['step-id'].sparkJob.args - repeated string fields = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Brief description of the parameter. - // Must not exceed 1024 characters. - string description = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Validation rules to be applied to this parameter's value. - ParameterValidation validation = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Configuration for parameter validation. -message ParameterValidation { - // Required. The type of validation to be performed. - oneof validation_type { - // Validation based on regular expressions. - RegexValidation regex = 1; - - // Validation based on a list of allowed values. - ValueValidation values = 2; - } -} - -// Validation based on regular expressions. -message RegexValidation { - // Required. RE2 regular expressions used to validate the parameter's value. - // The value must match the regex in its entirety (substring - // matches are not sufficient). - repeated string regexes = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Validation based on a list of allowed values. -message ValueValidation { - // Required. List of allowed values for the parameter. - repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A Dataproc workflow template resource. -message WorkflowMetadata { - // The operation state. - enum State { - // Unused. - UNKNOWN = 0; - - // The operation has been created. - PENDING = 1; - - // The operation is running. - RUNNING = 2; - - // The operation is done; either cancelled or completed. - DONE = 3; - } - - // Output only. The resource name of the workflow template as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string template = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The version of template at the time of - // workflow instantiation. - int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The workflow graph. - WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The workflow state. - State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the target cluster. - string cluster_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Map from parameter names to values that were used for those parameters. - map parameters = 8; - - // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The UUID of target cluster. - string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The timeout duration for the DAG of jobs, expressed in seconds (see - // [JSON representation of - // duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). - google.protobuf.Duration dag_timeout = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG start time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG - // begins. - google.protobuf.Timestamp dag_start_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. DAG end time, only set for workflows with [dag_timeout][google.cloud.dataproc.v1.WorkflowMetadata.dag_timeout] when DAG ends. - google.protobuf.Timestamp dag_end_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The cluster operation triggered by a workflow. -message ClusterOperation { - // Output only. The id of the cluster operation. - string operation_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Error, if operation failed. - string error = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates the operation is done. - bool done = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The workflow graph. -message WorkflowGraph { - // Output only. The workflow nodes. - repeated WorkflowNode nodes = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The workflow node. -message WorkflowNode { - // The workflow node state. - enum NodeState { - // State is unspecified. - NODE_STATE_UNSPECIFIED = 0; - - // The node is awaiting prerequisite node to finish. - BLOCKED = 1; - - // The node is runnable but not running. - RUNNABLE = 2; - - // The node is running. - RUNNING = 3; - - // The node completed successfully. - COMPLETED = 4; - - // The node failed. A node can be marked FAILED because - // its ancestor or peer failed. - FAILED = 5; - } - - // Output only. The name of the node. - string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The job id; populated after the node enters RUNNING state. - string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The node state. - NodeState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The error detail. - string error = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to create a workflow template. -message CreateWorkflowTemplateRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.create`, the resource name of the - // region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.create`, the resource name of - // the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Required. The Dataproc workflow template to create. - WorkflowTemplate template = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to fetch a workflow template. -message GetWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.get`, the resource name of the - // template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.get`, the resource name of the - // template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to retrieve. Only previously - // instantiated versions can be retrieved. - // - // If unspecified, retrieves the current version. - int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to instantiate a workflow template. -message InstantiateWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to instantiate. If specified, - // the workflow will be instantiated only if the current version of - // the workflow template has the supplied version. - // - // This option cannot be used to instantiate a previous version of - // workflow template. - int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of - // concurrent instances started due to retries. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The tag must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Map from parameter names to values that should be used for those - // parameters. Values may not exceed 1000 characters. - map parameters = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to instantiate an inline workflow template. -message InstantiateInlineWorkflowTemplateRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates,instantiateinline`, the resource - // name of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.instantiateinline`, the - // resource name of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Required. The workflow template to instantiate. - WorkflowTemplate template = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A tag that prevents multiple concurrent workflow - // instances with the same tag from running. This mitigates risk of - // concurrent instances started due to retries. - // - // It is recommended to always set this value to a - // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). - // - // The tag must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and hyphens (-). The maximum length is 40 characters. - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to update a workflow template. -message UpdateWorkflowTemplateRequest { - // Required. The updated workflow template. - // - // The `template.version` field must match the current version. - WorkflowTemplate template = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to list workflow templates in a project. -message ListWorkflowTemplatesRequest { - // Required. The resource name of the region or location, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates,list`, the resource - // name of the region has the following format: - // `projects/{project_id}/regions/{region}` - // - // * For `projects.locations.workflowTemplates.list`, the - // resource name of the location has the following format: - // `projects/{project_id}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The maximum number of results to return in each response. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The page token, returned by a previous call, to request the - // next page of results. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// A response to a request to list workflow templates in a project. -message ListWorkflowTemplatesResponse { - // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This token is included in the response if there are more - // results to fetch. To fetch additional results, provide this value as the - // page_token in a subsequent ListWorkflowTemplatesRequest. - string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A request to delete a workflow template. -// -// Currently started workflows will remain running. -message DeleteWorkflowTemplateRequest { - // Required. The resource name of the workflow template, as described - // in https://cloud.google.com/apis/design/resource_names. - // - // * For `projects.regions.workflowTemplates.delete`, the resource name - // of the template has the following format: - // `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` - // - // * For `projects.locations.workflowTemplates.instantiate`, the resource name - // of the template has the following format: - // `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataproc.googleapis.com/WorkflowTemplate" - } - ]; - - // Optional. The version of workflow template to delete. If specified, - // will only delete the template if the current server version matches - // specified version. - int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 57506260..00000000 --- a/renovate.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "enabled": false, - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [".kokoro/requirements.txt"], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-dataproc", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], - "semanticCommitType": "chore", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "dependencyDashboard": true -} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml deleted file mode 100644 index 56c289ea..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - 4.0.0 - com.google.cloud - dataproc-install-without-bom - jar - Google Dataproc Install Without Bom - https://github.com/googleapis/java-dataproc - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.cloud - google-cloud-dataproc - 4.0.8 - - - - com.google.cloud - google-cloud-storage - 2.13.0 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index ff6b4dfb..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-dataproc-samples - 0.0.1-SNAPSHOT - pom - Google Dataproc Samples Parent - https://github.com/googleapis/java-dataproc - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - install-without-bom - snapshot - snippets - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index 8c897a19..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - 4.0.0 - com.google.cloud - dataproc-snapshot - jar - Google Dataproc Snapshot Samples - https://github.com/googleapis/java-dataproc - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-dataproc - 4.0.9-SNAPSHOT - - - - com.google.cloud - google-cloud-storage - 2.13.0 - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 6dba06e5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; -import com.google.cloud.dataproc.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e9a19dd5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider1_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newBuilder() - .setTransportChannelProvider( - AutoscalingPolicyServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index af255984..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_create_setendpoint_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; -import com.google.cloud.dataproc.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings); - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java deleted file mode 100644 index 49243ea2..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/AsyncCreateAutoscalingPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class AsyncCreateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - asyncCreateAutoscalingPolicy(); - } - - public static void asyncCreateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicy(AutoscalingPolicy.newBuilder().build()) - .build(); - ApiFuture future = - autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request); - // Do something. - AutoscalingPolicy response = future.get(); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java deleted file mode 100644 index efb75168..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicy(); - } - - public static void syncCreateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - CreateAutoscalingPolicyRequest request = - CreateAutoscalingPolicyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicy(AutoscalingPolicy.newBuilder().build()) - .build(); - AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(request); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java deleted file mode 100644 index 8892b60e..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateAutoscalingPolicyLocationnameAutoscalingpolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy(); - } - - public static void syncCreateAutoscalingPolicyLocationnameAutoscalingpolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - AutoscalingPolicy response = - autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_locationnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java deleted file mode 100644 index c0cddcf7..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.RegionName; - -public class SyncCreateAutoscalingPolicyRegionnameAutoscalingpolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy(); - } - - public static void syncCreateAutoscalingPolicyRegionnameAutoscalingpolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - AutoscalingPolicy response = - autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_regionnameautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java deleted file mode 100644 index 6f2f6dcf..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/createautoscalingpolicy/SyncCreateAutoscalingPolicyStringAutoscalingpolicy.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateAutoscalingPolicyStringAutoscalingpolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicyStringAutoscalingpolicy(); - } - - public static void syncCreateAutoscalingPolicyStringAutoscalingpolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - AutoscalingPolicy response = - autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_createautoscalingpolicy_stringautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java deleted file mode 100644 index 9dc50aa3..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/AsyncDeleteAutoscalingPolicy.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.protobuf.Empty; - -public class AsyncDeleteAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - asyncDeleteAutoscalingPolicy(); - } - - public static void asyncDeleteAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder() - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .build(); - ApiFuture future = - autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java deleted file mode 100644 index 15c755e5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.DeleteAutoscalingPolicyRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncDeleteAutoscalingPolicy(); - } - - public static void syncDeleteAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - DeleteAutoscalingPolicyRequest request = - DeleteAutoscalingPolicyRequest.newBuilder() - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .build(); - autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java deleted file mode 100644 index 61c04fad..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyAutoscalingpolicyname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteAutoscalingPolicyAutoscalingpolicyname { - - public static void main(String[] args) throws Exception { - syncDeleteAutoscalingPolicyAutoscalingpolicyname(); - } - - public static void syncDeleteAutoscalingPolicyAutoscalingpolicyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java deleted file mode 100644 index de19adf3..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/deleteautoscalingpolicy/SyncDeleteAutoscalingPolicyString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_string_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteAutoscalingPolicyString { - - public static void main(String[] args) throws Exception { - syncDeleteAutoscalingPolicyString(); - } - - public static void syncDeleteAutoscalingPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - String name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString(); - autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_deleteautoscalingpolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java deleted file mode 100644 index 1787aa6d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/AsyncGetAutoscalingPolicy.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; - -public class AsyncGetAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - asyncGetAutoscalingPolicy(); - } - - public static void asyncGetAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder() - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .build(); - ApiFuture future = - autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request); - // Do something. - AutoscalingPolicy response = future.get(); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java deleted file mode 100644 index e303e2be..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.GetAutoscalingPolicyRequest; - -public class SyncGetAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncGetAutoscalingPolicy(); - } - - public static void syncGetAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - GetAutoscalingPolicyRequest request = - GetAutoscalingPolicyRequest.newBuilder() - .setName( - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString()) - .build(); - AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(request); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java deleted file mode 100644 index 594fd119..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyAutoscalingpolicyname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; - -public class SyncGetAutoscalingPolicyAutoscalingpolicyname { - - public static void main(String[] args) throws Exception { - syncGetAutoscalingPolicyAutoscalingpolicyname(); - } - - public static void syncGetAutoscalingPolicyAutoscalingpolicyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - AutoscalingPolicyName name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]"); - AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_autoscalingpolicyname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java deleted file mode 100644 index 39f6afec..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/getautoscalingpolicy/SyncGetAutoscalingPolicyString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_string_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyName; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; - -public class SyncGetAutoscalingPolicyString { - - public static void main(String[] args) throws Exception { - syncGetAutoscalingPolicyString(); - } - - public static void syncGetAutoscalingPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - String name = - AutoscalingPolicyName.ofProjectLocationAutoscalingPolicyName( - "[PROJECT]", "[LOCATION]", "[AUTOSCALING_POLICY]") - .toString(); - AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_getautoscalingpolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java deleted file mode 100644 index b455040d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPolicies.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class AsyncListAutoscalingPolicies { - - public static void main(String[] args) throws Exception { - asyncListAutoscalingPolicies(); - } - - public static void asyncListAutoscalingPolicies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request); - // Do something. - for (AutoscalingPolicy element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java deleted file mode 100644 index 9a20618d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/AsyncListAutoscalingPoliciesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_paged_async] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse; -import com.google.cloud.dataproc.v1.LocationName; -import com.google.common.base.Strings; - -public class AsyncListAutoscalingPoliciesPaged { - - public static void main(String[] args) throws Exception { - asyncListAutoscalingPoliciesPaged(); - } - - public static void asyncListAutoscalingPoliciesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListAutoscalingPoliciesResponse response = - autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request); - for (AutoscalingPolicy element : response.getPoliciesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java deleted file mode 100644 index 1db78e7c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPolicies.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.ListAutoscalingPoliciesRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListAutoscalingPolicies { - - public static void main(String[] args) throws Exception { - syncListAutoscalingPolicies(); - } - - public static void syncListAutoscalingPolicies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - ListAutoscalingPoliciesRequest request = - ListAutoscalingPoliciesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (AutoscalingPolicy element : - autoscalingPolicyServiceClient.listAutoscalingPolicies(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java deleted file mode 100644 index 38236be6..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesLocationname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListAutoscalingPoliciesLocationname { - - public static void main(String[] args) throws Exception { - syncListAutoscalingPoliciesLocationname(); - } - - public static void syncListAutoscalingPoliciesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (AutoscalingPolicy element : - autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java deleted file mode 100644 index 0290c1f0..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesRegionname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.RegionName; - -public class SyncListAutoscalingPoliciesRegionname { - - public static void main(String[] args) throws Exception { - syncListAutoscalingPoliciesRegionname(); - } - - public static void syncListAutoscalingPoliciesRegionname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - for (AutoscalingPolicy element : - autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_regionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java deleted file mode 100644 index de1088cd..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/listautoscalingpolicies/SyncListAutoscalingPoliciesString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_string_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListAutoscalingPoliciesString { - - public static void main(String[] args) throws Exception { - syncListAutoscalingPoliciesString(); - } - - public static void syncListAutoscalingPoliciesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (AutoscalingPolicy element : - autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_listautoscalingpolicies_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java deleted file mode 100644 index 7a19f36d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/AsyncUpdateAutoscalingPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; - -public class AsyncUpdateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - asyncUpdateAutoscalingPolicy(); - } - - public static void asyncUpdateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - UpdateAutoscalingPolicyRequest request = - UpdateAutoscalingPolicyRequest.newBuilder() - .setPolicy(AutoscalingPolicy.newBuilder().build()) - .build(); - ApiFuture future = - autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request); - // Do something. - AutoscalingPolicy response = future.get(); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java deleted file mode 100644 index 9cb872bc..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicy.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; -import com.google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest; - -public class SyncUpdateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncUpdateAutoscalingPolicy(); - } - - public static void syncUpdateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - UpdateAutoscalingPolicyRequest request = - UpdateAutoscalingPolicyRequest.newBuilder() - .setPolicy(AutoscalingPolicy.newBuilder().build()) - .build(); - AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(request); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java deleted file mode 100644 index 3718e929..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyserviceclient/updateautoscalingpolicy/SyncUpdateAutoscalingPolicyAutoscalingpolicy.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicy; -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; - -public class SyncUpdateAutoscalingPolicyAutoscalingpolicy { - - public static void main(String[] args) throws Exception { - syncUpdateAutoscalingPolicyAutoscalingpolicy(); - } - - public static void syncUpdateAutoscalingPolicyAutoscalingpolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = - AutoscalingPolicyServiceClient.create()) { - AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build(); - AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy); - } - } -} -// [END dataproc_v1_generated_autoscalingpolicyserviceclient_updateautoscalingpolicy_autoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java deleted file mode 100644 index c6b3fc92..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/autoscalingpolicyservicesettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_autoscalingpolicyservicesettings_createautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; -import java.time.Duration; - -public class SyncCreateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicy(); - } - - public static void syncCreateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder = - AutoscalingPolicyServiceSettings.newBuilder(); - autoscalingPolicyServiceSettingsBuilder - .createAutoscalingPolicySettings() - .setRetrySettings( - autoscalingPolicyServiceSettingsBuilder - .createAutoscalingPolicySettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = - autoscalingPolicyServiceSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_autoscalingpolicyservicesettings_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 2b057710..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchControllerSettings; -import com.google.cloud.dataproc.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerSettings batchControllerSettings = - BatchControllerSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - BatchControllerClient batchControllerClient = - BatchControllerClient.create(batchControllerSettings); - } -} -// [END dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 459694d6..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider1_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerSettings batchControllerSettings = - BatchControllerSettings.newBuilder() - .setTransportChannelProvider( - BatchControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - BatchControllerClient batchControllerClient = - BatchControllerClient.create(batchControllerSettings); - } -} -// [END dataproc_v1_generated_batchcontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 1059c281..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_create_setendpoint_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchControllerSettings; -import com.google.cloud.dataproc.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerSettings batchControllerSettings = - BatchControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - BatchControllerClient batchControllerClient = - BatchControllerClient.create(batchControllerSettings); - } -} -// [END dataproc_v1_generated_batchcontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java deleted file mode 100644 index 38d10f86..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatch.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_createbatch_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.LocationName; -import com.google.longrunning.Operation; - -public class AsyncCreateBatch { - - public static void main(String[] args) throws Exception { - asyncCreateBatch(); - } - - public static void asyncCreateBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - CreateBatchRequest request = - CreateBatchRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBatch(Batch.newBuilder().build()) - .setBatchId("batchId-331744779") - .setRequestId("requestId693933066") - .build(); - ApiFuture future = batchControllerClient.createBatchCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_createbatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java deleted file mode 100644 index 5cd5f071..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/AsyncCreateBatchLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_createbatch_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchOperationMetadata; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class AsyncCreateBatchLRO { - - public static void main(String[] args) throws Exception { - asyncCreateBatchLRO(); - } - - public static void asyncCreateBatchLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - CreateBatchRequest request = - CreateBatchRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBatch(Batch.newBuilder().build()) - .setBatchId("batchId-331744779") - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - batchControllerClient.createBatchOperationCallable().futureCall(request); - // Do something. - Batch response = future.get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_createbatch_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java deleted file mode 100644 index f46c5943..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatch.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_createbatch_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.CreateBatchRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateBatch { - - public static void main(String[] args) throws Exception { - syncCreateBatch(); - } - - public static void syncCreateBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - CreateBatchRequest request = - CreateBatchRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBatch(Batch.newBuilder().build()) - .setBatchId("batchId-331744779") - .setRequestId("requestId693933066") - .build(); - Batch response = batchControllerClient.createBatchAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_createbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java deleted file mode 100644 index c6e05597..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchLocationnameBatchString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_createbatch_locationnamebatchstring_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateBatchLocationnameBatchString { - - public static void main(String[] args) throws Exception { - syncCreateBatchLocationnameBatchString(); - } - - public static void syncCreateBatchLocationnameBatchString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_createbatch_locationnamebatchstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java deleted file mode 100644 index e4f4f205..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/createbatch/SyncCreateBatchStringBatchString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_createbatch_stringbatchstring_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncCreateBatchStringBatchString { - - public static void main(String[] args) throws Exception { - syncCreateBatchStringBatchString(); - } - - public static void syncCreateBatchStringBatchString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Batch batch = Batch.newBuilder().build(); - String batchId = "batchId-331744779"; - Batch response = batchControllerClient.createBatchAsync(parent, batch, batchId).get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_createbatch_stringbatchstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java deleted file mode 100644 index 7fbeef35..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/AsyncDeleteBatch.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.protobuf.Empty; - -public class AsyncDeleteBatch { - - public static void main(String[] args) throws Exception { - asyncDeleteBatch(); - } - - public static void asyncDeleteBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - DeleteBatchRequest request = - DeleteBatchRequest.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .build(); - ApiFuture future = batchControllerClient.deleteBatchCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java deleted file mode 100644 index ad4f86ab..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatch.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.cloud.dataproc.v1.DeleteBatchRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteBatch { - - public static void main(String[] args) throws Exception { - syncDeleteBatch(); - } - - public static void syncDeleteBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - DeleteBatchRequest request = - DeleteBatchRequest.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .build(); - batchControllerClient.deleteBatch(request); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java deleted file mode 100644 index 6dac6713..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchBatchname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_batchname_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.protobuf.Empty; - -public class SyncDeleteBatchBatchname { - - public static void main(String[] args) throws Exception { - syncDeleteBatchBatchname(); - } - - public static void syncDeleteBatchBatchname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - batchControllerClient.deleteBatch(name); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_batchname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java deleted file mode 100644 index 894deb0d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/deletebatch/SyncDeleteBatchString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_deletebatch_string_sync] -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.protobuf.Empty; - -public class SyncDeleteBatchString { - - public static void main(String[] args) throws Exception { - syncDeleteBatchString(); - } - - public static void syncDeleteBatchString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); - batchControllerClient.deleteBatch(name); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_deletebatch_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java deleted file mode 100644 index a4590f1e..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/AsyncGetBatch.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_getbatch_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.cloud.dataproc.v1.GetBatchRequest; - -public class AsyncGetBatch { - - public static void main(String[] args) throws Exception { - asyncGetBatch(); - } - - public static void asyncGetBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - GetBatchRequest request = - GetBatchRequest.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .build(); - ApiFuture future = batchControllerClient.getBatchCallable().futureCall(request); - // Do something. - Batch response = future.get(); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_getbatch_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java deleted file mode 100644 index 64269a7a..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatch.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_getbatch_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; -import com.google.cloud.dataproc.v1.GetBatchRequest; - -public class SyncGetBatch { - - public static void main(String[] args) throws Exception { - syncGetBatch(); - } - - public static void syncGetBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - GetBatchRequest request = - GetBatchRequest.newBuilder() - .setName(BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString()) - .build(); - Batch response = batchControllerClient.getBatch(request); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java deleted file mode 100644 index beb75c0d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchBatchname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_getbatch_batchname_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; - -public class SyncGetBatchBatchname { - - public static void main(String[] args) throws Exception { - syncGetBatchBatchname(); - } - - public static void syncGetBatchBatchname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - BatchName name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]"); - Batch response = batchControllerClient.getBatch(name); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_getbatch_batchname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java deleted file mode 100644 index 2f7cbbf4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/getbatch/SyncGetBatchString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_getbatch_string_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.BatchName; - -public class SyncGetBatchString { - - public static void main(String[] args) throws Exception { - syncGetBatchString(); - } - - public static void syncGetBatchString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - String name = BatchName.of("[PROJECT]", "[LOCATION]", "[BATCH]").toString(); - Batch response = batchControllerClient.getBatch(name); - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_getbatch_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java deleted file mode 100644 index 132b745c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatches.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_listbatches_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class AsyncListBatches { - - public static void main(String[] args) throws Exception { - asyncListBatches(); - } - - public static void asyncListBatches() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - ListBatchesRequest request = - ListBatchesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - batchControllerClient.listBatchesPagedCallable().futureCall(request); - // Do something. - for (Batch element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_listbatches_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java deleted file mode 100644 index e57dd257..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/AsyncListBatchesPaged.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_listbatches_paged_async] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.ListBatchesResponse; -import com.google.cloud.dataproc.v1.LocationName; -import com.google.common.base.Strings; - -public class AsyncListBatchesPaged { - - public static void main(String[] args) throws Exception { - asyncListBatchesPaged(); - } - - public static void asyncListBatchesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - ListBatchesRequest request = - ListBatchesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListBatchesResponse response = batchControllerClient.listBatchesCallable().call(request); - for (Batch element : response.getBatchesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_listbatches_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java deleted file mode 100644 index ec73dc9d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatches.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_listbatches_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.ListBatchesRequest; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListBatches { - - public static void main(String[] args) throws Exception { - syncListBatches(); - } - - public static void syncListBatches() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - ListBatchesRequest request = - ListBatchesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Batch element : batchControllerClient.listBatches(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_listbatches_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java deleted file mode 100644 index ea5f95c7..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_listbatches_locationname_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListBatchesLocationname { - - public static void main(String[] args) throws Exception { - syncListBatchesLocationname(); - } - - public static void syncListBatchesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_listbatches_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java deleted file mode 100644 index 09b7a2ca..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollerclient/listbatches/SyncListBatchesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollerclient_listbatches_string_sync] -import com.google.cloud.dataproc.v1.Batch; -import com.google.cloud.dataproc.v1.BatchControllerClient; -import com.google.cloud.dataproc.v1.LocationName; - -public class SyncListBatchesString { - - public static void main(String[] args) throws Exception { - syncListBatchesString(); - } - - public static void syncListBatchesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (BatchControllerClient batchControllerClient = BatchControllerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Batch element : batchControllerClient.listBatches(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_batchcontrollerclient_listbatches_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java deleted file mode 100644 index 215f14ea..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/batchcontrollersettings/getbatch/SyncGetBatch.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_batchcontrollersettings_getbatch_sync] -import com.google.cloud.dataproc.v1.BatchControllerSettings; -import java.time.Duration; - -public class SyncGetBatch { - - public static void main(String[] args) throws Exception { - syncGetBatch(); - } - - public static void syncGetBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerSettings.Builder batchControllerSettingsBuilder = - BatchControllerSettings.newBuilder(); - batchControllerSettingsBuilder - .getBatchSettings() - .setRetrySettings( - batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - BatchControllerSettings batchControllerSettings = batchControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_batchcontrollersettings_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 03a9b2c8..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - } -} -// [END dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index bce4ec53..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider1_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder() - .setTransportChannelProvider( - ClusterControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - } -} -// [END dataproc_v1_generated_clustercontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index a7bb3572..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_create_setendpoint_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import com.google.cloud.dataproc.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerSettings clusterControllerSettings = - ClusterControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - ClusterControllerClient clusterControllerClient = - ClusterControllerClient.create(clusterControllerSettings); - } -} -// [END dataproc_v1_generated_clustercontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java deleted file mode 100644 index 73ef3c06..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateCluster.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_createcluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.FailureAction; -import com.google.longrunning.Operation; - -public class AsyncCreateCluster { - - public static void main(String[] args) throws Exception { - asyncCreateCluster(); - } - - public static void asyncCreateCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setCluster(Cluster.newBuilder().build()) - .setRequestId("requestId693933066") - .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) - .build(); - ApiFuture future = - clusterControllerClient.createClusterCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_createcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java deleted file mode 100644 index 80080978..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/AsyncCreateClusterLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_createcluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.FailureAction; - -public class AsyncCreateClusterLRO { - - public static void main(String[] args) throws Exception { - asyncCreateClusterLRO(); - } - - public static void asyncCreateClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setCluster(Cluster.newBuilder().build()) - .setRequestId("requestId693933066") - .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) - .build(); - OperationFuture future = - clusterControllerClient.createClusterOperationCallable().futureCall(request); - // Do something. - Cluster response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_createcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java deleted file mode 100644 index f6539d10..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateCluster.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_createcluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.CreateClusterRequest; -import com.google.cloud.dataproc.v1.FailureAction; - -public class SyncCreateCluster { - - public static void main(String[] args) throws Exception { - syncCreateCluster(); - } - - public static void syncCreateCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setCluster(Cluster.newBuilder().build()) - .setRequestId("requestId693933066") - .setActionOnFailedPrimaryWorkers(FailureAction.forNumber(0)) - .build(); - Cluster response = clusterControllerClient.createClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_createcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java deleted file mode 100644 index f1f4cbcc..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/createcluster/SyncCreateClusterStringStringCluster.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_createcluster_stringstringcluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; - -public class SyncCreateClusterStringStringCluster { - - public static void main(String[] args) throws Exception { - syncCreateClusterStringStringCluster(); - } - - public static void syncCreateClusterStringStringCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Cluster cluster = Cluster.newBuilder().build(); - Cluster response = - clusterControllerClient.createClusterAsync(projectId, region, cluster).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_createcluster_stringstringcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java deleted file mode 100644 index 3607e858..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteCluster.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.longrunning.Operation; - -public class AsyncDeleteCluster { - - public static void main(String[] args) throws Exception { - asyncDeleteCluster(); - } - - public static void asyncDeleteCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - clusterControllerClient.deleteClusterCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java deleted file mode 100644 index 60ad729d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/AsyncDeleteClusterLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.protobuf.Empty; - -public class AsyncDeleteClusterLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteClusterLRO(); - } - - public static void asyncDeleteClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - clusterControllerClient.deleteClusterOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java deleted file mode 100644 index a36a8e9b..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteCluster.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.DeleteClusterRequest; -import com.google.protobuf.Empty; - -public class SyncDeleteCluster { - - public static void main(String[] args) throws Exception { - syncDeleteCluster(); - } - - public static void syncDeleteCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - clusterControllerClient.deleteClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java deleted file mode 100644 index 7627ed7d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/deletecluster/SyncDeleteClusterStringStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_deletecluster_stringstringstring_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.protobuf.Empty; - -public class SyncDeleteClusterStringStringString { - - public static void main(String[] args) throws Exception { - syncDeleteClusterStringStringString(); - } - - public static void syncDeleteClusterStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_deletecluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java deleted file mode 100644 index 61c6d98d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseCluster.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.longrunning.Operation; - -public class AsyncDiagnoseCluster { - - public static void main(String[] args) throws Exception { - asyncDiagnoseCluster(); - } - - public static void asyncDiagnoseCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .build(); - ApiFuture future = - clusterControllerClient.diagnoseClusterCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java deleted file mode 100644 index 587ec060..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/AsyncDiagnoseClusterLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; - -public class AsyncDiagnoseClusterLRO { - - public static void main(String[] args) throws Exception { - asyncDiagnoseClusterLRO(); - } - - public static void asyncDiagnoseClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .build(); - OperationFuture future = - clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); - // Do something. - DiagnoseClusterResults response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java deleted file mode 100644 index b4a471eb..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseCluster.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.DiagnoseClusterRequest; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; - -public class SyncDiagnoseCluster { - - public static void main(String[] args) throws Exception { - syncDiagnoseCluster(); - } - - public static void syncDiagnoseCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - DiagnoseClusterRequest request = - DiagnoseClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .build(); - DiagnoseClusterResults response = clusterControllerClient.diagnoseClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java deleted file mode 100644 index ad2cc77b..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/diagnosecluster/SyncDiagnoseClusterStringStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_diagnosecluster_stringstringstring_sync] -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.DiagnoseClusterResults; - -public class SyncDiagnoseClusterStringStringString { - - public static void main(String[] args) throws Exception { - syncDiagnoseClusterStringStringString(); - } - - public static void syncDiagnoseClusterStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - DiagnoseClusterResults response = - clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_diagnosecluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java deleted file mode 100644 index 3d22bb33..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/AsyncGetCluster.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_getcluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.GetClusterRequest; - -public class AsyncGetCluster { - - public static void main(String[] args) throws Exception { - asyncGetCluster(); - } - - public static void asyncGetCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .build(); - ApiFuture future = clusterControllerClient.getClusterCallable().futureCall(request); - // Do something. - Cluster response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_getcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java deleted file mode 100644 index d8ad3563..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetCluster.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_getcluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.GetClusterRequest; - -public class SyncGetCluster { - - public static void main(String[] args) throws Exception { - syncGetCluster(); - } - - public static void syncGetCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .build(); - Cluster response = clusterControllerClient.getCluster(request); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java deleted file mode 100644 index 9e32532d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/getcluster/SyncGetClusterStringStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_getcluster_stringstringstring_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; - -public class SyncGetClusterStringStringString { - - public static void main(String[] args) throws Exception { - syncGetClusterStringStringString(); - } - - public static void syncGetClusterStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster response = clusterControllerClient.getCluster(projectId, region, clusterName); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_getcluster_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java deleted file mode 100644 index e01a5ea4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClusters.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_listclusters_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ListClustersRequest; - -public class AsyncListClusters { - - public static void main(String[] args) throws Exception { - asyncListClusters(); - } - - public static void asyncListClusters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - ListClustersRequest request = - ListClustersRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - clusterControllerClient.listClustersPagedCallable().futureCall(request); - // Do something. - for (Cluster element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_listclusters_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java deleted file mode 100644 index 4aa54ed4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/AsyncListClustersPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_listclusters_paged_async] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ListClustersRequest; -import com.google.cloud.dataproc.v1.ListClustersResponse; -import com.google.common.base.Strings; - -public class AsyncListClustersPaged { - - public static void main(String[] args) throws Exception { - asyncListClustersPaged(); - } - - public static void asyncListClustersPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - ListClustersRequest request = - ListClustersRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListClustersResponse response = - clusterControllerClient.listClustersCallable().call(request); - for (Cluster element : response.getClustersList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_listclusters_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java deleted file mode 100644 index 9d8daac4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClusters.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_listclusters_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ListClustersRequest; - -public class SyncListClusters { - - public static void main(String[] args) throws Exception { - syncListClusters(); - } - - public static void syncListClusters() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - ListClustersRequest request = - ListClustersRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Cluster element : clusterControllerClient.listClusters(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_listclusters_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java deleted file mode 100644 index 1f4ea8cc..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_listclusters_stringstring_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; - -public class SyncListClustersStringString { - - public static void main(String[] args) throws Exception { - syncListClustersStringString(); - } - - public static void syncListClustersStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - for (Cluster element : clusterControllerClient.listClusters(projectId, region).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_listclusters_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java deleted file mode 100644 index 879cbc98..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/listclusters/SyncListClustersStringStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_listclusters_stringstringstring_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; - -public class SyncListClustersStringStringString { - - public static void main(String[] args) throws Exception { - syncListClustersStringStringString(); - } - - public static void syncListClustersStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - for (Cluster element : - clusterControllerClient.listClusters(projectId, region, filter).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_listclusters_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java deleted file mode 100644 index cad0e58d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartCluster.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_startcluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.StartClusterRequest; -import com.google.longrunning.Operation; - -public class AsyncStartCluster { - - public static void main(String[] args) throws Exception { - asyncStartCluster(); - } - - public static void asyncStartCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - clusterControllerClient.startClusterCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_startcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java deleted file mode 100644 index d2778710..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/AsyncStartClusterLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_startcluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.StartClusterRequest; - -public class AsyncStartClusterLRO { - - public static void main(String[] args) throws Exception { - asyncStartClusterLRO(); - } - - public static void asyncStartClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - clusterControllerClient.startClusterOperationCallable().futureCall(request); - // Do something. - Cluster response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_startcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java deleted file mode 100644 index 6432ccef..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/startcluster/SyncStartCluster.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_startcluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.StartClusterRequest; - -public class SyncStartCluster { - - public static void main(String[] args) throws Exception { - syncStartCluster(); - } - - public static void syncStartCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StartClusterRequest request = - StartClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - Cluster response = clusterControllerClient.startClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_startcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java deleted file mode 100644 index 8097b461..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopCluster.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.StopClusterRequest; -import com.google.longrunning.Operation; - -public class AsyncStopCluster { - - public static void main(String[] args) throws Exception { - asyncStopCluster(); - } - - public static void asyncStopCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - clusterControllerClient.stopClusterCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java deleted file mode 100644 index b612438b..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/AsyncStopClusterLRO.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.StopClusterRequest; - -public class AsyncStopClusterLRO { - - public static void main(String[] args) throws Exception { - asyncStopClusterLRO(); - } - - public static void asyncStopClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - clusterControllerClient.stopClusterOperationCallable().futureCall(request); - // Do something. - Cluster response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java deleted file mode 100644 index 3d57330b..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/stopcluster/SyncStopCluster.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_stopcluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.StopClusterRequest; - -public class SyncStopCluster { - - public static void main(String[] args) throws Exception { - syncStopCluster(); - } - - public static void syncStopCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - StopClusterRequest request = - StopClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setClusterUuid("clusterUuid-1141510955") - .setRequestId("requestId693933066") - .build(); - Cluster response = clusterControllerClient.stopClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_stopcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java deleted file mode 100644 index 9bbb6292..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateCluster.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Duration; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateCluster { - - public static void main(String[] args) throws Exception { - asyncUpdateCluster(); - } - - public static void asyncUpdateCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setCluster(Cluster.newBuilder().build()) - .setGracefulDecommissionTimeout(Duration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - clusterControllerClient.updateClusterCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java deleted file mode 100644 index 43a018fc..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/AsyncUpdateClusterLRO.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.ClusterOperationMetadata; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.protobuf.Duration; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateClusterLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateClusterLRO(); - } - - public static void asyncUpdateClusterLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setCluster(Cluster.newBuilder().build()) - .setGracefulDecommissionTimeout(Duration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - clusterControllerClient.updateClusterOperationCallable().futureCall(request); - // Do something. - Cluster response = future.get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java deleted file mode 100644 index 712a54c2..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateCluster.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.cloud.dataproc.v1.UpdateClusterRequest; -import com.google.protobuf.Duration; -import com.google.protobuf.FieldMask; - -public class SyncUpdateCluster { - - public static void main(String[] args) throws Exception { - syncUpdateCluster(); - } - - public static void syncUpdateCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setClusterName("clusterName-1141738587") - .setCluster(Cluster.newBuilder().build()) - .setGracefulDecommissionTimeout(Duration.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - Cluster response = clusterControllerClient.updateClusterAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java deleted file mode 100644 index ced977a1..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollerclient/updatecluster/SyncUpdateClusterStringStringStringClusterFieldmask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] -import com.google.cloud.dataproc.v1.Cluster; -import com.google.cloud.dataproc.v1.ClusterControllerClient; -import com.google.protobuf.FieldMask; - -public class SyncUpdateClusterStringStringStringClusterFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateClusterStringStringStringClusterFieldmask(); - } - - public static void syncUpdateClusterStringStringStringClusterFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (ClusterControllerClient clusterControllerClient = ClusterControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String clusterName = "clusterName-1141738587"; - Cluster cluster = Cluster.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Cluster response = - clusterControllerClient - .updateClusterAsync(projectId, region, clusterName, cluster, updateMask) - .get(); - } - } -} -// [END dataproc_v1_generated_clustercontrollerclient_updatecluster_stringstringstringclusterfieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java deleted file mode 100644 index f2b10742..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/clustercontrollersettings/getcluster/SyncGetCluster.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_clustercontrollersettings_getcluster_sync] -import com.google.cloud.dataproc.v1.ClusterControllerSettings; -import java.time.Duration; - -public class SyncGetCluster { - - public static void main(String[] args) throws Exception { - syncGetCluster(); - } - - public static void syncGetCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerSettings.Builder clusterControllerSettingsBuilder = - ClusterControllerSettings.newBuilder(); - clusterControllerSettingsBuilder - .getClusterSettings() - .setRetrySettings( - clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - ClusterControllerSettings clusterControllerSettings = clusterControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_clustercontrollersettings_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java deleted file mode 100644 index fc9cdc57..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/AsyncCancelJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_canceljob_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class AsyncCancelJob { - - public static void main(String[] args) throws Exception { - asyncCancelJob(); - } - - public static void asyncCancelJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - CancelJobRequest request = - CancelJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - ApiFuture future = jobControllerClient.cancelJobCallable().futureCall(request); - // Do something. - Job response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_canceljob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java deleted file mode 100644 index e9830ec1..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_canceljob_sync] -import com.google.cloud.dataproc.v1.CancelJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncCancelJob { - - public static void main(String[] args) throws Exception { - syncCancelJob(); - } - - public static void syncCancelJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - CancelJobRequest request = - CancelJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - Job response = jobControllerClient.cancelJob(request); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_canceljob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java deleted file mode 100644 index 3c91149c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/canceljob/SyncCancelJobStringStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_canceljob_stringstringstring_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncCancelJobStringStringString { - - public static void main(String[] args) throws Exception { - syncCancelJobStringStringString(); - } - - public static void syncCancelJobStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - Job response = jobControllerClient.cancelJob(projectId, region, jobId); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_canceljob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 22eb7bb1..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; -import com.google.cloud.dataproc.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); - } -} -// [END dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a6efe8d6..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider1_sync] -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder() - .setTransportChannelProvider( - JobControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); - } -} -// [END dataproc_v1_generated_jobcontrollerclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index ae69fd15..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_create_setendpoint_sync] -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobControllerSettings; -import com.google.cloud.dataproc.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerSettings jobControllerSettings = - JobControllerSettings.newBuilder().setEndpoint(myEndpoint).build(); - JobControllerClient jobControllerClient = JobControllerClient.create(jobControllerSettings); - } -} -// [END dataproc_v1_generated_jobcontrollerclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java deleted file mode 100644 index e241b6f4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/AsyncDeleteJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_deletejob_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.protobuf.Empty; - -public class AsyncDeleteJob { - - public static void main(String[] args) throws Exception { - asyncDeleteJob(); - } - - public static void asyncDeleteJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - DeleteJobRequest request = - DeleteJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - ApiFuture future = jobControllerClient.deleteJobCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_deletejob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java deleted file mode 100644 index 0a20d89c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_deletejob_sync] -import com.google.cloud.dataproc.v1.DeleteJobRequest; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.protobuf.Empty; - -public class SyncDeleteJob { - - public static void main(String[] args) throws Exception { - syncDeleteJob(); - } - - public static void syncDeleteJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - DeleteJobRequest request = - DeleteJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - jobControllerClient.deleteJob(request); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_deletejob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java deleted file mode 100644 index fa617990..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/deletejob/SyncDeleteJobStringStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_deletejob_stringstringstring_sync] -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.protobuf.Empty; - -public class SyncDeleteJobStringStringString { - - public static void main(String[] args) throws Exception { - syncDeleteJobStringStringString(); - } - - public static void syncDeleteJobStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - jobControllerClient.deleteJob(projectId, region, jobId); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_deletejob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java deleted file mode 100644 index 356e2fe2..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/AsyncGetJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_getjob_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class AsyncGetJob { - - public static void main(String[] args) throws Exception { - asyncGetJob(); - } - - public static void asyncGetJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - GetJobRequest request = - GetJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - ApiFuture future = jobControllerClient.getJobCallable().futureCall(request); - // Do something. - Job response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_getjob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java deleted file mode 100644 index 021464e1..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJob.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_getjob_sync] -import com.google.cloud.dataproc.v1.GetJobRequest; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncGetJob { - - public static void main(String[] args) throws Exception { - syncGetJob(); - } - - public static void syncGetJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - GetJobRequest request = - GetJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .build(); - Job response = jobControllerClient.getJob(request); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_getjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java deleted file mode 100644 index deee5c1a..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/getjob/SyncGetJobStringStringString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_getjob_stringstringstring_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncGetJobStringStringString { - - public static void main(String[] args) throws Exception { - syncGetJobStringStringString(); - } - - public static void syncGetJobStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String jobId = "jobId101296568"; - Job response = jobControllerClient.getJob(projectId, region, jobId); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_getjob_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java deleted file mode 100644 index 826dbd55..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobs.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_listjobs_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.ListJobsRequest; - -public class AsyncListJobs { - - public static void main(String[] args) throws Exception { - asyncListJobs(); - } - - public static void asyncListJobs() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - ListJobsRequest request = - ListJobsRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setClusterName("clusterName-1141738587") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = jobControllerClient.listJobsPagedCallable().futureCall(request); - // Do something. - for (Job element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_listjobs_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java deleted file mode 100644 index 8429398d..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/AsyncListJobsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_listjobs_paged_async] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.ListJobsRequest; -import com.google.cloud.dataproc.v1.ListJobsResponse; -import com.google.common.base.Strings; - -public class AsyncListJobsPaged { - - public static void main(String[] args) throws Exception { - asyncListJobsPaged(); - } - - public static void asyncListJobsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - ListJobsRequest request = - ListJobsRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setClusterName("clusterName-1141738587") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListJobsResponse response = jobControllerClient.listJobsCallable().call(request); - for (Job element : response.getJobsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_listjobs_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java deleted file mode 100644 index 7594cb3c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobs.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_listjobs_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.ListJobsRequest; - -public class SyncListJobs { - - public static void main(String[] args) throws Exception { - syncListJobs(); - } - - public static void syncListJobs() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - ListJobsRequest request = - ListJobsRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setClusterName("clusterName-1141738587") - .setFilter("filter-1274492040") - .build(); - for (Job element : jobControllerClient.listJobs(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_listjobs_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java deleted file mode 100644 index 8f83eff0..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_listjobs_stringstring_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncListJobsStringString { - - public static void main(String[] args) throws Exception { - syncListJobsStringString(); - } - - public static void syncListJobsStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - for (Job element : jobControllerClient.listJobs(projectId, region).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_listjobs_stringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java deleted file mode 100644 index c252d179..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/listjobs/SyncListJobsStringStringString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_listjobs_stringstringstring_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncListJobsStringStringString { - - public static void main(String[] args) throws Exception { - syncListJobsStringStringString(); - } - - public static void syncListJobsStringStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - String filter = "filter-1274492040"; - for (Job element : jobControllerClient.listJobs(projectId, region, filter).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_listjobs_stringstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java deleted file mode 100644 index 56253c50..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/AsyncSubmitJob.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjob_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.SubmitJobRequest; - -public class AsyncSubmitJob { - - public static void main(String[] args) throws Exception { - asyncSubmitJob(); - } - - public static void asyncSubmitJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJob(Job.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = jobControllerClient.submitJobCallable().futureCall(request); - // Do something. - Job response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java deleted file mode 100644 index 173126ea..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJob.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjob_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.SubmitJobRequest; - -public class SyncSubmitJob { - - public static void main(String[] args) throws Exception { - syncSubmitJob(); - } - - public static void syncSubmitJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJob(Job.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - Job response = jobControllerClient.submitJob(request); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java deleted file mode 100644 index e31a0387..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjob/SyncSubmitJobStringStringJob.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjob_stringstringjob_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncSubmitJobStringStringJob { - - public static void main(String[] args) throws Exception { - syncSubmitJobStringStringJob(); - } - - public static void syncSubmitJobStringStringJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - Job response = jobControllerClient.submitJob(projectId, region, job); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjob_stringstringjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java deleted file mode 100644 index f3e0b2fb..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperation.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.SubmitJobRequest; -import com.google.longrunning.Operation; - -public class AsyncSubmitJobAsOperation { - - public static void main(String[] args) throws Exception { - asyncSubmitJobAsOperation(); - } - - public static void asyncSubmitJobAsOperation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJob(Job.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - jobControllerClient.submitJobAsOperationCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java deleted file mode 100644 index eef0a858..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/AsyncSubmitJobAsOperationLRO.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.JobMetadata; -import com.google.cloud.dataproc.v1.SubmitJobRequest; - -public class AsyncSubmitJobAsOperationLRO { - - public static void main(String[] args) throws Exception { - asyncSubmitJobAsOperationLRO(); - } - - public static void asyncSubmitJobAsOperationLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJob(Job.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - jobControllerClient.submitJobAsOperationOperationCallable().futureCall(request); - // Do something. - Job response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java deleted file mode 100644 index 9d4f552b..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperation.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.SubmitJobRequest; - -public class SyncSubmitJobAsOperation { - - public static void main(String[] args) throws Exception { - syncSubmitJobAsOperation(); - } - - public static void syncSubmitJobAsOperation() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - SubmitJobRequest request = - SubmitJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJob(Job.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - Job response = jobControllerClient.submitJobAsOperationAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java deleted file mode 100644 index 7cb37a53..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/submitjobasoperation/SyncSubmitJobAsOperationStringStringJob.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_stringstringjob_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; - -public class SyncSubmitJobAsOperationStringStringJob { - - public static void main(String[] args) throws Exception { - syncSubmitJobAsOperationStringStringJob(); - } - - public static void syncSubmitJobAsOperationStringStringJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - String projectId = "projectId-894832108"; - String region = "region-934795532"; - Job job = Job.newBuilder().build(); - Job response = jobControllerClient.submitJobAsOperationAsync(projectId, region, job).get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_submitjobasoperation_stringstringjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java deleted file mode 100644 index ea47c817..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/AsyncUpdateJob.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_updatejob_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateJob { - - public static void main(String[] args) throws Exception { - asyncUpdateJob(); - } - - public static void asyncUpdateJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = jobControllerClient.updateJobCallable().futureCall(request); - // Do something. - Job response = future.get(); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_updatejob_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java deleted file mode 100644 index da44260a..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollerclient/updatejob/SyncUpdateJob.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollerclient_updatejob_sync] -import com.google.cloud.dataproc.v1.Job; -import com.google.cloud.dataproc.v1.JobControllerClient; -import com.google.cloud.dataproc.v1.UpdateJobRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateJob { - - public static void main(String[] args) throws Exception { - syncUpdateJob(); - } - - public static void syncUpdateJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (JobControllerClient jobControllerClient = JobControllerClient.create()) { - UpdateJobRequest request = - UpdateJobRequest.newBuilder() - .setProjectId("projectId-894832108") - .setRegion("region-934795532") - .setJobId("jobId101296568") - .setJob(Job.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Job response = jobControllerClient.updateJob(request); - } - } -} -// [END dataproc_v1_generated_jobcontrollerclient_updatejob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java deleted file mode 100644 index 5e5ccc31..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/jobcontrollersettings/submitjob/SyncSubmitJob.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_jobcontrollersettings_submitjob_sync] -import com.google.cloud.dataproc.v1.JobControllerSettings; -import java.time.Duration; - -public class SyncSubmitJob { - - public static void main(String[] args) throws Exception { - syncSubmitJob(); - } - - public static void syncSubmitJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerSettings.Builder jobControllerSettingsBuilder = JobControllerSettings.newBuilder(); - jobControllerSettingsBuilder - .submitJobSettings() - .setRetrySettings( - jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - JobControllerSettings jobControllerSettings = jobControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_jobcontrollersettings_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java deleted file mode 100644 index bb760089..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/autoscalingpolicyservicestubsettings/createautoscalingpolicy/SyncCreateAutoscalingPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub.samples; - -// [START dataproc_v1_generated_autoscalingpolicyservicestubsettings_createautoscalingpolicy_sync] -import com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStubSettings; -import java.time.Duration; - -public class SyncCreateAutoscalingPolicy { - - public static void main(String[] args) throws Exception { - syncCreateAutoscalingPolicy(); - } - - public static void syncCreateAutoscalingPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder = - AutoscalingPolicyServiceStubSettings.newBuilder(); - autoscalingPolicyServiceSettingsBuilder - .createAutoscalingPolicySettings() - .setRetrySettings( - autoscalingPolicyServiceSettingsBuilder - .createAutoscalingPolicySettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = - autoscalingPolicyServiceSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_autoscalingpolicyservicestubsettings_createautoscalingpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java deleted file mode 100644 index 53a3558c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/batchcontrollerstubsettings/getbatch/SyncGetBatch.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub.samples; - -// [START dataproc_v1_generated_batchcontrollerstubsettings_getbatch_sync] -import com.google.cloud.dataproc.v1.stub.BatchControllerStubSettings; -import java.time.Duration; - -public class SyncGetBatch { - - public static void main(String[] args) throws Exception { - syncGetBatch(); - } - - public static void syncGetBatch() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - BatchControllerStubSettings.Builder batchControllerSettingsBuilder = - BatchControllerStubSettings.newBuilder(); - batchControllerSettingsBuilder - .getBatchSettings() - .setRetrySettings( - batchControllerSettingsBuilder.getBatchSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - BatchControllerStubSettings batchControllerSettings = batchControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_batchcontrollerstubsettings_getbatch_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java deleted file mode 100644 index c5105059..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/clustercontrollerstubsettings/getcluster/SyncGetCluster.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub.samples; - -// [START dataproc_v1_generated_clustercontrollerstubsettings_getcluster_sync] -import com.google.cloud.dataproc.v1.stub.ClusterControllerStubSettings; -import java.time.Duration; - -public class SyncGetCluster { - - public static void main(String[] args) throws Exception { - syncGetCluster(); - } - - public static void syncGetCluster() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - ClusterControllerStubSettings.Builder clusterControllerSettingsBuilder = - ClusterControllerStubSettings.newBuilder(); - clusterControllerSettingsBuilder - .getClusterSettings() - .setRetrySettings( - clusterControllerSettingsBuilder.getClusterSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - ClusterControllerStubSettings clusterControllerSettings = - clusterControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_clustercontrollerstubsettings_getcluster_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java deleted file mode 100644 index 53fb9930..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/jobcontrollerstubsettings/submitjob/SyncSubmitJob.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub.samples; - -// [START dataproc_v1_generated_jobcontrollerstubsettings_submitjob_sync] -import com.google.cloud.dataproc.v1.stub.JobControllerStubSettings; -import java.time.Duration; - -public class SyncSubmitJob { - - public static void main(String[] args) throws Exception { - syncSubmitJob(); - } - - public static void syncSubmitJob() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - JobControllerStubSettings.Builder jobControllerSettingsBuilder = - JobControllerStubSettings.newBuilder(); - jobControllerSettingsBuilder - .submitJobSettings() - .setRetrySettings( - jobControllerSettingsBuilder.submitJobSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - JobControllerStubSettings jobControllerSettings = jobControllerSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_jobcontrollerstubsettings_submitjob_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java deleted file mode 100644 index 3471fd8f..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/stub/workflowtemplateservicestubsettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.stub.samples; - -// [START dataproc_v1_generated_workflowtemplateservicestubsettings_createworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.stub.WorkflowTemplateServiceStubSettings; -import java.time.Duration; - -public class SyncCreateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplate(); - } - - public static void syncCreateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceStubSettings.Builder workflowTemplateServiceSettingsBuilder = - WorkflowTemplateServiceStubSettings.newBuilder(); - workflowTemplateServiceSettingsBuilder - .createWorkflowTemplateSettings() - .setRetrySettings( - workflowTemplateServiceSettingsBuilder - .createWorkflowTemplateSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - WorkflowTemplateServiceStubSettings workflowTemplateServiceSettings = - workflowTemplateServiceSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_workflowtemplateservicestubsettings_createworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 754f1f86..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; -import com.google.cloud.dataproc.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - WorkflowTemplateServiceSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index ae334e36..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider1_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - WorkflowTemplateServiceSettings.newBuilder() - .setTransportChannelProvider( - WorkflowTemplateServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 47cd3ba0..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_create_setendpoint_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; -import com.google.cloud.dataproc.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - WorkflowTemplateServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); - WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create(workflowTemplateServiceSettings); - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java deleted file mode 100644 index 964b8a63..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/AsyncCreateWorkflowTemplate.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class AsyncCreateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncCreateWorkflowTemplate(); - } - - public static void asyncCreateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setTemplate(WorkflowTemplate.newBuilder().build()) - .build(); - ApiFuture future = - workflowTemplateServiceClient.createWorkflowTemplateCallable().futureCall(request); - // Do something. - WorkflowTemplate response = future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java deleted file mode 100644 index b2fe56e3..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.CreateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncCreateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplate(); - } - - public static void syncCreateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - CreateWorkflowTemplateRequest request = - CreateWorkflowTemplateRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setTemplate(WorkflowTemplate.newBuilder().build()) - .build(); - WorkflowTemplate response = workflowTemplateServiceClient.createWorkflowTemplate(request); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java deleted file mode 100644 index ea1a78df..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateLocationnameWorkflowtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.LocationName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncCreateWorkflowTemplateLocationnameWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplateLocationnameWorkflowtemplate(); - } - - public static void syncCreateWorkflowTemplateLocationnameWorkflowtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate response = - workflowTemplateServiceClient.createWorkflowTemplate(parent, template); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java deleted file mode 100644 index b87ea4e5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateRegionnameWorkflowtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncCreateWorkflowTemplateRegionnameWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplateRegionnameWorkflowtemplate(); - } - - public static void syncCreateWorkflowTemplateRegionnameWorkflowtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate response = - workflowTemplateServiceClient.createWorkflowTemplate(parent, template); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java deleted file mode 100644 index c0be3faf..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/createworkflowtemplate/SyncCreateWorkflowTemplateStringWorkflowtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncCreateWorkflowTemplateStringWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplateStringWorkflowtemplate(); - } - - public static void syncCreateWorkflowTemplateStringWorkflowtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate response = - workflowTemplateServiceClient.createWorkflowTemplate(parent, template); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_createworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java deleted file mode 100644 index b8321ec4..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/AsyncDeleteWorkflowTemplate.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class AsyncDeleteWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncDeleteWorkflowTemplate(); - } - - public static void asyncDeleteWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .build(); - ApiFuture future = - workflowTemplateServiceClient.deleteWorkflowTemplateCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java deleted file mode 100644 index c5fc0aa5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplate.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncDeleteWorkflowTemplate(); - } - - public static void syncDeleteWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - DeleteWorkflowTemplateRequest request = - DeleteWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .build(); - workflowTemplateServiceClient.deleteWorkflowTemplate(request); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java deleted file mode 100644 index 10084786..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_string_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteWorkflowTemplateString { - - public static void main(String[] args) throws Exception { - syncDeleteWorkflowTemplateString(); - } - - public static void syncDeleteWorkflowTemplateString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString(); - workflowTemplateServiceClient.deleteWorkflowTemplate(name); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java deleted file mode 100644 index b8090102..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/deleteworkflowtemplate/SyncDeleteWorkflowTemplateWorkflowtemplatename.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeleteWorkflowTemplateWorkflowtemplatename { - - public static void main(String[] args) throws Exception { - syncDeleteWorkflowTemplateWorkflowtemplatename(); - } - - public static void syncDeleteWorkflowTemplateWorkflowtemplatename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - workflowTemplateServiceClient.deleteWorkflowTemplate(name); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_deleteworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java deleted file mode 100644 index 217de1fc..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/AsyncGetWorkflowTemplate.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class AsyncGetWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncGetWorkflowTemplate(); - } - - public static void asyncGetWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .build(); - ApiFuture future = - workflowTemplateServiceClient.getWorkflowTemplateCallable().futureCall(request); - // Do something. - WorkflowTemplate response = future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java deleted file mode 100644 index e58e1462..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplate.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.GetWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncGetWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncGetWorkflowTemplate(); - } - - public static void syncGetWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - GetWorkflowTemplateRequest request = - GetWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .build(); - WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(request); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java deleted file mode 100644 index 58057efb..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_string_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncGetWorkflowTemplateString { - - public static void main(String[] args) throws Exception { - syncGetWorkflowTemplateString(); - } - - public static void syncGetWorkflowTemplateString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString(); - WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java deleted file mode 100644 index 72b38ae5..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/getworkflowtemplate/SyncGetWorkflowTemplateWorkflowtemplatename.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncGetWorkflowTemplateWorkflowtemplatename { - - public static void main(String[] args) throws Exception { - syncGetWorkflowTemplateWorkflowtemplatename(); - } - - public static void syncGetWorkflowTemplateWorkflowtemplatename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - WorkflowTemplate response = workflowTemplateServiceClient.getWorkflowTemplate(name); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_getworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java deleted file mode 100644 index abf86815..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplate.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.longrunning.Operation; - -public class AsyncInstantiateInlineWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncInstantiateInlineWorkflowTemplate(); - } - - public static void asyncInstantiateInlineWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setTemplate(WorkflowTemplate.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - workflowTemplateServiceClient - .instantiateInlineWorkflowTemplateCallable() - .futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java deleted file mode 100644 index e03f8b8c..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/AsyncInstantiateInlineWorkflowTemplateLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class AsyncInstantiateInlineWorkflowTemplateLRO { - - public static void main(String[] args) throws Exception { - asyncInstantiateInlineWorkflowTemplateLRO(); - } - - public static void asyncInstantiateInlineWorkflowTemplateLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setTemplate(WorkflowTemplate.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - workflowTemplateServiceClient - .instantiateInlineWorkflowTemplateOperationCallable() - .futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java deleted file mode 100644 index b5c22ed1..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateInlineWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncInstantiateInlineWorkflowTemplate(); - } - - public static void syncInstantiateInlineWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateInlineWorkflowTemplateRequest request = - InstantiateInlineWorkflowTemplateRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setTemplate(WorkflowTemplate.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java deleted file mode 100644 index e18ff625..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.LocationName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate(); - } - - public static void syncInstantiateInlineWorkflowTemplateLocationnameWorkflowtemplate() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_locationnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java deleted file mode 100644 index e6213b28..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate(); - } - - public static void syncInstantiateInlineWorkflowTemplateRegionnameWorkflowtemplate() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_regionnameworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java deleted file mode 100644 index e6516ae3..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateinlineworkflowtemplate/SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateInlineWorkflowTemplateStringWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate(); - } - - public static void syncInstantiateInlineWorkflowTemplateStringWorkflowtemplate() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateinlineworkflowtemplate_stringworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java deleted file mode 100644 index 78e3bb55..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplate.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.longrunning.Operation; -import java.util.HashMap; - -public class AsyncInstantiateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncInstantiateWorkflowTemplate(); - } - - public static void asyncInstantiateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setRequestId("requestId693933066") - .putAllParameters(new HashMap()) - .build(); - ApiFuture future = - workflowTemplateServiceClient.instantiateWorkflowTemplateCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java deleted file mode 100644 index c06b53df..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/AsyncInstantiateWorkflowTemplateLRO.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowMetadata; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; -import java.util.HashMap; - -public class AsyncInstantiateWorkflowTemplateLRO { - - public static void main(String[] args) throws Exception { - asyncInstantiateWorkflowTemplateLRO(); - } - - public static void asyncInstantiateWorkflowTemplateLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setRequestId("requestId693933066") - .putAllParameters(new HashMap()) - .build(); - OperationFuture future = - workflowTemplateServiceClient - .instantiateWorkflowTemplateOperationCallable() - .futureCall(request); - // Do something. - future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_lro_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java deleted file mode 100644 index 15ade861..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplate.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; -import java.util.HashMap; - -public class SyncInstantiateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncInstantiateWorkflowTemplate(); - } - - public static void syncInstantiateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - InstantiateWorkflowTemplateRequest request = - InstantiateWorkflowTemplateRequest.newBuilder() - .setName( - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]") - .toString()) - .setVersion(351608024) - .setRequestId("requestId693933066") - .putAllParameters(new HashMap()) - .build(); - workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java deleted file mode 100644 index 821758e0..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateWorkflowTemplateString { - - public static void main(String[] args) throws Exception { - syncInstantiateWorkflowTemplateString(); - } - - public static void syncInstantiateWorkflowTemplateString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString(); - workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java deleted file mode 100644 index 88d1052a..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateStringMapstringstring.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; -import java.util.HashMap; -import java.util.Map; - -public class SyncInstantiateWorkflowTemplateStringMapstringstring { - - public static void main(String[] args) throws Exception { - syncInstantiateWorkflowTemplateStringMapstringstring(); - } - - public static void syncInstantiateWorkflowTemplateStringMapstringstring() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String name = - WorkflowTemplateName.ofProjectRegionWorkflowTemplateName( - "[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]") - .toString(); - Map parameters = new HashMap<>(); - workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_stringmapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java deleted file mode 100644 index 1d0b0654..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatename.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; - -public class SyncInstantiateWorkflowTemplateWorkflowtemplatename { - - public static void main(String[] args) throws Exception { - syncInstantiateWorkflowTemplateWorkflowtemplatename(); - } - - public static void syncInstantiateWorkflowTemplateWorkflowtemplatename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatename_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java deleted file mode 100644 index fd8d9b00..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/instantiateworkflowtemplate/SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateName; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.protobuf.Empty; -import java.util.HashMap; -import java.util.Map; - -public class SyncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring { - - public static void main(String[] args) throws Exception { - syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring(); - } - - public static void syncInstantiateWorkflowTemplateWorkflowtemplatenameMapstringstring() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - WorkflowTemplateName name = - WorkflowTemplateName.ofProjectLocationWorkflowTemplateName( - "[PROJECT]", "[LOCATION]", "[WORKFLOW_TEMPLATE]"); - Map parameters = new HashMap<>(); - workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_instantiateworkflowtemplate_workflowtemplatenamemapstringstring_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java deleted file mode 100644 index 41ce3319..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplates.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class AsyncListWorkflowTemplates { - - public static void main(String[] args) throws Exception { - asyncListWorkflowTemplates(); - } - - public static void asyncListWorkflowTemplates() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - workflowTemplateServiceClient.listWorkflowTemplatesPagedCallable().futureCall(request); - // Do something. - for (WorkflowTemplate element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java deleted file mode 100644 index 24a77013..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/AsyncListWorkflowTemplatesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_paged_async] -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesResponse; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; -import com.google.common.base.Strings; - -public class AsyncListWorkflowTemplatesPaged { - - public static void main(String[] args) throws Exception { - asyncListWorkflowTemplatesPaged(); - } - - public static void asyncListWorkflowTemplatesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListWorkflowTemplatesResponse response = - workflowTemplateServiceClient.listWorkflowTemplatesCallable().call(request); - for (WorkflowTemplate element : response.getTemplatesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java deleted file mode 100644 index b848c496..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplates.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_sync] -import com.google.cloud.dataproc.v1.ListWorkflowTemplatesRequest; -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncListWorkflowTemplates { - - public static void main(String[] args) throws Exception { - syncListWorkflowTemplates(); - } - - public static void syncListWorkflowTemplates() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - ListWorkflowTemplatesRequest request = - ListWorkflowTemplatesRequest.newBuilder() - .setParent(RegionName.of("[PROJECT]", "[REGION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (WorkflowTemplate element : - workflowTemplateServiceClient.listWorkflowTemplates(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java deleted file mode 100644 index e66ff851..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesLocationname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] -import com.google.cloud.dataproc.v1.LocationName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncListWorkflowTemplatesLocationname { - - public static void main(String[] args) throws Exception { - syncListWorkflowTemplatesLocationname(); - } - - public static void syncListWorkflowTemplatesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (WorkflowTemplate element : - workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java deleted file mode 100644 index 87648142..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesRegionname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_regionname_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncListWorkflowTemplatesRegionname { - - public static void main(String[] args) throws Exception { - syncListWorkflowTemplatesRegionname(); - } - - public static void syncListWorkflowTemplatesRegionname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - RegionName parent = RegionName.of("[PROJECT]", "[REGION]"); - for (WorkflowTemplate element : - workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_regionname_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java deleted file mode 100644 index e71da5a2..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/listworkflowtemplates/SyncListWorkflowTemplatesString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_string_sync] -import com.google.cloud.dataproc.v1.RegionName; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncListWorkflowTemplatesString { - - public static void main(String[] args) throws Exception { - syncListWorkflowTemplatesString(); - } - - public static void syncListWorkflowTemplatesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - String parent = RegionName.of("[PROJECT]", "[REGION]").toString(); - for (WorkflowTemplate element : - workflowTemplateServiceClient.listWorkflowTemplates(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_listworkflowtemplates_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java deleted file mode 100644 index 2a598bcf..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/AsyncUpdateWorkflowTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class AsyncUpdateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - asyncUpdateWorkflowTemplate(); - } - - public static void asyncUpdateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - UpdateWorkflowTemplateRequest request = - UpdateWorkflowTemplateRequest.newBuilder() - .setTemplate(WorkflowTemplate.newBuilder().build()) - .build(); - ApiFuture future = - workflowTemplateServiceClient.updateWorkflowTemplateCallable().futureCall(request); - // Do something. - WorkflowTemplate response = future.get(); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_async] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java deleted file mode 100644 index 5dfbf675..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest; -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncUpdateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncUpdateWorkflowTemplate(); - } - - public static void syncUpdateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - UpdateWorkflowTemplateRequest request = - UpdateWorkflowTemplateRequest.newBuilder() - .setTemplate(WorkflowTemplate.newBuilder().build()) - .build(); - WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(request); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java deleted file mode 100644 index 73ca1be0..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateserviceclient/updateworkflowtemplate/SyncUpdateWorkflowTemplateWorkflowtemplate.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplate; -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceClient; - -public class SyncUpdateWorkflowTemplateWorkflowtemplate { - - public static void main(String[] args) throws Exception { - syncUpdateWorkflowTemplateWorkflowtemplate(); - } - - public static void syncUpdateWorkflowTemplateWorkflowtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (WorkflowTemplateServiceClient workflowTemplateServiceClient = - WorkflowTemplateServiceClient.create()) { - WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - WorkflowTemplate response = workflowTemplateServiceClient.updateWorkflowTemplate(template); - } - } -} -// [END dataproc_v1_generated_workflowtemplateserviceclient_updateworkflowtemplate_workflowtemplate_sync] diff --git a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java b/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java deleted file mode 100644 index f7f7fec3..00000000 --- a/samples/snippets/generated/com/google/cloud/dataproc/v1/workflowtemplateservicesettings/createworkflowtemplate/SyncCreateWorkflowTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.dataproc.v1.samples; - -// [START dataproc_v1_generated_workflowtemplateservicesettings_createworkflowtemplate_sync] -import com.google.cloud.dataproc.v1.WorkflowTemplateServiceSettings; -import java.time.Duration; - -public class SyncCreateWorkflowTemplate { - - public static void main(String[] args) throws Exception { - syncCreateWorkflowTemplate(); - } - - public static void syncCreateWorkflowTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - WorkflowTemplateServiceSettings.Builder workflowTemplateServiceSettingsBuilder = - WorkflowTemplateServiceSettings.newBuilder(); - workflowTemplateServiceSettingsBuilder - .createWorkflowTemplateSettings() - .setRetrySettings( - workflowTemplateServiceSettingsBuilder - .createWorkflowTemplateSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - WorkflowTemplateServiceSettings workflowTemplateServiceSettings = - workflowTemplateServiceSettingsBuilder.build(); - } -} -// [END dataproc_v1_generated_workflowtemplateservicesettings_createworkflowtemplate_sync] diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index ee0ac83b..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - 4.0.0 - com.google.cloud - dataproc-snippets - jar - Google Dataproc Snippets - https://github.com/googleapis/java-dataproc - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - - com.google.cloud - libraries-bom - 26.1.3 - pom - import - - - - - - - com.google.cloud - google-cloud-dataproc - - - - com.google.cloud - google-cloud-storage - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 5b262cd3..00000000 --- a/synth.metadata +++ /dev/null @@ -1,599 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-dataproc.git", - "sha": "8953b74c3fc211e3a3be478ffedb8abb1287caeb" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", - "internalRef": "378718217" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", - "internalRef": "378718217" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "dataproc", - "apiVersion": "v1", - "language": "java", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "dataproc", - "apiVersion": "v1beta2", - "language": "java", - "generator": "bazel" - } - } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/readme/synth.py", - ".github/release-please.yml", - ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/ci.yaml", - ".github/workflows/samples.yaml", - ".kokoro/build.bat", - ".kokoro/build.sh", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/readme.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "codecov.yaml", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/gapic_metadata.json", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/package-info.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/gapic_metadata.json", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceCallableFactory.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStub.java", - "google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/ClusterControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/JobControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyService.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockAutoscalingPolicyServiceImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterController.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockClusterControllerImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobController.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockJobControllerImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateService.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/MockWorkflowTemplateServiceImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/JobControllerClientTest.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyService.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockAutoscalingPolicyServiceImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterController.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockClusterControllerImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobController.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockJobControllerImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateService.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/MockWorkflowTemplateServiceImpl.java", - "google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClientTest.java", - "grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceGrpc.java", - "grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerGrpc.java", - "grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobControllerGrpc.java", - "grpc-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceGrpc.java", - "grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java", - "grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java", - "grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java", - "grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AcceleratorConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPoliciesProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicy.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithm.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicAutoscalingAlgorithmOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/BasicYarnAutoscalingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CancelJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Cluster.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetrics.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterMetricsOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperation.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadata.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatus.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOperationStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelector.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterSelectorOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatus.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Component.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/CreateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DeleteWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResults.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiagnoseClusterResultsOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/DiskConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EncryptionConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/EndpointConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GetWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GkeClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HadoopJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/HiveJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/IdentityConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupAutoscalingPolicyConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstanceGroupConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateInlineWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/InstantiateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/Job.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadata.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacement.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobPlacementOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReference.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobReferenceOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobScheduling.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobSchedulingOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatus.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/JobsProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/KerberosConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LifecycleConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponse.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListAutoscalingPoliciesResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponse.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListClustersResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponse.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListJobsResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponse.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ListWorkflowTemplatesResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LocationName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/LoggingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedCluster.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedClusterOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ManagedGroupConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/MetastoreConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinity.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeGroupAffinityOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationAction.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/NodeInitializationActionOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OperationsProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/OrderedJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidation.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ParameterValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PigJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PrestoJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/PySparkJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryList.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/QueryListOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidation.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegexValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RegionName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinity.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ReservationAffinityOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SecurityConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ShieldedInstanceConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfig.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SoftwareConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkRJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJob.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SparkSqlJobOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StartClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/StopClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SubmitJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameter.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/TemplateParameterOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/UpdateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidation.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ValueValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraph.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowGraphOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadata.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNode.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowNodeOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplate.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateName.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacement.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatePlacementOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplatesProto.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplication.java", - "proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/YarnApplicationOrBuilder.java", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/autoscaling_policies.proto", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/jobs.proto", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/operations.proto", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto", - "proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/workflow_templates.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicy.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CancelJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Cluster.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetrics.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterMetricsOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperation.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadata.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatus.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOperationStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelector.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterSelectorOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatus.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResults.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiagnoseClusterResultsOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DiskConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EncryptionConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GkeClusterConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HadoopJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/HiveJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateInlineWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstantiateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadata.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacement.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobPlacementOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobScheduling.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobSchedulingOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatus.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobStatusOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LifecycleConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponse.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListClustersResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponse.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListJobsResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponse.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListWorkflowTemplatesResponseOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LocationName.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/LoggingConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedCluster.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedClusterOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ManagedGroupConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationAction.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/NodeInitializationActionOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OperationsProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidation.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ParameterValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PigJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PrestoJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/PySparkJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryList.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/QueryListOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidation.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegexValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/RegionName.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJob.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkSqlJobOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateJobRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequest.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateWorkflowTemplateRequestOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidation.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ValueValidationOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraph.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowGraphOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadata.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowMetadataOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNode.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowNodeOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateName.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacement.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatePlacementOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplatesProto.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplication.java", - "proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/YarnApplicationOrBuilder.java", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto", - "proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto", - "renovate.json", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" - ] -} \ No newline at end of file diff --git a/versions.txt b/versions.txt deleted file mode 100644 index 790455ed..00000000 --- a/versions.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Format: -# module:released-version:current-version - -google-cloud-dataproc:4.0.8:4.0.9-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.0.8:4.0.9-SNAPSHOT -proto-google-cloud-dataproc-v1:4.0.8:4.0.9-SNAPSHOT